/* The Lilacs Recital Series
   Tokens lifted from the existing past-recitals page. */

:root {
  --paper:      #FAF8FB;
  --paper-soft: #F3EFF5;
  --ink:        #241C29;
  --lilac:      #7B2A8C;
  --lilac-soft: #B688C4;
  --rule:       #E4DCE9;
  --muted:      #6E6377;

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body:    "Spectral", Georgia, "Times New Roman", serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 5vw, 76px);
  --measure: 660px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--lilac); text-decoration: none; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }

hr { height: 1px; background: var(--rule); border: 0; margin: 0; }

.skip {
  position: absolute; left: -9999px;
  background: var(--lilac); color: var(--paper); padding: 12px 20px;
}
.skip:focus { left: 12px; top: 12px; z-index: 10; }

.disp {
  font-family: var(--display); font-weight: 300;
  letter-spacing: -.015em; line-height: 1.04; margin: 0;
}
.lab {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}
.muted { color: var(--muted); }

/* ---- masthead ---- */
.bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px 30px; flex-wrap: wrap;
  padding: clamp(22px, 3vw, 34px) var(--gutter) 0;
  max-width: 1440px; margin: 0 auto;
}
.bar .mark { display: flex; align-items: center; gap: 18px; color: var(--ink); }
.bar .mark img { width: 88px; height: 88px; }
.bar .mark .wordmark {
  font-family: var(--display); font-weight: 300; letter-spacing: -.01em;
  font-size: clamp(20px, 2.7vw, 36px); line-height: 1.06; color: var(--ink);
  white-space: nowrap;
}
.bar nav { display: flex; gap: clamp(16px, 2.4vw, 30px); flex-wrap: wrap; }
/* the label style is 10.5px, which is fine for a caption and too small for a
   control: it fell under the 24px minimum touch target and reads poorly at arm's
   length. Bigger, with the tracking eased so it does not grow wider. */
.bar nav a {
  color: var(--muted); font-size: 13.5px; letter-spacing: .15em;
  padding: 4px 0; display: inline-block;
}
.bar nav a[aria-current="page"] { color: var(--ink); }

main { max-width: 1440px; margin: 0 auto; padding-bottom: clamp(56px, 8vw, 96px); }

/* ---- homepage ---- */
.hero { margin: clamp(34px, 5vw, 62px) var(--gutter) 0; }
.hero img { width: 100%; max-height: 45vh; object-fit: cover; }

.letter {
  max-width: var(--measure); margin: 0 auto;
  padding: clamp(38px, 5vw, 60px) var(--gutter) 0;
}
.letter h1 { font-size: clamp(40px, 7vw, 68px); margin: 10px 0 8px; }
.letter__date {
  font-size: clamp(21px, 3vw, 30px); font-style: italic;
  color: var(--lilac); margin-bottom: 36px;
}
.letter p { margin: 0 0 1.15em; }
.letter__where { margin-top: 22px !important; font-size: 16px; line-height: 1.6; }
.sign { font-size: 26px; font-style: italic; margin: 34px 0 !important; }

.block { margin: 42px 0; }
.block__head { padding: 20px 0 22px; }

.prog { display: flex; flex-direction: column; gap: 17px; }
.prog__row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; }
.prog__who { padding-top: 5px; color: var(--ink); }
.prog__what { font-size: 17px; line-height: 1.5; }

.evening { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px 20px; }
.evening__when { color: var(--ink); padding-top: 4px; }
.evening__what { font-size: 16px; line-height: 1.5; }

.cta {
  display: inline-block; background: var(--lilac); color: var(--paper);
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; padding: 19px 44px;
}
.cta:hover { background: var(--ink); color: var(--paper); }
.cta--quiet { background: transparent; color: var(--lilac); border: 1px solid var(--rule); }
.cta--quiet:hover { background: var(--lilac); color: var(--paper); border-color: var(--lilac); }
.cta__note {
  margin-top: 15px !important; text-transform: none;
  letter-spacing: .04em; font-size: 12.5px;
}

/* Ticket Tailor's inline checkout, kept inside the letter's measure. */
.tt { margin: 18px 0 0; scroll-margin-top: 24px; }
.tt iframe { display: block; width: 100% !important; border: 0; }
.tt .noscript, .tt noscript { display: block; }

.strip { padding: clamp(56px, 8vw, 92px) var(--gutter) 0; }
.strip__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding: 24px 0 28px;
}
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.trio img { width: 100%; height: 232px; object-fit: cover; }
.trio figcaption { margin-top: 12px; }
.trio figure { margin: 0; }

/* ---- page heads ---- */
.pagehead { padding: clamp(46px, 7vw, 76px) var(--gutter) 0; max-width: 980px; }
.pagehead h1 { font-size: clamp(42px, 6.6vw, 74px); }
.pagehead__alt {
  font-size: clamp(42px, 6.6vw, 74px); font-style: italic;
  color: var(--lilac); margin: 0 0 30px;
}
.pagehead__standfirst { font-size: 18px; line-height: 1.7; max-width: 56ch; }

/* ---- archive ---- */
.counts { padding: clamp(30px, 5vw, 50px) var(--gutter) 0; }
.counts dl {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px; max-width: 720px; margin: 0; padding: 28px 0 32px;
}
.counts dt { font-size: 46px; color: var(--lilac); line-height: 1; }
.counts dd { margin: 6px 0 0; }

.season { padding: clamp(34px, 5vw, 48px) var(--gutter) 0; }
.season__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin: 0 0 30px; font-weight: 300;
}
.season__head .disp { font-size: 32px; }

.entry {
  display: grid; grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  padding: 30px 0; border-bottom: 1px solid var(--rule);
  scroll-margin-top: 24px;
}
/* the date and pianist stay with you while the program scrolls past */
.entry__who { position: sticky; top: 20px; }
.entry__no { color: var(--lilac-soft); letter-spacing: .22em; }
.entry__date { color: var(--ink); margin-top: 7px; }
.entry__flag { color: var(--lilac); margin-top: 10px; }
.entry__artist {
  font-size: 30px; margin-top: 12px; text-wrap: balance; hyphens: none;
}
.entry__note {
  font-size: 16px; font-style: italic; color: var(--muted);
  line-height: 1.6; margin: 0 0 16px; max-width: 62ch;
}
.entry__meta {
  margin-top: 14px; text-transform: none;
  letter-spacing: .05em; color: var(--lilac-soft);
}
.works { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.works li { font-size: 15.5px; line-height: 1.62; }

.entry--upcoming { background: var(--paper-soft); }
.entry--upcoming .entry__no { color: var(--lilac); }
.entry--celebration { background: var(--paper-soft); }
.entry--cancelled { opacity: .55; }
.entry--cancelled .entry__artist { text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---- photographs ---- */
.gal { padding: clamp(30px, 4.4vw, 50px) 0 0; }
.gal__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; padding: 0 var(--gutter) 16px;
  border-bottom: 1px solid var(--rule); margin: 0 var(--gutter);
  padding-left: 0; padding-right: 0;
}
.gal__name { font-size: clamp(26px, 3.4vw, 40px); }
.gal__n { white-space: nowrap; }

/* one band per group: scrolls sideways, snaps, and never widens the page */
.band {
  list-style: none; margin: 0; padding: 22px var(--gutter) 6px;
  display: flex; gap: clamp(12px, 1.6vw, 20px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: thin;
  /* snapping ignores the container's padding, so the first plate would sit flush
     against the edge without this */
  scroll-padding-left: var(--gutter);
}
.shot { flex: 0 0 auto; scroll-snap-align: start; }
.shot__b {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 0; -webkit-tap-highlight-color: transparent;
}
.shot__b img {
  height: clamp(150px, 21vw, 260px); width: auto; max-width: none;
  object-fit: cover; transition: opacity .2s ease;
}
.shot__b:hover img { opacity: .82; }
.shot__b:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }

/* the viewer */
html.lb-on, html.lb-on body { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 40px);
}
.lb[hidden] { display: none; }
.lb__scrim { position: absolute; inset: 0; background: #17121B; opacity: .96; }
.lb__fig {
  position: relative; margin: 0; max-width: min(1200px, 92vw);
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.lb__img {
  max-height: 78vh; max-width: 100%; width: auto; object-fit: contain;
}
.lb__cap {
  display: flex; flex-direction: column; gap: 6px;
  text-align: center; color: #F2EDF5; font-size: 17px;
}
.lb__meta { color: #A295AC; }
.lb__x, .lb__step {
  position: absolute; z-index: 2; border: 0; background: none; cursor: pointer;
  color: #F2EDF5; font-family: var(--display); line-height: 1;
}
.lb__x { top: clamp(8px, 2vw, 22px); right: clamp(8px, 2vw, 26px); font-size: 40px; padding: 6px 12px; }
.lb__step { top: 50%; transform: translateY(-50%); font-size: 58px; padding: 10px 18px; }
.lb__prev { left: max(4px, 1vw); }
.lb__next { right: max(4px, 1vw); }
.lb__x:hover, .lb__step:hover { color: var(--lilac-soft); }
.lb__x:focus-visible, .lb__step:focus-visible { outline: 2px solid var(--lilac-soft); outline-offset: 2px; }

/* ---- anniversaries ---- */
.letter--flush { max-width: var(--measure); margin: 0; padding: 0 var(--gutter); }
.letter--flush p { font-size: 18px; }

.an { padding: clamp(38px, 5.5vw, 66px) 0 0; }
.an__head { padding: 0 var(--gutter); }
.an__name { font-size: clamp(34px, 5.2vw, 60px); margin: 6px 0 0; }
.an__toast {
  font-size: clamp(22px, 2.8vw, 32px); font-style: italic;
  color: var(--lilac); margin: 4px 0 0;
}
.an__body {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px); padding: 22px var(--gutter) 4px;
}
.an__text p { margin: 0 0 14px; max-width: 60ch; }
.an__artists { font-family: var(--display); font-size: 21px; line-height: 1.5; margin: 8px 0 0; }
.an__quote {
  margin: 20px 0 0; padding-left: 20px; border-left: 2px solid var(--lilac-soft);
  font-family: var(--display); font-size: 21px; line-height: 1.55; color: var(--ink);
}
.an__quote p { margin: 0 0 10px; }
.an__by { text-transform: none; letter-spacing: .05em; }

.an__cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 60px); padding: 14px var(--gutter) 0;
}
.an__works { list-style: none; margin: 0; padding: 4px 0 0; }
.an__works li { padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }

.menu { padding: 4px 0 0; }
.menu__row { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding: 7px 0; }
.menu__k { padding-top: 4px; }
.menu__v { margin: 0; font-size: 16px; line-height: 1.5; }
.menu__cook { padding: 14px 0 0; text-transform: none; letter-spacing: .05em; }

/* this is a real invitation to another page, not a footnote */
/* the anniversaries, called out where the record of the evenings lives */
.anniv-note {
  padding: clamp(24px, 3.5vw, 40px) var(--gutter) 0;
  display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px;
  max-width: 980px; align-items: baseline;
}
.anniv-note__lab { padding-top: 6px; }
.anniv-note__text {
  margin: 0; font-family: var(--display); font-size: 21px; line-height: 1.5;
  max-width: 60ch;
}
.entry__more { padding: 10px 0 0; text-transform: none; letter-spacing: .05em; }
.an__link { padding: 10px var(--gutter) 0; text-transform: none; letter-spacing: .05em; }

.who__teaser { font-size: 18px; line-height: 1.6; margin: 4px 0 0; max-width: 60ch; }
/* sits under the read-more toggle, so it needs its own breathing room */
.who__listen { padding-top: 10px; }

/* ---- the recital after next: full information, lower weight ---- */
.then {
  max-width: var(--measure); margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) var(--gutter) 0;
}
.then__when { padding-top: 22px; }
.then__who { font-size: clamp(30px, 4.4vw, 46px); margin: 10px 0 18px; }
.then__note { font-size: 16px; font-style: italic; color: var(--muted); margin: 0 0 22px; }
.then__go { margin-top: 26px; }
.then__sold { margin-top: 26px; color: var(--lilac); }

/* ---- the rest of the announced season ---- */
.ahead { padding: clamp(34px, 4.5vw, 54px) var(--gutter) 0; max-width: var(--measure); margin: 0 auto; }
.ahead__list { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.ahead__row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; align-items: baseline; }
.ahead__when { padding-top: 4px; }
.ahead__who { margin: 0; font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); }

/* ---- the mailing list ---- */
.join { padding: clamp(46px, 7vw, 78px) var(--gutter) 0; }
.join__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
  max-width: 1000px; margin: 0 auto; padding-top: clamp(26px, 4vw, 44px);
}
.join__head { font-size: clamp(30px, 4vw, 46px); }
.join__intro { font-size: 18px; line-height: 1.6; max-width: 34ch; margin: 14px 0 0; }
.join__form { display: flex; flex-direction: column; gap: 16px; }
.join__row { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.join__row label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted);
}
.join__req { color: var(--lilac); }
.join__row input {
  font-family: var(--body); font-weight: 300; font-size: 17px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: 8px 2px; width: 100%;
}
.join__row input:focus {
  outline: none; border-bottom-color: var(--lilac); box-shadow: 0 1px 0 0 var(--lilac);
}
.join__row--go { margin-top: 8px; }
.join__row--go .cta { width: 100%; }
.join__done { max-width: 40ch; }
.join__done:focus { outline: none; }

/* ---- the poem the series is named after ---- */
.poem { margin: 34px calc(-1 * var(--gutter)) 30px; }
/* one grid of line pairs: a row is as tall as its taller half, so the Russian and
   the English stay level even when a line wraps */
.poem__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 44px); align-items: baseline;
  padding: 6px 0 22px;
}
.poem__grid p { margin: 0; font-family: var(--display); line-height: 1.62; }
.poem__gap { grid-column: 1 / -1; height: 1.2em; }
.poem__ru { color: var(--ink); font-size: 19px; }
/* a touch smaller, so the English keeps pace with the Russian line for line */
.poem__en { color: var(--muted); font-style: italic; font-size: 18px; }
.poem__by { padding-bottom: 20px; text-transform: none; letter-spacing: .05em; }

/* ---- patrons ---- */
.patrons { list-style: none; margin: 0; padding: 22px 0; display: flex; flex-direction: column; gap: 14px; }
.patrons__name { font-size: 26px; }

/* ---- colophon ---- */
.colophon {
  max-width: 1440px; margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) var(--gutter) 0;
  border-top: 1px solid var(--rule); margin-top: clamp(48px, 7vw, 84px);
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.colophon__text {
  text-transform: none; letter-spacing: .04em;
  /* wide enough for the whole line to sit on two, not five */
  line-height: 1.85; font-size: 12.5px; max-width: 72ch;
}
.colophon__links { display: flex; flex-direction: column; gap: 8px; }

/* ---- narrow ---- */
@media (max-width: 860px) {
  .trio { grid-template-columns: minmax(0, 1fr); }
  .trio img { height: auto; }
  .join__inner { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ahead__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .poem { margin-inline: 0; }
  .poem__grid { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .poem__gap { height: .9em; }
  .an__body, .an__cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .menu__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .anniv-note { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lb__step { font-size: 44px; padding: 8px 10px; }
  .lb__img { max-height: 68vh; }
  .bar .mark img { width: 68px; height: 68px; }
  .counts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prog__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .entry { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .entry__who { position: static; }          /* nothing to stick to on a phone */
  .entry__artist { font-size: 27px; margin-top: 8px; }
  .patrons__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .colophon { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.prog__row--whole { grid-template-columns: minmax(0, 1fr); }

/* a recital announced before its program is fixed */
.prog__tba { margin: 0; font-style: italic; color: var(--muted); }

/* ---- an archive entry, opened in place ---- */
.open { margin-top: 18px; }
.open__toggle {
  cursor: pointer; color: var(--lilac); list-style: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 0;
}
.open__toggle::-webkit-details-marker { display: none; }
.open__toggle::before { content: "+"; font-size: 14px; line-height: 1; }
.open[open] .open__toggle::before { content: "–"; }
.open__toggle:hover { color: var(--ink); }
.open__inner { padding: 18px 0 4px; max-width: 62ch; }
.open__prose p { font-size: 16px; line-height: 1.74; margin: 0 0 1em; }
.open__head { padding-top: 10px; }
.open__by { margin-top: -6px; text-transform: none; letter-spacing: .05em; color: var(--lilac-soft); }

.epigraph { margin: 0 0 20px; padding-left: 18px; border-left: 2px solid var(--lilac-soft); }
.epigraph p { font-style: italic; font-size: 16.5px; line-height: 1.7; margin: 0 0 8px; }
.epigraph cite { font-style: normal; color: var(--lilac-soft); }
.open__support { color: var(--lilac); margin-bottom: 16px; }

.open__suitenote { font-size: 15px; font-style: italic; color: var(--muted); margin: 0 0 14px; }
.works--suite { padding-left: 0; }
.works--suite li { color: var(--ink); }

.entry__face {
  width: 150px; height: 150px; object-fit: cover; margin-bottom: 14px;
  filter: saturate(.92);
}
.open__watch { text-transform: none; letter-spacing: .06em; font-size: 12px; padding-top: 6px; }
.open__watch a { margin-right: 12px; }
.open__inner--bare { padding: 0 0 4px; }
@media (max-width: 860px) { .entry__face { width: 110px; height: 110px; } }

/* ---- for pianists ---- */
.facts-list { display: flex; flex-direction: column; gap: 22px; }
.fact { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; }
.fact__k { color: var(--ink); padding-top: 4px; }
.fact__v { margin: 0; font-size: 16.5px; line-height: 1.65; }
.roll {
  list-style: none; margin: 20px 0 24px; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px;
}
.roll li { font-family: var(--display); font-size: 21px; line-height: 1.3; }
@media (max-width: 860px) {
  .fact { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .roll { grid-template-columns: minmax(0, 1fr); }
}

.roll__note { text-transform: none; letter-spacing: .05em; font-size: 13px; margin-top: 18px; }

.sold {
  color: var(--lilac); border: 1px solid var(--rule); display: inline-block;
  padding: 9px 16px; margin-bottom: 18px !important; background: var(--paper-soft);
}

/* ---- the homepage, in the deeper Lilacs ground ---- */
body.dusk {
  --paper:      #241C29;   /* the ink becomes the ground */
  --paper-soft: #2E2436;
  --ink:        #F2EDF5;   /* and the paper becomes the type */
  --lilac:      #C79BD4;   /* lifted so it reads on a dark field */
  --lilac-soft: #8E6E9C;
  --rule:       #443A4D;
  --muted:      #A295AC;
}
body.dusk .cta { background: var(--lilac); color: #241C29; }
body.dusk .cta:hover { background: var(--ink); color: #241C29; }
body.dusk .sold { background: var(--paper-soft); }
body.dusk .hero img { filter: saturate(.95) brightness(.97); }
