/* --------------------------------------------------------------------------------
   The shell: everything a page of this site has before it has any content of its own.

   All of this was inline in index.astro while the homepage was the only page. It moved
   here unchanged when the discography became the second — the rules are the same rules,
   in the same order, so the cascade a page sees is the one the homepage was built and
   measured against. Two things did change, and both are marked where they happen: the
   masthead's overlay behavior became opt-in, and --masthead-h moved out of the hero's
   media block into the masthead's own, since it was never a property of the hero.

   Type roles, palette and motion tokens come from Assets/Accents/css/kg-tokens.css and
   kg-type.css — never restated here.

   Two type roles this file adds, because the alternative was reaching for mono and
   kg-type.css forbids that by name: .kg-note (captions, contact copy) and .kg-chip
   (labels). index.astro flagged both as candidates to promote into kg-type.css "once a
   second page wants them". A second page now does, and they are shared from here — but
   they are still page CSS, not type tokens. Promoting them into kg-type.css is the
   client's stylesheet to change, and that is a conversation, not a refactor.
   -------------------------------------------------------------------------------- */

:root {
  --gutter: clamp(20px, 6vw, 88px);
  --measure-page: 1264px;
  --hair: rgba(244, 239, 228, 0.14);
  --hair-ink: rgba(14, 13, 12, 0.16);
  --dim: rgba(244, 239, 228, 0.66);
  /* 0.50, raised from 0.45 on 27 Aug 2026, and the reason is measured rather than felt.
     Composited over ink, 0.45 gives 4.09:1 — under the 4.5 that normal-size text needs,
     and every use of this token IS small text: chart lines, era years, captions, the
     "no chart data" notes. 0.50 gives 4.80. The boundary is at 0.48, so this clears it
     with a little room and still reads as clearly quieter than --dim's 7.64.
     Recompute rather than nudge if the ink or bone values ever move. */
  --dimmer: rgba(244, 239, 228, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--kg-ink);
  color: var(--kg-bone);
  font-family: var(--kg-font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--kg-gold);
  text-decoration: none;
}
a:hover {
  color: var(--kg-bone);
}

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

/* Every paragraph here is a discrete line inside a container that owns its own
   spacing, so the browser's 1em default is never what we want. kg-type.css now zeroes
   the margin on all of its roles, so this only catches the bare <p> elements that
   carry no type role at all — the sleeve, row, artist and episode titles. */
p {
  margin: 0;
}

.sr,
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  clip-path: none;
  z-index: 20;
  padding: 10px 14px;
  background: var(--kg-gold);
  color: var(--kg-ink);
}

.gold {
  color: var(--kg-gold);
}
.ember {
  color: var(--kg-ember);
}
.teal {
  color: var(--kg-teal);
}

.kg-note {
  font-family: var(--kg-font-body);
  font-weight: 400;
  font-size: 0.86rem;
  line-height: var(--kg-lead-tight);
  margin: 0;
}
.kg-chip {
  font-family: var(--kg-font-body);
  font-weight: 600;
  font-size: 0.7rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

/* The accent face. kg-type.css sets it uppercase at the step-2 floor; these three
   moments are lockups, so they set their own case and size via --free. */
.kg-accent--free {
  text-transform: none;
  line-height: 0.94;
}

/* -------------------------------------------------------------------- structure */

.band {
  padding: clamp(48px, 6vw, 84px) var(--gutter) clamp(52px, 7vw, 92px);
  max-width: calc(var(--measure-page) + 2 * var(--gutter));
  margin: 0 auto;
  border-top: 1px solid var(--hair);
}

/* The halftone screen as the seam between the KoolTV stills and the product shots,
   which is the use the pack names for it. It replaces that boundary's hairline instead
   of joining it — two dividers on one seam is a stack, not a seam.

   `kg-bg-halftone` supplies the tile mask. Overriding `background` with a gradient is
   the way the pack says to shape it: the shorthand clears the class's flat currentColor
   fill, so the screen fades out at both ends rather than running to the edges. */
.seam {
  height: 20px;
  max-width: calc(var(--measure-page) + 2 * var(--gutter));
  margin: 0 auto;
  background: linear-gradient(90deg, transparent 0%, var(--kg-bone) 24%, var(--kg-bone) 76%, transparent 100%);
  opacity: 0.2;
}
.seam + .band {
  border-top: 0;
}

.rule {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}
.rule span {
  flex-grow: 1;
  height: 1px;
  background: var(--hair);
}
/* An italic tail moves as a unit. The eyebrow is a shrinkable flex item next to a rule
   that collapses to nothing, so at 320px it gives up 7px and wraps — and it wrapped
   inside the phrase, leaving "on!" alone on the second line. Held together, the break
   lands between the sentence and its tail instead, which is the only place it reads as
   deliberate. Same reasoning as the hero eyebrow's per-sentence nowrap. */
.rule .kg-eyebrow i {
  white-space: nowrap;
}
/* The wave ribbon, used once on the page. It is the only motif in the pack with a
   left-to-right reading direction, which is what makes it a rule and not a decoration:
   it points into the three doors underneath it. Masked rather than inlined so the color
   still comes from CSS and no SVG ids get duplicated. Specificity has to clear
   `.rule span` above, hence the two classes. */
.rule .rule__wave {
  /* 26px, not the 16px a hairline rule suggests. The artwork's wave period is 0.83x its
     own height, so any aspect-preserving scale below roughly 24px compresses three sine
     waves into a zigzag and the motif stops being recognizable. Height is what buys the
     period here. */
  height: 26px;
  background: var(--kg-gold);
  opacity: var(--kg-accent-ambient);
  -webkit-mask: url("../svg/wave-ribbon.svg") left center / auto 26px repeat-x;
  mask: url("../svg/wave-ribbon.svg") left center / auto 26px repeat-x;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.section__head > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ------------------------------------------------------------------- components */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 2px;
  white-space: nowrap;
}
.btn--solid {
  height: 56px;
  padding: 0 30px;
  background: var(--kg-ember);
  color: var(--kg-bone);
  border: 0;
  cursor: pointer;
}
.btn--solid:hover {
  background: var(--kg-gold);
  color: var(--kg-ink);
}
.btn--outline {
  border: 1px solid var(--kg-ember);
  color: var(--kg-ember);
}
.btn--outline:hover {
  background: var(--kg-ember);
  color: var(--kg-bone);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}
.link--ink {
  color: var(--kg-ink);
  border-bottom: 1px solid var(--hair-ink);
  padding-bottom: 5px;
  transition:
    color var(--kg-dur-fast) var(--kg-ease-snap),
    border-color var(--kg-dur-fast) var(--kg-ease-snap);
}
/* The bare `a:hover` near the top of this sheet turns links bone, which is right on ink
   and invisible on the bone catalog ground — this link was vanishing under the pointer.
   Ember restores a visible hover and matches what the era tabs and the sleeve borders
   already do in this section. */
.link--ink:hover {
  color: var(--kg-ember);
  border-bottom-color: var(--kg-ember);
}

/* ---------------------------------------------------------------- credential bar */

.credential {
  display: flex;
  justify-content: center;
  padding: 9px var(--gutter);
  border-bottom: 1px solid var(--hair);
}
.credential .kg-eyebrow {
  color: var(--kg-gold);
  font-size: 0.66rem;
  text-align: center;
}
@media (min-width: 900px) {
  .credential {
    justify-content: flex-end;
    max-width: calc(var(--measure-page) + 2 * var(--gutter));
    margin: 0 auto;
  }
  .credential .kg-eyebrow {
    font-size: 0.72rem;
  }
}

/* -------------------------------------------------------------------- masthead */

/* Declared with the masthead rather than in the hero's media block, where it used to
   live. `height` and the overlay pull-up both read it, so it belongs to the bar whose
   height it is — the hero only consumed it. The 1000px step is where the wordmark grows.

   UNCONDITIONAL, not scoped to 900px as it was. Every in-page anchor on the site offsets
   its landing by `var(--masthead-h, 0px)` — /history's era rail, /music's catalog jump,
   /tour, the legal pages — and that 0px fallback was correct only while the
   phone bar sat in the flow and hid nothing. The bar is sticky at every width now, so a
   token that stops existing below 900px would drop every one of those landings behind it.
   68px is what the phone bar already measures: 12px of padding either side of a 44px
   wordmark row, which is the same number the desktop bar took. */
:root {
  --masthead-h: 68px;
}

/* STICKY AT EVERY WIDTH. It was sticky from 900px up and `position: relative` below, on
   the reasoning that there was no nav to keep — `.nav` was display:none on a phone and
   nothing had replaced it, so pinning the bar would have pinned a wordmark and a Store
   button over the content. The phone menu changed that: `.nav-toggle` puts all seven
   destinations one tap away, and it is the element a sticky bar exists to keep in reach.

   In the flow's ground, not the overlay treatment, which stays desktop-only below — and
   the reason is that the overlay was only ever built and measured for desktop, not that a
   phone has nothing to overlay. It does: the homepage plays its own portrait cut of the
   reel on a phone. (An earlier version of this note said the phone hero was a photograph.
   It stopped being true when the reel reached the phone, and the note was not re-read.)
   What the overlay needs lives in the 900px block — the transparent bar, its fade to
   ground once stuck, and a scrim measured to keep the controls legible over footage. A
   phone bar carries four controls in 375px, and putting those over moving video would
   need its own legibility pass, which nobody has done. Until someone does, the phone bar
   sits above the hero rather than on it, with its own ground and hairline.

   Solid ink rather than the 0.92 the desktop bar carries. That value exists so the reel
   keeps moving under the bar through the first screenful, where the desktop bar sits over
   it; the phone bar sits above the hero instead, so the reason never arises. Solid also
   spares a phone the composited blur layer on every scroll frame, which is where that
   cost hurts most and buys least.

   `position: sticky` still establishes the containing block the menu panel hangs from, so
   the `position: relative` this replaces is not missed. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 3;
  background-color: var(--kg-ink);
  border-bottom: 1px solid var(--hair);
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px var(--gutter);
  max-width: calc(var(--measure-page) + 2 * var(--gutter));
  margin: 0 auto;
}

/* Over the hero rather than above it, so the reel runs to the top edge, and sticky so it
   survives the scroll. Only where the reel plays — the phone keeps the masthead in flow,
   both because overlaying it there would be a change to the photograph's crop rather than
   to the video, and because there is no nav to keep: `.nav` is display: none until 1024px,
   so a sticky phone bar would pin a wordmark and a Store button over the content.

   `height` and the pull-up read the same token, so they cannot drift apart: the two
   values the masthead actually takes (the wordmark grows at 1000px) are declared once,
   on :root, and everything else is derived. The credential bar stays in flow above, on
   solid ground, because it is the one line here that should never fight a moving frame.

   OPT-IN, via `overlay` on the layout. It was unconditional while the homepage was the
   only page, and the homepage is the only page with something full-bleed to overlay. A
   page that opens on flat ground gets the second block instead: still sticky, but with
   its ground from the first frame, because there is no reel for a transparent bar to
   reveal — only the content it is supposed to sit above. */
@media (min-width: 900px) {
  .masthead--overlay {
    position: sticky;
    top: 0;
    z-index: 3;
    height: var(--masthead-h);
    margin-bottom: calc(-1 * var(--masthead-h));
    border-bottom: 0;
    background-color: transparent;
    transition:
      background-color 160ms linear,
      box-shadow 160ms linear;
  }
  .masthead--overlay .masthead__inner {
    height: 100%;
  }
  /* Once it leaves the hero there is no scrim behind it, so it brings its own ground.
     0.92 rather than opaque because for the first screenful it is still over the reel,
     and a trace of footage moving under the bar is the point of putting it there.

     The rule is an inset shadow, not a border: `height` is pinned to --masthead-h, so a
     border would eat a pixel out of the row and the 54px wordmark would no longer fit
     its 54px content box. A shadow draws the same line and costs no layout. */
  .masthead--overlay.masthead--stuck {
    background-color: rgba(14, 13, 12, 0.92);
    box-shadow: inset 0 -1px 0 var(--hair);
  }
  /* The hairline moves to the hero's top edge, full-bleed, for the same reason the ramp
     lives there: this bar is capped at --measure-page, the reel is not, so a border here
     stops 72px short of each edge once there is video behind it to reveal the gap. */
  body:has(.masthead--overlay) .credential {
    border-bottom-color: transparent;
  }

  /* The flat-ground case. Sticky for the same reason the overlay is — the nav should
     survive the scroll — but it never has a reel behind it, so it carries its ground and
     its rule from the first frame rather than fading them in. No pull-up either: there is
     nothing underneath it to pull over. */
  .masthead:not(.masthead--overlay) {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: rgba(14, 13, 12, 0.92);
    backdrop-filter: blur(6px);
  }
}
.wordmark {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  /* It is a flex item next to a row of controls that grew when the phone menu arrived, and
     `img { max-width: 100% }` a few rules up means it will happily be squeezed rather than
     push back — at 320px it was being crushed from 73px to 32px, which is the one element
     on this bar that must never be the thing that gives way. Everything else in the row
     yields first; the rules below say how. */
  flex-shrink: 0;
}
.wordmark img {
  height: 40px;
  width: auto;
}

/* The brass original, faded in over the badge on hover — the legible mark by default,
   the 70s foil when you reach for it.

   Only the brass animates. The badge stays at full opacity underneath rather than
   fading out against it, because two layers crossing at 0.5 each would dip through a
   midpoint dimmer than either end. It can stay because the silhouettes match: at full
   opacity the brass covers the badge completely, leaving no rim — checked by compositing
   the two at masthead size. The badge's keyline is fractionally wider, and it is black,
   so what little sits proud of the brass is invisible on ink anyway.

   Slower in than out, like the sleeve discs: the reveal is the moment, the return should
   get out of the way. Hover only, deliberately — this trades legibility for texture, and
   a keyboard user arriving on the link should keep the mark that reads. */
.wordmark__brass {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity var(--kg-dur-fast) var(--kg-ease-glide);
}
.wordmark:hover .wordmark__brass {
  opacity: 1;
  transition-duration: var(--kg-dur-mid);
}
/* ------------------------------------------------------------------- the menu

   Below 1024px `.nav` is not display:none-and-forgotten any more — it is the panel the
   trigger opens. Same list, same markup, same aria-current: the alternative was a second
   copy of eight links for phones, which is two navs to keep in step and one of them always
   a revision behind.

   The panel is absolutely positioned against `.masthead` rather than inserted into the
   flow, so opening it never moves the page underneath — on the homepage the masthead sits
   over a full-bleed hero, and a menu that pushed the reel down on open would be a change to
   the photograph rather than to the menu. */
.nav-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 2px;
  color: var(--kg-bone);
  cursor: pointer;
  transition:
    border-color var(--kg-dur-fast) var(--kg-ease-snap),
    color var(--kg-dur-fast) var(--kg-ease-snap);
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--kg-gold);
  color: var(--kg-gold);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--kg-bone);
  outline-offset: 3px;
}
.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars i {
  height: 1.5px;
  background: currentColor;
  /* Transform-only, so the three bars fold into a cross without touching layout. The
     middle one leaves by opacity rather than by scaling to nothing: a 1.5px bar scaled to
     zero still lands on a half-pixel and leaves a grey smear at the crossing point. */
  transition:
    translate var(--kg-dur-fast) var(--kg-ease-snap),
    rotate var(--kg-dur-fast) var(--kg-ease-snap),
    opacity var(--kg-dur-fast) var(--kg-ease-snap);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child {
  translate: 0 5.5px;
  rotate: 45deg;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child {
  translate: 0 -5.5px;
  rotate: -45deg;
}
@media (prefers-reduced-motion: reduce) {
  .nav-toggle__bars i {
    transition: none;
  }
}

.nav {
  display: none;
  flex-grow: 1;
  gap: 30px;
}
.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--kg-bone);
  /* "Kool's Favorites" is the first two-word label in the bar, and a flex item shrinks to
     its longest word before it overflows — so it broke onto two lines rather than asking
     for the room. One line is the bar's rhythm; the breakpoint below is set to fit it. */
  white-space: nowrap;
}
.nav a:hover {
  color: var(--kg-gold);
}
.nav__external {
  gap: 5px;
}
.nav__external svg {
  opacity: 0.58;
  transition: opacity var(--kg-dur-fast) var(--kg-ease-snap);
}
.nav__external:hover svg {
  opacity: 1;
}

/* The History group — see the note on it in Base.astro. On the bar, the toggle is styled as
   one more nav label (it has to read as a peer of Tickets and Music, not as a control), and
   the list drops from under it. The chevron takes the external-link arrow's 0.58 so the two
   marks that mean "this one is different" weigh the same. */
.nav__group {
  position: relative;
  display: flex;
  align-items: center;
}
.nav__group-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--kg-bone);
  /* No font reset: `.kg-eyebrow` on the button carries the family, size, weight, tracking
     and caps, and an `inherit` here would take them from `.nav` instead — which has none of
     them, and rendered the toggle as 16px sentence case beside 13.9px caps. */
  white-space: nowrap;
  cursor: pointer;
}
.nav__group-toggle:hover,
.nav__group-toggle[aria-expanded="true"] {
  color: var(--kg-gold);
}
.nav__group-toggle:focus-visible {
  outline: 2px solid var(--kg-bone);
  outline-offset: 3px;
}
.nav__group-toggle svg {
  opacity: 0.58;
  transition:
    opacity var(--kg-dur-fast) var(--kg-ease-snap),
    rotate var(--kg-dur-fast) var(--kg-ease-snap);
}
.nav__group-toggle:hover svg,
.nav__group-toggle[aria-expanded="true"] svg {
  opacity: 1;
}
.nav__group-toggle[aria-expanded="true"] svg {
  rotate: 180deg;
}
@media (prefers-reduced-motion: reduce) {
  .nav__group-toggle svg {
    transition: none;
  }
}
.nav__group-label {
  display: none;
}
/* Opaque ink and a hairline, the phone panel's own treatment, so the list reads as the same
   object whether it drops from the bar or stands in the panel. Offset left by its padding so
   the link text lines up under the word "History" rather than under the box's edge. */
.nav__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -18px;
  z-index: 5;
  min-width: 180px;
  margin: 0;
  padding: 4px 18px;
  list-style: none;
  background: var(--kg-ink);
  border: 1px solid var(--hair);
}
.nav__group-toggle[aria-expanded="true"] ~ .nav__menu {
  display: block;
}
.nav__menu li + li a {
  border-top: 1px solid var(--hair);
}
.masthead__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header-player {
  display: flex;
  align-items: center;
}
.store {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--kg-gold);
  border-radius: 2px;
}
.audio-toggle {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--kg-ink);
  background: var(--kg-gold);
  border: 1px solid var(--kg-gold);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 4px var(--kg-gold),
    inset 0 0 0 5px rgba(14, 13, 12, 0.38);
  cursor: pointer;
  transition:
    color var(--kg-dur-fast) var(--kg-ease-snap),
    background-color var(--kg-dur-fast) var(--kg-ease-snap),
    transform var(--kg-dur-fast) var(--kg-ease-snap);
}
.audio-toggle:hover {
  color: var(--kg-gold);
  background: var(--kg-ember);
  transform: rotate(4deg) scale(1.05);
}
.audio-toggle:focus-visible {
  outline: 2px solid var(--kg-bone);
  outline-offset: 3px;
}
.audio-toggle__disc {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.audio-toggle__play {
  margin-left: 2px;
}
.audio-toggle__bars {
  display: none;
  align-items: center;
  gap: 2px;
  height: 14px;
}
.audio-toggle__bars i {
  width: 2px;
  height: 100%;
  background: currentColor;
  animation: header-eq 640ms ease-in-out infinite alternate;
}
.audio-toggle__bars i:nth-child(2) {
  animation-delay: -420ms;
}
.audio-toggle__bars i:nth-child(3) {
  animation-delay: -180ms;
}
.audio-toggle.is-playing .audio-toggle__play {
  display: none;
}
.audio-toggle.is-playing .audio-toggle__bars {
  display: flex;
}
@keyframes header-eq {
  from { transform: scaleY(0.32); }
  to { transform: scaleY(1); }
}

/* The panel, below the breakpoint where the nav stands on its own. `.masthead` is the
   positioning context — it is the element whose bottom edge the panel hangs from, and the
   base rule's `position: sticky` is what establishes it at every width. It used to say
   `position: relative` here for that job; sticky does it too, so the declaration went
   rather than being overridden back. */
@media (max-width: 999px) {
  /* The row carries four things on a phone now, so the gaps come in. 24px between the
     wordmark and a right-aligned cluster was spacing for a bar with room to spare; the
     cluster's own 8px was already the tighter number and only needs a little. Measured:
     this is what puts the labelled Store button back inside a 360px screen. */
  .masthead__inner {
    gap: 12px;
  }
  .masthead__actions {
    gap: 6px;
  }
}

/* The narrowest phones still in use — 320px, and nothing above it. Even with the gaps in,
   the bar needs 289px of the 265px such a screen offers, so one of the four has to go, and
   the Store button is the only one with somewhere else to be: the menu's own Merch link is
   the same destination, so the store is one tap away rather than zero, and the wordmark,
   the player and the way into the rest of the site all survive intact.

   349px rather than a rounder number so this catches only the 320px class of device. A
   360px Android and a 375px iPhone keep the labelled button exactly as it was. */
@media (max-width: 349px) {
  .store {
    display: none;
  }
}

/* 1023px, not the 999px the rest of the masthead steps at. See "the nav at eight links"
   below for why the bar needs those extra 24px. */
@media (max-width: 1023px) {
  .nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 4;
    padding: 4px var(--gutter) 12px;
    /* Opaque, not the 0.92 the stuck masthead carries: that value exists so a trace of the
       hero's footage keeps moving under the bar, and a list of links is not something to
       read seven of through moving video. */
    background: var(--kg-ink);
    border-bottom: 1px solid var(--hair);
  }
  .nav.is-open a {
    min-height: 52px;
    border-bottom: 1px solid var(--hair);
  }
  /* `>`: the History group's links are each the last child of their own <li>, so an
     unscoped :last-child would strip the divider from every one of them. */
  .nav.is-open > a:last-child {
    border-bottom: 0;
  }
  /* In the panel the group is already open: the toggle steps aside, the label stands over
     the two links, and the links indent under it. The label is the dimmer, smaller voice of
     a section heading, so it is not mistaken for a tappable row. */
  .nav.is-open .nav__group {
    display: block;
  }
  .nav.is-open .nav__group-toggle {
    display: none;
  }
  .nav.is-open .nav__group-label {
    display: block;
    padding: 16px 0 6px;
    font-size: 0.72rem;
    color: var(--dimmer);
  }
  .nav.is-open .nav__menu {
    display: block;
    position: static;
    min-width: 0;
    padding: 0 0 0 16px;
    background: none;
    border: 0;
  }
  .nav.is-open .nav__menu li + li a {
    border-top: 0;
  }
  /* The nav marks the current section with aria-current, which on the desktop bar is read
     from position. In a stacked list there is no position to read it from, so it says so. */
  .nav.is-open a[aria-current="page"] {
    color: var(--kg-gold);
  }
}

@media (min-width: 1000px) {
  :root {
    --masthead-h: 78px;
  }
  .masthead__inner {
    gap: 48px;
  }
  .wordmark img {
    height: 54px;
  }
}

/* ----------------------------------------------------------- the nav at eight links

   The 25 Sep 2026 round made the bar eight links (Kool's Favorites joined), and eight at
   the old gaps measure 1234px of row at a 1000px viewport. Two moves bring it back, in
   this order:

   1. BELOW 1280px CONTACT STEPS OUT of the bar. It is the one destination the footer
      already carries on every page ("Contact →" under Booking & contact), so dropping it
      here costs a scroll, not a route. The last link rather than any other because the
      row reads left to right and loses from the end. Matched on the href's tail so the
      store's bar, whose links are absolute URLs, obeys the same rule without markup.
   2. THE GAPS BREATHE WITH THE VIEWPORT between 1024 and 1279: 16px of nav gap and 24px
      of masthead gap at 1024, back to the 30 and 48 the bar always had by 1279.

   Measured, not estimated: seven links at those gaps need 872px + two gutters, which is
   995px at 1024 — inside the 1009px a Windows scrollbar leaves. At 1000 the same row is
   a few pixels past what that scrollbar leaves, which is why the menu holds to 1023
   rather than handing over at 1000 with the wordmark. The first proposal was to keep the
   menu all the way to 1279; the client preferred a full bar on laptops, and this keeps
   one without dropping any destination the footer does not also carry.

   RE-MEASURED 28 Sep 2026, when History and Band became one "History ▾" group and the bar
   went from eight entries to seven. At 1024 with a Windows scrollbar the row now needs
   837px of the 886 it has — 49px of slack where there was almost none. Contact would still
   overflow at 1024 (926 needed) and first fits at about 1150, with 0px to spare; the
   breakpoint above was left at 1280 rather than chasing that, since 1150–1279 is a narrow
   band of windows and a bar measured to the pixel is what this note exists to warn about. */
@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
  /* The real nav is back; the trigger has nothing left to open. */
  .nav-toggle {
    display: none;
  }
  .masthead__actions {
    margin-left: 0;
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .masthead__inner {
    gap: clamp(24px, calc(24px + (100vw - 1024px) * 0.094), 48px);
  }
  .nav {
    gap: clamp(16px, calc(16px + (100vw - 1024px) * 0.055), 30px);
  }
  .nav a[href$="/contact"] {
    display: none;
  }
}
@media (min-width: 1280px) {
  .nav {
    /* 27.5px at 1280, 30px from about 1400 up. Measured at 1280 with a Windows scrollbar:
       2.2vw (28.2px) left the Store and player cluster 3px into the right gutter. */
    gap: clamp(24px, 2.15vw, 30px);
  }
}

.footer {
  padding: clamp(44px, 5vw, 68px) var(--gutter) 0;
  max-width: calc(var(--measure-page) + 2 * var(--gutter));
  margin: 0 auto;
  border-top: 1px solid var(--hair);
}
.footer__cols {
  display: grid;
  gap: 36px;
  padding-bottom: 44px;
}
.footer__cols > div {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__mark {
  height: 54px;
  width: auto;
  /* The column's default `stretch` would pull this to the full column width and
     squash the aspect — it is a replaced element with `width: auto`. */
  align-self: flex-start;
}
.footer__creds,
.footer__contact {
  color: rgba(244, 239, 228, 0.55);
  line-height: 1.6;
}
.footer__creds {
  font-size: 0.72rem;
}
/* The booking column's groups. The column's own 14px gap separates the groups from each
   other and from the heading; inside a group the lines sit close, so the label, the name
   and its routes read as one unit rather than as six evenly spaced lines. */
.footer__group {
  display: grid;
  gap: 2px;
}
/* The credentials' size and dimness, at label weight: a caption for the links under it,
   one step below the column's eyebrow, so the column has a heading and two sub-heads
   rather than three things competing to be the heading. */
.footer__label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.45);
}
.footer__routes {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__routes--row {
  display: flex;
  flex-wrap: wrap;
  column-gap: 22px;
}
/* Tighter than .link's 32px on a desktop, where these are pointer targets stacked in a
   column; the 999px touch rule below still lifts them to 44px on a phone. */
@media (min-width: 1000px) {
  .footer__routes .link {
    min-height: 28px;
  }
}
/* The column's default `stretch` would run this the full width of the column and put its
   underline under nothing — same reason .footer__mark opts out. */
.footer__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  color: var(--kg-gold);
}
.social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 239, 228, 0.22);
  border-radius: 2px;
  color: var(--kg-bone);
}
.social a:hover {
  border-color: var(--kg-gold);
  color: var(--kg-gold);
}
/* `wrap-reverse`, not `wrap`. These two only share a row above about 1280px; every width
   below that stacks them, and stacked they read in the wrong order — a copyright line, then
   the links it is supposed to sit under. Reversing the wrap direction puts the links back on
   top wherever the row breaks.

   A breakpoint was the other way to do it, and it would have had to be pinned to the width
   where today's seven link labels happen to stop fitting beside today's copyright string —
   a number with no meaning that silently goes wrong the first time either one is edited.
   `wrap-reverse` asks the layout instead of guessing, so it stays right at any width and
   through any amount of link churn. The single-row case is untouched: reversing affects how
   wrapped LINES stack, not the order of items along the row, so above 1280px this is still
   copyright left, links right. */
.footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap-reverse;
  padding: 22px 0;
  border-top: 1px solid var(--hair);
}
.footer__base .kg-note {
  font-size: 0.76rem;
  color: rgba(244, 239, 228, 0.42);
}
.footer__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer__links a {
  display: flex;
  align-items: center;
  min-height: 32px;
  font-size: 0.72rem;
  color: rgba(244, 239, 228, 0.55);
}
.footer__links a:hover {
  color: var(--kg-bone);
}

@media (min-width: 700px) {
  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
}
@media (min-width: 1000px) {
  .footer__cols {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 48px;
    padding-bottom: 56px;
  }
  .footer__cols > div:last-child {
    justify-self: end;
    width: max-content;
    max-width: 100%;
  }
}

/* Touch targets. A desktop text link may be text-height; a touch one may not.
   .link--ink carries the underline as its own border, so it aligns to the bottom
   rather than centering inside the taller box.

   The homepage's `.hero__actions .link` was in this same block and stayed behind in
   index.astro — it is the one selector here that names something only the hero has. */
@media (max-width: 999px) {
  .link:not(.link--ink) {
    min-height: 44px;
  }
  .link--ink {
    min-height: 44px;
    /* These carry their underline as a border, so they align to the bottom of the
       taller box rather than centering inside it and leaving a detached rule. */
    align-items: flex-end;
  }
  /* The legal row is four small links in a wrap — fine with a mouse, too tight
     with a thumb. */
  .footer__links a {
    min-height: 44px;
  }
  /* Drop the ROW gap, keep the column one. 22px was chosen as the space between links along
     a line, which is what it is while the row holds; once it wraps — three lines at 375px —
     the same 22px lands between two 44px touch boxes whose text is centred, so the gap you
     actually see is 15 + 22 + 15 = 52px against 14px of text. The rule above is what makes
     the boxes 44px, so the fix belongs here beside it rather than on the shared gap.

     Zero, not a smaller number: the boxes still hold the lines 44px apart, which leaves 30px
     of visible space — close to the 22px rhythm the links keep horizontally, and the nearest
     to it that does not start cutting into the touch targets. Adjacent rows end up flush,
     which is fine at 44px: they abut, they never overlap, and the centre of each is still
     15px from its neighbour's edge. */
  .footer__links {
    gap: 0 22px;
  }
}

/* Pairs with the inline script in <head>. kg-accents.css opens `.kg-reveal` at
   opacity 0; if its bundle never lands, that would hide real content, so the hidden
   state only applies once a script has proved it can run. */
html:not(.kg-js) .kg-reveal {
  opacity: 1;
  transform: none;
}
