/* ==========================================================================
   Version 2 – Design Tokens
   Editorial / Contemporary Minimalism
   ========================================================================== */

:root {
  /* Farben – warm, ruhig, salbeigrün als Akzent (bewusst anders als V1) */
  --bg: #F7F4EE;
  --bg-deep: #EFEADD;
  --paper: #FFFFFF;
  --ink: #23261F;
  --ink-soft: #53564A;
  --ink-faint: #8A8B7C;
  --line: #DED5C0;
  --line-soft: #EAE3D3;

  --sage: #6E7F63;
  --sage-deep: #4B5943;
  --sage-light: #A9B79D;
  --sage-tint: #E7ECE1;

  --focus: #1D6E5B;
  --error: #9C3B3B;
  --success: #3D6B4A;

  /* Typografie – zwei Schriftfamilien, System-Stacks (keine externen Fonts) */
  --font-serif: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Fluide Typo-Skala, mobile-first, grosszuegig auf Desktop */
  --step-xs: clamp(0.8rem, 0.77rem + 0.15vw, 0.875rem);
  --step-sm: clamp(0.9rem, 0.87rem + 0.2vw, 1rem);
  --step-base: clamp(1.05rem, 1rem + 0.25vw, 1.125rem);
  --step-md: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-lg: clamp(1.5rem, 1.3rem + 1.4vw, 2.1rem);
  --step-xl: clamp(1.8rem, 1.4rem + 2.6vw, 3rem);
  --step-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --step-3xl: clamp(2.35rem, 1.5rem + 3.4vw, 4.3rem);

  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-normal: 1.6;
  --lh-relaxed: 1.75;

  /* Abstaende – 8px Basis, editorialer Rhythmus */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4.5rem;
  --sp-8: 6.5rem;
  --sp-9: 9rem;

  /* Layout */
  --container: 1280px;
  --container-narrow: 680px;
  --container-text: 62ch;
  --edge: 1.25rem;

  /* Radius – dezent, weder eckig noch verspielt */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;

  /* Bewegung */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-base: 420ms;
  --dur-slow: 900ms;

  --shadow-sm: 0 1px 2px rgba(35, 38, 31, 0.06);
  --shadow-md: 0 18px 44px rgba(35, 38, 31, 0.10);
  --shadow-lg: 0 32px 80px rgba(35, 38, 31, 0.16);
}

@media (min-width: 768px) {
  :root { --edge: 2.5rem; }
}

@media (min-width: 1440px) {
  :root { --edge: 4vw; }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0.01ms;
    --dur-base: 0.01ms;
    --dur-slow: 0.01ms;
  }
}
