/* RIVOPRINT design tokens (from the RIVOPRINT design system, docs/design-tokens.json).
   Bone (light) theme on :root, Graphite (dark) on [data-theme="dark"].
   Use the variables by name in every stylesheet, never raw hex values. */
/* Fonts are loaded by a <link> in each page head (faster than @import). */

:root {
  --surface: #F3EFE6;
  --surface-raised: #FBF9F4;
  --surface-sunken: #E7E2D7;
  --ink: #1C1D21;
  --ink-muted: #5A5D66;
  --line: #D6D1C6;
  --line-strong: #8E8A80;
  --amber: #FFB31A;
  --amber-deep: #E08A00;
  --amber-ink: #8A5300;
  --amber-soft: #FFE7B3;
  --on-amber: #1C1D21;
  --graphite: #1C1D21;
  --on-graphite: #F3EFE6;
  --success: #23683F;
  --danger: #B3381F;
  --focus-ring: #E08A00;

  --font-display: "Rubik", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-arabic: "IBM Plex Sans Arabic", "Rubik", system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(28,29,33,0.08);

  /* Site additions (motion and layout), not colours. */
  --container: 1200px;
  --header-h: 72px;
  --ease-extrude: cubic-bezier(.22,.9,.24,1);
  --layer: 8px;          /* brand pattern: bar height */
  --layer-pitch: 16px;   /* brand pattern: bar pitch */
  color-scheme: light;
}

[data-theme="dark"] {
  --surface: #141519;
  --surface-raised: #1C1D21;
  --surface-sunken: #0F1013;
  --ink: #F3EFE6;
  --ink-muted: #A9ACB4;
  --line: #2E3037;
  --line-strong: #6E717B;
  --amber: #FFB31A;
  --amber-deep: #FFC24D;
  --amber-ink: #FFC24D;
  --amber-soft: #3A2E14;
  --on-amber: #1C1D21;
  --graphite: #2A2C31;
  --on-graphite: #F3EFE6;
  --success: #5FC48A;
  --danger: #FF8A73;
  --focus-ring: #FFC24D;
  color-scheme: dark;
}
