/*
 * Design tokens. Edit this file to re-theme the site.
 * No selectors should appear here beyond :root.
 */

:root {
  /* ── Brand (from PropDefend style guide) ───────────────────────── */
  --brand-orange: #ff8300;        /* Pantone 151C — primary CTA */
  --brand-blue:   #008fbe;        /* Pantone 632C — secondary accent */
  --brand-gray:   #636569;        /* Pantone Cool Gray 10 C */
  --brand-black:  #000000;
  --brand-white:  #ffffff;

  /* Support palette */
  --brand-chocolate:  #804200;
  --brand-lapis:      #005b79;
  --brand-sky:        #80daf8;
  --brand-fandango:   #b3008f;

  /* ── Chessboard surfaces (brand-tuned) ─────────────────────────── */
  --surface-board-dark:  #051e28;   /* deep navy "dark square" */
  --surface-board-light: #0a2e3b;   /* slightly lifted "light square" */
  --surface-raised:      #0d3a4b;   /* cards on dark surface */
  --surface-ivory:       #f7f4ee;   /* light surface base */
  --surface-ivory-alt:   #efe9dd;   /* alternating light */

  /* ── Text ──────────────────────────────────────────────────────── */
  --text-on-dark:        #f4efe4;
  --text-on-dark-muted:  #9bb1bc;
  --text-on-light:       #051e28;
  --text-on-light-muted: #4f5960;

  /* ── Borders & effects ─────────────────────────────────────────── */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-light:  rgba(5, 30, 40, 0.12);
  --glow-orange:   rgba(255, 131, 0, 0.35);
  --glow-blue:     rgba(0, 143, 190, 0.32);
  --shadow-card:   0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-soft:   0 6px 16px rgba(5, 30, 40, 0.08);

  /* ── Typography ────────────────────────────────────────────────── */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "DM Sans", var(--font-sans);
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --text-display: clamp(2.75rem, 5vw + 1rem, 5rem);
  --text-h1:      clamp(2.25rem, 4vw + 1rem, 4rem);
  --text-h2:      clamp(1.75rem, 2.5vw + 1rem, 2.75rem);
  --text-h3:      clamp(1.25rem, 1.5vw + 0.75rem, 1.75rem);
  --text-h4:      clamp(1.1rem, 1vw + 0.75rem, 1.35rem);
  --text-body:    clamp(1rem, 0.35vw + 0.9rem, 1.125rem);
  --text-small:   0.875rem;
  --text-micro:   0.75rem;

  --leading-tight:  1.15;
  --leading-snug:   1.3;
  --leading-normal: 1.55;
  --leading-loose:  1.75;

  --tracking-tight: -0.015em;
  --tracking-wide:   0.08em;
  --tracking-micro:  0.22em;

  /* ── Spacing (8-pt scale) ──────────────────────────────────────── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;
  --space-10: 8rem;

  /* ── Radius ────────────────────────────────────────────────────── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* ── Motion ────────────────────────────────────────────────────── */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0.05, 0.36, 1);
  --dur-quick:   160ms;
  --dur-normal:  260ms;
  --dur-slow:    480ms;
  --dur-tour:    1200ms; /* one knight move */

  /* ── Layout ────────────────────────────────────────────────────── */
  --container-max:    1200px;
  --container-narrow: 820px;
  --nav-height:       72px;
  --z-nav:    100;
  --z-overlay: 500;
  --z-modal:  1000;
}
