/* Alan and Valerie Brown — replica stylesheet
   Design tokens match the original site: accent #bd2f04, Righteous headings,
   Josefin Sans body, 56px section rhythm. */

@font-face {
  font-family: "Righteous";
  src: url("../fonts/righteous-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  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;
}

:root {
  --brand: #bd2f04;
  --brand-dark: #962504;
  --ink: #1b1b1b;
  --ink-soft: #474747;
  --muted: #a9a9a9;          /* large text on dark only (7.7:1 on #161616) */
  --muted-ink: #6f6f6f;      /* small text on light (5.02:1 on #fff) */
  --paper: #ffffff;
  --paper-alt: #f6f6f6;
  --dark: #161616;
  --on-dark: #f7f7f7;
  --line: #e6e6e6;

  /* Everything a theme has to answer for. Each has a dark value in the block
     below; nothing outside that block should carry a literal colour except the
     black behind photos and video, which is black in both themes. */
  --on-brand: #ffffff;       /* text on a filled brand button */
  --brand-text: #bd2f04;     /* the brand as text: lifted in dark mode so a red
                                stays readable, while fills stay the true red */
  --brand-on-dark: #f05252;  /* brand as text on a surface that is dark in BOTH
                                themes (the footer): #bd2f04 is 3.08:1 on black */
  --field-bg: #ffffff;       /* editor inputs, one step off the card they sit on */
  --hover-tint: #fbfafa;     /* row hover wash */
  --tint: #fdece6;           /* tag background */
  --danger: #c1121f;         /* invalid field outline and message */
  --danger-ink: #8d1119;     /* armed delete label */
  --danger-tint: #fdf0ee;    /* armed delete background */
  --success: #1f7a45;        /* saved message rule */

  /* The media query follows the browser, with or without JavaScript. */
  color-scheme: light;

  /* Type and space scale. One ratio, fluid, so a phone and a laptop each get a
     size that suits them instead of one fixed compromise. The file used to carry
     14 unrelated sizes between 11 and 39px. */
  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);   /* 13 -> 14 */
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);       /* 16 -> 17 */
  --step-1: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);        /* 17 -> 20 */
  --step-2: clamp(1.25rem, 1.1rem + 0.65vw, 1.625rem);      /* 20 -> 26 */
  --step-3: clamp(1.5rem, 1.22rem + 1.15vw, 2.125rem);      /* 24 -> 34 */
  --step-4: clamp(1.875rem, 1.4rem + 2vw, 3rem);            /* 30 -> 48 */

  --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Righteous", serif, system-ui;
  --stage-wash: rgba(189, 47, 4, 0.045);
  --stage-line: rgba(92, 54, 36, 0.045);

  --header-h: 148px;
  --section-y: clamp(40px, 6vw, 88px);
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 0;
  --focus: 2px solid var(--brand-text);

  /* Motion: one easing pair and three durations, so nothing drifts. Every
     transition below uses these, and the reduce block at the end of the file
     switches them all off. */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.28, 0.64, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 520ms;
  --shadow-card: 0 20px 44px -28px rgba(20, 20, 20, 0.5);
  --shadow-btn: 0 14px 26px -16px rgba(189, 47, 4, 0.85);
}

/* ---------- dark theme ---------- */

/* Follow the browser setting. No saved preference or script can override it. */
@media (prefers-color-scheme: dark) {
:root {

  color-scheme: dark;
  --stage-wash: rgba(189, 47, 4, 0.10);
  --stage-line: rgba(255, 230, 204, 0.035);

  --brand: #bd2f04;
  --brand-dark: #d4371f;
  --brand-text: #f05252;
  --on-brand: #ffffff;

  --ink: #f2f2f2;
  --ink-soft: #cfcfcf;
  --muted: #a9a9a9;
  --muted-ink: #a6a6a6;
  --paper: #161616;
  --paper-alt: #1f1f1f;
  --dark: #0e0e0e;
  --on-dark: #f7f7f7;
  --line: #333333;

  --hover-tint: #1f1f1f;
  --field-bg: #101010;
  --tint: #2b1c15;
  --danger: #ff9b90;
  --danger-ink: #ffb4ab;
  --danger-tint: #3a1a17;
  --success: #6ee7a8;

  --shadow-card: 0 20px 44px -28px rgba(0, 0, 0, 0.8);
  --shadow-btn: 0 14px 26px -16px rgba(232, 92, 42, 0.6);
}

}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--paper);
  color: var(--ink-soft);
  font: 400 var(--step-0)/1.6 var(--font-body);
  -webkit-text-size-adjust: 100%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--brand-text);
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  transform: translateY(-160%);
}

.skip-link:focus-visible {
  transform: none;
}

/* ---------- layout ---------- */

.container {
  width: min(1120px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.container--narrow {
  width: min(760px, 100% - 2 * var(--gutter));
}

.section {
  padding-block: var(--section-y);
}

.section__title {
  margin: 0 0 24px;
  font: 400 var(--step-4)/1.15 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-text);
  text-align: center;
}

.section__subtitle {
  margin: 0 0 40px;
  text-align: center;
}

/* Section masthead: title on the left, subtitle on the right, hairline under.
   Nine centred titles in a row was the flattest thing about the layout. The hero
   and the contact block stay centred; the content sections get a spine. */
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 4px 32px;
  margin: 0 0 40px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.section__head > .section__title {
  margin: 0;
  text-align: left;
}

.section__head > .section__subtitle {
  margin: 0 0 3px;
  font-size: var(--step--1);
  color: var(--muted-ink);
  text-align: right;
}

@media (max-width: 720px) {
  .section__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .section__head > .section__subtitle {
    text-align: left;
  }
}

/* A date written as a date: the day as a numeral, the month above the weekday
   beside it. It fills the left column of an event row, which used to be 260px of
   air around a slashed string. */
.date-block {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0 10px;
  color: var(--brand-text);
}

.date-block__day {
  font: 400 var(--step-3)/0.9 var(--font-display);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.date-block__rest {
  display: grid;
  gap: 3px;
  font-size: var(--step--1);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

/* Numbers in a column line up only with tabular figures: "7:00pm – 10:00pm"
   over "6:00pm – 9:00pm" jitters otherwise, and so does a date list. */
.event__time,
.next-show__text,
.show__venue,
.admin__row-title,
.admin__row-sub,
.date-block {
  font-variant-numeric: tabular-nums;
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-block;
  padding: 16px 32px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--on-brand);
  font: 600 14px/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px -12px rgba(189, 47, 4, 0.9);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.65;
  transform: none;
  box-shadow: none;
  cursor: progress;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-text);
  font: 600 16px/1.5 var(--font-body);
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  /* The env() parts clear a notch in landscape and are 0 everywhere else; they
     have to be added here rather than in a padding shorthand of their own, or
     the 48px below simply overrides them. */
  padding-inline: calc(48px + env(safe-area-inset-left)) calc(48px + env(safe-area-inset-right));
  background: var(--paper);
  transition: box-shadow var(--dur) var(--ease-out);
}

/* site.js adds this once the page scrolls, so the header lifts off the content. */
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line), 0 14px 30px -24px rgba(20, 20, 20, 0.55);
}

.site-logo {
  display: block;
  justify-self: center;
}

/* The wordmark is a pure-black PNG. Inverting it gives the white one exactly, so
   the browser setting controls both the page and the wordmark. */
.site-logo img {
  width: 67px;
  height: auto;
}

@media (prefers-color-scheme: dark) {
  /* Some browser extensions add a normal inline filter to every image. */
  .site-logo img { filter: invert(1) !important; }
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav--end {
  justify-content: flex-end;
}

.site-nav__mobile {
  display: none;
}

.site-nav a {
  position: relative;
  white-space: nowrap;
  color: var(--ink);
  font: 600 16px/1.5 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 4px;
}

/* The underline grows from the left instead of switching on, and the current
   page keeps it visible. */
.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  justify-self: start;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span + span {
  margin-top: 6px;
}

/* Navigation without JavaScript. Shown on small screens only, because site.js
   adds .js to <body> and hides it. The header's own menu needs JavaScript to
   open, so on a phone the toggle and this rail are never both visible. */
.nav-fallback {
  display: none;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 688px;
  background: var(--dark);
  /* The photo drifts a few pixels with the scroll (site.js), so the cell has to
     clip it rather than let a corner lift off the edge. */
  overflow: hidden;
}

.hero__media picture {
  display: contents;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  animation: hero-settle 1100ms var(--ease-out) both;
}

/* The photo settles from a slight zoom, then the panel copy rises in step. */
@keyframes hero-settle {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero__panel > * {
  animation: rise-in var(--dur-slow) var(--ease-out) both;
}

.hero__panel > *:nth-child(1) { animation-delay: 120ms; }
.hero__panel > *:nth-child(2) { animation-delay: 190ms; }
.hero__panel > *:nth-child(3) { animation-delay: 260ms; }
.hero__panel > *:nth-child(4) { animation-delay: 330ms; }
.hero__panel > *:nth-child(5) { animation-delay: 400ms; }
.hero__panel > *:nth-child(6) { animation-delay: 470ms; }

.hero__panel {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 56px 48px;
  text-align: center;
}

.hero__title {
  max-width: 460px;
  margin: 0 0 8px;
  font: 400 var(--step-4)/1.15 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.hero__lead,
.hero__phones {
  margin: 0;
  font-size: 22px;
  color: var(--muted);
}

.hero__place {
  display: block;
  margin-top: 12px;
  font: 400 18px/1.4 var(--font-body);
  letter-spacing: 0.1em;
  color: var(--muted);
}

.hero__phones {
  margin-top: 16px;
  font-weight: 600;
}

.hero__phones a {
  color: inherit;
  text-decoration: none;
}

.hero__phones a:hover {
  color: var(--on-dark);
}

.hero__cta {
  margin-top: 28px;
}

/* ---------- video ---------- */

.video {
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video iframe,
.video img {
  width: 100%;
  height: 100%;
}

.video iframe {
  display: block;
  border: 0;
}

.video__facade {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}

.video__facade img {
  object-fit: cover;
  opacity: 0.85;
}

.video__facade:hover img {
  opacity: 1;
}

.video__play {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 78px;
  height: 54px;
  border-radius: 12px;
  background: rgba(189, 47, 4, 0.92);
}

.video__play::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -40% -50%;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}

/* ---------- about ---------- */

.section--about {
  background: var(--paper-alt);
}

.bio {
  overflow: hidden;
}

.bio p {
  margin: 0 0 1em;
}

.bio--clamped {
  max-height: 12em;
  /* Safari needed the prefix until 15.4; harmless everywhere else. */
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}

.bio p:last-child {
  margin-bottom: 0;
}

.about__toggle {
  /* Same reasoning as the next-show button: a control gets 44px of height. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 8px 0;
}

.about__toggle::after {
  content: "\25BE";
  display: inline-block;
  margin-left: 6px;
  transition: transform var(--dur) var(--ease-out);
}

.about__toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* ---------- events ---------- */

/* A quiet concert-poster texture, with separate ink levels for each theme. */
.video-section, .section--testimonials {
  background-color: var(--paper-alt);
  background-image: radial-gradient(ellipse at 85% 0%, var(--stage-wash), transparent 58%),
    repeating-linear-gradient(135deg, transparent 0, transparent 8px, var(--stage-line) 9px, transparent 10px);
}

.video-section__title { margin-bottom: 28px; }

.events {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A month is a divider, not a heading: small, muted, left, with a hairline. It
   was 21px uppercase centred, which read as loudly as the page title. */
.events__month {
  padding: 32px 0 10px;
  border-bottom: 1px solid var(--line);
  font: 600 var(--step--1)/1.4 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-ink);
  text-align: left;
  color: var(--brand-text);
  border-bottom: 2px solid var(--brand);
}

.event {
  position: relative;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 240px;
  gap: 40px;
  padding: 44px 0;
  /* The page is centred; a row is not. The date and the copy read from the left
     edge, and only the times and the venue sit on the right. */
  text-align: left;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease-out);
}

/* A brand rule grows down the left edge on hover. It sits 12px out in the
   container gutter, because an inset rule at x=0 ran straight into the red date
   text. Nothing shifts: the row keeps its own box. */
.event::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -12px;
  width: 3px;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform var(--dur) var(--ease-out);
}

.event:hover,
.event:focus-within {
  background-color: var(--hover-tint);
}

.event:hover::before,
.event:focus-within::before {
  transform: scaleY(1);
}

.event:first-child {
  border-top: 1px solid var(--line);
}

.event__date {
  margin: 0;
  color: var(--brand-text);
}

.event__title {
  margin: 0 0 8px;
  font-size: var(--step-1);
  color: var(--ink);
}

.event__title a {
  color: inherit;
  text-decoration: none;
}

.event__title a:hover {
  color: var(--brand-text);
  text-decoration: underline;
}

.event--past {
  opacity: 0.65;
}

.event--past .event__date {
  color: var(--muted-ink);
}

.shows__past-title {
  margin: 64px 0 0;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  font: 600 var(--step--1)/1.4 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-ink);
  text-align: left;
}

.event__desc {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
}

.event__meta {
  text-align: right;
}

.event__time {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--ink);
}

.event__where {
  margin: 0;
  font-size: 14px;
  color: var(--muted-ink);
}

.event__calendar { display: none; }
.js .event__calendar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px solid var(--brand-text);
  background: transparent;
  color: var(--brand-text);
  font: 600 14px/1.3 var(--font-body);
  cursor: pointer;
}
.event__calendar:hover, .event__calendar:focus-visible {
  background: var(--brand);
  color: var(--on-brand);
}
@media print { .event__calendar { display: none !important; } }

.events__more {
  margin-top: 40px;
  text-align: center;
}

.events__empty {
  margin: 0;
  text-align: center;
}

/* ---------- contact ---------- */

.contact-form {
  width: min(725px, 100%);
  margin-inline: auto;
}

.form-group {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}

.form-group__legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  position: relative;
  margin-bottom: 24px;
}

.field label {
  position: absolute;
  top: 10px;
  left: 16px;
  font-size: 12px;
  color: var(--muted-ink);
  pointer-events: none;
  transition: color var(--dur-fast) var(--ease-out);
}

/* Name and email are the only fields the worker insists on; the asterisk marks
   them and the required attribute carries the same fact to a screen reader. */
.req {
  margin-left: 2px;
  color: var(--brand-text);
}

.field:focus-within label {
  color: var(--brand-text);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper-alt);
  color: var(--ink-soft);
  font: 400 14px/1.75 var(--font-body);
}

.field input {
  height: 49px;
  padding: 22px 16px 6px;
}

/* iOS Safari zooms the page when a focused field is under 16px, and never zooms
   back out cleanly. The desktop size is 14px for the floating label to sit right;
   on a phone the fields go to 16px. */
@media (max-width: 767px) {
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
}

.field textarea {
  min-height: 154px;
  padding: 24px 16px 12px;
  resize: vertical;
}

.field select {
  display: block;
  width: 100%;
  height: 49px;
  padding: 22px 16px 6px;
  border: 0;
  border-radius: var(--radius);
  background-color: var(--paper-alt);
  color: var(--ink-soft);
  font: 400 14px/1.5 var(--font-body);
}

.field select:focus {
  outline: var(--focus);
  outline-offset: 0;
}

.field input[type="date"] {
  padding-top: 24px;
  font-size: 13px;
}

.field input:focus,
.field textarea:focus {
  outline: var(--focus);
  outline-offset: 0;
  box-shadow: 0 6px 18px -14px rgba(189, 47, 4, 0.9);
}

/* One short shake when the email fails; the reduce block at the end stops it. */
@keyframes field-shake {
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(1px); }
}

.field__error:not([hidden]) {
  animation: field-shake 320ms var(--ease-out);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  outline: 2px solid var(--danger);
}

.field__error {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--danger);
}

.form-status {
  margin: 16px 0 0;
  padding: 16px;
  background: var(--paper-alt);
  border-left: 4px solid var(--brand);
  font-size: 15px;
  color: var(--ink);
}

/* ---------- next show strip ---------- */

.next-show {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
}

.next-show__compact { display: none; }
.booking-fit { padding-block: 28px; border-bottom: 1px solid var(--line); }
.booking-fit p { margin: 0; text-align: center; color: var(--ink-soft); }
.booking-fit p + p { margin-top: 8px; }
.booking-fit strong { color: var(--ink); }
.booking-hint { margin: 8px 0 0; font-size: 16px; color: var(--muted-ink); }
.testimonials--single { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
.gallery__caption { margin: 10px 0 0; font-size: 16px; color: var(--ink-soft); overflow-wrap: anywhere; }
.gallery__empty { grid-column: 1 / -1; }
.field input, .field textarea, .field select { font-size: 17px; }

.next-show__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-block: 12px;
  text-align: center;
}

.next-show__text {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}

.next-show__label {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 8px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-show__ics {
  /* 44px tall on a phone: it is a control, not a link in a sentence, and the
     audience is not eighteen. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--brand);
  background: none;
  color: var(--brand-text);
  font: 600 13px/1 var(--font-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.next-show__ics:hover {
  background: var(--brand);
  color: var(--on-brand);
  transform: translateY(-1px);
}

.next-show__ics:active {
  transform: translateY(0);
}

/* ---------- action bar (mobile) ---------- */

.action-bar {
  display: none;
  position: fixed;
  inset: auto 0 0;
  z-index: 45;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  /* Bottom clears the home indicator, sides clear the notch in landscape. */
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.action-bar__item {
  padding: 16px 8px;
  background: var(--paper);
  color: var(--ink);
  font: 600 14px/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.action-bar__item:active {
  background: var(--paper-alt);
}

.action-bar__item--primary {
  background: var(--brand);
  color: var(--on-brand);
}

/* ---------- show pages ---------- */

.show {
  padding: var(--section-y) 0 80px;
  text-align: center;
}

.show__back {
  margin: 0 0 16px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.show__back a {
  text-decoration: none;
  color: var(--muted-ink);
}

.show__back a:hover {
  color: var(--brand-text);
}

.show__venue {
  margin: 0 0 24px;
  font-size: 18px;
  color: var(--ink);
}

.show__desc {
  margin: 0 auto 32px;
  max-width: 60ch;
  font-variant-numeric: tabular-nums;
}

/* The date block and the times on one centred line under the title. */
.show__when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  margin: 0 0 12px;
}

.show__time {
  font-size: var(--step-1);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* The event list gives the date a real column, so the time element has to fill
   it rather than sit inline. */
.event__date time {
  display: block;
}

.show__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 32px;
}

.show__book {
  margin: 0;
  font-size: 15px;
  color: var(--muted-ink);
}

.show__past {
  margin: 0 0 32px;
  font-size: 15px;
  color: var(--muted-ink);
}

/* A cancelled date keeps its place with a visible mark: it is news the reader
   needs, not a row to hide. The event list carries the same two classes. */
.show__cancelled,
.event__cancelled {
  color: var(--brand-text);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event__cancelled {
  margin: 4px 0 0;
  font-size: 13px;
}

.event--cancelled .event__title {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.prose {
  max-width: 64ch;
  margin: 32px auto 0;
  text-align: left;
}

.prose h2 {
  margin: 32px 0 8px;
  font: 400 var(--step-2)/1.3 var(--font-body);
  color: var(--ink);
}

.prose p {
  margin: 0 0 12px;
}

.prose ul {
  margin: 0 0 12px;
  padding-left: 1.1em;
}

.prose li {
  margin-bottom: 6px;
}

.prose li::marker {
  color: var(--brand-text);
}

.btn--ghost {
  background: none;
  box-shadow: inset 0 0 0 1px var(--brand);
  color: var(--brand-text);
}

.btn--ghost:hover {
  background: var(--brand);
  color: var(--on-brand);
}

/* 404: two buttons side by side, wrapping on a phone. */
.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px 0 0;
}

/* ---------- repertoire ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  /* Left, with the masthead and the song titles. Centred chips over a
     left-aligned list read as a leftover. */
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 24px;
}

.filters__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 13px/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-spring);
}

.filters__chip:hover {
  border-color: var(--brand);
  color: var(--brand-text);
  transform: translateY(-1px);
}

.filters__chip:active {
  transform: scale(0.96);
}

.filters__chip[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.songs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.song {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur-fast) var(--ease-out);
}

/* The rule sits in the gutter, 14px clear of the first letter. As an inset
   shadow at x=0 it ran straight through the title — the event rows were fixed
   the same way, by drawing outside the text box. */
.song::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -14px;
  width: 2px;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur-fast) var(--ease-out);
}

.song:hover,
.song:focus-within {
  background-color: var(--hover-tint);
}

.song:hover::before,
.song:focus-within::before {
  transform: scaleY(1);
}

.song[hidden] {
  display: none !important;
}

/* A filter change wipes the matching rows in, in step, so the list reads as a
   change rather than a flicker. site.js adds the class and the per-row delay;
   the reduced-motion block at the end of this file collapses it. */
@keyframes song-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.song--in {
  animation: song-in var(--dur) var(--ease-out) both;
}

.song__title {
  font-size: var(--step-1);
  color: var(--ink);
}

.song__artist {
  font-size: 14px;
  color: var(--muted-ink);
}

.repertoire__count {
  margin: 24px 0 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-ink);
  text-align: center;
}

.callout {
  max-width: 44em;
  margin: 24px auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  background: var(--paper-alt);
  text-align: left;
}

.callout__title {
  display: block;
  margin-bottom: 8px;
  font: 400 18px/1.3 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-text);
}

.callout p {
  margin: 0 0 8px;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---------- testimonials ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.testimonial {
  position: relative;
  margin: 0;
  padding: 32px;
  background: var(--paper);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.testimonial blockquote {
  margin: 0 0 16px;
}

.testimonial blockquote p {
  margin: 0;
  font-size: 18px;
  color: var(--ink);
}

.testimonial figcaption {
  font-size: 14px;
  color: var(--muted-ink);
}

.testimonial--placeholder {
  border: 1px dashed var(--brand);
}

.testimonial__tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 8px;
  background: var(--tint);
  /* --brand-dark on the dark tint was 3.41:1 at 11px. --brand-text is 5.13:1 in
     light and 4.72:1 in dark. */
  color: var(--brand-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- link cards ---------- */

.section--links {
  padding-block: 24px 64px;
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.link-card__title {
  font: 400 24px/1.3 var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-text);
}

/* The arrow slides in from the left when the card is hovered or focused. */
.link-card__title::after {
  content: "\2192";
  display: inline-block;
  margin-left: 8px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.link-card:hover .link-card__title::after,
.link-card:focus-visible .link-card__title::after {
  opacity: 1;
  transform: none;
}

.link-card__text {
  font-size: 16px;
  color: var(--muted-ink);
}

@media (max-width: 767px) {
  .link-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.gallery__item {
  margin: 0;
}

.gallery__link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-alt);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.gallery__link:hover,
.gallery__link:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.gallery__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.gallery__link:hover img,
.gallery__link:focus-visible img {
  transform: scale(1.05);
}

.lightbox {
  width: min(1100px, 96vw);
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

/* The photo springs up and the backdrop fades, once per open: picking another
   photo inside the dialog does not restart it. */
@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox[open] {
  animation: lightbox-in 340ms var(--ease-spring) both;
}

.lightbox[open]::backdrop {
  animation: backdrop-in 260ms var(--ease-out) both;
}

.lightbox picture {
  display: block;
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #000;
}

.lightbox__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
  width: 48px;
  height: 64px;
  border: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__nav--prev {
  left: 0;
}

.lightbox__nav--next {
  right: 0;
}

.lightbox__nav:hover,
.lightbox__close:hover {
  background: var(--brand);
}

.lightbox__counter {
  position: absolute;
  bottom: 8px;
  left: 50%;
  translate: -50% 0;
  margin: 0;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* ---------- videos ---------- */

.videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 12px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.video-card {
  margin: 0;
}

.video-card__link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-alt);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.video-card__link:hover,
.video-card__link:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.video-card__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.video-card__link:hover img,
.video-card__link:focus-visible img {
  transform: scale(1.04);
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-position: center;
  background-size: 24px 24px;
  background-repeat: no-repeat;
  transition: background-color var(--dur-fast) var(--ease-out),
    transform var(--dur) var(--ease-spring),
    box-shadow var(--dur) var(--ease-out);
}

.video-card__link:hover .video-card__play,
.video-card__link:focus-visible .video-card__play {
  background-color: var(--brand-dark);
  transform: scale(1.08);
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.7);
}

.video-card__duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: transform var(--dur) var(--ease-out);
}

.video-card__link:hover .video-card__duration,
.video-card__link:focus-visible .video-card__duration {
  transform: translateY(-2px);
}

.video-card__title {
  margin: 10px 0 2px;
  font: 400 18px/1.35 var(--font-body);
  color: var(--ink);
}

.video-card__meta {
  margin: 0;
  font-size: 14px;
  color: var(--muted-ink);
}

.player {
  width: min(1000px, 96vw);
  padding: 0;
  border: 0;
  background: #000;
  color: var(--on-dark);
}

.player::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.player__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Lives in the bar under the frame, never over the player's own controls. */
.player__close {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 0;
  background: var(--brand);
  color: #fff;
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.player__close:hover {
  background: var(--brand-dark);
}

.player__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 14px;
}

.player__title {
  flex: 1 1 240px;
  margin: 0;
  font-size: 15px;
  color: var(--on-dark);
}

.player__watch {
  color: var(--brand-text);
  font-size: 14px;
  text-decoration: none;
}

.player__watch:hover {
  text-decoration: underline;
}

/* ---------- footer ---------- */

.site-footer {
  padding-block: var(--section-y);
  background: #000;
  color: var(--muted);
  text-align: center;
}

.site-footer__name {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--on-dark);
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer a {
  /* The footer is black in both themes, so its links cannot use --brand-text:
     that token answers to the page, and the page is white for half the visitors. */
  color: var(--brand-on-dark);
  font-size: 16px;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__legal {
  margin: 24px 0 0;
  font-size: 14px;
}

.site-footer__links {
  margin-top: 8px;
}

/* ---------- FAQ ---------- */

.faq {
  padding: var(--section-y) var(--gutter) 80px;
}

.faq__list {
  width: min(760px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.faq__item + .faq__item {
  margin-top: 32px;
}

.faq__question {
  margin: 0 0 8px;
  font: 400 21px/1.4 var(--font-body);
  color: var(--ink);
}

.faq__answer {
  margin: 0;
}

/* ---------- reveal on scroll ---------- */

/* site.js tags these and adds .is-in when they enter the viewport. Without
   JavaScript nothing is tagged, so every page still shows all its content. */
.js .reveal {
  transition: opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.js .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(18px);
}

/* ---------- responsive ---------- */

@media (max-width: 1023px) {
  :root {
    --header-h: 112px;
  }

  .site-logo img {
    width: 60px;
  }

  .hero__panel {
    padding: 48px 32px;
  }

  .event {
    grid-template-columns: 160px minmax(0, 1fr) 180px;
    gap: 24px;
  }

  .site-nav {
    gap: 18px;
  }

  .site-nav a {
    font-size: 14px;
    letter-spacing: 0.02em;
  }
}

/* The header is a 1fr | logo | 1fr grid, so the wordmark only sits on the page's
   centre line while the left nav fits its share. Six links at 16px do not fit
   under 1400px and the logo drifts right by up to 60px; the mobile metrics take
   it back to 476px, which fits from 1200px up. */
@media (min-width: 1024px) and (max-width: 1399px) {
  .site-nav {
    gap: 18px;
  }

  .site-nav a {
    font-size: 14px;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 96px;
    --section-y: 40px;
  }

  body {
    font-size: 16px;
  }

  /* Equal side columns, like the desktop header, so the wordmark sits on the
     page's centre line rather than wherever the utility cluster ends. */
  .site-header {
    grid-template-columns: 1fr auto 1fr;
    padding-inline: calc(16px + env(safe-area-inset-left)) calc(16px + env(safe-area-inset-right));
  }

  .site-logo {
    justify-self: center;
  }

  .site-logo img {
    width: 55px;
  }

  .nav-toggle {
    display: block;
  }

  body:not(.js) .nav-toggle {
    display: none;
  }

  .nav-fallback {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
    margin-top: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  /* The rail is the only menu a no-JavaScript phone gets, so its links are
     targets: 12px of padding takes a 21px line to 45px, and the edge lines up
     with the rule under the words (trap 35). */
  .nav-fallback a {
    padding: 12px 0;
    color: var(--ink);
    font: 600 14px/1.5 var(--font-body);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid transparent;
  }

  .nav-fallback a:hover,
  .nav-fallback a:focus-visible {
    border-bottom-color: var(--brand);
  }

  body.js .nav-fallback {
    display: none;
  }

  .site-nav--start,
  .site-nav__desktop {
    display: none;
  }

  /* FAQ stays a 14px word in the header, so the target is grown instead of the
     type: 10px/12px of padding takes a 25 x 30 px word to 45 x 54 px and the
     matching negative margin takes the space back, so nothing on the page moves.
     The underline is the ::after, which has to be put back under the word by the
     same offsets. */
  .site-nav--end a {
    margin: -12px;
    padding: 12px;
    font-size: 14px;
  }

  .site-nav--end a::after {
    inset: auto 12px 12px;
  }

  .site-header.is-open .site-nav--start {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }

  .site-header.is-open .site-nav--start a,
  .site-header.is-open .site-nav__mobile {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .section__title {
    letter-spacing: 0.05em;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero__media {
    aspect-ratio: 4 / 3;
  }

  .hero__title {
    letter-spacing: 0.05em;
  }

  .hero__lead,
  .hero__phones {
    font-size: 18px;
  }

  .event {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .event__meta {
    text-align: left;
  }

  .event__date {
    font-size: 22px;
  }

  .action-bar {
    display: grid;
  }

  body {
    padding-bottom: calc(52px + env(safe-area-inset-bottom));
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .next-show__inner {
    padding-block: 8px;
  }

  .next-show__text {
    font-size: 14px;
  }

  .next-show__ics {
    padding: 6px 12px;
    font-size: 12px;
  }

  .next-show__text, .next-show__ics { display: none; }
  .next-show__compact { display: block; width: 100%; min-height: 44px; color: var(--ink); font-size: 15px; line-height: 1.5; text-decoration: none; }
  .next-show__compact span { display: block; color: var(--brand-text); font-size: 14px; }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 8px;
  }

  .video-card__title {
    font-size: 16px;
  }

  .player__bar {
    padding: 8px 10px;
  }

  .lightbox__nav {
    width: 44px;
    height: 56px;
    font-size: 26px;
  }
}

/* ---------- browsers without the newer CSS ---------- */

/* A browser that does not know clamp() cannot reject the custom property: it
   stores `--step-4: clamp(...)` happily and only fails when the value is used,
   at which point every heading silently inherits 16px. Overriding the tokens
   here fixes every use site in one place. Safari 13.1 and later are unaffected. */
@supports not (font-size: clamp(1rem, 2vw, 2rem)) {
  :root {
    --step--1: 13px;
    --step-0: 16px;
    --step-1: 18px;
    --step-2: 21px;
    --step-3: 28px;
    --step-4: 39px;
    --section-y: 56px;
    --gutter: 24px;
  }
}

/* Same idea for aspect-ratio (Safari 15): without it the card's height comes
   from a 100%-tall image inside an auto-height box, which collapses. */
@supports not (aspect-ratio: 4 / 3) {
  .gallery__link,
  .video-card__link {
    position: relative;
    height: 0;
    overflow: hidden;
  }

  .gallery__link {
    padding-bottom: 75%;
  }

  .video-card__link {
    padding-bottom: 56.25%;
  }

  .gallery__link img,
  .video-card__link img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Every transition and animation in this file collapses to nothing. */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__media img,
  .hero__panel > *,
  .js .reveal,
  .js .reveal:not(.is-in) {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- print ---------- */

@media print {
  /* Never print a section that has not scrolled into view yet. */
  .js .reveal,
  .js .reveal:not(.is-in) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .site-header,
  .action-bar,
  .next-show,
  .filters,
  .video,
  .show__back,
  .events__more {
    display: none !important;
  }

  body {
    padding: 0;
    color: #000;
    background: #fff;
  }

  .section__title,
  .repertoire__count,
  .song__artist,
  .testimonial figcaption {
    color: #000;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .prose a::after {
    content: " (" attr(href) ")";
    font-size: 12px;
  }

  .song,
  .event,
  .testimonial {
    break-inside: avoid;
    border-color: #999;
  }

  .site-footer {
    background: #fff;
    border-top: 1px solid #999;
  }

  .site-footer__name,
  .site-footer__legal,
  .site-footer__links,
  .site-footer a {
    color: #000;
  }

  .songs,
  .testimonials,
  .videos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .songs,
  .testimonials {
    grid-template-columns: 1fr;
  }

  .song {
    flex-wrap: nowrap;
  }
}
