/*
 * 365 marketing design system — tokens (BUILD 022 Public Signal).
 * The one place colours, type, spacing, rules, motion and halftone settings are named.
 * Human reference: docs/public-site/DESIGN_SYSTEM.md. Contrast figures there are measured, not guessed.
 */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/newsreader-latin-opsz-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/newsreader-latin-opsz-italic.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  /* ---- colour: raw palette (founder starting palette, adjusted for contrast) */
  --c-void: #08090a;
  --c-graphite: #252628;
  --c-graphite-2: #303134;
  --c-paper: #eeeae3;
  --c-paper-shade: #e1dcd3;
  --c-ink: #2d2926;
  --c-ink-soft: #58544e;
  --c-white: #ffffff;
  --c-bone: #e0dcd3; /* text on void / graphite */
  --c-bone-soft: #a9a59d;
  --c-cyan: #2295b7; /* marks and fills only on paper */
  --c-cyan-ink: #1e617d; /* cyan that may carry text on paper */
  --c-cyan-night: #62bddb; /* cyan on void / graphite */
  --c-magenta: #c45f86;
  --c-magenta-ink: #903d58;
  --c-magenta-night: #e791ad;
  --c-yellow: #d4c14f;
  --c-yellow-night: #e4d265;
  --c-rule-day: #92908b;
  --c-rule-night: #5c5b58;

  /* ---- type: three voices */
  --f-display: 'Newsreader', 'Iowan Old Style', 'Times New Roman', serif; /* editorial voice */
  --f-text: 'Archivo', 'Helvetica Neue', Arial, sans-serif; /* plain voice */
  --f-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace; /* terminal voice */

  --t-banner: clamp(2.75rem, 1.2rem + 7.4vw, 8.25rem);
  --t-h1: clamp(2.5rem, 1.3rem + 5.2vw, 6rem);
  --t-h2: clamp(2rem, 1.3rem + 3vw, 4rem);
  --t-h3: clamp(1.375rem, 1.15rem + 0.9vw, 2rem);
  --t-dek: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
  --t-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);
  --t-small: 0.9375rem;
  --t-label: 0.75rem;
  --t-numeral: clamp(3rem, 2rem + 4vw, 6rem);

  /* ---- spacing: 4px base */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* ---- grid */
  --grid-max: 82.5rem; /* 1320px */
  --grid-cols: 12;
  --gutter: 1.5rem;
  --margin: 3rem;

  /* ---- rules and borders */
  --rule: 1px;
  --rule-heavy: 3px;
  --radius: 0; /* square by default: nothing is a rounded card */

  /* ---- motion */
  --m-ink: 180ms; /* colour and opacity only */
  --m-move: 320ms;
  --m-settle: 700ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* ---- halftone */
  --dot-fine: 3px;
  --dot-rest: 5px;
  --dot-coarse: 8px;

  /* ---- breakpoints (reference; media queries cannot read variables)
     pocket < 768px · berliner 768–1199px · broadsheet >= 1200px */
}

@media (max-width: 1199px) {
  :root {
    --gutter: 1.25rem;
    --margin: 2rem;
  }
}
@media (max-width: 767px) {
  :root {
    --gutter: 1rem;
    --margin: 1.125rem;
  }
}

/* ---- surfaces: a section picks one; everything inside reads the semantic names */
.surface-void,
.surface-graphite {
  --bg: var(--c-void);
  --bg-raised: var(--c-graphite);
  --fg: var(--c-bone);
  --fg-soft: var(--c-bone-soft);
  --line: var(--c-rule-night);
  --cyan: var(--c-cyan-night);
  --cyan-text: var(--c-cyan-night);
  --magenta: var(--c-magenta-night);
  --magenta-text: var(--c-magenta-night);
  --yellow: var(--c-yellow-night);
  --focus: var(--c-yellow-night);
  --ht-fg: var(--c-bone);
  --ht-blend: lighter;
  color-scheme: dark;
}
.surface-graphite {
  --bg: var(--c-graphite);
  --bg-raised: var(--c-graphite-2);
}
.surface-paper {
  --bg: var(--c-paper);
  --bg-raised: var(--c-paper-shade);
  --fg: var(--c-ink);
  --fg-soft: var(--c-ink-soft);
  --line: var(--c-rule-day);
  --cyan: var(--c-cyan);
  --cyan-text: var(--c-cyan-ink);
  --magenta: var(--c-magenta);
  --magenta-text: var(--c-magenta-ink);
  --yellow: var(--c-yellow);
  --focus: var(--c-cyan-ink);
  --ht-fg: var(--c-ink);
  --ht-blend: multiply;
  color-scheme: light;
}
