/* ==========================================================================
   Design tokens — Café premium
   ========================================================================== */

:root {
  /* Typography */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-base: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.625rem;
  --text-3xl: 2.125rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.75rem;

  --leading-tight: 1.2;
  --leading-normal: 1.65;
  --leading-relaxed: 1.8;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1280px;
  --header-height: 96px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-header: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Light theme (default)
   Soft warm parchment — easier on the eyes than near-white.
   Keep logo-light.png background matched to --color-bg. */
:root,
[data-theme="light"] {
  --color-bg: #cfc7ba;
  --color-bg-elevated: #d8d1c5;
  --color-bg-muted: #c2bbb0;
  --color-bg-inverse: #1a1410;

  --color-text: #2a221c;
  --color-text-muted: #5f534a;
  --color-text-subtle: #7e7268;
  --color-text-inverse: #cfc7ba;

  --color-primary: #3d2314;
  --color-primary-hover: #2a180e;
  --color-accent: #c87941;
  --color-accent-hover: #b06832;
  --color-accent-soft: rgba(200, 121, 65, 0.14);

  --color-border: rgba(42, 34, 28, 0.1);
  --color-border-strong: rgba(42, 34, 28, 0.18);

  --color-success: #2d6a4f;
  --color-error: #9b2226;

  --header-bg: #cfc7ba;
  --header-bg-scrolled: #cfc7ba;
  --overlay: rgba(26, 20, 16, 0.45);

  --shadow-sm: 0 1px 2px rgba(42, 34, 28, 0.04);
  --shadow-md: 0 4px 16px rgba(42, 34, 28, 0.06);
  --shadow-lg: 0 12px 40px rgba(42, 34, 28, 0.08);
  --shadow-header: 0 1px 0 rgba(42, 34, 28, 0.06);
}

/* Dark theme */
[data-theme="dark"] {
  --color-bg: #12100e;
  --color-bg-elevated: #1e1a17;
  --color-bg-muted: #2a2420;
  --color-bg-inverse: #faf8f5;

  --color-text: #f5f0eb;
  --color-text-muted: #c4b5a5;
  --color-text-subtle: #a89888;
  --color-text-inverse: #1a1410;

  --color-primary: #e8ddd3;
  --color-primary-hover: #ffffff;
  --color-accent: #d4925a;
  --color-accent-hover: #e0a46e;
  --color-accent-soft: rgba(212, 146, 90, 0.15);

  --color-border: rgba(245, 240, 235, 0.1);
  --color-border-strong: rgba(245, 240, 235, 0.2);

  --color-success: #52b788;
  --color-error: #e07a5f;

  --header-bg: #12100e;
  --header-bg-scrolled: #12100e;
  --overlay: rgba(0, 0, 0, 0.65);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-header: 0 1px 0 rgba(255, 255, 255, 0.06);
}
