/* @CO — design tokens for atco.studio
 * Drop-in custom properties. Names in the first block match the existing site exactly.
 * Generated from the design system tokens.json. Black (dark) is the default; Sand (light) applies
 * with [data-theme="light"] on <html> or on any section. */

:root {
  /* ---- existing names (unchanged) ---- */
  --paper: var(--black);
  --paper-2: var(--night);
  --card: var(--charcoal);
  --ink: #f3f2ec;
  --ink-soft: #b3b2ab;
  --line: var(--smoke);
  --cobalt: var(--gentian);
  --cobalt-deep: #2c3bb8;
  --sky: var(--gentian-light);
  --on-cobalt: #ffffff;
  --sun: var(--asphodel);
  --pine: var(--night);
  --on-pine: #f3f2ec;
  --field: var(--night);
  --field-ink: #f3f2ec;
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 14px;

  /* ---- new: colour (Pinelands swatches first) ---- */
  --black: #000000;
  --night: #0c0c0c;
  --charcoal: #141414;
  --graphite: #1e1e1e;
  --smoke: #2a2a2a;
  --pitch-pine: var(--black);
  --pine-needle: var(--night);
  --cedar: var(--graphite);
  --sand: #ece8dc;
  --asphodel: #f5c431;
  --gentian: #4253e0;
  --gentian-light: #a3aeff;
  --cranberry: #e0475a;
  --cranberry-deep: #8e1f2c;
  --swamp-pink: #f07fa8;
  --milkwort: #f28c28;
  --sphagnum: #8db27a;
  --cedar-leaf: #4fc4ad;
  --treefrog: #c991f2;
  --cedar-water: #c27c3e;
  --pop-websites: var(--gentian-light);
  --pop-search: var(--sphagnum);
  --pop-reviews: var(--milkwort);
  --pop-ads: var(--cranberry);
  --pop-social: var(--swamp-pink);
  --pop-followup: var(--cedar-leaf);
  --pop-branding: var(--treefrog);
  --pop-planning: var(--sand);
  --stage: var(--black);
  --on-stage: #f5f4ee;
  --on-stage-soft: #b3b2ab;
  --cobalt-soft: #1d2758;
  --on-cobalt-soft: #e0e4ff;
  --sun-hover: #f8d35e;
  --on-sun: var(--black);
  --on-pine-soft: #b3b2ab;
  --field-line: #6e6e6e;
  --placeholder: #8e8e8e;
  --link: var(--gentian-light);
  --focus: var(--gentian-light);
  --focus-on-dark: var(--asphodel);
  --success: #6fd49a;
  --success-soft: #10291b;
  --error: #ff8a80;
  --error-soft: #331617;
  --logo-at: var(--asphodel);
  --background: var(--paper);
  --surface: var(--card);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --border: var(--line);
  --accent: var(--sun);
  --accent-ink: var(--on-sun);

  /* ---- new: radius, shadow ---- */
  --radius-sm: 8px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 12px 28px -12px rgba(0,0,0,0.7);
  --shadow-lg: 0 28px 56px -20px rgba(0,0,0,0.8);
  --shadow-stamp: 1px 1px 0 #8e1f2c, 2px 2px 0 #8e1f2c, 3px 3px 0 #8e1f2c, 4px 4px 0 #8e1f2c, 5px 5px 0 #8e1f2c, 6px 6px 0 #8e1f2c, 7px 7px 0 #8e1f2c, 8px 8px 0 #8e1f2c;
  --shadow-glow: 0 0 0 1px rgba(163,174,255,0.25), 0 0 32px rgba(66,83,224,0.45);

  /* ---- new: spacing and layout ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 144px;
  --content-max: 1240px;
  --gutter: 24px;
  --gutter-phone: 16px;
  --columns: 12;
  --header-height: 88px;
  --tap-min: 48px;

  /* ---- new: motion ---- */
  --dur-instant: 100ms;
  --dur-fast: 180ms;
  --dur-base: 280ms;
  --dur-slow: 480ms;
  --dur-reveal: 720ms;

  /* ---- new: type sizes (fluid between phone 390px and desktop 1280px) ---- */
  --fs-display: clamp(76px, 35.69px + 10.337vw, 168px);
  --fs-hero: clamp(74px, 41.57px + 8.315vw, 148px);
  --fs-h1: clamp(54px, 35.60px + 4.719vw, 96px);
  --fs-h2: clamp(40px, 29.48px + 2.697vw, 64px);
  --fs-h3: clamp(26px, 23.37px + 0.674vw, 32px);
  --fs-lead: clamp(19px, 17.69px + 0.337vw, 22px);
  --fs-body: clamp(17px, 16.56px + 0.112vw, 18px);
  --fs-small: 15px;
  --fs-caption: 13px;
  --fs-eyebrow: clamp(12px, 11.56px + 0.112vw, 13px);
  --lh-display: 0.86;
  --lh-heading: 0.92;
  --lh-body: 1.6;
  --tracking-eyebrow: 0.14em;
}

[data-theme="light"] {
  --pop-websites: #3446d6;
  --pop-search: #3d7a2a;
  --pop-reviews: #b25a0a;
  --pop-ads: #c02a3f;
  --pop-social: #bf3a70;
  --pop-followup: #147a68;
  --pop-branding: #8443c2;
  --pop-planning: #5f5a4b;
  --paper: #ece8dc;
  --paper-2: #e2ddcf;
  --card: #f8f6ef;
  --ink: #0e1e16;
  --ink-soft: #475a4e;
  --line: #cfcabb;
  --stage: var(--black);
  --on-stage: #f5f4ee;
  --on-stage-soft: #b3b2ab;
  --cobalt: #3446d6;
  --cobalt-deep: #2433b0;
  --cobalt-soft: #e2e5fb;
  --sky: #6f7ff0;
  --on-cobalt: #ffffff;
  --on-cobalt-soft: #e0e4ff;
  --sun: var(--asphodel);
  --sun-hover: #f8d35e;
  --on-sun: var(--black);
  --pine: var(--night);
  --on-pine: #f3f2ec;
  --on-pine-soft: #b3b2ab;
  --field: #ffffff;
  --field-ink: #0e1e16;
  --field-line: #6b766f;
  --placeholder: #6b766f;
  --link: #3446d6;
  --focus: #3446d6;
  --focus-on-dark: var(--asphodel);
  --success: #166534;
  --success-soft: #e3f1e8;
  --error: #b42318;
  --error-soft: #fbe9e7;
  --logo-at: #3446d6;
  --shadow-sm: 0 1px 2px rgba(20,32,26,0.08), 0 1px 1px rgba(20,32,26,0.04);
  --shadow-md: 0 12px 28px -12px rgba(20,32,26,0.25);
  --shadow-lg: 0 28px 56px -20px rgba(20,32,26,0.35);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 1ms; --dur-base: 1ms; --dur-slow: 1ms; --dur-reveal: 1ms; }
}
