/* tokens.css — Designer. Lean Six Sigma: precise, calm, data-minded, trustworthy.
   Palette: cool paper + deep navy ink, ONE accent: process teal #0a7468 (5.7:1 on white). Belt colours are supporting
   tokens (Yellow, Green, Black), always shown with a text label, never colour alone.
   Type: system sans; monospace for sigma levels, counts, prices, labels. Bold tight display scale with clamp().
   Texture: faint graph-paper grid and control-chart hairlines from CSS gradients only. No images.
   Motion: one easing, 400-900 ms, 60 ms stagger; transform/opacity/filter only; reduced motion shows everything at once. */
:root {
  /* palette */
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #e8eef6;
  --text: #0c1b33;            /* 15:1 on --bg */
  --text-muted: #47566d;      /* 6.6:1 on --bg */
  --line: #d2dae6;
  --dark: #08142a;            /* deep navy band */
  --dark-2: #10294a;
  --on-dark: #f2f6fb;         /* 14:1 on --dark */
  --on-dark-muted: #aebfd6;   /* 7.6:1 on --dark */
  --accent: #0a7468;
  --accent-strong: #07574d;
  --accent-soft: #d6efec;
  --accent-on-dark: #5fd9c7;  /* 7:1 on --dark */
  --on-accent: #ffffff;
  /* bright supporting colours: fills, chips, big type, calendar days. Use the -ink versions for small text on light. */
  --sun: #ffc21a; --sun-ink: #6e4a00;   /* gold */
  --ocean: #2a6fdb; --ocean-ink: #1a4fb0;   /* sky blue */
  --palm: #2e9e4f; --palm-ink: #1b6b34;     /* paprika (name kept) */
  --violet: #111827; --violet-ink: #111827;   /* periwinkle (name kept) */
  --success: #1c6b4a;
  --danger: #b00020;
  --focus: #1b4fd1;                 /* on light: 7:1 on cream */
  --focus-on-dark: #ffd24a;         /* on dark bands and footer */

  /* type */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.2rem, 1rem + .8vw, 1.5rem);
  --fs-step: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);   /* scrollytelling step text */
  --fs-h2: clamp(2rem, 1.2rem + 3.6vw, 4.25rem);
  --fs-h1: clamp(2.75rem, 1.4rem + 6vw, 7rem);
  --fs-giant: clamp(5rem, 2rem + 16vw, 16rem);        /* marquee / changing word */
  --lh-tight: 1.02;
  --lh-snug: 1.2;
  --lh-body: 1.6;
  --track-display: -.035em;
  --track-h2: -.025em;
  --measure: 65ch;

  /* spacing, radius, shadow */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem;
  --section: clamp(5rem, 12vw, 10rem);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius-sm: .75rem; --radius: 1.25rem; --radius-lg: 2rem; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(12, 27, 51, .06), 0 2px 8px rgba(12, 27, 51, .05);
  --shadow: 0 6px 24px rgba(12, 27, 51, .08), 0 2px 6px rgba(12, 27, 51, .05);
  --shadow-lg: 0 24px 60px rgba(12, 27, 51, .16);
  --glow: radial-gradient(60% 60% at 50% 40%, rgba(10, 116, 104, .20), rgba(42, 111, 219, .08) 50%, transparent 72%);
  --gradient-text: linear-gradient(100deg, #07574d 0%, #0a7468 50%, #1a6fd0 100%);   /* blue only: stays crisp, large type only */
  --gradient-text-dark: linear-gradient(100deg, #5fd9c7 0%, #ffffff 50%, #ffd24a 100%);

  /* belts: fills with a label on top; -ink for small text on light */
  --belt-yellow: #f2c200; --belt-yellow-ink: #6b5400;
  --belt-green: #2e9e4f;  --belt-green-ink: #1b6b34;
  --belt-black: #111827;  --belt-black-ink: #111827;

  /* booking calendar states (always paired with a text label or icon, never colour alone) */
  --slot-free: #d6efec;   --slot-free-text: #07574d;
  --slot-booked: #e3e7ee; --slot-booked-text: #4f5b6e;
  --slot-selected: #0a7468; --slot-selected-text: #ffffff;
  --slot-today: #1b4fd1;  /* ring colour for today */

  /* graph-paper grid and control-chart hairlines, CSS only */
  --grid: linear-gradient(rgba(12, 27, 51, .06) 1px, transparent 1px) 0 0 / 2rem 2rem,
          linear-gradient(90deg, rgba(12, 27, 51, .06) 1px, transparent 1px) 0 0 / 2rem 2rem;
  --grid-dark: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 2rem 2rem,
               linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 2rem 2rem;
  --control-line: repeating-linear-gradient(90deg, rgba(10, 116, 104, .5) 0 8px, transparent 8px 14px);  /* dashed centre line */

  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: 400ms;
  --dur: 650ms;
  --dur-slow: 900ms;
  --stagger: 60ms;
  --rise: 1.25rem;            /* reveal travel distance */
  --blur-in: 6px;             /* reveal start blur */
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur: 0ms; --dur-slow: 0ms; --stagger: 0ms; --rise: 0; --blur-in: 0; }
}

/* CSS-only accents */
.text-gradient {
  background: var(--gradient-text);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.band--dark .text-gradient { background-image: var(--gradient-text-dark); }
.glow { background-image: var(--glow); }

/* Graph-paper accent: add class "grid" to a band or hero. Decorative only; text sits above it. */
.grid { background-image: var(--grid); }
.band--dark.grid, .band--dark .grid { background-image: var(--grid-dark); }
.control-line { height: 2px; background-image: var(--control-line); }
.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Keyboard focus stays visible on dark surfaces: every focus rule reads var(--focus), so swap it here. */
.band--dark, .site-footer { --focus: var(--focus-on-dark); }
