/* Base
   Reset, Box-Sizing und Basis-Typografie.
   Hier nichts Projektspezifisches, nur saubere Defaults. */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  font-size: clamp(var(--fs-base), 0.9rem + 0.4vw, var(--fs-md));
  line-height: 1.6;
  color: var(--color-fg);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  hyphens: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

p {
  max-width: 60ch;
}

a {
  color: var(--color-fg);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}

#credits {
    font-style: italic;
    color:var(--color-accent);
    font-size: 0.9em;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

ol,
ul {
  list-style: none;
}

blockquote {
  quotes: none;
}

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