/*
  Design tokens + base styles for Michael Song, Cello.
  This file is linked directly (not bundled) from src/layouts/Layout.astro
  AND from public/admin/index.html, so the Decap CMS preview pane renders
  with the same typography and palette as the live site. Keep it framework-free.
*/

:root {
  /* Palette: warm off-white paper, near-black ink, one muted bronze accent. */
  --color-paper: #faf9f7;
  --color-paper-dim: #f2f0eb;
  --color-ink: #1a1a1a;
  --color-ink-soft: #4a4640;
  --color-line: #ddd6c9;
  --color-accent: #8a7458;
  --color-accent-dark: #6e5b46;

  --font-serif: "Cormorant Garamond", "Georgia", serif;
  /* Body/nav text: a quieter Garamond than the display serif above, closer
     to the Adobe Garamond voice of the original Squarespace site. Inter is
     kept for small-caps labels, buttons, date chips, and form UI. */
  --font-body: "EB Garamond", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --content-max: 720px;
  --content-max-wide: 1200px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 88px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  color: var(--color-ink);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

p {
  margin: 0 0 var(--space-2);
}

em,
i {
  font-style: italic;
}

.container {
  max-width: var(--content-max-wide);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.prose {
  max-width: var(--content-max);
  margin: 0 auto;
}

.prose p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.7;
}

/* Small-caps section / nav / metadata labels */
.label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-ink-soft);
}

.section {
  padding: var(--space-6) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-4);
}

/* Understated button: small-caps + hairline border */
.btn {
  display: inline-block;
  padding: 0.85em 1.8em;
  border: 1px solid var(--color-ink);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink);
  background: transparent;
  cursor: pointer;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out);
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-ink);
  color: var(--color-paper);
}

.link-underline {
  border-bottom: 1px solid var(--color-line);
  transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

.link-underline:hover,
.link-underline:focus-visible {
  color: var(--color-accent-dark);
  border-color: var(--color-accent);
}

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

/* Hidden until keyboard-focused, then floats above the fixed header. */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 0.6em 1em;
  background: var(--color-ink);
  color: var(--color-paper);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  transform: translateY(-250%);
  transition: transform 150ms var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  /* Transparent state sits over a hero image of unknown brightness, so the
     text is light with a drop shadow for legibility "in all circumstances"
     rather than relying on the photo being dark. */
  color: var(--color-paper);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 14px rgba(0, 0, 0, 0.4);
  transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out),
    color 300ms var(--ease-out), text-shadow 300ms var(--ease-out);
}

.site-header.is-scrolled {
  background: var(--color-paper);
  border-bottom-color: var(--color-line);
  color: var(--color-ink);
  text-shadow: none;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-header .brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.site-header .brand em {
  /* A touch lighter than --color-accent-dark so it still reads against a
     dark hero photo; the scrolled state below swaps it back to the darker,
     higher-contrast tone for the off-white background. */
  color: #d9c9b4;
}

.site-header.is-scrolled .brand em {
  color: var(--color-accent-dark);
}

.site-nav {
  display: none;
  align-items: center;
  gap: var(--space-4);
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-accent-dark);
  border-bottom-color: currentColor;
}

.nav-dropdown {
  position: relative;
  /* Without this, the nested "Media" link stays display:inline (only direct
     flex children get blockified), so its padding/border don't expand its
     box the way the sibling links' do, and align-items:center on .site-nav
     ends up centering it a few pixels off from the others. Making this
     wrapper a flex container too blockifies the link the same way. */
  display: flex;
  align-items: center;
}

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: var(--space-2);
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 140px;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  display: flex;
}

.nav-dropdown-panel a {
  background: var(--color-paper);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  /* Always on a solid off-white panel regardless of header scroll state,
     so this always needs the dark, no-shadow treatment. */
  color: var(--color-ink);
  text-shadow: none;
}

.header-actions {
  display: none;
  align-items: center;
  gap: var(--space-3);
}

.header-instagram {
  display: inline-flex;
  /* text-shadow only affects text, not the SVG icon's stroke/fill, so it
     needs its own drop-shadow for the same over-hero legibility. */
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
  transition: filter 300ms var(--ease-out);
}

.lang-toggle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  color: var(--color-accent-dark);
  border-bottom-color: currentColor;
}

.site-header.is-scrolled .header-instagram {
  filter: none;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  /* Buttons don't inherit `color` from ancestors by default (UA stylesheets
     set their own), so without this the bars would stay dark even when the
     header switches to light text over the hero. */
  color: inherit;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
  transition: filter 300ms var(--ease-out);
}

.site-header.is-scrolled .hamburger {
  filter: none;
}

.hamburger span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  transform: translateY(-100%);
  transition: transform 350ms var(--ease-out);
}

.mobile-drawer.is-open {
  transform: translateY(0);
}

.mobile-drawer a {
  font-family: var(--font-serif);
  font-size: 1.9rem;
}

.mobile-drawer .label {
  margin-top: var(--space-3);
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
  .header-actions {
    display: flex;
  }
  .hamburger,
  .mobile-drawer {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-paper);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-5) var(--space-3);
  width: 100%;
}

.hero-content h1 {
  color: var(--color-paper);
}

/* Interior-page banner (§14, Option A). Taller than before so a 3:2 or 16:9
   source shows more of its frame instead of a compressed strip, capped so it
   never dominates on tall viewports. */
.hero.hero-short {
  min-height: min(58vh, 600px);
}

/* A clear vertical interval between the banner and the first content section,
   identical across every interior page, so no page lurches straight from image
   into text. */
.hero-short + .section {
  padding-top: var(--space-7);
}

/* Full-viewport homepage hero. The quote sits in the lower third, over the
   clean stage floor rather than the busy mid-frame (music stands, chairs). */
.hero.hero-full {
  min-height: 100svh;
  align-items: flex-end;
}

.hero.hero-full .hero-content {
  padding-bottom: 22vh;
}

/* Subtle bottom-up scrim (transparent → rgba(0,0,0,0.35) over the lower 40%)
   to separate the quote from the floor without a text shadow. Layered over
   the shared hero overlay. */
.hero.hero-full::after {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 40%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.5) 100%);
}

/* Quote pinned to the site's left axis (§3, Michael's choice). To re-center it
   someday, revert these three rules to `text-align: center` and restore
   `margin: 0 auto` on the pull-quote (the hero-content padding keeps it in the
   lower third either way). */
.hero-quote {
  text-align: left;
}

.hero-quote .pull-quote {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  color: var(--color-paper);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.hero-quote .pull-quote-attribution {
  text-align: left;
  color: var(--color-paper);
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* ---------- Homepage intro (asymmetric, centered gutter) ---------- */

/* Breathing room after the full-height hero. */
.home-intro {
  padding: var(--space-6) 0;
}

/* Mobile: single column, page-edge padding on both blocks. */
.home-intro-body {
  padding: 0 var(--space-3);
}

.home-intro-body p {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.55;
  margin: 0 0 var(--space-3);
}

.home-intro-media {
  padding: 0 var(--space-3);
  margin-top: var(--space-4);
}

.home-intro-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Desktop: the two blocks split at the page's vertical centerline, so the empty
   channel between them sits dead-center. The text is pinned to the site's left
   axis (the same content edge .container uses) and ends a half-gutter left of
   center; the landscape photo starts a half-gutter right of center and runs out
   to a page-margin inset on the right. Both inner edges are therefore
   equidistant from the centerline, while the photo stays the larger block —
   widths are deliberately unequal, only the gutter is symmetric. */
@media (min-width: 900px) {
  .home-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .home-intro-body {
    padding-left: max(var(--space-3), calc(50vw - var(--content-max-wide) / 2 + var(--space-3)));
    padding-right: calc(var(--space-4) / 2);
  }
  .home-intro-media {
    margin-top: 0;
    padding-left: calc(var(--space-4) / 2);
    padding-right: var(--space-3);
  }
}

@media (max-width: 700px) {
  .home-intro {
    padding: var(--space-5) 0;
  }
}

/* ---------- Homepage video feature ---------- */

/* Wide (~70vw) 16:9 clip centered on the page to sit under the centered
   section title. Paused by default (poster + play); the player loads with full
   native controls on click. */
.home-video-frame {
  width: min(70vw, 960px);
  margin: 0 auto;
}

.home-video-more {
  margin-top: var(--space-3);
  text-align: center;
}

@media (max-width: 899px) {
  .home-video-frame {
    width: 100%;
  }
}

/* ---------- Homepage recent engagements (single-column list) ---------- */

/* A calendar-like column centered under its section title: each entry separated
   by a hairline rule so six dates read as a rhythmic list, not a grid. */
.home-engagements {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}

.home-engagements .event-compact {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-line);
}

.home-engagements .event-compact:first-child {
  border-top: none;
  padding-top: 0;
}

.home-engagements-more {
  margin-top: var(--space-4);
  text-align: center;
}

/* ---------- Pull quote ---------- */

.pull-quote {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-style: italic;
  max-width: 800px;
  margin: 0 auto var(--space-2);
}

.pull-quote-attribution {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

/* ---------- Reveal on scroll ---------- */

/* Hidden state is opt-in via .reveal-enabled on <html> (set synchronously by an
   is:inline head script in Layout.astro). No-JS visitors never get the class, so
   content is simply visible; see CLAUDE.md §5. */
.reveal-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.reveal-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-enabled [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Date chip ---------- */

.date-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 76px;
  padding: var(--space-1) 0;
  border: 1px solid var(--color-line);
  flex-shrink: 0;
}

.date-chip .month {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.date-chip .day {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1.1;
}

.date-chip .year {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--color-ink-soft);
}

/* ---------- Event card ---------- */

.event-card {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-line);
  align-items: flex-start;
}

.event-card .event-thumb {
  width: 160px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 3px;
}

.event-card .event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}

.event-card:hover .event-thumb img {
  transform: scale(1.02);
}

.event-card .event-body {
  flex: 1;
  min-width: 0;
}

.event-card h3 {
  margin-bottom: 0.3em;
}

.event-card h3 a {
  transition: color 200ms var(--ease-out);
}

.event-card h3 a:hover,
.event-card h3 a:focus-visible {
  color: var(--color-accent-dark);
}

.event-meta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  margin-bottom: 0.6em;
}

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

.event-meta a:hover {
  color: var(--color-accent-dark);
  border-color: var(--color-accent);
}

.event-description {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-ink);
}

.event-description strong {
  font-weight: 600;
}

.event-description em {
  font-style: italic;
}

.event-card.is-past {
  opacity: 0.85;
}

.event-card.is-past .event-thumb img {
  filter: grayscale(30%);
  opacity: 0.7;
}

.event-card.is-past .event-description,
.event-card.is-past h3 {
  color: var(--color-ink-soft);
}

.view-event-link {
  display: inline-block;
  margin-top: 0.4em;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

@media (max-width: 700px) {
  .event-card {
    flex-direction: column;
  }
  .event-card .event-thumb {
    width: 100%;
    aspect-ratio: 3 / 2;
  }
}

/* Compact homepage "Recent engagements" variant — Schedule typography,
   no thumbnail, one repertoire line, in a 2×2 grid. */

.event-compact-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-4);
}

@media (max-width: 760px) {
  .event-compact-row {
    grid-template-columns: 1fr;
  }
}

.event-compact {
  display: block;
}

.event-compact h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 0.3em;
}

/* Date/venue and repertoire get the larger relative bump so the list fills its
   column confidently; title still reads largest (title > repertoire > date). */
.event-compact .event-meta {
  font-size: 1rem;
  margin-bottom: 0;
}

.event-compact-program {
  font-family: var(--font-serif);
  color: var(--color-ink-soft);
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0.5em 0 0;
}

/* ---------- Instagram grid ---------- */

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 900px;
  margin: 0 auto;
}

.instagram-grid a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.instagram-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}

.instagram-grid a:hover img,
.instagram-grid a:focus-visible img {
  transform: scale(1.04);
}

@media (max-width: 700px) {
  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
  }
}

/* ---------- Photo gallery ---------- */

/* Masonry via CSS columns: photos keep their natural aspect ratio (no crop),
   flowing top-to-bottom then across columns. */
.photo-grid {
  column-count: 2;
  column-gap: var(--space-2);
}

@media (min-width: 768px) {
  .photo-grid {
    column-count: 3;
    column-gap: var(--space-3);
  }
}

.photo-item {
  margin: 0 0 var(--space-2);
  break-inside: avoid;
}

@media (min-width: 768px) {
  .photo-item {
    margin-bottom: var(--space-3);
  }
}

.photo-grid button {
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 3px;
}

.photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 400ms var(--ease-out);
}

.photo-grid button:hover img {
  transform: scale(1.02);
}

.photo-credit {
  margin: 0.5em 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  text-align: center;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 26, 26, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox figcaption {
  color: var(--color-paper);
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  margin-top: var(--space-2);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-paper);
  font-size: 2rem;
  cursor: pointer;
  padding: var(--space-2);
  line-height: 1;
}

.lightbox-close {
  top: var(--space-2);
  right: var(--space-2);
}

.lightbox-prev {
  left: var(--space-2);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: var(--space-2);
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Video list ---------- */

.video-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 900px;
  margin: 0 auto;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-ink);
  overflow: hidden;
  /* Warm-gray hairline so the frame reads as an intentional element on the
     cream ground rather than a loose object floating on it. */
  border: 1px solid var(--color-line);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
  background: linear-gradient(160deg, #2c2c2c, #141414);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-poster .play-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid rgba(250, 249, 247, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-paper);
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out);
}

.video-poster:hover .play-ring {
  transform: scale(1.06);
  background: rgba(250, 249, 247, 0.1);
}

.video-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  margin-top: var(--space-2);
  text-align: center;
}

/* ---------- Video page: hero player + thumbnail selector (§7) ---------- */

.video-hero {
  max-width: 900px;
  margin: 0 auto;
}

.video-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4) var(--space-3);
  max-width: 900px;
  margin: var(--space-5) auto 0;
}

@media (max-width: 700px) {
  .video-thumbs {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3) var(--space-2);
  }
}

.video-thumb {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.video-thumb-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  /* Same hairline framing as the hero/embeds (§8). */
  background: var(--color-ink) center / cover no-repeat;
  border: 1px solid var(--color-line);
  overflow: hidden;
}

/* Dim wash so the small play mark reads on any thumbnail; lightens on hover. */
.video-thumb-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.3);
  transition: background 200ms var(--ease-out);
}

.video-thumb:hover .video-thumb-frame::before,
.video-thumb:focus-visible .video-thumb-frame::before {
  background: rgba(20, 20, 20, 0.12);
}

.video-thumb .play-ring {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(250, 249, 247, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-paper);
  transition: transform 200ms var(--ease-out);
}

.video-thumb:hover .play-ring {
  transform: scale(1.08);
}

.video-thumb-caption {
  margin-top: var(--space-2);
  font-size: 0.95rem;
}

/* The clip currently loaded in the hero. */
.video-thumb.is-active .video-thumb-frame {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.video-thumb.is-active .video-thumb-frame::before {
  background: rgba(20, 20, 20, 0.12);
}

/* ---------- Press kit ---------- */

.press-section {
  margin-bottom: var(--space-5);
}

.press-section h2 {
  border-bottom: 1px solid var(--color-line);
  padding-bottom: var(--space-1);
  margin-bottom: var(--space-2);
}

.press-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.press-links a {
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

/* Intro line aligned with the section headings below it, not centered. */
.press-lead {
  text-align: left;
  max-width: var(--content-max);
  margin-right: auto;
}

/* §11a: download lists pinned to the site's left axis, with a single
   portrait/performance photo in the right region alongside them — the
   homepage's text-left / image-right balance, applied here. Single column
   below 1000px (photo follows the lists). */
.press-docs {
  max-width: var(--content-max);
}

.press-aside {
  margin: 0 0 var(--space-5);
  max-width: 480px;
}

.press-aside img {
  display: block;
  width: 100%;
  height: auto;
}

.press-aside figcaption {
  margin-top: 0.5em;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

@media (min-width: 1000px) {
  .press-grid {
    display: grid;
    grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
    column-gap: 64px;
    align-items: start;
  }
  .press-aside {
    margin: 0;
    max-width: none;
  }
}

/* The downloadable-photos block keeps the document lists' measure and axis. */
.press-photos-block {
  max-width: var(--content-max);
}

/* Downloadable press photos. Two columns so five items fill evenly (2/2/1)
   instead of leaving an orphaned gap in a three-up grid. */
.press-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-3);
}

.press-photo {
  margin: 0;
}

.press-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 3px;
}

/* Credit on one line, download link on the line beneath, both left-aligned to
   the photo's edge. */
.press-photo figcaption {
  display: block;
  margin-top: 0.6em;
}

.press-photo-credit {
  display: block;
  /* Reserve the line even when a photo has no credit, so the download links
     across a row stay on a shared baseline. */
  min-height: 1.5em;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

/* Download link styled to match the plain underlined document links above,
   rather than the old small-caps button. */
.press-photo-download {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

/* ---------- About redesign variants (§3) ---------- */

/* The biography proper, framed as a discrete reusable asset: hairline rules
   above and below, so an organizer copying it sees where it begins and ends. */
.bio-asset {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding: var(--space-3) 0;
}

.bio-asset p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.7;
  margin: 0 0 var(--space-2);
}

.bio-asset p:last-child {
  margin-bottom: 0;
}

/* Usage conditions: a caption on the asset, not another body paragraph. */
.bio-conditions {
  margin: var(--space-2) 0 0;
  max-width: 62ch;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--color-ink-soft);
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

/* Press-kit callout beneath the bio (§10) — a restrained labelled link that
   gives the lower right column a purpose without competing with the bio. */
.about-presskit {
  margin-top: var(--space-4);
}

.about-presskit .label {
  display: block;
  margin-bottom: 0.5em;
}

.about-presskit a {
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

/* Variant B — stacked, left-aligned */
.about-portrait--stacked {
  max-width: 480px;
  margin: 0 0 var(--space-4);
}

.about-stacked .bio-asset,
.about-stacked .bio-conditions {
  max-width: 68ch;
}

/* Variant A — two column at ≥1200px (single column, danger-zone-free, below) */
.about-two-col {
  display: block;
}

.about-two-col .about-portrait--aside {
  max-width: 480px;
  margin: 0 0 var(--space-4);
}

/* Cap the biography measure so it reads well filling the right column and never
   goes tight in the 1024–1199 single-column band. */
.about-main {
  max-width: 66ch;
}

/* Sponsors: three-across below 1200, subordinate vertical stack in the aside. */
.about-sponsors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-3) var(--space-4);
  margin: var(--space-4) 0;
}

.about-sponsors .affiliation-item {
  max-width: 150px;
  text-align: center;
}

/* Larger than the default affiliation caption, for legibility beneath the
   bigger logos. */
.about-sponsors .affiliation-item .caption {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Two-column at ≥1000px (was 1200px, which left common laptop/split-screen
   widths on the single-column stack: portrait, bio, then horizontal logos —
   read as broken. 1000px keeps the columns comfortable while engaging the
   intended portrait+logos-left / bio-right layout for most desktop views). */
@media (min-width: 1000px) {
  .about-two-col {
    display: grid;
    grid-template-columns: 38fr 62fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "portrait bio"
      "sponsors bio";
    column-gap: 64px;
    row-gap: var(--space-3);
    align-items: start;
  }
  .about-two-col .about-portrait--aside {
    grid-area: portrait;
    margin: 0;
  }
  .about-two-col .about-sponsors {
    grid-area: sponsors;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--space-3);
    margin: var(--space-3) 0 0;
  }
  .about-two-col .about-main {
    grid-area: bio;
  }
  /* Subordinate to the portrait, left-aligned, all sized to one common width so
     the column reads as a tidy stack; heights vary with each logo's aspect. */
  .about-sponsors .affiliation-item {
    max-width: 100%;
    text-align: left;
  }
  .about-sponsors .affiliation-item img {
    margin: 0 0 0.5em;
    width: 100%;
    max-width: 100%;
    height: auto;
    /* Same width as the portrait, but cap the height so a near-square logo
       (Pirastro) doesn't tower over the others; taller logos crop equally
       from top and bottom. */
    max-height: 185px;
    object-fit: cover;
    object-position: center;
  }
}

/* ---------- Affiliations ---------- */

.affiliation-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-4) 0;
}

.affiliation-item {
  text-align: center;
  max-width: 220px;
}

.affiliation-item img {
  filter: grayscale(100%);
  opacity: 0.75;
  margin: 0 auto var(--space-1);
}

.affiliation-item .caption {
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  font-style: italic;
  font-family: var(--font-serif);
}

/* ---------- Forms ---------- */

.contact-form {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-row label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4em;
  color: var(--color-ink-soft);
}

.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75em;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
  color: var(--color-ink);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success,
.form-error {
  display: none;
  padding: var(--space-2);
  border: 1px solid var(--color-line);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.form-success.is-visible,
.form-error.is-visible {
  display: block;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-line);
  padding: var(--space-4) 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

/* ---------- Utility ---------- */

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-0 { margin-top: 0; }

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