/* Spectrum: tokens. Taken from the round 4 canvas frame.
   Components read the semantic tokens only. Spacing is the 4px scale plus three layout tokens. */

@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-var.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* raw colour */
  --night: #05070B;
  --steel: #46698C;
  --frost: #B4D2F0;
  --paper: #EEF1F4;
  --mist: #C5CDD5;
  --slate: #8E99A4;
  --signal: #FF6B3D;

  /* semantic colour */
  --bg: var(--night);
  --fg: var(--paper);
  --fg-body: var(--mist);
  --fg-quiet: var(--slate);
  --accent: var(--signal);
  --line: rgba(238, 241, 244, 0.10);
  --line-strong: rgba(238, 241, 244, 0.24);
  --glass: rgba(238, 241, 244, 0.035);
  --glass-on: rgba(238, 241, 244, 0.06);

  /* type: six sizes */
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --t-display: clamp(56px, 7.8vw, 112px);
  --t-h2: clamp(40px, 4.45vw, 64px);
  --t-h3: clamp(28px, 3vw, 44px);
  --t-lead: 18px;
  --t-body: 16px;
  --t-small: 12px;
  --track-tight: -0.065em;
  --track-head: -0.06em;

  /* spacing: 4px scale */
  --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;
  --s-10: 128px;

  /* layout: one section rhythm, one heading gap, one column gap */
  --section: 96px;
  --head-gap: 48px;
  --col-gap: 24px;
  --gutter: 24px;
  --max: 1328px;
  --control: 44px;
  --header: 76px;
  --acc-in: 104px;

  /* motion: one curve, three durations */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 0.2s;
  --mid: 0.6s;
  --slow: 1.6s;
}

@media (min-width: 768px) {
  :root {
    --section: 160px;
    --head-gap: 64px;
    --col-gap: 48px;
    --gutter: 40px;
    --acc-in: 200px;
  }
}

@media (min-width: 1024px) {
  :root {
    --section: 200px;
    --col-gap: 64px;
    --gutter: 56px;
  }
}
