/* ==========================================================================
   Paper & Ink — storefront styles

   A light shop: warm off-white paper, near-black ink, one vermilion. The pack
   artwork is the only other colour on the page, which is the point — against
   all that white the covers do the shouting.

   Every text pair below clears 4.5:1 on its background, computed rather than
   judged. The vermilion is dark enough to work as type AND to carry white text
   on a filled button (5.0:1), so one accent does both jobs instead of needing
   a separate text-safe variant.

   Note for anyone editing: this stylesheet is built light. Hairlines are black
   at low alpha, not white — a white hairline is invisible on paper.
   ========================================================================== */

:root {
  /* surfaces — paper, then card, then a recessed tone for striped rows */
  --bg:            #FAF8F4;
  --card:          #FFFFFF;
  --card-2:        #F2EFE9;
  --border:        rgba(21, 18, 14, 0.12);
  --border-strong: rgba(21, 18, 14, 0.22);

  /* ink */
  --fg:            #15120E;   /* 17.6:1 on --bg */
  --muted:         #6B6459;   /*  5.5:1 on --bg */
  --faint:         #8A8276;   /*  3.6:1 — non-essential metadata only */

  /* brand: one vermilion, dark enough to be type and to hold white on a fill */
  --violet:        #CC3A1E;   /*  4.7:1 on --bg, and white on it is 5.0:1 */
  --violet-ink:    #CC3A1E;
  --violet-wash:   rgba(204, 58, 30, 0.10);

  /* status — all darkened for a light base; the dark theme's bright hues
     would be unreadable here */
  --green:         #15803D;   /*  4.7:1 on --bg */
  --green-ink:     #FFFFFF;   /*  5.0:1 on --green */
  --green-wash:    rgba(21, 128, 61, 0.10);
  --amber:         #B45309;   /*  4.7:1 on --bg */
  --amber-wash:    rgba(180, 83, 9, 0.10);
  --red:           #B91C1C;
  --red-ink:       #B91C1C;   /*  6.1:1 on --bg */
  --red-wash:      rgba(185, 28, 28, 0.09);
  --blue:          #0369A1;
  --blue-wash:     rgba(3, 105, 161, 0.10);

  /* type */
  --display: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* spacing scale */
  --s1: 8px;  --s2: 12px; --s3: 16px; --s4: 24px;
  --s5: 32px; --s6: 48px; --s7: 64px;

  --radius:    6px;
  --radius-sm: 4px;
  --radius-lg: 16px;

  --tap: 44px;              /* minimum touch target */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--s2); font-weight: 600; }
p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }

a { color: var(--violet-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #9E2B13; }

img, svg { max-width: 100%; }
.icon { flex: 0 0 auto; }

:focus-visible {
  outline: 2px solid var(--violet-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  padding: 12px 18px; background: var(--violet); color: #fff;
  border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip:focus { left: 0; }

.muted  { color: var(--muted); }
.faint  { color: var(--faint); }
.mono   { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- layout ------------------------------------------------------------- */

.wrap      { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--s4); }
.wrap-wide { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--s4); }

.row      { display: flex; flex-wrap: wrap; gap: var(--s4); }
.row--top { align-items: flex-start; }
.col-main { flex: 999 1 540px; min-width: 0; }
.col-side { flex: 1 1 330px; min-width: 0; }
.spacer   { flex-grow: 1; }

/*
 * Blocks in the page body never touch. Each block used to space itself with
 * its own margin, so a block that happened to have none — a flash message, a
 * card — sat flush against its neighbour. These margins collapse with any the
 * block already carries, so an element with a larger margin keeps it.
 */
main > * + *,
#main > * + * { margin-top: var(--s4); }

.stack    { display: flex; flex-direction: column; gap: var(--s4); }
.stack--sm { gap: var(--s2); }

.section { padding: var(--s6) 0; }
.section--tight { padding: var(--s5) 0; }

/* --- header / footer ---------------------------------------------------- */

.site-head { border-bottom: 1px solid var(--border); }
.site-head__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4);
  padding: 18px var(--s4);
}

.logo {
  font-family: var(--display);
  font-size: 24px; letter-spacing: 0.5px;
  color: var(--fg); text-decoration: none;
}
.logo:hover { color: var(--fg); }
.logo--sm { font-size: 20px; }

.site-nav { display: flex; flex-wrap: wrap; gap: 28px; flex-grow: 1; }
.site-nav a {
  color: var(--muted); text-decoration: none;
  font-size: 15px; font-weight: 500;
  padding: 12px 0;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }

.cart-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: var(--tap); padding: 0 18px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--fg); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: border-color 180ms ease;
}
.cart-btn:hover { border-color: var(--violet-ink); color: var(--fg); }
.cart-btn__count {
  min-width: 24px; height: 24px; padding: 0 7px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--green); color: var(--green-ink);
  font-size: 13px; font-weight: 700;
}

.site-foot { border-top: 1px solid var(--border); margin-top: var(--s7); padding: var(--s5) 0; }
.site-foot__inner {
  display: flex; flex-wrap: wrap; gap: var(--s3);
  align-items: center; justify-content: space-between;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: var(--s4); }
.site-foot a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 10px 0; }
.site-foot a:hover { color: var(--fg); }

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: var(--tap); padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 600 15px/1 var(--body); text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* Vermilion is the action. Green keeps one job here: this cleared, this was
   paid, this was delivered. One colour, one meaning. */
.btn--primary { background: var(--violet);  color: #FFFFFF; }
.btn--primary:hover:not(:disabled) { background: #A82B12; color: #FFFFFF; }

.btn--violet  { background: var(--violet); color: #fff; }
.btn--violet:hover:not(:disabled) { background: #B83118; color: #fff; }

.btn--ghost   { background: transparent; border-color: var(--border-strong); color: var(--fg); }
.btn--ghost:hover:not(:disabled) { border-color: var(--violet-ink); color: var(--fg); }

.btn--danger  { background: transparent; border-color: rgba(220, 38, 38, 0.5); color: var(--red-ink); }
.btn--danger:hover:not(:disabled) { background: var(--red-wash); color: var(--red-ink); }

.btn--amber   { background: var(--amber); color: var(--green-ink); }
.btn--amber:hover:not(:disabled) { background: #93420B; color: var(--green-ink); }

/* A button that reads as a link, for a small action sitting inside a line of
   text — where a bordered button would make the row taller than its neighbours. */
.btn--link {
  min-height: 0; padding: 0; border: 0; background: transparent;
  font-weight: 500; color: var(--violet-ink); text-decoration: underline;
  text-underline-offset: 2px;
}
.btn--link:hover:not(:disabled) { color: var(--fg); }

.btn--lg    { min-height: 52px; font-size: 16px; padding: 0 26px; }
.btn--sm    { min-height: 36px; font-size: 13.5px; padding: 0 14px; gap: 7px; }
.btn--block { width: 100%; }

.btn-icon {
  width: var(--tap); height: var(--tap); padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); color: var(--muted); cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}
.btn-icon:hover { color: var(--fg); border-color: var(--violet-ink); }
.btn-icon--danger:hover { color: var(--red-ink); border-color: var(--red); }

/* --- cards -------------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s4);
}
.card--flat    { border-radius: var(--radius); }
.card--violet  { border-color: rgba(124, 58, 237, 0.4); }
.card--green   { border-color: rgba(34, 197, 94, 0.35); }
.card--amber   { border-color: rgba(251, 191, 36, 0.4); }
.card--red     { border-color: var(--red); background: var(--red-wash); }
.card__title   { font-size: 17px; font-weight: 600; margin: 0 0 var(--s3); }

/* --- pills and chips ---------------------------------------------------- */

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.pill__dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.pill--ok   { background: var(--green-wash);  color: var(--green); }
.pill--info { background: var(--blue-wash);   color: var(--blue); }
.pill--warn { background: var(--amber-wash);  color: var(--amber); }
.pill--bad  { background: var(--red-wash);    color: var(--red-ink); }
.pill--mute { background: rgba(21, 18, 14, 0.08); color: var(--muted); }
.pill--violet { background: var(--violet-wash); color: var(--violet-ink); }
.pill--count { padding: 0 7px; min-width: 22px; height: 22px; justify-content: center; font-size: 12px; }

.tag {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  background: var(--violet-wash); color: var(--violet-ink);
  font-size: 12px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
}

.chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chip {
  display: inline-flex; align-items: center;
  min-height: var(--tap); padding: 0 16px;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); color: var(--fg);
  font: 500 14px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.chip:hover { border-color: var(--violet-ink); color: var(--fg); }
.chip.is-on { background: var(--violet); border-color: var(--violet); color: #FFFFFF; }

/* --- forms -------------------------------------------------------------- */

.field { margin-bottom: var(--s4); }
.field:last-child { margin-bottom: 0; }

.label {
  display: block; margin-bottom: 7px;
  font-size: 14.5px; font-weight: 500; color: var(--fg);
}
.label__opt { color: var(--muted); font-weight: 400; }

.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: 400 15.5px/1.5 var(--body);
}
.textarea { min-height: 110px; resize: vertical; }
.input--mono { font-family: var(--mono); letter-spacing: 0.5px; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--violet-ink); }

/* Our own chevron: the browser's arrow hugs the edge and differs per browser. */
.select {
  -webkit-appearance: none; appearance: none;
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}
.select:hover { border-color: rgba(21, 18, 14, 0.30); }
.select::-ms-expand { display: none; }
.select option { background: var(--bg); color: var(--fg); }

.input.is-bad, .textarea.is-bad { border-color: var(--red); }
.input.is-ok  { border-color: var(--green); }

.hint  { margin: 7px 0 0; font-size: 13.5px; color: var(--muted); }
.error { margin: 8px 0 0; display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--red-ink); }
/* display:flex above beats the hidden attribute's UA display:none, which left a
   red error icon under every untouched field. Same guard as .pack[hidden]. */
.error[hidden] { display: none; }
.ok-note { margin: 8px 0 0; display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--green); }

.field-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.field-row > .input { flex: 999 1 200px; }
.field-row > .btn   { flex: 0 0 auto; min-height: 48px; }

fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; font-size: 14.5px; font-weight: 500; margin-bottom: 7px; }

.radio-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.radio {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: var(--tap); padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 14.5px;
}
.radio input { accent-color: var(--violet); width: 18px; height: 18px; }

/* --- error summary ------------------------------------------------------ */

.summary-error {
  padding: 20px 22px; margin-bottom: var(--s4);
  background: var(--red-wash); border: 1px solid var(--red);
  border-radius: var(--radius);
}
.summary-error h2 { font-size: 16px; margin: 0 0 10px; }
.summary-error ul { margin: 0; padding-left: 20px; }
.summary-error li { font-size: 14.5px; line-height: 1.6; }
.summary-error a  { color: var(--red-ink); }

/* --- flash -------------------------------------------------------------- */

.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; margin: var(--s4) 0;
  border-radius: var(--radius); font-size: 15px;
}
/* An undo sits at the far end of its message, clear of the text. */
.flash__undo { margin: 0 0 0 auto; }
.flash--ok   { background: var(--green-wash); border: 1px solid rgba(34, 197, 94, 0.5);  color: var(--fg); }
.flash--warn { background: var(--amber-wash); border: 1px solid rgba(251, 191, 36, 0.5); color: var(--fg); }
.flash--bad  { background: var(--red-wash);   border: 1px solid var(--red);              color: var(--fg); }
.flash--ok   .icon { color: var(--green); }
.flash--warn .icon { color: var(--amber); }
.flash--bad  .icon { color: var(--red-ink); }

/* --- hero --------------------------------------------------------------- */

.hero { padding: var(--s7) 0 var(--s6); display: flex; flex-wrap: wrap; gap: var(--s6); align-items: flex-end; }
.hero__eyebrow {
  margin: 0 0 var(--s3); font-size: 13px; font-weight: 600;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--violet);
}
.hero__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 5vw, 54px); line-height: 1.08;
  margin: 0 0 var(--s3);
}
.hero__lead { font-size: 17px; color: var(--muted); max-width: 52ch; margin: 0; }

.trust { display: flex; flex-direction: column; gap: var(--s2); }
.trust__item {
  display: flex; align-items: center; gap: var(--s2);
  padding: 16px 18px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14.5px;
}
.trust__item .icon { color: var(--green); }

/* --- pack grid ---------------------------------------------------------- */

.grid { display: grid; gap: var(--s4); }
.grid--packs { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.pack {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: border-color 180ms ease;
}
.pack:hover { border-color: var(--border-strong); }

.pack__cover {
  position: relative; height: 180px;
  display: flex; align-items: flex-end; padding: 18px;
  background: var(--violet);
}
.pack__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pack__wave {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 80px; opacity: 0.55; color: var(--bg);
}
.pack__play {
  position: relative; width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 999px;
  background: var(--bg); color: var(--fg); cursor: pointer;
  transition: transform 180ms ease;
}
.pack__play:hover { transform: scale(1.06); }
.pack__play.is-playing { background: var(--green); color: var(--green-ink); }

.pack__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.pack__title { font-size: 18px; margin: 0; }
.pack__title a { color: var(--fg); text-decoration: none; }
.pack__title a:hover { color: var(--violet-ink); }
.pack__meta { margin: 0; font-size: 14px; color: var(--muted); }
.pack__buy { padding: 0 20px 20px; display: flex; align-items: center; gap: var(--s2); }
.pack__price { font-size: 22px; font-weight: 700; flex-grow: 1; }
.pack__was { font-size: 14px; color: var(--muted); text-decoration: line-through; margin-left: 6px; }

.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars__on  { color: var(--amber); }
.stars__off { color: rgba(21, 18, 14, 0.22); }

/* --- pack detail -------------------------------------------------------- */

.crumbs { padding: var(--s4) 0; }
.crumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.crumbs li { font-size: 14px; color: var(--muted); }
.crumbs a  { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current="page"] { color: var(--fg); }

.cover-lg {
  position: relative; height: 340px; border-radius: var(--radius-lg);
  background: var(--violet); overflow: hidden;
  display: flex; align-items: flex-end; padding: var(--s4);
}
.cover-lg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-lg .pack__wave { height: 140px; opacity: 0.5; }
.cover-lg .pack__play { width: 64px; height: 64px; }

.tracklist { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tracklist li {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3);
  padding: 14px 18px; background: var(--card); border-bottom: 1px solid var(--border);
}
.tracklist li:last-child { border-bottom: 0; }
.tracklist__name { flex: 999 1 160px; min-width: 0; font-size: 15px; }
.tracklist__note { font-size: 13.5px; color: var(--muted); }

.price-big { font-size: 38px; font-weight: 700; line-height: 1; }

.meta-grid { margin: var(--s4) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.meta-grid dt { font-size: 12.5px; letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.meta-grid dd { margin: 0; font-size: 15px; }

.ticks { margin: var(--s4) 0 0; padding: var(--s4) 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--s2); }
.ticks div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ticks .icon { color: var(--green); }

/* --- reviews ------------------------------------------------------------ */

.review-head { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: baseline; justify-content: space-between; }
.score {
  flex: 0 0 200px; padding: var(--s4); text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.score__n { margin: 0; font-size: 44px; font-weight: 700; line-height: 1; }

.reviews { flex: 999 1 480px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s3); }
.review { padding: 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.review__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: 10px; }
.review__who { font-size: 15px; font-weight: 600; }
.review__when { font-size: 13.5px; color: var(--muted); margin-left: auto; }
.review__body { margin: 0; font-size: 15px; }
.verified {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 6px;
  background: var(--green-wash); color: var(--green);
  font-size: 12px; font-weight: 600;
}

/* --- cart / checkout ---------------------------------------------------- */

.lines { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lines li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 18px; background: var(--card); border-bottom: 1px solid var(--border);
}
.lines li:last-child { border-bottom: 0; }
.lines__thumb { width: 64px; height: 64px; flex: 0 0 auto; border-radius: var(--radius-sm); background: var(--violet); object-fit: cover; }
.lines__body  { flex: 999 1 200px; min-width: 0; }
.lines__title { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.lines__meta  { margin: 0; font-size: 13.5px; color: var(--muted); }
.lines__price { font-size: 17px; font-weight: 600; }

.totals { margin: 0 0 18px; }
.totals__row { display: flex; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s2); font-size: 15px; }
.totals__row dt { color: var(--muted); }
.totals__row dd { margin: 0; }
.totals__grand {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3);
  padding-top: 18px; border-top: 1px solid var(--border);
}
.totals__grand strong { font-size: 30px; font-weight: 700; }

.paypal-slot { margin-top: var(--s4); min-height: 52px; }
.paypal-slot__fallback {
  padding: 20px; border: 1px dashed var(--border-strong);
  border-radius: var(--radius); text-align: center; font-size: 13.5px; color: var(--muted);
}
/* Waiting is a wait, not a result: show it moving so the pause reads as
   progress rather than a stalled page. */
.paypal-slot__fallback.is-waiting::before {
  content: ""; display: block; width: 18px; height: 18px; margin: 0 auto 10px;
  border: 2px solid var(--border-strong); border-top-color: var(--violet-ink);
  border-radius: 50%; animation: slot-spin 820ms linear infinite;
}
@keyframes slot-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .paypal-slot__fallback.is-waiting::before { animation: none; }
}
/* A failure is styled as one — the old version looked like a status note. */
.paypal-slot__fallback--bad {
  border-style: solid; border-color: var(--red);
  background: var(--red-wash); color: var(--fg); text-align: left;
}

.empty { padding: var(--s7) var(--s4); text-align: center; }
.empty__icon { color: var(--faint); margin-bottom: var(--s3); }

/* --- delivery ----------------------------------------------------------- */

.paid-banner {
  display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center;
  padding: 26px; background: var(--green-wash);
  border: 1px solid var(--green); border-radius: var(--radius-lg);
}
.paid-banner__mark {
  width: 52px; height: 52px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--green); color: var(--green-ink);
}
.paid-banner h1 { font-size: clamp(21px, 3vw, 26px); margin: 0 0 6px; }

.order-meta { display: flex; flex-wrap: wrap; gap: var(--s5); align-items: center; }
.order-meta__k { margin: 0 0 5px; font-size: 12.5px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
.order-meta__v { margin: 0; font-size: 19px; font-weight: 600; }

.dl-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.dl-list li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 20px; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px;
}

/* --- tables ------------------------------------------------------------- */

.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  padding: 0 12px 12px; text-align: left;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
.table td { padding: 14px 12px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child,  .table td:last-child  { padding-right: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr:hover td { background: rgba(21, 18, 14, 0.035); }

/* --- misc --------------------------------------------------------------- */

.prose { max-width: 70ch; }
.prose h2 { font-size: 21px; margin: var(--s5) 0 var(--s2); }
.prose h3 { font-size: 17px; margin: var(--s4) 0 var(--s1); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: var(--s1); }

.divide { margin: var(--s6) 0 0; padding-top: var(--s5); border-top: 1px solid var(--border); }

/* --- responsive --------------------------------------------------------- */

@media (max-width: 1024px) {
  .cover-lg { height: 280px; }
}

@media (max-width: 768px) {
  .wrap, .wrap-wide { padding: 0 18px; }
  .hero { padding: var(--s5) 0 var(--s4); gap: var(--s4); }
  .site-head__inner { padding: 14px 18px; gap: var(--s3); }
  .site-nav { gap: 18px; order: 3; width: 100%; }
  .grid--packs { grid-template-columns: 1fr; }
  .score { flex: 1 1 100%; }
  .order-meta { gap: var(--s4); }
  .meta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  body { font-size: 15.5px; }
  .pack__buy { flex-wrap: wrap; }
  .pack__price { flex: 1 1 100%; margin-bottom: var(--s1); }
  .lines li { gap: var(--s2); }
  .lines__price { margin-left: auto; }
  .totals__grand strong { font-size: 26px; }
}

/* --- 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;
  }
  .pack__play:hover { transform: none; }
}

/* --- print (the dispute evidence page) ---------------------------------- */

@media print {
  :root { --bg: #fff; --card: #fff; --fg: #111; --muted: #444; --border: #ccc; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .site-head, .site-foot, .admin-side, .no-print, .btn, .btn-icon { display: none !important; }
  .card { border: 1px solid #ccc; break-inside: avoid; }
  a { color: #111; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* --- 1.1.0: search, genre counts, rating strip ------------------------------ */
.pack[hidden] { display: none; }
.chip__n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px;
  border-radius: 999px; background: rgba(21, 18, 14, 0.08);
  font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted);
}
.chip.is-on .chip__n { background: rgba(255, 255, 255, 0.28); color: inherit; }

.pack-search { position: relative; margin-top: var(--s4); max-width: 460px; }
.pack-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.pack-search .input { padding-left: 42px; }
.empty-search { margin: var(--s4) 0 0; }

.rating-strip {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: center;
  margin: 0 0 var(--s4); padding: 14px 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14.5px; color: var(--muted);
}
.rating-strip__item { display: inline-flex; align-items: center; gap: 8px; }
.rating-strip strong { color: var(--fg); font-variant-numeric: tabular-nums; }

/* checkout: choose how to pay */
.pay-modes { border: 0; padding: 0; margin: 0 0 var(--s3); display: flex; flex-direction: column; gap: 8px; }
.pay-mode {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer;
}
.pay-mode:has(input:checked) { border-color: var(--violet-ink); background: rgba(124, 58, 237, 0.1); }
.pay-mode input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--violet); flex: 0 0 auto; }
.pay-mode span { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.pay-mode small { color: var(--muted); font-size: 13px; }
.pay-pane[hidden], [data-hint][hidden] { display: none; }
.own-amount { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 0; }

/* review page: optional writing help */
.write-help {
  margin: 0 0 var(--s4); padding: 14px 16px;
  background: var(--bg); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
}
.write-help .textarea { min-height: 64px; }

/* My order */
.my-pack__head { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.my-pack__head .lines__thumb { flex: 0 0 auto; }
.my-pack__title { flex: 1 1 200px; min-width: 0; }
.my-pack__review { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--border); }
.my-pack details > summary { list-style: none; display: inline-flex; cursor: pointer; }
.my-pack details > summary::-webkit-details-marker { display: none; }

/* Review box on the completion page: one per pack still to review. With a
   single pack it is open and reads as a plain form; with several, each is a
   disclosure so the page does not become a wall of textareas. */
.review-box { border-top: 1px solid var(--border); padding-top: var(--s3); margin-top: var(--s3); }
.review-box:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.review-box > summary {
  cursor: pointer; font-weight: 600; font-size: 15px; list-style: none;
  padding: 6px 0; min-height: var(--tap); display: flex; align-items: center;
}
.review-box > summary::-webkit-details-marker { display: none; }
.review-box > summary::after {
  content: "+"; margin-left: auto; color: var(--muted); font-weight: 400; font-size: 18px;
}
.review-box[open] > summary::after { content: "−"; }
.review-box > summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
/* A single pack needs no disclosure affordance: there is nothing to choose. */
.review-box:only-of-type > summary { cursor: default; }
.review-box:only-of-type > summary::after { content: ""; }

/* ---------------------------------------------------------------------------
   Paper & Ink: the handful of places a light editorial shop differs from a
   dark one in shape rather than colour.
   --------------------------------------------------------------------------- */

/* Archivo needs weight and tightness to carry a heading; Righteous carried
   itself. */
.logo { font-weight: 800; letter-spacing: -0.6px; }
.hero__title { font-weight: 800; letter-spacing: -1.4px; line-height: 1.02; }
h1, h2, h3 { letter-spacing: -0.4px; }
.card__title, .pack__title { font-weight: 700; letter-spacing: -0.3px; }

/* Measured things wear mono: price, size, order reference. */
.price, .lines__price, .totals__row, .totals__grand, .pack__meta {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* Dark cover art can float on white, so every cover gets a hairline. This is
   the one thing a light shop has to add that a dark one never needs. */
.pack__art, .pack__cover, .lines__art {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* On paper a hover wants to warm the surface rather than lighten it. */
.pack { transition: border-color 160ms ease, background-color 160ms ease; }
.pack:hover { border-color: var(--border-strong); background: var(--card-2); }

@media (prefers-reduced-motion: reduce) {
  .pack { transition: none; }
}
