/* Random Animal Generator — design tokens
   Visual source of truth for W1. Production must self-host these files.
   Do not swap in Inter, system UI stacks, or a Google Fonts / Typekit CDN.
   Convert the bundled Latin TTF subsets to woff2 at build time if desired.
*/

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-variable-latin.woff2") format("woff2"),
       url("../fonts/newsreader-variable-latin.ttf") format("truetype-variations"),
       url("../fonts/newsreader-variable-latin.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-variable-latin.woff2") format("woff2"),
       url("../fonts/newsreader-italic-variable-latin.ttf") format("truetype-variations"),
       url("../fonts/newsreader-italic-variable-latin.ttf") format("truetype");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
  font-optical-sizing: auto;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-variable-latin.woff2") format("woff2"),
       url("../fonts/source-sans-3-variable-latin.ttf") format("truetype-variations"),
       url("../fonts/source-sans-3-variable-latin.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-italic-variable-latin.woff2") format("woff2"),
       url("../fonts/source-sans-3-italic-variable-latin.ttf") format("truetype-variations"),
       url("../fonts/source-sans-3-italic-variable-latin.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Color — warm rag paper + umber ink + burnt sienna.
     Not purple-blue-white. Not kickofflist forest #0b3d2e. */
  --paper: #efe6d4;
  --paper-raised: #f7f1e3;
  --paper-inset: #e7dcc8;
  --ink: #1c1710;
  --ink-muted: #5a5246;
  --ink-faint: #8a8172;
  --rule: #c3b79c;
  --rule-strong: #8f8268;
  --sienna: #8f3518;
  --sienna-deep: #6c2710;
  --sienna-soft: #c46a42;
  --moss: #38553a;
  --moss-soft: #e4eadc;
  --oxide: #8a2e28;
  --oxide-soft: #f3e0d8;
  --focus: #8f3518;
  --stamp: #8f3518;

  /* Type */
  --font-display: "Newsreader", "Georgia", "Times New Roman", serif;
  --font-ui: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;

  --fs-10: 0.625rem;    /* 10 — rare */
  --fs-11: 0.6875rem;   /* 11 — kickers, credits */
  --fs-12: 0.75rem;     /* 12 */
  --fs-13: 0.8125rem;   /* 13 — hint, footer */
  --fs-14: 0.875rem;    /* 14 — chips, secondary */
  --fs-15: 0.9375rem;   /* 15 — UI */
  --fs-16: 1rem;        /* 16 */
  --fs-17: 1.0625rem;   /* 17 — body */
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;      /* H3 */
  --fs-32: 2rem;        /* H2 */
  --fs-h1: clamp(2rem, 1.55rem + 1.6vw, 3.15rem);
  --fs-name: clamp(1.85rem, 1.4rem + 1.5vw, 2.85rem);

  --lh-tight: 1.15;
  --lh-ui: 1.35;
  --lh-body: 1.6;
  --measure: 62ch;

  /* Space (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Radii — tight, cut-label, not squircles */
  --r-sm: 2px;
  --r-md: 3px;

  /* Layout */
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 56px;
  --sticky-cta-h: 72px;
  --tool-bp: 900px; /* stacked below; two-column tool at 900+ */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  /* Motion — generate/re-roll: 150–200ms fade + shift only. Never exceed 1.5s. */
  --dur: 180ms;
  --dur-min: 150ms;
  --dur-max-allowed: 200ms;
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur: 0.01ms;
    --dur-min: 0.01ms;
    --dur-max-allowed: 0.01ms;
  }
}
