/* Base — body typography, defaults, utility classes */

html {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--bg-base);
}

body {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink-900);
  background: var(--bg-base);
  overflow-x: hidden;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

p {
  color: var(--ink-700);
  max-width: 65ch;
}

strong { font-weight: 600; }

/* ---------- Eyebrow / Caption ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.eyebrow__accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--accent);
  font-size: 1.35em;
  line-height: 1;
  display: inline-block;
}

.caption {
  font-size: var(--fs-caption);
  color: var(--ink-500);
}

/* ---------- Links ---------- */
a.link {
  color: var(--ink-900);
  position: relative;
  display: inline-block;
}

a.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-base) var(--ease-out);
}

a.link:hover::after,
a.link:focus-visible::after {
  transform: scaleX(1);
}

/* ---------- Accent (kursive Serif statt Schnörkelschrift) ----------
   Editorial-Italic: charaktervoll, hochwertig, ohne verspielten Look.
   Die rote SVG-Unterstreichung bleibt für den "Hand"-Akzent. */
.accent-script {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  display: inline-block;
  position: relative;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* SVG underline under the accented word */
.accent-script svg.underline {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.12em;
  width: 104%;
  height: auto;
  pointer-events: none;
}

.accent-script svg.underline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

/* ---------- Section base ---------- */
section {
  padding-block: var(--section-pad-y);
  position: relative;
}

section + section {
  border-top: 1px solid var(--line);
}

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

.text-center { text-align: center; }
.text-muted { color: var(--ink-500); }
.no-wrap { white-space: nowrap; }

/* ---------- Selection ---------- */
::selection {
  background: var(--accent);
  color: #fff;
}

