:root {
  /* Prime Time edition (default): newsprint, TV Guide red, black */
  --paper: #f7f3ea;
  --cover: #f7f3ea;
  --table: #d9d1bf;
  --dot: rgba(0, 0, 0, .05);
  --ink: #161616;
  --muted: #4d4a44;
  --rule: #161616;
  --card: #fff;
  --ph: var(--ph);
  --logo-bg: #d62828;
  --logo-fg: #fff;
  --accent: #d62828;
  --accent-dk: #a91d1d;
  --on-accent: #fff;
  --headline: #161616;
  --pop: #9bd31c;
  --on-pop: #161616;
  --hover: #ff7b00;
  --photo-a: #ffd23f;
  --photo-b: #ff7b00;
  --photo-c: #e8432b;
  --shirt: #2b54c9;
  --skin: #f6c08a;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

/* ---------- editions (same layout, different 90s magazine palettes) ---------- */
/* Spring Fling: TV Guide's sunny yellow issues */
[data-edition="spring"] {
  --paper: #fffbe6; --cover: #ffe03a; --table: #2a52be; --dot: rgba(255, 255, 255, .12);
  --ink: #111; --muted: #3f3a2a; --rule: #111; --card: #fff; --ph: #f3ecc8;
  --logo-bg: #d62828; --accent: #1d3fbf; --accent-dk: #142d8a; --on-accent: #fff; --headline: #1d3fbf;
  --pop: #ff3ea5; --on-pop: #fff; --hover: #ff3ea5;
  --photo-a: #9edcff; --photo-b: #2a8cff; --photo-c: #1d3fbf; --shirt: #d62828;
  --cond: "Libre Franklin", "Franklin Gothic Medium", sans-serif; --serif: "Libre Caslon Text", Georgia, serif;
}
/* Nick Mag: Nickelodeon Magazine orange, purple and lime */
[data-edition="nick"] {
  --paper: #fffdf5; --cover: #fffdf5; --table: #6b2fb3; --dot: rgba(255, 255, 255, .12);
  --ink: #1a1030; --muted: #4a3d5c; --rule: #1a1030; --card: #fff; --ph: #f1ece2;
  --logo-bg: #ff7a00; --accent: #6b2fb3; --accent-dk: #4d1f86; --on-accent: #fff; --headline: #6b2fb3;
  --pop: #8dd400; --on-pop: #1a1030; --hover: #ff7a00;
  --photo-a: #c6f000; --photo-b: #ffd400; --photo-c: #ff7a00; --shirt: #6b2fb3;
  --cond: "Lilita One", "Arial Rounded MT Bold", sans-serif; --serif: "Nunito", system-ui, sans-serif;
}
/* Day-Glo: Wired '96 hot pink, fluorescent yellow, cyan */
[data-edition="dayglo"] {
  --paper: #fff7fb; --cover: #ff2d8a; --table: #1b1b1b; --dot: rgba(255, 255, 255, .08);
  --ink: #111; --muted: #3d2a35; --rule: #111; --card: #fff; --ph: #f6e6ee;
  --logo-bg: #fff200; --logo-fg: #ff2d8a; --accent: #ff2d8a; --accent-dk: #c4136a; --on-accent: #fff; --headline: #111;
  --pop: #00d2ff; --on-pop: #111; --hover: #fff200;
  --photo-a: #fff200; --photo-b: #ff5e00; --photo-c: #ff2d8a; --shirt: #00a9d6;
  --cond: "Alfa Slab One", Rockwell, serif; --serif: "Bitter", Georgia, serif;
}
/* type tuning: each face needs its own size and tracking */
[data-edition="spring"] .cover h1 { font-size: clamp(40px, 6.2vw, 78px); letter-spacing: -.03em; line-height: .95; }
[data-edition="spring"] .show, [data-edition="spring"] .page-head h2 { letter-spacing: -.02em; }
[data-edition="spring"] body { font-size: 16.5px; }
[data-edition="nick"] .cover h1 { font-size: clamp(42px, 6.6vw, 84px); line-height: .98; text-transform: none; }
[data-edition="nick"] .show { text-transform: none; }
[data-edition="nick"] .logo { border-radius: 18px; }
[data-edition="nick"] .logo span { font-style: normal; -webkit-text-stroke: .04em #1a1030; paint-order: stroke fill; }
[data-edition="nick"] .logo.mini { border-radius: 8px; }
[data-edition="dayglo"] .cover h1 { font-size: clamp(38px, 5.8vw, 74px); line-height: 1; letter-spacing: -.01em; }
[data-edition="dayglo"] .show { font-size: clamp(26px, 3.4vw, 36px); }
[data-edition="dayglo"] .logo span { font-style: normal; }
[data-edition="late"] .cover h1 { font-size: clamp(48px, 8vw, 104px); line-height: .92; letter-spacing: .005em; }
[data-edition="late"] .logo, [data-edition="late"] .logo.big { background: transparent; color: var(--logo-bg); box-shadow: none; }
[data-edition="spring"] .splat span { font-size: 16px; }
[data-edition="dayglo"] .splat span { font-size: 13px; line-height: 1.05; }
[data-edition="late"] .splat span { font-size: 22px; }
[data-edition="late"] .logo.big { padding: 0; }
[data-edition="late"] .logo small { color: var(--ink); }
[data-edition="late"] body { font-size: 18px; }
[data-edition="dayglo"] .cover .pg { background: #111; color: #fff200; }
/* Late Night: Entertainment Weekly's black issues, red logo, yellow highlights */
[data-edition="late"] {
  --paper: #1b1b1b; --cover: #0f0f0f; --table: #000; --dot: rgba(255, 255, 255, .06);
  --ink: #f4efe3; --muted: #b9b2a3; --rule: #f4efe3; --card: #262626; --ph: #2c2c2c;
  --logo-bg: #e3262b; --logo-fg: #fff; --accent: #ffd400; --accent-dk: #c9a600; --on-accent: #111; --headline: #f4efe3;
  --pop: #ffd400; --on-pop: #111; --hover: #e3262b;
  --photo-a: #4a4a4a; --photo-b: #262626; --photo-c: #0a0a0a; --shirt: #e3262b;
  --cond: "Anton", Impact, sans-serif; --serif: "Crimson Pro", Georgia, serif;
}

* { box-sizing: border-box; }
html { font-synthesis: style; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--table) radial-gradient(var(--dot) 1px, transparent 1.4px) 0 0 / 5px 5px;
  color: var(--ink);
  font: 17px/1.55 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--hover); outline-offset: 2px; }
button { font: inherit; color: inherit; }

/* ---------- logo (a parody box logo) ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; background: var(--logo-bg); color: var(--logo-fg); text-decoration: none; line-height: .82; }
.logo span { font: italic 800 1em/0.82 var(--cond); letter-spacing: -.01em; }
.logo small { font: 700 .34em/1 var(--cond); letter-spacing: .5em; margin-right: -.5em; padding-top: .14em; }
.logo.big { font-size: clamp(64px, 11vw, 132px); padding: .1em .14em .12em; box-shadow: 4px 4px 0 var(--ink); }
.logo.mini { font-size: 26px; padding: 5px 7px 6px; }

/* ---------- sticky bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 8px max(16px, calc((100vw - 1120px) / 2));
  background: var(--paper); border-bottom: 3px double var(--rule);
}
.bar-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.bar-nav::-webkit-scrollbar { display: none; }
.bar-nav a {
  flex: 0 0 auto; padding: 6px 10px; text-decoration: none;
  font: 700 17px/1 var(--cond); text-transform: uppercase; letter-spacing: .04em;
}
.bar-nav a:hover, .bar-nav a.active { background: var(--ink); color: var(--paper); }

/* ---------- sheets (pages of the magazine) ---------- */
main { padding: 28px 16px 40px; }
.sheet {
  max-width: 1120px; margin: 0 auto 28px;
  background: var(--paper); padding: clamp(20px, 4vw, 48px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1), 0 22px 40px -26px rgba(0, 0, 0, .55);
}
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 6px solid var(--ink); margin-bottom: 22px; padding-bottom: 4px; }
.page-head h2 { margin: 0; font: italic 800 clamp(40px, 6vw, 64px)/1 var(--cond); text-transform: uppercase; }
.page-head span { font: 600 15px var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- cover ---------- */
.cover { position: relative; overflow: hidden; background: var(--cover); }
.cover-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.issue { display: grid; justify-items: end; gap: 2px; font: 700 16px/1.2 var(--cond); text-transform: uppercase; letter-spacing: .05em; }
.cover-grid { display: flex; align-items: flex-start; gap: clamp(20px, 4vw, 44px); margin-top: 26px; }
.cover-copy { flex: 1.15 1 0; min-width: 0; }
.cover-photo { flex: 1 1 0; min-width: 0; }
.kicker { display: inline-block; margin: 0 0 10px; padding: 3px 8px; background: var(--ink); color: var(--paper); font: 700 15px/1.3 var(--cond); text-transform: uppercase; letter-spacing: .06em; }
.cover h1 { color: var(--headline); margin: 0 0 14px; font: 800 clamp(46px, 7.4vw, 92px)/.9 var(--cond); text-transform: uppercase; letter-spacing: -.01em; }
.byline { margin: 0 0 22px; font-size: 18px; color: var(--muted); }
.byline strong { color: var(--ink); }
.coverlines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.coverlines a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; text-decoration: none; padding-top: 10px; border-top: 2px solid var(--ink); }
.coverlines .cl-head { grid-column: 2; font: 800 24px/1.05 var(--cond); text-transform: uppercase; }
.coverlines .cl-sub { grid-column: 2; font-size: 15px; color: var(--muted); }
.coverlines .pg { grid-row: span 2; align-self: start; padding: 2px 6px; background: var(--accent); color: var(--on-accent); font: 700 14px/1.2 var(--cond); }
.coverlines a:hover .cl-head { color: var(--accent); }
.cover-photo { position: relative; margin: 0; align-self: start; }
.photo-frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; box-shadow: inset 0 0 0 3px var(--ink);
  background:
    radial-gradient(circle at 50% 38%, var(--skin) 0 17%, transparent 17.3%),
    radial-gradient(ellipse 34% 30% at 50% 88%, var(--shirt) 0 99%, transparent 100%),
    radial-gradient(rgba(0, 0, 0, .14) 1px, transparent 1.6px) 0 0 / 6px 6px,
    linear-gradient(160deg, var(--photo-a), var(--photo-b) 60%, var(--photo-c));
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame .ph-note { position: absolute; left: 12px; bottom: 10px; padding: 2px 6px; background: var(--paper); color: var(--ink); font: 600 13px var(--cond); text-transform: uppercase; letter-spacing: .05em; }
.cover-photo figcaption { margin-top: 8px; font-style: italic; font-size: 14px; color: var(--muted); }
.splat {
  position: absolute; z-index: 2; top: -18px; right: -12px; width: 150px; height: 150px; display: grid; place-items: center;
  background: var(--pop); color: var(--on-pop); text-align: center; rotate: 10deg;
  clip-path: polygon(50% 0%, 60% 14%, 78% 4%, 80% 22%, 98% 22%, 88% 40%, 100% 54%, 84% 64%, 92% 82%, 72% 82%, 66% 100%, 50% 88%, 34% 100%, 28% 82%, 8% 84%, 14% 64%, 0% 52%, 12% 40%, 2% 22%, 20% 22%, 22% 4%, 40% 14%);
}
.splat span { font: italic 800 20px/.95 var(--cond); text-transform: uppercase; }
.cover-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 14px; border-top: 3px double var(--rule); }
.cover-foot > span { font: italic 800 26px/1 var(--cond); text-transform: uppercase; color: var(--accent); }
.barcode { display: grid; justify-items: center; gap: 2px; background: #fff; padding: 6px 8px 4px; }
.barcode i { width: 120px; height: 44px; background: repeating-linear-gradient(90deg, #000 0 2px, #fff 2px 3px, #000 3px 4px, #fff 4px 7px, #000 7px 10px, #fff 10px 11px); }
.barcode b { font: 600 11px/1 var(--cond); letter-spacing: .15em; }

/* ---------- contents ---------- */
.contents-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
.toc { list-style: none; margin: 0; padding: 0; }
.toc li + li { border-top: 1px solid rgba(0, 0, 0, .25); }
.toc a { display: grid; grid-template-columns: 64px 1fr auto; align-items: baseline; gap: 12px; padding: 12px 0; text-decoration: none; }
.toc .t { font: 800 24px/1 var(--cond); }
.toc .s { font: 800 24px/1.05 var(--cond); text-transform: uppercase; }
.toc .g { display: block; font: 15px/1.3 var(--serif); color: var(--muted); text-transform: none; font-weight: 400; }
.toc .p { font: 700 16px var(--cond); color: var(--accent); }
.toc a:hover .s { color: var(--accent); }
.picks { align-self: start; padding: 16px 18px; border: 3px solid var(--ink); background: var(--card); }
.picks-title { margin: 0 0 8px; font: italic 800 26px/1 var(--cond); text-transform: uppercase; color: var(--accent); }
.picks ul { margin: 0 0 12px; padding: 0 0 0 18px; }
.picks li { margin: 4px 0; }
.picks a { font-weight: 600; }
.picks-note { margin: 0; font-style: italic; font-size: 15px; color: var(--muted); }

/* ---------- listings ---------- */
.listing { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 26px; padding: 26px 0 30px; border-top: 2px solid var(--ink); }
.listing:first-child { border-top: 0; padding-top: 4px; }
.slot { display: grid; align-content: start; gap: 8px; }
.slot .time { font: 800 44px/.9 var(--cond); }
.slot .ch { justify-self: start; padding: 3px 7px; border: 2px solid var(--ink); font: 700 14px/1 var(--cond); text-transform: uppercase; }
.slot .pick-badge { justify-self: start; padding: 3px 7px; background: var(--accent); color: var(--on-accent); font: 700 13px/1.1 var(--cond); text-transform: uppercase; letter-spacing: .04em; }
.show { color: var(--headline); margin: 0; font: 800 clamp(30px, 4vw, 42px)/1 var(--cond); text-transform: uppercase; }
.meta { margin: 4px 0 10px; font: 600 15px var(--cond); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.blurb { margin: 0 0 18px; max-width: 62ch; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 2px solid var(--ink); cursor: pointer;
  background: var(--paper); color: var(--ink); text-decoration: none;
  font: 700 16px/1 var(--cond); text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.red { background: var(--accent); border-color: var(--accent-dk); color: var(--on-accent); box-shadow: 3px 3px 0 var(--ink); }
.btn.is-placeholder { color: var(--muted); border-style: dashed; box-shadow: none; cursor: default; transform: none; }

/* stills: a flippable strip, three across on desktop, swipeable on phones */
.flip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.flip-count { font: 700 16px/1 var(--cond); text-transform: uppercase; letter-spacing: .06em; }
.flip-btns { display: flex; gap: 8px; }
.btn.sq { width: 40px; height: 36px; padding: 0; justify-content: center; font-size: 24px; line-height: 1; }
.btn.sq:disabled { opacity: .3; cursor: default; transform: none; box-shadow: 3px 3px 0 var(--ink); }
.flip.fits .flip-btns { display: none; }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 3); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 4px 6px 0;
}
.strip::-webkit-scrollbar { display: none; }
.strip > .still { scroll-snap-align: start; }
/* stills (photo grid) */
.stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.still { position: relative; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
/* an Instagram post plus its stats row, with a black margin under the numbers like a cut-out clipping */
.still .pic { display: block; aspect-ratio: 1079 / 1300; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); }
.still .pic.clip { background: #000; }
.still .pic img { width: 100%; height: auto; }
/* white-card framing for posts of mixed shapes (tweets) */
.still .pic.card { position: relative; aspect-ratio: 4 / 5; background: #fff; }
.still .pic.card img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; }
.strip > .still-wrap { display: grid; align-content: start; gap: 6px; scroll-snap-align: start; }
.post-link { justify-self: start; font: 700 14px/1 var(--cond); text-transform: uppercase; letter-spacing: .05em; color: var(--accent); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.post-link:hover { color: var(--ink); }
.strip.bare .cap, .strip.bare .post-link { display: none; }
a.still { display: block; color: inherit; text-decoration: none; }
.still .cap { display: block; margin-top: 5px; font: 600 14px/1.2 var(--cond); text-transform: uppercase; letter-spacing: .03em; }
.still .from { color: var(--accent); }
.still .stat {
  position: absolute; top: 8px; right: 8px; padding: 3px 7px; background: var(--pop); color: var(--on-pop); box-shadow: 2px 2px 0 var(--ink);
  font: 800 14px/1.1 var(--cond); text-transform: uppercase;
}
.still:hover .pic { box-shadow: inset 0 0 0 2px var(--ink), 4px 4px 0 var(--hover); }
.ph {
  display: grid; place-items: center; width: 100%; height: 100%; padding: 10px; text-align: center;
  background: radial-gradient(rgba(0, 0, 0, .13) 1px, transparent 1.5px) 0 0 / 6px 6px, var(--ph);
  color: var(--muted); font: 600 14px/1.25 var(--cond); text-transform: uppercase; letter-spacing: .04em;
}

/* bylines: satire published elsewhere */
.bylines { margin-top: 28px; padding-top: 14px; border-top: 3px double var(--rule); }
.bylines-title { margin: 0 0 14px; font: italic 800 26px/1 var(--cond); text-transform: uppercase; color: var(--accent); }
.outlets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.outlet { padding: 14px 16px 16px; background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); }
.outlet h4 { margin: 0 0 8px; font: 800 24px/1 var(--cond); text-transform: uppercase; }
.outlet-logo { display: flex; align-items: center; height: 72px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.outlet-logo img { max-height: 64px; max-width: min(240px, 100%); width: auto; }
.outlet ul { margin: 0 0 14px; padding: 0; list-style: none; }
.outlet li { padding: 7px 0; border-top: 1px solid rgba(0, 0, 0, .18); font-size: 16px; line-height: 1.35; }
.outlet li:first-child { border-top: 0; }
.outlet li a { text-decoration: none; }
.outlet li a:hover { text-decoration: underline; color: var(--accent); }

/* video */
.tv { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.screen { position: relative; aspect-ratio: 16 / 9; background: #111; box-shadow: inset 0 0 0 2px var(--ink); overflow: hidden; }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.vcr-bar .yt-link { color: #fff; text-decoration: none; border-bottom: 1px solid currentColor; }
.vcr-bar .yt-link:hover { color: #9bd31c; }
.vcr-bar .yt-link[hidden] { display: none; }
.screen iframe, .screen img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.play-hit { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; background: transparent; cursor: pointer; color: #fff; text-decoration: none; }
.big-play { width: 62px; height: 62px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 22px; box-shadow: 3px 3px 0 var(--ink); }
.coming {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: linear-gradient(90deg, #c0c0c0 0 14.28%, #c0c000 0 28.57%, #00c0c0 0 42.85%, #00c000 0 57.14%, #c000c0 0 71.42%, #c00000 0 85.71%, #0000c0 0);
}
.coming span { padding: 6px 12px; background: #111; color: #fff; font: 700 18px/1.2 var(--cond); text-transform: uppercase; letter-spacing: .06em; }
/* channel-change static */
.tv-static { position: absolute; inset: -6% 0; z-index: 3; width: 100%; height: 112%; image-rendering: pixelated; animation: tv-roll .42s steps(7) both; }
.screen.tuning::after { content: ""; position: absolute; inset: 0; z-index: 4; background: #fff; pointer-events: none; animation: tv-flash .42s ease-out both; }
@keyframes tv-roll { 0% { transform: translateY(-5%) scaleY(1.05); } 40% { transform: translateY(4%); } 70% { transform: translateY(-2%); } 100% { transform: none; } }
@keyframes tv-flash { 0% { opacity: .7; } 20% { opacity: 0; } 46% { opacity: .35; } 60%, 100% { opacity: 0; } }
.episodes { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.episodes button {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; width: 100%; padding: 10px 4px; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .25);
  background: none; cursor: pointer; text-align: left; font: 700 18px/1.1 var(--cond); text-transform: uppercase;
}
.episodes button span { color: var(--muted); font-weight: 600; }
.episodes button[aria-current="true"] { background: var(--ink); color: var(--paper); }
.episodes button[aria-current="true"] span { color: var(--pop); }

/* VHS shelf: vertical skits */
.vhs { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 28px; align-items: start; }
.vcr { padding: 10px 10px 6px; background: var(--ink); box-shadow: 4px 4px 0 var(--accent); }
.screen.tall { aspect-ratio: 9 / 16; box-shadow: none; }
.vcr-bar { display: flex; justify-content: space-between; padding-top: 6px; color: #9bd31c; font: 700 13px/1 var(--cond); text-transform: uppercase; letter-spacing: .1em; }
.shelf {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end;
  padding: 34px 10px 0; border-bottom: 12px solid var(--ink); box-shadow: 0 6px 0 rgba(0, 0, 0, .12);
}
.tape {
  position: relative; display: block; width: 100%; padding: 6px; border: 0; border-radius: 4px; cursor: pointer;
  background: #1c1c1c; box-shadow: inset 0 0 0 2px #000, 3px 0 0 #000; text-align: left;
  transition: transform .18s ease;
}
.tape:hover { transform: translateY(-4px); }
.tape[aria-current="true"] { transform: translateY(-16px); }
.tape .now {
  position: absolute; left: 50%; top: -24px; translate: -50% 0; white-space: nowrap; opacity: 0;
  padding: 2px 6px; background: var(--accent); color: var(--on-accent); font: 700 11px/1.2 var(--cond); text-transform: uppercase; letter-spacing: .06em;
}
.tape[aria-current="true"] .now { opacity: 1; }
.tape-cover {
  position: relative; display: grid; grid-template-rows: auto 1fr; aspect-ratio: 4 / 7; overflow: hidden;
  background: var(--paper); color: var(--ink);
}
.tape-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tape-cover .band { position: relative; padding: 5px 6px; background: var(--band); color: #fff; font: 800 11px/1 var(--cond); text-transform: uppercase; letter-spacing: .12em; }
.tape-cover .tape-title { position: relative; align-self: center; padding: 6px; font: 800 17px/.95 var(--cond); text-transform: uppercase; overflow-wrap: anywhere; }
.tape-cover img ~ .tape-title { align-self: end; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); }
.tape-cover .sticker {
  position: absolute; right: 6px; bottom: 6px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; text-align: center; rotate: -12deg; font: 800 8.5px/1 var(--cond); text-transform: uppercase;
}

/* projects */
.shows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.feature { margin: 0; }
.feature .shot { box-shadow: inset 0 0 0 2px var(--ink); padding: 2px; background: var(--card); }
.feature .shot img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; object-position: top; }
.feature h4 { margin: 12px 0 4px; font: 800 26px/1 var(--cond); text-transform: uppercase; }
.feature p { margin: 0 0 12px; font-size: 16px; }

/* Viewer Mail (testimonials) */
.letters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.letter { position: relative; margin: 0; padding: 46px 22px 18px; background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); }
.letter::before { content: "\201C"; position: absolute; top: -18px; left: 14px; padding: 0 6px; background: var(--paper); font: 800 64px/1 var(--cond); color: var(--accent); }
.letter blockquote { margin: 0 0 16px; font-size: 16px; line-height: 1.55; }
.letter blockquote p { margin: 0 0 10px; }
.letter figcaption { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, .2); }
.letter figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--ink); }
.letter figcaption span { display: grid; font-size: 14px; line-height: 1.3; color: var(--muted); }
.letter figcaption b { font: 800 19px/1.1 var(--cond); text-transform: uppercase; color: var(--ink); }

/* contact coupon */
.coupon { position: relative; max-width: 640px; padding: 22px 24px; border: 3px dashed var(--ink); background: var(--card); }
.coupon::before { content: "✂"; position: absolute; top: -17px; left: 20px; padding: 0 6px; background: var(--paper); font-size: 22px; line-height: 1; }
.coupon-title { margin: 0 0 4px; font: italic 800 30px/1 var(--cond); text-transform: uppercase; color: var(--accent); }
.coupon .fields { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: start; margin: 16px 0 0; }
.coupon .fields label { padding-top: 4px; }
.coupon label { font: 700 16px/1.6 var(--cond); text-transform: uppercase; white-space: nowrap; }
.coupon input, .coupon textarea {
  width: 100%; padding: 4px 2px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent;
  font: 17px/1.5 var(--serif); color: var(--ink);
}
.coupon textarea { resize: vertical; min-height: 4.5em; background: repeating-linear-gradient(transparent 0 25px, rgba(0, 0, 0, .18) 25px 26px); line-height: 26px; }
.coupon input:focus, .coupon textarea:focus { outline: none; border-bottom-color: var(--accent); background-color: rgba(214, 40, 40, .04); }
.coupon ::placeholder { color: var(--muted); font-style: italic; opacity: .8; }
.coupon .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.4em; margin: 12px 0 0; font: 700 17px/1.3 var(--cond); text-transform: uppercase; letter-spacing: .03em; color: var(--accent); }
.coupon.sent .form-status { font-size: 22px; }
.coupon button.btn:disabled { opacity: .6; cursor: default; }

/* ---------- footer ---------- */
.back { padding: 30px 16px 46px; text-align: center; font-size: 14px; color: var(--muted); }
.rewind { margin: 0 0 6px; font: italic 800 30px/1 var(--cond); text-transform: uppercase; color: var(--ink); }

/* ---------- viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(22, 22, 22, .72); }
.viewer[hidden] { display: none; }
.viewer-card { width: min(720px, 100%); background: var(--paper); padding: 14px; box-shadow: 6px 6px 0 var(--ink); }
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font: 800 22px/1 var(--cond); text-transform: uppercase; }
.viewer .x { width: 38px; height: 38px; border: 2px solid var(--ink); background: var(--paper); font: 700 22px/1 var(--cond); cursor: pointer; }
.viewer-img { display: grid; place-items: center; min-height: 260px; background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); padding: 8px; }
.viewer-img img { max-height: 70vh; width: auto; }
.viewer-img .ph { min-height: 340px; }
.viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font: 600 16px var(--cond); text-transform: uppercase; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .cover-grid, .contents-grid, .tv, .shows, .outlets, .vhs, .letters { grid-template-columns: minmax(0, 1fr); }
  .cover-grid { flex-direction: column; }
  .coupon .fields { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .coupon label { margin-top: 8px; }
  .cover-photo { width: 100%; }
  .vcr { width: min(320px, 100%); justify-self: center; }
  .shelf { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 128px; overflow-x: auto; scrollbar-width: none; }
  .splat { width: 116px; height: 116px; top: -10px; right: -6px; }
  .splat span { font-size: 16px; }
  .listing { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .slot { grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
  .slot .time { font-size: 34px; }
  .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .strip { grid-auto-columns: 72%; gap: 12px; }
  .issue { justify-items: start; }
  .bar { gap: 10px; }
  .logo.mini { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
