/* Magdalena Spielmann — public stylesheet.
   Ported from the Nuxt build: same palette, same fonts, same alternating
   light/dark rhythm with gold hairlines. Fluid type and real responsive
   images are the polish pass. */

@font-face {
  font-family: Italiana;
  src: url("/static/fonts/italiana-v16-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("/static/fonts/montserrat-v25-latin-200.woff2") format("woff2");
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("/static/fonts/montserrat-v25-latin-300.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("/static/fonts/montserrat-v25-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --gold: #deaa3a;
  --gold-light: #f6d083;
  --gold-dark: #a47b29;
  --gold-darker: #674d1b;
  /* Two greys that were doing text: #919191 read 3.15:1 and #c7c7c7 1.69:1 —
     the second is the copyright line, the first is the text she types into
     the contact form. --gray-light stays for hairlines, which are decoration
     and have no minimum; --ink-muted is the one that carries words. */
  --gray: #919191;
  --gray-light: #c7c7c7;
  --ink-muted: #6f6f6f;
  /* Text that recedes *inside a dark band* — a composer's name over a work, a
     track number, an attribution. Deliberately a second name for the same
     value as --gray-light: on the dark grey it measures 5.58:1 and may carry
     words, on white it is 1.69:1 and may not. One token per job, so the wrong
     one cannot be reached for by habit. */
  --ink-muted-dark: #c7c7c7;
  --dark-gray: #464646;
  --dark: #333333;
  /* One width for every block, so the left edge never jogs between a text
     section and the picture under it. It is wider than the 1024px the port
     inherited because two columns of text inside 1024 come out at about 35
     characters; a single column does not fill it — prose is capped at
     --measure and centred. */
  --container: 1240px;

  /* One type scale, not five clamps that happen to sit near each other.
     Every step is derived from a base and a ratio at each end (16px × 1.2 on a
     390px phone, 18.5px × 1.333 on a 1440px desktop), so the *relationship*
     between a heading and its text is the same at both. It was not: h1 was
     1.83× h2 on a phone and 2.40× on a desktop, because each size interpolated
     on its own. Step 6 is display type — the page's name — and is deliberately
     louder than the text scale wants. */
  /* A step below the body for captions and notes. Nothing on the site is
     smaller than this: the embed's privacy line had drifted to 11.8px, and it
     is the one sentence that says a third party is about to be contacted. */
  --step--1: clamp(0.833rem, 0.807rem + 0.107vw, 0.903rem);
  --step-0: clamp(1rem, 0.942rem + 0.238vw, 1.156rem);
  --step-1: clamp(1.2rem, 1.073rem + 0.52vw, 1.541rem);
  --step-2: clamp(1.44rem, 1.212rem + 0.936vw, 2.055rem);
  --step-3: clamp(1.728rem, 1.353rem + 1.54vw, 2.739rem);
  --step-4: clamp(2.074rem, 1.488rem + 2.403vw, 3.651rem);
  --step-5: clamp(2.488rem, 1.605rem + 3.624vw, 4.866rem);
  --step-6: clamp(2.986rem, 1.686rem + 5.335vw, 6.487rem);

  /* The comfortable line: prose is capped here rather than at whatever the
     container happens to be. */
  --measure: 68ch;
  --gutter: clamp(1rem, 4vw, 2rem);
  /* How far anything that belongs to the *page* rather than to the text column
     stands from the viewport edge: the header, and the two things lying on the
     hero. They used to be three different numbers — 611px, 128px and 64px from
     the edge on a 2560px screen — which is why the menu looked fenced in while
     her name ran to the edge. One value, one vertical line to align to. */
  --edge: clamp(1.25rem, 3vw, 4rem);
  --band-y: clamp(2.5rem, 6vw, 5rem);
  --header-h: 5rem;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--dark-gray);
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
iframe {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

/* Gold is an accent, not an ink: as text on white it reads 2.12:1, and no
   amount of it being the brand colour changes that. So a link is written in
   the body's own ink and *marked* in gold — the underline carries the colour
   and the meaning, which also means links no longer depend on colour alone
   to be told apart from the sentence around them. */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.25s, color 0.25s;
}

a:hover,
a:focus-visible {
  color: var(--dark);
  text-decoration-thickness: 2px;
}

/* Underlined by default, because a link that cannot be found is worse than
   one that is marked too plainly — a new link added later starts visible
   rather than invisible. What opts out is *chrome*: a row of navigation, a
   wordmark, a button, an icon. Those are told apart by where they sit and
   what shape they are, and an underline under an icon is just a smudge.
   Anything in running text keeps the mark. */
.wordmark,
.skip-link,
.button,
.drawer a,
.site-footer__links a,
.site-footer__social a,
.site-footer__lang a,
.social__link,
.thumb,
.slideshow__nav {
  text-decoration: none;
}

/* …except the one that says which language you are reading, where the mark
   is the state — the same job the gold rule does in the main menu.

   It is a <span>, not a link: you cannot navigate to the page you are on. The
   old rule said `a.is-active`, matched nothing, and so the switch never said
   which of the two you were reading — it has looked like "Deutsch / English"
   with no current one since the port. */
.site-footer__lang .is-active {
  color: var(--dark-gray);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3 {
  font-weight: 300;
  line-height: 1.1;
  margin: 0 0 1rem;
}

h1 {
  font-family: Italiana, Georgia, serif;
  font-weight: 400;
  font-size: var(--step-6);
  margin: 0 0 2rem;
}

/* The page's name, at the top of every page but the start page. The live site
   set this in gold, which reads 2.12:1 on white and fails even the relaxed
   bar for large text — so the letters are ink and the gold is the rule under
   them, the same trade the rest of the site now makes.

   And then out of the way: it was spending 274px of a 1040px window on one
   word, which on a gallery page pushed the photographs below the fold. The
   title is how you know where you are, not the thing you came for. */
.page-head {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(1.25rem, 3vw, 2.25rem);
  text-align: center;
}

.page-title {
  margin: 0;
  line-height: 1.05;
}

.page-title::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 1px;
  margin: clamp(1rem, 2.5vw, 1.75rem) auto 0;
  background: var(--gold);
}

h2 {
  font-size: var(--step-4);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--step-2);
}

p {
  margin: 0 0 1.35em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.muted {
  color: var(--ink-muted);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(222, 170, 58, 0.35);
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s;
}

/* over a full-screen cover image the bar floats until you scroll */
.site-header--over {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  color: #fff;
}

.site-header--over .wordmark,
.site-header--over .nav a,
.site-header--over .nav__label {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.site-header--over.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom-color: rgba(222, 170, 58, 0.35);
}

.site-header--over.is-scrolled .wordmark,
.site-header--over.is-scrolled .nav a,
.site-header--over.is-scrolled .nav__label {
  color: var(--dark-gray);
  text-shadow: none;
}

/* Full width on purpose: the bar floats over a full-bleed photograph, and a
   1400px cap left the wordmark hovering in the middle of the picture with
   580px of image to its left. The footer already runs edge to edge. */
.site-header__inner {
  min-height: var(--header-h);
  padding-inline: var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(1rem, 2vw, 1.6rem);
  color: var(--dark-gray);
  /* respells the colour transition the `a` rule gives it, which naming
     `transition` here would otherwise replace */
  transition: color 0.25s, opacity 0.35s, visibility 0s;
}

/* The start page says her name in Italiana at six rem a moment below this
   bar, so the bar does not say it a second time — the old site dropped the
   link on `/` for the same reason. It comes back as the header does: once you
   have scrolled past the photograph the big name is gone, and an empty corner
   with no way home is not the tidier answer.

   Hidden by visibility rather than `display: none` on purpose. The header
   measures its own children to decide whether the row still fits (see
   `is-crowded`), and a wordmark taking no width would let the desktop nav
   stay up at a size where it clips the moment the wordmark returned. This
   keeps the box and only stops drawing it — which also takes it out of the
   tab order, so there is no invisible link to land on. */
.site-header--over:not(.is-scrolled) .wordmark {
  opacity: 0;
  visibility: hidden;
  /* going away, the fade runs first and the box stops counting after it;
     coming back, both happen at once */
  transition: opacity 0.35s, visibility 0s 0.35s;
}

.wordmark:hover {
  text-decoration: none;
  color: var(--gold);
}

.nav--desktop {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.8vw, 1.75rem);
}

.nav a,
.nav__label {
  color: var(--dark-gray);
  font-size: 1.05rem;
  font-weight: 300;
  white-space: nowrap;
}

.nav a::after,
.nav__label::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  text-decoration: none;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after,
.nav__group:hover .nav__label::after,
.nav__group:focus-within .nav__label::after,
.nav__label[aria-current="page"]::after {
  transform: scaleX(1);
}

/* The current page is marked by the gold rule under it (see the ::after
   above), not by gold lettering — same mark, readable text. */
.nav a,
.nav__label {
  text-decoration: none;
}

.nav__group {
  position: relative;
  display: flex;
  align-items: center;
}

/* A <button> brings its own line-height ("normal", 20px here) while the links
   beside it inherit the body's 1.6 — and the group's own line box was taller
   than both, so the one entry that opens a dropdown sat 4.5px below the row.
   Same font, same line box, same 1px underline: same baseline. */
.nav__label {
  background: none;
  border: 0;
  padding: 0;
  /* not `font: inherit` — that shorthand would also reset the 1.05rem the
     row shares, leaving this one entry a size smaller than its neighbours */
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
  cursor: pointer;
}

/* The drawn chevron (see the "caret" template). `vertical-align: middle`
   rather than a translate: it aligns to the *text's* middle, so it stays put
   if the row's font size ever changes. The underline is the label's ::after
   and is unaffected — the caret must not become a flex item, which is why the
   label is left as an inline box. */
.nav__caret {
  vertical-align: middle;
  margin-left: 0.3em;
  opacity: 0.55;
}

/* "You are in this section." The child that is actually open carries
   aria-current inside the dropdown; up here the group says which part of the
   site you are in, with the same gold rule every other entry uses — the mark
   is a rule, never a colour, because gold as lettering reads 2.12:1. */
.nav__group.is-section .nav__label::after {
  transform: scaleX(1);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  translate: -50% 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  padding: 0.4rem;
  min-width: 12rem;
  display: grid;
  opacity: 0;
  visibility: hidden;
  translate: -50% -6px;
  transition:
    opacity 0.2s,
    translate 0.2s,
    visibility 0.2s;
}

.nav__group:hover .nav__dropdown,
.nav__group:focus-within .nav__dropdown,
.nav__group.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  translate: -50% 0;
}

.nav__dropdown a {
  color: var(--dark-gray) !important;
  text-shadow: none !important;
  padding: 0.55rem 0.75rem;
}

.nav__dropdown a:hover {
  background: #faf6ec;
  color: var(--gold-dark) !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.drawer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  padding: 1rem var(--gutter) 2rem;
}

.drawer nav {
  display: grid;
  gap: 0.25rem;
}

.drawer a {
  color: var(--dark-gray);
  padding: 0.7rem 0;
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* The label a group of pages sits under. It was 12.8px — smaller than the
   entries beneath it and below the site's own floor of --step--1, which is the
   wrong way round for the line that names them. Small caps and the muted ink
   tell it apart from its children now; size does not. */
.drawer__group {
  padding-top: 1rem;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.drawer__child {
  padding-left: 1rem;
}

/* The same answer the desktop row gives, in the shape the drawer has room
   for: a gold rule under the entry that is open. */
.drawer a[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: var(--ink);
}

/* Set by site.js when the row would not fit: one label too many collapses
   the whole navigation into the burger instead of clipping an entry. */
.site-header.is-crowded .nav--desktop {
  display: none;
}

.site-header.is-crowded .burger {
  display: flex;
}

@media (max-width: 1100px) {
  .nav--desktop {
    display: none;
  }
  .burger {
    display: flex;
  }
}

@media (min-width: 1101px) {
  .drawer {
    display: none !important;
  }
}

/* ---------- bands: the alternating rhythm ---------- */

.band {
  padding-block: var(--band-y);
  background: #fff;
  color: var(--dark-gray);
}

/* Where the background changes, the eye reads the change as the join and each
   band's padding is its own breathing room. Where it does not change, the two
   paddings sit end to end and the gap is twice as big as everywhere else —
   160px against 80px on the same page. The second of a pair drops its top. */
.band:not(.band--dark) + .band:not(.band--dark),
.band--dark + .band--dark {
  padding-top: 0;
}

.band--dark {
  background: var(--dark-gray);
  color: #fff;
}

/* ---------- separator ----------------------------------------------------
   A block that is only a pause. Its band is half height, because the padding
   of the blocks on either side is already doing most of the work: at full
   height two adjacent white bands plus this one put 240px of nothing between
   two paragraphs.

   The short rule is gold, which is allowed — gold draws lines here, it never
   spells a word. The wide one is a grey hairline: a gold line the full width
   of the text column reads as a heading rule (the mark over every h2) and
   would say "a section starts here" twice. */
.band--separator {
  padding-block: calc(var(--band-y) / 2);
}

.separator {
  border: 0;
  margin: 0 auto;
}

.separator--short {
  width: 4rem;
  height: 1px;
  background: var(--gold);
}

.separator--wide {
  width: 100%;
  height: 1px;
  background: var(--gray-light);
}

/* Nothing to see: the block *is* the gap. Half a band on top of the half-band
   padding gives one full band of air, which is the site's own unit. */
.separator--space {
  height: var(--band-y);
}

/* On the dark band the grey hairline disappears into the background. */
.band--dark .separator--wide {
  background: rgba(255, 255, 255, 0.25);
}

.band--dark a {
  color: inherit;
  text-decoration-color: var(--gold-light);
}

/* ---------- the gold hairline over content -------------------------------
   There is one of these, drawn one way. It sits over a headline (.rule) or,
   where a block's heading is inside its own layout, over the block itself
   (.rule-top — the music and news splits). The second used to be its own
   line: 85% gold, stopping at the text column instead of running off the
   edge. Two golds and two geometries for one job, and on a dark band it did
   not mirror with everything else. */
.rule,
.rule-top {
  position: relative;
}

.rule {
  padding-top: 1.6rem;
  margin-bottom: 2rem;
}

/* Over a split there is no headline to sit against, and the image below it
   needs the extra air. */
.rule-top {
  padding-top: 2rem;
}

/* The hairline runs from the content to the viewport edge. Offsetting by
   (50% - 50vw) lands exactly on the edge at any width; computing a width
   overshoots by one gutter. */
.rule::before,
.rule-top::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: calc(50% - 50vw);
  height: 1px;
  background: var(--gold);
}

/* On the dark band it runs off the other side, in the gold that survives
   there. */
.band--dark :is(.rule, .rule-top)::before {
  left: 0;
  right: calc(50% - 50vw);
  background: var(--gold-light);
}

/* ---------- what a booklet holds: tracklist · credits · press -------------
   Three blocks that exist because a release page has more to say than prose
   and a picture. They share one habit: the *content* is ink, and gold only
   ever draws a line. */

.tracklist,
.credits,
.quotes {
  max-width: var(--measure);
}

.tracklist__work + .tracklist__work {
  margin-top: 2rem;
}

/* Composer over work, because that is the order a programme prints and the
   order the eye needs: whose music, then which piece. */
.tracklist__heading {
  font-size: var(--step-0);
  font-weight: 400;
  margin: 0 0 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.tracklist__composer {
  color: var(--ink-muted);
}

.band--dark .tracklist__composer {
  color: var(--ink-muted-dark);
}

.tracklist__title {
  font-style: italic;
}

.tracklist__tracks {
  /* The numbers run through the whole disc and are drawn by the template, so
     the browser's own counter has to be off — left on, every work would start
     again at 1 beside our numbers. */
  list-style: none;
  margin: 0;
  padding: 0;
}

.tracklist__tracks li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: baseline;
  padding: 0.3rem 0;
}

.tracklist__tracks li + li {
  border-top: 1px solid var(--gray-light);
}

.band--dark .tracklist__tracks li + li {
  border-top-color: rgba(255, 255, 255, 0.18);
}

/* Tabular figures so 9 and 10 line up at the left edge of the column rather
   than drifting by the width of a digit. */
.tracklist__no {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.band--dark .tracklist__no {
  color: var(--ink-muted-dark);
}

.credits {
  margin: 0;
}

/* Name and role on one line at reading width, name over role when there is
   no room — never truncated, because a name is the one thing on this block
   that must survive. */
.credits__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0 1.5rem;
  padding: 0.35rem 0;
}

.credits__line + .credits__line {
  border-top: 1px solid var(--gray-light);
}

.band--dark .credits__line + .credits__line {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.credits dt {
  margin: 0;
}

.credits dd {
  margin: 0;
  color: var(--ink-muted);
}

.band--dark .credits dd {
  color: var(--ink-muted-dark);
}

.quote + .quote {
  margin-top: 2rem;
}

.quote {
  margin: 0;
  /* The one gold thing here, and it is a line: a rule down the side, the same
     shape the editor uses for a quotation. */
  border-left: 2px solid var(--gold);
  padding-left: clamp(1rem, 2.5vw, 1.75rem);
}

.quote blockquote {
  margin: 0;
  font-size: var(--step-1);
  font-style: italic;
}

.quote blockquote p {
  margin: 0;
  /* The quotation is plain text with real line breaks — same rule as a
     teaser, or the paragraphing she typed is silently lost. */
  white-space: pre-line;
}

/* Drawn, not typed: the field asks her to leave them out, so a review quoted
   on the English page gets the English pair. */
.quote blockquote p::before {
  content: open-quote;
}

.quote blockquote p::after {
  content: close-quote;
}

.quote__by {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  font-size: var(--step--1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.6rem;
}

.band--dark .quote__by {
  color: var(--ink-muted-dark);
}

/* „Thomas Baak · Klassik heute · 07.03.2024" — the dots are drawn between the
   parts rather than typed into them, so a quotation with no source or no date
   does not end up with a dangling separator. */
.quote__by > * + *::before {
  content: "·";
  margin-right: 0.6rem;
}

@media (max-width: 34rem) {
  .credits__line {
    grid-template-columns: 1fr;
  }
}

/* ---------- prose (editor HTML) ---------- */

.prose > *:first-child {
  margin-top: 0;
}

.prose > *:last-child {
  margin-bottom: 0;
}

/* CKEditor offered "Heading 3" and it was used as a paragraph style, so a lot
   of body copy is wrapped in <h3>. The old site rendered h3 at 1.5rem/300,
   which is why it read as normal text — keep that inside .prose. */
.prose h3,
.prose h4 {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.45;
  margin: 0 0 1rem;
}

.prose h4 {
  font-size: 1.25rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
  margin: 0 0 1.35em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose--lg {
  font-size: var(--step-1);
}

.prose--sm {
  font-size: 0.95rem;
}

.prose blockquote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold);
  font-style: italic;
}

/* ---------- layout primitives ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

/* grid items default to min-width:auto, so a wide embed or a long word
   pushes the track past the container */
.split > *,
.columns > * {
  min-width: 0;
}

.split--flip > *:first-child {
  order: 2;
}

.split--music {
  grid-template-columns: 5fr 7fr;
}

/* flipped: the embed moves right, and the wide track moves with the text */
.split--music.split--flip {
  grid-template-columns: 7fr 5fr;
}

.split--music .embed {
  align-self: center;
}

/* Two columns inside the 1024px container gave 456px each — about 35
   characters a line, which is a newspaper column, not a page you read. The
   column count is now what fits at a readable width rather than what the
   editor typed: a track is at least 26rem, and a block that cannot have two
   at that width has one. Wide text blocks get more room to work with
   (--container-wide) so two columns are actually possible. */
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

/* A single column of prose stops at the comfortable line — and starts where
   everything else in the band starts.

   It used to be centred inside the container, which put three different left
   edges on one page: measured on /de/kontakt at 1600px, the headline began at
   212, the prose at 392 and the form back at 212. The measure is worth keeping
   and the centring was never what made it readable; a column that begins under
   its own headline is. */
.columns > .prose:only-child,
.container > .prose {
  max-width: var(--measure);
}

@media (max-width: 900px) {
  /* .split--music.split--flip is more specific than .split, so it has to be
     named here or the flipped music block stays two-column on phones */
  .split,
  .split--music,
  .split--music.split--flip {
    grid-template-columns: 1fr;
  }
  .split--flip > *:first-child {
    order: 0;
  }
}

.figure {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.figure img {
  width: 100%;
}

.figure figcaption,
/* Only where the photograph fills its frame edge to edge: there a caption has
   to lie on the picture. In a letterboxed gallery it was being pinned to the
   bottom-left of the *slide*, which on a wide screen is a caption stranded in
   the white margin a thousand pixels from the picture it names. */
.gallery--cover .slide figcaption,
.gallery--hero .slide figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0.35rem 0.6rem;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  color: var(--dark-gray);
}

.figure--wide img {
  width: 100%;
}

/* ---- embed facade ----
   Stands in for the player until the visitor clicks. It has to look like
   something you can press, and it has to say what pressing it will do. */

.facade {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  background: #1b1b1b;
  color: #fff;
  text-align: left;
  aspect-ratio: 16 / 9;
}

.facade__cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: opacity 0.25s, transform 0.35s;
}

.facade__cover--blank {
  background: linear-gradient(140deg, #2c2c2c, #171717);
}

.facade:hover .facade__cover,
.facade:focus-visible .facade__cover {
  opacity: 0.78;
  transform: scale(1.02);
}

/* the play triangle, drawn rather than shipped as an asset */
.facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.2rem;
  height: 4.2rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.9);
  transition: background 0.2s, transform 0.2s;
}

.facade__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent #fff;
}

.facade:hover .facade__play,
.facade:focus-visible .facade__play {
  background: var(--primary-color, #deaa3a);
  transform: translate(-50%, -50%) scale(1.06);
}

.facade__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 0.15rem;
  padding: 2.4rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
}

.facade__name {
  font-size: 0.95rem;
  line-height: 1.3;
}

.facade__note {
  font-size: var(--step--1);
  opacity: 0.85;
}

.facade--empty {
  display: grid;
  place-content: center;
  aspect-ratio: 16 / 9;
  background: #f0ede7;
  color: var(--dark-gray);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.music__source {
  margin-top: 0.9rem;
  font-size: var(--step--1);
}

.embed iframe {
  border: 0;
  width: 100%;
  /* embeds ship a height="315" attribute; clear it or aspect-ratio is ignored */
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
}

/* Spotify and SoundCloud players carry their own height; 16:9 would crop them */
.embed iframe[data-provider="spotify"],
.embed iframe[src*="spotify"] {
  aspect-ratio: auto;
  min-height: 352px;
}

.embed iframe[data-provider="soundcloud"] {
  aspect-ratio: auto;
  min-height: 400px;
}

.music__title {
  font-size: var(--step-3);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.6rem 0.65rem;
  font: inherit;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}

.button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ---------- gallery / slideshow ---------- */

.gallery {
  padding-block: var(--band-y);
}

.gallery--hero {
  padding-block: 0;
}

/* The page's name already stands in its own padded band, so a gallery right
   below it was separated twice — 80px of nothing between the gold rule and the
   photograph. The title's own space is the separation. */
.page-head + .gallery {
  padding-top: 0;
}

/* Her name is white and the photographs are bright walls and daylight, so on
   the third slide the text was white on light grey. The scrim gives the words
   a ground of their own — darkest where they sit, and a lighter wash at the
   top so the floating header keeps its contrast too. It is a gradient, not a
   flat veil: the middle of the picture, which is where she is, stays untouched. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(26, 22, 18, 0.6) 0%, rgba(26, 22, 18, 0.15) 14%,
      rgba(26, 22, 18, 0) 24%),
    linear-gradient(to top, rgba(26, 22, 18, 0.72) 0%, rgba(26, 22, 18, 0.3) 26%,
      rgba(26, 22, 18, 0) 52%);
}

.slideshow {
  position: relative;
  overflow: hidden;
}

/* Every slide in the same cell, one of them visible. The strip used to be a
   flex row that slid sideways, so going from the first thumbnail to the tenth
   dragged the eight in between across the screen at speed — and where the
   shapes differ each one snapped to a different width on the way past. A
   crossfade costs the same whether the next picture is the neighbour or nine
   along, and nothing travels through the white space between them. */
.slides {
  display: grid;
}

.slide {
  grid-area: 1 / 1;
  position: relative;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  /* visibility waits for the fade to finish, so the picture going out is not
     cut off mid-fade; on the way in it switches immediately. */
  transition: opacity 0.5s ease, visibility 0s 0.5s;
  /* the picture, and under it whatever names it */
  display: grid;
  /* minmax(0, …) rather than a bare 1fr: a bare fr row has a min-content floor,
     so the row grew to the photograph instead of the photograph being held to
     the row, and `max-height: 100%` below had nothing definite to clamp
     against. */
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  height: 45vw;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s;
}

/* Which one is showing is decided by the script, and until it has run — or if
   it never runs — that is the first one. Scoped to the un-initialised
   slideshow rather than to :first-child, or the first picture would stay lit
   underneath every later one. */
.slideshow:not([data-ss-ready]) .slide:first-child {
  opacity: 1;
  visibility: visible;
}

/* Asked for less motion: the picture still changes, it just does not dissolve. */
@media (prefers-reduced-motion: reduce) {
  .slide,
  .slide.is-active {
    transition: none;
  }
}

/* A photograph is never shown larger than it is. The height used to sit on the
   image with `width: 100%`, which stretched it to whatever the stage was: on a
   4K screen a 1458px file was being drawn 2149px wide — a 1.47x enlargement,
   soft, and *larger* than the same file in the full-screen viewer, which is
   what made the viewer look pointless there. The stage keeps its height so the
   carousel does not jump; the picture sits in it at its own size or smaller. */
.slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.slide__zoom {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  height: 100%;
}

/* <picture> is a wrapper, not a box: left in the flow, the image's
   `max-height: 100%` resolves against an element of indefinite height and is
   simply dropped — every photograph overflowed its stage, and the hero grew
   281px taller than the window. `display: contents` hands the image straight to
   the grid that is meant to size it. */
.slide picture {
  display: contents;
}

/* Full screen, both of them. A hero cut to 92svh was tried and dropped: what
   showed below it was the next band's top padding, not its heading — a strip
   of white that signalled nothing and cost the photograph the whole screen. */
/* The cover is the exception that proves it: there the photograph *is* the
   surface, so it fills the frame and is allowed to enlarge to do it. */
.gallery--cover .slide,
.gallery--hero .slide {
  height: 100svh;
}

.gallery--cover .slide img,
.gallery--hero .slide img {
  width: 100%;
  height: 100svh;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

/* A gallery page is the photographs; everything else on it is a caption.
   Measured against the old site, ours gave the picture 624px of a 1040px
   window and spent 557px above it on chrome — the picture has to be the tallest
   thing on the screen, not the third.

   svh rather than vh: on a phone, vh is the height *without* the browser's own
   bars, so a "full height" picture is taller than the window and always cropped
   or scrolled. */
.gallery--thumbnails .slide {
  height: 72svh;
}

/* A phone is tall and narrow, so a picture that fills three quarters of it is
   mostly the white above and below a landscape photograph. (A `min(…, 52vw)`
   cap was tried instead and was worse: vw is the one dimension that shrinks on
   a phone, so it cut the stage to 203px — a stamp.) */
@media (max-width: 48rem) {
  .gallery--thumbnails .slide {
    height: 60svh;
  }
}

.slideshow__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--gold);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s, translate 0.2s;
}

.slideshow__nav svg {
  width: 2rem;
  height: 2rem;
}

.slideshow__nav:hover {
  opacity: 1;
}

.slideshow__nav--prev {
  left: 0.5rem;
}

.slideshow__nav--next {
  right: 0.5rem;
}

.gallery--cover .slideshow__nav,
.gallery--hero .slideshow__nav {
  color: #fff;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

.hero-overlay {
  position: absolute;
  right: var(--edge);
  bottom: clamp(2rem, 6vh, 4rem);
  text-align: right;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  z-index: 2;
  pointer-events: none;
}

.hero-overlay__name {
  font-family: Italiana, Georgia, serif;
  /* The site's h1 is gold — right for a heading on paper, wrong for one lying
     on a photograph, where gold over a sunlit wall is the pale case the scrim
     was built to prevent. It takes the overlay's white. */
  color: inherit;
  /* It used to reach 7rem, which on a wide screen ran her name across the
     recorder and her hands. Big enough to be the first thing read, small
     enough that the photograph is still a photograph. */
  /* Outside the text scale on purpose: this is sized to the photograph. */
  font-size: clamp(2.25rem, 6vw, 5.5rem);
  line-height: 1.02;
  margin: 0;
}

.hero-overlay__role {
  font-size: clamp(0.95rem, 1.7vw, 1.5rem);
  font-weight: 200;
  letter-spacing: 0.02em;
  margin: 0.6rem 0 0;
  padding-top: 0.6rem;
  /* the same gold hairline that separates every heading on the site */
  border-top: 1px solid rgba(222, 170, 58, 0.75);
  display: inline-block;
}

/* On a phone the overlay is centred, so the controls can no longer sit in the
   corner beside it — they were landing on top of the second line. The text
   moves up and the controls take the bottom edge, still one above the other
   rather than side by side with her name. */
@media (max-width: 800px) {
  .hero-overlay {
    left: 0;
    right: 0;
    bottom: clamp(4.5rem, 13vh, 6.5rem);
    padding-inline: 1.5rem;
    text-align: center;
  }

  .hero-controls {
    left: 0;
    right: 0;
    bottom: 1.5rem;
    justify-content: center;
  }
}

/* ---------- hero controls ---------- */

/* Pictures that move on their own must be stoppable (WCAG 2.2.2), and four
   photographs with no marks look like one photograph that keeps changing.
   Both answers sit in the corner opposite her name. */
.hero-controls {
  position: absolute;
  left: var(--edge);
  bottom: clamp(1.75rem, 5vh, 3.25rem);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.hero-play {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(26, 22, 18, 0.35);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.hero-play:hover {
  background: rgba(26, 22, 18, 0.6);
  border-color: #fff;
}

.hero-play svg {
  width: 0.85rem;
  height: 0.85rem;
}

/* one button, two faces: whichever it will do next */
.hero-play__play {
  display: none;
  margin-left: 0.1rem;
}

.hero-play.is-paused .hero-play__pause {
  display: none;
}

.hero-play.is-paused .hero-play__play {
  display: block;
}

/* The gap lives inside each target, not between them: WCAG 2.2 §2.5.8 wants
   24×24 CSS px, and its spacing exception is no help here — a 10.8px dot with
   an 8.8px gap is 19.6px centre to centre, so neither the size nor the spacing
   route was satisfied. Lighthouse scored the start page 0.00 on target-size at
   desktop while mobile came back 100, which is exactly the shape of the
   mistake: the enlargement was keyed to `pointer: coarse`, and 2.5.8 is not
   about pointers. A mouse is precise, but a hand is not always steady. */
.hero-dots {
  display: flex;
}

.hero-dot {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* the dot itself stays a dot — only the thing you may click grew */
.hero-dot::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: transparent;
  transition: background 0.25s, scale 0.25s;
}

.hero-dot.is-active::before {
  background: var(--gold);
  border-color: var(--gold);
  scale: 1.15;
}

/* A thumb wants more than the minimum, and the row has somewhere to spread. */
@media (pointer: coarse) {
  .hero-dot {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* The strip below a gallery. It runs the full width of the window — the
   pictures are the page, so the row of them is not an inset detail — and the
   thumbnails share out whatever space there is: they stretch to fill a row that
   holds them all, and the row scrolls once it cannot. */
.thumbs {
  display: flex;
  /* When there are too few to fill the row, the leftover space is shared out
     at both ends rather than left hanging on the right. */
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem var(--gutter);
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.thumb {
  /* Grow to fill, never below a thumbnail you can actually see — and never
     past 10rem, which is where the 150px file would start to look stretched
     on an ordinary screen. */
  flex: 1 0 7rem;
  max-width: 10rem;
  aspect-ratio: 3 / 2;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  scroll-snap-align: start;
  opacity: 0.55;
  transition: opacity 0.25s;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb:hover {
  opacity: 1;
}

/* The one being shown. Grayscale said nothing here — the photographs are black
   and white already — and dimming the other seventeen is not the same as
   marking this one, so it wears the gold hairline the site uses for "you are
   here" everywhere else. */
.thumb.is-active {
  opacity: 1;
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

/* ---------- events ---------- */

.events {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
}

/* ---------- the archive --------------------------------------------------
   What she has already played. The same two facts as the calendar — when and
   what — and deliberately none of the others: no photograph, no teaser, no
   description. Thirty-nine concerts rendered as calendar entries is a page
   nobody reaches the end of, and the archive answers a different question.
   The calendar is read to decide whether to go; this is read to see where she
   has been, which is a list. */

.past__year {
  font-family: Italiana, Georgia, serif;
  font-size: var(--step-2);
  font-weight: 400;
  color: var(--ink-muted);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: 0.03em;
}

.band--dark .past__year {
  color: var(--ink-muted-dark);
}

/* The first year sits directly under the button that opened it, which already
   carries its own space. */
.past__year:first-of-type {
  margin-top: 0;
}

/* Folded until asked for (see the template). The summary is the site's own
   button, so it reads as one; the browser's triangle goes, because the words
   already say which way it will go. Only the spans are hidden — never the
   <details> itself, whose closed state is the browser's to draw. */
.past-archive__toggle {
  list-style: none;
}

.past-archive__toggle::-webkit-details-marker {
  display: none;
}

.past-archive[open] .past-archive__show,
.past-archive:not([open]) .past-archive__hide {
  display: none;
}

.past-archive__body {
  margin-top: 2.5rem;
}

.past {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--gray-light);
}

.band--dark .past {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.past__item {
  display: grid;
  /* The same 5.5rem date column as the calendar, so the two lists line up
     down the page when they sit one above the other. */
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.band--dark .past__item {
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.past__when {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
  color: var(--ink-muted);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

.band--dark .past__when {
  color: var(--ink-muted-dark);
}

/* Not Italiana, which the calendar uses for the same number. That face is
   drawn for display sizes — at the calendar's --step-5 its hairlines are the
   point, and at this size they vanish: measured against the month beside it,
   the number came out *less* legible than its own label, which is backwards
   for the one token the list is scanned by. The body face, full ink, and
   tabular figures so the column lines up. */
.past__day {
  font-size: var(--step-0);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.band--dark .past__day {
  color: #fff;
}

.past__what {
  display: grid;
  gap: 0.1rem;
}

.past__title {
  font-size: var(--step-0);
}

.past__where {
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.band--dark .past__where {
  color: var(--ink-muted-dark);
}

/* Narrow: the date stops being a column and sits above the title, because at
   5.5rem plus a venue name the two columns start hyphenating. */
@media (max-width: 34rem) {
  .past__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }
}

/* Three columns: when, what, and the picture. The date is a column of its own
   rather than a line of text, because that is what a listing is scanned by —
   and the picture sits beside the entry instead of under it, where a 420px
   photograph pushed the next concert off the screen. */
.event {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 22rem);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-top: 1.75rem;
  position: relative;
  align-items: start;
}

/* Gold, and the only gold on the entry: the same hairline that marks a
   headline, saying "a new one starts here". */
.event::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

/* --- the date plate --- */

.event__when {
  display: grid;
  justify-items: start;
  line-height: 1.1;
}

.event__day {
  font-family: Italiana, Georgia, serif;
  font-size: var(--step-5);
  line-height: 0.9;
  /* Numerals in this face carry a lot of side bearing; pulling them back
     lines the digit up with the title's first letter. */
  margin-left: -0.03em;
}

.event__month {
  font-size: var(--step-0);
  letter-spacing: 0.02em;
  margin-top: 0.35rem;
}

.event__year,
.event__clock,
.event__until {
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.event__year {
  margin-top: 0.1rem;
}

/* The time is a fact about the day, so it sits with the date and not in the
   body — but it is not the headline the day number is. */
.event__clock {
  margin-top: 0.55rem;
}

.event__until {
  margin-top: 0.25rem;
}

/* --- what and where --- */

.event__body {
  max-width: var(--measure);
}

/* h2 or h3 by where it stands (see event-item), the same size either way. */
.event__title {
  font-size: var(--step-2);
  letter-spacing: normal;
  margin-bottom: 0.35rem;
}

/* Under the title, where a programme prints it. It used to sit beneath the
   date, which read as part of the timestamp. */
.event__location {
  color: var(--ink-muted);
  font-size: var(--step-0);
  margin-bottom: 0.9rem;
}

/* Teasers are plain text with real line breaks (performer lists, "im Rahmen
   von …" lines). The old site rendered them with pre-line; without it the
   lines run together into one paragraph. */
.event__teaser {
  margin-bottom: 0.75rem;
  white-space: pre-line;
}

.event__links a {
  margin-right: 1rem;
}

.event__image {
  margin: 0;
}

.event__image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  /* This context's better guess: concert photographs are people, and people's
     heads are in the top third. An image whose focal point *has* been set
     overrides this from the inline style the picture partial writes — which is
     the whole reason Media.ObjectPosition returns "" for an untouched image
     rather than "50% 50%". */
  object-position: center 30%;
}

/* Below the picture's column width the third column is worth less than the
   room it takes, so what and where get all of it and the picture goes under
   the entry — still cropped, but wide rather than tall. */
@media (max-width: 62rem) {
  .event {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .event__image {
    grid-column: 1 / -1;
  }

  .event__image img {
    aspect-ratio: 16 / 7;
    /* …and no taller than this however wide the window: a concert photograph
       that fills the screen is one that pushed the next concert off it. */
    max-height: 22rem;
  }
}

/* On a phone the plate turns on its side: one line of date, then the entry.
   A 4.5rem column beside a 40-character measure is not a layout. */
@media (max-width: 34rem) {
  .event {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .event__when {
    grid-auto-flow: column;
    justify-content: start;
    align-items: baseline;
    gap: 0.5rem;
  }

  .event__day {
    font-size: var(--step-3);
  }

  .event__month {
    margin-top: 0;
  }

  .event__year,
  .event__clock,
  .event__until {
    margin-top: 0;
  }
}

/* ---------- teaser, news, social ---------- */

/* One card per page pointed at. auto-fit rather than a fixed count: a list of
   one is still the „weiter zu…" box this block used to be, and it should look
   like a card rather than like a column with two empty ones beside it. */
.teasers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
}

.teaser {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* A fixed box so a row lines up, with the picture *contained* rather than
   filling it. An album cover is square and a concert photograph is landscape;
   `cover` would line them up by cutting the top and bottom off the artwork,
   which on a page about her recordings is the one thing that must not happen.
   Contained means no focal point either — see the template. */
.teaser__image {
  display: block;
  border-bottom: 0;
}

.teaser__image :is(picture, img) {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  /* No max-width here on purpose: the picture partial writes an inline cap at
     the widest file we actually serve, an inline style wins, and that cap is
     the thing stopping `contain` from scaling a small cover up past the pixels
     it has. A picture smaller than its box is drawn smaller, centred. */
}

.teaser__title {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 400;
}

/* The one link in the card. Gold underline like every other link — the arrow
   is a second signal, not a substitute, since gold on white reads 2.12:1 and
   may never be the thing that carries meaning. */
.teaser__title a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

/* pre-line because the text is FLines: she can break a line and mean it. */
.teaser__text {
  margin: 0;
  max-width: var(--measure);
  color: var(--ink-muted);
  white-space: pre-line;
}

.band--dark .teaser__text {
  color: var(--ink-muted-dark);
}

.news__title {
  font-size: var(--step-3);
}

.news__teaser {
  font-size: 1.15rem;
  color: var(--ink-muted);
  white-space: pre-line;
}

.news__links a {
  margin-right: 1.25rem;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dark-gray);
}

.social__link:hover {
  color: var(--gold);
  text-decoration: none;
}

.social__link img {
  width: 24px;
  height: 24px;
}

/* ---------- contact form ---------- */

/* The form is as wide as the column of text above it, and that is the whole
   reason for its width. 34rem was a number with nothing behind it: the fields
   stopped short of the sentence introducing them and short of the headline,
   at a place the page gave no account of. --measure is the one width this
   page already argues for, so the intro, the fields, the note and the button
   now share both edges. */
.contact-form {
  display: grid;
  gap: 1.25rem;
  max-width: var(--measure);
  margin-top: 2rem;
}

/* The privacy notice, above the button because a notice read after sending is
   not a notice. Set smaller than the form but never faded with opacity — this
   is the one paragraph on the page that is there for legal reasons, and
   "quieter" must not turn into "grey on white at 2.4:1". --ink-muted is 5.02:1
   and is what recedes here. */
.form-note {
  margin: -0.35rem 0 0.35rem;
  max-width: var(--measure);
  color: var(--ink-muted);
  font-size: var(--step--1);
  line-height: 1.5;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 1rem;
  color: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--gray-light);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  outline: none;
}

.contact-form .button {
  justify-self: start;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.flash {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: #faf6ec;
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  padding: 3rem var(--gutter) 4rem;
  text-align: center;
}

.hairline {
  border: 0;
  height: 1px;
  background: var(--gray-light);
  width: min(80vw, 1200px);
  margin: 0 auto 2.5rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* The profiles the old site had under every page, back where they were. */
.site-footer__social {
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.site-footer__social a {
  opacity: 0.55;
  transition: opacity 0.2s;
  line-height: 0;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  opacity: 1;
}

.site-footer__lang {
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.site-footer__lang a {
  color: var(--ink-muted);
  padding: 0 0.35rem;
}

.site-footer__note {
  color: var(--ink-muted);
  font-size: var(--step--1);
}

/* The arrow sits at the level of the hairline, which is centred at
   min(80vw, 1200px) — so its end is 10vw from the edge while the arrow is at
   the gutter. Wide, 10vw clears the gutter and the two never meet. Narrow, it
   does not: the crossover is around 667px, so on every phone and small tablet
   the rule ran straight through the glyph.

   The rule steps aside rather than being shortened. Shortening it would have
   to be asymmetric — the arrow is only on one side — in a footer where
   everything else is centred, and the width would then need a breakpoint that
   this does not. Painting the page's own ground behind the glyph reads as the
   line making room for it, and is correct at every width. The lift on hover is
   3px against ~8px of cover below the glyph's top edge, so the line stays
   hidden while it moves. */
.to-top {
  position: absolute;
  top: 2.5rem;
  right: var(--gutter);
  background: #fff;
  padding-inline: 0.5rem;
  border: 0;
  font-size: 1.75rem;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.25s, transform 0.25s;
}

.to-top:hover {
  color: var(--gold);
  transform: translateY(-3px);
}

/* ---------- preview-pane affordances (admin only) ---------- */

.is-preview [data-block] {
  position: relative;
  cursor: pointer;
}

.is-preview [data-block]::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color 0.15s, background 0.15s;
}

.is-preview [data-block]:hover::after {
  border-color: rgba(222, 170, 58, 0.55);
  background: rgba(222, 170, 58, 0.05);
}

.is-preview [data-block].is-selected::after {
  border-color: var(--gold);
}

/* the calendar page is a single block, so a block-wide hover tint would cover
   the whole screen — in the events editor highlight the events instead */
.is-preview.focus-events [data-block]::after {
  display: none;
}

/* A concert is its own target in every preview, not only in the events
   editor: in a page's editor clicking one opens it under Termine, so it has
   to look like the thing that will be opened rather than part of the block. */
.is-preview [data-event] {
  position: relative;
  cursor: pointer;
}

.is-preview [data-event]::after {
  content: "";
  position: absolute;
  inset: -0.5rem -0.75rem;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color 0.15s, background 0.15s;
}

.is-preview [data-event]:hover::after {
  border-color: rgba(222, 170, 58, 0.55);
  background: rgba(222, 170, 58, 0.05);
}

.is-preview.focus-events [data-event].is-selected::after {
  border-color: var(--gold);
}

.is-preview [data-event].is-flash::after,
.is-preview [data-block].is-flash::after {
  animation: flash 0.6s ease-out;
}

@keyframes flash {
  from {
    background: rgba(222, 170, 58, 0.28);
  }
  to {
    background: rgba(222, 170, 58, 0);
  }
}

/* ---------- the reveal ----------

   As a band is reached its contents fade in, one piece at a time, and the
   gold hairline over a headline draws itself in from the left. Exactly one
   thing travels: the headline, and only a few pixels sideways. Everything
   else — prose, photographs, the events, the profile links — arrives by
   fading alone.

   That is the third answer here, and the two it replaces are the argument
   for it:

   · Fading the whole <section> faded its background too, so every dark band
     came up through a muddy half-grey on its way from white. The alternating
     light/dark rhythm is structure and belongs to the page; only what is
     written on it should arrive.

   · Sliding the whole text column made the page feel sick. The distance was
     small but the moving area was not, and a column of text tracking sideways
     while the reader is already scrolling is two motions at once. Cutting the
     distance would not have fixed it — the mass was the problem. So the unit
     is now the smallest piece of content rather than the band, nothing large
     moves at all, and the sense of arrival comes from *sequence*: pieces
     reveal one behind another, 70ms apart, which reads as unhurried rather
     than as movement.

   Nothing may move vertically, and that part is measured rather than
   tasteful. Anything at a fractional *vertical* offset resamples every 1px
   hairline inside it across two device rows. Photographed at
   deviceScaleFactor 1:

       settled, or translateY(6px)     one row of rgb(222,170,58) — true gold
       translateY(5.5px)               two rows of rgb(238,212,156)
       translateY(5.3px)               rgb(232,195,116) + rgb(245,229,195)
       translateX(5.3 / 5.5 / -8.7px)  one row of rgb(222,170,58) — untouched
       opacity 0.5                     one row of rgb(238,212,155)

   A lift makes a line twice as tall and half as saturated: on the gold rule
   that reads as a line gone thin, on a grey separator as one gone thick, and
   the two disagreeing is what gives it away as a fault. The site's hairlines
   are horizontal, so the headline's horizontal shift cannot land them between
   two rows — the same arithmetic that ruins a rise leaves them exact.

   The hidden state is written as `:not(.is-in)` rather than as a pair of
   rules that argue. It was the pair first, and both times the hiding rule won
   by carrying one class more — first the column faded in and stayed sitting
   to the left, then `will-change` was never given back on any page. A state
   that simply stops matching cannot be out-specified, and there is no second
   rule to keep in step. The lasting declarations (the transition) sit in the
   rule above it, because a transition removed in the same frame as the value
   it animates does not run — the element would snap.

   `html.js-reveal` is set by the inline script in the document head, and
   these rules are the only thing that hides anything: without JavaScript the
   class is never set and nothing is hidden. The preview does not carry the
   script at all, so a block does not fade every time HTMX swaps it, and a
   block scrolled out of the preview pane is not simply missing.

   The list is mirrored in site.js (`REVEALS`); keep the two together, and
   mind that a new wrapper needs adding in both or its contents reveal as one
   lump. */

:root {
  --reveal-x: clamp(4px, 0.6vw, 10px);
  --reveal-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* The leaves: the smallest thing on the page worth arriving on its own.
   Wrappers that are descended into (.split, .columns, .events) are skipped,
   so that nothing fades inside something else that is also fading — two
   stacked transitions multiply and the inner one comes up visibly darker. */
.js-reveal :is(
    main > [data-block]:not(.gallery--hero) > .container > :not(.split):not(.columns):not(.events):not(.teasers),
    main > [data-block]:not(.gallery--hero) .split > *,
    main > [data-block]:not(.gallery--hero) .columns > *,
    main > [data-block]:not(.gallery--hero) .events > *,
    main > [data-block]:not(.gallery--hero) .teasers > *,
    main > [data-block]:not(.gallery--hero) > .slideshow,
    main > [data-block]:not(.gallery--hero) > .thumbs,
    main > .page-head
  ) {
  /* Slow enough to be a movement rather than a snap, and eased so that it
     arrives rather than stops. */
  transition: opacity 0.7s var(--reveal-ease);
}

.js-reveal :is(
    main > [data-block]:not(.gallery--hero) > .container > :not(.split):not(.columns):not(.events):not(.teasers),
    main > [data-block]:not(.gallery--hero) .split > *,
    main > [data-block]:not(.gallery--hero) .columns > *,
    main > [data-block]:not(.gallery--hero) .events > *,
    main > [data-block]:not(.gallery--hero) .teasers > *,
    main > [data-block]:not(.gallery--hero) > .slideshow,
    main > [data-block]:not(.gallery--hero) > .thumbs,
    main > .page-head
  ):not(.is-in) {
  opacity: 0;
  /* This is about to change; say so. It is taken back for nothing — the whole
     rule stops matching the moment the piece has arrived. */
  will-change: opacity;
}

/* The net, and note where it hangs: off `html.js-reveal` *not* being ready.
   Hiding the page from the head and unhiding it from a deferred script means
   a slow or broken site.js leaves a blank column — measured at four seconds
   of nothing on a throttled connection, which is a worse failure than the
   flash the head script prevents. So the stylesheet undoes its own work after
   three seconds unless the script has arrived and said `is-ready`, which it
   does in its first statement.

   Written first as a separate `animation: none` rule, and that rule lost: the
   hiding selector carries four more classes, so the net went off three
   seconds into every ordinary page load and handed the reader the whole
   document at once. Withdrawing the *condition* cannot be out-specified. */
.js-reveal:not(.is-ready) :is(
    main > [data-block]:not(.gallery--hero) > .container > :not(.split):not(.columns):not(.events):not(.teasers),
    main > [data-block]:not(.gallery--hero) .split > *,
    main > [data-block]:not(.gallery--hero) .columns > *,
    main > [data-block]:not(.gallery--hero) .events > *,
    main > [data-block]:not(.gallery--hero) .teasers > *,
    main > [data-block]:not(.gallery--hero) > .slideshow,
    main > [data-block]:not(.gallery--hero) > .thumbs,
    main > .page-head
  ):not(.is-in) {
  animation: reveal-net 0.4s ease-out 3s both;
}

/* The one thing that travels. A headline is a single line of type, so it can
   come in from the left without the page appearing to slide; the page title
   is centred and stays where it is, because a centred line arriving off its
   axis just looks misaligned. */
/* The hero is excluded here for the same reason it is excluded from BAND in
   site.js, and the two lists have to agree: an element the script never
   observes never gets `.is-in`, so a hiding rule that still matches it hides
   it for good. The start page's cover gallery does draw an h2 when it is given
   a title — so a title typed there arrived shifted by --reveal-x, with a
   hairline stuck at scaleX(0), and stayed that way. Latent today only because
   no gallery has a title. */
.js-reveal main > [data-block]:not(.gallery--hero) > .container > h2.rule {
  transition:
    opacity 0.7s var(--reveal-ease),
    transform 0.7s var(--reveal-ease);
}

.js-reveal main > [data-block]:not(.gallery--hero) > .container > h2.rule:not(.is-in) {
  transform: translateX(calc(-1 * var(--reveal-x)));
  will-change: opacity, transform;
}

@keyframes reveal-net {
  to {
    opacity: 1;
    transform: none;
  }
}

/* The hairline follows the words in rather than arriving with them, which is
   the whole difference between a line that is drawn and a line that is simply
   there. Every band draws left to right, though a light band's line reaches
   to the left screen edge and a dark band's to the right. `.rule-top` carries
   no text of its own and never fades — it is watched only so that its line
   knows when to draw. */
.js-reveal main > [data-block]:not(.gallery--hero) :is(.rule, .rule-top)::before {
  transition: transform 0.9s var(--reveal-ease) 0.15s;
}

.js-reveal main > [data-block]:not(.gallery--hero) :is(.rule, .rule-top):not(.is-in)::before {
  transform: scaleX(0);
  transform-origin: left;
}

/* the same net, withdrawn the same way — `transform: none` is a hairline at
   its full length */
.js-reveal:not(.is-ready) main > [data-block]:not(.gallery--hero) :is(.rule, .rule-top):not(.is-in)::before {
  animation: reveal-net 0.4s ease-out 3s both;
}

/* Paper does not scroll, so there is nothing for a reveal to respond to and
   an unobserved piece would print as a blank space. */
@media print {
  .js-reveal main [data-block] *,
  .js-reveal main [data-block] *::before,
  .js-reveal main > .page-head {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  /* Not "the same thing, instantly" — nothing at all. Someone who has asked
     for less motion should meet a page that is simply already there, and this
     also keeps the content from depending on an observer having run. */
  .js-reveal main [data-block] *,
  .js-reveal main [data-block] *::before,
  .js-reveal main > .page-head {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- the full-screen viewer ---------- */

.slide__zoom {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.slide {
  margin: 0;
}

.slide__caption {
  padding: 0.6rem var(--gutter) 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: var(--step--1);
}

/* A <dialog> is hidden by the browser's own `display: none` — which any
   author `display` overrides, because author styles beat the UA stylesheet
   whatever the specificity. Saying `display: grid` here put a full-screen black
   panel at the bottom of every page, and left it covering the window after the
   viewer was closed. The layout belongs to the open state only. */
.lightbox {
  display: none;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: #111010;
  color: #fff;
}

.lightbox[open] {
  display: block;
}

.lightbox::backdrop {
  background: rgba(10, 9, 8, 0.92);
}

/* The picture takes the window; the caption, the counter and the arrows lie
   over it. Reserving rows for them cost the photograph a fifth of the screen,
   which on a phone made the viewer *smaller* than the page it was opened
   from — 302px of a 390px screen, because the arrows were holding the edges
   apart. */
.lightbox__figure {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
}

/* Sized against the window rather than against its grid row: a percentage
   height needs a definite containing block, and inside a `minmax(0, 1fr)` row
   it resolved to more than the screen — the picture overflowed the bottom of
   the viewer on landscape photographs. The subtractions are the arrows either
   side and the caption and counter below. */
.lightbox__figure img {
  max-width: 100vw;
  max-height: 100dvh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Over the photograph now, so neither may depend on the dark ground being
   there: a caption on a white wall needs its own. */
.lightbox__caption {
  position: absolute;
  left: 50%;
  bottom: 2.75rem;
  translate: -50% 0;
  max-width: min(var(--measure), calc(100vw - 2rem));
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  background: rgba(17, 16, 16, 0.62);
  font-size: var(--step--1);
  color: #f2efea;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.1rem;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  opacity: 0.75;
}

.lightbox__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(2.75rem, 6vw, 4.5rem);
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.lightbox__nav svg {
  width: 2rem;
  height: 2rem;
}

.lightbox__nav--prev {
  left: 0;
}

.lightbox__nav--next {
  right: 0;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  opacity: 1;
}

.lightbox__count {
  position: absolute;
  left: 50%;
  bottom: 0.6rem;
  translate: -50% 0;
  margin: 0;
  padding: 0.15rem 0.6rem;
  border-radius: 3px;
  background: rgba(17, 16, 16, 0.62);
  text-align: center;
  font-size: var(--step--1);
  color: #e6e1da;
}

/* A phone has no room for arrows beside the picture: the swipe and the dots
   in the count line do that work, and the picture gets the width. */
@media (max-width: 40rem) {
  .lightbox__nav {
    display: none;
  }

  .lightbox__figure {
    grid-column: 1 / -1;
  }
}

/* -- touch: fingers, not cursors -------------------------------------------

   The editor got this pass in Phase 2 and the public site never did. Measured
   on a 390px phone by hit-testing the *real* tappable area — element boxes lie,
   because a target can be grown with a pseudo-element — the whole site was
   under the bar: the burger 46×34, the footer's social icons 21×21, the
   language switch 71×19, and every "Anhören bei …" link 17px tall.

   2.5rem (40px) is the house minimum, the same one the editor uses. Keyed to
   the pointer rather than the width, so a laptop at 900px keeps its compact
   rows and only a finger gets the bigger targets. */
@media (pointer: coarse) {
  /* The one control the entire mobile navigation depends on. */
  .burger {
    padding: 0.9rem;
  }

  .wordmark {
    padding-block: 0.5rem;
  }

  /* Links that stand on their own line — a track's "listen at", an event's
     "zur Veranstaltung", a social profile. min-height rather than padding, so
     the line keeps its position and only the target grows. */
  .music__source a,
  .event__links a,
  .social__link,
  .site-footer__links a,
  .site-footer__lang a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
  }

  /* An icon with nothing but an icon in it: the link is exactly as big as the
     20px symbol until it is told otherwise. */
  .site-footer__social a {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
  }

  .to-top {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
  }

  .hero-play {
    width: 2.75rem;
    height: 2.75rem;
  }

  /* The dots keep their drawn size — they are a mark, not a button face — and
     the row spreads instead, because a target can only grow sideways as far as
     its neighbour. The spreading is now the 2.5rem target box doing it, so the
     gap that used to do the job would only add to it; the invisible ::after
     that used to do it is gone with the same change. Even so they stay the
     narrowest thing here, which is why the hero also answers to a swipe and to
     the arrows. */
}
