/* 3. Sinfoniekonzert: a listening companion. Typography and the viewer
   follow bach/bach.css (EB Garamond, rules and fleurons instead
   of boxes, one colour); the colour here is a deep teal instead of the
   red of rubrication, and the paper is cooler: a concert bill rather than
   a libretto. */

@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../bach/fonts/eb-garamond.woff2') format('woff2'); }
/* Hildegard's Latin is set in Junicode 2 (Peter S. Baker, SIL Open Font
   License, fonts/Junicode-OFL.txt), the medievalists' typeface, with two
   of its medieval forms: the long s inside a word (ss08) and the round r
   after round letters (ss16). Fixed at regular to medium weight and
   subset to Basic Latin with those two features: 29 KB instead of 1 MB. */
@font-face { font-family: 'Junicode'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('fonts/junicode-latin.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400 800; font-display: swap; src: url('../bach/fonts/eb-garamond-italic.woff2') format('woff2'); }

:root {
    --serif: 'EB Garamond', Garamond, Georgia, serif;
    --latin: 'Junicode', 'EB Garamond', Garamond, Georgia, serif;
    --sans:  var(--serif);
    --mono:  var(--serif);
    --bg:    #FAFAF8;
    --ink:   #111111;
    --title: #111111;
    --body:  #2B2B2A;
    --faint: #85857F;
    --rule:  #D9D9D6;
    --line:  #E6E6E3;
    --acc:   #1E5C66;            /* deep teal */
    --accent: var(--acc);
    --gloss: #5F6668;
    --deck:  #D3D6D2;            /* behind the cube turn on phones */
}
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg:    #0E0E0E;
        --ink:   #EDEDEA; --title: #EDEDEA; --body: #C6C6C2; --faint: #7E7E7A;
        --rule:  #2A2A28; --line: #1E1E1D;
        --acc:   #7FC0C6;
        --gloss: #9CA3A2;
        --deck:  #050606;
    }
}

/* One language at a time */
html[data-ui="de"] [data-l="en"], html[data-ui="en"] [data-l="de"] { display: none !important; }

body {
    background: var(--bg); color: var(--body);
    font-family: var(--serif);
    font-variant-numeric: oldstyle-nums proportional-nums;
    font-kerning: normal;
}
.eyebrow, .notes dt, .no, .who, .meta h4 {
    font-variant-caps: all-small-caps; letter-spacing: .06em;
}
.wrap {
    max-width: 980px; margin: 0 auto;
    padding-block: 40px 16vh;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    font-size: 19px;
}
a { color: inherit; }

/* ─── The frame: everything outside the cards, as a Swiss grid ───
   IBM Plex Sans (hosted by the site, declared in style.css), flush left on
   twelve columns: section names in the first three, content in the rest.
   Black, grey and white only, thin rules, no ornament; the colour belongs
   to the cards. */
:root { --sans: 'IBM Plex Sans', system-ui, sans-serif; --mute: #6B6B6B; }
@media (prefers-color-scheme: dark) { :root { --mute: #8E8E8A; } }
body { font-family: var(--sans); font-variant-numeric: normal; color: var(--ink); -webkit-font-smoothing: antialiased; }
.slide { font-family: var(--serif); font-variant-numeric: oldstyle-nums proportional-nums; }
.wrap { max-width: 1080px; padding-block: 56px 16vh; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); font-size: 17px; line-height: 1.55; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.lbl { grid-column: 1 / 4; font-size: 13px; line-height: 1.45; color: var(--mute); padding-top: 7px; }
.body { grid-column: 4 / 13; }
.head { border-top: 2px solid var(--ink); padding-top: 14px; }
.head h1 { font-weight: 500; font-size: clamp(40px, 7.4vw, 84px); line-height: .98; letter-spacing: -.025em; color: var(--ink); margin: 0 0 28px; hyphens: manual; }
.head .facts { font-size: 15px; line-height: 1.5; color: var(--mute); margin: 0; }
.head .facts b { font-weight: 500; color: var(--ink); }
.lede { font-size: 21px; line-height: 1.45; letter-spacing: -.005em; color: var(--ink); margin: 36px 0 0; max-width: 30em; text-wrap: pretty; }
.sec { border-top: 1px solid var(--rule); margin-top: 64px; padding-top: 16px; }
.sec h2 { font-weight: 500; font-size: 28px; line-height: 1.15; letter-spacing: -.015em; color: var(--ink); margin: 0 0 16px; }
.sec p { margin: 0; max-width: 36em; }
.sec a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--mute); }
.sec a:hover { text-decoration-color: currentColor; }
.thread { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: n; }
.thread li { display: grid; grid-template-columns: 3em 10em minmax(0, 1fr); gap: 0 12px; border-top: 1px solid var(--rule); padding: 12px 0; font-size: 16px; counter-increment: n; }
.thread li::before { content: counter(n, decimal-leading-zero); color: var(--mute); font-size: 13px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.thread li b { font-weight: 500; }
.sources { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--mute); }
.sources li { padding: 7px 0; border-top: 1px solid var(--rule); }
.sources li:first-child { border-top: 0; padding-top: 4px; }
.sources i { font-style: italic; }
@media (max-width: 700px) {
    .wrap { padding-top: 28px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
    .lbl { grid-column: 1 / 13; padding: 0 0 10px; }
    .body { grid-column: 1 / 13; }
    .lede { font-size: 19px; }
    .sec { margin-top: 48px; }
    .thread li { grid-template-columns: 2.4em minmax(0, 1fr); }
    .thread li > span { grid-column: 2; }
}

/* ─── Controls: plain sans words, the chosen one underlined in ink ─── */
.pills { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 18px; }
.pills button, .tog { font: 400 14px/1.2 var(--sans); color: var(--mute); background: none; border: 0; padding: 4px 0; cursor: pointer; white-space: nowrap; }
.pills button:hover, .tog:hover { color: var(--ink); }
.pills button[aria-pressed="true"], .tog[aria-pressed="true"] { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
button:focus-visible, a:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.head .langs { margin-top: 24px; }

/* ─── The viewer (as in bach.css) ─── */
.cards { margin-top: 30px; }
.viewer { display: flex; flex-direction: column; background: transparent; }
.cards .stage-bg { background: transparent; border-radius: 0 !important; box-shadow: none !important; border-left: 0; border-right: 0; }
.stage-toast { color: var(--bg); font-family: var(--sans); }
.stage-hint { font-family: var(--sans); font-size: 12px; color: var(--mute); }
.viewer > .fig-label { display: none; }
.viewer.is-stage { height: calc(100vh - 72px); height: calc(100svh - 72px); padding: 0 26px; }
.viewer.is-swipe.stage-card { --card-w: 100vw; padding: 0; height: 100vh; height: 100dvh; }
.vbar { flex: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 30px; padding: 12px 0 10px; border-bottom: 1px solid var(--rule); }
.is-swipe .vbar { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 22px; padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px; }
.is-swipe .vbar::-webkit-scrollbar { display: none; }
.is-swipe .vbar .pills { flex-wrap: nowrap; }
.vnav { display: inline-flex; align-items: baseline; gap: 10px; flex: none; }
.vnav .arrow { font: 400 18px/1 var(--sans); color: var(--ink); background: none; border: 0; cursor: pointer; padding: 2px 4px; }
.vnav .arrow:disabled { color: var(--rule); cursor: default; }
.vnav .pos { font: 400 13px/1.2 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); min-width: 74px; text-align: center; white-space: nowrap; }
.vprog { flex: none; height: 1px; }
.vprog i { display: block; height: 1px; width: 0; background: var(--ink); transition: width .25s ease-out; }
.deck { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; isolation: isolate; }
.deck::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; position: relative; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.plate { position: absolute; inset: 0; background: transparent; }
.scroll { position: absolute; inset: 0; overflow-y: auto; }
.inner { padding: 24px 2px 48px; }
.is-swipe .inner { padding: 22px 16px calc(64px + env(safe-area-inset-bottom, 0px)); }
/* Desktop: two columns, each scrolling on its own */
.is-stage .card .scroll { overflow: hidden; }
.is-stage .card .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; height: 100%; padding: 0 2px; }
.is-stage .card .meta, .is-stage .card .text { min-height: 0; overflow-y: auto; padding: 26px 8px 48px 0; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.is-stage .card .meta { margin-top: 0; padding-left: 30px; border-top: 0; border-left: 1px solid var(--line); }
/* the interlude has a single column */
.is-stage .card.is-interlude .inner { grid-template-columns: minmax(0, 620px); justify-content: center; }

/* On phones every step between cards is a cube turn, as on bach/ and kim/,
   driven by the scroll position (view timelines); without support, or with
   reduced motion, a plain slide. On desktop a step is a quick fade (JS). */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .is-swipe .deck { background: var(--deck); }
        .is-swipe .near .plate { background-color: var(--bg); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
        .is-swipe .slide.near { view-timeline: --slide inline; overflow: visible; }
        .is-swipe .near .plate { animation: m3-cube 1ms linear both; animation-timeline: --slide; animation-range: cover 0% cover 100%; }
    }
}
@keyframes m3-cube {
    0%     { transform: translateX(-50%) perspective(240vw) rotateY(90deg) translateX(50%); }
    50%    { transform: translateX(-50%) perspective(240vw) rotateY(0deg) translateX(50%); }
    50.01% { transform: translateX(50%) perspective(240vw) rotateY(0deg) translateX(-50%); }
    100%   { transform: translateX(50%) perspective(240vw) rotateY(-90deg) translateX(-50%); }
}


/* ─── A card ─── */
.card header { text-align: center; padding-bottom: 16px; margin-bottom: 20px; position: relative; border-bottom: 1px solid var(--rule); }
.card header::after { content: "❦\FE0E"; position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); background: var(--bg); padding: 0 10px; color: var(--acc); font-size: 17px; line-height: 1; }
.card .no { font-size: 16px; color: var(--acc); }
.card .cmp { font-size: 17px; color: var(--body); margin-top: 6px; }
.card .cmp .yrs { color: var(--faint); font-size: .9em; }
.card h3 { font-weight: 500; font-size: 32px; line-height: 1.12; color: var(--title); margin-top: 4px; text-wrap: balance; }
.card .mvt { font-size: 20px; font-style: italic; color: var(--ink); margin-top: 6px; }
.card .mvt .tr { font-size: .8em; color: var(--faint); }
.card .form { font-size: 16.5px; font-style: italic; color: var(--body); margin-top: 6px; line-height: 1.4; text-wrap: balance; }
.card .form i { font-style: normal; }
@media (max-width: 720px) { .card h3 { font-size: 28px; } }

.comm p { font-size: 18px; line-height: 1.55; color: var(--ink); hyphens: auto; text-align: justify; }
.comm p + p { text-indent: 1.4em; }
.meta { margin-top: 30px; border-top: 1px solid var(--rule); padding-top: 18px; }
.meta h4, .text h4 { font-weight: 400; font-size: 17px; color: var(--acc); margin: 16px 0 6px; font-variant-caps: all-small-caps; letter-spacing: .06em; }
.meta h4:first-child { margin-top: 0; }
.lf { margin: 0; padding: 0 0 0 1.5em; font-size: 18px; line-height: 1.5; color: var(--ink); }
.lf li { padding-left: .2em; }
.lf li + li { margin-top: .55em; }
.lf li::marker { color: var(--acc); font-size: .9em; }
.lf.big { font-size: 20px; line-height: 1.5; }
.lf i { font-style: italic; }
.notes { margin: 20px 0 0; border-top: 1px solid var(--rule); padding-top: 10px; font-size: 16.5px; line-height: 1.45; }
.notes > div { display: grid; grid-template-columns: 82px 1fr; gap: 0 14px; padding: 4px 0; }
.notes dt { color: var(--acc); font-size: 16px; }
.notes dd { margin: 0; color: var(--body); }
.next { margin-top: 22px; font-size: 17px; font-style: italic; text-align: right; }
.next a { text-decoration: none; }
.next a:hover { text-decoration: underline; }

/* ─── Sung text: original, translation in small italic below each line ─── */
.text { display: grid; gap: 18px; align-content: start; }
.text header { margin-bottom: 8px; }
.blk .who { text-align: center; font-size: 16px; color: var(--acc); margin-bottom: 4px; }
.blk .lines { font-size: 21px; line-height: 1.45; color: var(--ink); text-align: center; }
.blk .lines > span { display: block; }
.blk .lines .g { font-size: 15.5px; color: var(--gloss); font-style: italic; line-height: 1.35; margin: 0 0 7px; }
body.nogloss .blk .lines .g { display: none; }
/* German sung text has nothing to translate for a German reader */
html[data-ui="de"] .lines[lang="de"] .g { display: none !important; }
[lang="la"] { font-family: var(--latin); font-feature-settings: "ss08" 1, "ss16" 1; }
/* the translation under the Latin stays in EB Garamond, without the medieval forms */
.blk .lines[lang="la"] .g { font-family: var(--serif); font-feature-settings: normal; }

.totop { position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50; }
.in-viewer .totop { display: none; }
.totop a { font: 400 14px/1 var(--sans); color: var(--ink); text-decoration: none; background: var(--bg); padding: 4px 6px; }

@media (max-width: 560px) {
    .prose p, .comm p { text-align: left; }
}

/* ─── Each card in the colours of its music ───
   Hildegard: lapis and gold, after the illuminations of her Scivias.
   Bach/Webern: the grey of an engraving. Mozart: rose and cream, a salon.
   Schubert: river teal. Bruckner: a forest family, from misty dawn (I) and
   dusk (II) to the hunt (III) and the full blaze of the finale (IV).
   A card's own palette (.t-*) redefines the page's colour tokens inside it;
   .e-* gives only the accent, for emblems shown on the page's own ground. */
.t-hildegard { --bg: #142347; --ink: #F1E3B5; --body: #E2D6AE; --faint: #A99C78; --rule: #3A4A72; --line: #2A3962; --acc: #D8B556; --gloss: #BFB28C; --title: #F1E3B5; }
.t-bach { --bg: #EDEDEB; --ink: #1B1B1B; --body: #333333; --faint: #7A7A78; --rule: #C4C4C0; --line: #D9D9D5; --acc: #444444; --gloss: #5E5E5C; --title: #1B1B1B; }
.t-mozart { --bg: #F7ECE8; --ink: #3B2A2A; --body: #4D3A3A; --faint: #9B8584; --rule: #E0C9C4; --line: #EDDAD5; --acc: #A4545E; --gloss: #7A6463; --title: #3B2A2A; }
.t-schubert { --bg: #E3EEEC; --ink: #17363A; --body: #2B4A4E; --faint: #6F8B8D; --rule: #BBD2D0; --line: #CFE0DE; --acc: #2F7F86; --gloss: #4F6C6F; --title: #17363A; }
.t-bruckner-1 { --bg: #DDE5DA; --ink: #1F2E22; --body: #33443A; --faint: #6E7E71; --rule: #B9C7B6; --line: #CBD6C8; --acc: #4E6B3E; --gloss: #56685A; --title: #1F2E22; }
.t-bruckner-2 { --bg: #2C3A33; --ink: #DCE5DC; --body: #C3CEC3; --faint: #8A988C; --rule: #46564C; --line: #3A4A40; --acc: #B9C99A; --gloss: #A7B6A8; --title: #DCE5DC; }
.t-bruckner-3 { --bg: #26402C; --ink: #F0E3BC; --body: #DCD0AA; --faint: #9FA48A; --rule: #3F5A44; --line: #34503A; --acc: #E2B65A; --gloss: #C8BD98; --title: #F0E3BC; }
.t-bruckner-4 { --bg: #1B2A1E; --ink: #F4D98C; --body: #E3D3A6; --faint: #A49A72; --rule: #35473A; --line: #2A3B2E; --acc: #F0C24F; --gloss: #CDBE90; --title: #F4D98C; }
.e-hildegard { --em: #A07C20; }
.e-bach { --em: #555555; }
.e-mozart { --em: #A4545E; }
.e-schubert { --em: #2F7F86; }
.e-bruckner-1 { --em: #4E6B3E; }
.e-bruckner-2 { --em: #56704A; }
.e-bruckner-3 { --em: #8A6A1E; }
.e-bruckner-4 { --em: #9A7414; }
@media (prefers-color-scheme: dark) {
    .t-hildegard { --bg: #0C1530; --ink: #F1E3B5; --body: #DCD0A8; --faint: #9C9070; --rule: #2E3C62; --line: #1F2C52; --acc: #D8B556; --gloss: #B5A884; --title: #F1E3B5; }
    .t-bach { --bg: #1C1C1C; --ink: #E6E6E2; --body: #C8C8C4; --faint: #858582; --rule: #3A3A38; --line: #2A2A28; --acc: #BDBDB8; --gloss: #A0A09C; --title: #E6E6E2; }
    .t-mozart { --bg: #2A1E1F; --ink: #F2DCD8; --body: #D9C3BF; --faint: #957F7C; --rule: #4A3537; --line: #3A2A2B; --acc: #E39AA3; --gloss: #B9A19E; --title: #F2DCD8; }
    .t-schubert { --bg: #102426; --ink: #CFE6E4; --body: #B3CFCC; --faint: #6E8C8D; --rule: #24403F; --line: #1A3234; --acc: #6FC3C9; --gloss: #94B3B2; --title: #CFE6E4; }
    .t-bruckner-1 { --bg: #1A221C; --ink: #CFDACC; --body: #B5C2B2; --faint: #6F7D70; --rule: #2F3B31; --line: #252F27; --acc: #A9C48E; --gloss: #93A391; --title: #CFDACC; }
    .t-bruckner-2 { --bg: #18201B; --ink: #D3DCD3; --body: #B8C3B8; --faint: #7C8A7E; --rule: #2E3A33; --line: #232D27; --acc: #B9C99A; --gloss: #9AA99B; --title: #D3DCD3; }
    .t-bruckner-3 { --bg: #142318; --ink: #EADDB6; --body: #D3C7A2; --faint: #8F9479; --rule: #2B4130; --line: #203525; --acc: #E2B65A; --gloss: #BBB08C; --title: #EADDB6; }
    .t-bruckner-4 { --bg: #0F1811; --ink: #F4D98C; --body: #DCCB9C; --faint: #968C66; --rule: #28382C; --line: #1E2C22; --acc: #F0C24F; --gloss: #C2B386; --title: #F4D98C; }
    .e-hildegard { --em: #D8B556; }
    .e-bach { --em: #BDBDB8; }
    .e-mozart { --em: #E39AA3; }
    .e-schubert { --em: #6FC3C9; }
    .e-bruckner-1 { --em: #A9C48E; }
    .e-bruckner-2 { --em: #B9C99A; }
    .e-bruckner-3 { --em: #E2B65A; }
    .e-bruckner-4 { --em: #F0C24F; }
}

.card .plate { background: var(--bg); color: var(--body); }
.is-stage .card .inner { padding: 0 34px; }
.card ::selection { background: var(--acc); color: var(--bg); }
.card .text, .card .meta { scrollbar-color: var(--rule) transparent; }

/* The emblem replaces the fleuron under the title */
.card header.has-em::after { content: none; }
.card header .em {
    position: absolute; left: 50%; bottom: -17px; transform: translateX(-50%);
    background: var(--bg); padding: 0 12px; color: var(--acc); line-height: 0;
}
.card header .em svg { width: 64px; height: 32px; display: block; }
.card header.has-em { margin-bottom: 30px; }


/* ─── The programme, in the frame ─── */
.sec .cast { font-size: 15px; color: var(--mute); margin-top: -4px; }
.prog { list-style: none; margin: 24px 0 0; padding: 0; }
.prog li > a, .prog li.grp { display: grid; grid-template-columns: 3em minmax(0, 1fr) auto; gap: 0 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 16px; }
.prog li.grp { padding-bottom: 4px; }
.prog .n { color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.prog .t b { font-weight: 500; }
.prog .t > span { color: var(--ink); }
.prog .d { color: var(--mute); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prog li.sub > a { border-top: 0; padding: 4px 0; }
.prog li.sub .t { color: var(--body); }
.prog li.int .t span { color: var(--mute); font-style: italic; }
.prog a:hover .t > span:last-child, .prog a:focus-visible .t > span:last-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prog [lang="la"] { font-family: var(--sans); font-feature-settings: normal; }
.sec .hint { margin-top: 22px; font-size: 14px; color: var(--mute); }
@media (max-width: 700px) {
    .prog li > a, .prog li.grp { grid-template-columns: 2.4em minmax(0, 1fr) auto; }
}

/* ─── The cards stand apart from the page ───
   Each card is an object resting on the page: inset from the edges of the
   deck, slightly rounded, with a soft shadow, and inside it a hairline
   frame in its own accent, like a printed programme card. On phones the
   card fills the screen and keeps the frame. */
.is-stage .card .plate { inset: 18px 6px 22px; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 40px -14px rgba(0,0,0,.28); }
.card .plate::after { content: ""; position: absolute; inset: 24px; border: 1px solid var(--acc); opacity: .55; border-radius: 2px; pointer-events: none; }
.is-swipe .card .plate::after { inset: 16px; }
.is-stage .card .meta, .is-stage .card .text { padding-top: 34px; padding-bottom: 40px; }
@media (prefers-color-scheme: dark) {
    .is-stage .card .plate { box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 18px 44px -12px rgba(0,0,0,.8); }
}
/* the interlude has no music of its own: a plain card, still a card */
.t-zwischenspiel { --bg: #ECEAE4; --ink: #1E1E1C; --title: #1E1E1C; --body: #3A3936; --faint: #85827A; --rule: #CFCCC4; --line: #DEDBD4; --acc: #6B675E; --gloss: #5E5B54; }
@media (prefers-color-scheme: dark) {
    .t-zwischenspiel { --bg: #1C1B19; --ink: #E6E3DC; --title: #E6E3DC; --body: #C4C1B9; --faint: #7E7B74; --rule: #34322E; --line: #282724; --acc: #A29D92; --gloss: #9A968D; }
}

/* ─── Terms: underlined, a click explains them (frankfurt.js) ─── */
button.term {
    font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
    text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: .2em; text-decoration-skip-ink: none;
    text-decoration-color: var(--mute, var(--faint));
}
.card button.term { text-decoration-color: var(--acc); }
button.term:hover, button.term[aria-expanded="true"] { text-decoration-style: solid; }
.termpop {
    position: fixed; z-index: 90; width: min(300px, calc(100vw - 24px)); box-sizing: border-box;
    background: var(--bg); color: var(--ink); border: 1px solid var(--rule); border-radius: 4px;
    padding: 12px 14px 14px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.35);
    font: 400 14.5px/1.5 var(--sans); font-variant-numeric: normal;
}
.termpop[hidden] { display: none; }
.termpop .tp-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.termpop b { font-weight: 500; font-size: 15px; }
.termpop p { margin: 0; color: var(--body); }
.termpop .tp-x { font: 400 20px/1 var(--sans); color: var(--mute); background: none; border: 0; padding: 0 2px; cursor: pointer; }
.termpop .tp-x:hover { color: var(--ink); }
@media (prefers-color-scheme: dark) { .termpop { box-shadow: 0 10px 30px -8px rgba(0,0,0,.9); } }

/* Nothing on a card runs under its frame: the scrolling areas stop inside
   it (the frame is 9 px in on desktop, 7 px on phones), so text that
   scrolls is clipped before it reaches the line. */
.is-stage .card .inner { padding: 30px 48px; box-sizing: border-box; }
.is-swipe .card .scroll { inset: 21px 20px; }
.is-swipe .card .inner { padding: 12px 6px calc(52px + env(safe-area-inset-bottom, 0px)); }

/* ─── Richer cards ───
   Each card has a glow and a shade over its own colour (--glow, --shade),
   a fine paper grain, and between its edge and the hairline frame a band
   with a small pattern from its music (--band, drawn by frankfurt.js in the
   card's accent). The band and the frame lie outside the scrolling areas,
   so no text ever passes under them. */
.card {
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    --glow: rgba(255,255,255,.4); --shade: rgba(0,0,0,.08);
}
.card .plate {
    background-color: var(--bg);
    background-image: var(--grain), radial-gradient(130% 75% at 50% -10%, var(--glow), transparent 62%), linear-gradient(180deg, transparent 45%, var(--shade));
}
.card .plate::before {
    content: ""; position: absolute; inset: 8px; padding: 12px; border-radius: 2px; pointer-events: none;
    background: var(--band, none) 0 0 / var(--band-size, 12px 12px) repeat;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: .75;
}
.is-swipe .card .plate::before { inset: 5px; padding: 8px; }
.t-hildegard  { --glow: rgba(216,181,86,.24); --shade: rgba(4,8,28,.45); }
.t-bach       { --glow: rgba(255,255,255,.75); --shade: rgba(0,0,0,.07); }
.t-mozart     { --glow: rgba(255,255,255,.7);  --shade: rgba(164,84,94,.12); }
.t-schubert   { --glow: rgba(255,255,255,.6);  --shade: rgba(23,54,58,.22); }
.t-bruckner-1 { --glow: rgba(255,232,180,.65); --shade: rgba(31,46,34,.1); }
.t-bruckner-2 { --glow: rgba(185,201,154,.16); --shade: rgba(0,0,0,.3); }
.t-bruckner-3 { --glow: rgba(226,182,90,.2);   --shade: rgba(0,0,0,.3); }
.t-bruckner-4 { --glow: rgba(240,194,79,.34);  --shade: rgba(0,0,0,.35); }
.t-zwischenspiel { --glow: rgba(255,255,255,.55); --shade: rgba(0,0,0,.05); }
@media (prefers-color-scheme: dark) {
    .t-hildegard  { --glow: rgba(216,181,86,.18); --shade: rgba(0,0,0,.45); }
    .t-bach       { --glow: rgba(255,255,255,.06); --shade: rgba(0,0,0,.35); }
    .t-mozart     { --glow: rgba(227,154,163,.12); --shade: rgba(0,0,0,.35); }
    .t-schubert   { --glow: rgba(111,195,201,.12); --shade: rgba(0,0,0,.4); }
    .t-bruckner-1 { --glow: rgba(169,196,142,.14); --shade: rgba(0,0,0,.35); }
    .t-bruckner-2 { --glow: rgba(185,201,154,.1);  --shade: rgba(0,0,0,.4); }
    .t-bruckner-3 { --glow: rgba(226,182,90,.14);  --shade: rgba(0,0,0,.4); }
    .t-bruckner-4 { --glow: rgba(240,194,79,.24);  --shade: rgba(0,0,0,.45); }
    .t-zwischenspiel { --glow: rgba(255,255,255,.05); --shade: rgba(0,0,0,.3); }
}

/* ─── The Bruckner as one whole ───
   At the head of each movement's card: one bar in four parts, the current
   movement lit, each part with its emblem and numeral and a link to it. */
.whole { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; max-width: 300px; margin: 0 auto 16px; }
.whole a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--faint); text-decoration: none; opacity: .7; }
.whole a svg { width: 44px; height: 22px; }
.whole a span { font-size: 12px; letter-spacing: .08em; font-variant-numeric: lining-nums; }
.whole a::after { content: ""; align-self: stretch; height: 2px; background: currentColor; opacity: .45; border-radius: 1px; }
.whole a.is-cur { color: var(--acc); opacity: 1; }
.whole a.is-cur::after { height: 3px; opacity: 1; }
.whole a:hover { opacity: 1; }
.whole a:first-child::after { border-radius: 2px 0 0 2px; } .whole a:last-child::after { border-radius: 0 2px 2px 0; }

/* The rule under a card's title opens around its emblem: two lengths of
   rule and a gap, no patch of colour behind the emblem (the cards' grounds
   are gradients now). */
.card header.has-em { border-bottom: 0; padding-bottom: 18px; }
.card header .em { left: 0; right: 0; transform: none; bottom: -16px; padding: 0; background: none; display: flex; align-items: center; justify-content: center; gap: 14px; }
.card header .em::before, .card header .em::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.nw { white-space: nowrap; }

/* Phones: the full-screen cards fill the screen as it really is. iOS
   Safari's bottom bar collapses and expands; 100svh assumes it is always
   shown, which left a strip of page under the cards. 100dvh follows the
   bar. Whatever still shows behind the cards takes the colour of the card
   in view (--pin-bg, set by frankfurt.js), never the page's white. */
.stage[data-stage-full] .stage-pin { height: 100vh; height: 100dvh; background: var(--pin-bg, transparent); }

/* The playlist, under the programme */
.sec .listen-ahead { margin-top: 18px; padding: 12px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); font-size: 15px; }
.sec .listen-ahead a { color: var(--ink); text-decoration: none; font-weight: 500; }
.sec .listen-ahead a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Phones: the bar above the full-screen cards wears the colours of the card
   in view (set by frankfurt.js), so it never shows the page's black type on
   a dark card. */
.viewer.is-swipe .vbar { background: var(--bar-bg, var(--bg)); border-bottom-color: var(--bar-line, var(--rule)); }
.viewer.is-swipe .vbar .pills button, .viewer.is-swipe .vbar .tog { color: var(--bar-mute, var(--mute)); }
.viewer.is-swipe .vbar .pills button[aria-pressed="true"], .viewer.is-swipe .vbar .tog[aria-pressed="true"],
.viewer.is-swipe .vnav .pos, .viewer.is-swipe .vnav .arrow { color: var(--bar-fg, var(--ink)); }
.viewer.is-swipe .vnav .arrow:disabled { color: var(--bar-line, var(--rule)); }
.viewer.is-swipe .vprog i { background: var(--bar-fg, var(--ink)); }

/* ─── Tickets: one row each, with its price category and a Wallet button ─── */
.tix { list-style: none; margin: 4px 0 0; padding: 0; }
.tix li { display: grid; grid-template-columns: 3em minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); }
.tix li:last-child { border-bottom: 1px solid var(--rule); }
.tix .n { color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.tix .t { font-size: 16px; color: var(--mute); }
.tix .t b { font-weight: 500; color: var(--ink); margin-right: .4em; }
.tix .young .t > span:last-child, .tix .young .t > span[data-l] { color: var(--ink); }
.sec a.wallet { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.sec a.wallet svg { width: 18px; height: 18px; flex: none; }
.sec a.wallet:hover { opacity: .85; }
.sec a.wallet:focus-visible { outline-offset: 3px; }
@media (max-width: 700px) {
    .tix li { grid-template-columns: 2.4em minmax(0, 1fr); }
    .tix .wallet { grid-column: 2; justify-self: start; }
}
