/* Craig's archive: a jukebox wall-box. Deep blue lacquer cabinet, brushed-chrome bezels,
   cream card-stock title strips with a red band for the song a playlist repeats and a blue band for the rest.
   Custom properties use the --jb- prefix (generic names get overridden by browser extensions). */

@font-face { font-family: 'Big Shoulders Display'; font-weight: 100 900; font-display: swap;
  src: url(fonts/big-shoulders-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 100 900; font-display: swap;
  src: url(fonts/big-shoulders-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Special Elite'; font-weight: 400; font-display: swap;
  src: url(fonts/special-elite-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Special Elite'; font-weight: 400; font-display: swap;
  src: url(fonts/special-elite-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --jb-cabinet: #0e1d3d;
  --jb-cabinet-hi: #1b3170;
  --jb-glass: #120f0b;
  --jb-text: #eef1f7;
  --jb-muted: #b8c4df;
  --jb-strip: #f4ecd6;
  --jb-strip-edge: #ddd0ae;
  --jb-ink: #201c17;
  --jb-red: #b3202a;
  --jb-red-deep: #8c1820;
  --jb-blue: #1f3f8f;
  --jb-lamp: #ff6a3d;
  --jb-focus: #ffd34d;
  /* Keys and plates: a tight specular along the top edge, falling off to satin. */
  --jb-chrome: linear-gradient(180deg, #ffffff 0%, #eef0f3 14%, #d3d8de 46%, #c2c8d0 100%);
  --jb-chrome-base: #c9ced5;
  --jb-rail: 14px;
  --jb-chrome-edge: #5f6672;
  --jb-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --jb-type: 'Special Elite', 'Courier New', monospace;
  --jb-ui: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --jb-gutter: clamp(16px, 3vw, 36px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--jb-cabinet); scrollbar-color: #5f6b8c var(--jb-cabinet); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--jb-text);
  font: 16px/1.5 var(--jb-ui);
  /* The room: a dark wall lit from above, a warm lamp low on the left, a red sign glowing off to the right,
     and a floor that catches the light. The out-of-focus string lights (.scene) hang in front of it. */
  background:
    radial-gradient(60% 45% at 50% -4%, rgb(70 104 190 / .55), transparent 70%),
    radial-gradient(38% 30% at 4% 78%, rgb(255 170 90 / .16), transparent 70%),
    radial-gradient(30% 26% at 98% 34%, rgb(255 60 60 / .12), transparent 72%),
    linear-gradient(180deg, #0f1e44 0%, var(--jb-cabinet) 55%, #0a1430 82%, #0d1a3a 100%) fixed,
    var(--jb-cabinet);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--jb-red); color: var(--jb-strip); }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--jb-focus); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.scene-layer { position: absolute; left: 0; top: 0; width: 100%; height: 125%; }
.scene-far { position: absolute; inset: 0; transform: translateY(var(--jb-far, 0)); opacity: .8; }
/* The lights add light to the room rather than covering it. */
.scene-far, .scene-near { mix-blend-mode: screen; }
/* Keep the room behind the words quiet: big near lights stay at the sides, small far ones dim toward the middle. */
.scene-near { -webkit-mask-image: linear-gradient(90deg, #000 0 10%, transparent 26% 74%, #000 90%); mask-image: linear-gradient(90deg, #000 0 10%, transparent 26% 74%, #000 90%); }
.scene-far { -webkit-mask-image: linear-gradient(90deg, #000 0 8%, rgb(0 0 0 / .45) 24% 76%, #000 92%); mask-image: linear-gradient(90deg, #000 0 8%, rgb(0 0 0 / .45) 24% 76%, #000 92%); }
@media (max-width: 700px) {
  .scene-near { -webkit-mask-image: linear-gradient(180deg, #000 0 6%, transparent 20%); mask-image: linear-gradient(180deg, #000 0 6%, transparent 20%); }
}
.scene-near { position: absolute; inset: 0; transform: translateY(var(--jb-near, 0)); }
/* The floor: where the room's light pools at the bottom of the view. */
.scene::after { content: ''; position: absolute; inset: auto 0 0; height: 22vh;
  background: linear-gradient(180deg, transparent, rgb(4 8 22 / .55)); }
.box { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 var(--jb-gutter) 72px; }

/* ── The marquee: the chrome crown of the cabinet ─────────────────────────── */
.marquee {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 26px;
}
.marquee-plate {
  display: grid; text-decoration: none;
  padding: 14px 34px 16px;
  color: var(--jb-cabinet);
  background: var(--jb-chrome);
  border: 1px solid var(--jb-chrome-edge);
  border-radius: 999px 999px 14px 14px / 160px 160px 14px 14px;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgb(255 255 255 / .55), inset 0 -3px 0 rgb(0 0 0 / .12), 0 10px 24px rgb(0 0 0 / .35);
}
.marquee-name {
  font: 800 clamp(2.6rem, 6vw, 4.4rem)/.9 var(--jb-display);
  letter-spacing: -.01em; text-transform: uppercase;
  color: var(--jb-red);
}
.marquee-sub { font: 1.05rem/1.2 var(--jb-type); color: var(--jb-ink); margin-top: 4px; }
.marquee-plate:hover .marquee-name { color: var(--jb-red-deep); }
.marquee-nav { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Keys: chrome push buttons; a pressed key lights red ──────────────────── */
.key {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 18px;
  font: 800 1.05rem/1 var(--jb-display); letter-spacing: .06em; text-transform: uppercase;
  color: var(--jb-ink); text-decoration: none; cursor: pointer;
  background: var(--jb-chrome);
  border: 1px solid var(--jb-chrome-edge); border-radius: 8px;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(255 255 255 / .6), 0 3px 0 #3d434d, 0 6px 12px rgb(0 0 0 / .3);
  transition: transform .12s ease-out, box-shadow .12s ease-out, filter .12s;
}
.key:hover { filter: brightness(1.06); }
.key:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #fff, 0 1px 0 #3d434d, 0 3px 6px rgb(0 0 0 / .3); }
.key[aria-current], .key[aria-pressed="true"] {
  color: var(--jb-strip); background: linear-gradient(180deg, #d8424a, var(--jb-red) 45%, var(--jb-red-deep));
  border-color: #5e0f15; transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 1px 0 #3d434d, 0 3px 8px rgb(0 0 0 / .3);
}
.key:disabled { opacity: .45; cursor: default; filter: none; transform: none; }
.key--small { min-height: 40px; padding: 6px 14px; font-size: .95rem; }
.key--play {
  min-height: 56px; padding: 12px 26px; font-size: 1.3rem;
  color: var(--jb-strip); background: linear-gradient(180deg, #d8424a, var(--jb-red) 45%, var(--jb-red-deep)); border-color: #5e0f15;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 4px 0 #4a0b10, 0 8px 18px rgb(0 0 0 / .35);
}

/* ── Feature: the newest playlist and its selector window ─────────────────── */
.feature { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.feature-card { display: grid; gap: 18px; }
.cover {
  display: block; width: 100%; height: auto; aspect-ratio: 1;
  border: 6px solid transparent; border-radius: 10px;
  background: var(--jb-chrome) border-box;
  box-shadow: 0 12px 28px rgb(0 0 0 / .45);
}
.feature-text h2, .now-text h2 {
  margin: 0; font: 800 clamp(2.2rem, 4vw, 3.2rem)/.95 var(--jb-display); letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance;
}
.feature-meta { margin: 8px 0 0; font: 600 1.2rem/1.2 var(--jb-display); letter-spacing: .05em; text-transform: uppercase; color: var(--jb-muted); font-variant-numeric: tabular-nums; }
.fact {
  display: grid; width: fit-content; max-width: 100%; margin: 14px 0 0;
  background: var(--jb-strip); border: 1px solid var(--jb-strip-edge); border-radius: 2px;
  box-shadow: 0 4px 10px rgb(0 0 0 / .3);
}
.fact-top { padding: 8px 12px 7px; font: 1.05rem/1.3 var(--jb-type); color: var(--jb-ink); }
.fact-band {
  padding: 3px 12px 4px; font: 700 .95rem/1.2 var(--jb-display); letter-spacing: .06em; text-transform: uppercase;
  color: var(--jb-strip); background: var(--jb-red); font-variant-numeric: tabular-nums;
}
.feature-text .key--play { margin-top: 20px; }

/* The window: a chrome bezel around backlit glass. */
.window {
  padding: var(--jb-rail); border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff, #e2e6ea) top / 100% var(--jb-rail) no-repeat,
    linear-gradient(180deg, #b9bfc8, #8f96a1) bottom / 100% var(--jb-rail) no-repeat,
    linear-gradient(90deg, #f3f5f7, #c3c9d1) left / var(--jb-rail) 100% no-repeat,
    linear-gradient(90deg, #c3c9d1, #e8ebee) right / var(--jb-rail) 100% no-repeat,
    var(--jb-chrome-base);
  border: 1px solid var(--jb-chrome-edge);
  box-shadow: inset 0 2px 0 #fff, 0 16px 36px rgb(0 0 0 / .45);
}
.window-glass {
  padding: clamp(10px, 1.6vw, 18px); border-radius: 12px;
  background: radial-gradient(90% 70% at 50% 30%, #3a3020 0%, var(--jb-glass) 75%);
  box-shadow: inset 0 3px 10px rgb(0 0 0 / .7);
  perspective: 900px;
}
.strips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px 10px; }
.window-flip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px 2px; }
.window-flip[hidden] { display: none; }
.window-count { font: 800 1.1rem/1 var(--jb-display); letter-spacing: .06em; color: var(--jb-ink); font-variant-numeric: tabular-nums; }

/* ── The title strip ─────────────────────────────────────────────────────── */
.strip[hidden] { display: none; }
.strip-key {
  position: relative; display: grid; grid-template-rows: 1fr auto; height: 100%; min-height: 64px;
  text-decoration: none; color: var(--jb-ink);
  background: var(--jb-strip); border: 1px solid var(--jb-strip-edge); border-radius: 2px;
  box-shadow: 0 2px 4px rgb(0 0 0 / .45);
  transition: transform .14s ease-out, box-shadow .14s ease-out;
}
.strip-key:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgb(0 0 0 / .5); }
.strip-top { display: flex; align-items: baseline; gap: 8px; padding: 7px 22px 6px 9px; min-width: 0; }
.strip-code { flex: none; font: 800 1rem/1 var(--jb-display); color: var(--jb-red); letter-spacing: .02em; font-variant-numeric: tabular-nums; min-width: 2ch; }
.strip-title {
  font: .92rem/1.2 var(--jb-type); text-transform: uppercase; letter-spacing: .02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.strip-band {
  display: flex; justify-content: space-between; gap: 8px; padding: 3px 9px 4px;
  font: 600 .86rem/1.15 var(--jb-display); letter-spacing: .05em; text-transform: uppercase;
  color: var(--jb-strip); background: var(--jb-blue);
}
.strip--rep .strip-band { background: var(--jb-red); }
.strip-artist { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-len { flex: none; font-variant-numeric: tabular-nums; }
/* The selection lamp: lit on the version playing. */
.strip-key::after {
  content: ''; position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%;
  background: #8b8170; box-shadow: inset 0 1px 1px rgb(0 0 0 / .4); opacity: 0; transition: opacity .2s;
}
.strip.is-lit .strip-key::after {
  opacity: 1; background: radial-gradient(circle at 40% 35%, #ffd7c2, var(--jb-lamp) 55%, #b8361a);
  box-shadow: 0 0 10px 2px rgb(255 106 61 / .65);
}
.strip.is-lit .strip-key { outline: 2px solid var(--jb-lamp); outline-offset: 2px; }
.strip.is-found .strip-key { outline: 3px solid var(--jb-focus); outline-offset: 3px; }
.strip-key:focus-visible { outline: 3px solid var(--jb-focus); outline-offset: 3px; }

/* The one authored moment: a page of strips flips into the window. */
@media (prefers-reduced-motion: no-preference) {
  .is-flipping .strip:not([hidden]) {
    animation: strip-in .42s cubic-bezier(.16, 1, .3, 1) both;
    animation-delay: calc(var(--n, 0) * 18ms);
    transform-origin: 50% 0;
  }
}
@keyframes strip-in { from { transform: rotateX(-78deg); opacity: .2; } }

/* ── Every playlist, as big strips on chrome shelves ──────────────────────── */
.selections { margin-top: clamp(48px, 7vw, 88px); display: grid; gap: clamp(32px, 4vw, 48px); }
.shelf { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
.shelf-plate { margin: 0; }
.shelf-plate a {
  display: block; padding: 10px 14px 9px; text-decoration: none; text-align: center;
  font: 800 1.6rem/1 var(--jb-display); letter-spacing: .03em; text-transform: uppercase; color: var(--jb-ink);
  background: var(--jb-chrome); border: 1px solid var(--jb-chrome-edge); border-radius: 8px;
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px rgb(0 0 0 / .35);
}
.shelf-plate a:hover { color: var(--jb-red); }
.records { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.record a {
  display: grid; grid-template-rows: auto auto 1fr; height: 100%; text-decoration: none; color: var(--jb-ink);
  background: var(--jb-strip); border: 1px solid var(--jb-strip-edge); border-radius: 3px;
  box-shadow: 0 6px 14px rgb(0 0 0 / .4);
  transition: transform .14s ease-out, box-shadow .14s ease-out;
}
.record a:hover { transform: translateY(-3px); box-shadow: 0 12px 22px rgb(0 0 0 / .45); }
.record-title { padding: 14px 16px 12px; font: 1.35rem/1.15 var(--jb-type); text-transform: uppercase; text-wrap: balance; }
.record-band {
  display: flex; justify-content: space-between; gap: 12px; padding: 6px 16px 7px;
  font: 700 1rem/1.2 var(--jb-display); letter-spacing: .05em; text-transform: uppercase; color: var(--jb-strip);
  background: var(--jb-blue); font-variant-numeric: tabular-nums;
}
.record--rep .record-band { background: var(--jb-red); }
.record-fact { padding: 10px 16px 13px; font: .95rem/1.35 var(--jb-type); }

/* ── Year pages ──────────────────────────────────────────────────────────── */
.keys { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.cabinet-head[hidden] { display: none; }
.cabinet-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-bottom: 22px; }
.sets { display: flex; flex-wrap: wrap; gap: 10px; }
.now { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; margin-bottom: 26px; }
.now-text { display: flex; gap: 18px; align-items: flex-start; }
.now-text .cover { width: 120px; flex: none; border-width: 4px; }
.now-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.open-link { display: table; margin-top: 14px; font: 700 1.05rem/1.2 var(--jb-display); letter-spacing: .06em; text-transform: uppercase; color: var(--jb-muted); }
.open-link:hover { color: var(--jb-text); }
/* The speaker: a chrome grille around the Spotify player. */
.speaker {
  --jb-rail: 10px;
  padding: var(--jb-rail); border-radius: 18px; min-height: 172px;
  background:
    linear-gradient(180deg, #ffffff, #e2e6ea) top / 100% var(--jb-rail) no-repeat,
    linear-gradient(180deg, #b9bfc8, #8f96a1) bottom / 100% var(--jb-rail) no-repeat,
    linear-gradient(90deg, #f3f5f7, #c3c9d1) left / var(--jb-rail) 100% no-repeat,
    linear-gradient(90deg, #c3c9d1, #e8ebee) right / var(--jb-rail) 100% no-repeat,
    var(--jb-chrome-base);
  border: 1px solid var(--jb-chrome-edge);
  box-shadow: inset 0 2px 0 #fff, 0 12px 28px rgb(0 0 0 / .4);
}
.speaker iframe, #spotify-player { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; background: var(--jb-glass); }
.speaker-off { margin: 0; padding: 18px; border-radius: 12px; background: var(--jb-glass); color: var(--jb-text); }

.out-of-order { margin: 12vh auto; max-width: 34ch; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 160px 1fr; align-items: start; }
  .now { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: 1fr; gap: 12px; }
  .shelf-plate a { display: inline-block; }
}
@media (max-width: 560px) {
  .marquee { padding: 14px 0 20px; flex-wrap: nowrap; align-items: center; }
  .marquee-plate { padding: 10px 18px 12px; }
  .marquee-name { font-size: 2.3rem; }
  .marquee-sub { font-size: .9rem; }
  .key { min-height: 44px; padding: 6px 11px; font-size: .92rem; letter-spacing: .04em; }
  .keys, .sets { gap: 8px; }
  .keys { margin-bottom: 18px; }
  .cabinet-head { gap: 12px; margin-bottom: 16px; }
  .feature-card { grid-template-columns: 112px 1fr; gap: 14px; }
  .feature-card .cover { border-width: 4px; }
  .feature-text h2 { font-size: 2rem; }
  .fact-top { font-size: .95rem; }
  .feature-card .key--play { min-height: 52px; font-size: 1.1rem; }
  .strips { grid-template-columns: 1fr 1fr; gap: 6px; }
  .strip-top { padding: 6px 20px 5px 7px; gap: 6px; }
  .strip-title { font-size: .8rem; }
  .strip-band { font-size: .76rem; padding: 3px 7px; }
  .window { --jb-rail: 8px; border-radius: 16px; }
  .now-text .cover { width: 88px; }
  .window-flip .key--small { padding: 6px 10px; }
}
