/* Base — reset, typography, focus, utilities. Mobile-first. */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,svg,video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
::selection { background: var(--forest); color: #fff; }

h1,h2,h3,h4 {
  font-family: var(--serif);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}
p { text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }
.mono { font-family: var(--mono); font-size: .82em; letter-spacing: .02em; }

/* Skip link — senior a11y requirement */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--forest); color: #fff; padding: .7rem 1rem;
  border-radius: var(--radius-sm); font-weight: 700; transition: top var(--dur) var(--ease);
}
.skip:focus { top: 12px; color: #fff; }

/* Focus */
:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Layout */
.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.wrap-narrow { width: min(var(--max-narrow), 100% - 2.5rem); margin-inline: auto; }
.section { padding: var(--space-16) 0; }
.section-tight { padding: var(--space-8) 0; }
.eyebrow {
  font-family: var(--mono); font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent-ink); font-weight: 700;
  display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); display: inline-block; }
.eyebrow.forest { color: var(--forest); }
.eyebrow.forest::before { background: var(--forest); }
.h2 { font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem); margin: .6rem 0 .7rem; }
.lede { font-size: var(--text-lg); color: var(--ink-2); max-width: 62ch; }

/* Scroll progress */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  width: 0%; transition: width .08s linear;
}

/* Ticker */
.ticker {
  background: var(--forest); color: #eef4ef;
  font-size: var(--text-sm); overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.ticker-inner {
  display: flex; gap: 2.5rem; align-items: center;
  padding: .5rem 0; white-space: nowrap;
  animation: ticker 36s linear infinite;
  width: max-content;
}
.ticker:hover .ticker-inner { animation-play-state: paused; }
.ticker strong { color: #ffd88a; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .ticker-inner { animation: none; width: auto; flex-wrap: wrap; white-space: normal; }
}
