/* Bilgeri – one stylesheet, mobile first.
   Visual idea: a screen-printed poster. Colours come from the album artwork,
   sections meet at torn paper edges, red appears like a second print plate. */

@font-face {
  font-family: 'Anton';
  src: url('/assets/fonts/anton-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Palette sampled from "Time for a Change" and the official lettering */
  --ink: #050807;
  --ink-soft: #0c1413;
  --petrol: #12312e;
  --petrol-deep: #0b2220;
  --paper: #d5cfb8;          /* exact lettering colour of the logo */
  --paper-shade: #c9c3aa;
  --red: #e0393f;            /* plate red; black text on it: 4.6:1 */
  --red-ink: #9e1f2a;        /* red for text on paper: 5.0:1 */
  --muted: #aebcb0;          /* secondary text on dark: ≥7:1 */
  --muted-ink: #3f4b45;      /* secondary text on paper */
  --line-dark: #3b5650;
  --line-paper: #8f9583;

  --font-body: 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --text-s: .875rem;
  --text-m: 1.0625rem;

  --gutter: clamp(1.25rem, 5.5vw, 5rem);
  --section-space: clamp(3.5rem, 9vw, 8rem);
  --content-width: 1440px;
  --measure: 66ch;
  --tap: 48px;
  --edge: 22px;              /* height of torn section edges */

  --motion-fast: 160ms;      /* feedback on press/focus */
  --motion-reveal: 420ms;    /* one-off scroll arrival */
  --motion-entry: 600ms;     /* hero text */
  --motion-gallery: 180ms;
  --motion-indicator: 850ms;
  --motion-ease: cubic-bezier(.2, .65, .3, 1);
  --motion-header: 320ms;    /* header turns solid, logo fades in */
  --motion-hero: 1400ms;     /* key visual settles from scale 1.04 */
  --reveal-distance: 10px;
  --header-h: 4.5rem;        /* home header height, used for anchor offsets */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ink); color: var(--paper); font: var(--text-m)/1.6 var(--font-body); overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
main:focus, section:focus { outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -200px; z-index: 20; padding: .9rem 1.1rem; background: var(--paper); color: var(--ink); font-weight: 700; }
.skip:focus { top: 1rem; }

/* Even line lengths in headings and titles: no single word left alone on the last line. */
h1, h2, h3, .release-title, .video-title, .films-more-title, .row-title, .download-title, .gallery-entry-title { text-wrap: balance; }
.eyebrow { font: 600 var(--text-s)/1.45 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.display, .page-heading h1 { font: 400 clamp(3rem, 15vw, 7.5rem)/.95 var(--font-display); text-transform: uppercase; letter-spacing: .005em; }
.section { position: relative; padding: var(--section-space) var(--gutter); }
.section-head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head .eyebrow { margin-bottom: .75rem; }
.section-lede { max-width: 38ch; margin-top: 1rem; }
.text-link { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em; }
.ext { display: inline-block; margin-left: .2em; font-size: .85em; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: var(--tap); padding: .75rem 1.2rem; border: 2px solid transparent; font-weight: 700; font-size: .95rem; line-height: 1.2; text-align: center; }
.button-red { background: var(--red); color: var(--ink); }
.button-line { border-color: currentColor; }
.button-spotify { background: #1ed760; color: var(--ink); } /* Spotify green, black text: 12:1 */
.spotify-icon { flex: none; width: 1.25em; height: 1.25em; }

/* Grain: static print texture, only on paper backgrounds – never over images or the logo. */
.grain { background-image: url('/assets/design/paper-grain.svg'); }

/* Torn paper edge where a section starts on a new colour. The pseudo element
   takes the section's own background colour and is masked by the SVG edge. */
.pictures, .contact, .page-content { --edge-color: var(--paper); }
.contact { --edge-color: var(--ink); }
.releases { --edge-color: var(--petrol-deep); }
.releases::before, .pictures::before, .contact::before, .inner-page .page-content::before {
  content: ''; position: absolute; left: 0; right: 0; top: calc(var(--edge) * -1 + 1px); height: var(--edge);
  background: var(--edge-color); pointer-events: none;
  -webkit-mask: url('/assets/design/torn-edge.svg') left bottom / 1200px 100% repeat-x;
  mask: url('/assets/design/torn-edge.svg') left bottom / 1200px 100% repeat-x;
}
.pictures::before { transform: scaleX(-1); }

/* ---------- Header & navigation ---------- */
.site-header { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding: .7rem var(--gutter); background: var(--ink); }
.site-logo { display: flex; align-items: center; min-height: var(--tap); }
.site-logo img { width: clamp(118px, 34vw, 172px); }
.menu-toggle { display: inline-flex; align-items: center; gap: .75rem; min-height: var(--tap); min-width: var(--tap); padding: .5rem 0 .5rem .75rem; border: 0; background: none; color: var(--paper); font-size: var(--text-s); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.menu-mark { position: relative; width: 22px; height: 12px; border-block: 2px solid; transition: height var(--motion-fast), transform var(--motion-fast); }
.menu-toggle[aria-expanded="true"] .menu-mark { height: 2px; border-bottom: 0; }
.site-nav { display: none; flex-basis: 100%; padding: .5rem 0 1rem; border-top: 1px solid var(--line-dark); }
.site-nav.open { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); column-gap: 1rem; }
.site-nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid #1c2a28; font: 400 1.6rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.site-nav a[aria-current="page"] { color: var(--red); }

/* Home: the header lies over the key visual. Two layers keep every change to opacity:
   a soft ink gradient for legibility over the image, and solid ink once the hero has gone.
   The logo keeps its box while hidden, so nothing shifts when it fades in. */
html:has(.home-page) { scroll-padding-top: calc(var(--header-h) + .5rem); }
.site-header.over-hero { position: absolute; inset: 0 0 auto; z-index: 10; background: none; }
.site-header.over-hero.is-fixed { position: fixed; }
.site-header.over-hero::before, .site-header.over-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: opacity var(--motion-header) var(--motion-ease); }
/* The legibility gradient runs past the header (purely visual, far above the lettering plate). */
.site-header.over-hero::before { bottom: -4rem; background: linear-gradient(rgb(5 8 7 / .88), rgb(5 8 7 / .74) 38%, rgb(5 8 7 / .32) 72%, rgb(5 8 7 / 0)); }
.site-header.over-hero::after { background: var(--ink); box-shadow: 0 1px 0 #1c2a28; opacity: 0; }
.site-header.over-hero .site-logo { opacity: 0; visibility: hidden; transition: opacity var(--motion-header) var(--motion-ease), visibility 0s linear var(--motion-header); }
.site-header.over-hero.is-solid::after, .site-header.over-hero:has(.site-nav.open)::after { opacity: 1; }
.site-header.over-hero.is-solid::before { opacity: 0; }
.site-header.over-hero.is-solid .site-logo, .site-header.over-hero:has(.site-nav.open) .site-logo { opacity: 1; visibility: visible; transition-delay: 0s; }

/* ---------- Hero: album key visual ----------
   The BILGERI lettering is printed into the image. Its plate (+3 % safety margin, measured by
   tools/make-hero.mjs, see data/hero.json) must never be cropped or covered:
   portrait x 5.3–95.2 %, y 40.8–60.2 % · landscape x 22.3–77.3 %, y 35.4–65 %.
   Portrait: height ≤ 16/9 of the width, so it is never cropped sideways; text sits below the image.
   Landscape: cover over the full viewport; the text block sits below the plate. */
.hero { position: relative; background: var(--ink); }
.hero-visual { position: relative; overflow: hidden; height: min(100vh, 177.78vw); height: min(100svh, 177.78vw); background: var(--ink) var(--hero-ph-portrait); }
.hero-picture { position: absolute; inset: 0; display: block; }
/* Room for the ±8 px mouse parallax (app.js), set from the first frame so it causes no layout shift. */
@media (hover: hover) and (pointer: fine) and (orientation: landscape) and (prefers-reduced-motion: no-preference) { .hero-picture { inset: -8px; } }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-text { position: relative; padding: 1.35rem var(--gutter) 2.75rem; background: var(--ink); }
/* Image → text on phones: the torn paper edge of the site, in ink, over the bottom of the image. */
.hero-text::before { content: ''; position: absolute; left: 0; right: 0; top: calc(var(--edge) * -1 + 1px); height: var(--edge); background: var(--ink); pointer-events: none;
  -webkit-mask: url('/assets/design/torn-edge.svg') left bottom / 1200px 100% repeat-x; mask: url('/assets/design/torn-edge.svg') left bottom / 1200px 100% repeat-x; }
.hero-kicker { color: var(--muted); }
.kicker-date { white-space: nowrap; }
/* Clearly smaller than the printed lettering, so the two do not compete. */
.hero-title { margin-top: .5rem; font: 400 clamp(2.6rem, 12.5vw, 4.25rem)/.95 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
/* Guest musicians: one short line under the title; a name never breaks in itself. */
.hero-feat { margin-top: .6rem; font-weight: 700; line-height: 1.4; color: var(--paper); }
.feat-label { font-weight: 600; font-size: var(--text-s); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.feat-name { white-space: nowrap; }
.feat-sep { color: var(--muted); }
.hero-role { margin-top: .6rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.35rem; }
.hero-actions .button-line { color: var(--paper); }
.hero-scroll { display: none; }

@media (orientation: landscape) {
  .hero-visual { height: 100vh; height: 100svh; background-image: var(--hero-ph-landscape); }
}
/* Enough room below the plate for the text block: it moves into the image, bottom left,
   on a local scrim (contrast ≥ 4.5:1 is checked by the browser QA). Desktop windows 520–799 px
   high use the same overlay in a compact one-row form, see the end of the file. */
@media (orientation: landscape) and (min-height: 700px), (orientation: landscape) and (min-height: 520px) and (min-width: 1024px), (orientation: portrait) and (min-width: 600px) {
  .hero-text { position: absolute; left: 0; bottom: 0; z-index: 1; width: min(100%, 50rem); padding: 1.75rem var(--gutter) clamp(1.5rem, 4.5vh, 3rem); background: none; }
  /* Scrim without visible edges: it fades in over the top padding and out towards the right. */
  .hero-text::before { top: 0; bottom: 0; height: auto; z-index: -1;
    -webkit-mask: linear-gradient(to right, #000 calc(100% - 8rem), transparent), linear-gradient(transparent, #000 1.6rem); -webkit-mask-composite: source-in;
    mask: linear-gradient(to right, #000 calc(100% - 8rem), transparent), linear-gradient(transparent, #000 1.6rem); mask-composite: intersect;
    background: linear-gradient(to top, rgb(5 8 7 / .92), rgb(5 8 7 / .85)); }
  .hero-title { font-size: clamp(2.4rem, min(6.6vh, 5vw), 5.5rem); }
  .hero-actions { margin-top: 1.1rem; }
  .hero-scroll { position: absolute; right: var(--gutter); bottom: clamp(1.5rem, 4.5vh, 3rem); z-index: 1; display: flex; align-items: center; gap: .7rem; min-height: var(--tap); padding: 0 .9rem; background: rgb(5 8 7 / .8); color: var(--paper); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
  .hero-scroll-line { position: relative; overflow: hidden; width: 1px; height: 1.6rem; background: var(--line-dark); }
  .hero-scroll-line::after { content: ''; position: absolute; inset: 0; background: var(--paper); transform-origin: top; }
}

/* Flat landscape windows: with the guest musicians the text block would reach the lettering of the
   key visual, so the role line gives way there (the feat. line and the buy button stay). */
@media (orientation: landscape) and (max-height: 859px) {
  .hero-feat ~ .hero-role { display: none; }
}

/* ---------- Album ---------- */
.album { display: grid; gap: 2.75rem; background: var(--petrol); }
.album-cover { position: relative; display: block; width: calc(100% - 12px); max-width: 480px; } /* 480 px source: never enlarged on desktop */
/* Second "print plate": red halftone offset behind the untouched cover. */
.album-cover::before { content: ''; position: absolute; inset: 0; transform: translate(12px, 12px); background: radial-gradient(circle, var(--red) 1.25px, transparent 1.6px) 0 0 / 6px 6px, linear-gradient(var(--red-ink), var(--red-ink)); opacity: .9; }
.album-cover img { position: relative; width: 100%; aspect-ratio: 1; }
.album-cover picture { display: block; }
/* Pre-order sticker (album status „Pre-order …“ in the CMS): a round red stamp on the cover corner. */
.release-cover { position: relative; }
.release-cover:has(.preorder-badge) { width: min(calc(100% - 1rem), 22rem); } /* room for the sticker on phones */
.preorder-badge { position: absolute; z-index: 1; top: -.9rem; right: -.9rem; display: flex; flex-direction: column; align-items: center; justify-content: center; width: clamp(5.75rem, 24vw, 7.5rem); aspect-ratio: 1; border-radius: 50%; background: var(--red); color: var(--ink); box-shadow: 0 0 0 3px var(--ink); text-align: center; text-transform: uppercase; transform: rotate(-12deg); transition: transform var(--motion-fast) var(--motion-ease); }
.preorder-badge-small { font-size: clamp(.68rem, 2.6vw, .82rem); font-weight: 700; letter-spacing: .1em; line-height: 1; }
.preorder-badge-big { margin-top: .15em; font: 400 clamp(1.7rem, 7vw, 2.3rem)/.95 var(--font-display); letter-spacing: .02em; }
.album-text .eyebrow { color: var(--muted); margin-bottom: .75rem; }
.album-title { font-size: clamp(3rem, 14vw, 7rem); }
.album-artist { display: block; margin-bottom: .2em; font-size: .42em; line-height: 1; letter-spacing: .04em; color: var(--red); }
/* Featuring: a line-up like on a concert poster – names in the display face, bands small below. */
.featuring { margin-top: 1.75rem; }
.album-text .featuring-title { margin-bottom: 0; }
.lineup { margin-top: .6rem; border-top: 2px solid var(--paper); }
.lineup li { display: flex; flex-direction: column; gap: .3rem; padding: .7rem 0 .65rem; border-bottom: 1px solid var(--line-dark); }
.lineup-name { font: 400 clamp(1.7rem, 7.6vw, 2.1rem)/1.05 var(--font-display); letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.lineup-from { font-size: var(--text-s); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lineup-more { margin-top: .7rem; font-style: italic; color: var(--muted); }
.album-status { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.25rem; padding: .4rem .8rem; border: 1px solid var(--red); font-size: var(--text-s); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.status-mark { width: .55rem; height: .55rem; border-radius: 50%; background: var(--red); }
.album-lede { max-width: 42ch; margin-top: 1.25rem; }
.album-facts { margin-top: 1.25rem; }
.album-facts div { display: flex; gap: 1rem; }
.album-facts dt { color: var(--muted); }
.album-facts dd { margin: 0; font-weight: 700; }
.album-streaming { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: 1rem; }
.album-streaming a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }
.album-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.album-actions .button-line { color: var(--paper); }
.album-listen { min-width: 0; scroll-margin-top: calc(var(--header-h) + 1rem); }
.album-listen:focus { outline: none; }
.album-listen > .text-link { margin-top: .5rem; }
.album .track-list-title { color: var(--muted); }
.album .tracks { border-color: var(--line-dark); }
.album .track { border-color: var(--line-dark); color: var(--paper); }
.album .track .number, .album .track-duration { color: var(--muted); }
.album .track-action { color: var(--red); }
.album .track[aria-pressed="true"], .album .track[aria-pressed="true"] .number { color: var(--paper); }
.album .track[aria-pressed="true"] .track-name { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.album .track:active, .album .track:focus-visible { background-color: rgb(255 255 255 / .06); }

/* ---------- Marquee bands (pure CSS; static with reduced motion) ---------- */
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; flex-shrink: 0; align-items: center; margin: 0; padding: 0; list-style: none; }

/* ---------- Latest news band ---------- */
.latest { position: relative; padding-bottom: calc(2rem + var(--edge)); background: var(--red); color: var(--ink); }
.marquee-band { padding-block: .85rem .75rem; border-bottom: 2px solid var(--ink); font: 400 clamp(2.1rem, 7vw, 4.75rem)/1 var(--font-display); text-transform: uppercase; white-space: nowrap; }
.marquee-band .marquee-sep { padding-inline: .45em; }
.latest-body { padding: 1.6rem var(--gutter) 0; }
.latest-title { margin-top: .5rem; font: 400 clamp(1.7rem, 6.5vw, 3rem)/1.08 var(--font-display); text-transform: uppercase; }
.latest-title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .1em; }
.latest-note { max-width: 46ch; margin-top: .9rem; font-size: var(--text-s); line-height: 1.55; }
.latest-note a { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }

/* ---------- Track lists (one per release; paper by default, dark variant in the album section) ----------
   Without JavaScript each row is a link to the MP3; app.js swaps it for a button with the same content. */
.track-list { min-width: 0; }
.track-list-title { color: var(--muted-ink); }
.tracks { margin-top: .9rem; padding: 0; list-style: none; border-bottom: 1px solid var(--line-paper); }
.track { display: grid; grid-template-columns: 3.1rem minmax(0, 1fr) auto var(--tap); align-items: center; gap: .5rem; width: 100%; min-height: 64px; padding: .4rem 0; border: 0; border-top: 1px solid var(--line-paper); background: transparent; color: var(--ink); text-align: left; font-size: 1.08rem; font-weight: 600; transition: background-color var(--motion-fast), color var(--motion-fast); }
.track .number { font: 400 1.9rem/1 var(--font-display); color: var(--muted-ink); letter-spacing: .02em; }
.track-duration { font-size: var(--text-s); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted-ink); }
.track-title { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.track-name { min-width: 0; overflow-wrap: anywhere; } /* 200 % text on phones: long titles wrap instead of pushing the row wider */
.track-action { display: grid; place-items: center; width: var(--tap); height: var(--tap); color: var(--red-ink); }
.track-action svg { width: 22px; height: 22px; fill: currentColor; }
.track[aria-pressed="true"] { color: var(--red-ink); font-weight: 700; }
.track[aria-pressed="true"] .number { color: var(--red-ink); }
.track:active, .track:focus-visible { background-color: var(--paper-shade); }
.audio-deck { margin-top: 1.1rem; padding: 1rem; background: var(--ink); color: var(--paper); color-scheme: dark; }
/* The deck (status + native controls) belongs to the list that is playing; elsewhere only the
   status stays readable for assistive technology. */
.track-list:not(.is-active) .audio-deck { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.player-status { min-height: 1.5em; margin-bottom: .6rem; font-size: var(--text-s); }
audio { display: block; width: 100%; height: var(--tap); }

/* Playback indicator: four bars beside the playing title, animated only while
   the audio element reports "playing". Purely decorative, not a level meter. */
.playing-indicator { display: inline-flex; align-items: flex-end; gap: 2px; width: 18px; height: 16px; flex-shrink: 0; visibility: hidden; }
.playing-indicator i { width: 3px; height: 100%; background: currentColor; transform-origin: bottom; transform: scaleY(.45); }
.playing-indicator i:nth-child(2) { transform: scaleY(.8); }
.playing-indicator i:nth-child(3) { transform: scaleY(.6); }
.is-playing .playing-indicator, .is-paused .playing-indicator { visibility: visible; }
.is-playing .playing-indicator i { animation: playing-bar var(--motion-indicator) ease-in-out infinite alternate; }
.is-playing .playing-indicator i:nth-child(2) { animation-delay: -350ms; }
.is-playing .playing-indicator i:nth-child(3) { animation-delay: -600ms; }
.is-playing .playing-indicator i:nth-child(4) { animation-delay: -180ms; }
.is-paused .playing-indicator { opacity: .45; }

/* ---------- Releases: scroll-snap shelf on phones, grid on desktop ---------- */
.releases { background: var(--petrol-deep); }
.releases .release-list { display: grid; grid-auto-flow: column; grid-auto-columns: min(60vw, 250px); gap: 1.25rem; margin-inline: calc(var(--gutter) * -1); padding: .75rem var(--gutter) 1.25rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--line-dark) transparent; }
.release { scroll-snap-align: start; }
.release-link { display: grid; align-content: start; gap: .2rem; height: 100%; }
.release-art { position: relative; display: block; margin-bottom: .9rem; }
/* Red plate behind the sleeve; on hover/focus it slides out while the sleeve lifts (transform only). */
.release-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, var(--red) 1.2px, transparent 1.5px) 0 0 / 6px 6px, var(--red-ink); transition: transform var(--motion-reveal) var(--motion-ease); }
.release-art img { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform var(--motion-reveal) var(--motion-ease); }
.release-link:focus-visible .release-art img { transform: translateY(-6px); }
.release-link:focus-visible .release-art::before { transform: translate(9px, 3px); }
.release-year { font: 400 1rem/1.2 var(--font-display); color: var(--red); letter-spacing: .06em; text-transform: uppercase; }
.release-title { font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.release-kind { font-size: var(--text-s); color: var(--muted); }
.releases-shop { margin-top: .5rem; }

/* ---------- About ---------- */
.about { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: clip; background: var(--ink); }
.about::after { content: ''; position: absolute; right: -12%; top: 38%; width: min(80vw, 640px); aspect-ratio: 1; background: url('/assets/design/wing-lines.svg') center / contain no-repeat; opacity: .4; pointer-events: none; }
.about > * { position: relative; z-index: 1; min-width: 0; } /* the credits band is max-content wide */
.about-portrait img { width: 100%; }
.about-text { padding: clamp(3rem, 8vw, 6rem) var(--gutter) 0; }
.about-text .eyebrow { color: var(--muted); margin-bottom: .75rem; }
.about-text .display { color: var(--red); margin-bottom: 1.5rem; }
.about-text p:not(.eyebrow) { max-width: var(--measure); }
.about-text p + p { margin-top: 1rem; }
.about-text .text-link { margin-top: 1rem; }
/* The quote as a typographic statement across the page. */
/* The quote type size sits on the blockquote, so its em can indent quote and source together. */
.about-quote { padding: clamp(3.5rem, 9vw, 8rem) var(--gutter) 0; padding-left: max(var(--gutter), calc(.4em + var(--gutter) / 2)); font: 400 clamp(3.4rem, 16vw, 12.5rem)/.88 var(--font-display); }
/* Hanging opening quote: the letters align with the source line, the mark hangs at most into
   half of the page margin – never to the screen edge. */
.about-quote p { max-width: 11ch; text-indent: -.4em; text-transform: uppercase; }
.about-quote cite { display: block; margin-top: 1rem; font: 600 var(--text-s)/1.4 var(--font-body); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.credits-band { padding: clamp(3rem, 7vw, 5.5rem) 0 var(--section-space); }
.credits-band .eyebrow { padding-inline: var(--gutter); margin-bottom: .9rem; color: var(--muted); }
.marquee-credits { padding-block: 1rem; border-block: 1px solid var(--line-dark); font: 400 clamp(1.6rem, 5vw, 3.25rem)/1.1 var(--font-display); text-transform: uppercase; }
.marquee-credits li { display: flex; align-items: center; white-space: nowrap; }
.marquee-credits li::after { content: '/'; margin-inline: .55em; color: var(--red); }

/* ---------- Videos ---------- */
.films { padding-bottom: calc(var(--section-space) + var(--edge)); background: var(--petrol); }
.films-grid { display: grid; gap: 2rem; }
/* Featured film in a 21:9 frame; once YouTube loads it switches to the video's own 16:9. */

.films .is-featured .video-thumbnail { object-fit: cover; }
.films-side > .eyebrow { margin-bottom: .5rem; color: var(--muted); }
.films-side .text-link { margin-top: .75rem; }
.films-more { border-top: 1px solid var(--line-dark); }
.films-more a { display: grid; gap: .2rem; padding: 1rem 0; border-bottom: 1px solid var(--line-dark); }
.films-more-title { font-weight: 700; line-height: 1.35; }
.films-more-meta { font-size: var(--text-s); color: var(--muted); }

.video-card { min-width: 0; }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-thumbnail { width: 100%; height: 100%; object-fit: contain; }
.video-trigger { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; border: 0; background: rgb(0 0 0 / .18); color: var(--paper); }
.play { display: grid; place-items: center; width: 64px; height: 64px; background: var(--red); transition: transform var(--motion-fast); }
.play::before { content: ''; margin-left: 5px; border-left: 18px solid var(--ink); border-block: 11px solid transparent; }
.video-trigger-label { padding: .35rem .65rem; background: var(--ink); font-weight: 700; font-size: var(--text-s); text-transform: uppercase; letter-spacing: .08em; }
.video-title { margin-top: .9rem; font: 700 1.15rem/1.3 var(--font-body); text-transform: none; letter-spacing: 0; }
.video-card.is-featured .video-title { font: 400 clamp(1.8rem, 7vw, 3rem)/1 var(--font-display); text-transform: uppercase; }
.video-meta { margin-top: .35rem; font-size: var(--text-s); color: var(--muted); }
.video-meta { line-height: 1.5; }
.video-meta a { display: flex; align-items: center; width: fit-content; min-height: 44px; text-decoration: underline; text-underline-offset: .2em; }
.video-missing { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center; color: var(--muted); background: repeating-linear-gradient(135deg, #0b1514 0 10px, #101c1a 10px 20px); }

/* ---------- Pictures ---------- */
.pictures { padding-bottom: clamp(2.5rem, 6vw, 5rem); background-color: var(--paper); color: var(--ink); }
/* Editorial, asymmetric grid; every photo opens the same lightbox as the galleries. */
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "b b" "c e" "d d"; gap: 1.25rem .75rem; }
.photo { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; }
.photo-1 { grid-area: a; } .photo-2 { grid-area: b; } .photo-3 { grid-area: c; } .photo-4 { grid-area: d; } .photo-5 { grid-area: e; }
.photo a { display: block; overflow: hidden; background: var(--ink); }
.photo-1 a { aspect-ratio: 4 / 5; } .photo-2 a { aspect-ratio: 3 / 2; } .photo-3 a, .photo-5 a { aspect-ratio: 3 / 4; } .photo-4 a { aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--motion-reveal) var(--motion-ease); }
.photo figcaption { padding-top: .45rem; font-size: .8125rem; line-height: 1.4; color: var(--muted-ink); }
.photo-links { display: grid; margin-top: clamp(2rem, 5vw, 3.5rem); border-top: 2px solid var(--ink); }
.photo-links a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; min-height: 4rem; border-bottom: 1px solid var(--line-paper); transition: background-color var(--motion-fast); }
.photo-links-label { font: 400 clamp(1.5rem, 6vw, 2.25rem)/1.1 var(--font-display); text-transform: uppercase; }
.photo-links-count { font-size: var(--text-s); color: var(--muted-ink); }
.photo-links a span:last-child { color: var(--red-ink); font-weight: 700; }

.films-grid > *, .bio-layout > * { min-width: 0; }

/* Content rows: shared by overviews, archive listings and the home page. */
.content-list { border-bottom: 1px solid var(--line-paper); }
.content-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "meta action" "title title"; gap: .25rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line-paper); transition: background-color var(--motion-fast); }
.row-meta { grid-area: meta; font-size: var(--text-s); color: var(--muted-ink); }
.row-title { grid-area: title; font-weight: 700; font-size: 1.1rem; line-height: 1.35; overflow-wrap: anywhere; }
.row-action { grid-area: action; font-size: var(--text-s); font-weight: 600; color: var(--red-ink); white-space: nowrap; }

/* ---------- Downloads (contact section and press page) ---------- */
.downloads { border-bottom: 1px solid var(--line-dark); }
.downloads a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem 1.5rem; min-height: 64px; padding: .9rem 0; border-top: 1px solid var(--line-dark); }
.download-title { font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
.download-meta { font-size: var(--text-s); color: var(--muted); }

/* ---------- Contact & press ---------- */
.contact { position: relative; display: grid; gap: clamp(3rem, 7vw, 5rem); overflow-x: clip; background: var(--ink); }
.contact::after { content: ''; position: absolute; left: -18%; top: 4%; width: min(70vw, 560px); aspect-ratio: 1; background: url('/assets/design/wing-lines.svg') center / contain no-repeat; transform: scaleX(-1); opacity: .3; pointer-events: none; }
.contact > * { position: relative; z-index: 1; min-width: 0; }
.contact .eyebrow { color: var(--muted); margin-bottom: .75rem; }
.contact h2.eyebrow { color: var(--red); }
.contact-mail { display: inline-block; margin-top: .25rem; padding-block: .3rem .5rem; font: 400 clamp(2.3rem, 10.5vw, 7.5rem)/1 var(--font-display); text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .1em; overflow-wrap: anywhere; }
.contact-links { display: flex; flex-wrap: wrap; gap: 0 1.75rem; align-self: start; }
.contact-links a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }
.contact-press { outline: none; }
.contact-press .text-link { margin-top: .75rem; }

/* ---------- Mini player (home, built by app.js after real playback) ---------- */
.mini-player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; display: grid; grid-template-columns: var(--tap) minmax(0, 1fr) auto; align-items: center; gap: .85rem; padding: .5rem var(--gutter) max(.5rem, env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); box-shadow: 0 -1px 0 var(--line-dark);
  transform: translateY(110%); visibility: hidden; transition: transform var(--motion-reveal) var(--motion-ease), visibility 0s linear var(--motion-reveal); }
.mini-player.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
.mini-toggle { display: grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; background: var(--red); color: var(--ink); }
.mini-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.mini-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--text-s); }
.mini-label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mini-title { font-weight: 700; }
.mini-jump { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--text-s); font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }
.mini-progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line-dark); }
.mini-progress i { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
.has-mini-player .site-footer { padding-bottom: calc(1.5rem + 64px); }

/* ---------- Footer ---------- */
/* Print-score strip: abstract printed lines and red slashes closing every page. */
.site-footer { display: grid; gap: 2rem; padding: calc(40px + 2.5rem) var(--gutter) 1.5rem; background: var(--ink) url('/assets/design/print-score.svg') left top / 960px 40px repeat-x; font-size: .95rem; }
.footer-contact .eyebrow, .footer-nav .eyebrow { color: var(--muted); margin-bottom: .35rem; font-size: .75rem; }
.home-page .footer-contact { display: none; }
.footer-mail { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.5rem 2rem; }
.footer-nav ul { list-style: none; padding: 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.25rem; border-top: 1px solid #1c2a28; font-size: var(--text-s); color: var(--muted); }

/* ---------- Inner pages ---------- */
.inner-page { background: var(--paper); }
.page-heading { position: relative; isolation: isolate; padding: 1rem var(--gutter) calc(2.25rem + var(--edge)); background: var(--petrol); color: var(--paper); }
/* Campaign strip: a darkened, logo-free slice of the key visual. Phones: a band above the
   breadcrumb; from 720 px a column on the right that fades into the petrol. Never behind text. */
.heading-strip { display: block; height: 4.5rem; margin: -1rem calc(var(--gutter) * -1) .75rem; overflow: hidden; background: var(--ink);
  -webkit-mask: linear-gradient(#000 35%, transparent); mask: linear-gradient(#000 35%, transparent); }
.heading-strip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: .62; }
.page-heading h1 { max-width: 18ch; font-size: clamp(2.3rem, 11vw, 6.5rem); overflow-wrap: anywhere; hyphens: auto; }
.page-heading .eyebrow { margin-bottom: .7rem; color: var(--muted); }
.page-intro { max-width: 52ch; margin-top: 1.1rem; color: var(--paper); line-height: 1.55; }
.page-intro a { text-decoration: underline; text-underline-offset: .25em; }
.crumbs { margin-bottom: 1rem; font-size: var(--text-s); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 .5rem; padding: 0; list-style: none; }
.crumbs li { display: flex; align-items: center; gap: .5rem; }
.crumbs li + li::before { content: '/'; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .25em; }
.crumb-current { color: var(--muted); }
/* Phones: only the parent link, as a clear "back" step. */
@media (max-width: 719px) {
  .crumbs li, .crumbs li + li::before { display: none; }
  .crumbs li:nth-last-child(2) { display: flex; }
  .crumbs li:nth-last-child(2) a::before { content: '← '; white-space: pre; }
}
.inner-page .page-content { position: relative; padding: 2rem var(--gutter) var(--section-space); background: var(--paper); color: var(--ink); }
.article-body > * { max-width: var(--measure); }
.article-body h2, .article-body h3, .article-body h4 { margin: 2rem 0 .75rem; font: 700 clamp(1.2rem, 4vw, 1.6rem)/1.3 var(--font-body); text-transform: none; }
.article-body p + p { margin-top: 1rem; }
.article-body ul, .article-body ol { margin-block: 1rem; padding-left: 1.25rem; }
.article-body a:not(.button):not(.content-row):not(.text-link) { color: var(--red-ink); text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.article-body img { margin-block: 1.25rem; height: auto; }
.article-body blockquote { margin-block: 1rem; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--red-ink); }
.article-body table { display: block; max-width: 100%; overflow-x: auto; margin-block: 1rem; border-collapse: collapse; }
.article-body td, .article-body th { padding: .4rem .75rem .4rem 0; vertical-align: top; }
.article-body .video-card { max-width: 900px; margin-block: 1.5rem; }
.article-body .video-title { margin-top: .75rem; }
.article-body .video-meta, .inner-page .video-meta { color: var(--muted-ink); }
.article-body .video-meta a { color: var(--red-ink); }
.article-body .content-list { max-width: 900px; }
.article-date, .article-meta { margin-bottom: 1.25rem; font-size: var(--text-s); color: var(--muted-ink); }
.article-meta + .article-date { margin-top: -1rem; }
.article-cover { max-width: 420px; margin-top: 1.5rem; }
.article-cover img { margin: 0; }
.article-cover figcaption { margin-top: .5rem; font-size: var(--text-s); color: var(--muted-ink); }
.source-note { max-width: var(--measure); margin-block: 1rem; padding: .7rem 1rem; border-left: 3px solid var(--red-ink); background: var(--paper-shade); font-size: var(--text-s); }
.historical-link { overflow-wrap: anywhere; }
.link-note { font-size: var(--text-s); color: var(--muted-ink); }
.pagination { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; }
.pagination a, .pagination span { display: inline-flex; align-items: center; min-height: 44px; }
.pagination a { text-decoration: underline; text-underline-offset: .25em; }
.pagination span { font-weight: 700; }
.list-heading { margin: 3rem 0 .75rem; font: 400 clamp(1.8rem, 6vw, 2.6rem)/1 var(--font-display); text-transform: uppercase; }
.download-hint { margin-top: .75rem; font-size: var(--text-s); color: var(--muted-ink); }
.inner-page .downloads { max-width: 900px; border-color: var(--line-paper); }
.inner-page .downloads a { border-color: var(--line-paper); }
.inner-page .download-meta { color: var(--muted-ink); }
.error-links { display: flex; flex-wrap: wrap; gap: 0 2rem; margin-top: 1rem; }

/* Groups (events by year, content index) */
.year-group + .year-group { margin-top: 2.75rem; }
.year-group:focus { outline: none; }
.year-label { margin-bottom: .5rem; font: 400 clamp(2.2rem, 9vw, 4rem)/1 var(--font-display); color: var(--red-ink); }
.group-count { font: 600 var(--text-s)/1 var(--font-body); color: var(--muted-ink); vertical-align: middle; }
.jump-list { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-bottom: 2.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.jump-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }

/* Biography */
.article-body > .bio-layout { max-width: 1200px; }
.bio-layout { display: grid; gap: 2rem; }
.bio-layout .bio-text > * { max-width: var(--measure); }
.bio-portrait img { width: 100%; margin: 0; }

.credits-heading { font-family: var(--font-display) !important; font-weight: 400 !important; text-transform: uppercase !important; font-size: clamp(1.8rem, 6vw, 2.6rem) !important; margin-top: 2.5rem !important; }
.bio-text .credits { display: flex; flex-wrap: wrap; gap: .4rem .5rem; max-width: 52rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.credits li { padding: .3rem .6rem; border: 1px solid var(--line-paper); font-weight: 600; font-size: .95rem; line-height: 1.35; }
.credits-more { margin-top: .75rem; font-style: italic; color: var(--muted-ink); }

/* Music page: one release per row. Phones: album (cover, title, text) → previews/teaser → links.
   From 900 px: previews/teaser left, album right, both starting at the same top line. */
.release-rows { border-top: 2px solid var(--ink); }
.release-row { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "media" "actions"; gap: 1.75rem; padding-block: clamp(2.5rem, 7vw, 5.5rem); border-bottom: 2px solid var(--ink); scroll-margin-top: 1rem; }
.release-row:focus { outline: none; }
.release-info { grid-area: info; min-width: 0; }
.release-media { grid-area: media; min-width: 0; }
.release-actions { grid-area: actions; min-width: 0; }
.release-actions > p { margin-bottom: .5rem; }
.release-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.release-cover { width: min(100%, 22rem); margin-bottom: 1.5rem; }
.release-cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.release-info .eyebrow { color: var(--red-ink); }
.release-name { margin: .45rem 0 .7rem; font: 400 clamp(2rem, 8.5vw, 3.6rem)/1.02 var(--font-display); text-transform: uppercase; }
.release-note { max-width: 46ch; line-height: 1.55; }
.release-featuring { max-width: 46ch; margin-top: .7rem; font-weight: 600; line-height: 1.55; }
.music-page .releases-shop { margin-top: 1.5rem; }
/* Teaser: portrait 9:16 kept small – height-capped, width follows the aspect ratio. */
.teaser { width: fit-content; max-width: 100%; margin: 0; }
.teaser-video { display: block; width: auto; max-width: 100%; height: min(70svh, 34rem); aspect-ratio: 9 / 16; object-fit: contain; background: var(--ink); }
.teaser figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5rem; margin-top: .6rem; font-size: var(--text-s); color: var(--muted-ink); }
.teaser figcaption .eyebrow { color: var(--muted-ink); }
.teaser figcaption a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--red-ink); font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
.release-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: .4rem; }
.release-links a { overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-s); font-weight: 700; color: var(--red-ink); text-decoration: underline; text-underline-offset: .25em; }

/* Videos page */
.video-feature { max-width: 1100px; margin-bottom: 3rem; }
.video-note { max-width: var(--measure); margin-top: .5rem; }
.video-grid { display: grid; gap: 2.5rem 2rem; }

/* Pictures & galleries */
.gallery-entries { display: grid; gap: 2rem; }
.gallery-entry { display: grid; gap: .25rem; }
.gallery-entry-image { overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); }
.gallery-entry-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--motion-reveal) var(--motion-ease); }
.gallery-entry-title { margin-top: .75rem; font: 400 clamp(2rem, 9vw, 3.5rem)/1.08 var(--font-display); text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .07em; }
.gallery-entry-meta { font-size: var(--text-s); color: var(--muted-ink); }
.gallery-body .gallery-grid { display: grid; gap: 2rem; align-items: start; }
.gallery-item { min-width: 0; }
.gallery-item a { display: block; background: var(--ink); }
.gallery-item img { width: 100%; height: auto; }
.gallery-item figcaption { padding-top: .5rem; font-size: var(--text-s); overflow-wrap: anywhere; }
.gallery-body > div:not(.gallery-grid) { max-width: 640px; margin-top: 2rem; }
.gallery-body > div:not(.gallery-grid) p { font-size: var(--text-s); margin-top: .5rem; }

/* Lightbox: full-screen, calm and dark; images are never cropped. */
.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: #030504; color: var(--paper); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: rgb(0 0 0 / .9); }
.lightbox-bar, .lightbox-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: max(.5rem, env(safe-area-inset-top)) var(--gutter) .5rem; }
.lightbox-controls { padding-bottom: max(.75rem, env(safe-area-inset-bottom)); }
.lightbox-count { font-size: var(--text-s); color: var(--muted); }
.lightbox-stage { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; padding: 0 var(--gutter); }
.lightbox-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox-stage figcaption { padding-top: .6rem; font-size: var(--text-s); text-align: center; }
.lightbox button, .lightbox a { display: inline-flex; align-items: center; gap: .4rem; min-height: var(--tap); padding: .5rem 1rem; border: 1px solid var(--line-dark); background: transparent; color: var(--paper); font-size: var(--text-s); font-weight: 600; transition: background-color var(--motion-fast), border-color var(--motion-fast); }
.lightbox a { border-color: transparent; text-decoration: underline; text-underline-offset: .25em; color: var(--muted); }
.lightbox button:active, .lightbox button:focus-visible { background: var(--petrol); border-color: var(--paper); }

/* ---------- Feedback (press, focus, hover where available) ---------- */
.button, .menu-toggle, .text-link, .site-nav a, .content-row, .downloads a, .films-more a, .contact-mail, .album-streaming a { transition: color var(--motion-fast), background-color var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast); }
.button:active, .track:active, .lightbox button:active, .video-trigger:active .play, .mini-toggle:active { transform: translateY(1px); }
.content-row:active, .photo-links a:active { background-color: var(--paper-shade); }
.films-more a:active, .downloads a:active { background-color: rgb(255 255 255 / .05); }
@media (hover: hover) {
  .button-red:hover, .mini-toggle:hover { background: #ec5257; }
  .button-spotify:hover { background: #3be477; }
  .preorder-badge:hover { transform: rotate(-12deg) scale(1.05); }
  .button-line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  .text-link:hover, .site-nav a:hover, .footer-nav a:hover, .contact-links a:hover, .contact-mail:hover, .album-streaming a:hover, .mini-jump:hover { color: var(--red); }
  .pictures a:hover, .inner-page .page-content .text-link:hover { color: var(--red-ink); }
  .track:hover, .content-row:hover, .photo-links a:hover { background-color: var(--paper-shade); }
  .album .track:hover { background-color: rgb(255 255 255 / .06); }
  .films-more a:hover, .downloads a:hover { background-color: rgb(255 255 255 / .05); }
  .release-link:hover .release-art img { transform: translateY(-6px); }
  .release-link:hover .release-art::before { transform: translate(9px, 3px); }
  .release-link:hover .release-title { text-decoration: underline; text-underline-offset: .25em; }
  .photo a:hover img { transform: scale(1.025); }
  .video-trigger:hover .play { transform: scale(1.06); }
  .gallery-entry:hover img { transform: scale(1.02); }
  .lightbox button:hover { background: var(--petrol); border-color: var(--paper); }
}

/* ---------- Motion (one-off, small, opt-out aware) ---------- */
@keyframes playing-bar { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(var(--reveal-distance)); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: .6; transform: translateY(var(--reveal-distance)); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: .4; } to { opacity: 1; } }
/* The key visual is the LCP element: it is visible from the first frame and only settles in scale. */
@keyframes hero-settle { from { transform: scale(1.04); } to { transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scroll-line { 0% { transform: translateY(-100%); } 55%, 100% { transform: translateY(100%); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-picture img { animation: hero-settle var(--motion-hero) cubic-bezier(.22, .61, .36, 1) both; }
  /* Hero text arrives just after the image; image and navigation are there from the start. */
  .hero-kicker { animation: rise var(--motion-entry) var(--motion-ease) 60ms both; }
  .hero-title { animation: rise var(--motion-entry) var(--motion-ease) 140ms both; }
  .hero-feat, .hero-role, .hero-actions { animation: rise var(--motion-entry) var(--motion-ease) 260ms both; }
  .hero-actions:focus-within { animation: none; }
  .hero-scroll-line::after { animation: scroll-line 2.4s var(--motion-ease) 1.2s 3 both; }
  .marquee-band .marquee-track { animation: marquee 48s linear infinite; }
  .marquee-credits .marquee-track { animation: marquee 110s linear infinite; }
  .latest:hover .marquee-track, .latest:focus-within .marquee-track, .credits-band:hover .marquee-track { animation-play-state: paused; }
  /* Scroll arrival: content is visible beforehand; JS adds the class once. */
  .reveal-arrived { animation: settle var(--motion-reveal) var(--motion-ease); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .playing-indicator i:nth-child(odd) { transform: scaleY(.55); }
  .playing-indicator i:nth-child(even) { transform: scaleY(1); }
  /* Static credits: one wrapped list instead of a moving band. */
  .marquee-credits .marquee-track { width: auto; }
  .marquee-credits .marquee-group { flex-wrap: wrap; flex-shrink: 1; row-gap: .2rem; padding-inline: var(--gutter); }
  .marquee-credits .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-credits li { white-space: normal; }
}

/* ---------- Larger phones / small tablets ---------- */
@media (min-width: 560px) {
  .gallery-body .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Tablet ---------- */
@media (min-width: 720px) {
  .display { font-size: clamp(3.5rem, 9vw, 7.5rem); }
  /* Proportional columns: on tablets a fixed 480 px cover column left the title only ~150 px. */
  .album { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(2.5rem, 6vw, 8rem); }
  .album-cover { width: calc(100% - 20px); }
  .album-cover::before { transform: translate(20px, 20px); }
  .album-title { font-size: clamp(3.5rem, 7vw, 7rem); }
  .latest-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .5rem 3rem; align-items: start; padding-top: 2rem; }
  .latest-body > .eyebrow { grid-row: 1 / 3; padding-top: .35rem; }
  .album { grid-template-areas: "cover text" "cover listen"; align-items: start; row-gap: 3rem; }
  .album-cover { grid-area: cover; position: sticky; top: calc(var(--header-h) + 2rem); }
  .album-text { grid-area: text; }
  .album-listen { grid-area: listen; }
  .track { grid-template-columns: 4.5rem minmax(0, 1fr) auto var(--tap); min-height: 76px; font-size: 1.2rem; }
  .track .number { font-size: 2.6rem; }
  .releases .release-list { grid-auto-columns: min(30vw, 260px); }
  .films .is-featured .video-embed { aspect-ratio: 21 / 9; }
  .films .is-featured .video-embed:has(iframe) { aspect-ratio: 16 / 9; }
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .about-portrait { align-self: stretch; }
  /* Capped at screen height: on wide monitors the full portrait would be ~1700 px tall and push the text far down. */
  .about-portrait img { height: 100%; max-height: min(100svh, 62rem); object-fit: cover; object-position: 50% 35%; }
  .about-text { align-self: center; padding-block: var(--section-space); }
  .about-quote, .credits-band { grid-column: 1 / -1; }
  .films-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); align-items: end; gap: clamp(2rem, 4vw, 4rem); }
  .photo-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: clamp(18rem, 34vw, 31rem) clamp(14rem, 25vw, 23rem); grid-template-areas: "a a a a b b b b b b b b" "c c c c d d d d d e e e"; gap: clamp(1.25rem, 2.2vw, 2rem) clamp(.75rem, 1.6vw, 1.5rem); }
  .photo a, .photo-1 a, .photo-2 a, .photo-3 a, .photo-4 a, .photo-5 a { aspect-ratio: auto; height: 100%; min-height: 0; }
  .photo-links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); }
  .content-row { grid-template-columns: 11rem minmax(0, 1fr) auto; grid-template-areas: "meta title action"; align-items: baseline; gap: 1.5rem; }
  .site-footer { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .home-page .site-footer { grid-template-columns: 1fr; }
  .footer-base { grid-column: 1 / -1; }
  .page-heading { padding-top: 1.5rem; }
  .bio-portrait { position: sticky; top: 1.5rem; }
  .bio-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .gallery-entries { grid-template-columns: 1.15fr .85fr; align-items: start; gap: clamp(2rem, 5vw, 5rem); }
  .gallery-entry:nth-child(2) { margin-top: clamp(4rem, 12vw, 10rem); }
}

/* ---------- Tour: /tour/ (paper) and "Next shows" on the home page (ink) ----------
   One row per date: poster-style date block | city, venue, line-up | status and buttons.
   Phones: date narrow on the left, everything else stacked to its right. */
.tour-list { padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.tour-date { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); grid-template-areas: "when what" "when side"; column-gap: 1rem; row-gap: .9rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line-paper); scroll-margin-top: 1rem; }
.tour-date:focus { outline: none; }
.tour-date[hidden], .tour-empty[hidden], .tour-section[hidden], .tour-home[hidden] { display: none; }
.tour-date:target { box-shadow: inset 4px 0 0 var(--red-ink); }
.tour-when { grid-area: when; }
.tour-date-parts, .tour-date-parts s { display: grid; justify-items: start; text-decoration: none; }
.tour-day { font: 400 3rem/.9 var(--font-display); letter-spacing: .01em; }
.tour-month, .tour-weekday, .tour-year { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tour-month { margin-top: .35rem; }
.tour-weekday, .tour-year { color: var(--muted-ink); }
.tour-what { grid-area: what; min-width: 0; }
.tour-city { font: 400 clamp(1.6rem, 6vw, 2.4rem)/1.05 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.tour-country { color: var(--muted-ink); }
.tour-venue { margin-top: .3rem; font-weight: 700; }
.tour-meta, .tour-note { margin-top: .2rem; font-size: var(--text-s); color: var(--muted-ink); }
.tour-side { grid-area: side; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; min-width: 0; }
.tour-status { display: inline-flex; align-items: center; padding: .3rem .6rem; border: 1px solid currentColor; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tour-status--sold-out { border-color: var(--red-ink); background: var(--red-ink); color: var(--paper); }
.tour-status--few { color: var(--red-ink); }
.tour-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.1rem; }
.tour-link { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--red-ink); font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
.tour-image { grid-column: 2; max-width: 8rem; }
.tour-image img { width: 100%; height: auto; }
/* Called off: muted row, struck-through date (the status is also in the text, see dateBlock). */
.tour-date.is-called-off .tour-what, .tour-date.is-called-off .tour-when { opacity: .62; }
.tour-date.is-called-off .tour-date-parts s { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--red-ink); }
.tour-date.is-called-off .tour-status { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.tour-page .list-heading:first-child { margin-top: 0; }
.tour-empty { max-width: 40rem; padding: clamp(1.5rem, 5vw, 2.5rem); border: 2px solid var(--ink); background: radial-gradient(circle, rgb(5 8 7 / .14) 1.1px, transparent 1.4px) 0 0 / 7px 7px; }
.tour-list:empty { display: none; }
.tour-list:empty + .tour-empty { margin-top: .5rem; }
.tour-empty-title { margin-bottom: .6rem; font: 400 clamp(1.7rem, 6vw, 2.4rem)/1.05 var(--font-display); text-transform: uppercase; }
.tour-social { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: .75rem; padding: 0; list-style: none; }
.tour-social a { color: var(--red-ink); }
.tour-booking { margin-top: .5rem; }
.tour-booking a { color: var(--red-ink); }
.tour-booking a { text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.tour-past { margin-top: 3rem; }
.tour-archive summary { display: flex; align-items: center; min-height: var(--tap); cursor: pointer; list-style: none; }
.tour-archive summary::-webkit-details-marker { display: none; }
.tour-archive summary { gap: .6rem; }
.tour-archive summary::before { content: '+'; flex: none; width: .8em; font: 400 2.2rem/1 var(--font-display); color: var(--red-ink); text-align: center; }
.tour-archive[open] summary::before { content: '–'; }
.tour-archive summary .list-heading { margin: 0; }
.tour-archive summary:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 4px; }
/* Past shows: compact, no buttons except the organiser's info link. */
.tour-list--past { margin-top: .75rem; }
.tour-list--past .tour-date { padding-block: .9rem; row-gap: .4rem; }
.tour-list--past .tour-day { font-size: 2rem; }
.tour-list--past .tour-city { font-size: clamp(1.3rem, 4.5vw, 1.7rem); }
.tour-list--past .tour-tickets, .tour-list--past .tour-ics, .tour-list--past .tour-image, .tour-list--past .tour-status:not(.tour-status--off) { display: none; }

/* Home page: dark band between the album and the latest news. */
.tour-home { background: var(--ink); color: var(--paper); }
.tour-home .eyebrow { color: var(--muted); }
.tour-home .tour-list { border-top-color: var(--paper); }
.tour-home .tour-date { border-color: var(--line-dark); }
.tour-home .tour-weekday, .tour-home .tour-year, .tour-home .tour-country, .tour-home .tour-meta, .tour-home .tour-note { color: var(--muted); }
.tour-home .tour-link { color: var(--paper); }
.tour-home .tour-status--sold-out { border-color: var(--red); background: var(--red); color: var(--ink); }
.tour-home .tour-status--few { color: var(--red); }
.tour-home .tour-date.is-called-off .tour-status { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.tour-home .tour-date.is-called-off .tour-date-parts s { text-decoration-color: var(--red); }
.tour-home .tour-date:target { box-shadow: inset 4px 0 0 var(--red); }
.tour-all { margin-top: 1.25rem; }
.tour-all .text-link { color: var(--paper); }

@media (min-width: 760px) {
  .tour-date { grid-template-columns: 6.5rem minmax(0, 1fr) auto; grid-template-areas: "when what side"; column-gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; }
  .tour-day { font-size: 3.6rem; }
  .tour-side { justify-content: flex-end; max-width: 24rem; }
  .tour-image { grid-column: 2 / -1; }
  .tour-list--past .tour-date { grid-template-columns: 6.5rem minmax(0, 1fr) auto; }
}

/* ---------- Music page: two columns per release ---------- */
@media (min-width: 900px) {
  .release-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "media info" "media actions"; grid-template-rows: auto 1fr; column-gap: clamp(2.5rem, 6vw, 6.5rem); row-gap: 1rem; align-items: start; }
  .release-row.no-media { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "actions"; }
  .release-name { font-size: clamp(2.2rem, 3.6vw, 3.6rem); }
  .teaser-video { height: min(34rem, 80svh); }
}

/* ---------- Desktop ---------- */
@media (min-width: 1100px) {
  /* Line-up side by side with dividers; more than three names wrap into a second row. */
  .lineup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line-dark); }
  .lineup li { gap: .35rem; padding: .9rem 1rem .85rem; border-bottom: 0; border-left: 1px solid var(--line-dark); }
  .lineup li:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .lineup-name { font-size: clamp(1.4rem, 1.95vw, 2rem); }
  .lineup-from { font-size: .8rem; line-height: 1.4; }
  :root { --section-space: clamp(5.5rem, 9vw, 9.5rem); }
  .menu-toggle { display: none; }
  .site-nav, .site-nav.open { display: flex; flex-basis: auto; gap: 1.6rem; padding: 0; border: 0; }
  .site-nav a { min-height: var(--tap); border: 0; font: 600 var(--text-s)/1 var(--font-body); letter-spacing: .08em; }
  .releases .release-list { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1.5rem, 2.4vw, 2.5rem); margin-inline: 0; padding-inline: 0; overflow: visible; }
  .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(3rem, 6vw, 7rem); align-items: end; }
  .contact-main { grid-column: 1 / -1; }
  /* Key visual strip as a right-hand column only from 1100 px; below, the 56 % text width would
     split long headings (e.g. "downloads" at 768 px), so tablets keep the band above the breadcrumb. */
  .page-heading > :not(.heading-strip) { max-width: 56%; }
  .heading-strip { position: absolute; top: 0; right: 0; bottom: 0; z-index: -1; width: 42%; height: auto; margin: 0;
    -webkit-mask: linear-gradient(to right, transparent, #000 55%); mask: linear-gradient(to right, transparent, #000 55%); }
  .heading-strip img { opacity: .42; }
  .contact-links { font-size: 1.1rem; }
  .gallery-body .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1600px) {
  .site-header, .hero-text, .latest-body, .section, .about-quote, .credits-band .eyebrow, .site-footer, .page-heading, .inner-page .page-content, .mini-player { padding-inline: max(var(--gutter), calc((100vw - var(--content-width)) / 2)); }
  /* The biography text sits in the right column next to the portrait: only the right side
     takes the page margin (aligned with the navigation), the left keeps a normal gap. */
  .about-text { padding-left: clamp(3rem, 5vw, 6rem); padding-right: max(var(--gutter), calc((100vw - var(--content-width)) / 2)); }
  .hero-scroll { right: max(var(--gutter), calc((100vw - var(--content-width)) / 2)); }
  .hero-text { width: min(100%, calc(46rem + (100vw - var(--content-width)) / 2)); padding-right: var(--gutter); }
  .about { padding-left: 0; }
}

/* Desktop windows up to 799 px high – laptops at 1366 × 768, 1920 × 1080 with Windows scaling 125–150 %:
   below the lettering plate there are only ~190–250 px. Text and actions share one band side by side
   instead of stacking (stacked they would need ~235 px and run into the protection zone).
   After the 1600 px rule on purpose, so its width and padding are overridden here. */
@media (orientation: landscape) and (min-height: 520px) and (max-height: 799px) and (min-width: 1024px) {
  .hero-text { right: 0; width: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 2rem; padding-top: 1.25rem; padding-bottom: 1.25rem; padding-right: calc(var(--gutter) + 8.5rem); }
  .hero-text::before { -webkit-mask: linear-gradient(transparent, #000 1.6rem); mask: linear-gradient(transparent, #000 1.6rem); }
  .hero-text > :not(.hero-actions) { grid-column: 1; }
  .hero-actions { grid-column: 2; grid-row: 1 / span 4; flex-wrap: nowrap; margin: 0; }
  .hero-title { margin-top: .35rem; font-size: clamp(2rem, 6.6vh, 3rem); }
  .hero-feat { margin-top: .35rem; font-size: var(--text-s); }
  .hero-role { margin-top: .3rem; }
  .hero-scroll { bottom: 1.25rem; }
}

/* ---------- Shop ---------- */
/* Same poster language as the music page: paper, ink rules, Anton titles, red as the action plate. */
.cart-link { order: 1; position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); margin-left: auto; color: var(--paper); }
.cart-link[hidden], .cart-count[hidden] { display: none; }
.menu-toggle { order: 2; }
.site-nav { order: 3; }
.cart-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: 4px; right: 0; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; border-radius: 1rem; background: var(--red); color: var(--ink); font: 700 .72rem/1.25rem var(--font-body); text-align: center; }
@media (prefers-reduced-motion: no-preference) { .cart-link.bump .cart-count { animation: cart-bump 420ms var(--motion-ease); } }
@keyframes cart-bump { 40% { transform: scale(1.35); } }

.shop-loading { color: var(--muted-ink); }
.shop-empty { font-size: 1.15rem; }
.form-error, .cart-error { color: var(--red-ink); font-weight: 600; }
.form-error:empty, .cart-error:empty { display: none; }
.is-busy { opacity: .6; pointer-events: none; }
.button.is-busy { cursor: progress; }

/* Catalogue */
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem 2rem; }
.product-card-link { display: grid; gap: .35rem; }
.product-card-cover { display: block; aspect-ratio: 1; margin-bottom: .75rem; overflow: hidden; background: var(--paper-shade); box-shadow: 0 1px 0 var(--line-paper); }
.product-card-cover img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--motion-reveal) var(--motion-ease); }
.product-card-label { color: var(--red-ink); }
.product-card-title { font: 400 clamp(1.9rem, 5vw, 2.6rem)/1 var(--font-display); text-transform: uppercase; }
.product-card-formats { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.product-card-formats span { padding: .15rem .5rem; border: 1px solid var(--ink); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.product-card-price { margin-top: .4rem; font-weight: 700; font-size: 1.05rem; }
.shop-promises { display: grid; gap: 1rem 2rem; margin-top: clamp(3rem, 7vw, 5rem); padding-top: 1.5rem; border-top: 2px solid var(--ink); font-size: var(--text-s); }
.shop-promises strong { display: block; margin-bottom: .2rem; font: 400 1.35rem/1.1 var(--font-display); text-transform: uppercase; }
.shop-promises a { color: var(--red-ink); text-decoration: underline; text-underline-offset: .2em; }
@media (hover: hover) {
  .product-card-link:hover .product-card-cover img { transform: scale(1.03); }
  .product-card-link:hover .product-card-title { color: var(--red-ink); }
}

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "info" "details"; gap: 2rem; padding-top: 1rem; }
.product-media { grid-area: media; }
.product-info { grid-area: info; }
.product-details { grid-area: details; padding-top: 1rem; border-top: 2px solid var(--ink); }
.product-details .list-heading { margin-top: .5rem; }
.product-image img { width: auto; max-width: 100%; max-height: 78vh; margin-inline: auto; box-shadow: 0 18px 40px -24px rgb(5 8 7 / .55); }
.product-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.product-thumb { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; background: var(--paper-shade); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb[aria-current="true"] { border-color: var(--ink); }
.product-lede { max-width: 46ch; margin-bottom: 1.5rem; font-size: 1.15rem; line-height: 1.5; }
.product-lede:has(+ .product-highlights) { margin-bottom: .9rem; }
.product-highlights { margin: 0 0 1.5rem; padding: 0; list-style: none; display: grid; gap: .4rem; max-width: 46ch; }
.product-highlights li { position: relative; padding-left: 1.4rem; line-height: 1.4; }
.product-highlights li::before { content: ""; position: absolute; left: 0; top: .5em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--red, #c8102e); }
.format-picker { margin: 0; padding: 0; border: 0; }
.format-picker legend { padding: 0; margin-bottom: .6rem; color: var(--muted-ink); }
.format-options { display: grid; gap: .5rem; }
.format-option { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 1rem; min-height: 56px; padding: .65rem 1rem .65rem 2.75rem; border: 2px solid var(--line-paper); cursor: pointer; transition: border-color var(--motion-fast), background-color var(--motion-fast); }
.format-option input { position: absolute; left: 1rem; top: 50%; width: 1.1rem; height: 1.1rem; margin: -.55rem 0 0; accent-color: var(--red-ink); }
.format-option:has(input:checked) { border-color: var(--ink); background: var(--paper-shade); }
.format-option:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.format-option.is-sold-out { opacity: .55; cursor: not-allowed; }
.format-name { font-weight: 700; }
.format-price { font-weight: 600; }
.format-hint { grid-column: 1 / -1; font-size: .8rem; color: var(--red-ink); }
.product-price { margin-top: 1.5rem; font: 400 clamp(2.4rem, 7vw, 3.2rem)/1 var(--font-display); }
.product-price s { font-size: .55em; color: var(--muted-ink); }
.price-note { margin-top: .35rem; font-size: var(--text-s); color: var(--muted-ink); }
.price-note a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.buy-row { display: flex; gap: .75rem; margin-top: 1.25rem; }
.quantity input { width: 4.5rem; height: 100%; min-height: var(--tap); padding: 0 .5rem; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 700 1rem var(--font-body); text-align: center; }
.quantity[hidden] { display: none; }
.add-to-cart { flex: 1; max-width: 22rem; font-size: 1.05rem; }
.add-to-cart:disabled { opacity: .5; }
.delivery-note { margin-top: 1rem; font-size: var(--text-s); }
.buy-status { min-height: 1.6em; margin-top: .75rem; font-weight: 600; }
.buy-status a { color: var(--red-ink); text-decoration: underline; text-underline-offset: .2em; }
.buy-status.is-error { color: var(--red-ink); }
.added-mark { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; margin-right: .3rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .8rem; }
.product-info .text-link { min-height: 40px; }
.product-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem 2rem; max-width: 40rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line-paper); }
.product-specs dt { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-ink); }
.product-specs dd { margin: .15rem 0 0; font-weight: 700; }
.product-details ol { columns: 2 14rem; column-gap: 2rem; }
.product-details li { break-inside: avoid; padding-block: .1rem; }

/* Cart */
.cart-layout, .checkout, .thanks-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-top: 1rem; }
.cart-lines { border-top: 2px solid var(--ink); }
.cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "image text total" "image qty remove"; gap: .5rem 1rem; align-items: center; padding-block: 1.1rem; border-bottom: 1px solid var(--line-paper); }
.cart-line-image { grid-area: image; align-self: start; }
.cart-line-image img { width: 72px; height: 72px; object-fit: cover; }
.cart-line-text { grid-area: text; display: grid; }
.cart-line-name { font: 400 1.5rem/1.05 var(--font-display); text-transform: uppercase; }
.cart-line-format { font-weight: 600; font-size: var(--text-s); }
.cart-line-unit { font-size: .8rem; color: var(--muted-ink); }
.cart-line-qty { grid-area: qty; display: inline-flex; align-items: center; justify-self: start; border: 2px solid var(--ink); }
.qty-button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.2rem; font-weight: 700; }
.qty-button:disabled { opacity: .3; cursor: default; }
.qty-value { min-width: 2rem; text-align: center; font-weight: 700; }
.cart-line-total { grid-area: total; align-self: start; font-weight: 700; font-size: 1.05rem; }
.cart-remove { grid-area: remove; justify-self: end; min-height: 40px; padding: 0; border: 0; background: none; font-size: var(--text-s); text-decoration: underline; text-underline-offset: .2em; color: var(--muted-ink); }
.cart-empty { padding-block: 2rem; }
.cart-empty-title { margin-bottom: 1.25rem; font: 400 clamp(2rem, 6vw, 3rem)/1 var(--font-display); text-transform: uppercase; }
.order-summary { align-self: start; padding: 1.5rem; background: var(--ink); color: var(--paper); }
.summary-title { margin-bottom: 1rem; font: 400 1.8rem/1 var(--font-display); text-transform: uppercase; }
.summary-lines { display: grid; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-dark); }
.summary-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: .75rem; align-items: center; }
.summary-line img, .summary-noimage { width: 56px; height: 56px; object-fit: cover; background: var(--ink-soft); }
.summary-name { display: grid; font-weight: 700; line-height: 1.3; }
.summary-name small, .summary-totals small { font-weight: 400; font-size: .8rem; color: var(--muted); }
.summary-price { font-weight: 600; }
.summary-totals { display: grid; gap: .4rem; margin: 1rem 0 0; }
.summary-totals div { display: flex; justify-content: space-between; gap: 1rem; }
.summary-totals dd { margin: 0; font-weight: 600; }
.summary-total { margin-top: .4rem; padding-top: .75rem; border-top: 1px solid var(--line-dark); font-size: 1.2rem; }
.summary-total dt, .summary-total dd { font-weight: 700; }
.summary-tax { margin-top: .75rem; font-size: .8rem; color: var(--muted); }
.order-summary a:not(.button) { text-decoration: underline; text-underline-offset: .2em; }
.summary-edit { margin-top: .5rem; font-size: var(--text-s); }
.checkout-button { width: 100%; margin-top: 1.25rem; }

/* Checkout */
.checkout-main { display: grid; gap: 2rem; }
.checkout-step { min-width: 0; margin: 0; padding: 1.5rem 0 0; border: 0; box-shadow: inset 0 2px 0 var(--ink); }
.checkout-step[hidden] { display: none; }
/* A floated legend sits inside the box like a heading instead of cutting the rule. */
.checkout-step legend { float: left; display: flex; align-items: center; gap: .75rem; width: 100%; padding: 0; margin-bottom: 1rem; font: 400 1.8rem/1 var(--font-display); text-transform: uppercase; }
.checkout-step > :not(legend) { clear: both; }
.step-number { display: inline-grid; place-items: center; width: 2rem; height: 2rem; background: var(--red); color: var(--ink); font: 700 1rem var(--font-body); }
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1.25rem; }
.field { display: grid; gap: .3rem; }
.field-label { font-weight: 600; font-size: var(--text-s); }
.optional { font-weight: 400; color: var(--muted-ink); }
.field input, .field select { width: 100%; min-height: var(--tap); padding: .6rem .75rem; border: 2px solid var(--line-paper); border-radius: 0; background: #e3dec9; color: var(--ink); font: inherit; }
.field input:focus, .field select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgb(224 57 63 / .35); }
.field [aria-invalid="true"] { border-color: var(--red-ink); }
.field-hint { font-size: .8rem; color: var(--muted-ink); }
.checkout-step > .field-hint { margin: -.25rem 0 1rem; }
.shipping-options { display: grid; gap: .5rem; }
.shipping-option { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; min-height: 56px; padding: .65rem 1rem .65rem 2.75rem; border: 2px solid var(--line-paper); cursor: pointer; }
.shipping-option input { position: absolute; left: 1rem; top: 50%; width: 1.1rem; height: 1.1rem; margin: -.55rem 0 0; accent-color: var(--red-ink); }
.shipping-option:has(input:checked) { border-color: var(--ink); background: var(--paper-shade); }
.shipping-name { display: grid; font-weight: 700; }
.shipping-name small { font-weight: 400; font-size: .8rem; color: var(--muted-ink); }
.shipping-price { font-weight: 700; }
.checkout-confirm { display: grid; gap: 1rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: .95rem; cursor: pointer; }
.check[hidden] { display: none; }
.check input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--red-ink); }
.check input[aria-invalid="true"] { outline: 2px solid var(--red-ink); outline-offset: 2px; }
.check a { color: var(--red-ink); text-decoration: underline; text-underline-offset: .2em; }
.pay-button { width: 100%; max-width: 26rem; min-height: 56px; font-size: 1.1rem; }
.pay-button:disabled { opacity: .5; }
.pay-note { max-width: 46ch; font-size: .8rem; color: var(--muted-ink); }

/* Thank you */
.thanks-mark { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 1rem; background: var(--red); color: var(--ink); font-size: 1.8rem; font-weight: 700; }
.thanks-title { margin-bottom: 1rem; font: 400 clamp(2.2rem, 7vw, 3.6rem)/1 var(--font-display); text-transform: uppercase; }
.thanks-text p + p { margin-top: .75rem; }
.thanks-text .button { margin-top: 1rem; }
.thanks-downloads { margin-top: 1.5rem; padding: 1.25rem; border: 2px solid var(--ink); }
.thanks-downloads ul { display: grid; gap: .5rem; margin-top: .5rem; }
.thanks-downloads .button { margin-top: 0; }
.thanks-downloads small { font-weight: 400; }

/* Legal texts of the shop (from the CMS) */
.legal-text h2 { font-size: 1.25rem; }
.legal-text dl dt { margin-top: .75rem; font-weight: 700; }
.legal-text dl dd { margin-left: 0; }

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-promises { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }
  .cart-line { grid-template-columns: 96px minmax(0, 1fr) auto auto; grid-template-areas: "image text qty total" "image text remove remove"; column-gap: 1.5rem; }
  .cart-line-image img { width: 96px; height: 96px; }
  .cart-line-total { min-width: 5.5rem; text-align: right; }
}
@media (min-width: 900px) {
  /* The buy box stays beside gallery and details; the rule above the details spans the left column only. */
  .product { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-rows: auto 1fr; grid-template-areas: "media info" "details info"; column-gap: clamp(2.5rem, 6vw, 6rem); }
  .product-info { position: sticky; top: 1.5rem; align-self: start; }
  .cart-layout, .checkout, .thanks-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(2rem, 5vw, 5rem); }
  .order-summary { position: sticky; top: 1.5rem; }
}
@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-nav, .site-nav.open { order: 2; margin-left: auto; }
  .cart-link { order: 3; margin-left: .25rem; }
}
