:root {
  --bg: #FFFFFF;
  --surface: #F7F8FA;
  --ink: #111418;
  --muted: #5F646D;
  --line: #E6E8EC;
  --accent: #2F5BEA;
  --accent-soft: #EAF0FF;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #1A1D23;
    --ink: #F2F4F7;
    --muted: #A2A8B3;
    --line: #2A2E36;
    --accent: #8AA6FF;
    --accent-soft: #1C2442;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Instrument Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav { border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
nav .logo { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 600; font-size: 22px; color: var(--accent); text-decoration: none; margin-right: auto; }
nav ul { display: flex; gap: 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
nav ul::-webkit-scrollbar { display: none; }
nav ul a {
  display: block; padding: 6px 12px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap;
}
nav ul a:hover { background: var(--accent-soft); color: var(--accent); }

/* Section tabs (homepage) */
.tabs {
  position: sticky; top: 0; z-index: 10;
  display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none;
  margin-bottom: 56px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: 16px 0 14px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap;
}
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Hero */
.hero { padding: 88px 0 72px; }
.hello { color: var(--muted); font-size: 18px; margin-bottom: 4px; }
h1 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 600;
  font-size: clamp(48px, 9vw, 84px); line-height: 1.02; color: var(--ink);
  letter-spacing: -0.03em;
}
.tagline { font-size: clamp(19px, 2.6vw, 23px); margin-top: 20px; max-width: 34ch; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink); text-decoration: none;
}
a.chip { color: var(--accent); font-weight: 500; }
a.chip:hover { border-color: var(--accent); }

/* Facts */
.facts { margin-top: 16px; font-size: 15px; color: var(--muted); line-height: 1.7; }
.facts b { color: var(--ink); font-weight: 600; }
.facts .sep { margin: 0 4px; }
.facts .fact { white-space: nowrap; }

/* Sections */
section { margin-bottom: 72px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
h2 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.02em; font-size: 32px; line-height: 1.15; margin-bottom: 20px; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.card { border-top: 1px solid var(--line); padding-top: 20px; }
.card .where { color: var(--muted); font-size: 14px; margin-top: 2px; }
.card p { color: var(--muted); margin-top: 10px; }

/* Now */
.now { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 40px; align-items: start; }
.now h3 { font-size: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 500; }

/* Bio */
.bio { display: grid; gap: 16px; max-width: 62ch; }
.bio p { font-size: 18px; line-height: 1.65; }

/* About page */
.about { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; padding: 88px 0 72px; }
.headshot { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.about h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 24px; }
nav ul a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }

/* Experience */
ul.points { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
ul.points li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; color: var(--muted); }
ul.points li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
ul.points strong { color: var(--ink); font-weight: 600; }

/* Story timeline */
ol.story { list-style: none; position: relative; display: grid; gap: 40px; max-width: 680px; }
ol.story::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
ol.story > li { position: relative; padding-left: 36px; }
ol.story > li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
ol.story > li:last-child::before { background: var(--accent); }
.when { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 4px; }
ol.story h3 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 22px; letter-spacing: -0.01em; }
.story .where { color: var(--muted); font-size: 14px; margin-top: 2px; }
.beat { margin-top: 10px; font-size: 17px; line-height: 1.6; }

/* Education + outside */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
.year { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--accent); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer p { color: var(--muted); }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--bg); text-decoration: none; font-weight: 600;
}
.btn:hover { opacity: 0.9; }

@media (max-width: 760px) {
  .now, .grid-2, .about { grid-template-columns: 1fr; }
  .about { padding: 56px 0 40px; gap: 32px; }
  .headshot { width: 180px; }
  .hero { padding: 56px 0 40px; }
  section { margin-bottom: 56px; }
  nav .wrap { gap: 12px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .tabs { gap: 20px; }
}
