/* tokens.css: design tokens v1 (DESIGN-dev U12, U13a; spec docs/design/system/tokens.md).
   Role names for the landing system. Loaded after style.css and fixes-p0.css; it only ADDS names
   (the legacy --background-color, --text-color, --accent-color ... in style.css keep their values
   and are not redefined here, so nothing outside the rules that use these names moves).
   Where a role equals a legacy value it is written as that value so the two cannot drift.
   Only tokens that a stylesheet uses are declared; add a token with its first use. */

:root {
  /* colour roles */
  --color-surface: #262626;
  --color-canvas: #1E1E1E; /* page ground; first use: the image-backed hero (hero-banner.md delta 2). Legacy --background-color keeps the same value. */
  --color-line: rgba(247, 246, 243, .14);
  --color-line-strong: rgba(247, 246, 243, .32);
  --color-line-control: rgba(247, 246, 243, .45); /* form field borders: 4.2:1 on canvas, 4.0:1 on surface (non-text >= 3:1) */
  --color-error: #FF6B6B;
  --color-surface-2: #2B2A2A;
  --color-text: #F7F6F3;
  --color-text-muted: #D9D9D9;
  --color-accent: #93DC92;
  --color-accent-hover: #72C271;
  --color-on-accent: #1E1E1E;

  /* scrims: text on a photo never sits on the bare image (landing-v1.md D7) */
  --scrim-image-text: linear-gradient(180deg, rgba(30, 30, 30, .78) 0%, rgba(30, 30, 30, .88) 60%, rgba(30, 30, 30, .94) 100%);
  --scrim-card: linear-gradient(to top, rgba(30, 30, 30, .92) 0%, rgba(30, 30, 30, .55) 55%, transparent 100%);

  /* type */
  --font-sans: "IBM", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --type-h2: clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
  --type-eyebrow: clamp(1.125rem, 1rem + .4vw, 1.375rem);
  --type-body: clamp(1rem, .95rem + .25vw, 1.125rem);
  --type-small: clamp(.875rem, .85rem + .1vw, .9375rem);
  --font-serif: "Lora", Georgia, serif;
  --type-hero: clamp(2rem, 1.6rem + 2vw, 3rem);
  --type-mono: .95em;

  /* space and layout (--space-*, --container-max, --gutter, --measure stay in style.css) */
  --section-inset: max(var(--gutter), (100% - var(--container-max)) / 2);
  --section-pad: var(--space-2xl);
  --head-gap: var(--space-s);
  --head-to-body: var(--space-l);
  --grid-gap: var(--space-m);

  /* radius, motion */
  --radius-s: .5rem;
  --radius-m: .75rem;
  --dur-fast: 150ms;
  --dur-disclosure: 250ms;
}

@media (max-width: 600px) {
  :root {
    --section-pad: var(--space-xl);
  }
}
