/* LongTable marketing — design tokens, reset, self-hosted fonts, base typography.

   External CSS only (no inline styles/`<style>` anywhere) so the CloudFront CSP
   (`script-src 'self'; style-src 'self'`) holds and the Mozilla Observatory grade
   stays high. See AGENTS.md.

   Palette — "Hearth", the theme LongTable adopted on 2026-09-04 (LongTable-app/bonfire
   #5247, #5250) and shares with the app: Teal for actions, links and focus; deep Teal
   for button rest and the dark bands; one Coral highlight (the logo's full stop, small
   accents); a Bone ground with Linen washes; Deep Teal headings; the Walnut wordmark.
   Every text/background pairing below is AA (>=4.5:1); the accent *text* token is a
   lighter step than the accent *fill* so links read as links while clearing AA on bone. */

/* ---- Self-hosted variable fonts (font-src 'self') ----
   Latin subsets, cut to the weights the site sets (400-700) with fontTools'
   instancer (`fonttools varLib.instancer <font> wght=400:700`); the serif keeps
   its optical-size axis for the display sizes. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/source-sans-3.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/source-code-pro.woff2') format('woff2');
}

:root {
  /* brand — the Hearth palette the app uses: teal is the action, coral the one warm
     highlight, warm neutrals for the ground. Names follow the app's vocabulary. */
  --accent-strong: #175a61; /* deep teal: headings (7.04:1 on bone), nav links, ghost + primary buttons, fills */
  --accent-deep: #0e3d42; /* footer, deep band (the app's teal ramp, step 9) */
  --accent: #1f6e76; /* links, labels, list dots — AA on bone (5.29:1) */
  --accent-hover: #124950; /* primary button hover */
  --walnut: #3d2e1f; /* the wordmark's ink, for drawings that echo its table */
  --teal-ink: #253432; /* darkest body text */
  --teal-body: #3a4a46; /* body text on bone */
  --teal-muted: #5b6b67; /* secondary / helper text (5.02:1 on bone, 4.73:1 on warm-2) */
  --sage: #2f5943; /* success text */
  --sage-mid: #62a98c; /* progress bars, avatars */

  --bone: #f7f1e6; /* page background (linen paper), label on teal fills, text on dark */
  --white: #fffdf8; /* cards, raised surfaces (warm paper white) */
  --linen: #ece3d3; /* sand: one step down from the page, for soft section washes */
  --warm-2: #f1e9dc; /* warmer section wash */
  --border: #e4d9c6; /* hairline card/section edges */
  --border-2: #d5ccc6;
  --track: #efe9e2; /* progress track */

  --coral: #f08a66; /* light coral: warm accent on dark bands only — never text on bone (2.20:1) */
  --coral-bg: #fde3d9; /* warm badge fill */
  --coral-ink: #7a2e12; /* warm badge text (AA on coral-bg, 7.71:1) */
  --mint-bg: #e4f0e8; /* "going" / positive badge */
  --mint-ink: #2f5943;
  --on-dark-dim: #d5e6e8; /* links on dark */
  --on-dark-mute: #96b9bd; /* muted text on dark */

  /* Focus is teal, like every other action. The dark bands swap it for bone
     (layout.css), since teal on the deep band would not be seen. */
  --focus: #175a61;

  --display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Source Code Pro', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --radius: 4px;
  --radius-sm: 3px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Edge-to-edge side padding that follows the viewport, like the reference layout. */
  --edge: clamp(1rem, 4vw, 3rem);
  --nav-h: 4.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: light;
  /* Anchor targets clear the sticky nav (see #how, #roster, etc.). */
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bone);
  color: var(--teal-ink);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem); /* 17px to 19px */
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  color: var(--accent-deep);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

a {
  color: var(--accent);
}

/* Inline code spans (e.g. the utm_* parameter names in the privacy policy).
   `--mono` is the design token; the UA default would otherwise render these a
   couple of pixels below the body size and in an unrelated face. */
code {
  font-family: var(--mono);
  font-size: 0.9375em;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent-strong);
  color: var(--bone);
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* Numerals in product mocks line up in columns. */
.tabular {
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
