/* ORIONPATH base: the face, the type scale with its tracking, the headline measures, rhythm, rules, links, focus.
   Reads tokens.css only. Mobile first; the one breakpoint is 720px. */

@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  /* relative to this file: the woff2 sits in ./fonts. Vendored, never linked (self-only CSP). */
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Atmosphere: navy haze falling from the top edge and a pale glow behind the headline.
   Peak effect is about 4 to 5 L* on the paper ground; it is felt, not seen. */
body {
  margin: 0; color: var(--ink); background-color: var(--ground);
  background-image: var(--haze-navy), var(--glow-pale); background-repeat: no-repeat;
  font: 400 1rem/1.55 var(--font); letter-spacing: var(--track-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }

/* ---- links: ink, underlined with a soft rule that firms up on hover ---- */
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--link-rule); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: var(--r-tick); }

/* ---- type: a few decided sizes, big contrast, tracking that tightens as size rises ---- */
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; text-wrap: balance; }
h1, .display { font-size: var(--size-display); line-height: 0.93; letter-spacing: var(--track-display); margin-left: -0.04em; }  /* the pull-left keeps the optical edge of a big glyph on the column */
h2 { font-size: 1.4rem; line-height: 1.08; letter-spacing: var(--track-head); }
h3 { font-size: 1.05rem; line-height: 1.2; letter-spacing: var(--track-sub); }
p { margin: 0 0 1rem; max-width: 34rem; }
.lede { font-size: 1.15rem; line-height: 1.4; letter-spacing: -0.012em; max-width: 26rem; color: var(--ink); }
.small { color: var(--muted); font-size: 0.9375rem; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 var(--s2); font-size: 0.9375rem; font-weight: 500; letter-spacing: var(--track-label); color: var(--muted); }   /* the small label above a headline */
.figure { font-variant-numeric: tabular-nums; letter-spacing: var(--track-display-xl); font-weight: 600; line-height: 1; }

/* ---- headline measure, in ch, set per headline so it breaks where the designer chose ----
   A headline allowed to wrap wherever the viewport lands is the fastest way to look generated. */
.m12 { max-width: 12ch; } .m14 { max-width: 14ch; } .m17 { max-width: 17ch; }
.m18 { max-width: 18ch; } .m22 { max-width: 22ch; } .m24 { max-width: 24ch; }

/* ---- rhythm and rules ---- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: var(--s4) 0; }
.rule.strong { border-top-color: var(--rule-strong); }
.stack > * + * { margin-top: var(--flow); }
@media (min-width: 720px) { .stack > * + * { margin-top: var(--flow-lg); } }  /* #29: content needs room, not just sections */
/* #59: a section IS a stack. h1/h2/lists carry margin 0 and the brand had no rule for
   the space between blocks, so a headline sat on its lede at 0px. Applies to the
   section's own children under either nesting (main.wrap > section.sec, or
   section.sec > .wrap).
   The flow is set as the PREVIOUS block's margin-bottom, not the next one's margin-top:
   adjacent margins collapse to the LARGER of the two, so a block that asks for more
   room above itself (ol.seq, .cta-row) keeps it, and only the 0px pairs change. Setting
   margin-top instead overrode those and shrank them — measured, 48px -> 32px. */
:is(.sec, .sec > .wrap) > :not(:last-child):not(.eyebrow) { margin-bottom: var(--flow); }   /* the eyebrow keeps its tight bottom margin: the label stays on its headline */
@media (min-width: 720px) { :is(.sec, .sec > .wrap) > :not(:last-child):not(.eyebrow) { margin-bottom: var(--flow-lg); } }

.skip-link { position: absolute; left: -999px; top: var(--s1); z-index: 100; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s2); background: var(--navy); color: var(--ground); border-radius: var(--r-card); }
.skip-link:focus { left: var(--s1); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (min-width: 720px) {
  :root { --gutter: 48px; }
  h2 { font-size: 1.95rem; letter-spacing: -0.035em; }
  h3 { font-size: 1.2rem; }
  .lede { font-size: 1.35rem; max-width: 27rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
