/* Design tokens — Warm Architectural Paper & Studio Ink system */

:root {
  color-scheme: light;
  /* Color palette — Light (default) */
  --bg-page: #f6f4ef;
  --bg-surface: #ffffff;
  --bg-subtle: #ede9e0;
  --bg-hover: #e5e0d4;
  --bg-inverse: #171614;

  --ink-primary: #171614;
  --ink-secondary: #4a4640;
  --ink-muted: #6e685f;
  --ink-inverse: #f6f4ef;

  --border-subtle: #ddd7ca;
  --border-strong: #bfb7a6;

  --accent-primary: #134e3a;
  --accent-primary-hover: #0d3b2c;
  --accent-primary-ink: #f6f4ef;
  --accent-primary-tint: rgba(19, 78, 58, 0.08);
  --accent-secondary: #9c3d1e;
  --accent-secondary-tint: rgba(156, 61, 30, 0.08);

  --status-success: #166534;
  --status-success-bg: #ecfdf3;
  --status-error: #991b1b;
  --status-error-bg: #fef2f2;

  /* Typography */
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Scale & spacing */
  --container-max: 1140px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --section-space: clamp(3.5rem, 6vw, 5.5rem);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-pill: 999px;

  --shadow-subtle: 0 1px 2px rgba(23, 22, 20, 0.05);
  --shadow-drawer: 0 18px 44px rgba(23, 22, 20, 0.14);

  --transition-fast: 160ms cubic-bezier(0.2, 0.6, 0.3, 1);
  --transition-base: 240ms cubic-bezier(0.2, 0.6, 0.3, 1);
}

[data-theme='dark'] {
  color-scheme: dark;
  --bg-page: #111210;
  --bg-surface: #181a17;
  --bg-subtle: #20231e;
  --bg-hover: #282c26;
  --bg-inverse: #ebe8e1;

  --ink-primary: #ebe8e1;
  --ink-secondary: #b7b3aa;
  --ink-muted: #8b867d;
  --ink-inverse: #111210;

  --border-subtle: #2a2d27;
  --border-strong: #3e423a;

  --accent-primary: #52b788;
  --accent-primary-hover: #67c79a;
  --accent-primary-ink: #111210;
  --accent-primary-tint: rgba(82, 183, 136, 0.14);
  --accent-secondary: #e07a5f;
  --accent-secondary-tint: rgba(224, 122, 95, 0.12);

  --status-success: #4ade80;
  --status-success-bg: rgba(22, 101, 52, 0.22);
  --status-error: #f87171;
  --status-error-bg: rgba(153, 27, 27, 0.24);

  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-drawer: 0 20px 50px rgba(0, 0, 0, 0.45);
}
