/* ==========================================================================
   Rhubarb Records: homepage draft ("5% version")
   Direction: Indie Shopfront base + Zine touches + Catalogue shopping
   One file, organised by section. Tokens first; they map to Shopify theme
   settings (colours, type) when this is ported to an OS 2.0 theme.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colour */
  --c-red: #e70513;          /* sampled from Logo Main.png */
  --c-red-dark: #b8030f;     /* hover/pressed */
  --c-ink: #141414;          /* near-black type */
  --c-ink-2: #3d3d3d;        /* secondary type, 10.6:1 on white */
  --c-muted: #6b6b6b;        /* small meta text, 5.3:1 on white */
  --c-line: #e3e0da;
  --c-paper: #ffffff;
  --c-cream: #f6f1e7;        /* staff picks "paper" */
  --c-tape: #121212;         /* label-maker tape */
  --c-tape-text: #f2f2f2;
  --c-focus: #1a5cff;

  /* Type families */
  --f-display: "Shrikhand", "Cooper Black", Georgia, serif;
  --f-marker: "Permanent Marker", "Comic Sans MS", cursive;
  --f-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Type scale (major third, 16px base) */
  --fs-2xs: 0.75rem;    /* 12: badges, legal */
  --fs-xs: 0.8125rem;   /* 13: mono meta */
  --fs-sm: 0.875rem;    /* 14: nav, small UI */
  --fs-base: 1rem;      /* 16: body */
  --fs-md: 1.125rem;    /* 18: lead copy */
  --fs-lg: 1.375rem;    /* 22: card group titles */
  --fs-xl: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);    /* section headings */
  --fs-2xl: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);      /* hero, request band */

  /* Spacing (4px grid) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --section-y: clamp(3rem, 2rem + 4vw, 5.5rem);

  /* Layout */
  --page-max: 1320px;
  --gutter: 16px;
  --radius: 4px;
  --radius-lg: 10px;
  --header-h: 64px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;

  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.08), 0 4px 14px rgb(0 0 0 / 0.06);
  --shadow-2: 0 10px 40px rgb(0 0 0 / 0.18);
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1180px) {
  :root { --gutter: 40px; --header-h: 84px; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0;
  font-family: var(--f-ui);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html.is-locked, html.is-locked body { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
input { font: inherit; }

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 200;
  background: var(--c-ink); color: #fff; padding: var(--sp-3) var(--sp-4);
  font-weight: 700; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: var(--sp-3); }

.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.mono { font-family: var(--f-mono); }
.marker { font-family: var(--f-marker); font-weight: 400; }

.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-5);
}
.section-head__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-xl);
  line-height: 1.1;
  letter-spacing: 0.005em;
}
.section-head__sub {
  margin-top: var(--sp-2);
  color: var(--c-ink-2);
  max-width: 52ch;
}
.section-head__actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }

.link-arrow {
  font-weight: 700; font-size: var(--fs-sm); text-transform: uppercase;
  letter-spacing: 0.06em; text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid var(--c-red); padding-bottom: 2px;
}
.link-arrow:hover { color: var(--c-red); }

/* ---------- 3. Buttons, badges, icons ---------- */
.btn {
  --btn-bg: var(--c-ink); --btn-fg: #fff; --btn-bd: var(--c-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 0 var(--sp-5);
  font-family: var(--f-ui); font-size: var(--fs-base); font-weight: 700;
  font-stretch: 105%;
  letter-spacing: 0.01em;
  text-decoration: none; line-height: 1.1; text-align: center;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-bd); border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--red { --btn-bg: var(--c-red); --btn-bd: var(--c-red); }
.btn--red:hover { --btn-bg: var(--c-red-dark); --btn-bd: var(--c-red-dark); }
.btn--ink:hover { --btn-bg: #000; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-bd: var(--c-ink); }
.btn--outline:hover { --btn-bg: var(--c-ink); --btn-fg: #fff; }
.btn--white { --btn-bg: #fff; --btn-fg: var(--c-ink); --btn-bd: #fff; }
.btn--white:hover { --btn-bg: var(--c-ink); --btn-fg: #fff; --btn-bd: var(--c-ink); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: #fff; }
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--c-ink); }
.btn--sm { min-height: 40px; padding: 0 var(--sp-4); font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon--sm { width: 18px; height: 18px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; border-radius: 50%;
  color: inherit; cursor: pointer; text-decoration: none;
  position: relative;
}
.icon-btn:hover { background: rgb(0 0 0 / 0.06); }

.badge {
  display: inline-block;
  font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; line-height: 1;
  padding: 6px 8px; border-radius: 2px;
  background: var(--c-ink); color: #fff;
}
.badge--new { background: var(--c-red); }
.badge--pre { background: var(--c-ink); }
.badge--rare { background: #fff; color: var(--c-ink); box-shadow: inset 0 0 0 2px var(--c-ink); }

/* ---------- 4. Announcement bar ---------- */
.section--announcement { padding: 0; background: var(--c-red); color: #fff; }
.announcement {
  margin: 0; padding: 9px var(--gutter);
  text-align: center; font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.02em;
}
.announcement__long { display: none; }
.announcement__sep { opacity: 0.8; padding-inline: 0.4em; }
@media (min-width: 768px) {
  .announcement__long { display: inline; }
  .announcement__short { display: none; }
}

/* ---------- 5. Header ---------- */
.section--header {
  padding: 0;
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}
.header__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--header-h);
}
.header__menu-btn { margin-left: -10px; }
.header__logo {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  text-decoration: none; justify-self: start;
}
.header__logo img { width: 46px; height: auto; }
.header__wordmark {
  font-family: var(--f-display); font-size: 1.3rem; line-height: 1;
  color: var(--c-ink); white-space: nowrap;
}
.header__wordmark span { color: var(--c-red); }
.header__icons { display: flex; align-items: center; gap: 2px; margin-right: -8px; grid-column: -2; justify-self: end; }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; line-height: 1;
  background: var(--c-red); color: #fff; border-radius: 10px;
  border: 2px solid #fff;
}
.cart-count.is-bumped { animation: bump 400ms var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Search */
.search { position: relative; display: flex; width: 100%; }
.search__input {
  flex: 1; min-width: 0; height: 46px;
  padding: 0 var(--sp-4);
  font-size: var(--fs-base);
  background: #f4f2ee; color: var(--c-ink);
  border: 2px solid transparent; border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}
.search__input::placeholder { color: var(--c-muted); }
.search__input:focus { outline: none; border-color: var(--c-ink); background: #fff; }
.search__btn {
  width: 52px; height: 46px; display: grid; place-items: center;
  background: var(--c-red); color: #fff; border: 0;
  border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer;
}
.search__btn:hover { background: var(--c-red-dark); }
.header__search--desktop { display: none; }
.header__search--mobile { padding-bottom: var(--sp-3); }

.header__wordmark { display: none; }
@media (min-width: 360px) { .header__wordmark { display: block; font-size: 1.1rem; } }
@media (min-width: 600px) { .header__wordmark { font-size: 1.3rem; } }

/* Desktop nav row */
.nav { display: none; }

@media (min-width: 1180px) {
  .header__menu-btn { display: none; }
  .header__bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-6); }
  .header__logo img { width: 62px; }
  .header__wordmark { font-size: 1.6rem; }
  .header__search--desktop { display: flex; max-width: 640px; justify-self: center; }
  .header__search--mobile { display: none; }
  .header__icons { gap: var(--sp-2); }
  .nav { display: block; border-top: 1px solid var(--c-line); }
}

.nav__list {
  display: flex; flex-wrap: nowrap; justify-content: space-between;
  margin: 0; padding: 0; list-style: none;
}
.nav__item { position: static; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  height: 50px; padding: 0 2px;
  font-size: var(--fs-sm); font-weight: 700; font-stretch: 92%;
  letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap;
  text-decoration: none; background: none; border: 0; cursor: pointer;
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 3px;
  background: var(--c-red); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__link .icon--sm { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.nav__link[aria-expanded="true"] .icon--sm { transform: rotate(180deg); }
.nav__link--accent { color: var(--c-red); }

.nav__dropdown {
  position: absolute; z-index: 40;
  background: #fff; border: 1px solid var(--c-line); border-top: 3px solid var(--c-ink);
  box-shadow: var(--shadow-2);
  padding: var(--sp-3) 0;
  min-width: 240px;
  margin-top: -1px;
}
.nav__dropdown[hidden] { display: none; }
.nav__dropdown a {
  display: block; padding: 10px var(--sp-5);
  text-decoration: none; font-weight: 500;
}
.nav__dropdown a:hover { background: #f4f2ee; color: var(--c-red); }

/* Mega menu */
.mega {
  left: 0; right: 0;
  padding: var(--sp-6) 0 var(--sp-7);
  border-left: 0; border-right: 0;
}
.mega__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr 1.2fr;
  gap: var(--sp-6);
}
.mega__heading {
  font-size: var(--fs-2xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-muted); margin-bottom: var(--sp-3);
}
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega .mega__links a { padding: 6px 0; font-size: var(--fs-base); }
.mega .mega__links a:hover { background: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.mega__az {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.mega .mega__az a {
  display: grid; place-items: center; padding: 0;
  height: 38px; font-weight: 800; font-family: var(--f-mono);
  border: 1.5px solid var(--c-ink); border-radius: var(--radius);
}
.mega .mega__az a:hover { background: var(--c-ink); color: #fff; }
.mega__promo {
  display: block; position: relative; overflow: hidden; border-radius: var(--radius);
  text-decoration: none; color: #fff; background: var(--c-ink);
}
.mega .mega__promo { padding: 0; }
.mega .mega__promo:hover { background: var(--c-ink); color: #fff; }
.mega__promo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: 0.6; transition: transform 600ms var(--ease); }
.mega__promo:hover img { transform: scale(1.04); }
.mega__promo::after {
  content: ""; position: absolute; inset: 40% 0 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgb(0 0 0 / 0.75));
}
.mega__promo-text {
  position: absolute; z-index: 1; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4);
  font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1;
}
.mega__promo-text small {
  display: block; font-family: var(--f-ui); font-size: var(--fs-sm); font-weight: 700; margin-top: var(--sp-2);
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- 6. Mobile menu drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer__overlay {
  position: absolute; inset: 0; background: rgb(0 0 0 / 0.5);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.drawer__panel {
  position: absolute; top: 0; bottom: 0;
  width: min(420px, 100%);
  background: #fff; display: flex; flex-direction: column;
  box-shadow: var(--shadow-2);
  transition: transform 300ms var(--ease);
}
.drawer--menu .drawer__panel { left: 0; transform: translateX(-100%); width: min(400px, 88vw); }
.drawer--cart .drawer__panel { right: 0; transform: translateX(100%); }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
@media (max-width: 599px) {
  .drawer--cart .drawer__panel { width: 100%; }
}

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--c-line); min-height: 64px;
}
.drawer__title { font-size: var(--fs-lg); font-weight: 800; font-stretch: 105%; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }

.mnav { list-style: none; margin: 0; padding: 0; }
.mnav > li { border-bottom: 1px solid var(--c-line); }
.mnav__link, .mnav__toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 0 var(--sp-5);
  font-size: var(--fs-md); font-weight: 700; text-decoration: none; text-align: left;
  background: none; border: 0; cursor: pointer;
}
.mnav__toggle .icon { transition: transform var(--dur) var(--ease); }
.mnav__toggle[aria-expanded="true"] .icon { transform: rotate(45deg); }
.mnav__panel { padding: 0 var(--sp-5) var(--sp-4); background: #faf8f4; }
.mnav__panel[hidden] { display: none; }
.mnav__panel ul { list-style: none; margin: 0; padding: 0; }
.mnav__panel a { display: block; padding: 10px 0; text-decoration: none; }
.mnav__sub-heading {
  font-size: var(--fs-2xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-muted); padding-top: var(--sp-4);
}
.mnav__az { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding-top: var(--sp-2); }
.mnav__panel .mnav__az a {
  display: grid; place-items: center; height: 40px; padding: 0;
  font-family: var(--f-mono); font-weight: 600; border: 1.5px solid var(--c-ink); border-radius: var(--radius);
}
.drawer__foot {
  padding: var(--sp-5); font-size: var(--fs-sm); color: var(--c-ink-2);
  border-top: 1px solid var(--c-line); background: #faf8f4;
}
.drawer__foot strong { color: var(--c-ink); }
.drawer__foot a { font-weight: 700; }

/* ---------- 7. Hero ---------- */
.section--hero { padding-block: var(--sp-5) var(--section-y); }
.hero { display: grid; gap: var(--sp-6); align-items: center; }
.hero__media { position: relative; }
.slides {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: #ddd;
}
.slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 700ms var(--ease), visibility 0s linear 700ms;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 700ms var(--ease); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide__caption {
  position: absolute; left: var(--sp-3); bottom: var(--sp-3);
  background: var(--c-ink); color: #fff; padding: 5px 9px;
  font-family: var(--f-mono); font-size: var(--fs-2xs); letter-spacing: 0.02em;
  border-radius: 2px; max-width: calc(100% - 180px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 599px) { .slide__caption { display: none; } }
.slides__controls {
  position: absolute; right: var(--sp-3); bottom: var(--sp-3);
  display: flex; align-items: center; gap: 2px;
  background: #fff; border-radius: 999px; padding: 2px;
  box-shadow: var(--shadow-1);
}
.slides__btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
}
.slides__btn:hover { background: #f0eee9; }
.slides__btn .icon { width: 18px; height: 18px; }
.slides__dots { display: flex; gap: 2px; }
.slides__dot {
  width: 24px; height: 36px; padding: 0; background: none; border: 0; cursor: pointer;
  display: grid; place-items: center;
}
.slides__dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #c9c5bd; transition: background var(--dur), transform var(--dur);
}
.slides__dot[aria-current="true"]::before { background: var(--c-red); transform: scale(1.25); }

.sticker {
  position: absolute; z-index: 2;
  top: -14px; right: 10px;
  width: 112px; height: 112px;
  display: grid; place-items: center; text-align: center;
  padding: 14px;
  background: #fff; color: var(--c-ink);
  border: 3px solid var(--c-red); border-radius: 50%;
  font-family: var(--f-marker); font-size: 0.95rem; line-height: 1.1;
  transform: rotate(9deg);
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.18);
}
.sticker strong { color: var(--c-red); font-weight: 400; display: block; font-size: 1.15rem; }

.hero__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: var(--fs-2xl); line-height: 1.04; letter-spacing: 0.005em;
  max-width: 13ch;
}
.hero__title em { font-style: normal; color: var(--c-red); }
.hero__lead { margin-top: var(--sp-4); font-size: var(--fs-md); color: var(--c-ink-2); max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.hero__actions .btn { flex: 1 1 200px; }
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-5); font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--c-ink-2);
}
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--c-ink); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9a9a9a; }
.status.is-open::before { background: #15a34a; box-shadow: 0 0 0 3px rgb(21 163 74 / 0.18); }
.status.is-closed::before { background: var(--c-red); }

@media (min-width: 768px) {
  .hero__actions .btn { flex: 0 0 auto; }
  .sticker { width: 128px; height: 128px; font-size: 1.05rem; top: -22px; right: -12px; }
}
@media (min-width: 1024px) {
  .section--hero { padding-top: var(--sp-7); }
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-7); }
  .hero__content { order: -1; }
  .sticker { left: -36px; right: auto; top: -26px; transform: rotate(-9deg); }
}

/* ---------- 8. Quick links (label-maker tape) ---------- */
.section--quick-links { padding-top: 0; }
.quick-links__title {
  font-size: var(--fs-2xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-muted); margin-bottom: var(--sp-4);
}
.tapes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-3);
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 768px) {
  .tapes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-5); }
}
.tape {
  display: flex; align-items: center; justify-content: center;
  min-height: 60px; padding: var(--sp-3) var(--sp-4);
  text-decoration: none; text-align: center;
  font-family: var(--f-ui); font-weight: 700; font-stretch: 118%;
  font-size: 0.95rem; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.2;
  color: var(--c-tape-text);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.10) 0, rgb(255 255 255 / 0) 35%, rgb(0 0 0 / 0) 70%, rgb(0 0 0 / 0.35) 100%),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.025) 0 2px, transparent 2px 5px),
    var(--c-tape);
  /* embossed caps: light top edge, dark bottom edge */
  text-shadow: 0 -1px 0 rgb(0 0 0 / 0.9), 0 1px 0 rgb(255 255 255 / 0.28);
  clip-path: polygon(0 4%, 2% 0, 98% 0, 100% 5%, 100% 95%, 98% 100%, 2% 100%, 0 96%);
  box-shadow: 0 2px 0 rgb(0 0 0 / 0.25);
  transform: rotate(var(--tilt, -0.8deg));
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.tapes li:nth-child(2n) .tape { --tilt: 0.7deg; }
.tapes li:nth-child(3n) .tape { --tilt: -0.3deg; }
.tapes li:nth-child(5n) .tape { --tilt: 1deg; }
.tape:hover, .tape:focus-visible {
  --c-tape: var(--c-red);
  transform: rotate(0deg) translateY(-2px);
}
.tape--red { --c-tape: var(--c-red); }
.tape--red:hover { --c-tape: var(--c-ink); }
@media (max-width: 767px) {
  .tape { font-size: 0.8rem; letter-spacing: 0.12em; font-stretch: 100%; padding-inline: var(--sp-2); }
}
@media (min-width: 1024px) {
  .tape { min-height: 76px; font-size: 1.05rem; }
}

/* ---------- 9. Product shelves + card ---------- */
.shelf {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(158px, 44%);
  gap: var(--sp-4);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: var(--sp-1) var(--gutter) var(--sp-4);
  margin: 0 calc(var(--gutter) * -1);
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #c9c5bd transparent;
  position: relative; /* keeps absolutely positioned children (sr-only text) inside the scroller */
}
.shelf > li { scroll-snap-align: start; min-width: 0; }
@media (min-width: 600px) { .shelf { grid-auto-columns: minmax(180px, 30%); } }
@media (min-width: 1024px) {
  .shelf {
    grid-auto-columns: calc((100% - 3 * var(--sp-5)) / 4);
    gap: var(--sp-5);
    margin: 0; padding-inline: 0;
    scroll-padding-inline: 0;
    scrollbar-width: none;
  }
  .shelf::-webkit-scrollbar { display: none; }
}
@media (min-width: 1360px) {
  .shelf { grid-auto-columns: calc((100% - 4 * var(--sp-5)) / 5); }
}
.shelf-nav { display: none; gap: var(--sp-2); }
@media (min-width: 1024px) { .shelf-nav { display: flex; } }
.shelf-nav button {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 2px solid var(--c-ink); border-radius: 50%; background: #fff; cursor: pointer;
}
.shelf-nav button:hover:not(:disabled) { background: var(--c-ink); color: #fff; }
.shelf-nav button:disabled { opacity: 0.3; cursor: default; }

.card { position: relative; display: flex; flex-direction: column; height: 100%; }
.card__media { position: relative; }
.card__cover {
  display: block; border-radius: var(--radius); overflow: hidden;
  background: #eee; box-shadow: var(--shadow-1);
  aspect-ratio: 1 / 1;
}
.card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.card__badges {
  position: absolute; top: var(--sp-2); left: var(--sp-2);
  display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none;
}
.card__staff {
  position: absolute; z-index: 2; right: -4px; bottom: -10px;
  background: #fff; color: var(--c-ink);
  padding: 4px 10px 3px;
  font-size: 0.9rem; line-height: 1.2;
  transform: rotate(-4deg);
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.18);
  border-left: 4px solid var(--c-red);
  pointer-events: none;
}
.card__hover {
  position: absolute; inset: 0; z-index: 1;
  display: none; flex-direction: column; align-items: stretch; justify-content: center; gap: var(--sp-2);
  padding: 0 14%;
  background: rgb(20 20 20 / 0.55);
  border-radius: var(--radius);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .card__hover { display: flex; }
  .card__media:hover .card__hover { opacity: 1; }
  .card__media:hover .card__cover img { transform: scale(1.03); }
}
.card__body { display: flex; flex-direction: column; flex: 1; padding-top: var(--sp-4); }
.card__title { font-size: var(--fs-base); line-height: 1.3; font-weight: 400; }
.card__title a { text-decoration: none; display: block; }
.card__title a:hover .card__album { text-decoration: underline; text-underline-offset: 3px; }
.card__artist { display: block; font-weight: 800; font-stretch: 105%; }
.card__album {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--c-ink-2);
}
.card__format {
  margin-top: var(--sp-2);
  font-family: var(--f-mono); font-size: var(--fs-xs); line-height: 1.4; color: var(--c-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__ship {
  margin-top: 4px; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--c-red); font-weight: 500;
}
.card__note {
  margin-top: var(--sp-3);
  font-family: var(--f-marker); font-size: 1.02rem; line-height: 1.3; color: var(--c-ink);
}
.card__note cite { display: block; font-style: normal; color: var(--c-red); margin-top: 4px; }
.card__foot { margin-top: auto; padding-top: var(--sp-3); }
.card__price { font-weight: 800; font-size: var(--fs-md); font-stretch: 105%; }
.card__price small { font-weight: 500; font-size: var(--fs-2xs); color: var(--c-muted); display: block; font-stretch: 100%; }
.card__add { margin-top: var(--sp-3); }
.card__add.is-added { --btn-bg: var(--c-ink); --btn-fg: #fff; }

/* ---------- 10. Request band ---------- */
.section--request { background: var(--c-red); color: #fff; overflow: hidden; }
.request { display: grid; gap: var(--sp-7); align-items: center; }
.request__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: var(--fs-2xl); line-height: 1.04; max-width: 14ch;
}
.request__copy { margin-top: var(--sp-4); font-size: var(--fs-md); max-width: 46ch; }
.request__copy strong { font-weight: 800; }
.request__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); margin-top: var(--sp-5); }
.request__note {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--f-marker); font-size: 1.25rem; transform: rotate(-3deg);
}
.request__note svg { width: 56px; height: 34px; flex-shrink: 0; }
.polaroid {
  justify-self: center; position: relative;
  background: #fff; padding: 12px 12px 48px; color: var(--c-ink);
  transform: rotate(3deg); box-shadow: 0 18px 40px rgb(0 0 0 / 0.3);
  max-width: 260px; width: 70%;
}
@media (min-width: 900px) { .polaroid { max-width: 340px; width: 80%; } }
.polaroid img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.polaroid figcaption {
  position: absolute; left: 0; right: 0; bottom: 12px; text-align: center;
  font-family: var(--f-marker); font-size: 1.1rem;
}
.polaroid::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgb(240 232 214 / 0.85); box-shadow: 0 1px 2px rgb(0 0 0 / 0.15);
}
@media (min-width: 900px) {
  .request { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}

/* ---------- 11. Pre-orders ---------- */
.preorder-note {
  display: flex; gap: var(--sp-2); align-items: start;
  margin-top: var(--sp-2);
  font-size: var(--fs-sm); color: var(--c-ink-2);
}
.preorder-note .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--c-red); }

/* ---------- 12. Shop by genre ---------- */
.section--genres { padding-top: 0; }
.genres__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.1; margin-bottom: var(--sp-5); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-3); list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 48px; padding: 0 var(--sp-5);
  font-weight: 700; text-decoration: none;
  border: 2px solid var(--c-ink); border-radius: 999px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur);
}
.chip:hover { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.chip--feature { background: var(--c-ink); color: #fff; }
.chip--feature:hover { background: var(--c-red); }
.chip__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-red); }
.chip--feature .chip__dot { background: #fff; }
.genres__aside {
  margin-top: var(--sp-4); font-family: var(--f-marker); font-size: 1.1rem; color: var(--c-red);
  transform: rotate(-1.5deg); transform-origin: left;
}

/* ---------- 13. Staff picks ---------- */
.section--staff-picks { background: var(--c-cream); }
.picks {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-7) var(--sp-4); list-style: none; margin: 0; padding: 0;
}
@media (min-width: 1024px) {
  .picks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6); }
}
.picks .card__cover { transform: rotate(-1.2deg); box-shadow: 0 10px 24px rgb(0 0 0 / 0.16); }
.picks li:nth-child(2n) .card__cover { transform: rotate(1.4deg); }
.picks .card__hover { transform: rotate(-1.2deg); }
.picks li:nth-child(2n) .card__hover { transform: rotate(1.4deg); }

/* ---------- 14. Visit the shop ---------- */
.visit { display: grid; gap: var(--sp-6); align-items: start; }
.visit__photo { border-radius: var(--radius); overflow: hidden; }
.visit__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.visit__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.1; }
.visit__intro { margin-top: var(--sp-3); color: var(--c-ink-2); max-width: 48ch; }
.visit__grid { display: grid; gap: var(--sp-5); margin-top: var(--sp-5); }
.visit__label {
  font-size: var(--fs-2xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-muted); margin-bottom: var(--sp-2);
}
.visit address { font-style: normal; font-size: var(--fs-md); line-height: 1.45; }
.hours { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.hours th, .hours td { text-align: left; padding: 6px 0; border-bottom: 1px dashed var(--c-line); }
.hours th { font-weight: 500; }
.hours td { font-family: var(--f-mono); font-size: var(--fs-sm); text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--c-ink); }
.hours tr.is-today th::after { content: " (today)"; font-weight: 500; color: var(--c-red); }
.visit__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.visit__contact a { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 700; text-decoration: none; }
.visit__contact a:hover { color: var(--c-red); }
.visit__trade {
  margin-top: var(--sp-5); padding: var(--sp-4); border-left: 4px solid var(--c-red); background: #faf8f4;
}
.visit__trade strong { display: block; }
.visit__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
@media (min-width: 640px) { .visit__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .visit { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--sp-8); }
}

/* ---------- 15. Newsletter ---------- */
.section--newsletter { padding-top: 0; }
.newsletter {
  display: grid; gap: var(--sp-5); align-items: center;
  padding: var(--sp-6) var(--sp-5);
  border: 3px solid var(--c-ink); border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 var(--c-red);
}
.newsletter__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.1; }
.newsletter__sub { margin-top: var(--sp-2); color: var(--c-ink-2); }
.newsletter__form { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.newsletter__form label { flex-basis: 100%; font-weight: 700; font-size: var(--fs-sm); }
.newsletter__input {
  flex: 1 1 220px; min-width: 0; height: 52px; padding: 0 var(--sp-4);
  border: 2px solid var(--c-ink); border-radius: var(--radius); background: #fff; font-size: var(--fs-base);
}
.newsletter__input:focus { outline: 3px solid var(--c-focus); outline-offset: 1px; }
.newsletter__form .btn { min-height: 52px; flex: 0 0 auto; }
.newsletter__msg { flex-basis: 100%; font-weight: 700; color: #0f7a35; min-height: 1.5em; }
.newsletter__msg.is-error { color: var(--c-red); }
.newsletter__fine { flex-basis: 100%; font-size: var(--fs-2xs); color: var(--c-muted); }
.socials { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }
.social {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 700; text-decoration: none; padding: 8px 14px 8px 10px;
  border-radius: 999px; background: #f4f2ee;
}
.social:hover { background: var(--c-ink); color: #fff; }
@media (min-width: 900px) {
  .newsletter { grid-template-columns: 1fr 1fr; padding: var(--sp-7); gap: var(--sp-7); }
}

/* ---------- 16. Footer ---------- */
.section--footer { background: var(--c-ink); color: #e9e9e9; padding-bottom: 0; }
.footer__grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; }
.footer__brand img { width: 72px; background: #fff; border-radius: 50%; padding: 4px; }
.footer__brand p { margin-top: var(--sp-4); max-width: 34ch; color: #cfcfcf; font-size: var(--fs-sm); }
.footer__brand address { font-style: normal; margin-top: var(--sp-3); font-size: var(--fs-sm); color: #cfcfcf; }
.footer__heading {
  font-size: var(--fs-2xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #a8a8a8; margin-bottom: var(--sp-3);
}
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer__links a { display: inline-block; padding: 6px 0; text-decoration: none; font-size: var(--fs-sm); color: #f1f1f1; }
.footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__socials { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.footer__socials a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid #555; color: #fff;
}
.footer__socials a:hover { background: var(--c-red); border-color: var(--c-red); }
.payments { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: var(--sp-6) 0 0; padding: 0; }
.payments li { display: block; line-height: 0; }
.payments img { display: block; width: 44px; height: 28px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22); }
@media (max-width: 480px) {
  .payments { gap: 6px; }
  .payments img { width: 38px; height: 24px; }
}
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); align-items: center; justify-content: space-between;
  margin-top: var(--sp-7); padding-block: var(--sp-5);
  border-top: 1px solid #333; font-size: var(--fs-2xs); color: #b5b5b5;
}
.footer__bottom a { color: #fff; }
.footer__credit { margin: 0; }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
}

/* ---------- 17. Cart drawer ---------- */
.cart__ship { padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--c-line); background: #faf8f4; }
.cart__ship-text { font-size: var(--fs-sm); font-weight: 700; }
.cart__ship-text.is-done { color: #0f7a35; }
.progress {
  height: 10px; margin-top: var(--sp-2); border-radius: 999px; background: #e7e2d8; overflow: hidden;
}
.progress__bar {
  height: 100%; width: 0; background: var(--c-red); border-radius: inherit;
  transition: width 400ms var(--ease), background var(--dur);
}
.progress.is-done .progress__bar { background: #15a34a; }
.cart__pickup { margin-top: var(--sp-2); font-size: var(--fs-2xs); color: var(--c-ink-2); }

.cart__items { list-style: none; margin: 0; padding: 0 var(--sp-5); }
.cart-item {
  display: grid; grid-template-columns: 76px 1fr auto; gap: var(--sp-3);
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--c-line);
}
.cart-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 3px; }
.cart-item__title { font-size: var(--fs-sm); line-height: 1.3; }
.cart-item__title strong { display: block; }
.cart-item__meta { font-family: var(--f-mono); font-size: var(--fs-2xs); color: var(--c-muted); margin-top: 4px; }
.cart-item__pre { font-family: var(--f-mono); font-size: var(--fs-2xs); color: var(--c-red); margin-top: 2px; }
.cart-item__row { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-2); }
.cart-item__price { font-weight: 800; font-size: var(--fs-sm); text-align: right; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--c-ink); border-radius: var(--radius); }
.stepper button {
  width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; cursor: pointer;
}
.stepper button:hover { background: #f0eee9; }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; font-size: var(--fs-sm); }
.cart-item__remove {
  background: none; border: 0; padding: 8px 4px; cursor: pointer;
  font-size: var(--fs-2xs); text-decoration: underline; color: var(--c-ink-2);
}
.cart-item__remove:hover { color: var(--c-red); }
.cart__empty { padding: var(--sp-7) var(--sp-5); text-align: center; }
.cart__empty p { margin-bottom: var(--sp-4); font-size: var(--fs-md); }
.cart__empty .marker { color: var(--c-red); font-size: 1.3rem; display: block; margin-bottom: var(--sp-2); }
.cart__notice {
  margin: var(--sp-4) var(--sp-5) 0; padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm); background: #fff4f4; border-left: 4px solid var(--c-red);
}
.cart__foot { padding: var(--sp-4) var(--sp-5) var(--sp-5); border-top: 1px solid var(--c-line); }
.cart__total { display: flex; justify-content: space-between; font-weight: 800; font-size: var(--fs-md); }
.cart__afterpay { font-size: var(--fs-sm); color: var(--c-ink-2); margin-top: 4px; }
.cart__afterpay b { background: #b2fce4; color: var(--c-ink); padding: 1px 6px; border-radius: 3px; font-size: var(--fs-2xs); }
.cart__fine { font-size: var(--fs-2xs); color: var(--c-muted); margin: var(--sp-2) 0 var(--sp-4); }

/* ---------- 18. Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 300;
  transform: translate(-50%, 140%);
  max-width: calc(100% - 32px); width: max-content;
  background: var(--c-ink); color: #fff; padding: 12px 18px; border-radius: var(--radius);
  font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--shadow-2);
  transition: transform 300ms var(--ease);
}
.toast:not(.is-visible) { visibility: hidden; transition: transform 300ms var(--ease), visibility 0s linear 300ms; }
.toast.is-visible { transform: translate(-50%, 0); }
.toast b { color: #ff8a90; }

/* ---------- 19. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 20. Small helpers (moved out of inline styles) ---------- */
.header__left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.nav__inner { position: relative; }
.nav__item--rel { position: relative; }
.nav__hint { color: var(--c-muted); font-size: var(--fs-xs); }
.mnav__link--accent { color: var(--c-red); }
.visit__contact { margin-top: var(--sp-4); }
.footer__copy { margin: 0; }
