/* site.css — the public page. Its own look, nothing from the admin's
   design system: warm paper and ink, a fiddle red and a teal from the
   whirligig's sails, a bookish serif for the big type.

   Light and dark follow the visitor's system setting. Every colour is
   declared once as light-dark(<light>, <dark>), so there is one palette
   to read. A browser too old for light-dark() (Safari before 17.5,
   Chrome before 123) gets the light inks plainly, from the block at
   the end of this file: keep its values in step with the light ones.

   Contrast, measured: red on paper 5.6:1, ink-soft on paper 7.9:1,
   teal on paper 5.4:1; dark red on night 7.7:1, dark ink-soft 8.6:1. */

:root {
  color-scheme: light dark;

  --paper: light-dark(#f7f1e6, #12151c);
  --paper-2: light-dark(#efe5d3, #181c25);
  --card: light-dark(#fffaf2, #1d222d);
  --ink: light-dark(#1b1f2a, #f2ece1);
  --ink-soft: light-dark(#4a4f5c, #bdb7ac);
  --line: light-dark(#dccfb8, #2c3240);
  --red: light-dark(#b8322a, #ff8a70);
  --on-red: light-dark(#ffffff, #1d0c08);
  --teal: light-dark(#1a6b64, #6fd3c6);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  /* Side margins never shrink inside a phone's safe area, should the
     page ever run edge to edge (a home-screen app, say). */
  --gutter: max(clamp(1.25rem, 5vw, 3rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --radius: 14px;
}

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

html {
  scroll-padding-top: 1rem;
  /* The parts the browser draws carry the page's inks too. */
  scrollbar-color: var(--ink-soft) var(--paper); accent-color: var(--red); caret-color: var(--red);
}
/* The section links glide, unless the visitor has asked for less motion. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
::selection { background: var(--red); color: var(--on-red); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--red); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0 0 0.5em; text-wrap: balance; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.quiet { color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: min(92svh, 56rem);
  display: grid;
  grid-template-rows: auto 1fr;
  color: #fbf6ec;
  isolation: isolate;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(10 12 18 / 0.55) 0%, rgb(10 12 18 / 0) 28%),
    linear-gradient(20deg, rgb(10 12 18 / 0.88) 10%, rgb(10 12 18 / 0.35) 55%, rgb(10 12 18 / 0.1) 100%);
}

.topnav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(1.1rem + env(safe-area-inset-top)) var(--gutter) 1.1rem;
  max-width: var(--wrap); width: 100%; margin: 0 auto;
}
.topnav ul { display: flex; gap: clamp(0.9rem, 3vw, 2rem); list-style: none; margin: 0; padding: 0; }
.topnav a { color: inherit; text-decoration: none; font-weight: 600; letter-spacing: 0.01em; }
/* Padding makes each link a comfortable tap, without moving the text. */
.topnav ul a { display: inline-block; padding: 0.6rem 0.2rem; margin: -0.6rem -0.2rem; }
.topnav ul a:hover { text-decoration: underline; }
.brand { font-family: var(--serif); font-size: 1.35rem; }
/* On a phone the five links need the room, and the name is the first
   thing under them anyway. */
@media (max-width: 560px) {
  .topnav { justify-content: flex-end; }
  .brand { display: none; }
  .topnav ul { flex-wrap: wrap; justify-content: flex-end; gap: 0 0.5rem; font-size: 0.95rem; }
  .topnav ul a { min-height: 44px; margin: 0; padding: 0 0.2rem; display: inline-flex; align-items: center; }
}

.hero-body {
  align-self: end;
  max-width: var(--wrap); width: 100%; margin: 0 auto;
  padding: 2rem var(--gutter) clamp(2.5rem, 8vh, 5rem);
}
/* The band's own logo is the heading. Its artwork has a little
   padding round the letters, so it steps back by that much to line the
   W up with the text below. */
.hero h1.logo { margin: 0.1rem 0 1.25rem; }
.hero h1.logo img { display: block; width: min(100%, 36rem); height: auto; translate: -1.1% 0; }
.kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 1rem; opacity: 0.92;
}
.hero .lede { max-width: 36rem; font-size: clamp(1.1rem, 2.2vw, 1.3rem); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
/* The hero is a photo in both schemes, so its button keeps the light
   red whatever the scheme: white on it is 5.9:1. */
.button {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.4rem;
  border-radius: 999px; font-weight: 700; text-decoration: none;
  background: #b8322a; color: #fff; border: 2px solid #b8322a;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.button:hover { background: #9c2a23; border-color: #9c2a23; }
@media (prefers-reduced-motion: no-preference) { .button:hover { transform: translateY(-1px); } }
.button-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.7); }
.button-ghost:hover { background: rgb(255 255 255 / 0.12); border-color: #fff; }

/* ── Sections ──────────────────────────────────────────────────────── */

.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--paper-2); }

.section-title { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; max-width: 22ch; margin-bottom: 1.5rem; }
.eyebrow {
  display: block; margin-bottom: 0.7rem;
  font: 700 0.8rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red);
}

/* A section heading with the caller's sketch of a dance beside it. The
   drawings and their motion are generated by tools/diagrams.py; their
   inks are set here. On a phone the sketch sits above its heading. */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.section-head .section-title { margin-bottom: 0; }
.dance { flex: none; margin: 0; }
.dance-wide { width: clamp(9rem, 20vw, 14rem); }
.dance-narrow { width: clamp(5.5rem, 10vw, 7.5rem); }
.dance-ring { width: clamp(7.5rem, 13vw, 10rem); }
@media (max-width: 560px) {
  .section-head { flex-direction: column-reverse; align-items: start; gap: 1rem; }
  .dance-wide { width: min(100%, 14rem); }
}
.diagram { display: block; width: 100%; height: auto; overflow: visible; }
.d-a { fill: var(--teal); }
.d-b { fill: var(--dance-ground, var(--paper)); stroke: var(--red); stroke-width: 3.5; }
.d-hands { stroke: var(--ink-soft); stroke-width: 2.5; stroke-linecap: round; }
.d-move { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 6; stroke-linecap: round; }
.d-head { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.section-alt { --dance-ground: var(--paper-2); }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.15fr 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.card h3 { font-size: 1.2rem; }
.card ul + h3 { margin-top: 1.5rem; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 0.75rem; height: 0.75rem; border-radius: 50% 0 50% 50%;
  background: var(--teal); transform: rotate(-45deg);
}

/* ── Gigs ──────────────────────────────────────────────────────────── */

.gigs { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; gap: 0.75rem; }
/* Each year heads its dates and stays pinned to the top of the screen
   while they scroll past, until the next year takes its place, like
   the top of a calendar page. Wherever you are in the list, the year
   is in view without hunting back up for it. */
.gigs .year-break {
  position: sticky; top: env(safe-area-inset-top); z-index: 1;
  margin: 0.5rem 0 -0.25rem; padding: 0.75rem 0 0.6rem;
  background: var(--paper); border-bottom: 1px solid var(--line);
  font: 700 0.95rem/1 var(--sans); letter-spacing: 0.14em; color: var(--ink);
}
.gigs .year-break:first-child { margin-top: 0; }
/* A phone's screen has rounded corners, and Safari can scroll the page
   right up into them: pinned to the top, the year sits low enough that
   the curve doesn't crowd it (clear of a ~55pt corner radius). */
@media (max-width: 640px) { .gigs .year-break { padding-top: 1.4rem; } }
.gig {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1.25rem 0.9rem 0.9rem;
}
.gig h3 { margin: 0 0 0.15rem; font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
.gig h3 a { color: inherit; text-decoration: none; }
/* A public dance is one link to its own page: the venue's link stretches
   over the whole tile, so anywhere on it goes there. */
.gig-public { grid-template-columns: auto 1fr auto; }
.gig-go { color: var(--ink-soft); display: grid; }
.gig-go .icon { width: 1.4rem; height: 1.4rem; }
.gig-public:hover .gig-go { color: var(--red); }
.gig-public { position: relative; transition: border-color 0.15s ease, box-shadow 0.15s ease, translate 0.15s ease; }
.gig-public h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.gig-public:hover { border-color: var(--red); box-shadow: 0 8px 22px -14px rgb(0 0 0 / 0.4); }
.gig-public:has(a:focus-visible) { outline: 3px solid var(--red); outline-offset: 3px; }
.gig-public h3 a:focus-visible { outline: none; }
@media (prefers-reduced-motion: no-preference) { .gig-public:hover { translate: 0 -1px; } }
.gig p { margin: 0; color: var(--ink-soft); }
/* "Add to your diary": one tap and a public dance is in the visitor's
   own calendar. Quiet until wanted; the calendar gives a little nod
   when you reach for it. */
.diary {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.5rem; margin-top: 0.15rem;
  color: var(--teal); font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.diary .icon { width: 1.15em; height: 1.15em; flex: none; }
.diary:hover span { text-decoration: underline; text-underline-offset: 0.2em; }
@media (prefers-reduced-motion: no-preference) {
  .diary .icon { transition: rotate 180ms cubic-bezier(0.16, 1, 0.3, 1), scale 180ms cubic-bezier(0.16, 1, 0.3, 1); }
  .diary:hover .icon, .diary:focus-visible .icon { rotate: -10deg; scale: 1.12; }
}

.date-tile {
  display: grid; justify-items: center; align-content: center;
  width: 4.75rem; aspect-ratio: 1; border-radius: 10px;
  background: var(--red); color: var(--on-red); line-height: 1;
}
.dt-wd, .dt-m { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.dt-d { font: 700 2rem/1.05 var(--serif); }

.gigs-intro { max-width: 44rem; margin-bottom: 1.75rem; }

/* A private function: the same row, quieter. The date is outlined rather
   than filled and the card has no fill of its own, so the public dances
   stand out. "We're not free this date" says it in words: colour is
   never the only signal. */
.gig-booked { background: transparent; border-style: dashed; padding-block: 0.6rem; }
.gig-booked .date-tile {
  background: transparent; color: var(--teal);
  box-shadow: inset 0 0 0 2px var(--teal);
  width: 4.25rem;
}
.gig-booked .dt-d { font-size: 1.6rem; }
.gig-booked h3 { font-size: clamp(1.05rem, 2.2vw, 1.2rem); }


/* ── Video ─────────────────────────────────────────────────────────── */

.video { margin: 0; }
.video video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  background: #000; border-radius: var(--radius);
}

/* ── Photos ────────────────────────────────────────────────────────── */

.photos ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 4px;
  grid-auto-flow: column; grid-auto-columns: 78vw;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.photos li { scroll-snap-align: start; }
.photos img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 760px) {
  .photos ul { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
}

/* ── Feedback ──────────────────────────────────────────────────────── */

.quotes { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 760px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quotes figure {
  margin: 0; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.75rem 1.75rem 1.5rem;
}
.quotes figure::before {
  content: "\201C"; position: absolute; top: 0.4rem; left: 1.25rem;
  font: 700 4.5rem/1 var(--serif); color: var(--red);
}
.quotes blockquote { margin: 0; font: 1.15rem/1.55 var(--serif); }
.quotes figcaption { margin-top: 0.75rem; color: var(--ink-soft); font-weight: 600; }
.quotes figcaption::before { content: "— "; }

/* ── Music ─────────────────────────────────────────────────────────── */

.music { display: grid; gap: 2rem; align-items: start; }
/* The list's column is its own width, not its content's: an auto
   column followed the switch's text, so changing the sound nudged the
   list sideways. */
@media (min-width: 860px) { .music { grid-template-columns: 1fr 30rem; gap: 4rem; } }
.music-text p { max-width: 34rem; font-size: 1.15rem; }
/* Our badge beside the track list, on a disc: meadow green on white in
   the light, white on black in the dark. The disc is
   the image's own round background, so it is exactly the circle the
   badge's frame is drawn in. On a wide screen the words' column runs
   the list's full height, and the badge sits in the middle of what's
   left below the words; on a phone it sits, whole, above the list. */
.music-badge img {
  width: 100%; height: auto; border-radius: 50%;
  background: light-dark(#ffffff, #000000);
  box-shadow: 0 14px 30px -18px rgb(0 0 0 / 0.5);
}
.music-badge picture { display: block; }
@media (min-width: 860px) {
  .music { align-items: stretch; }
  .music-text { display: flex; flex-direction: column; }
  .music-badge { flex: 1; display: grid; place-items: center; padding-top: 1.5rem; }
  /* The width goes on the picture, not the image: a percentage of a
     box sized by its own content is circular, the image came out 0
     wide, and a 0-wide lazy image is never in view, so never loaded. */
  .music-badge picture { width: min(100%, 18rem); }
}
@media (max-width: 859px) {
  .music-badge { display: grid; justify-items: center; margin-top: 0.5rem; }
  .music-badge picture { width: 11rem; }
}

/* The CD (tracks.go, player.js). Without the script each track has the
   browser's own player beneath it; with it, .is-player, a round button
   on each, and a slider on the one playing. */
.album {
  width: min(100%, 30rem); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.45);
}
.album-head { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; justify-content: space-between; margin-bottom: 0.5rem; }
.album-head p { margin: 0; font-size: 1rem; }
.album-title cite { display: block; font: italic 700 1.25rem/1.3 var(--serif); }
.album-title span { color: var(--ink-soft); font-size: 0.9rem; }
/* Right-aligned, on the title's line or under it. Unlabelled to the eye
   (the choices say what they are); a screen reader hears "Sound
   quality". */
.album-head .sound { display: flex; margin-left: auto; font-size: 0.85rem; }
.sound-choices { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.sound-choices a { display: inline-grid; padding: 0.15rem 0.7rem; border-radius: 999px; color: var(--ink-soft); text-decoration: none; }
/* Each choice keeps room for its bold self, so choosing doesn't change
   its width. */
.sound-choices a::after { content: attr(data-text); font-weight: 600; height: 0; overflow: hidden; visibility: hidden; }
.sound-choices a:hover { color: var(--ink); }
.sound-choices a[aria-current] { background: var(--teal); color: var(--paper); font-weight: 600; }

.tracks { list-style: none; margin: 0; padding: 0; }
.track {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.25rem 0.75rem;
  padding: 0.6rem 0; border-top: 1px solid var(--line);
}
.track-play:not([hidden]) {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--red); cursor: pointer;
}
.track-play:hover { border-color: var(--red); }
.track-play:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.track-play .icon { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.track-play .i-play .icon { margin-left: 2px; }
.track .i-pause, .track.is-playing .i-play { display: none; }
.track.is-playing .i-pause { display: contents; }
.track-play span { display: contents; }
.track.is-playing .track-play { background: var(--red); border-color: var(--red); color: var(--on-red); }
.track-n { color: var(--ink-soft); font-variant-numeric: tabular-nums; min-width: 1.1rem; text-align: right; }
.album.is-player .track-n { display: none; }
.track-name { min-width: 0; line-height: 1.35; }
.track-title { font-weight: 600; }
.track-by { display: block; color: var(--ink-soft); font-size: 0.85rem; }
.track.is-current .track-title { color: var(--red); }
.track-time { color: var(--ink-soft); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.track audio { grid-column: 1 / -1; width: 100%; height: 2.5rem; }
.album.is-player .track audio { display: none; }
.track-seek { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.75rem; padding-top: 0.25rem; }
.track-seek input { flex: 1; min-width: 0; accent-color: var(--red); }
.track-clock { color: var(--ink-soft); font-size: 0.85rem; font-variant-numeric: tabular-nums; min-width: 2.5rem; text-align: right; }
.album-note { margin: 0.75rem 0 0; color: var(--ink-soft); font-size: 0.85rem; }

/* ── The band ──────────────────────────────────────────────────────── */

/* Uncropped: the caption names people left to right, so nobody at the
   edge may be trimmed off. */
.band-photo { margin: 0; }
.band-photo img { border-radius: var(--radius); width: 100%; }
.band-photo figcaption { margin-top: 0.6rem; color: var(--ink-soft); font-size: 0.95rem; }
.members { margin: 0; display: grid; }
.members div { display: grid; grid-template-columns: 13.5rem 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.members dt { font: 700 1.1rem var(--serif); }
.members dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 480px) { .members div { grid-template-columns: 1fr; gap: 0; } }

/* ── Contact ───────────────────────────────────────────────────────── */

/* A dark block in both schemes: in dark mode it lifts a step off the
   page rather than turning cream. */
.contact { background: light-dark(#1b1f2a, #1d222d); color: #f7f1e6; border-top: 1px solid var(--line); }
.contact .eyebrow { color: #ff9c85; }
/* The contact block is dark in both schemes, so its sketch is too. */
.contact { --dance-ground: light-dark(#1b1f2a, #1d222d); }
.contact .d-a { fill: #6fd3c6; }
.contact .d-b { stroke: #ff9c85; }
.contact .d-hands { stroke: #bdb7ac; }
.contact .d-move, .contact .d-head { stroke: #f7f1e6; }
.contact .lede { max-width: 40rem; font-size: 1.2rem; color: #d9d2c4; }
/* The ground is dark in both schemes, so a link takes the light coral. */
.contact .lede a { color: #ff9c85; }
.contact-ways { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 760px) { .contact-ways { grid-template-columns: 1fr 1fr; } }
.contact-way {
  display: grid; gap: 0.25rem; text-decoration: none; color: inherit;
  border: 1px solid rgb(255 255 255 / 0.22); border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  font: 700 clamp(1.35rem, 3.4vw, 2rem)/1.2 var(--serif); overflow-wrap: anywhere;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.contact-way span { font: 700 0.8rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; }
/* The form and the email each span the row, with Call and WhatsApp,
   the two ways by phone, side by side between them. The form leads:
   it's the one way that asks for everything. */
.contact-way-wide { grid-column: 1 / -1; }
.contact-way:hover { background: rgb(255 255 255 / 0.06); border-color: currentColor; }
.contact :focus-visible { outline-color: #ff9c85; }

/* ── Footer ────────────────────────────────────────────────────────── */

.foot { padding: 2rem 0; color: var(--ink-soft); font-size: 0.95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
/* Facebook is where the band post news between gigs, so the link is a
   proper button with Meta's own logo, not a word in the small print. */
.foot .foot-facebook {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 1.15rem 0.5rem 0.55rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--ink); font-weight: 700; font-size: 1.05rem; text-decoration: none;
  transition: border-color 0.15s ease;
}
.foot .foot-facebook:hover { border-color: #0866FF; }
.facebook-logo { width: 2rem; height: 2rem; flex: none; }
.foot p { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.foot .foot-signoff { font: italic 600 1.2rem/1.3 var(--serif); color: var(--ink); }
.foot a { color: inherit; }

/* ── Call bar: phones only ───────────────────────────────────────── */

.callbar { display: none; }
@media (max-width: 640px) {
  body:has(.callbar) { padding-bottom: calc(3.25rem + env(safe-area-inset-bottom)); }
  .callbar {
    display: grid; grid-template-columns: 1fr auto;
    position: fixed; inset: auto 0 0; z-index: 10; margin: 0;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--red);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center;
    min-height: 3.25rem; padding: 0 1.1rem;
    padding-left: max(1.1rem, env(safe-area-inset-left));
    font: 700 1.05rem/1 var(--sans); text-decoration: none; font-variant-numeric: tabular-nums;
  }
  .callbar a:first-child { color: var(--on-red); }
  .callbar a + a {
    color: var(--on-red); border-left: 1px solid color-mix(in srgb, var(--on-red) 35%, transparent);
    /* Clear of the screen's rounded bottom-right corner. */
    padding-left: 1.4rem; padding-right: calc(1.6rem + env(safe-area-inset-right));
  }
}

/* ── A gig's own page (/gigs/2026-12-12) ──────────────────────────── */

/* Its own type: Spectral for what it says, Public Sans for the rest,
   self-hosted (fonts/OFL.txt), Latin only. The addresses carry each
   file's content hash, as {{asset}} would write them, so the asset
   handler serves the fonts cacheable for a year like everything else;
   a bare name would be re-checked on every visit. TestFontURLsAreFingerprinted
   (fonts_test.go) fails the moment a font file changes without its
   hash here. */
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/spectral-600-latin.1fb6ca29fc243e8b.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/public-sans-latin.c1b6da516e0062e9.woff2") format("woff2"); }

.event-page {
  --ev-serif: Spectral, Georgia, serif;
  --ev-sans: "Public Sans", system-ui, -apple-system, sans-serif;
  --ev-green: light-dark(#3a5a14, #b5e02a);
  --ev-green-deep: light-dark(#2a4209, #c3e04a);
  --ev-on-green: light-dark(#ffffff, #12160a);
  --ev-card: light-dark(#fffdf8, #1d222d);
  --ev-ghost-line: light-dark(#c9d3b4, #3d4a2a);
  --ev-ghost-hover: light-dark(#edf3dc, #26301c);
  --ev-text: light-dark(#2b2f3a, #e6e1d6);
  --ev-soft: light-dark(#4a4f5c, #bdb7ac);
  font: 400 1.0625rem/1.55 var(--ev-sans);
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
}
.event-page > main { flex: 1; }

/* The poster's look: the band in the barn, the wordmark, and what the
   dance is billed as. The card below rides up over its foot. */
.gig-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(380px, 42vw, 600px); display: grid; place-items: center;
  padding: 48px 20px 120px; text-align: center; color: #fbf8f1; background: #0e1018;
}
.gig-hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.gig-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 12 20 / 0.35) 0%, rgb(10 12 20 / 0.55) 55%, rgb(10 12 20 / 0.85) 100%); }
.gig-hero-body { display: grid; justify-items: center; gap: clamp(8px, 1.4vw, 16px); width: 100%; max-width: 620px; }
.gig-hero-logo { display: block; width: min(100%, 520px); }
.gig-hero-logo img { display: block; width: 100%; height: auto; }
.gig-hero h1 { margin: 0; font: 600 clamp(56px, 8.5vw, 112px)/1 var(--ev-serif); letter-spacing: -0.01em; color: #fbf8f1; text-shadow: 0 2px 24px rgb(0 0 0 / 0.5); }

.gig-page { padding: 0 16px; }

/* The card: when, where, what to expect, and the two things to do. */
.gig-card {
  position: relative; max-width: 860px; margin: -88px auto 0; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center;
  padding: clamp(28px, 5vw, 52px) clamp(22px, 5vw, 56px);
  background: var(--ev-card); border-radius: 20px;
  box-shadow: 0 1px 0 rgb(28 31 42 / 0.06), 0 18px 48px -12px rgb(28 31 42 / 0.28);
}
.gig-card > * { margin: 0; }
.gig-page-past { padding: 0.7rem 1rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--ev-soft); font-size: 1rem; }
.gig-page-past a { color: var(--ev-green); font-weight: 600; }
.gig-card-date { font: 600 clamp(32px, 4.6vw, 48px)/1.12 var(--ev-serif); color: var(--ev-green); text-wrap: balance; }
.gig-card-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; font-size: 18px; color: var(--ev-text); }
/* The icon sits in the line, so a venue name that wraps stays beside it. */
.gig-card-fact { margin: 0; }
.gig-card-fact .icon { display: inline-block; width: 22px; height: 22px; margin-inline-end: 10px; vertical-align: -0.28em; color: var(--ev-green); stroke-width: 1.9; }
.gig-card-fact strong { font-weight: 600; }
.gig-card-venue { font: 600 22px/1.3 var(--ev-serif); color: var(--ink); }
.gig-card-venue a { color: inherit; text-decoration: underline; text-decoration-color: var(--ev-ghost-line); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.gig-card-venue a:hover { text-decoration-color: var(--ev-green); }
/* The gig's own notes: who's welcome, what to bring, where to park.
   Prose and lists read from a left edge, so the notes are a column the
   width of the buttons beneath them, set off from the facts by a rule,
   while the poster-like date and facts above stay centred. A single
   short line is the exception: see notesShort. */
.gig-page-notes { box-sizing: border-box; width: 100%; max-width: 460px; padding-top: 24px; border-top: 1px solid var(--ev-ghost-line); text-align: start; font-size: 17px; line-height: 1.6; color: var(--ev-soft); text-wrap: pretty; }
.gig-page-notes > * { margin: 0; }
.gig-page-notes > * + * { margin-top: 0.75rem; }
.gig-page-notes ul, .gig-page-notes ol { padding-inline-start: 1.25rem; }
.gig-page-notes li > p { margin: 0; }
.gig-page-notes li + li { margin-top: 0.2rem; }
.gig-page-notes li::marker { color: var(--ev-green); }
/* A single short line is a strapline, centred like the facts above. */
.gig-page-notes-short { text-align: center; }
.gig-page-notes strong { color: var(--ink); }
.gig-page-notes a { color: var(--ev-green); text-underline-offset: 0.2em; }
.gig-card-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; max-width: 460px; }

/* Buttons: one green, the rest outlined. */
.ev-btn {
  flex: 1 1 150px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box;
  min-height: 52px; padding: 0 22px; border-radius: 12px; border: 1.5px solid var(--ev-ghost-line);
  background: var(--ev-card); color: var(--ev-green-deep); font: 600 16px/1.2 var(--ev-sans); text-decoration: none;
  transition: background-color 0.12s, border-color 0.12s;
}
.ev-btn .icon { width: 20px; height: 20px; flex: none; }
.ev-btn:hover { background: var(--ev-ghost-hover); border-color: var(--ev-green); color: var(--ev-green-deep); }
.ev-btn-primary { flex-basis: 190px; background: var(--ev-green); border-color: var(--ev-green); color: var(--ev-on-green); }
.ev-btn-primary:hover { background: var(--ev-green-deep); border-color: var(--ev-green-deep); color: var(--ev-on-green); }
.ev-btn-small { min-height: 44px; padding: 0 18px; border-radius: 10px; gap: 8px; font-size: 15px; white-space: nowrap; }
.ev-btn-small .icon { width: 18px; height: 18px; }
/* A phone number is never broken across two lines: where the pair
   won't fit side by side, the buttons stack instead. */
.ev-btn-tel { white-space: nowrap; }
.event-page a:focus-visible { outline: 3px solid var(--ev-green); outline-offset: 3px; }
/* On the photo and the dark footer, the lime shows instead. */
.gig-hero a:focus-visible, .gig-foot a:focus-visible { outline-color: #c3e04a; }
@media (prefers-reduced-motion: reduce) { .ev-btn { transition: none; } }

/* Getting there: the venue, ways into a maps app, and the map. */
.gig-where { max-width: 860px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) 0 clamp(56px, 8vw, 88px); display: flex; flex-direction: column; gap: 20px; }
.gig-where-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.gig-where-head > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.gig-where-eyebrow { margin: 0; font: 700 13px/1.4 var(--ev-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ev-green); }
.gig-where h2 { margin: 0; font: 600 clamp(24px, 3vw, 30px)/1.2 var(--ev-serif); color: var(--ink); }
.gig-where-links { display: flex; flex-wrap: wrap; gap: 10px; }
.gig-where-links .ev-btn { flex: 0 0 auto; }
.gig-where-map { display: block; overflow: hidden; border-radius: 16px; border: 1px solid light-dark(#e2daca, #2c3240); background: light-dark(#efe8d9, #181c25); }
.gig-where-map img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 600px) {
  .gig-where-links { width: 100%; }
  .gig-where-links .ev-btn { flex: 1 1 140px; }
  .gig-where-map img { aspect-ratio: 9 / 7; }
}
/* With nothing to show beneath the card, the footer keeps its distance. */
.gig-card:last-child { margin-bottom: clamp(48px, 7vw, 80px); }

/* Booking us: for whoever opened a shared link planning their own event. */
.gig-book { max-width: 860px; margin: 0 auto; padding: clamp(40px, 6vw, 64px) 0 clamp(56px, 8vw, 88px); border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.gig-card + .gig-book { border-top: 0; }
.gig-book h2 { margin: 0; font: 600 clamp(24px, 3vw, 30px)/1.2 var(--ev-serif); color: var(--ink); }
.gig-book p { margin: 0; max-width: 34rem; color: var(--ev-soft); }

/* A date with no public dance: the hero is just the wordmark, and the
   message leads. */
.gig-hero-short { min-height: clamp(260px, 28vw, 380px); }
.gig-page-lede { max-width: 32rem; font-size: 1.15rem; color: var(--ev-soft); }
.gig-page-lede a { color: var(--ev-green); font-weight: 600; }

/* The enquiry form (enquiry.html): the card, read from a left edge.
   The fields are ui's field-text and field-textarea, styled here in the
   site's inks rather than the admin's. */
.enquiry-card { max-width: 640px; align-items: stretch; text-align: start; }
.enquiry-card .gig-card-date { text-align: center; }
.enquiry-card .gig-page-lede { max-width: none; font-size: 1.05rem; }
.enquiry-form { display: flex; flex-direction: column; gap: 22px; }
.enquiry-form [rst-field] { display: flex; flex-direction: column; gap: 6px; }
.enquiry-form [rst-field-label] { font-weight: 600; color: var(--ink); }
.enquiry-form [rst-field-required] { color: var(--red); }
.enquiry-form [rst-input], .enquiry-form [rst-textarea] {
  box-sizing: border-box; width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--ev-ghost-line); border-radius: 10px;
  background: light-dark(#ffffff, #12151c); color: var(--ink); font: inherit;
}
.enquiry-form [rst-textarea] { min-height: 8rem; resize: vertical; line-height: 1.5; }
.enquiry-form [rst-input]:hover, .enquiry-form [rst-textarea]:hover { border-color: var(--ev-green); }
.enquiry-form [rst-input]:focus-visible, .enquiry-form [rst-textarea]:focus-visible { outline: 3px solid var(--ev-green); outline-offset: 1px; border-color: var(--ev-green); }
.enquiry-form [aria-invalid="true"] { border-color: var(--red); }
.enquiry-form [rst-field-hint] { font-size: 0.95rem; color: var(--ev-soft); }
.enquiry-form [rst-field-error] { font-size: 0.95rem; font-weight: 600; color: var(--red); }
.enquiry-privacy { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: 0.95rem; color: var(--ev-soft); }
.enquiry-privacy strong { color: var(--ink); }
.enquiry-foot { display: flex; }
.enquiry-foot .ev-btn { flex: 0 1 260px; cursor: pointer; }
.enquiry-foot .ev-btn:disabled { opacity: 0.55; cursor: progress; }
.enquiry-form [data-pow-status], .enquiry-noscript { margin: 0; font-size: 0.95rem; color: var(--ev-soft); }
.enquiry-alert { padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--red); background: light-dark(#fbeceb, #2a1a19); color: var(--ink); }
.enquiry-alert p { margin: 0; }
.enquiry-alert:focus { outline: none; }
.enquiry-alert a, .enquiry-noscript a { color: var(--ev-green); font-weight: 600; }

/* "Link copied", from share.js on a gig's page. */
.share-toast {
  position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom)); z-index: 20; margin: 0;
  translate: -50% 0.5rem; opacity: 0; pointer-events: none;
  padding: 0.6rem 1.1rem; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 600;
  transition: opacity 180ms ease-out, translate 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.share-toast.is-shown { opacity: 1; translate: -50% 0; }
@media (max-width: 640px) { .share-toast { bottom: calc(4.5rem + env(safe-area-inset-bottom)); } }

/* The footer: the way on to the whole website, the pinwheel and an
   arrow that leans in when reached for; then the small print. */
.gig-foot { background: #1c1f2a; color: #e9ecf2; }
.gig-foot-more { display: block; padding: clamp(32px, 5vw, 48px) 20px clamp(28px, 4vw, 40px); color: inherit; text-decoration: none; }
.gig-foot-more > span { max-width: 860px; margin: 0 auto; display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); }
.gig-foot-more img { width: clamp(64px, 9vw, 88px); height: auto; flex: none; }
.gig-foot-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gig-foot-text strong { font: 600 clamp(24px, 3vw, 30px)/1.2 var(--ev-serif); color: #c3e04a; }
.gig-foot-text span { font-size: 16px; color: #c4c9d4; }
.gig-foot-more .icon { width: 28px; height: 28px; flex: none; color: #c3e04a; transition: transform 0.15s; }
.gig-foot-more:hover .icon, .gig-foot-more:focus-visible .icon { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .gig-foot-more .icon { transition: none; } }
.gig-foot-base { padding: 0 20px 28px; }
.gig-foot-base > div { max-width: 860px; margin: 0 auto; padding-top: 20px; border-top: 1px solid #343949; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; color: #a3a9b6; }
.gig-foot-base a { color: inherit; }

/* ── Without light-dark() ─────────────────────────────────────────── */

/* A custom property holding light-dark() isn't dropped where it's not
   understood, only found invalid where it's used, so the light palette
   can't simply come first: it comes here, for those browsers alone. */
@supports not (color: light-dark(#000, #fff)) {
  :root {
    --paper: #f7f1e6; --paper-2: #efe5d3; --card: #fffaf2; --ink: #1b1f2a; --ink-soft: #4a4f5c;
    --line: #dccfb8; --red: #b8322a; --on-red: #ffffff; --teal: #1a6b64;
  }
  .contact { background: #1b1f2a; --dance-ground: #1b1f2a; }
  .event-page {
    --ev-green: #3a5a14; --ev-green-deep: #2a4209; --ev-on-green: #ffffff; --ev-card: #fffdf8;
    --ev-ghost-line: #c9d3b4; --ev-ghost-hover: #edf3dc; --ev-text: #2b2f3a; --ev-soft: #4a4f5c;
  }
  .gig-where-map { border-color: #e2daca; background: #efe8d9; }
}
