/* ==========================================================================
   NY Printer Guy — design tokens
   Direction: "Blue, gold & paper" — DCS of New York blue + gold lead, paper-white
   sections between, CMYK registration accents, Craig cartoon characters.
   Contrast ratios are documented in docs/design-system.md.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/public/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---- Color: brand ---------------------------------------------------- */
  --c-blue: #204297;          /* DCS of New York blue (dcsnewyork.com --color-primary) — header, hero, feature sections, buttons, links */
  --c-blue-700: #1a3573;      /* DCS hover / pressed */
  --c-blue-800: #152b5e;      /* DCS deep — footer, scrub stage */
  --c-blue-300: #9aa5ff;      /* links + accents on ink */
  --c-blue-150: #d6dbf8;      /* secondary text on blue-700/800 */
  --c-blue-100: #e4e7fb;      /* body text on blue (5.9:1) */
  --c-blue-50: #eceff8;       /* tinted surfaces */
  --c-yellow: #dec439;        /* DCS gold — headings/links on blue, call buttons, highlighter. NEVER text on light */
  --c-yellow-600: #c9ad22;    /* gold hover */
  --c-yellow-100: #f8f0c8;    /* soft highlight surface */

  /* ---- Color: CMYK accents (decorative; text only via the -700 values) -- */
  --c-cyan: #27aae1;
  --c-cyan-800: #0b6f99;
  --c-magenta: #ec168c;
  --c-magenta-700: #b0105f;
  --c-key: #141a3d;           /* "K" — same as ink */

  /* ---- Color: neutrals ------------------------------------------------- */
  --c-ink: #141a3d;           /* body text, dark sections */
  --c-ink-2: #1e2655;         /* raised surface on dark */
  --c-muted: #4f566e;         /* secondary text */
  --c-mist: #c9cde4;          /* secondary text on ink */
  --c-paper: #faf8f3;         /* page background */
  --c-paper-2: #f2efe6;       /* alternate section */
  --c-white: #ffffff;
  --c-line: #e3e0d6;          /* decorative dividers only */
  --c-field: #6b7190;         /* form field borders (≥3:1 UI contrast) */

  /* ---- Color: feedback ------------------------------------------------- */
  --c-error: #b42318;
  --c-error-bg: #fdecea;
  --c-success: #11703c;
  --c-success-bg: #e7f6ed;

  /* ---- Semantic aliases (light surface defaults) -------------------------
     Surfaces re-declare these: see "Surfaces" in main.css.
     Blue surface = blue background, white text, gold headline accents/links,
     gold buttons with blue text (the DCS palette in the lasergenesis.com layout). */
  --bg: var(--c-paper);
  --fg: var(--c-ink);
  --fg-muted: var(--c-muted);
  --heading: var(--c-ink);
  --accent: var(--c-blue);        /* headline accent, stat numbers, icons */
  --link: var(--c-blue);
  --link-hover: var(--c-blue-700);
  --eyebrow: var(--c-blue);
  --focus: var(--c-blue);
  --cmyk-k: var(--c-key);
  --rule: var(--c-line);

  /* ---- Type ------------------------------------------------------------ */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Fluid scale (360px → 1440px). Display sizes are for one-idea-per-screen moments. */
  --fs-mega:  clamp(3rem, 1.6rem + 6.2vw, 7.5rem);    /* hero statements */
  --fs-h1:    clamp(2.5rem, 1.6rem + 4vw, 5rem);
  --fs-h2:    clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-h3:    clamp(1.375rem, 1.2rem + .8vw, 1.875rem);
  --fs-h4:    clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --fs-lead:  clamp(1.125rem, 1.02rem + .5vw, 1.4375rem);
  --fs-body:  1.0625rem;  /* 17px */
  --fs-small: .9375rem;   /* 15px */
  --fs-xs:    .8125rem;   /* 13px — labels/eyebrows only */

  --lh-tight: 1.02;
  --lh-heading: 1.1;
  --lh-body: 1.6;
  --tracking-tight: -0.03em;
  --tracking-display: -0.045em;
  --tracking-eyebrow: 0.14em;

  /* ---- Space (4px base) ------------------------------------------------ */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 10rem);  /* calm sections breathe */
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);   /* 16px at phone width */
  --max-w: 75rem;        /* 1200px content */
  --max-w-wide: 90rem;   /* 1440px media */
  --max-w-text: 40rem;   /* ~70ch reading measure */

  /* ---- Shape ----------------------------------------------------------- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* ---- Elevation ------------------------------------------------------- */
  --sh-1: 0 1px 2px rgb(20 26 61 / .06), 0 1px 1px rgb(20 26 61 / .04);
  --sh-2: 0 6px 16px -4px rgb(20 26 61 / .12), 0 2px 4px rgb(20 26 61 / .06);
  --sh-3: 0 24px 48px -12px rgb(20 26 61 / .22), 0 6px 12px -4px rgb(20 26 61 / .08);
  --sh-focus: 0 0 0 3px var(--c-paper), 0 0 0 6px var(--focus);

  /* ---- Motion ---------------------------------------------------------- */
  --ease-out: cubic-bezier(.16, 1, .3, 1);      /* reveals: fast start, soft landing */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);  /* state swaps in pinned steps */
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);/* tiny UI only (button press) */
  --dur-1: 150ms;   /* hover, press */
  --dur-2: 300ms;   /* small UI transitions */
  --dur-3: 700ms;   /* reveal of a block */
  --dur-4: 1100ms;  /* hero word stagger total */
  --reveal-distance: 28px;   /* how far blocks travel up on reveal */
  --reveal-stagger: 70ms;    /* per word / per item */

  /* ---- Layout helpers -------------------------------------------------- */
  --header-h: 4.25rem;
  --mobile-bar-h: 3.75rem;
  --z-header: 50;
  --z-mobile-bar: 60;
  --z-menu: 70;
  --z-skip: 100;
}

/* Breakpoints (reference — CSS custom properties can't be used in @media):
   --bp-sm: 36rem  (576px)  large phones
   --bp-md: 48rem  (768px)  tablets — mobile simplifications switch off here
   --bp-lg: 64rem  (1024px) small laptops — full nav appears
   --bp-xl: 90rem  (1440px) wide desktop */

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-1: 0ms; --dur-2: 0ms; --dur-3: 0ms; --dur-4: 0ms;
    --reveal-distance: 0px; --reveal-stagger: 0ms;
  }
}
