:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --text: #0e1116;
  --muted: #5a6170;
  --border: #e3e6eb;
  --accent: #0b7a55;
  --accent-soft: #e5f4ee;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
body.tenet {
  --accent: #4338ca;
  --accent-soft: #ecebfb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d11;
    --surface: #14171d;
    --text: #e9ecf1;
    --muted: #9198a6;
    --border: #262a33;
    --accent: #3fcf97;
    --accent-soft: #12271f;
  }
  body.tenet {
    --accent: #9b95ff;
    --accent-soft: #1c1a33;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}
.brand:hover { text-decoration: none; }
.navlinks { display: flex; gap: 20px; font-size: 15px; }
.navlinks a { color: var(--muted); }
.navlinks a:hover { color: var(--text); text-decoration: none; }

main { padding-bottom: 56px; }
section { margin: 56px 0; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 7vw, 3.4rem); letter-spacing: -0.04em; margin: 0 0 18px; }
h2 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
h3 { font-size: 1.15rem; letter-spacing: -0.02em; margin: 0 0 8px; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin: 0 0 22px;
}

.hero { margin-top: 72px; }
.portrait {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 0 28px;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border);
}
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--muted); max-width: 34em; margin: 0; }
.lede a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.prose p { max-width: 38em; }
.muted { color: var(--muted); font-size: 14px; font-family: var(--mono); }
.big-link { font-size: 1.4rem; font-weight: 600; margin-top: 28px; }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 a { color: var(--text); }
.card.featured { grid-column: 1 / -1; border-color: var(--accent); padding: 28px; }
.card.featured h3 { font-size: 1.5rem; }
.card.featured p { font-size: 17px; max-width: 36em; }
.highlights { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.highlights li {
  margin: 0;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent-soft);
  border-radius: 999px;
}
.highlights li::before { content: none; }
.card .flag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
/* A card with one link: the link's ::after covers the whole card, so anywhere on it is clickable. */
.card-link { position: relative; }
.card-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link h3 a:hover { text-decoration: none; }
.status {
  display: inline-block;
  margin-left: 8px;
  vertical-align: 2px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 8px;
}
.card p { margin: 0 0 14px; color: var(--muted); font-size: 16px; }
.card p:last-child { margin-bottom: 0; }
.card-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; font-weight: 600; }

.eyebrow a { color: inherit; }

ul { padding-left: 0; list-style: none; }
li { margin: 10px 0; padding-left: 22px; position: relative; }
li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

.footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 32px;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}
