/* Reset, typography, focus and reduced motion. */
@layer base {
  @font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/manrope.ttf') format('truetype');
    font-weight: 200 800;
    font-display: swap;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: var(--color-bg);
  }
  body {
    margin: 0;
    min-height: 100dvh;
    font: var(--weight-regular) var(--text-md) / 1.45 var(--font);
    color: var(--color-text);
    background:
      radial-gradient(ellipse at 0 0, var(--color-bg-glow), transparent 55%),
      var(--color-bg);
    overflow-x: hidden;
  }
  h1, h2, h3, p, ul, ol, figure { margin: 0; }
  h1 { font-size: var(--text-xl); line-height: 1.2; font-weight: var(--weight-heavy); letter-spacing: -0.01em; }
  h2 { font-size: var(--text-lg); line-height: 1.25; font-weight: var(--weight-bold); }
  h3 { font-size: var(--text-md); line-height: 1.3; font-weight: var(--weight-bold); }
  ul, ol { padding: 0; list-style: none; }
  a { color: var(--color-accent); text-underline-offset: 0.15em; }
  img, svg { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
  /* Placeholders carry formats ("z. B. 47,5", "https://"): the muted text colour, which has the text
     contrast on every surface (tests/js/contrast.test.cjs), not the browser's grey. */
  ::placeholder { color: var(--color-text-muted); opacity: 1; }
  [tabindex='-1']:focus { outline: none; }
  :focus-visible {
    outline: var(--focus-ring) solid var(--color-focus);
    outline-offset: 2px;
  }
  ::selection { background: var(--color-accent-soft); }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0ms;
      transition-duration: 0ms;
      scroll-behavior: auto;
    }
  }
}
