@font-face {
  font-family: "Host Grotesk";
  src: url("fonts/host-grotesk-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Host Grotesk";
  src: url("fonts/host-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08080a;
  --fg: #e6e5ec;
  --soft: #b4b3bf; /* Fließtext zweiter Ordnung */
  --muted: #7a7986; /* Werkangaben, Fußzeile */
  --accent: #aab6ff; /* helles Blauviolett */

  --font: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-small: 0.9375rem;
  --t-body: 1.1875rem;
  --t-essay: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
  --t-head: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --t-hero: clamp(2.6rem, 1.3rem + 5.6vw, 5.75rem);

  --gap-section: clamp(6rem, 3rem + 10vw, 12rem);
  --measure: 34rem;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--muted);
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}
a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

img,
canvas {
  display: block;
  max-width: 100%;
}
p {
  margin: 0;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 300;
  text-wrap: balance;
}

.page {
  max-width: 82rem;
  margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}
@media (min-width: 56rem) {
  .page {
    padding-left: max(3rem, env(safe-area-inset-left, 0px));
    padding-right: max(3rem, env(safe-area-inset-right, 0px));
  }
}

/* --- Kopf: nur der Name --- */
.site-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-block: 1.75rem;
  font-size: var(--t-small);
}
.site-head a {
  text-decoration: none;
}
.site-head .role {
  color: var(--muted);
}

/* --- Eröffnung --- */
.opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding-block: clamp(3rem, 1rem + 8vw, 9rem) var(--gap-section);
}
.opening h1 {
  font-size: var(--t-hero);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 11ch;
}
.opening h1 .accent {
  color: var(--accent);
}
.opening .lead {
  max-width: 26rem;
  margin-top: 1.5rem;
  font-size: var(--t-essay);
  line-height: 1.45;
  color: var(--soft);
}
.spiral {
  width: 100%;
  height: clamp(240px, 60vw, 420px);
}
@media (min-width: 56rem) {
  .opening {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    column-gap: 2rem;
  }
  .spiral {
    height: 560px;
  }
}
.opening > * {
  min-width: 0;
}

/* --- Abschnitte --- */
.section {
  padding-block: 0 var(--gap-section);
}
.section h2 {
  font-size: var(--t-head);
  margin-bottom: 2rem;
}
@media (min-width: 56rem) {
  /* Text rückt nach rechts ein, wie ein Katalogtext neben der Hängung */
  .section .indent {
    margin-left: calc(100% / 12 * 4);
  }
}

.essay {
  display: grid;
  gap: 1.4rem;
  max-width: var(--measure);
  font-size: var(--t-essay);
  line-height: 1.55;
}
.essay p + p {
  color: var(--soft);
}
.essay p:first-child {
  color: var(--fg);
}

/* --- Werkserie: versetzte Hängung --- */
.series-intro {
  max-width: var(--measure);
  color: var(--soft);
  margin-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}
.series-intro h2 {
  margin-bottom: 1.25rem;
}

.works {
  display: grid;
  gap: clamp(4.5rem, 2rem + 7vw, 9rem);
}
.work {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 56rem) {
  .works {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .work:nth-child(1) {
    grid-column: 1 / span 9;
  }
  .work:nth-child(2) {
    grid-column: 4 / span 9;
  }
  .work:nth-child(3) {
    grid-column: 2 / span 8;
  }
}
.work figure {
  margin: 0;
}
.still {
  margin: 0;
  background: #0d0d11;
}
.still img {
  width: 100%;
  height: auto;
}

/* Werkangaben wie auf einem Wandschild */
.caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 2.5rem;
}
@media (min-width: 40rem) {
  .caption {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}
.caption > * {
  min-width: 0;
}
.label {
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--muted);
}
.label h3 {
  font-size: var(--t-body);
  color: var(--fg);
  margin-bottom: 0.15rem;
}
.text {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  color: var(--soft);
  max-width: var(--measure);
}
.text a {
  color: var(--fg);
  justify-self: start;
}

/* --- Fußzeile --- */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-block: 2rem 3rem;
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--muted);
}
.site-foot h2 {
  font-size: var(--t-small);
  color: var(--soft);
  margin-bottom: 0.25rem;
}
.site-foot a {
  color: var(--soft);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
