/* Fonts: drop licensed .woff2 files into assets/fonts/ with these names. Missing files fall back silently. */
@font-face { font-family: "Soehne Schmal"; src: url("../fonts/SoehneSchmal-Halbfett.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Aeonik"; src: url("../fonts/Aeonik-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Aeonik"; src: url("../fonts/Aeonik-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-auto);
  font-weight: 400;
  color: var(--fg, var(--c-black));
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, ul, ol, dl, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:where(b, strong) { font-weight: 700; }

/* Theme context: sections set --fg / --bg / --muted / --focus through .on-dark / .on-light */
.on-dark  { --fg: var(--c-white); --bg: var(--c-black); --muted: var(--c-grey-500); --focus: var(--c-focus-dark); color: var(--fg); background: var(--bg); }
.on-light { --fg: var(--c-black); --bg: var(--c-white); --muted: var(--c-grey-500); --focus: var(--c-focus-light); color: var(--fg); background: var(--bg); }

:focus-visible { outline: 2px solid var(--focus, var(--c-focus-light)); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: var(--z-modal); background: var(--c-yellow); color: var(--c-black); padding: .75rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }

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