/*
  Zayd Savare, idea H: Merged. The spine is F (Yale 2019): a real picture tiled behind the page,
  gradient boxes, small Arial, the name in big bold Helvetica on a yellow highlight, a tall orange
  note, small white tags on box corners. Pieces from the other versions, each marked below:
  - the first screen: E's dense grid of small boxes (TODAY, the day column, announcements, links),
    in F's colors and type, over D's big tee photo
  - the calendar: G's red calendar widget
  - the symbol load-in: C's decode, 1 canvas per cutout cluster (not in the Store)
  - the Store: B's editorial shop (Gramercy and Diatype Mono, trial fonts), scoped under .shop
  System fonts everywhere outside the Store. Spacing scale: 4 8 12 16 24 32 48 64.
*/

:root {
  --sans: Arial, "Liberation Sans", Helvetica, sans-serif;
  --display: Helvetica, "TeX Gyre Heros", Arial, sans-serif;
  --mono: "Courier New", Courier, "Liberation Mono", monospace;
  --ink: #000;
  --hl: #fcee03;          /* ZS.kit.paper.highlight: the highlight yellow */
  --link: #0000ee;
  --orange: #ff6a00;
  --cyan: #dcfcff;
  --kit-green: #00c651;   /* ZS.kit.paper.green */
  --gap: 12px;
  --row: 32px;
}

html { background: #2d6fb4; }
body {
  font: 400 13px/1.45 var(--sans);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: clip;
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, summary, input):focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 20;
  background: #fff;
  color: #000;
  padding: 12px 14px;
  font-weight: 700;
}
.skip:focus { top: 8px; }

/* ---------- the tiled background ---------- */
#tiles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #2d6fb4;
  --tw: 450px;
  --th: 406px;
}
.tiles-move {
  position: absolute;
  left: calc(-1 * var(--tw));
  top: calc(-1 * var(--th));
  width: calc(100% + var(--tw));
  height: calc(100% + var(--th));
  background-repeat: repeat;
  background-size: var(--tw) var(--th);
  animation: drift 96s linear infinite;
}
/* one full tile per loop, so the repeat never seams */
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--tw), var(--th), 0); }
}
.paused .tiles-move,
.drift-hold .tiles-move,
.bg-tee .tiles-move { animation-play-state: paused; }
.bg-tee #tiles { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  html:not(.js) .tiles-move { animation: none; }
}

#tiles[data-tile="print"] { --tw: 450px; --th: 406px; background-color: #3f86c4; }
#tiles[data-tile="print"] .tiles-move { background-image: url(/ideas/assets/cutouts/greyhound-print.webp); }
#tiles[data-tile="card"] { --tw: 340px; --th: 269px; background-color: #e9e2cf; }
#tiles[data-tile="card"] .tiles-move { background-image: url(/ideas/assets/cutouts/greyhound-card.webp); }
#tiles[data-tile="tee-pink"] { --tw: 300px; --th: 266px; background-color: #fff; }
#tiles[data-tile="tee-pink"] .tiles-move { background-image: url(/ideas/merged/assets/tile-tee-pink.jpg); }
#tiles[data-tile="loco"] { --tw: 409px; --th: 420px; background-color: #c8b896; }
#tiles[data-tile="loco"] .tiles-move { background-image: url(/ideas/merged/assets/tile-locomotive.jpg); }
#tiles[data-tile="tee-black-lime"] { --tw: 300px; --th: 266px; background-color: #fff; }
#tiles[data-tile="tee-black-lime"] .tiles-move { background-image: url(/ideas/merged/assets/tile-tee-black-lime.jpg); }

/* ---------- D's shirt spread: the big tee photo behind the first screen ---------- */
/* A product photo of the eureka, euphoria! tee (1 colorway per load, picked by script.js) fills the
   window behind the first screen, the way D sets the tee. Below the first screen F's tiles take over:
   the swap is a cut, the same as F's tile swaps. */
#teebg {
  position: fixed;
  inset: 0;
  z-index: -1;
  visibility: hidden;
  background: #fff 50% 50% / cover no-repeat;
}
.bg-tee #teebg { visibility: visible; }

/* ---------- page grid: a fixed left column and a fixed-width main column, the rest is background ---------- */
.page {
  display: grid;
  grid-template-columns: 168px minmax(0, 784px);
  grid-template-areas:
    ".     addr"
    "side  head"
    "side  main";
  column-gap: 16px;
  padding: 12px 12px 120px;
}
.addr { grid-area: addr; }
.head { grid-area: head; }
.side { grid-area: side; }
.main { grid-area: main; }

/* white text on black bars, like the small address block over the picture */
.addr {
  margin: 0 0 0 22%;
  font: 400 12px/1.5 var(--sans);
  color: #fff;
}
.addr span,
.pagetag > span,
.dummy-note > span {
  background: #000;
  padding: 1px 5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- the name on the yellow highlight ---------- */
h1 {
  margin: 14px 0 12px;
  font: 700 104px/0.98 var(--display);
  letter-spacing: -0.012em;
}
h1 span,
h2 span {
  background: var(--hl);
  padding: 0.02em 0.035em 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* the line that says what the dummy mark means */
.dummy-note {
  margin: 0 0 32px;
  font: 400 12px/1.7 var(--sans);
  color: #fff;
}
.dummy-note > span { padding: 2px 6px; }

/* the dummy mark: the same tiny mono tag on every made-up item */
.dm {
  display: inline-block;
  margin: 0 0 0 2px;
  padding: 1px 4px 1px;
  background: var(--orange);
  color: #000;
  font: 700 10px/1.2 var(--mono);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  vertical-align: 0.14em;
  white-space: nowrap;
}

h2 {
  margin: 0 0 8px;
  font: 700 40px/1.04 var(--display);
  letter-spacing: -0.01em;
}
h2.h-small { font-size: 32px; }

/* the line under each page title that says what the page is: white on black bars, like the address block */
.pagetag {
  margin: 0 0 24px;
  max-width: 620px;
  font: 400 12px/1.6 var(--sans);
  color: #fff;
}
.pagetag > span { padding: 2px 6px; }

.sec { padding-top: 64px; scroll-margin-top: 0; }
#music { padding-top: 0; }

/* the thick black rule that turns up between boxes */
.rule {
  width: 52%;
  height: 4px;
  margin: 0 0 48px 18%;
  border: 0;
  background: #000;
}

/* ---------- left column ---------- */
.side {
  position: sticky;
  top: 12px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 60px); /* ends above the concept bar, so the note's last line can scroll clear of the bar */
  overflow-y: auto;
  scrollbar-width: thin;
}

.box {
  position: relative;
  padding: 10px 12px;
  background: #fff;
}

/* the site's contents, numbered like a wiki page's contents box */
.toc-h {
  margin: 0 0 6px;
  font: 700 12px/1.2 var(--sans);
}
.navbox ol { list-style: none; margin: 0; padding: 0; }
.navbox ol ol { padding-left: 12px; }
.navbox li { margin: 0; }
.navbox a {
  display: flex;
  gap: 5px;
  padding: 1px 0;
  color: var(--link);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}
.navbox a:hover span:last-child { text-decoration: underline; }
.navbox ol ol a { font-size: 12px; }
.tn { flex: none; color: #000; font-variant-numeric: tabular-nums; }

.pausebtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  font: 400 13px/1.2 var(--sans);
  text-align: left;
  cursor: pointer;
}
.pausebtn:hover .lbl { text-decoration: underline; }
.glyph {
  flex: none;
  width: 10px;
  height: 12px;
  border-left: 3px solid var(--orange);
  border-right: 3px solid var(--orange);
}
.paused .glyph {
  border: 0;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.metabox { font-size: 10px; line-height: 1.35; color: #222; padding: 8px 10px; }
.metabox p { margin: 0; }
.metabox p + p { margin-top: 4px; }

.note {
  background: var(--orange);
  padding: 8px 10px 10px;
  font-size: 11px;
  line-height: 1.38;
}
.note p { margin: 0; }
.note p + p { margin-top: 8px; }
.note a { color: #000; }

/* ---------- boxes ---------- */
.boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--row) var(--gap);
  align-items: start;
}
.boxes + .boxes { margin-top: var(--row); }
.span2 { grid-column: 1 / -1; }

.box p { margin: 0; }
.box p + p { margin-top: 8px; }

/* gradient fills, as the wiki's editors set them */
.g-green { background: linear-gradient(72deg, #fff 0%, #c9ffbf 22%, #48f046 58%, #00e331 100%); }
.g-yellow { background: linear-gradient(90deg, #fff 0%, #fffbb0 34%, #fff31a 72%, #ffe900 100%); }
.g-yellow-diag { background: linear-gradient(205deg, #fff000 0%, #fff7a0 46%, #fff 92%); }
.g-lime { background: linear-gradient(90deg, var(--kit-green) 0%, #7ddc2c 52%, #d6ff32 100%); }
.c-cyan { background: var(--cyan); }
.c-white { background: #fff; }

.label {
  margin: 0 0 6px;
  font: 700 11px/1.3 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.label .dm { text-transform: lowercase; }
.headline {
  margin: 0 0 10px;
  font: 400 22px/1.2 var(--sans);
  letter-spacing: -0.005em;
}

mark {
  background: var(--hl);
  color: #000;
  padding: 0 1px;
  border-radius: 0;
}

/* infobox: the wiki's table of facts, set flat in the wiki's cyan */
.infobox {
  width: 100%;
  margin: 10px 0 0;
  border-collapse: collapse;
  background: #fff;
  font-size: 12px;
  line-height: 1.35;
}
.infobox th,
.infobox td {
  padding: 4px 8px;
  border: 1px solid #9fdce2;
  text-align: left;
  vertical-align: top;
}
.infobox th {
  width: 34%;
  background: var(--cyan);
  font-weight: 700;
}
.infobox td { overflow-wrap: anywhere; }

/* the wiki's data table: songs and tour dates */
.wikitable {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 12px;
  line-height: 1.4;
}
.wikitable th,
.wikitable td {
  padding: 6px 8px;
  border: 1px solid #9fdce2;
  text-align: left;
  vertical-align: top;
}
.wikitable thead th {
  background: var(--cyan);
  font-weight: 700;
}
.wikitable td:first-child { font-weight: 700; }
.wikitable td:first-child a { font-weight: 400; }

/* placeholders: keep the brackets, make the gap obvious */
.ph {
  font: 700 0.86em/1.3 var(--mono);
  letter-spacing: 0;
  color: #000;
  background: #fff;
  box-shadow: 0 0 0 1px #000;
  padding: 0 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.slot {
  display: grid;
  place-items: center;
  padding: 12px;
  background: #fff;
  border: 1px dashed #000;
  text-align: center;
}
.slot .ph { box-shadow: none; }
.slot-square { aspect-ratio: 1 / 1; }

/* the small white tag on a box corner */
.corner-tag {
  display: block;
  width: fit-content;
  margin: 12px -12px -10px auto;
  padding: 5px 10px 6px;
  background: #fff;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  color: #000;
  font-size: 10px;
  text-decoration: none;
}
.corner-tag:hover { text-decoration: underline; }

/* ---------- cutout clusters: overlapping pictures, each with a small white tag ---------- */
.clu { min-height: 120px; }
.clu.box { padding: 12px; }
.clu.bare { padding: 0; }
.cluster {
  position: relative;
  width: 100%;
}
.cut {
  position: absolute;
  display: block;
  color: #000;
  text-decoration: none;
}
.cut img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(var(--r, 0deg));
  transform-origin: 50% 60%;
}
.cut:hover,
.cut:focus-visible { z-index: 5; }
.cut:focus-visible { outline-offset: 0; }
/* tags stack above every picture in the cluster */
.cut .tag {
  position: absolute;
  z-index: 10;
  padding: 1px 5px 2px;
  background: #fff;
  border: 1px solid #000;
  font: 400 10px/1.2 var(--sans);
  white-space: nowrap;
  transform: rotate(var(--r, 0deg));
}
.cut:hover .tag { text-decoration: underline; }

/* the right-hand column of clusters (wide screens); below 1360px the column runs as a band under the page */
.gutter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--row) var(--gap);
  align-items: start;
  margin-top: var(--row);
}

/* ---------- music ---------- */
#release { scroll-margin-top: 16px; }
.release-big {
  margin: 0 0 32px;
  font: 700 58px/1.1 var(--display);
  letter-spacing: -0.015em;
}
.release-big span {
  padding: 0.02em 0.1em 0.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.release-big .w { background: #fff; }
.release-big .y { background: var(--hl); }

.lead { font-size: 15px; line-height: 1.5; }
.music-boxes .songbox { grid-column: 2; grid-row: span 3; }
.sec-h {
  margin: 0 0 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid #000;
  font: 400 22px/1.2 var(--sans);
}
.sec-h .dm { vertical-align: 0.4em; }
.biobox p { font-size: 13px; line-height: 1.5; }
.songbox { padding: 10px 12px 12px; }
.ib-title {
  margin: 0 0 10px !important;
  font: 700 24px/1.15 var(--display);
  text-align: center;
}
.ib-title span {
  background: var(--hl);
  padding: 0 0.12em;
}
.songbox .infobox th { width: 38%; }
.slot-cover { aspect-ratio: 1 / 1; padding: 8px; }
.tablebox { padding-bottom: 10px; }

/* ---------- videos ---------- */
.videobox .headline { font-size: 30px; }
.slot video { width: 100%; height: 100%; object-fit: cover; }
.extra-videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.extrabox .headline { margin: 0; }

.asciibox { margin: 0; padding-bottom: 10px; }
#ascii {
  margin: 4px 0 0;
  font: 400 8px/1 var(--mono);
  letter-spacing: 0;
  color: #000;
  white-space: pre;
  overflow: hidden;
}
#ascii .acc { color: #ff3d00; }

/* ---------- credits ---------- */
.credits { padding-top: 72px; }
.credit-head { font-weight: 700; font-size: 13px; }
.refs {
  margin: 10px 0 0 !important;
  padding: 0 0 0 28px;
  columns: 2;
  column-gap: 32px;
  font-size: 12px;
  line-height: 1.4;
}
.refs li { break-inside: avoid; padding: 2px 0; }
.refs li::marker { font-variant-numeric: tabular-nums; }
.refs li:target { background: var(--hl); }
.credit-line { margin-top: 12px !important; font-size: 11px; color: #333; }

/* ---------- the first screen: E's dense grid of small boxes, set in F's colors and type ---------- */
.landing { padding-top: 0; }
.lgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 168px;
  gap: 10px;
  align-items: start;
}
.lcol { display: flex; flex-direction: column; gap: 10px; }
.anns { display: flex; flex-direction: column; gap: 10px; }
.lcol-d {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

/* TODAY: 2 yellow blocks and the small yellow stub under them */
.today-top,
.today-note {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  background: var(--hl);
}
.today-top {
  padding: 5px 9px 4px 6px;
  font: 400 15px/1.25 var(--sans);
}
.today-top b {
  font: 700 28px/1 var(--display);
  letter-spacing: -0.01em;
}
.today-note {
  margin-top: 5px;
  padding: 7px 9px 7px 6px;
  font: 400 18px/1.28 var(--sans);
}
.today-stub {
  display: block;
  width: 13px;
  height: 15px;
  background: var(--hl);
}

/* announcement boxes, each signed with tiny meta lines */
.ann { padding: 9px 11px 9px; }
.ann .label { margin-bottom: 3px; }
.ann-h {
  margin: 0 0 4px;
  font: 700 15px/1.25 var(--sans);
  letter-spacing: -0.005em;
}
.ann-p { font-size: 12px; line-height: 1.45; }
.ann .meta {
  margin-top: 6px !important;
  font-size: 10px;
  line-height: 1.4;
  color: #222;
}
.ann .meta a { overflow-wrap: anywhere; }
.ann .dm { vertical-align: 0.1em; }

/* the 2013 Thug links: a stepped box, the way the 2011 wiki stepped its green box */
.links-top,
.links-row {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  background: linear-gradient(90deg, var(--kit-green) 0%, #7ddc2c 52%, #d6ff32 100%);
  font-size: 11px;
}
.links-top { padding: 9px 10px 3px; text-transform: uppercase; }
.links-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 10px 8px;
  font-weight: 700;
}

/* the day column, counting down to the release */
.days { gap: 4px; }
.day {
  padding: 7px 8px 8px;
  background: var(--cyan);
  font-size: 11px;
  line-height: 1.3;
}
.day p { margin: 0; }
.day b { text-transform: uppercase; }
.day-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 4px !important;
}
.day small { font-size: 10px; color: #2c5d6c; font-variant-numeric: tabular-nums; }
.day--head { background: linear-gradient(72deg, #fff 0%, #c9ffbf 22%, #48f046 58%, #00e331 100%); padding-bottom: 9px; }
.day--head b,
.day--head span { display: block; }
.day--head span { margin-top: 2px; }
.day--today { background: linear-gradient(90deg, #fff 0%, #fffbb0 34%, #fff31a 72%, #ffe900 100%); }
.day--release { background: var(--hl); }

/* ---------- G's calendar widget: red head, grey body, a red circle on the release ---------- */
.cal {
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
  font: 400 13px/1.3 var(--sans);
}
.cal__head {
  margin: 0;
  padding: 8px 0 7px;
  background: #ff1b18;
  color: #000;
  text-align: center;
  text-transform: uppercase;
  font: 400 15px/1.2 var(--display);
  letter-spacing: 0.02em;
}
.cal__body { padding: 0 12px 9px; }
.cal__nav { display: flex; align-items: center; gap: 12px; }
.cal__month { flex: 1; margin: 0; color: #676767; white-space: nowrap; line-height: 36px; }
.cal__btn {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  font: inherit;
  cursor: pointer;
}
.cal__btn:hover { color: #0051e8; }
.cal__btn:disabled { color: #b5b5b1; cursor: default; }
.cal__grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}
.cal__grid caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cal__grid td { padding: 0; height: 27px; text-align: left; vertical-align: middle; }
.cal__day { color: #000; }
.cal__day--today { color: #0051e8; font-weight: 700; }
a.cal__day--release,
a.cal__day--tour {
  position: relative;
  z-index: 0;
  display: inline-block;
  min-width: 1.4em;
  margin-left: -0.2em;
  padding: 0 0.2em;
  text-decoration: none;
}
a.cal__day--release { color: #fff; }
a.cal__day--tour { color: #0051e8; }
a.cal__day--release::before,
a.cal__day--tour::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 1.75em;
  height: 1.75em;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
a.cal__day--release::before { background: #ff1b18; }
a.cal__day--release:hover::before { background: #0051e8; }
/* the dummy tour days: a blue ring (the note under the grid carries the dummy mark) */
a.cal__day--tour::before { border: 1.5px solid #0051e8; }
a.cal__day--tour:hover::before { background: #fff; }
.cal__notes { margin-top: 4px; min-height: 34px; }
.cal__note { margin: 0; font-size: 12px; line-height: 17px; }
.cal__note + .cal__note { margin-top: 2px; }
.cal__note a { color: #0051e8; }
@media (pointer: coarse) {
  .cal__btn { min-height: 44px; }
}

/* ---------- C's symbol load-in: each cluster decodes out of typed symbols once ---------- */
/* script.js adds .is-ax to a cluster box that will decode. Until the cluster resolves, the pictures
   wait under 1 canvas (the canvas paints the pictures cell by cell as the cells decode) and each tag
   waits for its own picture. The canvas is removed when the decode is done. */
.cluster { isolation: isolate; }
.clu.is-ax:not(.is-resolved) .cut img { opacity: 0; }
.clu.is-ax:not(.is-resolved) .cut:not(.tag-on) .tag { visibility: hidden; }
.ax__cv {
  position: absolute;
  z-index: 8;
  pointer-events: none;
}

/* ---------- wide screens: the page grows a right-hand column of clusters ---------- */
@media (min-width: 1360px) {
  .page { grid-template-columns: 168px minmax(0, 1220px); }
  .sec {
    display: grid;
    grid-template-columns: 784px minmax(0, 420px);
    column-gap: 16px;
    align-items: start;
  }
  .sec-main { grid-column: 1; }
  /* the clusters spread down the full height of the page, first beside the title, last beside the last box */
  .gutter {
    grid-column: 2;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    margin-top: 0;
  }
  .credits,
  .sec.landing,
  .sec.shop { display: block; }
  .credits .creditbox { max-width: 1220px; }
  .landing .lgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 176px 340px; }
  .lcol-d { grid-column: auto; display: flex; flex-direction: column; align-items: stretch; }
  .refs { columns: 3; }
}

/* ---------- medium widths ---------- */
@media (max-width: 1000px) {
  .page { grid-template-columns: 150px minmax(0, 1fr); }
  h1 { font-size: clamp(60px, 9.6vw, 104px); }
  .release-big { font-size: clamp(38px, 5.6vw, 58px); }
}

@media (max-width: 860px) and (min-width: 721px) {
  .boxes, .gutter, .extra-videos { grid-template-columns: minmax(0, 1fr); }
  .lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .days {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  }
  .day--head { grid-column: 1 / -1; }
  .music-boxes .songbox { grid-column: auto; grid-row: auto; max-width: 420px; }
  .refs { columns: 1; }
}

/* ---------- phones: everything stacks; the note moves under the page ---------- */
@media (max-width: 720px) {
  :root { --row: 24px; }
  body { font-size: 14px; }
  .page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "addr" "head" "nav" "pause" "main" "meta" "note";
    padding: 8px 8px 96px;
    row-gap: 0;
  }
  .side { display: contents; }
  .navbox { grid-area: nav; }
  .pausebtn { grid-area: pause; margin-top: 8px; min-height: 44px; }
  .metabox { grid-area: meta; margin-top: 32px; }
  .note { grid-area: note; margin-top: 12px; font-size: 12px; }
  .addr { margin: 4px 0 0; }
  h1 { margin: 10px 0 10px; font-size: clamp(52px, 18.6vw, 96px); line-height: 1; }
  .dummy-note { margin-bottom: 20px; }
  h2 { font-size: 34px; }
  h2.h-small { font-size: 26px; }
  .sec { padding-top: 48px; }
  #music { padding-top: 32px; }
  .release-big { font-size: clamp(30px, 9.4vw, 40px); margin-bottom: 24px; }
  /* the contents run down 2 columns, in order */
  .navbox > ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    column-gap: 8px;
  }
  .navbox li, .navbox ol ol { display: contents; }
  .navbox a, .navbox ol ol a { align-items: center; min-height: 40px; padding: 0; font-size: 14px; }
  .navbox ol ol a { padding-left: 10px; }
  .boxes, .gutter, .extra-videos { grid-template-columns: minmax(0, 1fr); }
  .music-boxes .songbox { grid-column: auto; grid-row: auto; }
  .pagetag { margin-bottom: 20px; }
  .rule { width: 60%; margin: 0 0 32px 10%; }
  .refs { columns: 1; }
  .lead { font-size: 15px; }
  .wikitable { font-size: 13px; }
  .wikitable th, .wikitable td { padding: 6px 6px; }
  .corner-tag { display: flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 12px; }
  .refs li { padding: 6px 0; }
  .cut .tag { font-size: 10px; }
  /* the first screen stacks: TODAY, the calendar, the days, the announcements, the links, the clusters */
  .lgrid { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .lcol-a, .lcol-b, .lcol-d { display: contents; }
  #countdown { order: 1; }
  .cal { order: 2; }
  .days {
    order: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .day--head { grid-column: 1 / -1; }
  .day { font-size: 12px; }
  .day small { font-size: 11px; }
  #ann-a { order: 4; }
  #ann-b { order: 5; }
  .links { order: 6; }
  .landing .clu { order: 7; }
  .today-top b { font-size: 26px; }
  .today-note { font-size: 17px; }
  .ann-p { font-size: 13px; }
  .ann .meta { font-size: 11px; }
  .links-top, .links-row { font-size: 12px; }
  .cal { font-size: 15px; }
  .cal__grid td { height: 34px; }
  .cal__note { font-size: 14px; line-height: 20px; }
  .cal__notes { min-height: 42px; }
  #tiles[data-tile="print"] { --tw: 270px; --th: 244px; }
  #tiles[data-tile="card"] { --tw: 220px; --th: 174px; }
  #tiles[data-tile="loco"] { --tw: 245px; --th: 252px; }
  #tiles[data-tile="tee-pink"], #tiles[data-tile="tee-black-lime"] { --tw: 200px; --th: 177px; }
}

/* =====================================================================================================
   THE STORE: B's editorial shop, ported as B has it and scoped under .shop.
   ABC Gramercy (roman, italic) and ABC Diatype Mono are Dinamo TRIAL files: fine for this mockup,
   a web license is needed before launch. B's media queries run as container queries on the shop,
   so the shop keeps B's layouts inside F's main column. B's cut paper is .cutp here and B's cluster
   is .bclu (F already uses .cut and .cluster for its cutouts).
   ===================================================================================================== */
@font-face {
  font-family: "Gramercy";
  src: url("/ideas/assets/fonts/b/ABCGramercyVariableTrial.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gramercy";
  src: url("/ideas/assets/fonts/b/ABCGramercyVariableTrialItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Diatype Mono";
  src: url("/ideas/assets/fonts/b/ABCDiatypeMonoVariableTrial.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.shop {
  container: shop / inline-size;
  --serif: "Gramercy", "Iowan Old Style", Georgia, serif;
  --mono: "Diatype Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --hi: #fcee03;
  --black: #0c0c0b;
  --grey: #5b5b55;
  --link: #1a4fe8;
  --hair: color-mix(in srgb, var(--black) 16%, transparent);
  color: var(--black);
  font: 400 19px / 1.42 var(--serif);
  font-synthesis: none;
  font-optical-sizing: auto;
  font-kerning: normal;
}
/* B's grid, type scale and spacing, measured against the shop's own width (cqi), not the window's */
.shop .spread {
  --m: 40px;
  --g: 24px;
  --top: 40px;
  --bot: 64px;
  --d-page: clamp(72px, min(14cqi, 21vh), 250px);
  --d-l: clamp(40px, min(6.6cqi, 11.4vh), 124px);
  --t-m: 19px;
  --mono-s: 13px;
  --mono-xs: 11px;
}
.shop a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.shop :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.shop :is(p, h1, h2, h3, h4, dl, dd, ol, ul, figure) { margin: 0; }
.shop :is(h3, h4) { font-weight: 400; }
.shop :is(h1, h2, h3, h4) span { padding: 0; background: none; } /* F's yellow highlight on page titles stays outside the shop */
.shop :is(ol, ul) { padding: 0; list-style: none; }
.shop .tnum { font-variant-numeric: tabular-nums lining-nums; }

/* placeholders: the brackets stay visible, set in the mono */
.shop .ph {
  padding: 0;
  background: none;
  box-shadow: none;
  font: 400 0.8em/1.3 var(--mono);
  letter-spacing: 0.02em;
  color: inherit;
  text-decoration: underline dotted 1px;
  text-underline-offset: 0.25em;
}
.shop .wt .ph,
.shop .sl__facts .ph { font-size: 11px; }

/* ---------- spreads: a tall wrapper of construction paper and a sticky stage ---------- */
.shop .spread {
  position: relative;
  background: var(--field);
  color: var(--ink);
  transition: background-color 0.2s linear, color 0.2s linear;
}
.shop .spread--ascii { height: 220vh; }
.shop .spread--tees { height: 380vh; }
.shop .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  padding: var(--top) var(--m) var(--bot);
}
.shop .spread--album .stage {
  position: relative;
  height: auto;
  min-height: 100vh;
  overflow: visible;
}
/* A spread whose content is taller than the window (set by script.js) drops the pin and scrolls. */
.shop .spread.is-flow { height: auto; }
.shop .is-flow .stage {
  position: relative;
  height: auto;
  min-height: 100vh;
  overflow: visible;
}
.shop .is-flow .paper { height: min(66vh, 600px); }

.shop .kicker {
  grid-column: 1 / -1;
  grid-row: 1;
  font: 400 var(--mono-xs) / 1.4 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* words pop in: opacity only, never scale */
.shop [data-at] { transition: opacity 0.12s linear, background-color 0.12s linear; }
.shop .w[data-at]:not(.on) { opacity: 0; }
.shop .w--i { font-style: italic; letter-spacing: -0.015em; }

/* ---------- the wiki page head: title, a rule under the title, the tagline ---------- */
.shop .phead {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  z-index: 2;
}
.shop .phead__title { font-weight: 400; padding-bottom: 0.3em; }
.shop .phead__title + * { border-top: 1px solid currentColor; }
.shop .phead__tag {
  padding-top: 10px;
  font: 400 12px/1.45 var(--mono);
  letter-spacing: 0;
}
.shop .pt {
  font: 400 var(--d-page) / 0.84 var(--serif);
  letter-spacing: -0.05em;
  margin-left: -0.05em;
  padding-bottom: 0.14em;
}
.shop .pt--sub {
  font-size: var(--d-l);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin-left: -0.04em;
  padding-bottom: 0.3em;
}

/* yellow highlights, flat, no rounded corners, tight padding */
.shop mark {
  background: var(--hi);
  color: var(--black);
  padding: 0 0.08em;
  margin: 0 -0.08em;
  border-radius: 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.shop mark[data-at]:not(.on) { background: transparent; color: inherit; }

/* ---------- paper: the cut shape, the hero picture and the cluster of cutouts ---------- */
.shop .paper { position: relative; z-index: 1; min-height: 0; }
.shop .cutp {
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  width: var(--sw);
  height: var(--sh);
  background: var(--shape);
  clip-path: var(--clip);
  z-index: 0;
  transition: background-color 0.2s linear;
}
.shop .hero { position: absolute; z-index: 1; }
.shop .hero img { width: 100%; height: 100%; object-fit: contain; }
.shop .bclu {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.shop .co {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  aspect-ratio: var(--ar);
  z-index: var(--z);
}
.shop .co--t { z-index: calc(100 + var(--z, 0)); } /* every tag sits above every picture */
.shop .co__in { position: relative; width: 100%; height: 100%; rotate: var(--r); }
.shop .co img { width: 100%; height: 100%; object-fit: contain; }
.shop .tag {
  position: absolute;
  z-index: 2;
  background: #fff;
  color: var(--black);
  font: 400 10.5px/1 var(--mono);
  letter-spacing: 0.01em;
  padding: 4px 6px 3px;
  white-space: nowrap;
  outline: 1px solid var(--tag-line, transparent);
  outline-offset: -1px;
}
.shop .tag--bl { left: -8px; bottom: 5%; }
.shop .tag--br { right: -8px; bottom: 7%; }
.shop .tag--tr { right: -8px; top: 8%; }
.shop .tag--tl { left: -8px; top: 8%; }
.shop .tag--bm { left: 50%; bottom: -6px; translate: -50% 0; }
.shop .tag--tm { left: 50%; top: -6px; translate: -50% 0; }
.shop .paper > .tag--hero { z-index: 3; }
.shop [data-field="white"] { --tag-line: var(--black); }

/* ---------- the white slip: a cut piece of paper holding the wiki text ---------- */
.shop .slip {
  position: relative;
  z-index: 3;
  background: #fff;
  color: var(--black);
  padding: 18px 22px 16px;
  clip-path: polygon(0.5% 0.8%, 99.4% 0%, 100% 99.2%, 0% 100%);
}
.shop [data-field="white"] .slip {
  clip-path: none;
  outline: 1px solid var(--black);
  outline-offset: -1px;
}
.shop .slip a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); }
.shop .slip a:hover { text-decoration-color: currentColor; }
.shop .sl__p {
  font: 400 var(--mono-s) / 1.52 var(--mono);
  letter-spacing: -0.005em;
  max-width: 44em;
}
.shop .sl__p + .sl__p { margin-top: 8px; }
.shop .sl__lead { font-size: 14px; }
.shop .sl__h {
  margin-top: 16px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--black);
  font: 400 22px/1.15 var(--serif);
  letter-spacing: -0.01em;
}
.shop .sl__h--first { margin-top: 0; }

/* the contents box */
.shop .sl__toc {
  display: inline-block;
  min-width: 15em;
  margin-top: 14px;
  padding: 8px 14px 6px;
  outline: 1px solid color-mix(in srgb, var(--black) 26%, transparent);
  outline-offset: -1px;
}
.shop .sl__toch { font: 400 15px/1.3 var(--serif); padding-bottom: 4px; }
.shop .sl__toc a {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 30px;
  font: 400 12.5px/1.3 var(--mono);
}
.shop .tn {
  flex: none;
  min-width: 1.4em;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}

/* facts rows inside a slip */
.shop .sl__facts { margin-top: 4px; }
.shop .sl__facts > div {
  display: grid;
  grid-template-columns: 7.4em minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 6px 0 5px;
  border-bottom: 1px solid var(--hair);
}
.shop .sl__facts dt {
  font: 400 9.5px/1.5 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grey);
}
.shop .sl__facts dd { font: 400 15.5px/1.35 var(--serif); }

/* framed media slots for anything not supplied yet */
.shop .frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 24px;
  text-align: center;
  outline: 1px solid currentColor;
  outline-offset: -1px;
}

/* ---------- the tee colorways ---------- */
.shop .hero--tees .tee__img { position: absolute; inset: 0; opacity: 0; }
.shop .hero--tees .tee__img.on { opacity: 1; }
.shop .cw__b {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  background: none;
  color: var(--link);
  font: 400 12.5px/1.3 var(--mono);
  text-align: left;
  cursor: pointer;
}
.shop .cw__b:hover .cw__t { text-decoration: underline; text-underline-offset: 0.2em; }
.shop .cw__b[aria-pressed="true"] { color: var(--black); }
.shop .cw__b[aria-pressed="true"] .cw__t { background: var(--hi); padding: 0 0.3em; margin: 0 -0.3em; }
.shop .sl__now { margin-top: 10px; min-height: 3.04em; font-size: 11.5px; color: var(--grey); } /* 2 lines for every colorway name, so the list never moves */
.shop .sl__facts--cw { margin-top: 8px; }

/* ---------- the tee in symbols ---------- */
.shop .ascii__box { width: 100%; height: 100%; }
.shop .hero--ascii canvas { display: block; }

/* ---------- THE ALBUM, V1 ---------- */
.shop .hero--frame .frame {
  height: 100%;
  background: #fff;
  color: var(--black);
  outline: 1px solid var(--black);
  outline-offset: -10px;
  font-size: 15px;
}
.shop .slip--form {
  padding: 24px 28px 28px;
  clip-path: polygon(0.5% 1.6%, 99.4% 0%, 100% 98.4%, 0% 100%);
}
.shop .sl__facts--album dd { font-size: 16.5px; }
.shop .buy__label {
  display: block;
  margin-top: 24px;
  font: 400 var(--mono-xs) / 1.4 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.shop .buy__field {
  display: flex;
  align-items: baseline;
  gap: 4px;
  border-bottom: 1px solid var(--black);
  font: 400 44px/1 var(--serif);
  font-variant-numeric: tabular-nums lining-nums;
}
.shop .buy__field input {
  flex: 1;
  min-height: 56px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-variant-numeric: tabular-nums lining-nums;
}
.shop .buy__field input:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.shop .buy__msg { margin-top: 10px; min-height: 3em; font: 400 12px/1.5 var(--mono); }
.shop .buy__msg[data-state="error"] { margin-left: -4px; padding: 2px 4px; background: var(--hi); color: var(--black); }
.shop .buy__total { margin-top: 8px; font: 400 var(--t-m) / 1.3 var(--serif); }
.shop .buy__total:has(#album-amount:empty) { visibility: hidden; }
.shop .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.shop .btn--buy { margin-top: 16px; width: 100%; background: var(--black); color: #fff; }
.shop .btn--buy:disabled {
  background: transparent;
  color: var(--grey);
  outline: 1px dashed var(--grey);
  outline-offset: -1px;
  cursor: not-allowed;
}
.shop .buy__note { margin-top: 10px; font: 400 11.5px/1.5 var(--mono); color: #4d4d48; }

/* ---------- layout r: title and paper left, slip right (the tee) ---------- */
.shop :is(.lay--r, .lay--l) .stage {
  grid-template-rows: auto auto minmax(0, 1fr);
  row-gap: 14px;
}
.shop .lay--r :is(.kicker, .phead, .paper) { grid-column: 1 / 8; }
.shop .lay--r .paper { grid-row: 3; }
.shop .lay--r .slip {
  grid-column: 8 / 13;
  grid-row: 1 / 4;
  align-self: safe end;
  justify-self: end;
  width: 100%;
  max-width: 600px;
}
/* ---------- layout l: title and slip left, paper right at full height (the Store page) ---------- */
.shop .lay--l :is(.kicker, .phead) { grid-column: 1 / 7; }
.shop .lay--l .slip {
  grid-column: 1 / 6;
  grid-row: 3;
  align-self: end;
  max-width: 600px;
}
.shop .lay--l .paper { grid-column: 7 / 13; grid-row: 1 / 4; }
/* ---------- THE ALBUM, V1 ---------- */
.shop .lay--album .stage { grid-template-rows: auto auto auto; row-gap: 14px; }
.shop .lay--album :is(.kicker, .phead) { grid-column: 1 / 8; }
.shop .lay--album .paper {
  grid-column: 1 / 8;
  grid-row: 3;
  height: min(70vh, 640px);
  margin-top: 16px;
}
.shop .lay--album .slip { grid-column: 8 / 13; grid-row: 1 / 4; align-self: end; }

/* ---------- mid-size shops (B's 721 to 1100px layout) ---------- */
@container shop (min-width: 721px) and (max-width: 1100px) {
  .shop .spread { --m: 28px; --g: 16px; --bot: 100px; }
  .shop .lay--r :is(.kicker, .phead, .paper) { grid-column: 1 / 7; }
  .shop .lay--r .slip { grid-column: 7 / 13; }
  .shop .lay--l .slip { grid-column: 1 / 7; }
}

/* ---------- small shops: B's phone layout, stacked, reveals tied to scroll as each spread enters ---------- */
@container shop (max-width: 720px) {
  .shop .spread {
    --m: 16px;
    --g: 12px;
    --top: 24px;
    --bot: 40px;
    --d-page: clamp(64px, 25cqi, 124px);
    --d-l: clamp(34px, 11.4cqi, 58px);
    --t-m: 17px;
    --mono-s: 12.5px;
    --mono-xs: 10.5px;
    height: auto !important;
  }
  .shop .stage {
    position: relative;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
  }
  .shop .spread .stage > * { align-self: stretch; justify-self: auto; width: auto; max-width: none !important; }
  .shop .kicker { order: 0; }
  .shop .phead { order: 1; }
  .shop .paper {
    order: 2;
    flex: none;
    height: calc((100cqi - 2 * var(--m)) * var(--ph));
    margin: 0;
  }
  .shop .slip { order: 3; }
  .shop .is-flow .paper,
  .shop .lay--album .paper { height: calc((100cqi - 2 * var(--m)) * var(--ph)); margin: 0; }
  .shop .tag { font-size: 9.5px; padding: 3px 5px 2px; }
  .shop .tag--bl, .shop .tag--tl { left: -4px; }
  .shop .tag--br, .shop .tag--tr { right: -4px; }
  .shop .phead__tag { font-size: 11.5px; }
  .shop .slip { padding: 16px 16px 14px; }
  .shop .buy__field { font-size: 36px; }
  .shop .slip--form { padding: 20px 18px 22px; }
}

/* motion off (reduced motion or Pause animations): every spread shows its settled state */
.paused .shop [data-at],
.paused .shop .spread,
.paused .shop .cutp { transition: none; }
