@font-face {
  font-family: "Anton";
  src: url("/fonts/anton-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --ink: #f4f4f2;
  --ground: #000;
  --red: #ff2240;
  --cyan: #00e4ff;
  --muted: #9a9a9a;
  --pad: clamp(18px, 4.2vw, 72px);
  --foot: 68px;
  --lh: 0.88;
  /* Breiten in em, gemessen an Anton (Grossbuchstaben, Laufweite unten) */
  --w-wide: 7.42;
  --w-narrow: 5.06;
  --w: var(--w-wide);
  --lines: 2;
}

@media (max-width: 699px), (max-aspect-ratio: 3/4) {
  :root {
    --w: var(--w-narrow);
    --lines: 3;
  }
}

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

html, body {
  margin: 0;
  height: 100%;
  background: var(--ground);
  color: var(--ink);
  overflow: hidden;
}

body {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.stage {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  padding: var(--pad) var(--pad) 0;
  min-height: 0;
}

.claim {
  font-family: "Anton", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.004em;
  line-height: var(--lh);
  font-size: min(
    calc((100vw - 2 * var(--pad)) / var(--w)),
    calc((100svh - var(--foot) - 2 * var(--pad)) / (var(--lines) * var(--lh)))
  );
  font-kerning: normal;
  user-select: none;
}

.line {
  display: grid;
  justify-items: start;
  position: relative;
}

.line > * {
  grid-area: 1 / 1;
  white-space: pre;
}

.sizer { visibility: hidden; }
.sizer.narrow { display: none; }

@media (max-width: 699px), (max-aspect-ratio: 3/4) {
  .sizer.wide { display: none; }
  .sizer.narrow { display: block; }
}

.live,
.slice { color: var(--ink); }

.ch,
.slice {
  display: none;
  will-change: transform;
}

.ch.r { color: var(--red); mix-blend-mode: screen; }
.ch.c { color: var(--cyan); mix-blend-mode: screen; }

.line.on .live { visibility: hidden; }
.line.on .slice,
.line.on .ch { display: block; }

/* Bildschicht: Rauschen, Zeilen, Vignette, laufender Balken */
.noise,
.crt {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.tech {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.noise {
  opacity: 0.55;
  mix-blend-mode: screen;
}

.crt {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0,
      rgba(0, 0, 0, 0) 2px,
      rgba(0, 0, 0, 0.32) 3px,
      rgba(0, 0, 0, 0) 4px
    ),
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55) 100%);
}

.crt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 30%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.035) 50%, rgba(255, 255, 255, 0));
  animation: roll 9s linear infinite;
}

@keyframes roll {
  to { transform: translateY(433%); }
}

.links {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(18px, 5vw, 28px);
  align-items: center;
  min-height: var(--foot);
  padding: 0 var(--pad) max(env(safe-area-inset-bottom), 10px);
  font: 500 13px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.06em;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.links a:hover { color: var(--ink); }

.links a:focus-visible {
  color: var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .crt::after { animation: none; display: none; }
  .links a { transition: none; }
}
