/* ==========================================================================
   VOX ALBA, shared stylesheet
   One file for the whole site. See DESIGN.md for the reasoning.

   CONTENTS
   1. Fonts
   2. Tokens (colours, type, spacing)
   3. Base
   4. Page fade
   5. Header and numeral menu
   6. Home
   7. Page furniture (page head, sections, margin column)
   8. Text devices (drop cap, rubric, meta, lists)
   9. Buttons and forms
   10. Placeholders (images, embeds)
   11. Events
   12. Releases
   13. Scores
   14. Review
   15. Who We Are
   16. Quiet pages (VI, 404)
   17. Footer
   18. Cart drawer
   ========================================================================== */

/* 1. FONTS ------------------------------------------------------------------
   EB Garamond, variable weight, self-hosted. Licence: fonts/OFL-LICENSE.txt */
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/eb-garamond-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/eb-garamond-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Extended Latin (accented names from central and eastern Europe and so on).
   Browsers only download these if a page uses such a character. */
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. TOKENS ----------------------------------------------------------------- */
:root {
  --black: #000000;        /* page, everywhere */
  --white: #ffffff;        /* headings, numerals, drop caps */
  --paper: #e9e4d9;        /* body text, soft off-white */
  --ash: #a8a296;          /* secondary text, dates, captions */
  --rule: #2b2925;         /* hairlines */
  --plate: #100f0e;        /* placeholder boxes */
  --plate-edge: #262420;
  --vermilion: #e8452f;    /* rubrication only: people, venues, institutions */

  --serif: "EB Garamond", Garamond, "Adobe Garamond Pro", "Cormorant Garamond", Georgia, serif;

  --t-micro: 0.72rem;      /* spaced capitals: menu labels, buttons */
  --t-small: 0.88rem;
  --t-body: 1rem;
  --t-lead: 1.18rem;
  --t-h3: 1.38rem;
  --t-h2: 1.75rem;
  --t-h1: clamp(2.3rem, 1.6rem + 3.2vw, 3.9rem);

  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: 6.5rem;

  --gutter: clamp(1.4rem, 7vw, 7rem);   /* page side margins */
  --margin-col: 11rem;                  /* the marginalia column on wide screens */
  --measure: 34rem;                     /* reading width */
  --fade: 1s;                           /* the only motion on the site */
}

/* 3. BASE ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: clamp(1.125rem, 0.95rem + 0.5vw, 1.375rem);
  background: var(--black);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--paper);
  font-family: var(--serif);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.5;
  font-variant-numeric: oldstyle-nums;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 400; color: var(--white); line-height: 1.15; text-wrap: balance; }
h1 { font-size: var(--t-h1); letter-spacing: -0.005em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }

p { max-width: var(--measure); }
p + p { margin-top: 0.75em; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--ash); }
a:hover { color: var(--white); text-decoration-color: var(--white); }

button, input { font: inherit; color: inherit; }

:focus-visible { outline: 1px solid var(--white); outline-offset: 4px; }

::selection { background: var(--paper); color: var(--black); }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: var(--gutter); top: -4rem; background: var(--black); padding: 0.4rem 0.8rem; z-index: 50; }
.skip:focus { top: 0.5rem; }

/* 4. PAGE FADE ---------------------------------------------------------------
   Fade in on load (pure CSS, so it works without JavaScript).
   Fade out is triggered by js/site.js, which adds .is-leaving to <html>. */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes page-out { from { opacity: 1; } to { opacity: 0; } }
body { animation: page-in var(--fade) ease both; }
html.is-leaving body { animation: page-out var(--fade) ease both; }

/* 5. HEADER AND NUMERAL MENU -------------------------------------------------- */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "logo cart" "menu menu";
  align-items: center;
  gap: var(--s-2) var(--s-3);
  padding: var(--s-3) var(--gutter) var(--s-2);
}
.site-logo { grid-area: logo; display: block; width: 10.5rem; text-decoration: none; }
.site-logo img { width: 100%; }

.numerals { grid-area: menu; }
.numerals ol { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.numerals a {
  display: inline-block;
  padding: 0.55rem 0.15rem 0.4rem;
  min-width: 1.6rem;
  text-align: center;
  font-size: var(--t-small);
  letter-spacing: 0.14em;
  font-variant-numeric: lining-nums;
  color: var(--ash);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.numerals a:hover { color: var(--white); }
.numerals a[aria-current="page"] { color: var(--white); border-bottom-color: var(--white); }

.cart-toggle {
  grid-area: cart;
  display: none;                 /* shown by JavaScript, the cart needs it */
  background: none;
  border: 0;
  padding: 0.5rem 0;
  cursor: pointer;
  font-size: var(--t-micro);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ash);
  font-variant-numeric: lining-nums;
}
.js .cart-toggle { display: inline-block; }
.cart-toggle:hover { color: var(--white); }
.cart-toggle.has-items { color: var(--white); }

@media (min-width: 48em) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "logo menu cart";
    gap: var(--s-3);
    padding-top: var(--s-4);
  }
  .numerals ol { gap: 0.9rem; }
}
@media (min-width: 62em) {
  .site-header { gap: var(--s-4); }
  .site-logo { width: 12rem; }
  .numerals ol { gap: 1.6rem; }
}

/* 6. HOME ----------------------------------------------------------------------- */
.home {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(3rem, 9vh, 6rem);
  padding: var(--s-5) clamp(1rem, 5vw, 5rem);
}
.home__logo { width: min(100%, 58rem); margin: 0; }
.home__logo img { width: 100%; }

.contents ol { display: grid; grid-template-columns: auto auto; justify-content: center; column-gap: 1.4rem; row-gap: 0.35rem; }
.contents li { display: contents; }
.contents a { display: contents; text-decoration: none; color: var(--white); }
.contents .num {
  justify-self: end;
  font-size: 1.55rem;
  letter-spacing: 0.1em;
  font-variant-numeric: lining-nums;
  padding: 0.3rem 0;
}
.contents .lab {
  align-self: center;
  font-size: var(--t-micro);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
}
.contents a:hover .lab { color: var(--white); }
.contents a:hover .num { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.contents .solo { grid-column: 1 / -1; justify-self: center; display: inline-block; margin-top: 0.6rem; color: var(--ash); }
.contents .solo .num { justify-self: center; }
.contents .solo:hover { color: var(--white); }

@media (min-width: 48em) {
  .contents ol { display: flex; align-items: flex-start; justify-content: center; gap: clamp(1.6rem, 4.2vw, 4.2rem); }
  .contents li { display: block; }
  .contents a { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
  .contents .num { font-size: 1.7rem; padding: 0; }
  .contents .solo { margin-top: 0; }
}

/* 7. PAGE FURNITURE ------------------------------------------------------------ */
.page { width: 100%; max-width: 78rem; margin: 0 auto; padding: var(--s-4) var(--gutter) var(--s-6); }

/* Page head: the numeral sits in the margin like a folio number. */
.page-head { margin-bottom: var(--s-5); }
.page-head .folio {
  font-size: var(--t-lead);
  letter-spacing: 0.16em;
  color: var(--ash);
  font-variant-numeric: lining-nums;
  margin-bottom: 0.6rem;
}
.page-head .folio a { text-decoration: none; }
.page-head .byline { margin-top: 0.7rem; font-size: var(--t-lead); }
.page-head .when { margin-top: 0.35rem; font-style: italic; color: var(--ash); }

/* A band: label in the margin, matter beside it. Stacks on phones. */
.band { padding-top: var(--s-4); margin-top: var(--s-5); border-top: 1px solid var(--rule); }
.band:first-of-type, .band--plain { border-top: 0; padding-top: 0; }
.page-head + .band { margin-top: 0; }
.band__label { font-size: var(--t-lead); font-style: italic; color: var(--ash); margin-bottom: var(--s-3); line-height: 1.3; }
.band__label small { display: block; font-size: var(--t-small); margin-top: 0.3rem; }

@media (min-width: 62em) {
  .page-head, .band { display: grid; grid-template-columns: var(--margin-col) minmax(0, 1fr); column-gap: var(--s-4); }
  .page-head .folio { grid-column: 1; margin: 0; padding-top: 0.95rem; }
  .page-head > :not(.folio) { grid-column: 2; }
  .band__label { grid-column: 1; margin: 0; padding-top: 0.15rem; }
  .band__body { grid-column: 2; }
}

/* 8. TEXT DEVICES -------------------------------------------------------------- */

/* Rubrication: proper nouns only (people, venues, institutions). */
.rubric { color: var(--vermilion); }
a.rubric, a .rubric { text-decoration-color: currentColor; }
a:hover .rubric, a.rubric:hover { color: var(--vermilion); }

/* Drop cap: first letter of the first paragraph on each page. */
.dropcap::first-letter {
  float: left;
  font-size: 4.62em;
  line-height: 0.72;
  padding: 0.075em 0.07em 0 0;
  color: var(--white);
  font-weight: 400;
}
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
  .dropcap::first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
    margin-right: 0.16em;
    -webkit-initial-letter: 3;
    initial-letter: 3;
  }
}
/* For pages that hold a single line: a raised initial instead of a sunk one. */
.dropcap--raised::first-letter {
  float: none;
  font-size: 1.9em;
  line-height: 1;
  padding: 0;
  margin-right: 0.02em;
  -webkit-initial-letter: normal;
  initial-letter: normal;
}

.prose p { max-width: var(--measure); }
.prose h2 { margin: var(--s-4) 0 var(--s-2); }
.prose h3 { margin: var(--s-3) 0 var(--s-1); }
.lead { font-size: var(--t-lead); line-height: 1.45; }
.meta { font-style: italic; color: var(--ash); }
.note { font-size: var(--t-small); color: var(--ash); }
.catno { font-variant-numeric: lining-nums; letter-spacing: 0.12em; color: var(--ash); font-size: var(--t-small); white-space: nowrap; }

/* Definition rows: Date, Time, Venue and so on. */
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.3rem 1.5rem; max-width: var(--measure); }
.facts dt { font-style: italic; color: var(--ash); }
.facts dd { color: var(--paper); }

/* Numbered lines: track lists, programmes, contents. */
.lines { max-width: var(--measure); }
.lines li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 0 0.6rem; padding: 0.42rem 0; border-bottom: 1px solid var(--rule); }
.lines li:first-child { border-top: 1px solid var(--rule); }
.lines .n { color: var(--ash); font-variant-numeric: lining-nums tabular-nums; }
.lines .x { color: var(--ash); font-variant-numeric: lining-nums tabular-nums; font-size: var(--t-small); align-self: center; }
.lines .sub { display: block; font-style: italic; color: var(--ash); font-size: var(--t-small); }
.lines--plain li { grid-template-columns: minmax(0, 1fr) auto; }

.subhead { font-size: var(--t-body); font-style: italic; color: var(--ash); margin: var(--s-3) 0 var(--s-1); }
.subhead:first-child { margin-top: 0; }

.back { display: inline-block; margin-top: var(--s-5); font-style: italic; color: var(--ash); }

/* 9. BUTTONS AND FORMS ------------------------------------------------------- */
.btn {
  display: inline-block;
  background: none;
  border: 1px solid var(--ash);
  border-radius: 0;
  padding: 0.85em 1.5em 0.8em;
  font-family: var(--serif);
  font-size: var(--t-micro);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  color: var(--white);
  cursor: pointer;
  font-variant-numeric: lining-nums;
  -webkit-appearance: none;
  appearance: none;
}
.btn:hover { background: var(--paper); border-color: var(--paper); color: var(--black); }
.btn[aria-disabled="true"] { color: var(--ash); border-color: var(--rule); cursor: default; }
.btn[aria-disabled="true"]:hover { background: none; color: var(--ash); border-color: var(--rule); }

.field { display: block; }
.field__label { display: block; font-style: italic; color: var(--ash); margin-bottom: 0.4rem; }
.field__input {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ash);
  border-radius: 0;
  padding: 0.5rem 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder { color: #8f897e; font-style: italic; opacity: 1; }
.field__input:focus { outline: none; border-bottom-color: var(--white); }
.field__input:focus-visible { outline: 1px solid var(--white); outline-offset: 6px; }

/* Things that appear do so with the one fade. JavaScript adds .is-shown. */
.fades { opacity: 0; visibility: hidden; transition: opacity var(--fade) ease, visibility 0s linear var(--fade); }
.fades.is-shown { opacity: 1; visibility: visible; transition: opacity var(--fade) ease, visibility 0s; }
.response { margin-top: var(--s-2); font-style: italic; color: var(--paper); min-height: 1.5em; }

/* 10. PLACEHOLDERS ----------------------------------------------------------
   Dark tonal boxes that say what belongs there. To swap in a real picture,
   put an <img> inside the figure (there is one ready in a comment each time). */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  overflow: hidden;
}
.ph--1x1 { aspect-ratio: 1 / 1; }
.ph--4x5 { aspect-ratio: 4 / 5; }
.ph--3x2 { aspect-ratio: 3 / 2; }
.ph--a4 { aspect-ratio: 210 / 297; }
.ph__label { padding: 0.5rem; text-align: center; font-style: italic; font-size: var(--t-small); color: var(--ash); line-height: 1.3; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Embed slots (Bandcamp, Substack). */
.embed { max-width: var(--measure); }
.embed iframe { display: block; width: 100%; border: 0; }
.embed__ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  color: var(--ash); font-style: italic; font-size: var(--t-small); text-align: center; padding: 0.5rem;
}
.embed--bandcamp .embed__ph { height: 120px; }                    /* Bandcamp "standard" player */
.embed--substack { max-width: 480px; }
.embed--substack .embed__ph { height: 320px; }                    /* Substack subscribe embed */

/* 11. EVENTS ------------------------------------------------------------------ */
.event-list > li { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.event-list > li:first-child { padding-top: 0; }
.event-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.event-list .when { font-style: italic; color: var(--ash); }
.event-list h3 { font-size: var(--t-h2); margin: 0.2rem 0 0.3rem; }
.event-list h3 a { text-decoration: none; }
.event-list h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.event-list .where { margin-bottom: 0.6rem; }
.event-list .more { display: inline-block; margin-top: 0.7rem; font-style: italic; }
.event-list--past h3 { font-size: var(--t-h3); }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
@media (min-width: 48em) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; } }

.people-lines li { padding: 0.15rem 0; }
.people-lines .role { font-style: italic; color: var(--ash); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-3); }

/* 12. RELEASES ---------------------------------------------------------------- */
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-2); }
@media (min-width: 48em) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); } }
.shelf a { display: block; text-decoration: none; }
.shelf .ph { margin-bottom: 0.8rem; }
.shelf a:hover .ph { border-color: var(--ash); }
.shelf h3 { font-size: var(--t-lead); margin: 0.15rem 0 0.1rem; }
.shelf a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.shelf .by { display: block; line-height: 1.3; }
.shelf .when { display: block; font-style: italic; color: var(--ash); font-size: var(--t-small); margin-top: 0.15rem; }

.release-top { display: grid; gap: var(--s-4); }
.release-top .ph { max-width: 26rem; }
@media (min-width: 48em) {
  .release-top { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-5); align-items: start; }
}

.buy { margin-top: var(--s-3); border-top: 1px solid var(--rule); max-width: var(--measure); }
.buy li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.3rem var(--s-2); padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.buy .what { line-height: 1.3; }
.buy .what small { display: block; font-size: var(--t-small); font-style: italic; color: var(--ash); }
.buy .price { font-variant-numeric: lining-nums; color: var(--white); }
.buy .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 30em) {
  .buy li { grid-template-columns: minmax(0, 1fr) auto auto; }
  .buy .btn { grid-column: auto; }
}

.quotes { max-width: var(--measure); }
.quotes blockquote { padding: 0 0 var(--s-3); }
.quotes blockquote + blockquote { padding-top: var(--s-3); border-top: 1px solid var(--rule); }
.quotes blockquote:last-child { padding-bottom: 0; }
.quotes p { font-size: var(--t-lead); font-style: italic; line-height: 1.4; }
.quotes footer { margin-top: 0.5rem; font-size: var(--t-small); }

/* 13. SCORES ------------------------------------------------------------------ */
.catalogue > li { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: 0.2rem var(--s-2); padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.catalogue > li:first-child { border-top: 1px solid var(--rule); }
.catalogue .catno { padding-top: 0.42rem; }
.catalogue h2 { font-size: var(--t-h3); }
.catalogue h2 a { text-decoration: none; }
.catalogue h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.catalogue .by { margin-top: 0.15rem; }
.catalogue .for { font-style: italic; color: var(--ash); font-size: var(--t-small); margin-top: 0.15rem; }
.catalogue .entry, .catalogue .trade { grid-column: 2; }
.catalogue .trade { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem var(--s-3); margin-top: 0.7rem; }
.catalogue .price { font-variant-numeric: lining-nums; color: var(--white); }
@media (min-width: 48em) {
  .catalogue > li { grid-template-columns: 5rem minmax(0, 1fr) auto; align-items: start; column-gap: var(--s-3); }
  .catalogue .trade { grid-column: 3; margin-top: 0.25rem; justify-content: flex-end; }
}

.previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; max-width: 40rem; }
@media (min-width: 48em) { .previews { gap: 1rem; } }

/* 14. REVIEW ------------------------------------------------------------------ */
.posts { display: grid; gap: 0; }
.post { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.post:first-child { border-top: 1px solid var(--rule); }
.post time { font-style: italic; color: var(--ash); }
.post h2 { font-size: var(--t-h2); margin: 0.2rem 0 0.5rem; }
.post h2 a { text-decoration: none; }
.post h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.post .more { display: inline-block; margin-top: 0.7rem; font-style: italic; }

/* 15. WHO WE ARE ---------------------------------------------------------------- */
.person { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
.person:first-child { padding-top: 0; }
.person:last-child { border-bottom: 0; padding-bottom: 0; }
.person .ph { max-width: 13rem; }
.person h2 { font-size: var(--t-h2); }
.person h2 .rubric { color: var(--vermilion); }
.person .role { font-style: italic; color: var(--ash); margin: 0.2rem 0 0.8rem; }
@media (min-width: 36em) {
  .person { grid-template-columns: 11rem minmax(0, 1fr); gap: var(--s-4); }
  .person .ph { max-width: none; }
}

/* 16. QUIET PAGES (VI, 404) ------------------------------------------------------ */
.quiet { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--s-5) var(--gutter) var(--s-6); min-height: 62vh; }
.quiet__line { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem); color: var(--white); line-height: 1.25; max-width: 22em; }
.quiet__after { margin-top: var(--s-4); font-style: italic; color: var(--ash); }
.patron { margin-top: var(--s-5); width: min(100%, 19rem); text-align: left; position: relative; }
.patron .btn { margin-top: var(--s-3); width: 100%; }
.patron .response { position: absolute; left: 0; right: 0; top: 100%; text-align: center; }
.patron__form { transition: opacity var(--fade) ease; }
.patron.is-answering .patron__form { opacity: 0.25; }

/* 17. FOOTER ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--rule); padding: var(--s-4) var(--gutter) var(--s-4); font-size: var(--t-small); color: var(--ash); }
.site-footer__in { max-width: 78rem; margin: 0 auto; display: grid; gap: var(--s-4); }
.site-footer h2 { font-size: var(--t-small); font-style: italic; color: var(--ash); margin-bottom: 0.5rem; }
.site-footer p { max-width: 24rem; }
.site-footer a { color: var(--paper); }
.signup { max-width: 22rem; }
.signup__row { display: flex; align-items: flex-end; gap: var(--s-2); }
.signup__row .field { flex: 1 1 auto; }
.signup .btn { flex: 0 0 auto; padding: 0.7em 1.1em 0.65em; }
.site-footer .response { margin-top: 0.6rem; }
.site-footer__end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--rule); font-variant-numeric: lining-nums; }
@media (min-width: 48em) {
  .site-footer__in { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 2fr); }
  .site-footer__end { grid-column: 1 / -1; }
}

/* 18. CART DRAWER ---------------------------------------------------------------
   Built by js/site.js. Appears and leaves with the one fade; it does not slide. */
.cart-veil { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.78); z-index: 90; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(100%, 27rem);
  z-index: 100;
  display: flex; flex-direction: column;
  background: var(--black);
  border-left: 1px solid var(--rule);
  padding: var(--s-3) clamp(1.4rem, 5vw, 2.2rem) var(--s-3);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cart__head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: var(--s-3); }
.cart__head h2 { font-size: var(--t-h2); }
.cart__close { background: none; border: 0; padding: 0.4rem 0; cursor: pointer; font-style: italic; color: var(--ash); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.cart__close:hover { color: var(--white); }
.cart__empty { color: var(--ash); font-style: italic; padding: var(--s-3) 0; border-top: 1px solid var(--rule); }
.cart__items { border-top: 1px solid var(--rule); }
.cart__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem var(--s-2); padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); }
.cart__title { color: var(--white); line-height: 1.25; }
.cart__kind { grid-column: 1; font-size: var(--t-small); font-style: italic; color: var(--ash); }
.cart__line { font-variant-numeric: lining-nums tabular-nums; color: var(--white); text-align: right; }
.cart__controls { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 0.4rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); }
.qty button { background: none; border: 0; width: 2.2rem; height: 2.2rem; cursor: pointer; color: var(--paper); font-size: 1.1rem; line-height: 1; }
.qty button:hover { background: var(--paper); color: var(--black); }
.qty output { min-width: 2rem; text-align: center; font-variant-numeric: lining-nums tabular-nums; }
.cart__remove { background: none; border: 0; padding: 0.4rem 0; cursor: pointer; font-size: var(--t-small); font-style: italic; color: var(--ash); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.cart__remove:hover { color: var(--white); }
.cart__foot { margin-top: auto; padding-top: var(--s-3); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--t-lead); color: var(--white); font-variant-numeric: lining-nums tabular-nums; }
.cart__note { font-size: var(--t-small); color: var(--ash); font-style: italic; margin: 0.5rem 0 var(--s-3); }
.cart__checkout { width: 100%; text-align: center; }

@media print {
  body { animation: none; }
  .site-header, .site-footer, .cart, .cart-veil { display: none; }
}

/* Late additions */
[hidden] { display: none !important; }
.page-head .intro { margin-top: var(--s-4); }
.page-head .catno { display: block; margin-bottom: 0.5rem; }
.site-footer .site-footer__end { max-width: none; }

/* ------------------------------------------------------------------
   Second version additions
   ------------------------------------------------------------------ */
/* Home: (VI) carries its label like the others */
.contents .solo { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.contents .solo .lab { color: var(--ash); }
@media (min-width: 48em) { .contents .solo { gap: 0.7rem; } }

/* Real images inside the placeholder frame */
.ph.has-img { background: var(--plate); }

/* Event list: subtitle after the title */
.event-list h3 .sub { display: block; font-size: var(--t-lead); font-style: italic; color: var(--ash); margin-top: 0.15rem; }

/* Programme notes */
.notes h3 { font-size: var(--t-h3); margin: var(--s-4) 0 var(--s-1); }
.notes h3:first-child { margin-top: 0; }
.notes h3 .meta { font-size: var(--t-body); margin-left: 0.4rem; }

/* People without a portrait yet */
@media (min-width: 36em) { .person--noimg { grid-template-columns: minmax(0, 1fr); } }

/* Score page without a title-page image yet */
@media (min-width: 48em) { .release-top--solo { grid-template-columns: minmax(0, 1fr); } }
.facts--spaced { margin-top: var(--s-3); }

/* Substack post cards and Bandcamp link */
.post-embeds { display: grid; gap: var(--s-4); max-width: 38rem; }
.embed--post, .post-embed { max-width: 38rem; }
.substack-post-embed { color: var(--paper); }
.substack-post-embed iframe { border: 0; width: 100%; }

/* Review editions, each with its Cistercian numeral */
.editions { display: grid; gap: var(--s-3); }
.edition { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: var(--s-3); align-items: start; padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule); }
.edition:last-child { border-bottom: 0; }
.edition__mark { width: 3.2rem; height: auto; }
.edition h3 { font-size: var(--t-h3); }
.edition__link { margin-top: 0.6rem; }

/* Footer mailing link */
.signup-link { margin-top: 0.9rem; }
.signup-link .btn { color: var(--white); }

/* Photographs: kept at their own shape, in columns */
.photos { columns: 1; column-gap: 0.9rem; }
@media (min-width: 36em) { .photos { columns: 2; } }
.photo { break-inside: avoid; margin: 0 0 0.9rem; }
.photo img { width: 100%; height: auto; display: block; }
.ph--auto { aspect-ratio: auto; background: transparent; border: 0; }
.ph--auto img { position: static; width: 100%; height: auto; }

/* Events list with a photograph */
.event-list > li.has-thumb { display: grid; gap: var(--s-2); }
.event-list .thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--plate); max-width: 22rem; }
.event-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 48em) {
  .event-list > li.has-thumb { grid-template-columns: 13rem minmax(0, 1fr); gap: var(--s-3); align-items: start; }
}

.embed--bandcamp iframe { display: block; }
