/* video.taxi — translator.live-inspired design tokens */

:root {
  /* Color — paper & ink */
  --paper: #f4f1ea;        /* warm cream */
  --paper-2: #ebe6db;      /* slight tonal shift */
  --paper-3: #e2dccd;      /* divider / muted block */
  --ink: #1a1814;          /* near-black, warm */
  --ink-2: #3d3830;        /* secondary text */
  --ink-3: #6b645a;        /* tertiary / labels */
  --ink-4: #9a9387;        /* faint */
  --rule: #d4cebd;         /* hairline rules */
  --rule-strong: #b8b09c;

  /* Accent — taxi yellow, used sparingly */
  --accent: #f5c518;
  --accent-ink: #1a1814;   /* text on accent */
  --accent-soft: #fdf3c4;  /* tinted background */

  /* Hero italic accents — picked off translator.live:
     warm coral for the first emphasis, cool navy for the second.
     Hero ems alternate odd → warm, even → cool. */
  --hero-em-warm: oklch(0.58 0.14 30);   /* terracotta */
  --hero-em-cool: oklch(0.34 0.075 245); /* deep navy */

  /* Type */
  --serif: "Newsreader", "GT Sectra", "Charter", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", "Söhne", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Spacing scale */
  --gutter: clamp(28px, 6vw, 120px);
  --section-y: clamp(72px, 10vw, 160px);

  /* Layout */
  --max-w: 1280px;
  --max-w-prose: 760px;
}

[data-theme="dark"] {
  --paper: #131210;
  --paper-2: #1c1a17;
  --paper-3: #26231e;
  --ink: #f4f1ea;
  --ink-2: #c8c3b6;
  --ink-3: #8d8678;
  --ink-4: #5d574d;
  --rule: #2e2a23;
  --rule-strong: #423d33;
  --accent-soft: #3a2f0a;
  --hero-em-warm: oklch(0.72 0.13 30);  /* lighter coral on dark */
  --hero-em-cool: oklch(0.74 0.09 245); /* lighter blue on dark */
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Type system */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--mono); font-feature-settings: "ss01"; }
.sans  { font-family: var(--sans); }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}
.eyebrow .marker {
  color: var(--ink-3);
}
.eyebrow .marker::after {
  content: " ·";
  margin-left: 4px;
}

.h-display {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(40px, 6.6vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  /* Long German compounds (Dolmetscherkabine, Datensouveränität, …) overflow
     narrow hero columns. Allow soft hyphenation + last-resort breaking so the
     title never spills into the visual column on its right. */
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
.h-display em {
  font-style: italic;
  font-weight: 380;
  /* slight optical lift */
  color: var(--hero-em-warm);
}
/* Alternating hero accents — odd ems warm, even ems cool. */
.h-display em:nth-of-type(2n) { color: var(--hero-em-cool); }
/* Escape hatch for nested-em structures (e.g. hero-b wraps ems in spans). */
.h-display em.em-cool { color: var(--hero-em-cool); }
.h-display em.em-warm { color: var(--hero-em-warm); }

.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}
.h-section em { font-style: italic; }

.h-card {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.lede {
  font-family: var(--sans);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 14px;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 160ms ease;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: #000; }
.btn-ghost {
  border-color: var(--rule-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover { background: #ffd534; }

/* Hairline rule */
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-strong { background: var(--rule-strong); }

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 max(var(--gutter), 24px);
}

/* Section header pattern: "§ 01 · Topic" */
.section-marker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}
.section-marker .sigil { color: var(--ink); }

/* Density */
[data-density="compact"] {
  --section-y: clamp(56px, 7vw, 112px);
}
[data-density="airy"] {
  --section-y: clamp(96px, 13vw, 200px);
}
