/* BookHub design tokens — the "reading room" system. Full spec: docs/design-system.md */

:root {
  --color-leather: oklch(30% 0.052 165);
  --color-leather-deep: oklch(24% 0.046 168);
  --color-leather-edge: oklch(40% 0.055 162);
  --color-on-leather: oklch(93% 0.02 95);
  --color-on-leather-muted: oklch(76% 0.035 110);
  --color-gold: oklch(78% 0.115 85);
  --color-gold-bright: oklch(85% 0.125 88);
  --color-gold-deep: oklch(62% 0.1 80);
  --color-gold-ink: oklch(24% 0.04 85);
  --color-paper: oklch(97.5% 0.011 90);
  --color-paper-2: oklch(95% 0.016 88);
  --color-paper-3: oklch(91.5% 0.02 86);
  --color-surface: oklch(99% 0.006 95);
  --color-ink: oklch(26% 0.022 270);
  --color-ink-2: oklch(46% 0.018 268);
  --color-rule: oklch(88% 0.018 85);
  --color-rule-strong: oklch(72% 0.025 80);
  --color-border-input: oklch(57% 0.03 80);
  --color-accent: oklch(40% 0.07 165);
  --color-accent-deep: oklch(32% 0.062 168);
  --color-accent-ink: oklch(97.5% 0.011 90);
  --color-accent-wash: oklch(92% 0.035 160);
  --color-focus: oklch(52% 0.13 255);
  --color-danger: oklch(46% 0.14 27);
  --color-success: oklch(45% 0.09 148);
  --color-selection: oklch(89% 0.06 95);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;

  --text-xs: 0.8rem;
  --text-sm: 0.9rem;
  --text-base: 1.0625rem;
  --text-md: 1.25rem;
  --text-lg: 1.5625rem;
  --text-xl: 1.953rem;
  --text-2xl: 2.441rem;
  --text-display: clamp(2.4rem, 4vw + 1rem, 3.8rem);

  --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;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-quick: 140ms;
  --dur-short: 220ms;
  --dur-med: 340ms;

  --radius-sm: 3px;
  --radius-card: 4px;

  --rule-hairline: 1px solid var(--color-rule);
  --rule-strong: 1px solid var(--color-rule-strong);

  --z-nav: 10;
  --z-overlay: 20;
  --z-toast: 30;

  --measure: 65ch;
  --page-width: 72rem;
}
