@font-face {
  font-family: PublicSans;
  src: url('assets/PublicSans-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf5eb;
  --ink: #151515;
  --muted: #61574d;
  --rule: #bcafa2;
  --folder: #eee4d6;
  --accent: #a90000;
  --signal: #b90000;
  --night: #1c1919;
  --cream: #faf5eb;
  --rose: #ff938a;
  --mat: #141313;
  --gutter: clamp(1rem, 4vw, 3.75rem);
}
:root[data-theme='dark'] { color-scheme: dark; }
:root[data-theme='light'] { color-scheme: light; }
:root { --paper: light-dark(#faf5eb, #1a1717); --ink: light-dark(#151515, #faf1e7); --muted: light-dark(#61574d, #c5b7a9); --rule: light-dark(#bcafa2, #62554f); --folder: light-dark(#eee4d6, #262020); --accent: light-dark(#a90000, #ff938a); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { color-scheme: dark; } }

*, *::before, *::after { box-sizing: border-box; }
@media (pointer: fine) { html { scrollbar-gutter: stable; } }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: PublicSans, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 3px; }
::selection { color: white; background: var(--signal); }
.wrap { width: min(100%, 88rem); margin-inline: auto; padding-inline: var(--gutter); }
.icon { inline-size: 1.25rem; block-size: 1.25rem; flex: none; }
.skip-link { position: fixed; z-index: 2; inset: .5rem auto auto .5rem; clip-path: inset(50%); background: var(--paper); padding: .75rem; }
.skip-link:focus { clip-path: none; }

.topline { background: var(--signal); color: white; font-size: .6875rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.topline .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem .9rem; min-height: 2.125rem; padding-block: .5rem; }
.site-header { border-bottom: 1px solid var(--rule); }
.head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .25rem clamp(.75rem, 3vw, 2.5rem); padding-block: .5rem; }
.brand { display: block; inline-size: clamp(9.25rem, 17vw, 13.5rem); }
.logo { display: block; width: 100%; height: auto; }
.logo-dark { display: none; }
:root[data-theme='dark'] .logo-light { display: none; }
:root[data-theme='dark'] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-light { display: none; }
  :root:not([data-theme]) .logo-dark { display: block; }
}
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 clamp(.75rem, 3vw, 2rem); }
nav a { min-height: 2.75rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 750; text-decoration: none; }
nav a:hover { color: var(--accent); text-decoration: underline; }
.icon-button { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; color: inherit; border: 1px solid var(--rule); background: transparent; cursor: pointer; padding: 0; }
.icon-button:hover { color: var(--accent); border-color: currentColor; }
.theme-toggle[aria-pressed='false'] .sun, .theme-toggle[aria-pressed='true'] .moon { display: none; }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) min(43%, 27rem); margin-top: clamp(1rem, 3vw, 2.5rem); border: 1px solid var(--night); }
.intro-text { --focus: var(--rose); display: flex; align-items: center; min-width: 0; background: var(--night); color: var(--cream); padding: clamp(1.5rem, 4vw, 4rem); }
.intro h1 { margin: 0; font-size: clamp(2.4rem, 5.7vw, 5.6rem); font-weight: 875; letter-spacing: -.04em; line-height: .98; overflow-wrap: break-word; }
.intro h1 span { color: var(--rose); }
.intro-copy { max-width: 35ch; margin: clamp(1.25rem, 2.4vw, 2rem) 0 0; font-size: clamp(.9375rem, 1.5vw, 1.125rem); line-height: 1.55; }
.intro-copy strong { display: block; margin-bottom: .4rem; }
.intro-link { display: inline-flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 2.75rem; margin-top: 1.3rem; background: var(--cream); color: #151515; padding: .55rem .85rem; font-weight: 800; font-size: .875rem; text-decoration: none; }
.intro-link:hover { background: var(--rose); }
.intro-disclosure { font-size: .75rem; margin: .85rem 0 0; color: #f6c9c1; }
.featured { display: flex; flex-direction: column; background: var(--folder); }
.featured .poster-link { flex: 1; }
.featured figcaption { padding: .75rem 1rem .85rem; }
.featured figcaption strong { display: block; font-size: clamp(.9rem, 1.6vw, 1.125rem); }
.featured figcaption p { margin: .25rem 0 0; font-size: .8125rem; line-height: 1.45; color: var(--muted); }

.archive { margin-top: clamp(2.5rem, 4.5vw, 4.25rem); }
#archiv, #einordnung { scroll-margin-block-start: 1.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .55rem 1.5rem; border-top: 2px solid var(--ink); padding: 1.2rem 0 clamp(1.1rem, 2.5vw, 1.8rem); }
.section-head h2, .note h2 { font-size: clamp(1.8rem, 4.7vw, 3.5rem); line-height: 1.02; letter-spacing: -.04em; margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.1rem) clamp(.75rem, 2vw, 1.6rem); }
.poster { margin: 0; min-width: 0; }
.poster-link { display: grid; place-items: center; background: var(--mat); position: relative; aspect-ratio: 1122 / 1402; }
.poster-link img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; color: var(--cream); }
.poster-link:focus-visible { z-index: 1; }
.poster-link:hover .poster-cue, .poster-link:focus-visible .poster-cue { color: #151515; background: var(--cream); }
.poster-cue { position: absolute; z-index: 1; inset: .45rem .45rem auto auto; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; color: var(--cream); background: var(--mat); border: 1px solid var(--cream); pointer-events: none; }
.poster-cue .icon { inline-size: 1.125rem; block-size: 1.125rem; }
.grid figcaption { border-top: 1px solid var(--rule); padding-top: .65rem; margin-top: .45rem; }
.grid h3 { margin: 0; font-size: clamp(.875rem, 1.5vw, 1.125rem); font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }

.note { margin-block: clamp(3rem, 7vw, 6rem) 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1.2rem clamp(1.5rem, 5vw, 4rem); padding: clamp(1.25rem, 4vw, 3.25rem); background: var(--folder); }
.note p { max-width: 66ch; margin: 0; line-height: 1.6; }
.featured-controls { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: .7rem; }
.featured-controls[hidden] { display: none; }
.hero-pause { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; background: transparent; color: var(--ink); border: 1px solid var(--rule); cursor: pointer; }
.hero-pause:disabled { opacity: .65; cursor: not-allowed; }
.featured .poster-link { overflow: hidden; }
.featured .poster-link img { will-change: auto; }
.note h1 { font-size: clamp(1.8rem, 4.7vw, 3.5rem); line-height: 1.02; letter-spacing: -.04em; margin: 0; }
.note p + p { margin-top: .65rem; }
footer { --focus: var(--rose); background: var(--night); color: var(--cream); margin-top: clamp(1.5rem, 4vw, 3.5rem); padding-block: 1.25rem; font-size: .8125rem; line-height: 1.55; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem; }
footer p { margin: 0; }
footer a:hover { color: var(--rose); }

.viewer { width: min(94vw, 48rem); max-width: none; max-height: calc(100dvh - 1.5rem); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--rule); padding: 0; background: var(--paper); color: var(--ink); box-shadow: 0 .75rem 3rem #0008; }
.viewer::backdrop { background: #0a0808d9; }
.viewer-head, .viewer-foot { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: .55rem .8rem; }
.viewer-head h2 { margin: 0; font-size: clamp(1rem, 2.5vw, 1.35rem); line-height: 1.2; overflow-wrap: anywhere; }
.viewer-stage { display: grid; place-items: center; height: clamp(7.5rem, min(117vw, 100dvh - 10rem), 58rem); background: var(--mat); color: var(--cream); }
.viewer-image { width: 100%; height: 100%; min-height: 0; display: block; object-fit: contain; }
.viewer-status { padding: .75rem; text-align: center; }
.viewer-foot p { margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.35; }
.viewer-controls { display: flex; gap: .45rem; }
.arrow-prev { transform: rotate(90deg); }
.arrow-next { transform: rotate(-90deg); }

@media (max-width: 43rem) {
  .intro { grid-template-columns: 1fr; }
  .intro h1 { font-size: clamp(2.35rem, 8vw, 3.65rem); }
  .featured .poster-link { flex: auto; }
  .note { grid-template-columns: 1fr; }
}
@media (max-width: 38rem) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) {
  .head { grid-template-columns: 1fr auto; padding-bottom: .25rem; }
  .brand { grid-column: 1 / -1; }
  nav { justify-content: flex-start; gap: .25rem 1.25rem; }
  .grid .poster:last-child { grid-column: 1 / -1; }
}
