:root {
  --ink: #102a2a;
  --ink-soft: #385150;
  --paper: #f5f2e9;
  --surface: #fffdf8;
  --teal: #0f6b63;
  --teal-dark: #0a4a46;
  --lime: #dfff72;
  --coral: #ff7759;
  --line: rgba(16, 42, 42, 0.16);
  --shadow: 0 22px 70px rgba(16, 42, 42, 0.12);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 3%, rgba(223, 255, 114, 0.35), transparent 20rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  border-radius: 999px;
}
.skip-link:focus { top: 16px; }

.announcement {
  padding: 8px 20px;
  text-align: center;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 20px;
  background: rgba(245, 242, 233, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-shell {
  position: relative;
  width: min(100%, var(--max));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-link, .dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.nav-link:hover, .dropdown-trigger:hover,
.nav-link[aria-current="page"],
.nav-item.is-active > .dropdown-trigger,
.dropdown-trigger[aria-expanded="true"] {
  background: rgba(15, 107, 99, .09);
  color: var(--ink);
}
.brand:focus-visible, .nav-link:focus-visible,
.dropdown-trigger:focus-visible, .nav-toggle:focus-visible,
.dropdown a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}
.chevron { transition: transform 180ms ease; }
.nav-item.open .chevron { transform: rotate(180deg); }
.dropdown[hidden] { display: none; }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 55px rgba(16, 42, 42, .14);
}
.dropdown::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 12px;
}
.dropdown-label {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dropdown-grid > li { min-width: 0; }
.dropdown a {
  display: flex;
  height: 100%;
  min-height: 200px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: #f0f3ef;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}
.dropdown a:hover, .dropdown a[aria-current="page"] {
  background: #e5eee6;
  border-color: rgba(15, 107, 99, .2);
}
.menu-icon { margin-bottom: 32px; flex-shrink: 0; color: var(--teal); }
.menu-title {
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.15;
}
.menu-description {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: .9375rem;
  line-height: 1.5;
}

.page-shell { overflow: hidden; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.hero {
  padding: clamp(64px, 9vw, 130px) 0 clamp(72px, 8vw, 112px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

h1, h2, h3, p { margin-top: 0; }
h1, .display {
  margin-bottom: 24px;
  font-family: "Instrument Serif", Iowan Old Style, Baskerville, Georgia, serif;
  font-size: clamp(3.35rem, 7.2vw, 7.1rem);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: -0.045em;
}
.hero h1 em { color: var(--teal); font-style: italic; }
.hero-copy {
  max-width: 690px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.17rem);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 19px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16,42,42,.14); }
.button-primary { background: var(--ink); color: white; }
.button-accent { background: var(--lime); color: var(--ink); }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.5); }

.hero-card {
  position: relative;
  min-height: 460px;
  padding: clamp(26px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--teal);
  color: white;
  box-shadow: var(--shadow);
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  right: -95px;
  bottom: -95px;
  border: 58px solid rgba(223,255,114,.9);
  border-radius: 50%;
}
.card-kicker { position: relative; z-index: 1; font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; opacity: .72; }
.card-number { position: relative; z-index: 1; margin: 8px 0 0; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(6rem, 11vw, 9.8rem); line-height: .8; font-weight: 400; }
.card-caption { position: relative; z-index: 1; max-width: 220px; margin: 0; font-weight: 700; }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px rgba(223,255,114,.15); }

.ticker { border-block: 1px solid var(--line); background: rgba(255,253,248,.46); }
.ticker-inner { min-height: 72px; display: flex; align-items: center; gap: 18px 36px; overflow: hidden; }
.ticker-label { flex: 0 0 auto; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.ticker-items { display: flex; align-items: center; gap: 26px; white-space: nowrap; color: var(--ink-soft); font-size: .88rem; font-weight: 700; }
.ticker-items span::before { content: "✦"; margin-right: 26px; color: var(--coral); }

.section { padding: clamp(74px, 9vw, 124px) 0; }
.section-tight { padding: clamp(50px, 6vw, 82px) 0; }
.section-ink { background: var(--ink); color: white; }
.section-teal { background: var(--teal); color: white; }
.section-surface { background: var(--surface); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 46px;
}
.section-heading h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.035em;
}
.section-heading p { max-width: 620px; margin: 8px 0 0; color: var(--ink-soft); }
.section-ink .section-heading p,
.section-teal .section-heading p { color: rgba(255,255,255,.7); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.content-card {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.content-card.accent { background: var(--lime); }
.content-card.dark { background: var(--ink); color: white; }
.content-card h3 { margin-bottom: 10px; font-size: 1.18rem; line-height: 1.25; }
.content-card p { margin-bottom: 0; color: var(--ink-soft); }
.content-card.dark p { color: rgba(255,255,255,.7); }
.card-index { display: inline-block; margin-bottom: 28px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.content-card.dark .card-index { color: var(--lime); }
.card-link { display: inline-flex; margin-top: 24px; align-items: center; gap: 9px; text-decoration: none; font-size: .88rem; font-weight: 800; }

.article-layout { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: clamp(50px, 8vw, 120px); align-items: start; }
.article-rail { position: sticky; top: 110px; }
.rail-label { margin-bottom: 12px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.article-rail ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.article-rail a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; font-size: .83rem; font-weight: 700; }
.article-rail a:hover { color: var(--teal); }
.prose h2 { margin: 64px 0 15px; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; font-weight: 400; letter-spacing: -.03em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose a { color: var(--teal); text-underline-offset: 4px; }
.pullquote { margin: 46px 0; padding: 28px 0 28px 28px; border-left: 4px solid var(--lime); font-family: "Instrument Serif", Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; }

.meta-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.pill { display: inline-flex; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: .72rem; font-weight: 800; letter-spacing: .03em; }

.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.month { padding: 20px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.06); }
.month strong { display: block; margin-bottom: 6px; font-size: .82rem; }
.month span { color: rgba(255,255,255,.58); font-size: .72rem; }
.month.active { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.month.active span { color: rgba(16,42,42,.68); }

.empty-state { padding: clamp(36px, 6vw, 76px); border: 1px dashed rgba(16,42,42,.28); border-radius: var(--radius-lg); text-align: center; background: rgba(255,253,248,.58); }
.empty-icon { width: 84px; height: 84px; margin: 0 auto 26px; display: grid; place-items: center; border-radius: 28px; background: var(--lime); font-size: 2rem; transform: rotate(-4deg); }
.empty-state h2 { margin-bottom: 12px; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(2.3rem, 5vw, 4.1rem); line-height: 1; font-weight: 400; }
.empty-state p { max-width: 560px; margin: 0 auto 28px; color: var(--ink-soft); }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 0; background: transparent; color: var(--ink); text-align: left; font-weight: 800; cursor: pointer; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 220ms ease; }
.faq-answer p { padding: 0 42px 22px 0; margin: 0; color: var(--ink-soft); }
.faq-item.open .faq-answer { max-height: 260px; }
.faq-icon { font-size: 1.3rem; transition: transform 180ms ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.notice { margin: 30px 0; padding: 18px 20px; border-radius: 16px; background: #fff2d8; border: 1px solid #efc87e; color: #654914; font-size: .88rem; }
.notice strong { color: inherit; }

.author-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.avatar { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); font-weight: 900; }
.author-strip p { margin: 3px 0 0; color: var(--ink-soft); font-size: .86rem; }

.site-footer { padding: 70px 0 30px; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 50px; padding-bottom: 56px; }
.footer-title { max-width: 500px; margin: 0 0 18px; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: .95; font-weight: 400; }
.footer-copy { max-width: 520px; color: rgba(255,255,255,.62); }
.footer-label { margin-bottom: 14px; color: var(--lime); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding: 5px 0; color: rgba(255,255,255,.74); text-decoration: none; font-size: .88rem; }
.footer-links a:hover { color: white; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.52); font-size: .76rem; }

.reveal, .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { padding-inline: 14px; }
  .nav-shell { justify-content: space-between; gap: 12px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-link, .dropdown-trigger { width: 100%; justify-content: space-between; }
  .dropdown { position: static; width: 100%; margin-top: 8px; padding: 14px; box-shadow: none; border-radius: 16px; }
  .dropdown::before { display: none; }
  .dropdown-grid { grid-template-columns: 1fr; gap: 10px; }
  .dropdown-label { font-size: .875rem; margin-bottom: 12px; }
  .dropdown a { min-height: 0; padding: 18px; }
  .menu-icon { margin-bottom: 16px; width: 22px; height: 22px; }
  .menu-title { font-size: 1.4rem; }
  .menu-description { margin-top: 6px; }
  .hero-grid, .section-heading, .article-layout { grid-template-columns: 1fr; }
  .hero-card { min-height: 390px; }
  .article-rail { position: static; }
  .article-rail ul { display: flex; overflow-x: auto; gap: 18px; }
  .article-rail a { white-space: nowrap; border-bottom: 0; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand-name { font-size: clamp(1.25rem, 5.6vw, 1.7rem); }
  .brand { gap: 8px; }
  .brand-logo { width: 40px; height: 40px; }
  .hero { padding-top: 48px; }
  h1, .display { font-size: clamp(3rem, 16vw, 5rem); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .author-strip { grid-template-columns: auto 1fr; }
  .author-strip .button { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
