/* Base: Design-Tokens, Reset, Typografie — Kinetic Editorial */

:root {
  /* Farb-Tokens (oklch, gedaempfte Palette, WCAG-AA) */
  --color-bg: oklch(97% 0.016 85);        /* Bone / Off-White */
  --color-surface: oklch(93% 0.03 75);    /* Warm Sand */
  --color-surface-2: oklch(89% 0.035 70); /* etwas dunklerer Sand fuer Trennflaechen */
  /* --color-ink und --color-accent sind per Customizer pflegbar (siehe inc/customizer.php,
     Ausgabe als Inline-Override in wp_head). Alle abgeleiteten Toene werden bewusst per
     color-mix() aus diesen zwei Basisfarben berechnet statt separat hart hinterlegt zu
     werden (DRY) — so bleibt eine Customizer-Farbaenderung sofort ueberall konsistent. */
  --color-ink: oklch(21% 0.02 50);        /* Ink Black, warm */
  --color-ink-soft: color-mix(in oklch, var(--color-ink) 68%, white 32%);
  --color-accent: oklch(52% 0.135 40);    /* gedaempftes Terracotta (Text/Icons) */
  --color-accent-strong: color-mix(in oklch, var(--color-accent) 80%, black 20%);
  --color-accent-tint: color-mix(in oklch, var(--color-accent) 32%, white 68%);
  --color-on-accent: oklch(98% 0.01 85);  /* Text auf Terracotta-Flaechen */
  --color-border: oklch(85% 0.02 60);

  --radius: 2px;
  --shadow-soft: 0 1px 2px oklch(21% 0.02 50 / 0.04), 0 8px 24px oklch(21% 0.02 50 / 0.08);
  --shadow-lift: 0 4px 10px oklch(21% 0.02 50 / 0.06), 0 20px 40px oklch(21% 0.02 50 / 0.12);

  --font-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --font-body: "Work Sans", "Inter", -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-base: 260ms;

  --container-max: 1360px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --header-h: 84px;
  --header-h-shrunk: 60px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

svg {
  max-width: 100%;
  height: auto;
}

.icon {
  width: 1.4em;
  height: 1.4em;
  flex: 0 0 auto;
  vertical-align: middle;
  max-width: 32px;
  max-height: 32px;
  color: currentColor;
}

.icon--flip {
  transform: scaleX(-1);
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent-strong);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.icon-toggle:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 1px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--color-ink);
  text-wrap: pretty;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.6rem, 3.2rem + 3vw, 5.4rem);
  font-weight: 560;
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 1.6rem + 2vw, 3.4rem);
}

h3 {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
  max-width: 62ch;
}

p.lede {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  color: var(--color-ink-soft);
}

ul,
ol {
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.5em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.ordinal {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 2rem + 2vw, 4rem);
  color: var(--color-accent-tint);
  -webkit-text-stroke: 1.5px var(--color-accent);
  color: transparent;
  line-height: 1;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top var(--dur-base) var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}
