/* ASOHero design tokens. Source of truth: docs/brand/design-system.md.
   Mirrored by hand in server/public/teardown/styles.mjs (that page must stay
   self-contained). Change both together. */

:root {
  /* Colour: 50 ground */
  --paper: #ffffff;
  --paper-2: #f5f7f9;

  /* Colour: 30 ink */
  --ink: #0b1b2e;
  --ink-2: #47566a;
  --ink-3: #5d6979;
  --rule: #dfe3e8;
  --control: #7b8798;

  /* Colour: 20 accent */
  --accent: #2a44d4;
  --accent-hover: #1f35b0;
  --accent-tint: #eef1fd;
  --accent-ring: rgb(42 68 212 / 0.3);

  /* On the ink band */
  --on-ink: #ffffff;
  --on-ink-2: #a9b6c6;
  --on-ink-3: #8494a8;
  --rule-on-ink: #24364d;
  --accent-on-ink: #8fa0ff;

  /* Status: shapes and form errors only */
  --good: #1a7a3c;
  --warn: #9a5800;
  --bad: #c0262d;
  --bad-tint: #fdf1f1;

  /* Type */
  --font-sans: "Schibsted Grotesk Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --weight-body: 400;
  --weight-ui: 500;
  --weight-head: 600;

  --display-size: 36px;
  --display-line: 40px;
  --h2-size: 28px;
  --h2-line: 34px;
  --h3-size: 18px;
  --h3-line: 26px;
  --lead-size: 18px;
  --lead-line: 28px;
  --body-size: 16px;
  --body-line: 26px;
  --ui-size: 16px;
  --ui-line: 24px;
  --small-size: 14px;
  --small-line: 22px;
  --micro-size: 13px;
  --micro-line: 20px;
  --figure-size: 40px;

  --track-display: -0.025em;
  --track-h2: -0.02em;
  --track-h3: -0.01em;
  --track-lead: -0.005em;
  --track-micro: 0.01em;

  /* Spacing, base 4 */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  /* Layout */
  --content: 1080px;
  --gutter: 16px;
  --inset: 0px;
  --grid-gap: 16px;
  --section-y: var(--s8);
  --hero-top: var(--s6);
  --header-h: 64px;

  /* Shape */
  --radius-control: 4px;
  --radius-check: 2px;
  --radius-icon: 22.37%;

  /* Fields (phase 4): flat planes that bleed to an edge and carry the
     measuring grid. They count toward the navy 30 and the cobalt 20. The
     story column uses a deeper cobalt than the action colour, because full
     cobalt there outweighed the 20 at full-page scale. */
  --field-tint-line: #dde3fa;
  --field-tint-tick: #b7c2f1;
  --field-cobalt: #1a2a80;
  --field-cobalt-line: rgb(255 255 255 / 0.08);
  --field-grey-line: rgb(11 27 46 / 0.045);
  --shot-line: #cfd5dd;

  /* Artwork: made-up app icons only (phase 4). Outside the 50/30/20 split,
     like photography. One hue per icon, a tonal ramp from hi (top) to lo
     (bottom), a deep shade for glyphs on the light hues and second tones.
     OKLCH lightness 0.72 to 0.60 and chroma near 0.11 for every hue, so the
     wall sits with navy and cobalt instead of reading as candy. */
  --art-coral-hi: #e38877; --art-coral-lo: #bf614f; --art-coral-deep: #723126;
  --art-amber-hi: #d69458; --art-amber-lo: #b26e27; --art-amber-deep: #693b03;
  --art-gold-hi: #bca25a; --art-gold-lo: #997d2a; --art-gold-deep: #584506;
  --art-moss-hi: #90b26d; --art-moss-lo: #6a8d43; --art-moss-deep: #39501c;
  --art-jade-hi: #66b79a; --art-jade-lo: #369375; --art-jade-deep: #0e5440;
  --art-teal-hi: #60b4bd; --art-teal-lo: #2b8f9a; --art-teal-deep: #025259;
  --art-sky-hi: #6dacd9; --art-sky-lo: #4188b6; --art-sky-deep: #1a4c6c;
  --art-iris-hi: #949de9; --art-iris-lo: #7078c7; --art-iris-deep: #3d4177;
  --art-plum-hi: #c78ec5; --art-plum-lo: #a367a1; --art-plum-deep: #5f365e;
  --art-rose-hi: #df8697; --art-rose-lo: #bb5f72; --art-rose-deep: #6f303e;

  /* Motion */
  --fast: 120ms;
  --base: 200ms;
  --slow: 280ms;
  --house: 300ms;
  --long: 600ms;
  --stagger: 80ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 600px) {
  :root {
    --gutter: 32px;
    --inset: var(--s5);
    --hero-top: var(--s9);
  }
}

@media (min-width: 900px) {
  :root {
    --display-size: 56px;
    --display-line: 60px;
    --h2-size: 36px;
    --h2-line: 44px;
    --h3-size: 20px;
    --h3-line: 28px;
    --lead-size: 20px;
    --lead-line: 32px;
    --body-size: 17px;
    --body-line: 28px;
    --figure-size: 48px;
    --grid-gap: 24px;
    --section-y: var(--s9);
    /* The hero is held to a laptop fold: the button must clear 1280x800. */
    --hero-top: var(--s7);
  }
}

@media (min-width: 1200px) {
  :root {
    --gutter: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --fast: 0ms;
    --base: 0ms;
    --slow: 0ms;
    --house: 0ms;
    --long: 0ms;
    --stagger: 0ms;
  }
}
