/* Design-System „Rosenholz“ – Farben, Schrift, Abstände */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #FBF6F2;
  --paper-2: #F4E9E4;
  --surface: #FFFFFF;
  --ink: #3A2632;
  --ink-soft: #7A6670;
  --rose: #A65A6E;
  --rose-ink: #FFFFFF;      /* Text auf Rosa */
  --blush: #EFD3D3;
  --sage: #8C9C8A;
  --line: #E6D6D0;
  --line-strong: #D9BFC2;
  --footer-bg: #3A2632;
  --footer-ink: #F4E8E4;
  --footer-soft: #BFAAB2;
  --overlay: rgba(30, 22, 25, 0.96);

  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", Georgia, serif;
  --font-text: "Jost", "Futura", "Century Gothic", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.85rem;
  --step-0: 1.0625rem;   /* 17 px */
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  --step-4: clamp(2.4rem, 1.6rem + 3vw, 3.5rem);
  --step-5: clamp(2.75rem, 1.6rem + 4.4vw, 4.75rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: clamp(4rem, 3rem + 4vw, 7rem);

  --radius: 4px;
  --radius-img: 6px;
  --pill: 999px;
  --container: 1200px;
  --measure: 68ch;
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1E1619;
  --paper-2: #2A1F23;
  --surface: #2A1F23;
  --ink: #F4E8E4;
  --ink-soft: #BFAAB2;
  --rose: #E09AAA;
  --rose-ink: #1E1619;
  --blush: #4A2E36;
  --sage: #A9B8A6;
  --line: #3A2C31;
  --line-strong: #4A3A40;
  --footer-bg: #140F11;
}

/* Ohne JavaScript: Systemeinstellung übernehmen */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: #1E1619;
    --paper-2: #2A1F23;
    --surface: #2A1F23;
    --ink: #F4E8E4;
    --ink-soft: #BFAAB2;
    --rose: #E09AAA;
    --rose-ink: #1E1619;
    --blush: #4A2E36;
    --sage: #A9B8A6;
    --line: #3A2C31;
    --line-strong: #4A3A40;
    --footer-bg: #140F11;
  }
}
