/* Hallmark · custom theme · vibe: "slate tile, chalk slats, one brass note"
 * paper oklch(21% 0.016 257) · accent oklch(80% 0.12 84) brass · Unbounded + Geist (+ Geist Mono)
 * axes: dark / wide-geometric-sans / warm · design-system: design.md
 *
 * Vending Valley tokens. Source of truth for the marketing site, auth and onboarding.
 * Built from the logo: the slate of the app-icon tile (#262c35), the chalk white of the
 * VV slats and wordmark, and the brass the brand has always used for its one call to act.
 * Sellers' shop pages do NOT load this file; they keep their own shop theme.
 */
:root {
  color-scheme: dark light;

  /* Dark (default — the logo's own setting: white slats on a slate tile) */
  --color-paper:      oklch(21% 0.016 257);
  --color-paper-2:    oklch(25.5% 0.017 257);   /* the app-icon tile, #262c35 */
  --color-paper-3:    oklch(30% 0.019 257);
  --color-ink:        oklch(95.5% 0.005 257);   /* chalk, the slats */
  --color-ink-2:      oklch(83% 0.012 257);
  --color-muted:      oklch(70% 0.016 257);
  --color-rule:       oklch(36% 0.02 257);
  --color-rule-soft:  oklch(29% 0.018 257);
  --color-accent:     oklch(80% 0.12 84);       /* brass */
  --color-accent-2:   oklch(86% 0.11 88);
  --color-accent-ink: oklch(21% 0.03 80);
  --color-accent-wash: oklch(80% 0.12 84 / 0.12);
  --color-focus:      oklch(84% 0.13 86);
  --color-ok:         oklch(79% 0.13 155);
  --color-ok-wash:    oklch(79% 0.13 155 / 0.12);
  --color-warn:       oklch(83% 0.13 78);
  --color-warn-wash:  oklch(83% 0.13 78 / 0.12);
  --color-danger:     oklch(74% 0.14 25);
  --color-danger-wash: oklch(74% 0.14 25 / 0.12);
  --logo-filter:      none;                     /* logo art is white */

  --font-display: "Unbounded", "Geist", system-ui, sans-serif;
  --font-body:    "Geist", system-ui, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, monospace;

  /* 4-pt spacing scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 7rem;

  /* type scale, major third */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.25rem;
  --text-display-s: clamp(1.6rem, 1rem + 2.4vw, 2.6rem);
  --text-display:   clamp(2.2rem, 1.2rem + 4.4vw, 4.4rem);
  --text-hero:      clamp(1.75rem, 0.8rem + 3.2vw, 3.2rem); /* Unbounded is wide: sized so "Infrastructure" never breaks */

  --measure: 64ch;
  --radius-input: 8px;
  --radius-card: 12px;
  --radius-pill: 999px;
  --touch: 44px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-base: 240ms;

  /* the VV slats, as a hairline motif (Tier-A CSS art) */
  --slats: repeating-linear-gradient(-56deg, var(--color-ink) 0 2px, transparent 2px 9px);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --color-paper:      oklch(97.6% 0.004 257);
    --color-paper-2:    oklch(94.4% 0.006 257);
    --color-paper-3:    oklch(90.5% 0.009 257);
    --color-ink:        oklch(23% 0.018 257);
    --color-ink-2:      oklch(36% 0.02 257);
    --color-muted:      oklch(47% 0.02 257);
    --color-rule:       oklch(84% 0.012 257);
    --color-rule-soft:  oklch(90% 0.008 257);
    --color-accent:     oklch(50% 0.1 72);
    --color-accent-2:   oklch(44% 0.1 70);
    --color-accent-ink: oklch(98.5% 0.01 85);
    --color-accent-wash: oklch(50% 0.1 72 / 0.1);
    --color-focus:      oklch(45% 0.12 70);
    --color-ok:         oklch(46% 0.12 155);
    --color-ok-wash:    oklch(46% 0.12 155 / 0.1);
    --color-warn:       oklch(50% 0.12 65);
    --color-warn-wash:  oklch(60% 0.13 70 / 0.14);
    --color-danger:     oklch(50% 0.17 27);
    --color-danger-wash: oklch(50% 0.17 27 / 0.09);
    --logo-filter:      invert(1) brightness(0.32);   /* white logo art drawn in slate */
  }
}
:root[data-theme="light"] {
  --color-paper:      oklch(97.6% 0.004 257);
  --color-paper-2:    oklch(94.4% 0.006 257);
  --color-paper-3:    oklch(90.5% 0.009 257);
  --color-ink:        oklch(23% 0.018 257);
  --color-ink-2:      oklch(36% 0.02 257);
  --color-muted:      oklch(47% 0.02 257);
  --color-rule:       oklch(84% 0.012 257);
  --color-rule-soft:  oklch(90% 0.008 257);
  --color-accent:     oklch(50% 0.1 72);
  --color-accent-2:   oklch(44% 0.1 70);
  --color-accent-ink: oklch(98.5% 0.01 85);
  --color-accent-wash: oklch(50% 0.1 72 / 0.1);
  --color-focus:      oklch(45% 0.12 70);
  --color-ok:         oklch(46% 0.12 155);
  --color-ok-wash:    oklch(46% 0.12 155 / 0.1);
  --color-warn:       oklch(50% 0.12 65);
  --color-warn-wash:  oklch(60% 0.13 70 / 0.14);
  --color-danger:     oklch(50% 0.17 27);
  --color-danger-wash: oklch(50% 0.17 27 / 0.09);
  --logo-filter:      invert(1) brightness(0.32);
}

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