/* ═══════════════════════════════════════════════════════════════
   Terra Haven Retreats · Grundlagen
   Reset, Typografie, Fließtext. Keine Komponenten.
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--th-sans);
  font-size: var(--th-fs-base);
  line-height: var(--th-lh-body);
  color: var(--th-ink);
  background: var(--th-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

/* Schlägt jedes display aus den Komponenten. */
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Sichtbarer Fokus überall — Tastaturbedienung ist Pflicht, nicht Kür.
   Nur :focus-visible, damit Mausklicks keinen Ring hinterlassen. */
:focus-visible {
  outline: 2px solid oklch(0.55 0.135 40 / 50%);
  outline-offset: 2px;
  border-radius: 4px;
}
.th-on-dark :focus-visible { outline-color: oklch(0.72 0.11 45 / 70%); }
/* Überschriften, auf die nach einem Schrittwechsel der Fokus springt (für Screenreader),
   sind nicht bedienbar – sie brauchen keinen Ring. */
[tabindex="-1"]:focus-visible { outline: none; }

/* ── Schriftrollen ─────────────────────────────────────────────
   .th-voice  Instrument Serif — Überschriften, Zitate, Preise im Hero
   .th-ui     Instrument Sans  — alles Funktionale
   .th-label  Versalien-Label
   .th-num    Zahlen: immer Sans, immer tabellarisch             */

.th-voice {
  font-family: var(--th-serif);
  font-weight: 400;
  letter-spacing: var(--th-ls-tight);
  line-height: var(--th-lh-head);
  text-wrap: balance;
}

.th-ui { font-family: var(--th-sans); }

.th-label {
  font-family: var(--th-sans);
  font-size: var(--th-fs-cap);
  font-weight: 500;
  letter-spacing: var(--th-ls-cap);
  text-transform: uppercase;
  color: var(--th-ink-3);
}

.th-num {
  font-family: var(--th-sans);
  font-weight: 600;
  letter-spacing: var(--th-ls-num);
  font-variant-numeric: tabular-nums;
}

/* ── Überschriften ─────────────────────────────────────────── */
.th-display { font-size: var(--th-fs-display); line-height: var(--th-lh-tight); }
.th-h1      { font-size: var(--th-fs-h1);      line-height: 1.03; }
.th-h2      { font-size: var(--th-fs-h2);      line-height: var(--th-lh-head); }
.th-h3      { font-size: var(--th-fs-h3);      line-height: var(--th-lh-head); }
.th-h4      { font-size: var(--th-fs-h4);      line-height: var(--th-lh-head); }

.th-display, .th-h1, .th-h2, .th-h3, .th-h4 {
  font-family: var(--th-serif);
  font-weight: 400;
  letter-spacing: var(--th-ls-tight);
  margin: 0;
  text-wrap: balance;
}

/* ── Textfarben ────────────────────────────────────────────── */
.th-dim   { color: var(--th-ink-2); }
.th-dimmer{ color: var(--th-ink-3); }
.th-accent{ color: var(--th-accent-text); }

.th-on-dark            { color: var(--th-cream); }
.th-on-dark .th-dim    { color: var(--th-cream-dim); }
.th-on-dark .th-dimmer { color: var(--th-cream-faint); }
.th-on-dark .th-label  { color: var(--th-cream-faint); }
.th-on-dark .th-accent { color: var(--th-accent-bright); }
.th-on-dark .th-display,
.th-on-dark .th-h1, .th-on-dark .th-h2,
.th-on-dark .th-h3, .th-on-dark .th-h4 { color: var(--th-cream-bright); }

/* ── Fließtext im Journal ──────────────────────────────────
   Serife, großzügig, auf deckendem Grund — nie über Glas.   */
.th-prose { max-width: var(--th-measure); }
.th-prose p {
  font-family: var(--th-serif);
  font-size: var(--th-fs-prose);
  line-height: var(--th-lh-prose);
  color: var(--th-prose);
  margin: 0 0 var(--th-s7);
}
.th-prose h2 {
  font-family: var(--th-serif);
  font-weight: 400;
  font-size: var(--th-fs-h2);
  line-height: var(--th-lh-head);
  letter-spacing: -0.014em;
  color: var(--th-ink);
  margin: var(--th-s10) 0 var(--th-s6);
}
.th-prose h3 {
  font-family: var(--th-sans);
  font-weight: 600;
  font-size: var(--th-fs-lg);
  letter-spacing: -0.01em;
  color: var(--th-ink);
  margin: var(--th-s8) 0 var(--th-s4);
}
.th-prose strong { font-weight: 600; color: var(--th-ink); }
.th-prose a {
  border-bottom: 1px solid oklch(0.80 0.013 95);
  transition: border-color var(--th-dur) var(--th-ease);
}
.th-prose a:hover { border-bottom-color: var(--th-accent-text); }
.th-prose > :first-child { margin-top: 0; }

/* Nur für Screenreader */
.th-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
