/* ALIVE v2 chrome for lyric pages.
   The rail and footer adopt each song's own palette: canvas and ink read
   the page's :root tokens (--bg first, then --paper, then site ivory —
   a page defining both rides --bg) and the supporting shades derive from
   them, so the bands blend with the theme instead of sitting as ivory
   strips. The brass accent self-darkens toward the page ink for contrast
   on tinted light grounds; dark pages opt into the lifted brass with a
   body class of v2-chrome-dark. */

.v2-rail,
.v2-sitefoot {
  --v2-canvas: var(--bg, var(--paper, #f7f1e7));
  --v2-ink: var(--text, #241d15);
  --v2-ink-soft: color-mix(in srgb, var(--v2-ink) 74%, var(--v2-canvas));
  --v2-muted: color-mix(in srgb, var(--v2-ink) 72%, var(--v2-canvas));
  --v2-hairline: color-mix(in srgb, var(--v2-ink) 24%, transparent);
  --v2-brass: #c8964d;
  --v2-brass-deep: color-mix(in srgb, #8a6227 85%, var(--v2-ink));
  --v2-serif: "Cormorant Garamond", Georgia, serif;
  --v2-sans: "Montserrat", system-ui, sans-serif;
}

body.v2-chrome-dark .v2-rail,
body.v2-chrome-dark .v2-sitefoot {
  --v2-brass-deep: #e2b86d;
}

.v2-rail {
  position: relative;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(28px, 5vw);
  border-bottom: 1px solid var(--v2-hairline);
  color: var(--v2-ink);
  background: var(--v2-canvas);
}

.v2-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--v2-ink);
  font-size: 0; /* hide the text label; it stays in the DOM as the link's accessible name */
  text-decoration: none;
}

.v2-wordmark::before {
  content: "";
  height: 16px;
  aspect-ratio: 800 / 155;
  background-color: currentColor;
  -webkit-mask: url("/_vinyl/brand/alive-logo.png") center / contain no-repeat;
  mask: url("/_vinyl/brand/alive-logo.png") center / contain no-repeat;
}

.v2-wordmark span {
  display: none;
}

.v2-rail nav {
  display: flex;
  gap: 38px;
}

.v2-rail nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--v2-ink-soft);
  font: 600 11px/1 var(--v2-sans);
  letter-spacing: 0.28em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.v2-rail nav a.active {
  color: var(--v2-brass-deep);
}

.v2-rail nav a.active::after {
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--v2-brass-deep);
  content: "";
  transform: translateX(-50%);
}

.v2-wordmark:focus-visible,
.v2-rail nav a:focus-visible,
.v2-sitefoot-mark:focus-visible {
  outline: 2px solid var(--v2-brass-deep);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .v2-rail nav a:hover {
    color: var(--v2-ink);
  }
}

.v2-sitefoot {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 27px max(28px, 5vw) 31px;
  border-top: 1px solid var(--v2-hairline);
  color: var(--v2-ink);
  background: var(--v2-canvas);
}

.v2-sitefoot-inner {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: start;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: clamp(28px, 5vw, 72px);
}

.v2-sitefoot-mark {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 44px;
  color: var(--v2-ink);
  font-size: 0; /* hide the text label; it stays in the DOM as the link's accessible name */
  text-decoration: none;
}

.v2-sitefoot-mark::before {
  content: "";
  height: 18px;
  aspect-ratio: 800 / 155;
  background-color: currentColor;
  -webkit-mask: url("/_vinyl/brand/alive-logo.png") left center / contain no-repeat;
  mask: url("/_vinyl/brand/alive-logo.png") left center / contain no-repeat;
}

.v2-sitefoot-mark span {
  display: none;
}

.v2-sitefoot-note {
  max-width: 52ch;
  margin: 0;
  color: var(--v2-ink-soft);
  font: 400 15px/1.45 var(--v2-serif);
}

.v2-sitefoot-note small {
  display: block;
  margin-top: 4px;
  color: var(--v2-muted);
  font: 500 8.5px/1.5 var(--v2-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  .v2-rail {
    padding: 18px 20px;
  }

  .v2-rail nav {
    display: none;
  }

  .v2-sitefoot {
    padding: 24px 20px 28px;
  }

  .v2-sitefoot-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .v2-sitefoot-note {
    font-size: 14px;
  }
}
