/* Hallmark tokens — theme: Coral (modern-minimal) · shared design system, see design.md
 * Loaded by index.html and listing.html. */

:root {
  /* Colour — warm-grey paper, single coral accent, OKLCH throughout */
  --color-paper:      oklch(97%   0.008 40);
  --color-paper-2:    oklch(94%   0.010 40);
  --color-surface:    oklch(99%   0.004 40);
  --color-rule:       oklch(88%   0.010 40);
  --color-rule-2:     oklch(82%   0.012 40);
  --color-ink:        oklch(22%   0.014 35);
  --color-ink-hover:  oklch(32%   0.014 35);
  --color-ink-2:      oklch(46%   0.016 35);
  --color-ink-3:      oklch(50%   0.014 35);
  --color-accent:     oklch(54%   0.19  29);
  --color-accent-ink: oklch(99%   0.006 29);
  --color-focus:      oklch(54%   0.19  29);

  /* Type */
  --font-display: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-outlier: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  --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(2rem, 4vw + 0.5rem, 3rem);
  --text-display:   clamp(2.5rem, 5vw + 0.5rem, 3.5rem);
  --text-stat:      clamp(4.5rem, 14vw, 8.5rem);

  /* Space — 4pt scale */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;

  /* Motion */
  --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-micro: 120ms;
  --dur-short: 220ms;
  --dur-long:  420ms;

  /* Shape */
  --radius-sm:   6px;
  --radius:      8px;
  --radius-pill: 999px;

  /* Z */
  --z-base:     1;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;

  /* Bridge aliases — listing.js sets these var() names directly as inline
   * style values (score/margin colour, sparkline fill). Keeping the JS
   * untouched; these just point its existing references at the Coral palette. */
  --accent:       var(--color-accent);
  --accent-light: oklch(94% 0.03 29);
  --surface:      var(--color-surface);
  --success:      oklch(52% 0.13 150);
  --danger:       oklch(50% 0.17 22);
}
