/* One reading column (~680px): photo hero, results row, dated lists, contact card.
   "Mist" palette: faint cool-grey ground, deep slate type, one muted blue accent. */
:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --bg-2: #ffffff;
  --ink: #0f172a;
  --ink-2: #4a5568;
  --rule: #dfe4eb;
  --accent: #2a4f8f;
  --accent-ink: #ffffff;
  --accent-soft: #dbe5f5;

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 12px;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-4: clamp(2.6rem, 6vw, 4.5rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #10151d;
    --bg-2: #171e29;
    --ink: #e8edf5;
    --ink-2: #9aa6b8;
    --rule: #253041;
    --accent: #8fb0e8;
    --accent-ink: #10151d;
    --accent-soft: #1d2b44;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  padding-inline: clamp(24px, 5vw, 48px);
}
img { max-width: 100%; }
.wrap { max-width: 920px; margin: 0 auto; }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 32px;
  font-size: 0.95rem;
}
.nav .mark { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }

.hero {
  padding-block: 64px 56px;
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) clamp(200px, 26vw, 264px);
  align-items: center;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 var(--step--1) var(--mono);
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  margin: 0 0 22px;
}
.status::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.name {
  font-weight: 600;
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.lede {
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  max-width: 34ch;
  text-wrap: balance;
}
.intro { margin: 0; color: var(--ink-2); max-width: 62ch; }
.intro a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
.intro a:hover { text-decoration-color: var(--accent); }

.portrait { margin: 0; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 710;
  object-fit: cover;
  border-radius: var(--radius);
}

.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-block: 8px 96px;
}
.figures div {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.figures b {
  display: block;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums lining-nums;
}
.figures span { display: block; font-size: 0.85rem; color: var(--ink-2); line-height: 1.4; margin-top: 6px; }
.figures s { display: block; text-decoration: none; color: var(--ink-2); opacity: .8; font-size: 0.75rem; font-family: var(--mono); margin-top: 2px; }

section { margin-bottom: 96px; }
.h2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  margin-bottom: 8px;
}
.h2 h2 { font-weight: 600; font-size: 1.35rem; letter-spacing: -0.015em; margin: 0; }
.h2 a { font-size: 0.9rem; color: var(--accent); text-decoration: none; }
.h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }

.roles, .talks { list-style: none; margin: 0; padding: 0; }
.role, .talks li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 4px 40px;
  border-bottom: 1px solid var(--rule);
}
.role { padding-block: 26px; }
.talks li { padding-block: 16px; }
.role:last-child, .talks li:last-child { border-bottom: 0; }
.when {
  font: 400 var(--step--1) var(--mono);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.role h3 { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.role h3 small { font-weight: 400; color: var(--ink-2); font-size: 1rem; }
.role p { margin: 6px 0 0; color: var(--ink-2); max-width: 68ch; }
.role .sub { margin-top: 12px; font-size: 0.95rem; }
.role .sub b { color: var(--ink); font-weight: 500; }
.arc { margin: 18px 0 6px; color: var(--ink-2); max-width: 68ch; }
.wins { list-style: none; margin: 14px 0 0; padding: 0; max-width: 68ch; display: grid; gap: 10px; }
.wins li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 0.97rem; }
.wins li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.wins b, .ladder .rung { color: var(--ink); font-weight: 500; }
.ladder { list-style: none; margin: 16px 0 0 5px; padding: 0 0 0 18px; border-left: 1px solid var(--rule); display: grid; gap: 18px; max-width: 68ch; }
.ladder li { position: relative; }
.ladder li::before { content: ""; position: absolute; left: -23px; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent); }
.ladder li:first-child::before { background: var(--accent); }
.ladder .rung { display: block; font-size: 0.97rem; }
.ladder .rung i { font-style: normal; font: 400 var(--step--1) var(--mono); color: var(--ink-2); margin-left: 8px; }
.ladder p { margin-top: 4px; font-size: 0.97rem; }
.role p a, .ladder a { color: var(--accent); text-underline-offset: 3px; }
.talks strong { font-weight: 500; }
.talk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
}
.talk strong { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; transition: text-decoration-color .15s ease; }
.talk svg { width: 12px; height: 12px; fill: none; stroke: var(--ink-2); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .15s ease, stroke .15s ease; }
.talk:hover strong { text-decoration-color: var(--accent); }
.talk:hover svg { stroke: var(--accent); transform: translate(2px, -2px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.talks .topic { display: block; color: var(--ink-2); font-size: 0.95rem; }

.cta {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 48px;
}
.cta h2 { font-weight: 600; font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 10px; text-wrap: balance; }
.cta p { margin: 0; color: var(--ink-2); max-width: 52ch; }

.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.social {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: calc(var(--radius) - 2px);
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--ink);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.social svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.social:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 22px 40px;
  font: 400 0.78rem var(--mono);
  color: var(--ink-2);
}

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) { .social, .talk strong, .talk svg { transition: none; } }

@media (max-width: 900px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 640px) {
  body { padding-inline: 20px; font-size: 1rem; }
  .nav { padding-block: 16px; }
  .nav ul { gap: 4px; margin-right: -10px; }
  .nav a { display: block; padding: 10px; }
  .nav .mark { padding: 10px 0; }
  .hero { padding-block: 16px 32px; gap: 24px; grid-template-columns: minmax(0, 1fr); }
  .hero .portrait { order: -1; width: 112px; }
  .status { margin-bottom: 16px; }
  .name { font-size: 2.5rem; margin-bottom: 14px; }
  .lede { font-size: 1.15rem; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 48px; }
  .figures div { padding: 14px; }
  .figures b { font-size: 1.4rem; }
  section { margin-bottom: 48px; }
  .role { padding-block: 18px; }
  .role, .talks li { grid-template-columns: minmax(0, 1fr); }
  .cta { padding: 24px 20px; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cta h2 { font-size: 1.35rem; }
  .socials { gap: 10px; }
  .foot { padding-block: 20px 32px; }
}
