/* catalog-shelf.css — the catalogue's surface, in two themes.
 *
 * STANDALONE. Never co-load with styles.css: that sheet defines --ink and
 * --paper with the opposite meanings and wins on html/body.
 *
 * One product, one architecture, two renderings. Every colour, shadow and
 * veil below is a token; the light theme is the default and [data-theme=dark]
 * swaps the palette for the dark demo's atmosphere — near-black ground, cream
 * ink, deeper depth, a glare on the covers, a heavier veil. Nothing about how
 * a record behaves changes between them: tap opens, hold picks up, drag
 * browses, Wave is a view. The theme is how the system is rendered.
 *
 * The visual system itself: the PLATFORM is quiet — a wordmark, three views,
 * a theme control. The RECORDS are the page: full-bleed on the ground with no
 * card around them, one size, arriving straight after the header. The record's
 * voice is an uppercase tracked artist line, the title in Inter Display
 * ExtraBold, the facts in small caps, and its credits beside it as one
 * composition. Radius 6px, measured off the reference. Multi-track releases
 * carry a stack of sleeves behind the cover.
 */

/* TEXT cut, for body copy. Inter Display is drawn for large sizes; set a
   paragraph in it and the paragraph reads heavy, which is what made the
   bio look thick. "Inter" is the text family, "Inter Display" the headline
   one — the same typeface, two optical sizes, used for what each is for. */
@font-face{font-family:"Inter Display";src:url(assets/fonts/InterDisplay-SemiBold.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Inter Display";src:url(assets/fonts/InterDisplay-Regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Inter Display";src:url(assets/fonts/Inter-Bold.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Inter Display";src:url(assets/fonts/InterDisplay-ExtraBold.woff2) format("woff2");font-weight:800;font-style:normal;font-display:swap}
@font-face{font-family:"Inter Display";src:url(assets/fonts/InterDisplay-Black.woff2) format("woff2");font-weight:900;font-style:normal;font-display:swap}

/* ---- tokens: light ---- */
:root{
  color-scheme:light;
  --page:#f6f7f8;
  --ink:#18191b;
  /* Darker than it was. The record's scene now sits behind the page in light
     mode too, which lifts the ground under the type — the owner: "for light
     mode some of the text doesn't sit on top of the white sharp enough to
     really pop out." */
  --muted:#565a62;
  --line:#e2e4e7;
  --header-bg:rgba(246,247,248,.88);
  --ease:cubic-bezier(.2,.82,.2,1);
  --object-ground:#eff0f3;          /* letterbox behind a contain-fitted cover */
  --hairline:rgba(20,25,35,.08);    /* the 1px that keeps white-on-white apart */
  --glare:0;                        /* the dark demo's sheen; off on white */
  /* the stack: a tonal step per depth, deeper is further from the ground */
  --leaf-1:#f0f2f5;
  --leaf-2:#e5e8ed;
  --leaf-3:#d9dde4;
  --leaf-line:rgba(20,25,35,.14);
  --leaf-shadow:0 1px 2px rgba(10,17,27,.07);
  --placeholder-bg:#e5e8ed;
  --placeholder-ink:#24262b;
  --placeholder-dim:#63666f;
  --focus-ring:#3457ce;
  /* elevation: contact + ambient at rest; deeper for the selected record;
     out of the shelf entirely when it is in the hand */
  --record-shadow:0 7px 16px rgba(10,17,27,.11),0 1px 3px rgba(10,17,27,.08);
  --record-shadow-selected:0 12px 26px rgba(10,17,27,.15),0 1px 3px rgba(10,17,27,.09);
  --record-shadow-lifted:0 34px 70px rgba(10,17,27,.30),0 2px 6px rgba(10,17,27,.10),0 0 0 1px rgba(20,25,35,.12);
  --record-shadow-hover:0 9px 22px rgba(22,26,36,.13);
  --clone-shadow:0 12px 28px rgba(20,25,35,.08);
  --lift-dim:.5;                    /* how far the page recedes behind a held record */
  /* the viewer: the two numbers JS reads, and its chrome */
  --veil-rgb:18,21,28;
  --viewer-veil:.55;
  --viewer-blur:8;
  --viewer-art-shadow:0 28px 70px rgba(10,14,25,.32);
  --panel-bg:rgba(255,255,255,.96);
  --panel-line:rgba(255,255,255,.6);
  --panel-shadow:0 14px 55px rgba(10,17,27,.18);
  --close-bg:rgba(255,255,255,.92);
  --close-line:rgba(255,255,255,.5);
  --on-veil:#e6e8ec;
  --display:"Inter Display","Inter",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  --cover-radius:6px;               /* one radius; JS reads it for the viewer's counter-scale */
  --page-pad:clamp(20px,3.3vw,56px);
  /* Notched phones in landscape: the page keeps clear of the sensor housing. */
  --pad-l:max(var(--page-pad),env(safe-area-inset-left));
  --pad-r:max(var(--page-pad),env(safe-area-inset-right));
  /* The band, and a cover sized from BOTH the width and the band: on a short
     screen (a phone on its side, a small laptop) the height is the limit, and
     a cover can never be taller than the band has room for above the shelf
     line. 62% of the band leaves the line at 19.5% plus a margin. */
  --band-h:clamp(360px,min(62svh,48vw),640px);
  --sleeve-max:clamp(200px,21vw,300px);
  --sleeve-w:min(var(--sleeve-max),calc(var(--band-h) * .62));
  --sleeve-gap:calc(var(--sleeve-w) * .07);
  --shelf-baseline:19.5%;
  --header-h:76px;
}
/* ---- tokens: dark — the dark demo's atmosphere on the same system ---- */
[data-theme="dark"]{
  color-scheme:dark;
  --page:#0a0908;
  /* NEUTRAL, NOT CREAM. The owner: "the weird look inside the site — which is
     the cream colour when I switch to the catalog. For some reason the TEXT is
     changing to a cream colour." It was: #EFE6D3 is a warm parchment, and
     against the profile's cool off-white the switch read as the page changing
     temperature halfway down. The record's own scene is what colours the page
     now; the type stays out of it. */
  --ink:#f2f3f5;
  --muted:rgba(242,243,245,.55);
  --line:rgba(242,243,245,.14);
  --header-bg:rgba(10,9,8,.86);
  --object-ground:#141210;
  --hairline:rgba(239,230,211,.12);
  --glare:1;
  --leaf-1:#1c1916;
  --leaf-2:#242019;
  --leaf-3:#2c2721;
  --leaf-line:rgba(239,230,211,.16);
  --leaf-shadow:0 18px 34px -24px #000;
  --placeholder-bg:#1a1714;
  --placeholder-ink:#EFE6D3;
  --placeholder-dim:rgba(239,230,211,.5);
  --focus-ring:#7c98ec;            /* the light theme's blue lifted for the dark ground; no gold (owner, 2026-10-02) */
  --record-shadow:0 26px 50px -26px #000;
  --record-shadow-selected:0 34px 60px -28px #000;
  --record-shadow-lifted:0 60px 90px -30px rgba(0,0,0,.9),0 0 0 1px rgba(239,230,211,.22);
  --record-shadow-hover:0 30px 60px -28px #000;
  --clone-shadow:0 26px 50px -26px #000;
  --lift-dim:.4;
  --veil-rgb:6,5,5;
  --viewer-veil:.82;
  --viewer-blur:9;
  --viewer-art-shadow:0 50px 90px -34px #000;
  --panel-bg:rgba(13,11,10,.96);
  --panel-line:rgba(239,230,211,.14);
  --panel-shadow:0 14px 55px rgba(0,0,0,.5);
  --close-bg:rgba(20,18,16,.92);
  --close-line:rgba(239,230,211,.2);
  --on-veil:#EFE6D3;
}

*{box-sizing:border-box}
html{background:var(--page);scrollbar-gutter:stable}
body{margin:0;min-width:320px;color:var(--ink);background:var(--page);
  font-family:var(--display);-webkit-font-smoothing:antialiased}
body.dialog-open{overflow:hidden}
button,a{color:inherit}
button{font:inherit;-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--focus-ring);outline-offset:5px}
[hidden]{display:none !important}
body.no-ring :focus-visible{outline:none}

/* ---- the platform: wordmark, three views, a theme control ---- */
.site-header{position:fixed;z-index:30;inset:0 0 auto;height:var(--header-h);
  padding:0 var(--pad-r) 0 var(--pad-l);display:flex;align-items:center;justify-content:space-between;gap:24px;
  background:var(--header-bg);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  transition:opacity .35s var(--ease)}
.wordmark{text-decoration:none;font-size:25px;font-weight:900;font-style:italic;letter-spacing:-.065em;line-height:1}
.wordmark-dot{display:none}
.header-stats{display:none}
.header-nav{display:flex;align-items:center;gap:8px}
/* three text buttons and a 2px rule that slides and squashes; no track, no fill */
.mode-switch{position:relative;display:grid;grid-template-columns:1fr 1fr 1fr;width:306px;height:48px;padding:0 3px}
.mode-button{position:relative;z-index:1;border:0;background:transparent;padding:0 6px 3px;min-width:0;overflow:hidden;
  color:var(--muted);cursor:pointer;font-size:.875rem;font-weight:700;white-space:nowrap}
.mode-button.is-active{color:var(--ink)}
.mode-pill{position:absolute;left:21px;bottom:5px;width:64px;height:2px;background:var(--ink);
  transform-origin:center;transition:transform .48s var(--ease)}
.mode-switch[data-active="wave"] .mode-pill{transform:translateX(100px) scaleX(.55)}
.mode-switch[data-active="grid"] .mode-pill{transform:translateX(200px) scaleX(.8)}
.theme-toggle{width:40px;height:40px;margin-left:6px;border:1px solid var(--line);border-radius:50%;
  background:transparent;color:var(--muted);font-size:17px;line-height:1;display:grid;place-items:center;
  cursor:pointer;transition:color .2s,border-color .2s}
.theme-toggle:hover{color:var(--ink);border-color:var(--muted)}

/* ---- views: the art arrives straight after the header ---- */
.shelf-view{padding:calc(var(--header-h) + 18px) var(--pad-r) 48px var(--pad-l);min-height:100svh}
.grid-view{padding:calc(var(--header-h) + 34px) var(--pad-r) 32px var(--pad-l);min-height:100svh}
.record-readout,.record-grid,.archive-footer,.view-note{max-width:1500px;margin-inline:auto;width:100%}
.view-note{margin:0 0 22px;font-size:.6875rem;line-height:1.4;letter-spacing:.1em;text-transform:uppercase;
  font-weight:700;color:var(--muted)}

/* ---- the shelf: a full-bleed band on the ground, not a card. Perspective is
   always on so the Wave's depth and a lifted record's lift-toward-the-eye
   have somewhere to come from; on the flat shelf z is 0 and it does nothing. */
.record-stage{position:relative;height:var(--band-h);margin:0 calc(-1 * var(--pad-r)) 0 calc(-1 * var(--pad-l));
  overflow:hidden;cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none;
  perspective:1400px;perspective-origin:50% 46%}
.record-stage.is-dragging{cursor:grabbing}
/* Flex-end IS the shared baseline: every sleeve is one size and square. The
   rail is one translated object; each sleeve then carries its own transform. */
.record-rail{position:absolute;left:0;bottom:var(--shelf-baseline);width:max-content;
  display:flex;align-items:flex-end;gap:var(--sleeve-gap);transform-style:preserve-3d}
.record-stage.is-busy .record-rail{will-change:transform}
.record-sleeve{position:relative;flex:0 0 auto;width:var(--sleeve-w);aspect-ratio:1;padding:0;border:0;
  border-radius:var(--cover-radius);background:transparent;cursor:inherit;transform-origin:center bottom;
  -webkit-touch-callout:none}
.record-sleeve.is-lifted{cursor:grabbing}
/* the cover: hairline + shadow; deeper when selected; out of the shelf when held */
.sleeve-art{box-shadow:var(--record-shadow);transition:box-shadow .35s var(--ease)}
.record-sleeve.is-selected .sleeve-art{box-shadow:var(--record-shadow-selected)}
.record-sleeve.is-lifted .sleeve-art{box-shadow:var(--record-shadow-lifted)}
/* While a record is in the hand the page recedes behind it — a fade, no
   blur — and comes back as it lands. The other covers fade through the
   projection in JS (LIFT_DIM); the chrome fades here. The viewer's veil is a
   separate, deeper thing. */
.site-header,.record-readout,.grid-caption{transition:opacity .35s var(--ease)}
body.is-lifting .site-header,body.is-lifting .record-readout{opacity:.45}
body.is-lifting .grid-card:not(.is-lifted) .grid-caption{opacity:.5}
.record-object{position:relative;display:block;aspect-ratio:1;width:100%;border-radius:var(--cover-radius);
  overflow:hidden;background:var(--object-ground)}
.record-object::after{content:"";position:absolute;inset:0;border:1px solid var(--hairline);border-radius:inherit;pointer-events:none}
/* the dark demo's sheen: a restrained soft-light gradient, on only in the dark */
.record-object::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:inherit;
  background:linear-gradient(118deg,rgba(255,255,255,.20),transparent 30%,transparent 70%,rgba(0,0,0,.22));
  mix-blend-mode:soft-light;opacity:var(--glare)}
.record-object img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-touch-callout:none}
.has-open-cover{visibility:hidden}

/* ---- the stack: one sleeve per extra track on file, leaning up and right so
   the cover's own bottom edge stays the shelf line. 2.2% per leaf sideways
   keeps three leaves inside the 7% gutter. Leaves never carry .record-object. */
.leaf{position:absolute;inset:0;border-radius:var(--cover-radius);
  background:var(--leaf-fill,var(--leaf-1));border:1px solid var(--leaf-line);
  box-shadow:var(--leaf-shadow);pointer-events:none;
  transform:translate(calc(var(--n) * 2.2%),calc(var(--n) * -5%)) scale(calc(1 - var(--n) * .012))}

/* ---- "not on file": the placeholder surface, our words ---- */
.art-placeholder{height:100%;min-height:100%;width:100%;padding:18px;display:flex;flex-direction:column;
  justify-content:space-between;color:var(--placeholder-ink);background:var(--placeholder-bg)}
.art-placeholder strong{font-size:clamp(20px,2vw,30px);font-weight:800;line-height:1.02;letter-spacing:-.055em}
.placeholder-mark{font-size:.75rem;line-height:1.3;font-style:italic}
.placeholder-foot{display:flex;justify-content:space-between;gap:8px;font-size:.75rem;line-height:1.3;color:var(--placeholder-dim)}

/* ---- the readout: the record and its credits as one composition ---- */
.record-readout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);
  gap:28px clamp(32px,6vw,120px);align-items:start;padding:30px 2px 8px}
.record-identity{min-width:0}
.record-artist{margin:0 0 10px;font-size:.75rem;line-height:1.3;letter-spacing:.1em;text-transform:uppercase;
  font-weight:700;color:var(--muted)}
.record-identity h2{margin:0;font-size:clamp(30px,4vw,48px);font-weight:800;letter-spacing:-.03em;line-height:1;
  overflow-wrap:anywhere}
.record-kicker{margin:12px 0 0;font-size:.6875rem;line-height:1.3;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.record-credits-block{min-width:0;padding-top:4px}
.record-credits-label{margin:0 0 6px;font-size:.6875rem;line-height:1.3;letter-spacing:.1em;text-transform:uppercase;
  font-weight:700;color:var(--muted)}
.record-credits{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.record-credits li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 16px;padding:12px 0;
  border-bottom:1px solid var(--line)}
/* explicit placement: title and meta stack left, the role sits right */
.record-credits .t{grid-column:1;grid-row:1;font-size:.9375rem;line-height:1.3;font-weight:700;letter-spacing:-.01em}
.record-credits .m{grid-column:1;grid-row:2;font-size:.75rem;line-height:1.35;color:var(--muted)}
.record-credits .r{grid-column:2;grid-row:1/3;align-self:center;font-size:.6875rem;letter-spacing:.08em;
  text-transform:uppercase;font-weight:700;white-space:nowrap}

/* ---- the gallery: every cover one size, even gutters, no card chrome ---- */
.record-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:8px;column-gap:18px}
.grid-card{position:static;display:block;margin:0 0 18px;padding:0;background:none;border:0;
  text-align:left;cursor:pointer;border-radius:var(--cover-radius);width:100%;-webkit-touch-callout:none;
  transition:opacity .35s var(--ease)}
.grid-card.is-lifted{position:relative;z-index:50;cursor:grabbing}
.grid-card.is-lifted .grid-card-art{box-shadow:var(--record-shadow-lifted);transform:none}
body.is-lifting .grid-card:not(.is-lifted){opacity:var(--lift-dim)}
.grid-stack{position:relative;padding-top:10px;padding-right:10px}
.grid-stack .leaf{inset:10px 10px 0 0}
.grid-card-art{aspect-ratio:var(--ar,1);transition:transform .34s var(--ease),box-shadow .34s var(--ease)}
.grid-card:hover .grid-card-art{transform:translateY(-3px);box-shadow:var(--record-shadow-hover)}
.grid-caption{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:10px 2px 8px}
.grid-names{min-width:0}
.grid-card-title{display:block;font-size:.875rem;line-height:1.3;font-weight:700;letter-spacing:-.018em}
.grid-card-artist{display:block;margin-top:3px;color:var(--muted);font-size:.75rem;line-height:1.35}
.grid-card-year{color:var(--muted);font-size:.75rem;line-height:1.3}
.archive-footer{display:flex;align-items:baseline;justify-content:space-between;gap:24px;margin-top:70px;
  border-top:1px solid var(--line);padding-top:24px}
.archive-footer p{margin:0;font-style:italic;font-size:22px;font-weight:900;letter-spacing:-.05em}
.archive-footer span{color:var(--muted);font-size:.75rem}

/* ---- the switch to and from the grid: real objects hide, clones fly ---- */
.is-rearranging .record-object:not(.layout-clone),.is-rearranging .grid-caption,.is-rearranging .leaf{opacity:0}
.is-rearranging .record-stage,.is-rearranging .record-grid{pointer-events:none}
.layout-clone{position:fixed;z-index:100;margin:0;padding:0;pointer-events:none;
  transform-origin:0 0;will-change:transform,opacity;box-shadow:var(--clone-shadow)}

/* ---- the viewer: a native dialog; the cover is a fixed element driven by
   springs; the chrome is driven by five custom properties written each frame. */
.record-dialog{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;
  margin:0;padding:0;border:0;background:transparent;overflow:hidden;color:var(--ink);
  /* A finger on the open record must not scroll the page under it. iOS
     ignores body{overflow:hidden}, so the page went on moving beneath a
     closing cover and the cover chased its slot (the owner: "stuck in a
     transition"). The credits panel scrolls on its own, below. */
  touch-action:none;overscroll-behavior:contain;
  --veil-alpha:0;--veil-blur:0px;--content-opacity:0;--content-shift:12px;--close-opacity:0}
.record-dialog::backdrop{background:rgba(var(--veil-rgb),var(--veil-alpha));
  backdrop-filter:blur(var(--veil-blur));-webkit-backdrop-filter:blur(var(--veil-blur))}
.dialog-shell{position:absolute;inset:0;overflow:hidden}
.dialog-art-wrap{position:fixed;left:0;top:0;z-index:4;border-radius:var(--cover-radius);
  cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;will-change:transform;-webkit-touch-callout:none}
.dialog-art-wrap.is-dragging{cursor:grabbing}
.dialog-art,.dialog-art-placeholder{width:100%;height:100%;display:block;border-radius:inherit;overflow:hidden;object-fit:contain;pointer-events:none}
.dialog-art-shadow{position:absolute;z-index:-1;inset:0;border-radius:inherit;box-shadow:var(--viewer-art-shadow);pointer-events:none}
.dialog-index{position:fixed;font-size:.75rem;line-height:1.3;color:var(--on-veil);pointer-events:none;
  opacity:var(--content-opacity);font-variant-numeric:tabular-nums}
.dialog-close{position:fixed;z-index:8;right:max(24px,env(safe-area-inset-right));top:max(18px,env(safe-area-inset-top));
  height:46px;min-width:104px;display:flex;align-items:center;justify-content:center;gap:12px;
  border:1px solid var(--close-line);border-radius:100px;background:var(--close-bg);color:var(--ink);
  font-size:.875rem;cursor:pointer;opacity:var(--close-opacity)}
.dialog-close i{position:relative;width:14px;height:14px}
.dialog-close i::before,.dialog-close i::after{content:"";position:absolute;top:6px;left:0;width:14px;height:1px;background:currentColor}
.dialog-close i::before{transform:rotate(45deg)}
.dialog-close i::after{transform:rotate(-45deg)}
.dialog-content{position:fixed;z-index:5;left:57%;right:5.5%;top:50%;
  max-height:calc(100dvh - 158px);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;
  padding:clamp(22px,2.6vw,42px);border:1px solid var(--panel-line);
  border-radius:16px;background:var(--panel-bg);box-shadow:var(--panel-shadow);
  opacity:var(--content-opacity);transform:translateY(calc(-50% + var(--content-shift)))}
.dialog-artist{margin:0 0 12px;font-size:.75rem;line-height:1.3;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:var(--muted)}
.dialog-content h2{margin:0;font-size:clamp(30px,3.8vw,58px);font-weight:800;line-height:.98;letter-spacing:-.03em;overflow-wrap:anywhere}
.dialog-eyebrow{margin:12px 0 0;color:var(--muted);font-size:.6875rem;line-height:1.4;letter-spacing:.1em;text-transform:uppercase}
.credit-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:12px;
  margin-top:34px;border-bottom:1px solid var(--line);font-size:.75rem;color:var(--muted)}
.credit-list{margin:0;padding:0;list-style:none}
.credit-item{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;padding:15px 0;border-bottom:1px solid var(--line)}
.credit-item-index{font-size:.75rem;line-height:1.5;color:var(--muted)}
.credit-item-title{font-size:.875rem;line-height:1.35;font-weight:700}
.credit-item-title span{display:block;margin-top:4px;color:var(--muted);font-weight:400}
.credit-item-date{grid-column:2;font-size:.75rem;color:var(--muted)}
.credit-note{display:flex;gap:12px;margin-top:24px;color:var(--muted)}
.credit-note svg{flex:0 0 20px;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.3}
.credit-note p{margin:0;font-size:.75rem;line-height:1.55}
.credit-note strong{display:block;color:var(--ink);font-weight:700;margin-bottom:4px}

/* ---- breakpoints ---- */
@media (max-width:1040px){
  :root{--sleeve-max:clamp(200px,25vw,320px)}
  .grid-card-year{display:none}
  .record-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .record-readout{grid-template-columns:minmax(0,1fr) minmax(260px,.8fr);gap:24px 40px}
}
@media (max-width:760px){
  :root{--page-pad:16px;--header-h:68px;--sleeve-max:min(62vw,300px);--band-h:clamp(320px,58svh,560px)}
  .site-header{gap:10px}
  .wordmark{font-size:23px}
  .header-nav{gap:4px}
  .mode-switch{width:258px}
  .mode-button{padding-inline:2px;font-size:.8125rem}
  .mode-pill{left:17px;width:56px}
  .mode-switch[data-active="wave"] .mode-pill{transform:translateX(84px) scaleX(.55)}
  .mode-switch[data-active="grid"] .mode-pill{transform:translateX(168px) scaleX(.85)}
  .theme-toggle{width:36px;height:36px;margin-left:2px;font-size:15px}
  .shelf-view{padding-top:calc(var(--header-h) + 10px);padding-bottom:28px}
  .grid-view{padding-top:calc(var(--header-h) + 22px)}
  .record-readout{grid-template-columns:minmax(0,1fr);gap:22px;padding-top:22px}
  .record-identity h2{font-size:30px}
  .record-credits .t{font-size:.875rem}
  .record-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
  .grid-card{margin-bottom:12px}
  .grid-caption{padding-top:9px;padding-bottom:8px}
  .archive-footer{margin-top:48px;align-items:center}
  .archive-footer span{max-width:140px;text-align:right;line-height:1.45}
  .dialog-close{top:max(10px,env(safe-area-inset-top));right:16px;height:44px;min-width:96px}
  .dialog-content{left:10px;right:10px;top:auto;bottom:max(10px,env(safe-area-inset-bottom));
    max-height:41dvh;padding:22px;transform:translateY(var(--content-shift))}
  .dialog-content h2{font-size:36px}
  .dialog-artist{margin-bottom:8px}
  .credit-heading{margin-top:26px}
}
@media (max-width:540px){
  :root{--page-pad:12px}
  .site-header{gap:6px}
  .wordmark{font-size:20px}
  .header-nav{gap:2px}
  .mode-switch{width:186px;padding:0 3px}
  .mode-button{font-size:.75rem;padding-inline:0;letter-spacing:-.01em}
  .mode-pill{left:12px;width:44px}
  .mode-switch[data-active="wave"] .mode-pill{transform:translateX(62px) scaleX(.6)}
  .mode-switch[data-active="grid"] .mode-pill{transform:translateX(124px) scaleX(.9)}
  .theme-toggle{width:28px;height:28px;margin-left:0;font-size:13px}
}
/* the smallest phones: the header has to give, not the shelf */
@media (max-width:350px){
  .wordmark{font-size:18px}
  .mode-switch{width:168px}
  .mode-button{font-size:.6875rem}
  .mode-pill{left:11px;width:40px}
  .mode-switch[data-active="wave"] .mode-pill{transform:translateX(56px) scaleX(.6)}
  .mode-switch[data-active="grid"] .mode-pill{transform:translateX(112px) scaleX(.9)}
  .theme-toggle{width:26px;height:26px;font-size:12px}
}
/* a phone on its side: a shorter band, and the cover follows it */
@media (max-height:520px) and (orientation:landscape){
  :root{--band-h:clamp(280px,72svh,420px);--header-h:60px}
}
/* One blanket, one winner. The JS half is the reduced-motion gate in Spring.step. */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none !important;animation:none !important}
  .grid-card:hover .grid-card-art{transform:none}
}
