/* Barbara Hill — site styles */

/* ---------- Fonts (Inter, self-hosted variable font) ---------- */
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* colour */
  --ink: #212121;          /* headings, dark band */
  --text: #403f3e;         /* body text: 10:1 on white */
  --muted: #5f5f5d;        /* secondary text: 6.4:1 on white */
  --pink: #ffe8f0;         /* section backgrounds */
  --pink-strong: #ffaac5;  /* decoration, links on dark */
  --rose: #b0305f;         /* links: 6.1:1 on white, 5.3:1 on pink */
  --line: #ead7de;
  --white: #fff;

  /* type */
  --font: "Inter", Helvetica, Arial, sans-serif;
  --fs-h1: clamp(2.5rem, 1.9rem + 2.6vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --fs-h3: 1.375rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --fs-body: 1.125rem;
  --fs-small: 0.9375rem;

  /* space */
  --gutter: clamp(1.5rem, 4vw, 4.5rem);
  --section: clamp(3.5rem, 7vw, 6.25rem);
  --radius: 4px;
  --shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.35);
}

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

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

body {
  margin: 0;
  font: 400 var(--fs-body) / 1.7 var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); font-weight: 400; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

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

a {
  color: var(--rose);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

strong {
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  color: var(--white);
  background: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * clamp(1.25rem, 5vw, 4.5rem), 1296px);
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.section--pink { background: var(--pink); }

.section--dark {
  color: #e8e8e8;
  background: var(--ink);
}

.section--dark h2 { color: var(--white); }
.section--dark a:not(.btn) { color: var(--pink-strong); }

.cta p {
  max-width: 48rem;
  margin-top: 0.75rem;
}

.cta .button-row {
  margin-top: 1.75rem;
}

.section__header {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.section__header p {
  margin-top: 0.75rem;
  color: var(--muted);
}

/* Readable running text */
.prose {
  max-width: 44rem;
}

.prose > * + * { margin-top: 1.1em; }
.prose > h2 + *, .prose > h3 + * { margin-top: 0.6em; }
.prose > * + h2 { margin-top: 2em; }
.prose > * + h3 { margin-top: 1.6em; }
.prose ul,
.prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.35em; }

.lead {
  font-size: var(--fs-lead);
  color: var(--text);
}

/* Text column + sidebar */
.with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: var(--gutter);
  align-items: start;
}

/* ---------- Page header (every page starts with one) ---------- */
.page-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(20rem, 32vw, 28rem);
  background: var(--pink);
}

.page-header__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter) clamp(2.5rem, 5vw, 4.5rem) max(clamp(1.25rem, 5vw, 4.5rem), (100vw - 1296px) / 2);
}

.page-header__text .lead { max-width: 36rem; }

.page-header__media {
  position: relative;
  min-height: 16rem;
  background: #080607;
}

.page-header__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

.page-header__media--contain {
  background: var(--ink);
}

.page-header__media--contain img {
  padding: clamp(1rem, 3vw, 2.5rem);
  object-fit: contain;
}

.page-header--plain {
  display: block;
  min-height: 0;
}

.page-header--plain + .section--pink {
  padding-top: 0;
}

.page-header--plain .page-header__text {
  padding-inline: 0;
  width: min(100% - 2 * clamp(1.25rem, 5vw, 4.5rem), 1296px);
  margin-inline: auto;
}

.breadcrumb {
  font-size: var(--fs-small);
}

.breadcrumb a { color: var(--rose); }

/* ---------- Home hero ---------- */
/* The photo is shown full width and unshaded: the flutes rise from their head joints at the
   bottom left to the top right, and the text sits in the empty dark corner above them. The
   photo is 993/2400 as tall as it is wide (41.375vw); its flutes end 79% of the way down,
   so the hero stops at 86% and the empty dark strip below them is cropped off. */
.hero {
  --photo-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  min-height: calc(var(--photo-top) + 35.6vw);
  padding-block: clamp(2.5rem, 4vw, 4rem);
  color: #e8e8e8;
  background: #080607 url("../images/two-flutes.webp") 50% var(--photo-top) / 100% auto no-repeat;
}

.hero h1 {
  font-weight: 300;
  color: var(--white);
}

.hero__tagline {
  margin-top: 0.5rem;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2.25rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--white);
}

.hero .button-row { margin-top: 2rem; }

.next-event {
  padding-block: 1.25rem;
  background: var(--pink);
}

.next-event .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
}

.next-event__label {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rose);
}

.next-event__title { font-weight: 600; color: var(--ink); }

/* ---------- Full-bleed split: image beside text ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split--pink { background: var(--pink); }

.split__media {
  position: relative;
  min-height: 22rem;
}

.split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

.split__media--contain {
  background: #000;
}

.split__media--contain img {
  object-fit: contain;
}

.split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section) var(--gutter);
}

.split__text > .prose { max-width: 36rem; }

.split--reverse .split__media { order: 2; }

/* ---------- Cards (home) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card__media {
  aspect-ratio: 7 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__media--contain img { object-fit: contain; }

.card__title { margin-top: 0.5rem; font-size: var(--fs-h3); font-weight: 600; }
.card p { color: var(--text); }

.text-link {
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
}

.text-link::after {
  content: " \2192";
}

.text-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  font: 500 1rem / 1.5 var(--font);
  color: var(--white);
  text-decoration: none;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  color: var(--ink);
  background: var(--pink-strong);
  border-color: var(--pink-strong);
}

.btn--light {
  color: var(--ink);
  background: var(--pink);
  border-color: var(--pink);
}

.btn--outline {
  color: var(--ink);
  background: transparent;
}

.btn--outline:hover { background: var(--pink); border-color: var(--ink); }

/* On pink backgrounds the pink fill wouldn't show, so outline buttons fill like .btn does */
.section--pink .btn--outline:hover,
.split--pink .btn--outline:hover,
.page-header .btn--outline:hover { background: var(--pink-strong); border-color: var(--pink-strong); }

/* Outline buttons on dark backgrounds */
.hero .btn--outline,
.section--dark .btn--outline {
  color: var(--white);
  border-color: var(--white);
}

.hero .btn--outline:hover,
.section--dark .btn--outline:hover { color: var(--ink); background: var(--white); }

/* ---------- Quote ---------- */
.quote {
  max-width: 52rem;
}

.quote p:first-child {
  font-size: clamp(1.375rem, 1.15rem + 1vw, 2rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
}

.quote p + p { margin-top: 1rem; }
.quote__translation { font-style: italic; color: var(--muted); }
.quote footer { margin-top: 1.25rem; font-weight: 600; color: var(--ink); }

/* A shop's staff pick: a small label, their headline, then a summary of their note */
.staff-pick > * { max-width: 52rem; }
.staff-pick__label {
  margin-bottom: 1rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rose);
}
.staff-pick .prose { margin-top: 1.5rem; }

/* ---------- Fact box ---------- */
.facts {
  padding: 1.75rem;
  background: var(--pink);
  border-radius: var(--radius);
}

.facts h2 { font-size: var(--fs-h3); font-weight: 600; }
.facts img { margin-bottom: 1.5rem; border-radius: var(--radius); }

.facts dl { margin-top: 1rem; }

.facts dt {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
}

.facts dd + dt { margin-top: 0.9rem; }
.facts dd { color: var(--text); }
.facts .btn { margin-top: 1.5rem; }
.facts__note { margin-top: 1rem; font-size: var(--fs-small); color: var(--muted); }

/* ---------- Published works ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.work {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.work__cover {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--pink);
  border-radius: var(--radius);
}

.work__cover img {
  position: absolute;
  inset: 1.5rem;
  width: calc(100% - 3rem);
  height: calc(100% - 3rem);
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

.work__publisher { font-size: var(--fs-small); color: var(--muted); }
.work .button-row { margin-top: auto; padding-top: 0.5rem; }

.section--pink .work__cover { background: var(--white); }
.work__title { font-size: var(--fs-h3); font-weight: 600; }
.work__grading { white-space: nowrap; }
.work__title a { color: var(--ink); text-decoration: none; }
.work__title a:hover { color: var(--rose); text-decoration: underline; }

/* ---------- Shop ---------- */
.price {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--ink);
}

.price__note {
  margin-left: 0.5rem;
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--muted);
}

.contents__title { font-weight: 600; color: var(--ink); }

.contents__detail {
  display: block;
  font-size: var(--fs-small);
  color: var(--muted);
}

.samples {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.samples__item img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Recordings ---------- */
.recordings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 28rem));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.recording h3 { margin-top: 1.25rem; }
.recording__meta { margin-top: 0.4rem; color: var(--muted); }

/* An album's chosen tracks, each with its own small play button */
.tracks {
  margin-top: 1rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.tracks li { border-bottom: 1px solid var(--line); }

.track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.track__icon {
  position: relative;
  flex: none;
  width: 2rem;
  height: 2rem;
  background: var(--ink);
  border-radius: 50%;
  transition: background 0.2s;
}

.track__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  border-style: solid;
  border-width: 0.4rem 0 0.4rem 0.65rem;
  border-color: transparent transparent transparent var(--white);
  transform: translate(-50%, -50%);
}

.track:hover,
.track[aria-current] { color: var(--rose); }
.track:hover .track__icon,
.track:focus-visible .track__icon,
.track[aria-current] .track__icon { background: var(--rose); }

.recording .tracks + .recording__links { margin-top: 0.75rem; }
.recording__links { margin-top: 0.4rem; font-size: var(--fs-small); }
.recording__links a { font-weight: 600; }

/* The album cover, until a track is played in its place */
.player {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.player img { width: 100%; }

.player__frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
}

/* Sound clips: a short title above the browser's own audio controls */
.listen { margin-top: clamp(3rem, 6vw, 4.5rem); }
.listen .clips { margin-top: 1.25rem; }
.clips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem 2rem;
  max-width: 60rem;
  padding: 0;
  list-style: none;
}

.clip__title { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--ink); }
.clip audio { width: 100%; }

/* ---------- Events ---------- */
.events {
  display: grid;
  gap: 2rem;
}

.event {
  display: grid;
  grid-template-columns: minmax(12rem, 22rem) 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--pink);
  border-radius: var(--radius);
}

.event--no-image { grid-template-columns: 1fr; }

.event__media img {
  width: 100%;
  border-radius: var(--radius);
}

.event__media--poster img { box-shadow: var(--shadow); }

.event__body > * + * { margin-top: 0.9rem; }
.event__body h3 { margin-top: 0.25rem; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); font-weight: 500; }
.event__body h4 { margin-top: 1.25rem; }

.event__date {
  font-weight: 600;
  color: var(--rose);
}

.event__series { color: var(--muted); }

.event__facts div { display: flex; gap: 0.5rem; }
.event__facts dt { min-width: 4.5rem; font-weight: 600; color: var(--ink); }

.event__map { margin-left: 0.25rem; font-size: var(--fs-small); font-weight: 600; }

.event__calendar {
  padding-top: 0.9rem;
  font-size: var(--fs-small);
  border-top: 1px solid var(--line);
}

.event__calendar a { font-weight: 600; }

.event__list {
  padding-left: 1.2em;
  line-height: 1.6;
}

.event__list li + li { margin-top: 0.2rem; }
.event__body .button-row { margin-top: 1.5rem; }

.empty-state {
  padding: 2rem;
  background: var(--pink);
  border-radius: var(--radius);
}

/* Past events: one compact row per event, expandable */
.archive h3 {
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  font-size: var(--fs-h3);
  border-bottom: 2px solid var(--pink-strong);
}

.archive h3:first-child { margin-top: 0; }

.past-event {
  border-bottom: 1px solid var(--line);
}

.past-event summary {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
}

.past-event summary::-webkit-details-marker { display: none; }

.past-event summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--rose);
}

.past-event[open] summary::after { content: "\2212"; }

.past-event__date { font-size: var(--fs-small); color: var(--muted); }
.past-event__title { font-weight: 600; color: var(--ink); }
.past-event__venue { display: block; font-size: var(--fs-small); font-weight: 400; color: var(--muted); }

.past-event__body {
  display: grid;
  grid-template-columns: 1fr minmax(10rem, 16rem);
  gap: 2rem;
  padding: 0 0 1.75rem 10rem;
}

.past-event__body > div > * + * { margin-top: 0.8rem; }
.past-event__body h4 { margin-top: 1.1rem; }
.past-event__body img { border-radius: var(--radius); }

/* ---------- Downloads ---------- */
.download-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.download-group {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  border-radius: var(--radius);
}

.download-group h2 {
  font-size: var(--fs-h3);
  font-weight: 600;
}

.download-group > p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.download-group h2::after {
  content: "";
  display: block;
  width: 4rem;
  height: 3px;
  margin-top: 0.75rem;
  background: var(--pink-strong);
}

.download-list {
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.download-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.download-list__title { display: block; font-weight: 600; line-height: 1.4; color: var(--ink); }
.download-list__meta { display: block; font-size: var(--fs-small); color: var(--muted); }

.download-list .btn {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  font-size: var(--fs-small);
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 1fr);
  gap: var(--gutter);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font: 400 1rem / 1.5 var(--font);
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.field textarea { resize: vertical; }
.field__optional { font-weight: 400; color: var(--muted); }
.contact-form .btn { justify-self: start; }
.form-note { font-size: var(--fs-small); color: var(--muted); }

/* Honeypot: hidden from people, filled in by bots (Formspree drops those) */
.field--trap { position: absolute; left: -9999px; }

.form-status {
  padding: 1rem 1.25rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--pink);
  border-left: 4px solid var(--rose);
  border-radius: var(--radius);
}

.form-status--error { background: #fdecea; border-left-color: #b3261e; }

/* Concert mailing list, in the dark closing banner of the events page */
.signup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto;
  gap: 1rem;
  align-items: end;
  max-width: 52rem;
  margin-top: 1.75rem;
}

.signup-form .field label { color: var(--white); }
.signup-form .field__optional { color: #c9c9c9; }
.signup-form .field input { border-color: var(--white); }
.signup-form .form-status,
.signup-form .form-note { grid-column: 1 / -1; }
.signup-form .form-note { color: #c9c9c9; }

.contact-details dt {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
}

.contact-details dd { margin-bottom: 1.25rem; }
.contact-details a { font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
}

.wordmark {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover { color: var(--rose); }

.site-nav a[aria-current="page"] {
  color: var(--rose);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

.menu-toggle {
  display: none;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: 1rem;
}

/* Pages without the dark closing banner: a rule keeps the footer apart from a white last section */
.site-footer--ruled { border-top: 1px solid var(--line); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer__name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.site-footer__heading {
  margin-bottom: 0.75rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer__links {
  padding: 0;
  list-style: none;
}

.site-footer__links li + li { margin-top: 0.35rem; }

.site-footer__links a {
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.site-footer__links a:hover { color: var(--rose); text-decoration: underline; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-block: 1.5rem;
  font-size: var(--fs-small);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer__bottom a { color: var(--muted); }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .page-header,
  .split {
    grid-template-columns: 1fr;
  }

  /* No room beside the flutes: the text comes first, and the photo spans the bottom below it,
     cropped to the band from 15% to 86% of its height around the flutes (29.4vw tall; its
     bottom 14%, 5.8vw, hangs below the hero and is cut off). The flutes' middle is 56.4% of the
     way across the photo, so it moves 6.4vw left to centre them. */
  .hero {
    display: block;
    min-height: 0;
    padding-block: 2.5rem calc(29.4vw + 1.5rem);
    background-position: -6.4vw calc(100% + 5.8vw);
  }

  .page-header__text { padding-inline: clamp(1.25rem, 5vw, 4.5rem); }
  .page-header__media { min-height: 18rem; }
  .split__media { min-height: 20rem; }
  .split--reverse .split__media { order: 0; }

  .with-aside,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .event {
    grid-template-columns: minmax(9rem, 14rem) 1fr;
  }

  .past-event__body {
    padding-left: 0;
  }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }

  /* Header: wordmark + hamburger, nav drops down as a card */
  .site-header__inner { min-height: 4.375rem; }
  .wordmark { font-size: 1.25rem; }

  .menu-toggle {
    display: block;
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.5rem;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
  }

  .menu-toggle__icon,
  .menu-toggle__icon::before,
  .menu-toggle__icon::after {
    position: absolute;
    left: 50%;
    width: 1.5rem;
    height: 2px;
    margin-left: -0.75rem;
    background: var(--ink);
    transition: transform 0.3s, background 0.3s;
  }

  .menu-toggle__icon { top: 50%; }

  .menu-toggle__icon::before,
  .menu-toggle__icon::after {
    content: "";
    left: 0;
    margin-left: 0;
  }

  .menu-toggle__icon::before { top: -8px; }
  .menu-toggle__icon::after { top: 8px; }

  .is-open .menu-toggle__icon { background: transparent; }
  .is-open .menu-toggle__icon::before { transform: translateY(8px) rotate(45deg); }
  .is-open .menu-toggle__icon::after { transform: translateY(-8px) rotate(-45deg); }

  .site-nav {
    display: none;
    position: absolute;
    top: 4rem;
    left: 5%;
    right: 5%;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 2px 16px 50px -16px rgba(34, 34, 34, 0.35);
  }

  .is-open .site-nav { display: block; }
  .site-nav ul { display: block; }
  .site-nav li + li a { border-top: 1px solid var(--line); }
  .site-nav a { padding: 1rem 1.25rem; }
  .site-nav a[aria-current="page"] { text-decoration: none; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .hero { background-image: url("../images/two-flutes-800.webp"); }

  .event {
    grid-template-columns: 1fr;
  }

  .event__media { max-width: 22rem; }

  .past-event summary {
    grid-template-columns: 1fr auto;
  }

  .past-event__date { grid-column: 1; }
  .past-event__title { grid-column: 1; }
  .past-event summary::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

  .past-event__body { grid-template-columns: 1fr; }
  .past-event__body img { max-width: 16rem; }

  .signup-form { grid-template-columns: 1fr; }
  .signup-form .btn { justify-self: start; }

  .download-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  /* Shop: one compact row per product, cover beside the text; the cover and
     title already link to the details page, so only "Buy now" is shown */
  .works--shop { gap: 1.5rem; }

  .works--shop .work {
    display: grid;
    grid-template-columns: 7rem 1fr;
    align-content: start;
    gap: 0.25rem 1rem;
  }

  .works--shop .work__cover { grid-row: 1 / span 4; }

  .works--shop .work__cover img {
    inset: 0.5rem;
    width: calc(100% - 1rem);
    height: calc(100% - 1rem);
  }

  .works--shop .price { font-size: 1.125rem; }
  .works--shop .button-row { padding-top: 0.25rem; }
  .works--shop .btn { padding: 0.5rem 1.1rem; font-size: var(--fs-small); }
  .works--shop .btn--outline { display: none; }

  .samples { grid-template-columns: repeat(2, 1fr); }

  .site-footer__grid { grid-template-columns: 1fr; }
}

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