/* Design tokens for the GALLERY shell only. Samples own their own styles. */
:root {
  color-scheme: light;
  /* Palette: warm paper + ink, single accent */
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efede7;
  --ink: #16161a;
  --ink-2: #3b3a37;
  --muted: #6b6a66;
  --border: #e3e1db;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: #fbe6da;
  --focus: #2563eb;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px -12px rgb(0 0 0 / .12);

  /* Type */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --fs-xs: .75rem;  --fs-sm: .875rem; --fs-md: 1rem;
  --fs-lg: 1.25rem; --fs-xl: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);

  /* Space (4px scale) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem;
  --s-6: 1.5rem; --s-8: 2rem;  --s-12: 3rem;  --s-16: 4rem;

  /* Shape & motion */
  --radius-sm: 6px; --radius: 12px; --radius-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 180ms;
  --maxw: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f0f11; --surface: #17171a; --surface-2: #1f1f23;
    --ink: #ededea; --ink-2: #c9c8c3; --muted: #9a9893; --border: #2a2a2e;
    --accent: #ff7a45; --accent-ink: #160a04; --accent-soft: #3a1d10;
    --focus: #60a5fa;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -12px rgb(0 0 0 / .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f11; --surface: #17171a; --surface-2: #1f1f23;
  --ink: #ededea; --ink-2: #c9c8c3; --muted: #9a9893; --border: #2a2a2e;
  --accent: #ff7a45; --accent-ink: #160a04; --accent-soft: #3a1d10;
  --focus: #60a5fa;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -12px rgb(0 0 0 / .6);
}

@media (prefers-reduced-motion: reduce) { :root { --dur: 0ms; } }
