/* ===========================================================
   Base — Reset + Typografie-Defaults
   =========================================================== */

@import url("tokens.css");

/* JetBrains Mono — lokal gehostet, DSGVO-konform.
   Datei liegt unter /assets/fonts/JetBrainsMono-Bold.woff2 (~22KB).
   Kein externer CDN-Aufruf. */
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { line-height: 1.55; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--gw-sans);
  font-size: var(--gw-body);
  color: var(--gw-ink);
  background: var(--gw-paper);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
h1 { font-size: var(--gw-display); }
h2 { font-size: var(--gw-h2); font-family: var(--gw-serif); font-weight: 400; }
h3 { font-size: var(--gw-h3); }
h4 { font-size: var(--gw-h4); }

/* Italic-Akzent in Headings */
.gw-em-accent { font-family: var(--gw-serif); font-style: italic; font-weight: 400; color: var(--gw-red); }

/* ---- Body Text Variants ---- */
.gw-body-serif { font-family: var(--gw-serif); font-size: var(--gw-body-serif); line-height: 1.55; }
.gw-mono-meta { font-family: var(--gw-mono); font-size: var(--gw-mono-meta); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.gw-mono-pill { font-family: var(--gw-mono); font-size: var(--gw-mono-pill); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; }

/* ---- Container ---- */
.gw-container { max-width: var(--gw-max-width); margin-inline: auto; padding-inline: var(--gw-container-padding); }

/* ---- Accessibility ---- */
:focus-visible { outline: 2px solid var(--gw-red); outline-offset: 3px; border-radius: 4px; }
.gw-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- Selection ---- */
::selection { background: var(--gw-red); color: var(--gw-paper); }
