/* Offpx brand tokens. Source: Offpx Brand Guidelines v1.0 and DESIGN.md.
   Mostly paper and carbon. One Stray per surface. */
@font-face { font-family: 'Geist'; src: url('/assets/fonts/geist-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/assets/fonts/geist-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/geist-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  /* brand */
  --carbon: #171717;
  --paper: #F5F4F0;
  --white: #FFFFFF;
  --stray: #FF5436;
  --stray-ink: #CC3A20;
  --graphite: #6B6A64;
  --ash: #A3A39C;
  /* product meaning colours: only where they mean this */
  --hl-a: #2A51FD;      /* element A */
  --hl-b: #FFB224;      /* element B */
  --measure: #E01563;   /* a measurement */
  --ok: #3DD68C;        /* verified */
  --ok-ink: #0B3D26;
  /* surfaces */
  --stage: #0E0E0E;
  --raised: #242423;
  --line: #E8E7E2;
  --line-strong: #D6D5CF;
  --line-dark: rgba(245, 244, 240, .1);
  --dim: #76766F;

  /* type */
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --display: clamp(64px, 11vw, 196px);
  --h1: clamp(48px, 7.4vw, 128px);
  --h2: clamp(40px, 5.6vw, 96px);
  --h3: clamp(28px, 3vw, 48px);
  --lead: clamp(18px, 1.5vw, 22px);
  --body: 17px;
  --small: 14px;
  --label: 12px;

  /* space: 4px base */
  --gutter: 64px;
  --max: 1440px;
  --r-sm: 4px;
  --r-md: 7px;
  --r-lg: 10px;

  /* motion: the film's curves */
  --ease-out: cubic-bezier(.16, 1, .3, 1);        /* exponential out */
  --ease-in: cubic-bezier(.7, 0, .84, 0);         /* exponential in */
  --ease-in-out: cubic-bezier(.87, 0, .13, 1);    /* exponential in-out */
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);   /* back out */
  --header-h: 64px;
  /* spacing steps, all multiples of 4 */
  --sec: 180px;      /* between sections */
  --story-in: 560px; /* hero buttons to the story */
  --story-out: 300px;/* the story's last visual to the features */
  --col: 112px;      /* between columns */
  --block: 48px;     /* a heading to its content */
  --lead-gap: 32px;  /* hero lines to each other */
}

/* Themes. The site follows the visitor's system setting; the header toggle overrides it.
   Components use these semantic tokens; brand colours above stay constant. */
:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg: #F5F4F0;          /* Warm paper */
  --bg-2: #FFFFFF;        /* raised: cards, wells */
  --bg-3: #ECEBE6;        /* sunken: stages */
  --fg: #171717;          /* Carbon */
  --fg-2: #6B6A64;        /* Graphite */
  --fg-3: #84837C;
  --rule: #E8E7E2;        /* hairline */
  --rule-2: #D6D5CF;
  --dots: rgba(107, 106, 100, .28);
  --inv-bg: #171717; --inv-fg: #F5F4F0;
  --glass: rgba(245, 244, 240, .86);
  --shadow: 0 30px 80px -30px rgba(23, 23, 23, .3);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171717;          /* Carbon */
  --bg-2: #1F1F1E;
  --bg-3: #0F0F0F;
  --fg: #F5F4F0;          /* Warm paper */
  --fg-2: #A3A39C;        /* Ash */
  --fg-3: #8A8A83;
  --rule: rgba(245, 244, 240, .1);
  --rule-2: rgba(245, 244, 240, .18);
  --dots: rgba(245, 244, 240, .16);
  --inv-bg: #F5F4F0; --inv-fg: #171717;
  --glass: rgba(23, 23, 23, .82);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
}

@media (max-width: 1200px) { :root { --gutter: 32px; --sec: 152px; --story-in: 472px; --story-out: 252px; --col: 64px; --block: 40px; } }
@media (max-width: 760px)  { :root { --gutter: 16px; --sec: 120px; --story-in: 372px; --story-out: 200px; --col: 32px; --block: 40px; --lead-gap: 24px; } }
