:root {
  --paper: #eef0ec;
  --ink: #1a1d22;
  --muted: #5b6168;
  --rule: #cdd1cb;
  --orange: #e77500;
  --orange-deep: #b35a00;
  --surface: #f7f8f5;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --measure: 66ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16181b;
    --ink: #e9ebe6;
    --muted: #9aa0a6;
    --rule: #2e3236;
    --orange: #f08a1c;
    --orange-deep: #f5a04a;
    --surface: #1d2024;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration-color: var(--orange); text-underline-offset: 0.2em; }
a:hover { color: var(--orange-deep); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header { padding: 1.5rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-mark { width: 1.6rem; height: 1.6rem; flex: none; }
.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--orange); }

main { flex: 1; }

/* Home */
.hero { position: relative; padding: 4rem 0 3rem; overflow: hidden; }
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 11ch;
  text-wrap: balance;
  position: relative;
  z-index: 1;
}
.hero-lede { max-width: 38ch; font-size: 1.25rem; color: var(--muted); margin: 2rem 0 0; position: relative; z-index: 1; }
.status {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 2.5rem; padding: 0.5rem 1rem;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--surface); font-weight: 500; position: relative; z-index: 1;
}
.status::before {
  content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--orange);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.stripes { display: block; width: 100%; height: clamp(160px, 26vw, 300px); margin-top: 3rem; }
@media (min-width: 900px) {
  .hero { padding: 5rem 0 5rem; }
  .stripes { position: absolute; top: 0; right: 0; width: 44%; height: 100%; margin: 0; }
}
.stripes path { fill: none; stroke: var(--orange); stroke-linecap: round; }

.home-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 3rem 0 4rem; border-top: 1px solid var(--rule); }
.home-links a { text-decoration: none; display: block; }
.home-links h2 { font-family: var(--display); font-size: 1.375rem; margin: 0 0 0.4rem; letter-spacing: -0.01em; }
.home-links a:hover h2 { color: var(--orange-deep); }
.home-links p { margin: 0; color: var(--muted); }

/* Inner pages */
.page-head { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--rule); }
.page-head h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; margin: 0;
}
.page-head p { max-width: 52ch; font-size: 1.1875rem; color: var(--muted); margin: 1.25rem 0 0; }

.prose { max-width: var(--measure); padding: 2.5rem 0 4rem; }
.prose h2 { font-family: var(--display); font-size: 1.625rem; letter-spacing: -0.015em; line-height: 1.2; margin: 2.75rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.4rem; }
sup a { text-decoration: none; color: var(--orange-deep); font-weight: 600; }

.goal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 1.5rem 0 1.75rem; padding: 0; list-style: none; }
.goal li { border-top: 3px solid var(--orange); padding-top: 0.75rem; margin: 0; }
.goal strong { display: block; font-family: var(--display); font-size: 1.125rem; }
.goal span { color: var(--muted); font-size: 0.975rem; }

.refs { font-size: 0.9375rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-top: 3rem; }
.refs ol { padding-left: 1.4rem; margin: 0; }
.refs li { margin-bottom: 0.5rem; }

/* Roadmap */
.roadmap { list-style: none; padding: 0; margin: 1.5rem 0 2rem; counter-reset: phase; }
.roadmap li {
  counter-increment: phase;
  display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 0 1rem; align-items: baseline;
  padding: 1rem 0; border-bottom: 1px solid var(--rule);
}
.roadmap li::before { content: counter(phase); font-family: var(--display); font-weight: 700; color: var(--muted); }
.roadmap li[data-state="active"]::before { color: var(--orange); }
.roadmap .name { font-weight: 600; }
.roadmap .when { color: var(--muted); font-size: 0.9375rem; }
.roadmap .tag { grid-column: 2; font-size: 0.9375rem; color: var(--orange-deep); font-weight: 500; }

.empty {
  border: 1px dashed var(--rule); border-radius: 6px; padding: 1.75rem; background: var(--surface);
}
.empty h3 { font-family: var(--display); margin: 0 0 0.4rem; font-size: 1.25rem; }
.empty p { margin: 0; color: var(--muted); }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.75rem; margin: 1.5rem 0 1rem; }
.person .avatar {
  aspect-ratio: 1; border-radius: 6px; background: var(--surface); border: 1px solid var(--rule);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--muted);
  margin-bottom: 0.75rem;
}
.person strong { display: block; }
.person span { color: var(--muted); font-size: 0.9375rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 1.75rem 0; color: var(--muted); font-size: 0.9375rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 720px) {
  .wrap { padding: 0 1rem; }
  .hero { padding-top: 2.5rem; }
  .home-links, .goal { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-nav { gap: 1.1rem; }
  .roadmap li { grid-template-columns: 2rem 1fr; }
  .roadmap .when { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}
