/* The Masters Music School — Direction A, "The Programme".
   Colours and type come from the kit's tokens.css (the locked palette and fonts); nothing here adds a hue or a face.
   Order: tokens, base, type, links and buttons, masthead, cover (home), page head (inner pages), sections and
   parts, components, closing band, phone and tablet, motion, print. */

/* ---------- Tokens: this direction's names for the kit's roles ---------- */
:root {
  --paper: var(--bg);
  --paper-alt: var(--bg-alt);
  --paper-sunk: var(--bg-sunk);
  --warm: var(--bg-warm);
  --band: var(--bg-band);
  --ink: var(--heading);
  --muted: var(--text-muted);
  --amber: var(--accent);
  --amber-hover: var(--accent-hover);
  --on-amber: var(--on-accent);

  --plate-bg: var(--d-taupe-700);
  --on-warm: var(--text-on-warm);
  --on-warm-text: var(--o-body);
  --on-band: var(--text-on-band);
  --on-band-text: var(--d-taupe-150);
  --solid: var(--o-ink);
  --solid-hover: var(--d-taupe-700);
  --on-solid: var(--o-white);
  --mark-bg: var(--o-white);

  --line: rgba(51, 51, 51, 0.16);
  --line-strong: var(--o-ink);
  --line-on-warm: rgba(51, 51, 51, 0.22);
  --line-on-band: rgba(255, 255, 255, 0.24);
  --tint: rgba(51, 51, 51, 0.03);
  --tint-on-band: rgba(255, 255, 255, 0.06);
  --ghost: rgba(51, 51, 51, 0.08);
  --ghost-on-band: rgba(255, 255, 255, 0.13);
  --focus-on-band: var(--o-amber-pale);
  --scrim: rgba(20, 16, 12, 0.5);
  --photo-filter: grayscale(1) contrast(1.04);
  --map-filter: grayscale(1) contrast(1.05);

  --f-display: var(--font-heading);
  --f-body: var(--font-body);

  --gut: clamp(20px, 5.6vw, 80px);
  --gap: 24px;
  --bar: 72px;
  --section: clamp(72px, 9vw, 128px);
  --part: clamp(48px, 5.6vw, 84px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] {
  --plate-bg: var(--d-taupe-850);
  --on-warm-text: var(--d-taupe-150);
  --solid: var(--d-taupe-50);
  --solid-hover: var(--o-cream);
  --on-solid: var(--d-taupe-950);
  --mark-bg: var(--d-taupe-50);

  --line: rgba(247, 243, 239, 0.17);
  --line-strong: var(--d-taupe-50);
  --line-on-warm: rgba(254, 229, 175, 0.24);
  --line-on-band: rgba(247, 243, 239, 0.2);
  --tint: rgba(247, 243, 239, 0.04);
  --tint-on-band: rgba(247, 243, 239, 0.05);
  --ghost: rgba(247, 243, 239, 0.09);
  --ghost-on-band: rgba(247, 243, 239, 0.1);
  --scrim: rgba(0, 0, 0, 0.62);
  --photo-filter: grayscale(1) contrast(1.04) brightness(0.9);
  --map-filter: grayscale(1) invert(0.92) contrast(0.9);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--muted) var(--paper);
}
/* Anchors and focused controls clear the sticky masthead. This is a margin on them, not scroll padding on the
   page: padding also counts for the controls inside the masthead, so focusing or tapping one moved the page. */
:is(main, footer) :is([id], a, button, summary, iframe, [tabindex]) { scroll-margin-top: calc(var(--bar) + 40px); }
/* the phone booking bar is showing: keep focused and targeted things clear of it */
html.has-bar:not(.menu-open) { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
/* the menu is open: the page behind it does not scroll; the gutter keeps the width where a scrollbar was */
html.menu-open { overflow: hidden; scrollbar-gutter: stable; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
  overflow-wrap: break-word;
}

::selection { background: var(--amber); color: var(--o-ink); }

h1, h2, h3, p, ul, ol, dl, dd, figure, table, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
img { display: block; max-width: 100%; height: auto; }
table { border-collapse: collapse; width: 100%; }
th { font-weight: inherit; text-align: left; }
caption { text-align: left; }
button { font: inherit; color: inherit; }
a, button, label, summary { touch-action: manipulation; }
/* one very long word (a name, a URL) breaks instead of widening the page */
h1, h2, h3, th, td { overflow-wrap: anywhere; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

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

.skip {
  position: absolute; left: var(--gut); top: 8px; z-index: 100;
  padding: 12px 18px; background: var(--solid); color: var(--on-solid);
  font-weight: 500; text-decoration: none; transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: min(100% - 2 * var(--gut) - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px), 1280px);
  margin-inline: auto;
}

/* ---------- Type ---------- */
.label {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.125rem, 3.7vw, 3.375rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.h2--wide { font-size: clamp(2.375rem, 5.4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.02em; }

.h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--ink);
}

.lead { font-size: clamp(1.125rem, 1.45vw, 1.3125rem); line-height: 1.5; color: var(--text); max-width: 34em; text-wrap: pretty; }
.lead--narrow { max-width: 30em; }
.small { font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }
.ext { font-size: 0.8125em; color: var(--muted); white-space: nowrap; }
.btn .ext { color: inherit; opacity: 0.86; white-space: normal; }

/* ---------- Links and buttons ---------- */
.textlink {
  display: inline-block;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(var(--amber), var(--amber)), linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-origin: content-box;
  background-position: 0 calc(100% + 4px), 0 calc(100% + 4px);
  background-size: 0 2px, 100% 1px;
  padding-block: 4px 5px;
  transition: background-size 380ms var(--ease);
}
.textlink:focus-visible { background-size: 100% 2px, 100% 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 15px 28px;
  border: 1px solid transparent; border-radius: 0;
  font-family: var(--f-body); font-weight: 500; font-size: 1rem; line-height: 1.2; letter-spacing: 0.01em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 44px; padding: 10px 20px; font-size: 0.9375rem; }

.btn--amber { background: var(--amber); color: var(--on-amber); }
.btn--ink { background: var(--solid); color: var(--on-solid); }
.btn--line { background: transparent; color: var(--ink); border-color: currentColor; }

.btn__arrow { position: relative; width: 30px; height: 7px; margin-right: -8px; flex: none; }
.btn__arrow::before {
  content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: currentColor;
  transform-origin: 0 50%; transform: scaleX(0.7334); transition: transform 260ms var(--ease);
}
.btn__arrow::after {
  content: ""; position: absolute; right: 0; top: 0; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: translateX(-8px) rotate(45deg); transition: transform 260ms var(--ease);
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.actions--end { margin-top: 40px; }

.tag {
  display: inline-block; vertical-align: 0.3em; margin-left: 10px; padding: 4px 8px 3px;
  background: var(--amber); color: var(--o-ink);
  font-family: var(--f-body); font-weight: 500; font-size: 0.75rem; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}

/* Open / closed line */
.status { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.status__dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none; align-self: flex-start; margin-top: calc(0.5lh - 4.5px);
  border: 1px solid currentColor; background: transparent;
}
.status[data-state="open"] .status__dot { background: var(--amber); border-color: var(--amber); }
.status--large { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; }

/* ---------- Rules and reveals ---------- */
.rule { display: block; height: 1px; margin: 0; border: 0; background: var(--line-strong); transform-origin: 0 50%; }

.reveal { display: block; overflow: hidden; padding-block: 0.1em 0.14em; margin-block: -0.1em -0.14em; }
.reveal__in { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .rule { transition: transform 1100ms var(--ease); }
  .reveal__in { transition: transform 950ms var(--ease); }
  html.reveal-ready .rule:not(.is-in) { transform: scaleX(0); }
  html.reveal-ready .reveal:not(.is-in) .reveal__in { transform: translateY(112%); }
}

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.masthead__row { display: flex; align-items: center; gap: 28px; height: var(--bar); }

/* The school's own lockup for dark grounds, on a dark plate that hangs below the bar like a bookplate. */
.logo {
  align-self: flex-start; flex: none;
  display: block; padding: 14px 18px;
  background: var(--plate-bg);
  position: relative; z-index: 2;
}
.logo img { height: 68px; width: auto; }

.nav { display: flex; align-items: center; margin-left: auto; }
.nav__list { display: flex; gap: clamp(16px, 2vw, 32px); }
.nav__list a {
  display: block; padding: 14px 0 11px;
  font-family: var(--f-display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 calc(100% - 4px); background-size: 0 1px;
  transition: background-size 320ms var(--ease);
}
.nav__list a:focus-visible, .nav__list a[aria-current] { background-size: 100% 1px; }
.nav__list a[aria-current="page"] {
  background-image: linear-gradient(var(--amber), var(--amber)), linear-gradient(currentColor, currentColor);
  background-position: 0 calc(100% - 5px), 0 calc(100% - 4px); background-size: 100% 2px, 100% 1px;
}
.nav__cta { display: none; }

.masthead__tools { display: flex; align-items: center; gap: 8px; }
.masthead__cta { margin-right: 8px; }

.tool {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 10px;
  background: transparent; border: 1px solid transparent; color: var(--ink); cursor: pointer;
  transition: border-color 160ms ease;
}
.icon { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--sun { display: none; }
html[data-theme="dark"] .icon--sun { display: block; }
html[data-theme="dark"] .icon--moon { display: none; }

.menu-toggle { display: none; }
.menu-toggle__label { font-family: var(--f-display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.15em; text-transform: uppercase; padding-top: 2px; }

/* In em, so a larger default text size switches to the menu button before the bar can overflow. */
@media (max-width: 74.99em) {
  .menu-toggle { display: inline-flex; border-color: var(--line); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch;
    max-height: calc(100dvh - var(--bar) - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain;
    padding: 44px calc(var(--gut) + env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) calc(var(--gut) + env(safe-area-inset-left, 0px));
    background: var(--paper); border-bottom: 1px solid var(--line-strong);
  }
  html.menu-open .nav { display: flex; }
  /* scrim: the page under the open menu is dimmed, and a tap on it closes the menu */
  html.menu-open .masthead::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100lvh; background: var(--scrim); z-index: -1; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-top: 1px solid var(--line); }
  .nav__list li:last-child { border-bottom: 1px solid var(--line); }
  .nav__list a { padding: 18px 0 14px; font-size: 0.9375rem; background-image: none; }
  .nav__list a[aria-current] { background-image: none; }
  .nav__list a[aria-current="page"]::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 12px; background: var(--amber); vertical-align: 0.08em; }
  .masthead__tools { margin-left: auto; }
}

/* The booking button leaves the bar for the menu on phones, and also when the text is set large. */
@media (max-width: 639px), (max-width: 39.99em) {
  .masthead__cta { display: none; }
  .nav__cta { display: inline-flex; margin-top: 24px; }
}
@media (max-width: 639px) {
  :root { --bar: 60px; }
  .masthead__row { gap: 12px; }
  .masthead__tools { gap: 6px; }
  .logo { padding: 11px 14px; }
  .logo img { height: 52px; }
}
/* Very few ems across (a small phone with the text set to 200%): the menu label stops growing so the bar holds. */
@media (max-width: 22.49em) {
  .menu-toggle__label { font-size: max(0.5rem, 13px); }
  .masthead__row { gap: 8px; }
  .masthead__tools { gap: 4px; }
}

/* ---------- Cover (home) ---------- */
.cover { padding-top: clamp(64px, 9vh, 104px); padding-bottom: 32px; }
.cover__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  min-height: min(calc(100svh - var(--bar) - clamp(64px, 9vh, 104px) - 32px), 760px);
  grid-template-rows: auto auto 1fr;
}

.cover__title, .pagehead__title {
  font-family: var(--f-display); font-weight: 400;
  line-height: 0.98; letter-spacing: -0.03em;
  color: var(--ink);
}
.cover__title { grid-column: 1 / span 8; grid-row: 1; font-size: clamp(4rem, 8.2vw, 7.5rem); }
.line { display: block; overflow: hidden; padding-block: 0.08em 0.16em; margin-block: -0.08em -0.16em; }
.line__in { display: block; }

.cover__plate { grid-column: 9 / span 4; grid-row: 1 / span 2; align-self: start; margin-top: 0.9rem; }

.cover__lead { grid-column: 1 / span 6; grid-row: 2; margin-top: clamp(28px, 4vh, 48px); }
.cover__lead .actions { margin-top: 32px; }

.particulars {
  grid-column: 1 / -1; grid-row: 3; align-self: end;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  margin-top: clamp(40px, 6vh, 72px); padding-top: 18px;
  position: relative;
}
.particulars::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong);
  transform-origin: 0 50%;
}
.particulars__item { grid-column: span 3; }
.particulars__item:nth-child(2) { grid-column: span 4; }
.particulars__item:nth-child(3) { grid-column: span 2; }
.particulars dd { margin-top: 6px; color: var(--ink); font-size: 1rem; line-height: 1.45; }
.particulars a, .contact a, .colophon a:not(.btn):not(.colophon__logo), .crumbs a, .toc a, .reading__toc a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
  background-origin: content-box; background-position: 0 calc(100% + 2px); background-size: 0 1px;
  transition: background-size 320ms var(--ease);
}
.particulars a:focus-visible, .contact a:focus-visible, .colophon a:not(.btn):focus-visible, .crumbs a:focus-visible, .toc a:focus-visible, .reading__toc a:focus-visible { background-size: 100% 1px; }

@media (prefers-reduced-motion: no-preference) {
  .line__in { animation: rise 1050ms var(--ease) both; }
  .line:nth-child(2) .line__in { animation-delay: 90ms; }
  .line:nth-child(3) .line__in { animation-delay: 180ms; }
  .cover__plate, .pagehead__aside .plate { animation: unveil 1200ms var(--ease) 260ms both; }
  .cover__lead, .pagehead__lede, .pagehead__actions { animation: settle 800ms ease-out 480ms both; }
  .particulars::before { animation: draw 1200ms var(--ease) 420ms both; }
  .particulars__item, .pagehead__aside .toc, .pagehead__status { animation: settle 700ms ease-out 760ms both; }
  /* the cover is the one set piece; an inner page must not make ordinary navigation feel slow */
  .is-inner .pagehead__lede, .is-inner .pagehead__facts, .is-inner .pagehead__actions, .is-inner .lost__code,
  .is-inner .pagehead__aside .toc, .is-inner .pagehead__status { animation: settle 240ms ease-out both; }
  .is-inner .pagehead__aside .plate { animation: unveil 560ms var(--ease) both; }
  .is-inner .line__in { animation-duration: 700ms; }
}
@keyframes rise { from { transform: translateY(112%); } to { transform: none; } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: none; } }

/* ---------- Page head (inner pages): the title page of each chapter ---------- */
.pagehead { padding-top: clamp(56px, 8vh, 92px); }
.pagehead__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  grid-template-rows: auto auto auto 1fr; align-items: start;
}
.crumbs { grid-column: 1 / -1; margin-bottom: clamp(20px, 2.6vw, 32px); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; }
.crumbs li, .crumbs .label {
  font-family: var(--f-display); font-weight: 600; font-size: 0.8125rem; line-height: 1.3; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin-inline: 12px; color: var(--muted); }
.crumbs a { color: var(--ink); display: inline-block; padding-block: 6px; }
.crumbs li[aria-current] { padding-block: 6px; }

.pagehead__title { grid-column: 1 / -1; font-size: clamp(3rem, 7.4vw, 6.75rem); overflow-wrap: break-word; }
.pagehead__title--long { font-size: clamp(2.25rem, 5.4vw, 4.875rem); line-height: 1.02; letter-spacing: -0.025em; }
.pagehead--aside .pagehead__title { grid-column: 1 / span 8; }
.pagehead__lede { grid-column: 1 / span 7; margin-top: clamp(24px, 3vw, 40px); }
.pagehead--aside .pagehead__lede { grid-column: 1 / span 6; }
.pagehead__aside { grid-column: 9 / span 4; grid-row: 2 / span 3; margin-top: 0.9rem; }
.pagehead__actions { grid-column: 1 / -1; margin-top: 32px; }
.pagehead__facts { grid-column: 1 / span 6; margin-top: clamp(28px, 3.4vw, 48px); }
.pagehead__facts dd { font-size: clamp(1.125rem, 1.45vw, 1.3125rem); line-height: 1.4; }
.lost__code { grid-column: 1 / -1; margin-top: clamp(16px, 2vw, 24px); }
.pagehead__status .status { margin-top: 10px; }
.pagehead--lost { padding-bottom: var(--part); }
.pagehead:has(+ .section) { padding-bottom: var(--part); }
/* A portrait whose file is small is shown no larger than half its width, so it stays sharp on a 2x screen
   (the 18px are the frame). */
.plate--cap-160 { max-width: 178px; } .plate--cap-180 { max-width: 198px; } .plate--cap-200 { max-width: 218px; }
.plate--cap-220 { max-width: 238px; } .plate--cap-240 { max-width: 258px; } .plate--cap-260 { max-width: 278px; }
.plate--cap-280 { max-width: 298px; } .plate--cap-300 { max-width: 318px; } .plate--cap-320 { max-width: 338px; }
.plate--cap-340 { max-width: 358px; } .plate--cap-360 { max-width: 378px; } .plate--cap-380 { max-width: 398px; }

/* Contents list in the title block */
.toc { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.toc ol { margin-top: 8px; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: block; padding-block: 11px 10px; color: var(--ink); font-size: 1rem; line-height: 1.4; }
.toc--years ol { display: flex; flex-wrap: wrap; column-gap: 28px; }
.toc--years li { border-bottom: 0; }
.toc--years a { font-family: var(--f-display); font-size: 1.5rem; font-variant-numeric: lining-nums; padding-block: 8px; }

/* ---------- Plates ---------- */
.plate { display: block; }
.plate picture { display: block; padding: 8px; border: 1px solid var(--line); background: var(--paper); }
.plate img { width: 100%; filter: var(--photo-filter); transition: filter 500ms ease; }
.plate figcaption { margin-top: 12px; font-size: 0.875rem; line-height: 1.4; color: var(--muted); }
.plate figcaption .label { margin-right: 10px; }

/* ---------- Sections (home) and parts (inner pages) ---------- */
.section { padding-block: var(--section); }
.section--alt { background: var(--paper-alt); --paper: var(--paper-alt); }
.section > .wrap > .rule, .visit > .wrap > .rule, .part > .wrap > .rule { margin-bottom: clamp(28px, 3.4vw, 44px); }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.split__head { grid-column: 1 / span 4; }
.split__body { grid-column: 6 / span 7; }
.split__intro, .part__intro { margin-top: 24px; max-width: 26em; }
.split__more { margin-top: 20px; }
.split__plate { margin-top: 44px; max-width: 380px; }
.section__more { margin-top: 32px; }

.part { padding-block: var(--part); }
.part .h2 { font-size: clamp(1.875rem, 3vw, 2.75rem); line-height: 1.08; }
.part:has(+ .part--cont) { padding-bottom: clamp(28px, 3vw, 40px); }
.part--cont { padding-top: 0; }
.pagehead + .part--cont { padding-top: var(--part); }
.pagehead--ruled + .part--cont > .wrap::before { content: ""; display: block; height: 1px; background: var(--line-strong); margin-bottom: clamp(28px, 3.4vw, 44px); }
.part__top { margin-bottom: clamp(28px, 4vw, 52px); }
.part__top .split__body:empty { display: none; }
.part__top .lead { max-width: 30em; }
.part__top .split__head:has(+ .split__body:empty) { grid-column: 1 / -1; }
.part__links { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 28px; }
.part__links--after { margin-top: 36px; }
main > .part:last-child { padding-bottom: var(--section); }

/* Running text */
.prose { max-width: 40em; color: var(--text); }
.prose > * + * { margin-top: 1.05em; }
.prose > p:first-child { font-size: clamp(1.125rem, 1.45vw, 1.3125rem); line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.prose a, .notice a, .reading__text a, .director__text a, .plain a, .movement__text a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.prose .h3 { margin-top: 2em; }
.prose--bio > p:first-child { font-size: clamp(1.125rem, 1.45vw, 1.3125rem); }
.split__body > .split__plate:first-child { margin-top: 0; margin-bottom: 32px; }

/* Lists */
.plain { margin-top: 16px; }
.split__body > .plain:first-child, .part__intro + .plain { margin-top: 0; }
.split__body > .part__intro { margin-top: 0; margin-bottom: 20px; max-width: 34em; }
.plain li { padding-block: 11px; border-top: 1px solid var(--line); color: var(--ink); }
.plain li:last-child { border-bottom: 1px solid var(--line); }
.plain--tight li { padding-block: 9px; font-size: 0.9375rem; line-height: 1.5; }
.plain + .small { margin-top: 16px; max-width: 28em; }
.plain--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.plain--two li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
.plain--num { counter-reset: n; }
.plain--num li { counter-increment: n; display: grid; grid-template-columns: 40px minmax(0, 1fr); }
.plain--num li::before { content: counter(n, upper-roman); font-family: var(--f-display); color: var(--muted); }

/* Points: a ruled list of short definitions */
.points { display: grid; grid-template-columns: minmax(0, 1fr); }
.points--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.point { padding-block: 22px 26px; border-top: 1px solid var(--line); }
.points:not(.points--two) .point:first-child, .points--two .point:nth-child(-n+2) { border-top-color: var(--line-strong); }
.point p { margin-top: 8px; font-size: 1rem; line-height: 1.55; max-width: 34em; }

/* Steps, set as movements */
.movement {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; column-gap: var(--gap); align-items: baseline;
  padding-block: 28px 30px; border-top: 1px solid var(--line);
}
.movement:first-child { border-top: 0; padding-top: 0; }
.movement__no {
  grid-row: 1;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(2.75rem, 4.4vw, 4rem); line-height: 0.9; letter-spacing: 0.02em;
  color: var(--ink);
}
.movement__title { grid-column: 2; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.625rem, 2.5vw, 2.25rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
.movement__text { grid-column: 2; margin-top: 8px; max-width: 30em; }
.movement__link { grid-column: 3; grid-row: 1 / span 2; align-self: center; }

/* Instruments, set as a list of works */
.work {
  display: grid; grid-template-columns: minmax(min-content, 5fr) minmax(0, 6fr) auto; column-gap: var(--gap); align-items: baseline;
  padding-block: 22px 26px; border-top: 1px solid var(--line);
}
.work:first-child { border-top: 0; padding-top: 0; }
.work__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.5rem, 4.6vw, 4.25rem); line-height: 1; letter-spacing: -0.025em; color: var(--ink); overflow-wrap: normal; }
.work__text { font-size: 1rem; line-height: 1.55; }
.work__link { white-space: nowrap; }
/* with the school's own instrument marks (courses page): the mark is printed untouched on a light plate */
.work--mark { grid-template-columns: 96px minmax(min-content, 4fr) minmax(0, 6fr) auto; align-items: center; }
.work--mark .work__name { font-size: clamp(2.25rem, 3.6vw, 3.25rem); }
.work__mark { display: block; width: 96px; height: 96px; background: var(--mark-bg); border: 1px solid var(--line); }
.work__mark img { width: 100%; height: 100%; }

.also { margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line-strong); overflow: hidden; }
/* each item carries its dot on the left; the dot that starts a line falls outside the clipped edge */
.also__list { display: flex; flex-wrap: wrap; column-gap: 0; row-gap: 4px; margin: 10px 0 0 -26px; color: var(--ink); }
.also__list li { position: relative; padding-left: 26px; }
.also__list li::before { content: "\00B7"; position: absolute; left: 0; width: 26px; text-align: center; color: var(--muted); }

/* The warm passage: booking */
.section--warm {
  background: var(--warm); color: var(--on-warm-text);
  --ink: var(--on-warm); --text: var(--on-warm-text); --muted: var(--on-warm-text);
  --line: var(--line-on-warm); --line-strong: var(--on-warm); --focus: var(--on-warm); --paper: var(--warm);
}
.section--warm .textlink { color: var(--on-warm); }

.route {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); column-gap: var(--gap); align-items: baseline;
  padding-block: 28px; border-top: 1px solid var(--line);
}
.route:first-child { border-top: 0; padding-top: 6px; }
.route__text { max-width: 30em; margin-bottom: 22px; }
.route__big {
  display: inline-block; color: var(--ink);
  font-family: var(--f-display); font-weight: 400; font-size: clamp(1.75rem, 3.7vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em;
  text-decoration: none; overflow-wrap: anywhere;
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 92%; background-size: 0 1px;
  transition: background-size 420ms var(--ease);
}
.route__big:focus-visible { background-size: 100% 1px; }
.route__note { display: flex; margin-top: 12px; font-size: 0.9375rem; color: var(--text); }

/* The closing call to action on inner pages */
.cta__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; align-items: end; }
.cta__grid .h2 { grid-column: 1 / span 6; font-size: clamp(2.375rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -0.02em; }
.cta__body { grid-column: 8 / span 5; }
.cta__body .actions { margin-top: 28px; }

/* Teachers: the cast list */
.director { margin-top: 44px; }
.director__plate { max-width: 300px; }
.director__text { margin-top: 20px; max-width: 26em; font-size: 1rem; }
.director__more { margin-top: 14px; }
.director__qual { margin-top: 14px; }

.cast { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(8, auto); grid-auto-flow: column; column-gap: 48px; }
.cast li { border-top: 1px solid var(--line); }
.cast li:nth-child(1), .cast li:nth-child(9) { border-top-color: var(--line-strong); }
.cast li:nth-child(8), .cast li:nth-child(16) { border-bottom: 1px solid var(--line); }
.cast--plain { grid-template-rows: none; grid-auto-flow: row; }
.cast--plain li:nth-child(-n+2) { border-top-color: var(--line-strong); }
.cast--plain li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.player {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; align-items: center;
  padding-block: 10px; text-decoration: none;
}
.player picture { grid-row: 1 / span 2; display: block; }
.player__img { width: 56px; height: 70px; object-fit: cover; filter: var(--photo-filter); transition: filter 400ms ease; }
.player__name, .portrait__name, .pager__name, .entry__title, .post__title {
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 96%; background-size: 0 1px;
  transition: background-size 340ms var(--ease);
}
.player__name {
  align-self: end; justify-self: start;
  font-family: var(--f-display); font-weight: 400; font-size: 1.375rem; line-height: 1.15; color: var(--ink);
  padding-top: 0.14em; overflow-wrap: anywhere;
}
.player:focus-visible .player__name, .portrait:focus-visible .portrait__name, .pager__link:focus-visible .pager__name, .entry:focus-visible .entry__title, .post:focus-visible .post__title { background-size: 100% 1px; }
.player__role { align-self: start; margin-top: 4px; font-size: 0.75rem; }

/* Teachers index: portraits by instrument */
.group__name, .year {
  font-family: var(--f-display); font-weight: 400; line-height: 0.96; letter-spacing: -0.03em; color: var(--ink);
  font-size: clamp(2.75rem, 5.4vw, 4.75rem); font-variant-numeric: lining-nums;
}
.group__count { margin-top: 14px; }
.portraits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.portrait { display: block; text-decoration: none; }
.portrait__frame { display: block; padding: 8px; border: 1px solid var(--line); background: var(--paper); }
.portrait__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: var(--photo-filter); transition: filter 500ms ease; }
.portrait__name { display: inline-block; margin-top: 14px; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.15; color: var(--ink); padding-top: 0.14em; overflow-wrap: anywhere; }
.portrait__role { display: block; margin-top: 6px; font-size: 0.75rem; }

.lead-teacher { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); column-gap: var(--gap); row-gap: 28px; align-items: start; }
.lead-teacher__text p:first-child { font-size: clamp(1.125rem, 1.45vw, 1.3125rem); line-height: 1.5; color: var(--ink); }
.split__head > .h2 + .label { margin-top: 16px; }

/* One teacher */
.facts { max-width: 26em; }
.facts > div { padding-block: 12px; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.75rem; }
.facts dd { margin-top: 3px; color: var(--ink); }

.pager { border-top: 1px solid var(--line); }
.pager__row { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: var(--gap); align-items: center; padding-block: 28px; }
.pager__link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; justify-self: start; align-items: flex-start; min-width: 0; }
.pager__link--next { justify-self: end; align-items: flex-end; text-align: right; }
.pager__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.25rem, 2.2vw, 1.875rem); line-height: 1.15; color: var(--ink); padding-top: 0.14em; overflow-wrap: anywhere; }

/* Results */
.figures {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap);
  margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.part--figures .figures { margin-top: 0; }
.figure { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 28px 0 26px; }
.figure + .figure { border-left: 1px solid var(--line); padding-left: var(--gap); }
.figure__no {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(2.75rem, 7.6vw, 7rem); line-height: 0.86; letter-spacing: -0.04em;
  color: var(--ink); font-variant-numeric: lining-nums; padding-top: 0.12em;
}
.figure .label { margin-top: 12px; }

.pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; margin-top: clamp(48px, 6vw, 80px); }
.pair__col:first-child { grid-column: 1 / span 4; }
.pair__col:last-child { grid-column: 6 / span 7; }

.films { margin-top: 16px; }
.split__body > .films:first-child { margin-top: 0; }
.films li { border-top: 1px solid var(--line); }
.films li:last-child { border-bottom: 1px solid var(--line); }
.film { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 20px; align-items: center; padding-block: 16px; text-decoration: none; }
.film__play { position: relative; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color 200ms ease, border-color 200ms ease; }
.film__play::after {
  content: ""; position: absolute; left: 50%; top: 50%; margin: -6px 0 0 -3.5px;
  border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--ink);
  transition: border-color 200ms ease;
}
.film:focus-visible .film__play { background: var(--amber); border-color: var(--amber); }
.film:focus-visible .film__play::after { border-left-color: var(--o-ink); }
.film__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.15; color: var(--ink); padding-top: 0.14em; }
.film__where { font-size: 0.75rem; }

/* Prices: the tariff on the home page */
.includes { margin-top: 40px; max-width: 26em; }

.tariff { table-layout: fixed; }
.tariff th:nth-child(1) { width: 50%; }
.tariff :is(th, td):nth-child(2) { width: 20%; }
.tariff thead th { padding: 0 0 12px; border-bottom: 1px solid var(--line-strong); vertical-align: bottom; }
.tariff tbody th, .tariff tbody td { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.tariff tbody td { font-size: 1rem; color: var(--ink); white-space: nowrap; }
.tariff__name { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
.tariff__note { display: block; margin-top: 4px; font-size: 0.9375rem; color: var(--muted); }
.tariff__price-h, .tariff tbody .tariff__price { text-align: right; padding-right: 0; }
.price { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.per { display: block; margin-top: 4px; font-size: 0.875rem; color: var(--muted); }

/* Prices: the plans on the pricing page, one ruled entry each */
.plan {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); column-gap: var(--gap); row-gap: 14px; align-items: start;
  grid-template-areas: "head features cost" "head features action" "head foot foot";
  padding-block: 28px 30px; border-top: 1px solid var(--line);
}
.plan:first-child { border-top: 0; padding-top: 0; }
.plan__head { grid-area: head; }
.plan__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.625rem, 2.5vw, 2.25rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); overflow-wrap: anywhere; }
.plan__sub { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }
.plan__features { grid-area: features; }
.plan__features li { position: relative; padding: 3px 0 3px 22px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink); }
.plan__features li::before { content: ""; position: absolute; left: 0; top: 0.92em; width: 10px; height: 1px; background: var(--muted); }
.plan__cost { grid-area: cost; text-align: right; }
.plan__cost .per { margin-top: 6px; }
.plan__action { grid-area: action; justify-self: end; text-align: right; }
.plan__foot { grid-area: foot; }
.plan__btn { min-height: 48px; padding: 12px 20px; }

/* Ledger tables: extras, fees, term dates, concert dates */
.ledger caption { padding-bottom: 12px; }
.ledger thead th { padding: 0 0 12px; border-bottom: 1px solid var(--line-strong); vertical-align: bottom; }
.ledger tbody th, .ledger tbody td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; color: var(--ink); }
.ledger tbody tr:first-child :is(th, td) { border-top: 1px solid var(--line-strong); }
.ledger thead:not(.visually-hidden) + tbody tr:first-child :is(th, td) { border-top: 0; }
.ledger tbody td:last-child, .ledger thead th:last-child { padding-right: 0; }
/* a fee keeps its words whole (break-word), so a narrow fee column is never squeezed to "£4 / 5" */
.ledger__num { text-align: right; white-space: nowrap; overflow-wrap: break-word; }
.ledger td.ledger__num { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.ledger--plain tbody th { width: 34%; font-family: var(--f-display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.ledger--plain tbody td { font-size: 1.0625rem; }
.ledger .tag { vertical-align: 0.12em; }

/* Term dates on the home page */
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; margin-top: clamp(36px, 5vw, 64px); }
.term { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.term__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); }
.term__dates { margin-top: 18px; }
.term__dates > div { padding-block: 12px; border-top: 1px solid var(--line); }
.term__dates dt { font-family: var(--f-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.term__dates dd { margin-top: 3px; color: var(--ink); font-size: 1rem; line-height: 1.45; }

.concerts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--line-strong); }
.concerts__head { grid-column: 1 / span 4; }
.concerts__head .small { margin-top: 8px; max-width: 22em; }
.concerts__list { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 20px; }
.concert { display: flex; flex-direction: column; gap: 8px; }
.concert__date { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
.concert .concert__name { display: flex; align-items: center; min-height: 22px; }
.season__note { margin-top: 36px; max-width: 46em; }
.season__note + .actions--end { margin-top: 24px; }

/* Premises (home) and the gallery (about) */
.split--top { align-items: start; }
.plates { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.plates__a { grid-column: 1 / span 6; }
.plates__b { grid-column: 7 / span 3; }
.plates__c { grid-column: 10 / span 3; }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; column-gap: var(--gap); row-gap: 32px; align-items: start; }
.gallery__big { grid-column: span 2; grid-row: span 2; }

/* Index entries: contents-style rows that lead to other pages */
.index li { border-top: 1px solid var(--line); }
.index li:first-child { border-top: 0; }
.index li:last-child { border-bottom: 1px solid var(--line); }
.entry {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) 28px; column-gap: var(--gap); align-items: baseline;
  padding-block: 20px 22px; text-decoration: none;
}
.index li:first-child .entry { padding-top: 0; }
.entry--plain { grid-template-columns: minmax(0, 1fr) 28px; }
.entry__title { justify-self: start; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); padding-top: 0.14em; overflow-wrap: anywhere; }
.entry__text { font-size: 1rem; line-height: 1.5; color: var(--text); }
.entry__arrow { position: relative; justify-self: end; align-self: center; width: 22px; height: 1px; background: var(--ink); transition: transform 260ms var(--ease); }
.entry__arrow::after { content: ""; position: absolute; right: 0; top: -3.5px; width: 7px; height: 7px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg); }
.entry__arrow--out { transform: rotate(-45deg); width: 16px; }
.part--index { padding-top: var(--part); }
.index--large .entry { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) minmax(0, 1fr); padding-block: 26px 28px; }
.index--large li:first-child .entry { padding-top: 26px; }
.index--large li:first-child { border-top: 0; }
.index--large .entry__title { font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; }

/* Notices */
.notice { border: 1px solid var(--line-strong); padding: 22px 24px 24px; max-width: 40em; }
.notice__text { margin-top: 8px; font-size: 1.125rem; line-height: 1.5; color: var(--ink); }
.notice__title + .notice__text { margin-top: 10px; }

/* Blog: the archive by year */
.posts li { border-top: 1px solid var(--line); }
.posts li:first-child { border-top: 0; }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.post {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 150px) 22px; column-gap: 20px; align-items: baseline;
  padding-block: 15px 16px; text-decoration: none;
}
.posts li:first-child .post { padding-top: 0; }
.post__date { font-size: 0.75rem; white-space: nowrap; }
.post__title { justify-self: start; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.25; color: var(--ink); padding-top: 0.14em; overflow-wrap: anywhere; }
.post__cat { font-size: 0.8125rem; line-height: 1.4; color: var(--muted); text-align: right; }

/* Legal pages: a contents column and a reading column */
.reading { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.reading__toc { grid-column: 1 / span 4; position: sticky; top: calc(var(--bar) + 48px); max-height: calc(100dvh - var(--bar) - 72px); overflow-y: auto; padding-right: 8px; }
.reading__toc ol { margin-top: 12px; }
.reading__toc li { border-top: 1px solid var(--line); }
.reading__toc li:last-child { border-bottom: 1px solid var(--line); }
.reading__toc a { display: block; padding-block: 9px 8px; color: var(--ink); font-size: 0.9375rem; line-height: 1.4; }
.reading__source { margin-top: 24px; font-size: 0.9375rem; }
.reading__text { grid-column: 6 / span 7; max-width: 40em; font-size: 1.0625rem; line-height: 1.65; }
.reading__text > * + * { margin-top: 1em; }
.reading__text h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.625rem, 2.4vw, 2.125rem); line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); margin-top: 2.2em; padding-top: 1em; border-top: 1px solid var(--line); text-wrap: balance; }
.reading__text h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.reading__text h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.25; color: var(--ink); margin-top: 1.8em; }
.reading__text ul { padding-left: 1.4em; }
.reading__text li { position: relative; margin-top: 0.55em; }
.reading__text li::before { content: ""; position: absolute; left: -1.4em; top: 0.8em; width: 10px; height: 1px; background: var(--muted); }
.reading__text ul ul { margin-top: 0.3em; }

/* ---------- Visit: address, hours, map (home closing band and the contact page) ---------- */
.visit__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; }
.visit .visit__grid { margin-top: clamp(36px, 5vw, 64px); }
.visit__address { grid-column: 1 / span 4; }
.visit__hours { grid-column: 5 / span 4; }
.visit__map { grid-column: 9 / span 4; }

.address { margin-top: 14px; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.75rem, 2.9vw, 2.5rem); line-height: 1.12; letter-spacing: -0.015em; color: var(--ink); }
.contact { margin: 28px 0 24px; }
.contact li { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); column-gap: 16px; align-items: baseline; padding-block: 12px; border-top: 1px solid var(--line); }
.contact li:last-child { border-bottom: 1px solid var(--line); }
.contact a { color: var(--ink); justify-self: start; overflow-wrap: anywhere; }
.contact .label { font-size: 0.75rem; }

.visit__hours .status--large { margin-top: 14px; }
.hours { margin-top: 24px; font-variant-numeric: lining-nums tabular-nums; }
.hours th, .hours td { padding: 11px 0; border-top: 1px solid var(--line); font-size: 1rem; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--line); }
.hours td { text-align: right; color: var(--ink); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--ink); font-weight: 600; }
.hours tr.is-today th::after { content: "Today"; margin-left: 12px; padding: 3px 7px 2px; background: var(--amber); color: var(--o-ink); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 0.12em; }

.mapplate { margin-top: 14px; border: 1px solid var(--line); }
.mapplate__frame { position: relative; aspect-ratio: 4 / 5; background: var(--tint); overflow: hidden; }
.mapplate__face { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 18px; padding: 24px; }
.mapplate__foot { padding: 6px 24px 8px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.mapplate__code { position: absolute; left: 20px; top: 14px; font-family: var(--f-display); font-weight: 700; font-size: clamp(4rem, 8vw, 6.75rem); line-height: 0.9; letter-spacing: -0.03em; color: var(--ghost); }
.mapplate__text { position: relative; font-size: 0.9375rem; max-width: 20em; }
/* the postcode stays under the map, so the frame is not blank if the map cannot be shown */
.mapplate iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; filter: var(--map-filter); opacity: 0; transition: opacity 300ms ease; }
.mapplate.is-loaded iframe { opacity: 1; }
.mapplate.is-loaded, .mapplate.is-loaded .mapplate__foot { border-color: var(--line-strong); }
.mapplate [aria-disabled="true"] { cursor: progress; }

/* ---------- Closing band: visit (home) and the colophon ---------- */
.closing {
  background: var(--band); color: var(--on-band-text);
  --ink: var(--on-band); --text: var(--on-band-text); --muted: var(--on-band-text);
  --line: var(--line-on-band); --line-strong: var(--on-band); --focus: var(--focus-on-band);
  --tint: var(--tint-on-band); --ghost: var(--ghost-on-band); --paper: var(--band);
}
.visit { padding-block: var(--section) clamp(56px, 7vw, 96px); }

.colophon { padding-block: clamp(48px, 6vw, 72px) calc(40px + env(safe-area-inset-bottom, 0px)); }
.visit + .colophon { padding-top: 0; }
.visit + .colophon .colophon__top { padding-top: 48px; border-top: 1px solid var(--line); }
.colophon__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.colophon__brand { grid-column: 1 / span 4; }
.colophon__logo { display: inline-block; margin-left: -21px; } /* the lockup file carries its own left margin; this sets its mark on the page line */
.colophon__logo img { height: 84px; width: auto; }
.colophon__line { margin-top: 12px; font-size: 0.9375rem; max-width: 20em; }
.colophon__address { display: flex; flex-direction: column; align-items: flex-start; margin-top: 20px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink); }
.colophon__address a { padding-block: 3px; }
.colophon__status { margin-top: 14px; font-size: 0.9375rem; }
.colophon__nav { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; }
.colophon__group ul { margin-top: 12px; }
.colophon__group li + li { margin-top: 8px; }
.colophon__group a, .colophon__legal a { color: var(--ink); font-size: 0.9375rem; }
.colophon__group a[aria-current="page"] { background-size: 100% 1px; }
.colophon__action { grid-column: 1 / -1; display: flex; justify-content: flex-start; }
.colophon__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.colophon__legal ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.colophon__legal p a { text-decoration: underline; background-image: none; }

/* Phone action bar: appears once the page's own booking button has scrolled away */
.actionbar { display: none; }

/* ---------- Pointer: hover only where a pointer can hover, so nothing sticks on touch ---------- */
@media (hover: hover) {
  .textlink:hover { background-size: 100% 2px, 100% 1px; }
  .btn--amber:hover { background: var(--amber-hover); }
  .btn--ink:hover { background: var(--solid-hover); }
  .btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .btn:hover .btn__arrow::before { transform: none; }
  .btn:hover .btn__arrow::after { transform: rotate(45deg); }
  .nav__list a:hover { background-size: 100% 1px; }
  .nav__list a[aria-current="page"]:hover { background-size: 100% 2px, 100% 1px; }
  .tool:hover { border-color: var(--line-strong); }
  .particulars a:hover, .contact a:hover, .colophon a:not(.btn):not(.colophon__logo):hover, .crumbs a:hover, .toc a:hover, .reading__toc a:hover { background-size: 100% 1px; }
  .plate:hover img, .portrait:hover img, .player:hover .player__img { filter: none; }
  .player:hover .player__name, .portrait:hover .portrait__name, .pager__link:hover .pager__name, .entry:hover .entry__title, .post:hover .post__title { background-size: 100% 1px; }
  .route__big:hover { background-size: 100% 1px; }
  .film:hover .film__play { background: var(--amber); border-color: var(--amber); }
  .film:hover .film__play::after { border-left-color: var(--o-ink); }
  .entry:hover .entry__arrow:not(.entry__arrow--out) { transform: translateX(6px); }
}
.player:focus-visible .player__img, .portrait:focus-visible img { filter: none; }

/* ---------- Press: instant feedback on touch and click ---------- */
.textlink:active, .nav__list a:active, .particulars a:active, .contact a:active, .colophon a:not(.btn):active,
.crumbs a:active, .toc a:active, .reading__toc a:active, .route__big:active, .pager__link:active, .logo:active,
.prose a:active, .notice a:active, .reading__text a:active, .director__text a:active, .plain a:active, .movement__text a:active { opacity: 0.62; }
.entry:active, .post:active, .player:active, .film:active { background-color: var(--ghost); }
.portrait:active .portrait__frame { background-color: var(--ghost); }
.entry:active .entry__title, .post:active .post__title, .player:active .player__name, .portrait:active .portrait__name, .pager__link:active .pager__name { background-size: 100% 1px; }
.film:active .film__play { background: var(--amber); border-color: var(--amber); }
.film:active .film__play::after { border-left-color: var(--o-ink); }
.tool:active { background-color: var(--ghost); border-color: var(--line-strong); }

/* Touch and small screens: links that stand alone get a 44px hit area without moving the type */
@media (max-width: 1023px), (pointer: coarse) {
  .textlink { padding-block: 11px 13px; }
  .actions { row-gap: 8px; }
  .particulars dd { display: flex; min-width: 0; margin-top: -2px; }
  .particulars a { overflow-wrap: anywhere; }
  .particulars a { padding-block: 11px; }
  .contact a { display: inline-block; padding-block: 11px; }
  .contact li { padding-block: 2px; align-items: center; }
  .colophon__group li + li { margin-top: 0; }
  .colophon__group a, .colophon__legal ul a, .colophon__address a { display: inline-block; padding-block: 11px; min-width: 44px; }
  .colophon__group ul { margin-top: 2px; }
  .colophon__status { padding-block: 11px; margin-top: 2px; }
  .crumbs a, .crumbs li[aria-current] { padding-block: 14px; }
  .crumbs { margin-bottom: 8px; }
  .toc a, .reading__toc a { padding-block: 12px 11px; }
  .toc--years a { padding-block: 8px; }
  .part__links { row-gap: 0; }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 1023px) {
  .cover__grid { min-height: 0; grid-template-rows: none; }
  .cover__title { grid-column: 1 / -1; font-size: clamp(2.5rem, 12.4vw, 6rem); }
  .cover__lead { grid-column: 1 / span 7; grid-row: 2; }
  .cover__plate { grid-column: 8 / span 5; grid-row: 2; margin-top: clamp(28px, 4vh, 48px); }
  .particulars { grid-row: 3; row-gap: 20px; }
  .particulars__item, .particulars__item:nth-child(2), .particulars__item:nth-child(3) { grid-column: span 6; }

  .pagehead__grid { grid-template-rows: none; }
  .pagehead__title, .pagehead--aside .pagehead__title { grid-column: 1 / -1; font-size: clamp(2.5rem, 11vw, 5.5rem); }
  .pagehead__title--long { font-size: clamp(2rem, 8.6vw, 4.25rem); }
  .pagehead__lede, .pagehead--aside .pagehead__lede { grid-column: 1 / span 9; }
  .pagehead__aside { grid-column: 1 / span 7; grid-row: auto; margin-top: 36px; }
  .pagehead__facts { grid-column: 1 / span 9; }

  .split__head { grid-column: 1 / -1; }
  .split__body { grid-column: 1 / -1; }
  .split__head .h2 { max-width: 14em; }
  .split__intro, .part__intro { max-width: 34em; }
  .pair__col:first-child, .pair__col:last-child { grid-column: 1 / -1; }
  .concerts__head, .concerts__list { grid-column: 1 / -1; }
  .cta__grid .h2, .cta__body { grid-column: 1 / -1; }
  .facts { max-width: none; }

  .visit__address { grid-column: 1 / span 6; }
  .visit__hours { grid-column: 7 / span 6; }
  .visit__map { grid-column: 1 / -1; }
  .mapplate__frame { aspect-ratio: 16 / 9; }

  .reading__toc { grid-column: 1 / -1; position: static; max-height: none; overflow: visible; padding-right: 0; }
  .reading__text { grid-column: 1 / -1; }

  .colophon__brand { grid-column: 1 / -1; }
  .colophon__nav { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  /* a third breadcrumb level only repeats the title right under it */
  .crumbs li:nth-child(n+3)[aria-current] { display: none; }
  :root { --gap: 16px; }
  body { font-size: 1rem; }

  .cover { padding-top: 52px; padding-bottom: 28px; }
  .cover__lead { grid-column: 1 / -1; margin-top: 24px; }
  .cover__lead .actions { margin-top: 24px; }
  .cover__lead .btn, .cta__body .btn, .pagehead__actions .btn, .part__links .btn { width: 100%; }
  .cover__plate { grid-column: 1 / -1; grid-row: 3; margin-top: 36px; }
  .particulars { grid-row: 4; margin-top: 36px; row-gap: 0; padding-top: 8px; }
  .particulars__item, .particulars__item:nth-child(2), .particulars__item:nth-child(3) { grid-column: 1 / -1; }
  .particulars__item { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 12px; align-items: first baseline; }
  .particulars dd { margin-top: 0; }

  .pagehead { padding-top: 48px; }
  .pagehead__lede, .pagehead--aside .pagehead__lede { grid-column: 1 / -1; margin-top: 20px; }
  .pagehead__aside { grid-column: 1 / -1; margin-top: 32px; }
  .pagehead__facts { grid-column: 1 / -1; margin-top: 24px; }
  .pagehead__aside .plate:not([class*="plate--cap-"]) { max-width: 420px; }

  .part__top { margin-bottom: 28px; }
  .split { row-gap: 28px; }
  .split__plate { margin-top: 32px; }

  .movement { grid-template-columns: 56px minmax(0, 1fr); padding-block: 22px 20px; }
  .movement__link { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 4px; }

  .work, .work--mark { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .work__name { overflow-wrap: anywhere; }
  .work--mark { grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; align-items: center; }
  .work__mark { width: 72px; height: 72px; }
  .work--mark .work__text, .work--mark .work__link { grid-column: 1 / -1; }
  .work__link { justify-self: start; margin-top: -4px; }

  .route { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .route .btn { width: 100%; }
  .route__big { padding-block: 8px; }

  .cast { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .cast li:nth-child(9) { border-top-color: var(--line); }
  .cast li:nth-child(8) { border-bottom: 0; }
  .cast--plain li:nth-child(2) { border-top-color: var(--line); }
  .cast--plain li:nth-last-child(2):not(:last-child) { border-bottom: 0; }
  .director__plate { max-width: 220px; }

  .portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .lead-teacher { grid-template-columns: minmax(0, 1fr); }
  .lead-teacher .plate { max-width: 260px; }

  .pager__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 8px; }
  .pager__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .pager__link { padding-block: 6px; }

  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; }
  .figure:nth-child(odd) { padding-right: 12px; }
  .figure:nth-child(3) { border-left: 0; padding-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--line); }

  .film { grid-template-columns: 44px minmax(0, 1fr); row-gap: 2px; }
  .film__play { grid-row: 1 / span 2; }
  .film__where { grid-column: 2; }

  .plain--two, .points--two { grid-template-columns: minmax(0, 1fr); }
  .plain--two li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .points--two .point:nth-child(2) { border-top-color: var(--line); }

  .tariff { table-layout: auto; }
  .tariff th:nth-child(1), .tariff :is(th, td):nth-child(2) { width: auto; }
  .tariff thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tariff tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 6px; padding-block: 20px; border-bottom: 1px solid var(--line); }
  .tariff tbody tr:first-child { border-top: 1px solid var(--line-strong); }
  .tariff tbody th, .tariff tbody td { display: block; padding: 0; border: 0; }
  .tariff tbody th { grid-column: 1 / -1; }
  .tariff tbody td { grid-column: 1; font-size: 0.9375rem; align-self: end; white-space: normal; }
  .tariff tbody td::before { content: attr(data-th) ": "; color: var(--muted); }
  .tariff tbody .tariff__price { grid-column: 2; align-self: end; }
  .tariff tbody .tariff__price::before { content: none; }
  .actions--end .btn { width: 100%; }

  .plan { grid-template-columns: minmax(0, 1fr) auto; row-gap: 14px; padding-block: 24px 26px; grid-template-areas: "head cost" "features features" "action action" "foot foot"; }
  .plan__action { justify-self: start; text-align: left; }
  .plan__action .btn { width: 100%; }
  .plan:has(.plan__btn) .plan__action { justify-self: stretch; }

  .ledger tbody th, .ledger tbody td { padding-block: 14px; }
  .ledger--plain tbody th { width: 38%; font-size: 0.75rem; letter-spacing: 0.12em; }
  .ledger--plain tbody td { font-size: 1rem; }
  .ledger td.ledger__num { font-size: 1.375rem; }
  .ledger__num { white-space: normal; }

  .terms { grid-template-columns: minmax(0, 1fr); }
  .concerts__list { grid-template-columns: minmax(0, 1fr); }
  .concert { padding-block: 14px; border-top: 1px solid var(--line); gap: 6px; }

  .plates__a { grid-column: 1 / -1; }
  .plates__b { grid-column: 1 / span 6; }
  .plates__c { grid-column: 7 / span 6; }
  .gallery { row-gap: 24px; }

  .entry, .index--large .entry { grid-template-columns: minmax(0, 1fr) 24px; row-gap: 4px; padding-block: 18px; }
  .index li:first-child .entry { padding-top: 0; }
  .index--large li:first-child .entry { padding-top: 18px; }
  .entry__title { grid-column: 1; }
  .entry__text { grid-column: 1; grid-row: 2; font-size: 0.9375rem; }
  .entry__arrow { grid-column: 2; grid-row: 1 / span 2; }
  .entry--plain .entry__arrow { grid-row: 1; }

  .post { grid-template-columns: minmax(0, 1fr) 22px; row-gap: 3px; padding-block: 14px; }
  .posts li:first-child .post { padding-top: 0; }
  .post__date, .post__title, .post__cat { grid-column: 1; }
  .post__cat { text-align: left; }
  .post .entry__arrow { grid-column: 2; grid-row: 1 / span 3; }

  .notice { padding: 18px 18px 20px; }
  .notice__text { font-size: 1.0625rem; }

  .visit__address, .visit__hours { grid-column: 1 / -1; }
  .mapplate__frame { aspect-ratio: 1 / 1; }
  .mapplate__foot { padding-inline: 18px; }

  .colophon__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colophon__action .btn { width: 100%; }
  .colophon__legal { margin-top: 36px; }
  .colophon { padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }

  .actionbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px calc(var(--gut) + env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) calc(var(--gut) + env(safe-area-inset-left, 0px));
    background: var(--paper); border-top: 1px solid var(--line-strong);
    transform: translateY(100%); opacity: 0; visibility: hidden;
    transition: transform 200ms ease-out, opacity 200ms ease-out, visibility 0s linear 200ms;
  }
  html.has-bar .actionbar { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  html.menu-open .actionbar { display: none; }
  .actionbar .btn { width: 100%; min-height: 50px; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .cast { column-gap: 32px; }
  .plates__a { grid-column: 1 / -1; }
  .plates__b { grid-column: 1 / span 6; }
  .plates__c { grid-column: 7 / span 6; }
  .portraits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .colophon__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0ms !important; }
}

@media print {
  .masthead { position: static; }
  .actionbar, .nav, .masthead__tools, .skip, .mapplate__frame { display: none !important; }
  .reveal__in, .rule, .line__in, .particulars::before { transform: none !important; animation: none !important; transition: none !important; }
  .cover__plate, .cover__lead, .particulars__item, .pagehead__lede, .pagehead__facts, .pagehead__actions, .lost__code,
  .pagehead__aside .plate, .pagehead__aside .toc, .pagehead__status { animation: none !important; opacity: 1 !important; clip-path: none !important; }
  /* the logo's plate and the hairline rules are backgrounds, which a browser drops from print unless told */
  .logo, .rule, .tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .plate img, .portrait__frame img, .player__img { filter: grayscale(1); }
}
