/* Loop Vault: light sound archive. Cool paper, ink, cobalt, catalogue numbers in mono, hairline grid. */
:root {
  color-scheme: light;
  --bg: #f3f4f6; --surface: #ffffff; --surface-2: #eceef2;
  --line: #d9dce3; --line-soft: #e6e8ed; --line-strong: #0e1116;
  --text: #0e1116; --muted: #4f5664; --dim: #7b8291;
  --accent: #2f4bff; --accent-dk: #1f37d9; --accent-hover: #4a62ff; --on-accent: #ffffff;
  --link: #1f37d9; --ok: #0b7a4b; --warn: #a15c00; --err: #c3243a;
  --header-bg: rgba(243,244,246,.92); --glow: rgba(47,75,255,.25);
  --bg-glow-1: rgba(47,75,255,.05); --bg-glow-2: rgba(14,17,22,.03);
  --notice-ok-fg: #064d2f; --notice-err-fg: #7a1424; --notice-info-fg: #16237a;
  --notice-warn-fg: #7a4500;   /* light theme: the base cream is invisible on white */
  --danger: #c3243a; --danger-hover: #d93a50;
  --radius: 4px; --max: 1240px;
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
body { background-image: none; }
h1, h2, h3, .brand, .price { font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em; }
.site-header { border-bottom: 1px solid var(--line-strong); }
.brand { font-size: 20px; }
.brand::before { width: 14px; height: 14px; border-radius: 2px; background: var(--accent); box-shadow: none; }
.nav a { color: var(--text); }
.cart-pill { border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); }
.hero { max-width: 64ch; padding-block: 64px 26px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1; letter-spacing: -.04em; }
.hero .eyebrow { margin: 0 0 18px; color: var(--accent-dk); font: 500 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; display: block; }
.hero p { color: var(--muted); font-size: 17px; }
/* Grid: catalogue cards with hairlines */
.grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.card { background: var(--surface); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; counter-increment: cat; }
.card:hover { transform: none; background: #fafbff; }
.card .cover { aspect-ratio: 1 / 1; border-radius: 0; }
.card .body { padding: 14px 16px 18px; gap: 8px; position: relative; }
.card .body::before { content: "LV-" counter(cat, decimal-leading-zero); font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--dim); }
#pack-grid { counter-reset: cat; }
.card h3 { font-size: 17px; }
.card .desc { font-size: 13.5px; color: var(--muted); }
.price { font-size: 19px; }
.btn { border-radius: 2px; font-weight: 600; font-family: var(--font); }
.btn.sm { padding: 8px 14px; }
.btn.ghost { border: 1px solid var(--line-strong); background: var(--surface); }
.panel { border: 1px solid var(--line); border-radius: 4px; box-shadow: none; }
.site-footer { border-top: 1px solid var(--line-strong); }
/* Browse bar */
.browse { display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; }
.browse .search { position: relative; max-width: 560px; }
.browse .search input { width: 100%; padding: 13px 16px 13px 44px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); color: var(--text); font: 500 15px/1.2 var(--font); }
.browse .search input:focus { outline: none; box-shadow: 0 0 0 3px var(--glow); }
.browse .search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 8px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--text); font: 600 13.5px/1 var(--font); cursor: pointer; }
.pill:hover { border-color: var(--line-strong); }
.pill[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill .n { font-family: var(--mono); font-weight: 500; opacity: .6; margin-left: 6px; }
.browse .count { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.genre-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.genre-tag { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dk); background: #eef0ff; padding: 5px 8px; border-radius: 2px; }
.card[hidden] { display: none; }
.no-match { padding: 40px 0 70px; color: var(--muted); }
.prod-split .cover { aspect-ratio: 1 / 1; }
@media (max-width: 560px) {
  .pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .pill { white-space: nowrap; }
  .grid { grid-template-columns: 1fr 1fr; }
}

/* Desktop: 3 per row so 6 packs fill two clean rows */
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
