/* ==========================================================================
   BOARDTAPE.ORG: DESIGN TOKENS (Broadcast LCD Putty & Cobalt)
   ========================================================================== */

@font-face {
  font-family: "Overused Grotesk";
  src: url("/assets/fonts/OverusedGroteskRoman-VF.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Commit Mono";
  src: url("/assets/fonts/CommitMono-400-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Commit Mono";
  src: url("/assets/fonts/CommitMono-700-Regular.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* 1. COLOR TOKENS (OKLCH, WCAG AA verified) */
  --bg-canvas:           oklch(0.905 0.018 115);  /* Dot-matrix putty (#DFE1D4) */
  --bg-subtle:           oklch(0.840 0.024 118);  /* Recessed LCD panel (#C9CDBC) */
  --bg-elevated:         oklch(0.945 0.012 114);  /* Bright index sheet (#ECEEE4) */
  --bg-hardware:         oklch(0.160 0.015 125);  /* Inverted matte rack bay (#0C0E08) */
  --bg-hardware-deep:    oklch(0.115 0.012 125);  /* Recessed terminal well */

  --ink-primary:         oklch(0.190 0.020 125);  /* Graphite-olive ink (#12150B) */
  --ink-secondary:       oklch(0.390 0.020 125);  /* Secondary body copy (#42473B) */
  --ink-muted:           oklch(0.450 0.018 125);  /* Timecodes / captions (#53574C) */
  --ink-on-hardware:     oklch(0.920 0.014 115);  /* Silkscreen on dark (#E4E6DB) */
  --ink-on-hw-muted:     oklch(0.710 0.016 118);  /* Hardware metadata (#A0A398) */

  --accent:              oklch(0.455 0.195 262);  /* Broadcast Cobalt */
  --accent-hover:        oklch(0.395 0.185 262);  /* Pressed Cobalt */
  --accent-ink:          oklch(0.975 0.006 115);  /* Text on Cobalt CTA */
  --accent-subtle:       oklch(0.845 0.045 256);  /* Active row highlight */
  --accent-on-hardware:  oklch(0.720 0.155 258);  /* Cobalt links/focus on dark */
  --bg-cobalt-deep:      oklch(0.370 0.175 262);  /* Recessed Cobalt hardware bay */
  --ink-on-cobalt-muted: oklch(0.910 0.025 255);  /* Secondary copy on Cobalt */
  --rule-cobalt-hairline: oklch(0.975 0.006 115 / 0.34);
  --pixel-cobalt-grid:   oklch(0.975 0.006 115 / 0.11);

  --status-ok:           oklch(0.440 0.125 148);  /* Copied / OK on light */
  --status-ok-hw:        oklch(0.770 0.145 148);  /* Ready LED on dark */

  --rule-hairline-color: oklch(0.695 0.022 118);  /* Internal grid rule */
  --rule-strong-color:   oklch(0.190 0.020 125);  /* Band boundary rule */
  --rule-hw-color:       oklch(0.295 0.016 125);  /* Dark bay grid rule */
  --pixel-watermark:     oklch(0.190 0.020 125 / 0.055);
  --pixel-grid-dot:      oklch(0.190 0.020 125 / 0.11);

  --focus-ring:          var(--accent);
  --focus-offset:        2px;

  /* 2. TYPOGRAPHY TOKENS */
  --font-display: "Overused Grotesk", ui-sans-serif, system-ui, -apple-system,
                  "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body:    "Overused Grotesk", ui-sans-serif, system-ui, -apple-system,
                  "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    "Commit Mono", ui-monospace, SFMono-Regular, Menlo,
                  Monaco, Consolas, "Liberation Mono", monospace;

  --text-hero:     clamp(2.35rem, 1.35rem + 3.8vw, 5.15rem);
  --text-h2:       clamp(1.65rem, 1.15rem + 1.8vw, 2.85rem);
  --text-h3:       clamp(1.15rem, 1.02rem + 0.5vw, 1.45rem);
  --text-lead:     clamp(1.0625rem, 0.98rem + 0.35vw, 1.3125rem);
  --text-body:     1rem;
  --text-code:     0.875rem;
  --text-stamp:    0.75rem;

  --leading-hero:  0.98;
  --leading-h2:    1.08;
  --leading-h3:    1.22;
  --leading-body:  1.58;
  --leading-code:  1.60;
  --track-tight:   -0.028em;
  --track-normal:  0em;
  --track-stamp:   0.07em;

  --measure-headline: 18ch;
  --measure-prose:    60ch;
  --measure-compact:  46ch;

  /* 3. FULL-BLEED LAYOUT, GRID & SPACING TOKENS (4px base) */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.5rem;
  --space-6:   2rem;
  --space-8:   3rem;
  --space-10:  4rem;
  --space-12:  5.5rem;
  --space-16:  7.5rem;

  --gutter-x:         clamp(1rem, 2.6vw, 3rem);
  --rail-width:       clamp(2.5rem, 3.4vw, 3.75rem);
  --band-pad-y:       clamp(3.25rem, 6vw, 6.25rem);
  --band-pad-tight:   clamp(1.5rem, 3vw, 2.75rem);
  --header-height:    3.5rem;

  --split-hero:       minmax(0, 1.28fr) minmax(0, 1fr);
  --split-ledger:     minmax(0, 0.72fr) minmax(0, 1.28fr);
  --split-quickstart: minmax(0, 0.85fr) minmax(0, 1.15fr);

  --rule-hairline:    1px;
  --rule-heavy:       2px;
  --rule-pixel:       4px;
  --radius-none:      0px;
  --pixel-unit:       4px;
  --grid-pitch:       24px;

  /* 4. MOTION & DISCIPLINED PARALLAX TOKENS */
  --dur-instant:   100ms;
  --dur-fast:      150ms;
  --dur-base:      240ms;
  --dur-slow:      420ms;
  --ease-snap:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-step:     steps(4, end);

  --px-depth-bg:   0.08;
  --px-depth-grid: 0.06;
  --px-depth-rail: -0.10;
  --px-max-shift:  44px;

  --z-backdrop:    0;
  --z-content:     10;
  --z-rail:        20;
  --z-header:      40;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast:      0.01ms;
    --dur-base:      0.01ms;
    --dur-slow:      0.01ms;
    --px-depth-bg:   0;
    --px-depth-grid: 0;
    --px-depth-rail: 0;
    --px-max-shift:  0px;
  }
}
