/* everysong · "Fluoro crate" theme (Nov 2026)
   A record shop in fluoro: butter paper, navy ink, fluoro orange, mint teal
   and butter yellow. Chunky 3px navy borders and solid navy offset shadows
   instead of soft blurs. One shared stylesheet for every page; pages keep only
   markup. Fonts: Bagel Fat One (headings, logo), Figtree (body and labels).
   The system monospace is kept for real code samples only. */

:root {
  /* palette */
  --butter: #fff3c4;
  --navy: #13306b;
  --navy-deep: #0d2150;
  --groove: #1b3366;
  --orange: #ff6a2b;      /* fluoro orange: fills only, navy-deep text on it (5.4:1) */
  --orange-shadow: #c94a14;
  --orange-ink: #b23c0a;  /* orange that passes AA as text on butter (5.3:1) and white */
  --yellow: #ffd84d;
  --mint: #3fc7a8;        /* mint teal: navy text on it (6:1) */
  --mint-deep: #1f9a80;
  --white: #ffffff;
  --ink-soft: #2c3f6e;   /* secondary text */
  --ink-mute: #4b5c86;   /* tertiary text, 5.9:1 on butter */
  --cream: #fff9e0;      /* inset wells */

  /* reliability tiers: the word always matches its colour (dark enough for text) */
  --tier-green: #17703f;
  --tier-amber: #9a5600;
  --tier-red: #b3261e;

  /* older variable names still used by inline markup and the studio page */
  --ink: var(--butter);
  --ink-2: var(--white);
  --ink-3: var(--cream);
  --ink-4: var(--cream);
  --line: var(--navy);
  --line-2: var(--navy);
  --paper: var(--navy);
  --paper-2: var(--ink-soft);
  --mute: var(--ink-mute);
  --mute-2: var(--ink-mute);
  --accent: var(--orange-ink);
  --accent-2: var(--navy);
  --accent-3: var(--tier-amber);
  --good: var(--tier-green);

  --f-head: "Bagel Fat One", ui-rounded, system-ui, sans-serif;
  --f-body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --f-label: "Figtree", ui-sans-serif, system-ui, sans-serif;   /* small caps labels: 700, uppercase, tracked */
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;  /* real code only */

  --bd: 3px solid var(--navy);
  --shadow: 7px 7px 0 var(--navy);
  --shadow-sm: 4px 4px 0 var(--navy);
  --shadow-btn: 4px 5px 0 var(--navy);
}

/* ---------- base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
html body {
  margin: 0; padding: 0;
  min-height: 100vh;
  background-color: var(--butter);
  color: var(--navy);
  font: 500 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before, body::after { content: none; display: none; }
img, svg, video { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--navy-deep); }

h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 400; color: var(--navy); text-transform: none; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-weight: 400; font-size: clamp(40px, 7vw, 76px); line-height: 0.98; letter-spacing: -0.015em; margin: 18px 0 22px; }
h2 { font-weight: 400; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.08; margin: 56px 0 14px; }
h3 { font-weight: 400; font-size: 20px; line-height: 1.2; margin: 28px 0 8px; }
p, li, dd, td, th { font-family: var(--f-body); }
p { margin: 0 0 16px; color: var(--ink-soft); }
li { color: var(--ink-soft); margin-bottom: 8px; }
ul, ol { margin: 0 0 22px; padding-left: 24px; }
strong, b { color: var(--navy); font-weight: 700; }
em { font-style: italic; }
code, pre, kbd { font-family: var(--f-mono); }
code { font-size: 0.88em; background: var(--white); border: 1.5px solid var(--navy); border-radius: 4px; padding: 1px 5px; color: var(--navy); }
a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange-ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 6px var(--yellow); border-radius: 4px; }
.sr, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }

/* page bodies on content pages */
body > main:not(.cr-wrap), body > article {
  display: block; max-width: 880px; margin: 0 auto; padding: 48px 32px 80px; position: relative;
}
body > main.cr-wide { max-width: 1240px; }

/* ---------- mono labels, tape strips -------------------------------------- */
.cr-mono, .mono { font-family: var(--f-label); }
.eyebrow, .cr-tape, .eb-kicker {
  display: inline-block;
  font: 700 13px/1.3 var(--f-label);
  text-transform: uppercase; letter-spacing: 0.14em;
  background: var(--navy); color: var(--butter);
  padding: 6px 12px 5px;
  transform: rotate(-1.5deg);
  margin: 0 0 6px;
  max-width: 100%;
}
.eyebrow .led, .eyebrow .led-green, .cr-tape b { color: var(--yellow); font-weight: 500; }
.cr-tape.orange { background: var(--orange); color: var(--navy-deep); }
.cr-tape.yellow { background: var(--yellow); color: var(--navy-deep); }
.led, .led-green { color: var(--orange-ink); font-weight: 700; }
h1 .accent, .cr-h1 em, h1 em {
  font-style: normal; color: var(--orange);
  text-shadow: 0.045em 0.045em 0 var(--navy);
}
h1 .accent { color: var(--orange); }
.lede, .intro, .eb-lede { font-size: clamp(18px, 2vw, 20px); line-height: 1.55; color: var(--ink-soft); }
.post-meta, .updated, .since { font: 500 13px var(--f-label); color: var(--ink-mute); letter-spacing: 0.04em; }
.post-meta { margin: -6px 0 22px; }

/* ---------- buttons -------------------------------------------------------- */
.cr-btn, a.buy, .cta-box a.buy, .finder button, .eb-btn, .btn.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 22px;
  background: var(--orange); color: var(--navy-deep) !important;
  font: 400 17px/1.1 var(--f-head); letter-spacing: 0.01em; text-transform: none; text-decoration: none;
  border-radius: 999px;
  border: 3px solid var(--navy); box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.cr-btn:hover, a.buy:hover, .finder button:hover, .eb-btn:hover, .btn.primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 var(--navy); color: var(--navy-deep); }
.cr-btn:active, a.buy:active, .finder button:active, .eb-btn:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--navy); }
.cr-btn.ghost, .eb-btn.ghost, .btn.ghost {
  background: var(--white); color: var(--navy) !important; border: var(--bd);
  box-shadow: var(--shadow-sm); min-height: 42px; padding: 8px 16px; font-size: 15px;
}
.cr-btn.ghost:hover, .eb-btn.ghost:hover, .btn.ghost:hover { background: var(--yellow); box-shadow: 4px 5px 0 var(--navy); }
.cr-btn.ghost:active, .eb-btn.ghost:active { box-shadow: 1px 1px 0 var(--navy); transform: translate(2px, 2px); }
.cr-btn.sm { min-height: 38px; padding: 5px 15px; font-size: 15px; border-width: 2.5px; box-shadow: 3px 4px 0 var(--navy); }
.cr-btn[disabled], .eb-btn[disabled] { opacity: .6; cursor: wait; }
.mini {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 12px/1.2 var(--f-label); letter-spacing: 0.02em; color: var(--navy) !important;
  background: var(--white); border: 2px solid var(--navy); border-radius: 999px;
  padding: 6px 11px; cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: 2px 2px 0 var(--navy);
}
.mini:hover { background: var(--yellow); }
.mini:active { transform: translate(2px, 2px); box-shadow: none; }

/* ---------- chips / pills / stickers --------------------------------------- */
.cr-chip, .eb-chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 700 12px/1.2 var(--f-label); color: var(--navy);
  background: var(--white); border: 1.5px solid var(--navy); border-radius: 999px; padding: 4px 9px;
}
.cr-chip.yellow, .eb-chip.amber { background: var(--yellow); }
.cr-chip.mint { background: var(--mint); }
.cr-chip.orange { background: var(--orange); color: var(--navy-deep); }
.lic-tag {
  display: inline-block; font: 700 11px/1.25 var(--f-label); color: var(--navy);
  border: 1.5px solid var(--navy); border-radius: 999px; padding: 3px 8px; background: var(--white);
}
.lic-tag.sa { background: var(--yellow); }
.lic-tag.zero { background: var(--mint); }
.sticker {
  position: absolute; top: 10px; right: -8px; z-index: 2;
  background: var(--white); border: 2px solid var(--navy);
  font: 700 11px/1.1 var(--f-label); color: var(--navy);
  padding: 6px 9px 7px; transform: rotate(6deg);
  box-shadow: 3px 3px 0 var(--navy); text-align: center;
}
.sticker b { display: block; font: 400 22px/1 var(--f-head); letter-spacing: -0.02em; }

/* ---------- site header ---------------------------------------------------- */
.cr-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.cr-top { position: relative; z-index: 20; }
.cr-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 32px; max-width: 1240px; margin: 0 auto; }
.cr-logo { display: inline-flex; align-items: center; gap: 10px; font: 400 26px/1 var(--f-head); letter-spacing: -0.01em; color: var(--navy) !important; text-decoration: none; }
.cr-logo i {
  width: 28px; height: 28px; flex: none; border-radius: 50%; position: relative; display: inline-block;
  background: repeating-radial-gradient(circle, var(--navy) 0 1.5px, #24427e 1.5px 3px);
}
.cr-logo i::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--orange); }
.cr-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.cr-nav a:not(.cr-btn) { font: 700 13px var(--f-label); text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy); text-decoration: none; padding: 6px 0; }
.cr-nav a:not(.cr-btn):hover, .cr-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ---------- footer: back of the sleeve ------------------------------------ */
.cr-foot { background: var(--navy); color: var(--butter); margin-top: 72px; border-top: 3px solid var(--navy); }
.cr-foot-in { max-width: 1240px; margin: 0 auto; padding: 34px 32px 44px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; }
.cr-foot p { color: var(--butter); margin: 0; }
.cr-foot .cr-cat { font: 700 12px var(--f-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 8px; }
.cr-foot .cr-sign { font: 400 24px/1.1 var(--f-head); letter-spacing: -0.02em; }
.cr-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; }
.cr-foot nav a { color: var(--butter) !important; font: 700 13px var(--f-label); text-decoration: none; }
.cr-foot nav a:hover { color: var(--yellow) !important; text-decoration: underline; }
.cr-foot :focus-visible { outline-color: var(--yellow); box-shadow: none; }
.cr-barcode { width: 132px; height: 64px; background: var(--butter); padding: 8px 10px 18px; position: relative; }
.cr-barcode::before { content: ""; position: absolute; inset: 8px 10px 20px; background: repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 4px, var(--navy) 4px 5px, transparent 5px 8px, var(--navy) 8px 11px, transparent 11px 12px); }
.cr-barcode span { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font: 700 10px var(--f-label); color: var(--navy); letter-spacing: 0.2em; }
.back { display: none; }

/* ---------- cards and panels ----------------------------------------------- */
.cr-card, .eb-panel { background: var(--white); border: var(--bd); box-shadow: var(--shadow); border-radius: 6px; }

/* shelf talker: the handwritten card a shop clips to a record */
.case-card, .promise-card, .option-card, .license-card, .trait-card, .endpoint-card, .post-card {
  position: relative; background: var(--white); border: var(--bd); border-radius: 4px;
  box-shadow: var(--shadow-sm); padding: 22px 24px 20px; margin: 22px 0;
}
.case-card::before, .promise-card::before {
  content: ""; position: absolute; top: -10px; left: 26px; width: 74px; height: 20px;
  background: rgba(63, 199, 168, 0.85); transform: rotate(-3deg);
}
.case-card:nth-of-type(3n+2)::before, .promise-card:nth-of-type(3n+2)::before { background: rgba(255, 216, 77, 0.9); left: auto; right: 30px; transform: rotate(4deg); }
.case-card:nth-of-type(3n)::before, .promise-card:nth-of-type(3n)::before { background: rgba(255, 106, 43, 0.8); left: 44%; transform: rotate(-2deg); }
.case-card h3, .promise-card h3, .option-card h3, .license-card h3, .trait-card h3 { margin: 4px 0 8px; font-size: 20px; }
.case-card p, .promise-card p { margin-bottom: 0; font-size: 16px; }
.case-card .tag, .promise-card .since {
  display: inline-block; font: 700 12px var(--f-label); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--navy-deep); background: var(--yellow); padding: 3px 8px; margin: 0 0 6px; border-radius: 0;
}
.promise-card .since { background: transparent; color: var(--ink-mute); padding: 0; margin: 10px 0 0; display: block; }
.option-card .verdict, .license-card .badge, .trait-card .tier {
  display: inline-block; font: 700 12px var(--f-label); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border: 2px solid currentColor; border-radius: 999px; margin-top: 8px; background: var(--white);
}
.license-card .badge { margin: 0 0 10px; }
.ok { color: var(--tier-green) !important; }
.careful { color: var(--tier-amber) !important; }
.no { color: var(--ink-mute) !important; }
.green { color: var(--tier-green); }
.amber { color: var(--tier-amber); }
.trait-card .units { font: 500 13px var(--f-label); color: var(--ink-mute); }

/* call to action: a price sticker on a white sleeve */
.quick-cta, .cta, .cta-box {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px;
  margin: 40px 0 16px; padding: 24px 26px; background: var(--white); border: var(--bd); border-radius: 6px; box-shadow: var(--shadow);
}
.cta-box { display: block; }
.quick-cta .price {
  display: inline-grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--navy); box-shadow: 3px 3px 0 var(--navy);
  font: 400 22px/1 var(--f-head); color: var(--navy); letter-spacing: -0.01em; transform: rotate(-8deg);
  float: left; margin-right: 16px;
}
.quick-cta .copy, .cta-box .sub { font: 500 13px/1.5 var(--f-label); color: var(--ink-soft); }
.quick-cta > div:first-child { display: flex; align-items: center; gap: 0; }
.quick-cta .copy { max-width: 260px; }
.cta-box .h { font: 400 24px/1.15 var(--f-head); color: var(--navy); margin-bottom: 6px; letter-spacing: -0.02em; }
.cta-box .sub { margin-bottom: 18px; }
.cta > div[style] { font-family: var(--f-head) !important; color: var(--navy) !important; }
.cta > div[style] + div[style] { font-family: var(--f-label) !important; color: var(--ink-soft) !important; }

/* ---------- liner notes: numbered steps ------------------------------------ */
.step, .hop {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px;
  padding: 18px 0; border-bottom: 2px dashed rgba(19, 48, 107, 0.35);
}
.hop[style] { border-bottom: 2px dashed rgba(19, 48, 107, 0.35) !important; padding-bottom: 18px !important; }
.step-num, .hop-num {
  grid-row: 1 / span 3; align-self: start;
  font: 700 13px/1.25 var(--f-label); letter-spacing: 0.06em; color: var(--navy-deep); text-transform: uppercase;
}
.step-num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--navy); font-size: 16px; font-weight: 500; box-shadow: 2px 2px 0 var(--navy); }
.hop-num { grid-row: auto; grid-column: 1 / -1; margin-bottom: 2px; color: var(--orange-ink); }
.hop .hop-title, .hop p { grid-column: 1 / -1; }
.step-title, .hop-title { font: 400 21px/1.2 var(--f-head); color: var(--navy); margin: 2px 0 6px; letter-spacing: -0.015em; }
.step p, .hop p { margin-bottom: 0; }
.cr-liner {
  position: relative; background: var(--white); border: var(--bd); box-shadow: var(--shadow); border-radius: 4px;
  padding: 22px 28px 8px; margin: 26px 0 30px;
}
.cr-liner::before {
  content: "Side A · liner notes"; position: absolute; top: -14px; right: 22px;
  font: 700 12px var(--f-label); letter-spacing: .12em; text-transform: uppercase;
  background: var(--orange); color: var(--navy-deep); padding: 4px 10px; border: 2px solid var(--navy); transform: rotate(2deg);
}
.cr-liner > .step:last-child, .cr-liner > .hop:last-child { border-bottom: 0 !important; }
@media (max-width: 760px) { .cr-liner { padding: 18px 16px 4px; } }

/* ---------- tracklist: FAQs ------------------------------------------------ */
.cr-tracklist, body main, body article { counter-reset: track; }
.faq-item, .cr-tracklist details {
  counter-increment: track; position: relative;
  padding: 16px 0 16px 58px; border-bottom: 2px dotted rgba(19, 48, 107, 0.45);
}
.faq-item::before, .cr-tracklist summary::before {
  content: counter(track, decimal-leading-zero);
  position: absolute; left: 0; top: 17px; width: 40px; height: 26px; display: grid; place-items: center;
  font: 700 13px var(--f-label); color: var(--butter); background: var(--navy); border-radius: 2px;
}
.faq-q { font: 700 19px/1.3 var(--f-body); color: var(--navy); margin-bottom: 6px; }
.faq-q .led { display: none; }
.faq-a { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.cr-tracklist details { padding: 0 0 0 58px; }
.cr-tracklist summary { list-style: none; cursor: pointer; padding: 16px 40px 16px 0; font: 700 19px/1.3 var(--f-body); color: var(--navy); position: static; }
.cr-tracklist summary::-webkit-details-marker { display: none; }
.cr-tracklist summary::before { top: 17px; }
.cr-tracklist summary::after { content: "+"; position: absolute; right: 4px; top: 12px; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--navy); border-radius: 50%; font: 700 18px/1 var(--f-label); background: var(--white); }
.cr-tracklist details[open] summary::after { content: "\2212"; background: var(--yellow); }
.cr-tracklist summary:hover { color: var(--orange-ink); }
.cr-tracklist details p { margin: 0 0 18px; color: var(--ink-soft); }

/* ---------- traits and tiers ----------------------------------------------- */
.traits-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; background: var(--white); border: var(--bd); box-shadow: var(--shadow); padding: 8px 22px; margin: 16px 0 24px; border-radius: 4px; }
.trait-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1.5px dotted rgba(19, 48, 107, .4); font-size: 16px; color: var(--navy); }
.trait-row > span:first-child { font: 700 12px var(--f-label); color: var(--butter); background: var(--navy); padding: 2px 6px; border-radius: 2px; }
.trait-tag, .tier-tag {
  margin-left: auto; font: 700 11px var(--f-label) !important; letter-spacing: 0.08em; padding: 2px 8px; border: 2px solid currentColor; border-radius: 999px; background: var(--white);
}
div.tier { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 2px dashed rgba(19, 48, 107, .3); }
div.tier .tier-tag { margin-left: 0; flex: none; margin-top: 3px; }
div.tier p { margin: 0; }

/* ---------- long reads: blog, legal, about --------------------------------- */
blockquote { margin: 20px 0; padding: 14px 18px; background: var(--white); border: var(--bd); border-left-width: 10px; border-left-color: var(--orange); font-style: normal; color: var(--navy); box-shadow: var(--shadow-sm); }
.callout { margin: 20px 0; padding: 16px 20px; background: var(--mint); border: var(--bd); border-radius: 4px; color: var(--navy); }
.callout p { color: var(--navy); margin: 0; }
.sources, .see-also, .toc, .contact-box, .where-to-go {
  margin: 32px 0; padding: 20px 24px; background: var(--white); border: var(--bd); border-radius: 4px; box-shadow: var(--shadow-sm);
}
.sources h3, .see-also h3, .toc .h, .contact-box h3, .contact-box .h, .where-to-go h2 {
  display: inline-block; margin: 0 0 12px; font: 700 13px var(--f-label); text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--navy); color: var(--butter); padding: 4px 10px; transform: rotate(-1deg);
}
.sources ol, .see-also ul, .toc ol, .where-to-go ul { margin: 0; }
.sources li, .see-also li, .toc li { font-size: 15px; }
.where-to-go ul { list-style: none; padding: 0; }
.where-to-go li { padding: 10px 0; border-bottom: 1.5px dotted rgba(19, 48, 107, .4); margin: 0; }
.where-to-go li:last-child { border-bottom: 0; }
.where-to-go li a { font-weight: 700; }
.where-to-go li .desc { display: block; font: 500 13px var(--f-label); color: var(--ink-mute); margin-top: 2px; }
.contact-box a.email { font: 500 16px var(--f-label); }
.cluster { margin: 18px 0 24px; display: grid; gap: 10px; }
.cluster a { display: block; padding: 12px 16px; background: var(--white); border: 2px solid var(--navy); border-radius: 4px; text-decoration: none; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.cluster a:hover { background: var(--yellow); }
.cluster a strong { color: var(--navy); }
.post-card { padding: 22px 24px; margin: 26px 0; transition: transform .15s; }
.post-card:nth-of-type(odd) { transform: rotate(-0.6deg); }
.post-card:nth-of-type(even) { transform: rotate(0.5deg); }
.post-card:hover { transform: translateY(-4px) rotate(0); }
.post-card h2 { margin: 6px 0 8px; font-size: 24px; }
.post-card h2 a { text-decoration: none; }
.post-card .post-summary { color: var(--ink-soft); margin-bottom: 10px; }
a.post-card { display: block; text-decoration: none; color: var(--navy); box-shadow: var(--shadow); }
a.post-card:hover { box-shadow: 9px 10px 0 var(--navy); color: var(--navy); }
a.post-card:hover h2 { color: var(--orange-ink); }
.post-card .read-more { font: 700 13px var(--f-label); text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange-ink); }
.post-card .post-meta { margin: 0; }
/* privacy page: plain list bullets as small record dots */
body > main:not(.cr-wrap) ul > li, body > article ul > li { list-style: none; position: relative; }
body > main:not(.cr-wrap) ul, body > article ul { padding-left: 22px; }
body > main:not(.cr-wrap) ul > li::before, body > article ul > li::before { content: ""; position: absolute; left: -20px; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); box-shadow: inset 0 0 0 3px var(--orange); }
body > main .where-to-go ul > li::before, body > main .results li::before, body > article .results li::before { content: none; }
body > main .where-to-go ul, body > main .results, body > article .results { padding-left: 0; }
.terminal { margin-top: 32px; padding: 18px 22px; background: var(--navy); color: var(--butter); font: 500 14px/1.7 var(--f-label); border-radius: 4px; box-shadow: 6px 6px 0 var(--orange); }
.terminal .ok { color: var(--mint) !important; }
.terminal .err { color: var(--orange) !important; }
.terminal code { background: transparent; border: 0; color: var(--yellow); }
.four-zero-four { font: 400 clamp(96px, 22vw, 200px)/0.9 var(--f-head); color: var(--orange); text-shadow: 0.04em 0.04em 0 var(--navy); letter-spacing: -0.02em; margin: 18px 0 0; }

/* ---------- tables, code (API docs, comparisons) --------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0 26px; border: var(--bd); border-radius: 4px; background: var(--white); box-shadow: var(--shadow-sm); }
.table-wrap table { margin: 0; border: 0; box-shadow: none; min-width: 560px; }
table, .compare-table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; background: var(--white); font-size: 15px; }
th, td, .compare-table th, .compare-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1.5px dotted rgba(19, 48, 107, .4); color: var(--ink-soft); }
th, .compare-table th { font: 700 12px var(--f-label); text-transform: uppercase; letter-spacing: 0.08em; color: var(--butter); background: var(--navy); border-bottom: 0; }
td:first-child { color: var(--navy); }
.compare-table { display: block; overflow-x: auto; border: var(--bd); }
pre {
  margin: 14px 0 22px; padding: 16px 18px; overflow-x: auto; white-space: pre;
  background: var(--navy); color: var(--butter); border-radius: 4px; box-shadow: 6px 6px 0 var(--mint);
  font: 500 13.5px/1.6 var(--f-mono);
}
pre code { background: transparent; border: 0; padding: 0; color: inherit; font-size: inherit; }
pre.bash::before, .prompt::before { content: "$ "; color: var(--yellow); }
pre.json .k { color: var(--mint); }
pre.json .s { color: var(--yellow); }
pre.json .n { color: var(--orange); }
.endpoint-card { padding: 20px 22px; }
.endpoint-card .method-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.endpoint-card .method-line .verb { font: 700 12px var(--f-label); padding: 3px 9px; border-radius: 999px; background: var(--orange); color: var(--navy-deep); border: 2px solid var(--navy); }
.endpoint-card .method-line .verb.get { background: var(--mint); }
.endpoint-card .method-line .path { font: 500 16px var(--f-mono); color: var(--navy); overflow-wrap: anywhere; }
.endpoint-card .summary { color: var(--ink-soft); }

/* ---------- forms ---------------------------------------------------------- */
input[type="text"], input[type="search"], input[type="email"], select, textarea {
  font: 500 16px var(--f-label); color: var(--navy); background: var(--white);
  border: var(--bd); border-radius: 999px; padding: 10px 16px; min-height: 46px; box-shadow: var(--shadow-sm);
}
select { border-radius: 8px; padding-right: 30px; }
input::placeholder { color: var(--ink-mute); }
input[type="checkbox"] { accent-color: var(--orange-shadow); width: 18px; height: 18px; }

/* ---------- catalogue: the crate index ------------------------------------- */
.window { background: var(--white); border: var(--bd); border-radius: 6px; box-shadow: var(--shadow); margin: 28px 0; overflow: hidden; }
.window-titlebar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: var(--navy); color: var(--butter); font: 700 12px var(--f-label); text-transform: uppercase; letter-spacing: 0.12em; }
.window-btns { display: none; }
.window-body { padding: 22px 24px; font: 500 15px/1.7 var(--f-label); color: var(--ink-soft); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px; border-bottom: var(--bd); background: var(--cream); }
.toolbar input[type="search"] { flex: 1 1 220px; min-width: 0; }
.toolbar select { min-height: 40px; font-size: 14px; box-shadow: none; border-width: 2px; }
.chip { font: 700 13px var(--f-label); padding: 7px 12px; border: 2px solid var(--navy); border-radius: 999px; background: var(--white); color: var(--navy); cursor: pointer; }
.chip.on { background: var(--navy); color: var(--butter); }
.count { font: 500 13px var(--f-label); color: var(--ink-mute); margin-left: auto; }
#rows .row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 10px 16px; border-bottom: 1.5px dotted rgba(19, 48, 107, .35);
}
#rows .row:hover { background: var(--cream); }
#rows .row .idx { display: block; width: 52px; height: 52px; border: 2px solid var(--navy); overflow: hidden; font-size: 0; position: relative; }
#rows .row .idx svg { width: 100%; height: 100%; display: block; }
#rows .row .t { font: 700 17px/1.2 var(--f-body); color: var(--navy); overflow-wrap: anywhere; }
#rows .row .a { font-size: 15px; color: var(--ink-soft); }
#rows .row .m { font: 500 12px var(--f-label); color: var(--ink-mute); margin-top: 2px; }
#rows .actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: 700 12px var(--f-label); color: var(--navy); background: var(--white); border: 2px solid var(--navy); border-radius: 999px; padding: 6px 11px; cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: 2px 2px 0 var(--navy); }
.btn:hover { background: var(--yellow); }
.btn.playing { background: var(--orange); }
.badge { font: 700 11px var(--f-label); border: 1.5px solid var(--navy); border-radius: 999px; padding: 3px 8px; white-space: nowrap; color: var(--navy); }
.badge.free { background: var(--mint); }
.badge.sa { background: var(--yellow); }
.more { display: block; margin: 16px auto; font: 700 14px var(--f-label); padding: 10px 18px; border: var(--bd); border-radius: 999px; background: var(--yellow); color: var(--navy); cursor: pointer; box-shadow: var(--shadow-sm); }
.foot-note { font: 500 13px/1.7 var(--f-label); color: var(--ink-soft); }

/* ---------- artists like… finder ------------------------------------------- */
.finder { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 14px; align-items: center; }
.finder input { flex: 1 1 260px; }
.tries { font: 500 13px var(--f-label); color: var(--ink-mute); margin-bottom: 22px; }
.tries button { background: var(--white); border: 2px solid var(--navy); color: var(--navy); font: inherit; padding: 4px 11px; border-radius: 999px; cursor: pointer; margin: 6px 6px 0 0; }
.tries button:hover { background: var(--yellow); }
#msg { font: 500 14px var(--f-label); color: var(--ink-soft); }
#msg.bad { color: var(--tier-red); }
.results { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
body > main .results li::before, body > article .results li::before { content: none; }
.results li { margin: 0; padding: 14px 16px; background: var(--white); border: var(--bd); border-radius: 4px; box-shadow: var(--shadow-sm); }
.results li:nth-child(3n+1) { transform: rotate(-0.8deg); }
.results li:nth-child(3n+2) { transform: rotate(0.6deg); }
.results li a { font: 700 17px var(--f-body); text-decoration: none; }
.results li span { display: block; font: 500 12px var(--f-label); color: var(--ink-mute); margin-top: 4px; }
.credit { font: 500 13px var(--f-label); color: var(--ink-mute); }

/* ---------- API key issued ------------------------------------------------- */
.pill { display: inline-flex; align-items: center; padding: 4px 12px; font: 700 12px var(--f-label); text-transform: uppercase; letter-spacing: 0.08em; border: 2px solid var(--navy); border-radius: 999px; background: var(--mint); color: var(--navy); }
.key-card { background: var(--white); border: var(--bd); border-radius: 6px; padding: 26px 28px; margin: 28px 0; box-shadow: var(--shadow); }
.key-card .head { font: 700 12px var(--f-label); letter-spacing: 0.12em; color: var(--ink-mute); text-transform: uppercase; margin-bottom: 14px; }
.key-card code { display: block; font: 500 16px var(--f-mono); padding: 14px 16px; background: var(--cream); border: 2px solid var(--navy); color: var(--navy); user-select: all; word-break: break-all; border-radius: 4px; margin-bottom: 16px; }
.key-card .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.warn-banner { background: var(--yellow); border: var(--bd); border-left-width: 10px; padding: 16px 18px; margin: 22px 0 0; border-radius: 4px; }
.warn-banner .h { font: 700 12px var(--f-label); letter-spacing: 0.12em; color: var(--navy); text-transform: uppercase; margin-bottom: 6px; }
.warn-banner p { color: var(--navy); margin: 0; }
.meta-row { display: flex; gap: 20px; flex-wrap: wrap; margin: 18px 0; font: 500 13px var(--f-label); color: var(--ink-mute); }
.pending, .error-state { padding: 44px 24px; text-align: center; }
.pending .spinner, .cr-spinner { display: inline-block; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 18px; background: repeating-radial-gradient(circle, var(--navy-deep) 0 2px, var(--groove) 2px 4px); position: relative; animation: cr-spin 1.2s linear infinite; }
.pending .spinner::after, .cr-spinner::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: var(--yellow); }
.next-steps { margin: 36px 0; }
.next-steps ol { padding-left: 22px; }

/* ---------- motion --------------------------------------------------------- */
@keyframes cr-spin { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- small screens -------------------------------------------------- */
@media (max-width: 760px) {
  html body { font-size: 16px; }
  body > main:not(.cr-wrap), body > article { padding: 28px 16px 56px; }
  .cr-wrap { padding: 0 16px; }
  .cr-top-in { padding: 16px; gap: 10px; }
  .cr-logo { font-size: 22px; }
  .cr-logo i { width: 24px; height: 24px; }
  .cr-logo i::after { inset: 8px; }
  .cr-nav { gap: 14px; }
  .cr-nav .hide-sm { display: none; }
  .cr-foot-in { grid-template-columns: 1fr; padding: 28px 16px 36px; }
  h2 { margin-top: 40px; }
  .traits-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; }
  .step-num { width: 44px; height: 44px; font-size: 14px; }
  .quick-cta, .cta, .cta-box { padding: 20px 18px; }
  .quick-cta .price { width: 76px; height: 76px; font-size: 18px; }
  #rows .row { grid-template-columns: 44px minmax(0, 1fr); padding: 10px 12px; }
  #rows .row .idx { width: 44px; height: 44px; }
  #rows .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .count { margin-left: 0; width: 100%; }
  .faq-item, .cr-tracklist details { padding-left: 50px; }
  .faq-item::before, .cr-tracklist summary::before { width: 36px; }
  .case-card, .promise-card, .option-card, .license-card, .trait-card, .endpoint-card, .post-card { padding: 20px 18px 18px; }
  .key-card { padding: 20px 18px; }
}

/* ---------- high contrast (kept from the old toggle) ----------------------- */
body.hc { background: #fff !important; background-image: none !important; }
body.hc, body.hc p, body.hc li { color: #000; }

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

/* =========================================================================
   The matcher: turntable, now-spinning strip, the crate of sleeves
   ========================================================================= */
.cr-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding: 26px 0 30px; }
.cr-hero h1 { margin: 18px 0 20px; }
.cr-hero .eb-lede, .cr-hero .lede { max-width: 540px; margin: 0; }
.cr-samples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 26px; font: 500 13px var(--f-label); color: var(--ink-soft); }
.cr-samples > span { width: 100%; margin-bottom: 2px; }
.cr-samples button {
  font: 700 14px/1.2 var(--f-body); color: var(--navy); background: var(--white);
  border: 2px solid var(--navy); border-radius: 999px; padding: 7px 13px 7px 30px; cursor: pointer; position: relative;
  box-shadow: 2px 2px 0 var(--navy); text-align: left;
}
.cr-samples button::before { content: ""; position: absolute; left: 9px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: radial-gradient(circle, var(--yellow) 0 2px, var(--navy) 2.5px); }
.cr-samples button:hover { background: var(--yellow); }
.cr-samples button:active { transform: translate(2px, 2px); box-shadow: none; }

/* the turntable: everything is placed in one 616 x 516 coordinate system so
   the arm, platter and record scale together at any width */
.deck { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 616 / 516; container-type: inline-size; transform: rotate(-2.5deg); }
.deck-base, .deck-arm { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.deck-arm { pointer-events: none; z-index: 3; }
.deck-record {
  position: absolute; z-index: 2; cursor: pointer;
  left: 8.117%; top: 9.690%; width: 64.935%; height: 77.519%;
  border-radius: 50%; display: grid; place-items: center;
}
.deck-vinyl {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    conic-gradient(from 20deg, transparent 0 8%, rgba(255, 255, 255, .10) 12%, transparent 17% 52%, rgba(255, 255, 255, .07) 57%, transparent 62%),
    repeating-radial-gradient(circle, var(--navy-deep) 0 2px, var(--groove) 2px 4px);
  box-shadow: inset 0 0 0 3px var(--navy-deep);
  animation: cr-spin 9s linear infinite;
}
.deck-vinyl::after { content: ""; position: absolute; width: 4%; height: 4%; left: 30%; top: 22%; border-radius: 50%; background: var(--orange); }
.deck.busy .deck-vinyl { animation-duration: 1.4s; }
.deck.over .deck-record { box-shadow: 0 0 0 6px var(--yellow), 0 0 0 9px var(--navy); }
.deck-label {
  position: relative; z-index: 1; width: 44%; height: 44%; border-radius: 50%;
  background: var(--yellow); border: 3px dashed var(--navy);
  display: grid; place-items: center; text-align: center; padding: 6%;
  font: 500 clamp(9px, 2.1cqw, 13px)/1.3 var(--f-label); color: var(--navy);
  transition: transform .15s;
}
.deck-label b { display: block; font: 400 clamp(14px, 3.9cqw, 23px)/1.02 var(--f-head); letter-spacing: -0.02em; margin-bottom: 4px; }
.deck-record:hover .deck-label { transform: scale(1.04); }
.deck-choose {
  position: absolute; z-index: 4; left: -2%; bottom: -3%;
  flex-direction: column; align-items: flex-start; gap: 2px;
  transform: rotate(-3deg); padding: 12px 22px 11px; min-height: 0;
  font-size: clamp(16px, 3.6cqw, 21px);
  background: var(--yellow); box-shadow: 6px 7px 0 var(--navy);
}
.deck-choose small { font: 700 12px var(--f-label); letter-spacing: 0; }
.deck-choose:hover { transform: rotate(-3deg) translate(-2px, -2px); }
.deck-choose:active { transform: rotate(-3deg) translate(3px, 4px); }
#file:focus ~ .deck .deck-choose, .deck-choose:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; box-shadow: var(--shadow-btn), 0 0 0 10px var(--yellow); }
@container (max-width: 420px) { .deck-label > span > span { display: none; } .deck-label b { margin: 0; } }

/* now spinning: the file on the deck and its waveform */
.cr-now { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 14px; }
.cr-now-head { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.cr-now-head .cr-tape { margin: 0; flex: none; }
.bay-file { display: flex; flex-direction: column; min-width: 0; flex: 1 1 260px; }
.bay-file b { font: 700 19px/1.25 var(--f-body); overflow-wrap: anywhere; }
.bay-file span { font: 500 13px var(--f-label); color: var(--ink-mute); }
.wave { height: 58px; display: flex; align-items: center; gap: 2px; padding: 0 10px; background: var(--navy); border-radius: 4px; overflow: hidden; min-width: 0; }
.wave i { flex: 1; min-width: 2px; background: var(--yellow); border-radius: 1px; height: 30%; transition: height .4s; }
.wave.idle i { background: var(--groove); box-shadow: inset 0 0 0 1px #2a4580; }
.wave.busy i { animation: cr-pulse 1.1s ease-in-out infinite; }
@keyframes cr-pulse { 50% { opacity: .35; } }
.status { font: 500 14px var(--f-label); color: var(--ink-soft); min-height: 22px; }
.status.bad { color: var(--tier-red); }
.status:empty { display: none; }

/* the crate of sleeves */
.cr-results { padding: 30px 0 4px; }
.cr-results h2 { margin: 6px 0 6px; }
.cr-results-sub { font-size: 16px; margin: 0; }
.crate { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 34px 24px; padding: 30px 8px 10px; }
.sleeve { position: relative; transform: rotate(var(--tilt, 0deg)); transition: transform .2s; min-width: 0; filter: drop-shadow(7px 7px 0 var(--navy)); }
.sleeve:hover, .sleeve:focus-within { transform: translateY(-12px) rotate(0deg); z-index: 2; }
.sleeve-art { position: relative; aspect-ratio: 1 / 1; border: var(--bd); overflow: hidden; background: var(--navy); }
.sleeve-art > svg { display: block; width: 100%; height: 100%; }
.sleeve > .sticker { top: 12px; right: -10px; box-shadow: none; }
.sleeve-play {
  position: absolute; left: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  background: var(--navy); color: var(--butter); border: 3px solid var(--butter);
  box-shadow: 3px 3px 0 var(--navy-deep);
}
.sleeve-art.dark .sleeve-play { background: var(--yellow); color: var(--navy); border-color: var(--navy); }
.sleeve-play:hover { transform: scale(1.06); }
.sleeve.playing .sleeve-play { background: var(--orange); color: var(--navy-deep); border-color: var(--navy); }
.sleeve.playing .sleeve-art { box-shadow: inset 0 0 0 4px var(--orange); }
.sleeve-meta { background: var(--white); border: var(--bd); border-top: 0; padding: 10px 12px 12px; }
.sleeve-meta h3 { margin: 0 0 2px; font: 700 17px/1.2 var(--f-body); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.sleeve-sub { display: block; font: 500 12px/1.45 var(--f-label); color: var(--ink-mute); margin-bottom: 8px; overflow-wrap: anywhere; }
.sleeve-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sleeve-actions .mini { padding: 5px 9px; font-size: 11.5px; }
.sleeve-on { display: block; font: 500 12px var(--f-label); color: var(--tier-green); margin: -4px 0 8px; }
.cr-more { margin: 8px auto 0; display: flex; }
.share { display: flex; gap: 10px 12px; flex-wrap: wrap; align-items: center; margin: 26px 0 0; padding: 14px 18px; background: var(--yellow); border: var(--bd); border-radius: 4px; box-shadow: var(--shadow-sm); font: 500 14px var(--f-label); color: var(--navy); }
.share a { font-weight: 500; overflow-wrap: anywhere; }

/* cue sheet + swap check */
.cr-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 30px; }
.tool { background: var(--white); border: var(--bd); box-shadow: var(--shadow-sm); border-radius: 4px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.tool h3 { margin: 0; font: 700 13px var(--f-label); text-transform: uppercase; letter-spacing: 0.12em; align-self: flex-start; background: var(--navy); color: var(--butter); padding: 4px 10px; transform: rotate(-1deg); }
.tool .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tool .times { font: 500 13px/1.75 var(--f-label); color: var(--ink-soft); word-break: break-word; }
.tool .verdict { font: 700 18px var(--f-body); color: var(--navy); }

/* =========================================================================
   Homepage sections
   ========================================================================= */
/* back of the sleeve: why everysong */
.cr-back { margin: 64px 0 0; background: var(--navy); color: var(--butter); border-radius: 6px; padding: 30px 32px 34px; box-shadow: 8px 8px 0 var(--orange); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; }
.cr-back > div { border-top: 2px dashed rgba(255, 243, 196, .45); padding-top: 16px; }
.cr-back .cr-side { display: inline-block; font: 700 13px var(--f-label); color: var(--navy-deep); background: var(--yellow); padding: 2px 8px; border-radius: 2px; margin-bottom: 10px; }
.cr-back h2 { color: var(--butter); font-size: 23px; margin: 0 0 8px; }
.cr-back p { color: #f3e8bf; margin: 0; }

/* sticker sheet: Vera's numbers */
.cr-vera { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; margin: 72px 0 0; }
.cr-vera p { margin: 14px 0 20px; }
.vera-stats {
  margin: 0; padding: 30px 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px;
  background: var(--white); border: 3px dashed var(--navy); border-radius: 14px; position: relative;
}
.vera-stats::before { content: "Sticker sheet · peel and keep"; position: absolute; top: -13px; left: 22px; font: 700 11px var(--f-label); letter-spacing: .12em; text-transform: uppercase; background: var(--butter); padding: 3px 8px; border: 2px solid var(--navy); color: var(--navy); }
.vera-stats > div { position: relative; display: grid; align-content: center; justify-items: center; text-align: center; min-height: 168px; padding: 18px; filter: drop-shadow(3px 3px 0 var(--navy)); }
.vera-stats > div::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 3px solid var(--navy); }
.vera-stats > div:nth-child(1) { transform: rotate(-4deg); }
.vera-stats > div:nth-child(1)::before { background: var(--yellow); border-radius: 50%; }
.vera-stats > div:nth-child(2) { transform: rotate(3deg); }
.vera-stats > div:nth-child(2)::before { background: var(--white); border-radius: 6px; }
.vera-stats > div:nth-child(3) { transform: rotate(2deg); }
.vera-stats > div:nth-child(3)::before { background: var(--orange); border: 0; clip-path: polygon(50% 0, 61% 9%, 75% 4%, 79% 18%, 94% 21%, 90% 35%, 100% 47%, 90% 58%, 95% 73%, 80% 77%, 76% 92%, 62% 88%, 50% 100%, 38% 88%, 24% 92%, 20% 77%, 5% 73%, 10% 58%, 0 47%, 10% 35%, 6% 21%, 21% 18%, 25% 4%, 39% 9%); }
.vera-stats > div:nth-child(4) { transform: rotate(-2deg); }
.vera-stats > div:nth-child(4)::before { background: var(--mint); border-radius: 26px; }
.vera-stats dt { font: 400 clamp(34px, 4vw, 44px)/1 var(--f-head); letter-spacing: -0.01em; color: var(--navy); }
.vera-stats dd { margin: 6px 0 0; font: 500 12.5px/1.35 var(--f-label); color: var(--navy); max-width: 170px; }
.vera-stats > div:nth-child(3) dd { max-width: 130px; }

/* crate dividers: the edit you're working on */
.cr-for { margin: 76px 0 0; }
.cr-dividers { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 46px 18px; }
.cr-dividers li { margin: 0; }
.cr-dividers a {
  display: block; position: relative; height: 100%; padding: 16px 16px 18px; background: var(--white);
  border: var(--bd); border-radius: 0 6px 6px 6px; text-decoration: none; color: var(--ink-soft);
  box-shadow: var(--shadow-sm); transition: transform .15s;
}
.cr-dividers a b {
  position: absolute; left: -3px; bottom: 100%; padding: 6px 12px 4px; max-width: calc(100% + 3px);
  font: 400 16px/1.2 var(--f-head); color: var(--navy); background: var(--yellow);
  border: var(--bd); border-bottom: 0; border-radius: 8px 8px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cr-dividers li:nth-child(4n+2) a b { background: var(--mint); left: 18%; }
.cr-dividers li:nth-child(4n+3) a b { background: var(--orange); left: 8%; }
.cr-dividers li:nth-child(4n) a b { background: var(--butter); left: 26%; }
.cr-dividers a span { font-size: 15px; }
.cr-dividers a:hover { transform: translate(-2px, -5px); background: var(--cream); box-shadow: 7px 9px 0 var(--navy); }

/* tracklist FAQ on the homepage */
.cr-faq { margin: 72px 0 0; max-width: 860px; }
.cr-faq .cr-tracklist { margin-top: 18px; background: var(--white); border: var(--bd); box-shadow: var(--shadow); border-radius: 4px; padding: 6px 22px 10px; }
.cr-faq .cr-tracklist details:last-child { border-bottom: 0; }

@media (max-width: 900px) {
  .cr-hero { grid-template-columns: 1fr; gap: 34px; }
  .deck { max-width: 520px; }
  .cr-vera { grid-template-columns: 1fr; }
  .cr-dividers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cr-back { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
  .crate { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; padding: 22px 2px 6px; }
  .sleeve-meta { padding: 8px 9px 10px; }
  .sleeve-meta h3 { font-size: 15px; }
  .sleeve-play { width: 42px; height: 42px; left: 8px; bottom: 8px; }
  .sleeve > .sticker { right: -6px; padding: 4px 6px 5px; }
  .sleeve > .sticker b { font-size: 18px; }
  .sleeve-actions .mini { width: 100%; justify-content: center; }
  .vera-stats { padding: 26px 14px; gap: 20px 12px; }
  .vera-stats > div { min-height: 140px; padding: 14px 10px; }
  .vera-stats dt { font-size: 30px; }
  .vera-stats dd { font-size: 11.5px; }
  .cr-dividers { gap: 44px 12px; }
  .cr-dividers a b { font-size: 14px; padding: 5px 9px 3px; }
  .cr-dividers li:nth-child(n) a b { left: -3px; }
  .cr-faq .cr-tracklist { padding: 4px 14px 8px; }
  .cr-tracklist summary { font-size: 17px; }
}

/* =========================================================================
   The readout app (/app, /f/<slug> share links, sign-in, history)
   ========================================================================= */
body.cr-app > main { max-width: 1240px; margin: 0 auto; padding: 34px 32px 80px; }
body.cr-app h1 { font-size: clamp(40px, 6.4vw, 70px); }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink-soft); max-width: 640px; margin: 0 0 28px; }
.cr-nav .signout, .cr-nav #hc-toggle { cursor: pointer; }
#email-badge { font: 500 12px var(--f-label); color: var(--ink-mute); }
#usage-badge { font: 500 12px var(--f-label); }

/* idle: drop a track onto the sleeve */
.drop {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 32px; align-items: center;
  padding: 34px 36px; background: var(--white); border: 3px dashed var(--navy); border-radius: 10px; box-shadow: var(--shadow);
}
.drop::before {
  content: ""; grid-row: 1 / span 4; width: 168px; height: 168px; border-radius: 50%;
  background: radial-gradient(circle, var(--yellow) 0 24%, var(--navy) 24.5% 26%, transparent 26.5%),
              repeating-radial-gradient(circle, var(--navy-deep) 0 2px, var(--groove) 2px 4px);
  box-shadow: 6px 6px 0 var(--orange); animation: cr-spin 9s linear infinite;
}
.drop.drag { background: var(--cream); border-style: solid; box-shadow: 0 0 0 6px var(--yellow), var(--shadow); }
.drop h2 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); }
.drop p { margin: 0; font: 500 14px var(--f-label); color: var(--ink-mute); }
.drop .pick { justify-self: start; }
.drop .hint { font: 500 13px var(--f-label); color: var(--ink-soft); }
.drop .pick:focus-within { outline: 3px solid var(--navy); outline-offset: 4px; }

/* analysing */
.analysing { background: var(--white); border: var(--bd); border-radius: 6px; box-shadow: var(--shadow); padding: 26px 28px; }
.analysing .label { display: inline-block; font: 700 13px var(--f-label); letter-spacing: .12em; background: var(--orange); color: var(--navy-deep); padding: 4px 10px; margin-bottom: 12px; }
.analysing .title { font: 700 26px/1.2 var(--f-body); color: var(--navy); margin-bottom: 18px; overflow-wrap: anywhere; }
.waveform { display: flex; gap: 3px; align-items: center; height: 80px; background: var(--navy); border-radius: 4px; padding: 0 10px; }
.waveform .bar { flex: 1; background: var(--yellow); animation: cr-bar .9s ease-in-out infinite; }
@keyframes cr-bar { 0%, 100% { height: 20%; } 50% { height: 90%; } }
.progress-line { margin-top: 16px; height: 6px; background: var(--cream); border: 2px solid var(--navy); position: relative; overflow: hidden; border-radius: 999px; }
.progress-line::after { content: ""; position: absolute; left: -30%; top: 0; height: 100%; width: 30%; background: var(--orange); animation: cr-scan 1.4s linear infinite; }
@keyframes cr-scan { to { left: 100%; } }
.progress-status { margin-top: 10px; font: 500 12px var(--f-label); color: var(--ink-mute); display: flex; justify-content: space-between; gap: 8px; }
.error { margin-top: 16px; padding: 14px 18px; border: var(--bd); border-left-width: 10px; border-left-color: var(--tier-red); background: var(--white); color: var(--tier-red); font: 500 14px var(--f-label); }

/* warming: the boot log as a cue card */
.boot-window { margin: 26px 0 18px; background: var(--white); border: var(--bd); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.boot-titlebar { display: flex; justify-content: space-between; padding: 9px 16px; background: var(--navy); color: var(--butter); font: 700 12px var(--f-label); letter-spacing: .12em; text-transform: uppercase; }
.boot-clock { color: var(--yellow); }
.boot-body { padding: 18px 20px 14px; }
.boot-log { margin: 0 0 14px; min-height: 168px; white-space: pre-wrap; font: 500 13px/1.7 var(--f-label); color: var(--ink-soft); background: transparent; box-shadow: none; padding: 0; overflow: visible; }
.boot-log .ok { color: var(--orange-ink); }
.boot-log .done { color: var(--tier-green); font-weight: 700; }
.boot-log .ts { color: var(--ink-mute); }
.boot-log .caret { animation: cr-pulse .9s steps(1) infinite; }
.boot-bars { display: flex; gap: 4px; align-items: flex-end; height: 36px; }
.boot-bars span { flex: 1; min-height: 4px; background: var(--navy); animation: cr-bar 1.2s ease-in-out infinite; }
.boot-bars span:nth-child(even) { background: var(--orange); animation-delay: .15s; }
.boot-bars span:nth-child(3n) { animation-delay: .3s; }
.boot-window.ready .boot-bars span { animation: none; height: 100%; background: var(--tier-green); }
.boot-footer { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: var(--bd); font: 700 12px var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.led-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--navy); flex: none; animation: cr-pulse 1.4s ease-in-out infinite; }
.boot-window.ready .led-dot { background: var(--tier-green); animation: none; }
.boot-note { font: 500 13px/1.6 var(--f-label); color: var(--ink-soft); }

/* the readout */
.result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 32px; align-items: start; }
.panel { background: var(--white); border: var(--bd); border-radius: 6px; box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.panel-titlebar { display: flex; justify-content: space-between; gap: 10px; margin: -22px -22px 0; padding: 9px 16px; background: var(--navy); color: var(--butter); font: 700 12px var(--f-label); letter-spacing: .1em; text-transform: uppercase; }
.panel-titlebar .mono { color: var(--yellow) !important; }
.panel-body { padding: 0; }
.panel h3 { font: 400 22px/1.2 var(--f-head); margin: 0 0 12px; }
.file-meta { margin: 0 0 18px; padding: 14px 16px; background: var(--yellow); border: 2px solid var(--navy); border-radius: 4px; }
.file-meta .fname { font: 700 20px/1.2 var(--f-body); color: var(--navy); word-break: break-word; }
.file-meta .meta { font: 500 12px var(--f-label); color: var(--navy); margin-top: 4px; }
.traits-list { display: flex; flex-direction: column; }
.trait { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1.5px dotted rgba(19, 48, 107, .4); font: 500 13px var(--f-label); }
.trait:last-child { border-bottom: 0; }
.trait .name { color: var(--navy); }
.trait .val { color: var(--ink-soft); }
.trait .tier { font: 700 11px var(--f-label); letter-spacing: .08em; padding: 2px 8px; border: 2px solid currentColor; border-radius: 999px; }
.trait .tier.green { color: var(--tier-green); }
.trait .tier.amber { color: var(--tier-amber); }
.cr-summary { margin-top: 24px; padding: 16px 18px; background: var(--cream); border: 2px solid var(--navy); border-radius: 4px; font-size: 16px; line-height: 1.6; color: var(--navy); }
.cr-summary-h { display: inline-block; font: 700 12px var(--f-label); letter-spacing: .12em; text-transform: uppercase; background: var(--navy); color: var(--butter); padding: 3px 8px; margin-bottom: 10px; }
.cr-key { margin-top: 16px; padding: 14px 16px; border: 2px dashed var(--navy); border-radius: 4px; font-size: 15px; line-height: 1.8; color: var(--ink-soft); }
.cr-key .tier { display: inline-block; font: 700 11px var(--f-label); padding: 2px 8px; border: 2px solid currentColor; border-radius: 999px; margin-right: 6px; }
.cr-filter { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; background: var(--cream); border: 2px solid var(--navy); border-radius: 4px; font: 500 13px var(--f-label); color: var(--navy); }
.cr-filter label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cr-filter #filter-info { margin-left: auto; color: var(--ink-mute); }
.cr-map { margin-bottom: 8px; border: 2px solid var(--navy); border-radius: 4px; background: var(--white); position: relative; }
.cr-map-head { position: absolute; top: 8px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; font: 700 11px var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); pointer-events: none; z-index: 2; }
.panel .crate { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); padding: 26px 4px 6px; }
.verify { margin-top: 18px; padding: 14px 16px; border: 2px dashed var(--navy); border-radius: 4px; font-size: 15px; color: var(--ink-soft); }
.verify strong { color: var(--navy); }
.actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.perma { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; background: var(--yellow); border: var(--bd); border-radius: 4px; box-shadow: var(--shadow-sm); font: 500 13px var(--f-label); color: var(--navy); max-width: 100%; overflow-wrap: anywhere; }
.perma button { font: 700 12px var(--f-label); padding: 4px 10px; border: 2px solid var(--navy); border-radius: 999px; background: var(--white); cursor: pointer; color: var(--navy); }
button.ghost, a.ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; background: var(--white); border: var(--bd); border-radius: 999px; box-shadow: var(--shadow-sm); font: 400 15px var(--f-head); color: var(--navy); cursor: pointer; text-decoration: none; }
button.ghost:hover, a.ghost:hover { background: var(--yellow); }
.cr-cta-card { margin-top: 32px; padding: 22px 24px; background: var(--white); border: var(--bd); border-radius: 6px; box-shadow: var(--shadow); }
.cr-cta-card p { margin: 6px 0 14px; }
.cr-signin { display: flex; max-width: 520px; gap: 10px; flex-wrap: wrap; }
.cr-signin input { flex: 1 1 240px; }
.readout-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 16px; border-bottom: 1.5px dotted rgba(19, 48, 107, .4); text-decoration: none; color: var(--navy); }
.readout-row:hover { background: var(--cream); }
.readout-row .rr-id { font: 500 12px var(--f-label); color: var(--ink-mute); }
.readout-row .rr-name { font: 700 19px/1.25 var(--f-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.readout-row .rr-match, .readout-row .rr-stats { font: 500 12px var(--f-label); color: var(--ink-soft); }
.readout-row .rr-stats { align-self: center; white-space: nowrap; }
.cr-note { padding: 18px; font: 500 14px var(--f-label); color: var(--ink-mute); }

@media (max-width: 900px) {
  .result { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body.cr-app > main { padding: 24px 16px 56px; }
  .drop { grid-template-columns: 1fr; padding: 24px 18px; justify-items: start; }
  .drop::before { grid-row: auto; width: 110px; height: 110px; }
  .panel { padding: 16px; }
  .panel-titlebar { margin: -16px -16px 0; }
  .trait { font-size: 12px; gap: 8px; }
  .panel .crate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysing { padding: 20px 16px; }
}

/* header on narrow phones: logo plus one button, no wrapping */
.cr-top-in { flex-wrap: nowrap; }
.cr-nav { flex-wrap: nowrap; }
@media (max-width: 420px) {
  .cr-nav .hide-xs, .cr-nav #email-badge { display: none; }
  .cr-nav .cr-btn.sm { padding: 6px 13px; font-size: 14px; }
}
[id] { scroll-margin-top: 24px; }
