@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-400-Kursiv.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-Variabel.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0f0b09;
  --bg-2: #181210;
  --bg-3: #221915;
  --text: #f4ece4;
  --muted: #a99a8c;
  --glut-1: #ff6b1a;
  --glut-2: #ffd166;
  --rand: rgba(244, 236, 228, 0.14);

  --glut: linear-gradient(100deg, var(--glut-1), var(--glut-2));

  --display: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --schrift: "Archivo", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --fs-riese: clamp(3rem, 1rem + 8.5vw, 9rem);
  --fs-h2: clamp(2rem, 1rem + 4.2vw, 5rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem);
  --fs-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-meta: 0.75rem;

  --lh-eng: 0.94;
  --lh-body: 1.7;
  --zeilenbreite: 58ch;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 160px;

  --max-breite: 1440px;
  --seitenrand: clamp(20px, 5vw, 80px);
  --kopfzeile-hoehe: 76px;

  --kurve: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--schrift);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: var(--lh-eng);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-riese); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

h1 em, h2 em, h3 em {
  font-style: italic;
  background: var(--glut);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p {
  margin: 0;
  max-width: var(--zeilenbreite);
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.etikett {
  font-family: var(--schrift);
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

:focus-visible {
  outline: 2px solid var(--glut-2);
  outline-offset: 3px;
  border-radius: 2px;
}

.sprunglink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--sp-3) var(--sp-5);
  background: var(--glut-2);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
}

.sprunglink:focus {
  left: var(--sp-4);
  top: var(--sp-4);
}

.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.koernung {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .koernung { opacity: 0.28; }
}
