/* Matt Keddie Music
   Stage-poster type over a dimmed live video. One bold move: the gig dates. */

/* Self-hosted fonts (SIL OFL). No third-party requests for visitors. */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/figtree-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #f4ece1;          /* warm stage-light white */
  --ink-soft: #c9bcab;     /* secondary text */
  --ink-faint: #8f8374;    /* tertiary, past gigs */
  --amber: #c08e3a;        /* brand gold as text/accent on the page background */
  --amber-fill: #c08e3a;   /* brand gold as a fill (buttons); same in both themes */
  --amber-light: #dcae5e;  /* fill hover */
  --amber-soft: rgba(192, 142, 58, 0.2);
  --amber-edge: rgba(192, 142, 58, 0.65);
  --on-amber: #1a120c;     /* text on gold fills */
  --smoke: rgba(24, 17, 12, 0.72);   /* translucent panels over the video */
  --smoke-solid: #1a120c;  /* page background */
  --raised: #241a12;       /* dialogs */
  --line: rgba(244, 236, 225, 0.14);
  --chip: rgba(244, 236, 225, 0.1);
  --field-bg: rgba(10, 6, 4, 0.55);
  --field-border: rgba(244, 236, 225, 0.22);
  --header-bg: rgba(20, 13, 8, 0.86);
  --footer-bg: rgba(20, 13, 8, 0.9);
  --ghost-bg: rgba(20, 13, 8, 0.4);
  --ghost-bg-hover: rgba(20, 13, 8, 0.6);
  --ghost-border: rgba(244, 236, 225, 0.4);
  --veil-top: rgba(20, 13, 8, 0.6);
  --veil-mid: rgba(20, 13, 8, 0.45);
  --veil-bottom: rgba(20, 13, 8, 0.85);
  --veil-page: rgba(20, 13, 8, 0.72);
  --video-filter: var(--video-filter);
  --hero-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
  --skeleton: rgba(244, 236, 225, 0.1);
  --picker-filter: invert(0.85);
  --danger: #ff7a6b;
  --danger-soft: rgba(255, 122, 107, 0.15);

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --measure: 68ch;
  --radius-s: 6px;
  --radius-m: 14px;
  --header-h: 72px;

  color-scheme: dark;
}

/* Light theme: warm paper, same gold. Gold text is darkened so it stays readable on light. */
:root[data-scheme="light"] {
  --ink: #23180f;
  --ink-soft: #5b4938;
  --ink-faint: #6f5d4b;
  --amber: #85591a;
  --amber-soft: rgba(192, 142, 58, 0.2);
  --amber-edge: rgba(133, 89, 26, 0.6);
  --smoke: rgba(250, 245, 237, 0.86);
  --smoke-solid: #f6efe4;
  --raised: #fffaf2;
  --line: rgba(35, 24, 15, 0.14);
  --chip: rgba(35, 24, 15, 0.07);
  --field-bg: #fffaf2;
  --field-border: rgba(35, 24, 15, 0.25);
  --header-bg: rgba(246, 239, 228, 0.9);
  --footer-bg: rgba(240, 231, 217, 0.95);
  --ghost-bg: rgba(255, 250, 242, 0.55);
  --ghost-bg-hover: rgba(255, 250, 242, 0.85);
  --ghost-border: rgba(35, 24, 15, 0.35);
  --veil-top: rgba(246, 239, 228, 0.8);
  --veil-mid: rgba(246, 239, 228, 0.72);
  --veil-bottom: rgba(246, 239, 228, 0.94);
  --veil-page: rgba(246, 239, 228, 0.9);
  --video-filter: saturate(0.6) brightness(1.05);
  --hero-shadow: none;
  --skeleton: rgba(35, 24, 15, 0.08);
  --picker-filter: none;
  --danger: #b3261e;
  --danger-soft: rgba(179, 38, 30, 0.1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--smoke-solid);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}

img, video, iframe { display: block; max-width: 100%; }
a { color: var(--amber); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--amber-fill); color: var(--on-amber); padding: 10px 16px; border-radius: var(--radius-s);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ── Background video, dimmed ───────────────────────────────── */
.backdrop {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100lvh;            /* stops iOS jumping as the toolbar hides */
  z-index: -1;
  overflow: hidden;
  background: var(--smoke-solid) url("/assets/bg-poster.jpg") center / cover no-repeat;
}
.backdrop video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.55);
}
.backdrop::after {
  /* the dim: warm smoke, heavier at the bottom where text sits */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--veil-top) 0%, var(--veil-mid) 35%, var(--veil-bottom) 100%);
}
.backdrop-toggle {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 20;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--smoke); color: var(--ink-soft);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.backdrop-toggle:hover { color: var(--ink); border-color: var(--ink-soft); }
.backdrop-toggle svg { width: 16px; height: 16px; }
.backdrop-toggle[hidden] { display: none; }

/* ── Header / nav ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  min-height: var(--header-h);
  padding: 10px var(--gutter);
  padding-top: max(10px, env(safe-area-inset-top));
  transition: background-color 0.25s ease;
}
.site-header.is-scrolled, .site-header.is-open {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand img { height: clamp(40px, 5vw, 54px); width: auto; }
.brand { transition: opacity 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .brand { transition: none; } }
.brand-text { font: 800 1.6rem/1 var(--display); letter-spacing: 0.01em; white-space: nowrap; }

.nav-toggle {
  display: none;
  align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  font: 600 0.95rem var(--body); cursor: pointer;
}
.nav-toggle .bars { width: 18px; height: 12px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span { top: 5px; }
.nav-toggle .bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 999px;
}
.site-nav a:hover { color: var(--amber); }
.site-nav a[aria-current="page"] { color: var(--amber); }
.site-nav a.nav-cta { background: var(--amber-fill); color: var(--on-amber); font-weight: 600; margin-left: 8px; }
.site-nav a.nav-cta:hover { background: var(--amber-light); color: var(--on-amber); }
.ext { width: 0.8em; height: 0.8em; margin-left: 6px; opacity: 0.7; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  /* Closed by default in CSS, so the menu never shows open if scripts fail.
     Positioned under the header itself, wherever the header sits. */
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 8px var(--gutter) 28px;
    background: var(--smoke-solid);
    border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .site-header.is-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a {
    width: 100%; min-height: 58px; padding: 0 2px; border-radius: 0;
    font: 700 1.7rem/1 var(--display); letter-spacing: 0.01em;
  }
  .site-nav a.nav-cta { margin: 16px 0 0; justify-content: center; border-radius: 999px; font-size: 1.4rem; }
}

/* ── Layout ─────────────────────────────────────────────────── */
main { flex: 1; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 112px); }
.panel {
  background: var(--smoke);
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 0.95; margin: 0; letter-spacing: 0.005em; }
h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink); }
.muted { color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem var(--body); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--amber-fill); color: var(--on-amber); }
.btn-primary:hover { background: var(--amber-light); color: var(--on-amber); }
.btn-ghost { background: var(--ghost-bg); color: var(--ink); border-color: var(--ghost-border); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--ghost-bg-hover); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Home hero ──────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(32px, 7vh, 80px);
}
.hero-name {
  font-size: clamp(4.6rem, 17vw, 13.5rem);
  line-height: 0.82;
  font-weight: 800;
  letter-spacing: -0.005em;
  margin-left: -0.04em;
  text-shadow: var(--hero-shadow);
}
.hero-title {
  font-size: clamp(2.9rem, 7.4vw, 6.6rem);
  line-height: 0.9;
  font-weight: 800;
  max-width: 14ch;
  margin-left: -0.03em;
  text-wrap: balance;
  text-shadow: var(--hero-shadow);
}
/* Accent words in the headline: brand gold, kept on one line */
.hero-title .hl { color: var(--amber); white-space: nowrap; }
.hero-tag {
  margin: 18px 0 30px;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--ink);
  max-width: 36ch;
}

.next-gig {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 24px;
  margin-top: clamp(36px, 6vh, 64px);
  padding: 16px 20px;
  max-width: 720px;
  color: var(--ink); text-decoration: none;
}
.next-gig:hover { border-color: var(--amber-edge); color: var(--ink); }
.next-gig .label { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.next-gig .day { font: 800 3.2rem/0.85 var(--display); color: var(--amber); }
.next-gig .day small { display: block; font-size: 1.05rem; color: var(--ink); font-weight: 700; margin-top: 4px; }
.next-gig .where { font-weight: 600; line-height: 1.35; }
.next-gig .where span { display: block; font-weight: 400; color: var(--ink-soft); }
.next-gig .arrow { color: var(--ink-soft); font-size: 0.95rem; white-space: nowrap; }
.next-gig[hidden] { display: none; }
@media (max-width: 520px) {
  .next-gig { grid-template-columns: auto 1fr; }
  .next-gig .arrow { grid-column: 1 / -1; }
}

/* ── Bio ────────────────────────────────────────────────────── */
.bio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.bio-photo { border-radius: var(--radius-m); overflow: hidden; background: var(--smoke); min-height: 100%; }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 40%; }
.bio-copy { padding: clamp(24px, 4vw, 44px); }
.bio-copy h2 { margin-bottom: 0.4em; }
.bio-copy .btn-row { margin-top: 28px; }
@media (max-width: 860px) {
  .bio { grid-template-columns: 1fr; }
  .bio-photo { aspect-ratio: 4 / 3; min-height: 0; }
}

/* ── Gallery ────────────────────────────────────────────────── */
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.gallery {
  display: grid; gap: 10px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(120px, 15vw, 210px);
}
.gallery button {
  padding: 0; border: 0; background: var(--smoke); border-radius: var(--radius-s);
  overflow: hidden; cursor: zoom-in; position: relative;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, filter 0.3s ease; filter: brightness(0.92); }
.gallery button:hover img { transform: scale(1.03); filter: brightness(1); }
.gallery button:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.gallery button:nth-child(2) { grid-column: span 3; }
.gallery button:nth-child(3) { grid-column: span 3; }
.gallery button:nth-child(4) { grid-column: span 2; }
.gallery button:nth-child(5) { grid-column: span 2; }
.gallery button:nth-child(6) { grid-column: span 2; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 38vw; }
  .gallery button:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery button:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(10, 6, 4, 0.94); color: #f4ece1;
}
.lightbox::backdrop { background: rgba(10, 6, 4, 0.9); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox figure { margin: 0; display: grid; place-items: center; height: 100dvh; padding: 56px 0; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: var(--radius-s); }
.lightbox .lb-btn {
  width: 48px; height: 48px; margin: auto; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--smoke); color: var(--ink);
  cursor: pointer; font-size: 1.4rem;
}
.lightbox .lb-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; }
@media (max-width: 640px) {
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox .lb-prev, .lightbox .lb-next { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); }
  .lightbox .lb-prev { left: calc(50% - 60px); }
  .lightbox .lb-next { left: calc(50% + 12px); }
  .lightbox figure { padding: 64px 8px 88px; }
}

/* ── Page intro (Shows / Videos) ────────────────────────────── */
.page-intro { padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(24px, 4vw, 40px); }
.page-title { font-size: clamp(3.8rem, 12vw, 8.5rem); line-height: 0.85; margin-bottom: 18px; }

/* ── Gig list: the bold bit ─────────────────────────────────── */
.gig-month { margin-top: clamp(28px, 4vw, 44px); }
.gig-month:first-child { margin-top: 0; }
.gig-month h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 700; color: var(--ink-soft);
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.gig-list { list-style: none; margin: 0; padding: 0; }
.gig {
  display: grid;
  grid-template-columns: clamp(78px, 11vw, 132px) 1fr auto;
  align-items: center;
  column-gap: clamp(14px, 3vw, 36px);
  padding: clamp(14px, 2vw, 22px) 0;
  border-bottom: 1px solid var(--line);
}
.gig-date { line-height: 0.8; }
.gig-date .num { display: block; font: 800 clamp(3.6rem, 8vw, 6rem)/0.8 var(--display); color: var(--amber); letter-spacing: -0.01em; }
.gig-date .dow { display: block; margin-top: 8px; font: 700 1.05rem/1 var(--display); letter-spacing: 0.02em; color: var(--ink); }
.gig-venue { font: 700 clamp(1.5rem, 3vw, 2.2rem)/1.02 var(--display); margin: 0 0 6px; }
.gig-meta { margin: 0; color: var(--ink-soft); }
.gig-meta strong { color: var(--ink); font-weight: 600; }
.gig-notes { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.gig-type { margin: 0 0 6px; font-size: 0.92rem; font-weight: 600; color: var(--amber); }
.gig-type a { color: inherit; }
.gig-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.gig-actions .btn { white-space: nowrap; min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.btn-soon { background: transparent; color: var(--amber); border: 1px dashed var(--amber-edge); cursor: default; }
.gig-soon-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: -4px; }
@media (max-width: 600px) {
  .gig { grid-template-columns: 74px 1fr; row-gap: 12px; }
  .gig-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
  .gig-soon-note { margin-top: 0; }
}

.past-gigs { margin-top: clamp(40px, 6vw, 72px); }
.past-gigs summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; color: var(--ink-soft); font-weight: 600;
}
.past-gigs summary::-webkit-details-marker { display: none; }
.past-gigs summary::before { content: "+"; font: 700 1.4rem/1 var(--display); color: var(--amber); width: 14px; }
.past-gigs[open] summary::before { content: "–"; }
.past-gigs .gig { opacity: 0.75; }
.past-gigs .gig-date .num { color: var(--ink-faint); font-size: clamp(2.6rem, 5vw, 3.6rem); }

.state { padding: clamp(24px, 4vw, 40px); }
.state h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.state .btn-row { margin-top: 20px; }
.skeleton { height: 96px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.skeleton::after {
  content: ""; position: absolute; inset: 22px auto 22px 0; width: 60%;
  background: var(--skeleton);
  border-radius: var(--radius-s);
}

.shows-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.book-card { padding: 24px; position: sticky; top: calc(var(--header-h) + 16px); }
.book-card h2 { font-size: 2rem; margin-bottom: 10px; }
.book-card p { font-size: 0.98rem; color: var(--ink-soft); }
.book-card .btn { width: 100%; }
@media (max-width: 960px) {
  .shows-layout { grid-template-columns: 1fr; }
  .book-card { position: static; }
}

/* ── Videos ─────────────────────────────────────────────────── */
.video-section { margin-top: clamp(40px, 6vw, 72px); }
.video-section:first-child { margin-top: 0; }
.video-section header { margin-bottom: 20px; }
.video-section header p { margin: 8px 0 0; color: var(--ink-soft); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.video-grid.single { grid-template-columns: minmax(0, 880px); }
.video-card { margin: 0; }
.yt {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius-m); overflow: hidden;
  background: var(--smoke-solid); border: 1px solid var(--line);
}
.yt > a {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; cursor: pointer;
  background: radial-gradient(ellipse at 50% 40%, #3a2716, #140d08 75%);
}
.yt img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); transition: filter 0.2s ease; }
.yt > a:hover img { filter: brightness(0.95); }
.yt .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--amber-fill); color: var(--on-amber); display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.yt .play svg { width: 26px; height: 26px; margin-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 64px) max(28px, env(safe-area-inset-bottom));
}
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; }
.footer-grid h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 10px; }
.footer-email { font: 600 clamp(1.1rem, 2.4vw, 1.4rem) var(--body); color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 2px; word-break: break-word; }
.footer-email:hover { color: var(--amber); }
.socials { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.socials a {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); color: var(--amber);
}
.socials a:hover { background: var(--amber-fill); color: var(--on-amber); border-color: var(--amber-fill); }
.socials svg { width: 20px; height: 20px; }
.footer-small { margin-top: 32px; font-size: 0.85rem; color: var(--ink-soft); display: grid; gap: 4px; }
.footer-small p { margin: 0; max-width: none; }
.footer-small a { color: inherit; }
.footer-links { display: flex; gap: 18px; margin-top: 6px !important; }
.footer-links a { min-height: 32px; display: inline-flex; align-items: center; }
.section-flush { padding-top: 0; }

/* Content pages sit over the video for their whole length, so dim it more. */
.page-content .backdrop::after { background: var(--veil-page); }


/* Gallery rhythm for any number of photos: rows alternate wide|narrow, narrow|wide */
.gallery-rhythm { grid-auto-rows: clamp(170px, 22vw, 300px); }
.gallery-rhythm button:nth-child(n) { grid-row: span 1; grid-column: span 2; }
.gallery-rhythm button:nth-child(4n+1),
.gallery-rhythm button:nth-child(4n+4) { grid-column: span 4; }
/* A lone photo at the end fills the row */
.gallery-rhythm button:last-child:nth-child(4n+1) { grid-column: span 6; }
@media (max-width: 640px) {
  .gallery-rhythm { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; }
  .gallery-rhythm button:nth-child(n) { grid-column: span 1; }
  .gallery-rhythm button:nth-child(4n+1),
  .gallery-rhythm button:nth-child(4n+4),
  .gallery-rhythm button:last-child:nth-child(4n+1) { grid-column: span 2; }
}

/* ── Light/dark switch ──────────────────────────────────────── */
.brand { margin-right: auto; }
.theme-toggle {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--ink-soft); color: var(--amber); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
:root[data-scheme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-scheme="light"] .theme-toggle .icon-moon { display: block; }
@media (max-width: 860px) {
  .theme-toggle { order: 2; }
  .nav-toggle { order: 3; }
}

/* ── Long-form pages (Privacy, Terms) ───────────────────────── */
.prose { padding: clamp(22px, 4vw, 44px); max-width: 760px; margin-bottom: clamp(48px, 8vw, 96px); }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 1.6em 0 0.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.35rem; margin: 1.3em 0 0.3em; }
.prose p { line-height: 1.65; }
.prose .updated { margin-top: 2em; font-size: 0.9rem; }
.prose .btn { min-height: 44px; }
.small-note { font-size: 0.9rem; margin-top: -0.4em; }
