/* ==========================================================================
   VARIABLES & DESIGN TOKENS
   Started Somewhere — Bohemian Editorial Design System
   ========================================================================== */

:root {
  /* Brand Earthy Palette */
  --ink: #2B2420;
  --paper: #F6EFE4;
  --paper-dim: #EFE5D3;
  --rust: #A8462F;
  --ochre: #C99A3C;
  --sage: #6F7856;
  --berry: #6B3348;
  --card-bg: #FCF9F3;
  --input-bg: #FFFFFF;
  --text-muted: #5A4D43;
  --text-subtle: #7A6D61;
  --line: rgba(43, 36, 32, 0.18);
  --line-strong: rgba(43, 36, 32, 0.35);
  --maxw: 1100px;
  --maxw-wide: 1200px;

  /* Typography */
  --font-display: 'Fraunces', serif;
  --font-body: 'Karla', sans-serif;

  /* Radii */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-pill: 24px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(43, 36, 32, 0.04);
  --shadow-md: 0 4px 18px rgba(43, 36, 32, 0.08);
  --shadow-lg: 0 8px 30px rgba(43, 36, 32, 0.14);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   LOW-LIGHT NIGHT MODE OVERRIDES
   Ergonomic warm espresso & muted parchment for dark room reading (WCAG AAA)
   ========================================================================== */
:root.dark,
html.dark,
[data-theme="dark"] {
  --ink: #ECE5D8;
  --paper: #1A1715;
  --paper-dim: #24201D;
  --card-bg: #292421;
  --input-bg: #221E1C;
  --text-muted: #B8ACA0;
  --text-subtle: #8A7E72;
  --rust: #D46950;
  --ochre: #DBAC4E;
  --sage: #8E9E70;
  --berry: #A35A75;
  --line: rgba(246, 239, 228, 0.14);
  --line-strong: rgba(246, 239, 228, 0.28);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
}
