/* ═══════════════════════════════════════════════════════════════
   Terra Haven Retreats · Tokens
   Einzige Quelle für Farbe, Schrift, Raster, Radius, Schatten.
   Abgeleitet aus Master/_helmet.html und Master/Stil.dc.html.
   Wer eine Farbe ändern will, ändert sie hier — nirgends sonst.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Grund ───────────────────────────────────────────────── */
  --th-paper:          oklch(0.973 0.010 92);   /* Seitengrund, hell */
  --th-surface:        oklch(0.993 0.006 90);   /* Karten, Felder */
  --th-hairline:       oklch(0.895 0.012 95);   /* Rahmen */
  --th-hairline-soft:  oklch(0.915 0.011 93);   /* Trennlinien in Listen */

  /* ── Schrift auf hellem Grund ────────────────────────────── */
  --th-ink:            oklch(0.21 0.016 96);    /* Überschriften, Betontes */
  --th-ink-2:          oklch(0.45 0.014 96);    /* Fließtext, Beschreibungen */
  --th-ink-3:          oklch(0.51 0.014 96);    /* Labels, Sekundäres */
  --th-ink-4:          oklch(0.53 0.014 96);    /* Paragrafen, Fußnoten */
  --th-prose:          oklch(0.32 0.016 96);    /* Artikel-Fließtext, Serife */

  /* ── Dunkler Grund ───────────────────────────────────────── */
  --th-olive:          oklch(0.255 0.042 115);  /* dunkle Abschnitte */
  --th-olive-deep:     oklch(0.205 0.038 115);  /* Footer, tiefste Ebene */
  --th-cream:          oklch(0.945 0.016 88);   /* Schrift auf Olive */
  --th-cream-bright:   oklch(0.97 0.012 85);    /* Überschriften auf Olive */
  --th-cream-dim:      oklch(0.80 0.018 95);    /* Fließtext auf Olive */
  --th-cream-faint:    oklch(0.76 0.020 95);    /* Labels auf Olive */

  /* ── Akzent · Terrakotta ─────────────────────────────────
     Regel: pro Bildschirm genau eine gefüllte Fläche.        */
  --th-accent:         oklch(0.55 0.135 40);    /* Füllung */
  --th-accent-hover:   oklch(0.51 0.137 40);
  --th-accent-active:  oklch(0.47 0.135 40);
  --th-accent-text:    oklch(0.50 0.13 40);     /* Akzentschrift auf Hell */
  --th-accent-deep:    oklch(0.45 0.12 40);     /* Schrift in Akzent-Chips */
  --th-accent-bright:  oklch(0.72 0.11 45);     /* Akzent auf Olive */
  --th-on-accent:      oklch(0.97 0.012 85);    /* Schrift auf Terrakotta */
  --th-accent-wash:    oklch(0.55 0.135 40 / 14%);
  --th-accent-edge:    oklch(0.55 0.135 40 / 30%);

  /* ── Zustände ────────────────────────────────────────────
     Semantisch, nicht dekorativ — nie als zweiter Akzent.    */
  --th-ok:             oklch(0.52 0.10 118);
  --th-ok-text:        oklch(0.40 0.08 118);
  --th-ok-wash:        oklch(0.52 0.10 118 / 16%);
  --th-warn-text:      oklch(0.48 0.10 75);
  --th-warn-wash:      oklch(0.70 0.12 75 / 18%);
  --th-error:          oklch(0.52 0.17 27);
  --th-error-wash:     oklch(0.52 0.17 27 / 12%);

  /* ── Schrift ─────────────────────────────────────────────
     Instrument Serif ist die Stimme, Instrument Sans die
     Maschinerie — inklusive jeder Zahl.                      */
  --th-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --th-sans:  'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --th-mono:  ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --th-fs-cap:     0.6875rem;  /* 11 · Versalien-Label */
  --th-fs-xs:      0.75rem;    /* 12 */
  --th-fs-sm:      0.8125rem;  /* 13 */
  --th-fs-base:    0.875rem;   /* 14 · Grundtext UI */
  --th-fs-md:      0.9375rem;  /* 15 */
  --th-fs-lg:      1rem;       /* 16 */
  --th-fs-prose:   1.21875rem; /* 19.5 · Artikel */
  --th-fs-h4:      1.25rem;    /* 20 */
  --th-fs-h3:      clamp(1.375rem, 1.15rem + 1.1vw, 1.5625rem);
  --th-fs-h2:      clamp(1.625rem, 1.25rem + 1.9vw, 1.9375rem);
  --th-fs-h1:      clamp(2rem, 1.3rem + 3.5vw, 3rem);
  --th-fs-display: clamp(2.25rem, 1.35rem + 4.5vw, 3.25rem);

  --th-lh-tight: 1.05;
  --th-lh-head:  1.2;
  --th-lh-body:  1.65;
  --th-lh-prose: 1.72;

  --th-ls-tight: -0.012em;   /* Serife */
  --th-ls-num:   -0.03em;    /* Zahlen */
  --th-ls-cap:   0.15em;     /* Versalien-Label */

  /* ── Raster ──────────────────────────────────────────────── */
  --th-gutter:   clamp(1rem, 0.4rem + 3vw, 3.5rem);
  --th-max:      1440px;
  --th-measure:  65ch;

  --th-s1:  0.25rem;  --th-s2:  0.5rem;   --th-s3:  0.6875rem;
  --th-s4:  0.875rem; --th-s5:  1.125rem; --th-s6:  1.375rem;
  --th-s7:  1.625rem; --th-s8:  2rem;     --th-s9:  2.5rem;
  --th-s10: 3.25rem;  --th-s11: 4.5rem;

  /* ── Radius ──────────────────────────────────────────────── */
  --th-r-sm:   11px;
  --th-r-md:   12px;
  --th-r-lg:   18px;
  --th-r-xl:   20px;
  --th-r-pill: 999px;

  /* ── Schatten · warm, nie neutralgrau ────────────────────── */
  --th-sh-1: 0 2px 6px rgba(42,36,22,0.07);
  --th-sh-2: 0 12px 34px rgba(42,36,22,0.14), 0 2px 6px rgba(42,36,22,0.07);
  --th-sh-3: 0 24px 60px rgba(32,26,16,0.26);

  /* ── Bewegung ────────────────────────────────────────────── */
  --th-dur:  160ms;
  --th-ease: cubic-bezier(0.32, 0.72, 0.28, 1);

  /* ── Mindestgröße für alles Antippbare ───────────────────── */
  --th-tap:   44px;
  --th-field: 52px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --th-dur: 1ms; }
}
