/* Layout and components. Every colour, typeface and shape value comes from theme.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- top band ---------- */
.top { background: var(--moss); color: var(--card); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
.brand { font: 400 26px/1 var(--display); text-decoration: none; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.brand svg { width: 30px; height: 30px; flex: none; }
.top nav { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 15px; }
.top nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.top nav a:hover { border-bottom-color: var(--butter); }

/* ---------- hero ---------- */
.hero { background: var(--moss); color: var(--card); padding: clamp(28px, 6vw, 72px) 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: end; }
.hero h1 { font: 400 clamp(38px, 6.4vw, 84px)/1.02 var(--display); margin: 0 0 20px; text-wrap: balance; }
.hero p { font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; margin: 0 0 28px; color: var(--moss-wash); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: clamp(28px, 5vw, 64px); }
.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: var(--radius-pill); border: 2px solid transparent; cursor: pointer; }
.btn-main { background: var(--butter); color: var(--moss-deep); }
.btn-main:hover { background: var(--card); }
.btn-quiet { border-color: var(--moss-wash); color: var(--card); }
.btn-quiet:hover { background: var(--moss-deep); }
.shelf { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; padding: 0 8px; min-height: 220px; }
.shelf::after { content: ""; position: absolute; left: -40px; right: -40px; bottom: 0; height: var(--shelf); background: var(--copper); }
.hero-card { display: block; width: clamp(120px, 17vw, 230px); background: var(--card); padding: 8px 8px 22px; border-radius: 3px; box-shadow: 0 14px 0 -8px var(--moss-deep), 0 2px 0 var(--moss-deep); margin: 0 -10px var(--shelf); position: relative; transition: transform .18s ease; }
.hero-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.hero-card-1 { transform: rotate(var(--tilt-1)); z-index: 1; }
.hero-card-2 { transform: rotate(var(--tilt-2)) translateY(-6px); z-index: 2; }
.hero-card-3 { transform: rotate(var(--tilt-3)); z-index: 1; }
.hero-card:hover, .hero-card:focus-visible { transform: rotate(0) translateY(-10px); z-index: 3; }

/* ---------- the counter: search and filters ---------- */
.counter { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 2px solid var(--line); padding: 14px 0 12px; }
.counter .wrap { display: grid; gap: 10px; }
.counter-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { flex: 1 1 220px; min-width: 0; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-pill); padding: 10px 18px; }
.search::placeholder { color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; }
.chip { flex: none; background: transparent; border: 2px solid var(--line); border-radius: var(--radius-pill); padding: 7px 14px; cursor: pointer; font-weight: 500; font-size: 15px; white-space: nowrap; }
.chip small { color: var(--ink-soft); font-size: 13px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--moss); }
.chip[aria-pressed="true"] { background: var(--moss); border-color: var(--moss); color: var(--card); }
.chip[aria-pressed="true"] small { color: var(--moss-wash); }
.shop-chips .chip[aria-pressed="true"] { background: var(--copper); border-color: var(--copper); }
.shop-chips .chip[aria-pressed="true"] small { color: var(--card); }

/* ---------- the shelves ---------- */
.results { padding: 26px 0 64px; }
.tally { margin: 0 0 18px; color: var(--ink-soft); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 26px 20px; list-style: none; margin: 0; padding: 0; }
.item { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius-card); border: 1px solid var(--line); overflow: hidden; }
.item-pic { position: relative; display: block; aspect-ratio: 1; background: var(--moss-wash); }
.item-pic img { width: 100%; height: 100%; object-fit: cover; }
.item-type { display: flex; align-items: center; justify-content: center; text-align: center; height: 100%; padding: 22px; background: var(--moss); color: var(--card); font: 400 22px/1.15 var(--display); text-wrap: balance; }
/* the shop ticket: a price-tag shape saying where it is sold */
.ticket { position: absolute; left: -2px; bottom: 12px; background: var(--butter); color: var(--moss-deep); font-weight: 600; font-size: 13px; padding: 5px 16px 5px 12px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.item-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; flex: 1; }
.item h3 { font: 600 16px/1.3 var(--body); margin: 0; }
.item-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--ink-soft); font-size: 14px; }
.price { font: 400 20px/1 var(--display); color: var(--ink); }
.buy { margin-top: auto; text-align: center; text-decoration: none; font-weight: 600; background: var(--copper); color: var(--card); border-radius: var(--radius-pill); padding: 10px 14px; }
.buy:hover { background: var(--copper-deep); }
.more { display: block; margin: 34px auto 0; background: transparent; border: 2px solid var(--moss); color: var(--moss); }
.more:hover { background: var(--moss); color: var(--card); }
.empty { background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius-card); padding: 28px; max-width: 46em; }
.empty button { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: var(--copper-deep); font-weight: 600; }

/* ---------- foot ---------- */
.foot { background: var(--moss-deep); color: var(--moss-wash); padding: 44px 0 36px; font-size: 15px; }
.foot .wrap { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.foot h2 { font: 400 22px/1.2 var(--display); color: var(--card); margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--card); }
.foot .small { font-size: 13px; line-height: 1.5; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-actions { padding-bottom: 8px; }
  .shelf { min-height: 0; padding-top: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .item-body { padding: 10px 10px 12px; }
  .item h3 { font-size: 14px; }
  .price { font-size: 17px; }
  .buy { padding: 9px 8px; font-size: 14px; }
  .counter { padding: 10px 0 6px; }
  /* on a phone the filters are one row you swipe sideways, so the shelves stay in view */
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .shop-chips { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .hero-card { transition: none; } }

/* ---------- home sections (2026-11-11, second pass): facts, clubs, moods, rails ---------- */
.facts { background: var(--moss-deep); color: var(--card); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.fact { padding: 22px 18px; border-left: 1px solid rgba(255, 255, 255, .14); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font: 400 clamp(28px, 3.4vw, 44px)/1 var(--display); color: var(--butter); font-variant-numeric: tabular-nums; }
.fact span { color: var(--moss-wash); font-size: 15px; }
.band { padding: clamp(40px, 6vw, 84px) 0; }
.band h2, .shelves-h { font: 400 clamp(30px, 4vw, 50px)/1.05 var(--display); margin: 0 0 10px; text-wrap: balance; }
.band .lede { max-width: 40em; margin: 0 0 26px; color: var(--ink-soft); font-size: 18px; }
.band-moss { background: var(--moss); color: var(--card); }
.band-moss h2 { color: var(--card); }
.band-paper { background: var(--card); border-block: 1px solid var(--line); }
.shelves-h { margin: clamp(36px, 5vw, 64px) 0 16px; }

.clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.club { position: relative; display: block; aspect-ratio: 4 / 5; border: 0; padding: 0; cursor: pointer; background: var(--moss-wash); border-radius: var(--radius-card); overflow: hidden; text-align: left; color: var(--card); box-shadow: 0 0 0 1px var(--line); }
.club img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.club:hover img, .club:focus-visible img { transform: scale(1.06); }
.club-name { position: absolute; inset: auto 0 0 0; padding: 44px 16px 14px; background: linear-gradient(to top, var(--moss-deep) 35%, transparent); font: 400 24px/1.1 var(--display); }
.club-name small { display: block; margin-top: 6px; font: 500 14px/1 var(--body); color: var(--butter); }

.moods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.mood { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; text-align: left; background: var(--moss-deep); color: var(--card); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-card); padding: 14px; cursor: pointer; }
.mood:hover, .mood:focus-visible { border-color: var(--butter); }
.mood img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; background: var(--moss-wash); }
.mood strong { display: block; font: 400 22px/1.15 var(--display); }
.mood span { color: var(--moss-wash); font-size: 15px; }

.rail { list-style: none; margin: 0; padding: 4px 2px 18px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 250px); gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--copper) transparent; }
.rail .item { scroll-snap-align: start; }

/* one orchestrated moment: the three hero pictures are dealt onto the shelf */
.hero-card { animation: deal .7s cubic-bezier(.2, .9, .3, 1.2) both; }
.hero-card-2 { animation-delay: .12s; }
.hero-card-3 { animation-delay: .24s; }
@keyframes deal { from { opacity: 0; translate: 0 -60px; } to { opacity: 1; translate: 0 0; } }
.active-filter { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; background: var(--butter); color: var(--moss-deep); border: 0; border-radius: var(--radius-pill); padding: 5px 12px; font-weight: 600; cursor: pointer; }

@media (max-width: 760px) {
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 16px 12px; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .clubs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .club-name { font-size: 19px; padding: 36px 12px 12px; }
  .moods { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 62vw; gap: 12px; margin-inline: -16px; padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) { .hero-card { animation: none; } .club img { transition: none; } }
