/* ==========================================================================
   Schreinerei Müller — Design Tokens
   ========================================================================== */

:root {
  /* ---------- Color System ---------- */
  --color-oak-deep: #3A2A1E;
  --color-oak-deep-90: rgba(58, 42, 30, 0.92);
  --color-anthracite: #1F1D1B;
  --color-anthracite-96: rgba(31, 29, 27, 0.96);
  --color-anthracite-72: rgba(31, 29, 27, 0.72);
  --color-anthracite-15: rgba(31, 29, 27, 0.15);
  --color-brass: #B08658;
  --color-brass-light: #C9A57E;
  --color-paper: #F5F1EA;
  --color-paper-85: rgba(245, 241, 234, 0.85);
  --color-paper-60: rgba(245, 241, 234, 0.60);
  --color-paper-12: rgba(245, 241, 234, 0.12);
  --color-limestone: #E6DFD3;
  --color-stone: #A9A39A;
  --color-white: #FFFFFF;
  --color-success: #5A6B4A;
  --color-error: #8C3A2E;

  /* ---------- Typography ---------- */
  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.625rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;
  --text-6xl: 3.5rem;

  --leading-tight: 1.05;
  --leading-snug: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --tracking-tighter: -0.02em;
  --tracking-tight: -0.015em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.12em;
  --tracking-widest: 0.18em;

  /* ---------- Spacing (8pt grid) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  --space-40: 160px;

  /* ---------- Layout ---------- */
  --container-max: 1360px;
  --container-pad: clamp(20px, 4vw, 64px);
  --gutter: 24px;

  /* ---------- Shape ---------- */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;

  --border-hair: 1px solid var(--color-limestone);
  --border-hair-dark: 1px solid rgba(245, 241, 234, 0.12);
  --border-strong: 1px solid var(--color-oak-deep);

  --shadow-soft: 0 1px 2px rgba(31, 29, 27, 0.06);
  --shadow-card: 0 2px 8px rgba(31, 29, 27, 0.04);
  --shadow-lift: 0 8px 24px rgba(31, 29, 27, 0.08);

  /* ---------- Motion Tokens ---------- */
  --duration-xs: 160ms;
  --duration-sm: 240ms;
  --duration-md: 420ms;
  --duration-lg: 700ms;
  --duration-xl: 1000ms;

  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-precise: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-exit: cubic-bezier(0.76, 0, 0.24, 1);

  --offset-xs: 6px;
  --offset-sm: 12px;
  --offset-md: 16px;
  --offset-lg: 24px;

  --stagger-tight: 45ms;
  --stagger-standard: 80ms;
  --stagger-loose: 120ms;

  /* ---------- Z-Index ---------- */
  --z-base: 1;
  --z-content: 10;
  --z-nav: 100;
  --z-overlay: 200;
  --z-loader: 1000;
}

@media (min-width: 768px) {
  :root {
    --text-base: 1.0625rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 1.875rem;
    --text-3xl: 2.5rem;
    --text-4xl: 3.5rem;
    --text-5xl: 4.5rem;
    --text-6xl: 5.5rem;
  }
}
