/* =========================================================================
   BASE — Schriften, Reset, Typografie, wiederkehrende Bausteine
   ========================================================================= */

/* ------------------------------------------------------------- fonts ---- */
/* Alle self-hosted, alle SIL OFL. Eine Familie pro Rolle.
   IBM Plex Mono kommt aus assets/shared/tokens.css. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext-wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-var.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2212,
    U+2215, U+FEFF, U+FFFD;
}


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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; background: #111; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-lift);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--fg); }

/* --------------------------------------------------------- typography --- */
.mono {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  letter-spacing: var(--mono-track);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.4;
  font-variant-ligatures: none;
}
.mono--dim { color: var(--fg-dim); }

.lede {
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 34ch;
  color: var(--fg);
}

.prose {
  font-size: var(--step-0);
  line-height: 1.6;
  max-width: 62ch;
  color: var(--fg-dim);
}
.prose strong { color: var(--fg); font-weight: 500; }

/* ------------------------------------------------------------ layout ---- */
.shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--wide { max-width: none; }

.section {
  position: relative;
  padding-block: var(--sp-7);
}
.section--tight { padding-block: var(--sp-6); }
.section--air { padding-block: var(--sp-8); }

/* Sektions-Kopf: Mono-Nummer links, Titel, Hairline darunter */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--sp-2);
  padding-bottom: var(--sp-2);
  border-bottom: var(--hair) solid var(--line);
  margin-bottom: var(--sp-5);
}
.section-head__title {
  font-family: var(--font-sans);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.section-head__meta { text-align: right; }

/* Platzhalter-Kennzeichnung — bleibt sichtbar, bis Originale da sind */
.ph {
  position: absolute;
  z-index: 3;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  background: rgba(10, 10, 10, 0.72);
  border: var(--hair) solid rgba(242, 240, 236, 0.28);
  padding: 0.25em 0.5em;
  pointer-events: none;
}

/* Textlink mit wachsendem Unterstrich */
.link {
  position: relative;
  display: inline-block;
  padding-bottom: 0.15em;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: var(--hair);
  background: currentColor;
  transform: scaleX(var(--sx, 1));
  transform-origin: left;
  transition: transform var(--dur-1) var(--ease-out);
}
@media (hover: hover) {
  .link { --sx: 0; }
  .link::after { transform-origin: right; }
  .link:hover { --sx: 1; }
  .link:hover::after { transform-origin: left; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0; left: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-120%);
}
.skip-link:focus { transform: none; }


/* Trefferflächen: die Mono-Zeilen sind 11 px hoch — mit Polsterung
   erreichen sie die 24 px, die WCAG 2.2 als Minimum verlangt. */
.mono-hit,
.lang__btn,
.nav__menu,
.menu__close,
.menu__grain,
.footer__col a,
.link.mono {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-block: 0.3rem;
}
.footer__col { gap: 0.15rem; }
.lang { gap: 0.25em; }
.lang__btn { min-width: 24px; justify-content: center; }
