:root {
  --ink: #1b1035;
  --ink-2: #2c1c58;
  --ink-soft: #6c6382;
  --yolk: #ffc83d;
  --yolk-deep: #e9a413;
  --coral: #ff5a5f;
  --mint: #16b894;
  --sky: #3da8ff;
  --grape: #a96bff;
  --cream: #fff6e7;
  --cream-dark: #f6e7cd;
  --paper: #ffffff;
  --line: #e8dcc6;
  --shadow: 27, 16, 53;
  --pop: 4px 4px 0 var(--ink);
  --pop-lg: 8px 8px 0 var(--ink);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 500;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.display {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mono { font-family: "Space Mono", ui-monospace, monospace; }

/* emoji should never inherit the page's letter-spacing or italics */
.emo {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 13px 26px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms var(--bounce), box-shadow 160ms var(--bounce), background 140ms ease;
}

.btn-primary {
  background: var(--yolk);
  color: var(--ink);
  box-shadow: var(--pop);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: #ffd970;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 246, 231, 0.55);
}

.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--yolk);
  color: var(--yolk);
  transform: translateY(-2px);
}

.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

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

.topbar {
  background: var(--ink);
  color: var(--cream);
  border-bottom: 3px solid var(--yolk);
  position: relative;
  z-index: 6;
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1;
}

.wordmark .mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 2px solid var(--yolk);
  flex-shrink: 0;
  transition: transform 260ms var(--bounce);
}

.wordmark:hover .mark { transform: rotate(-8deg) scale(1.06); }

.wordmark .co { color: var(--yolk); }

.topnav { display: flex; gap: 24px; font-size: 0.97rem; font-weight: 700; }

.topnav a {
  color: var(--cream);
  text-decoration: none;
  opacity: 0.88;
  border-bottom: 2.5px solid transparent;
  padding-bottom: 2px;
  transition: opacity 140ms ease, border-color 140ms ease;
}

.topnav a:hover, .topnav a:focus-visible { opacity: 1; border-bottom-color: var(--yolk); }

.live-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px 13px;
  white-space: nowrap;
  font-weight: 700;
}

.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

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

.hero {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background: url("img/hero.jpg") center right / cover no-repeat;
}

/* opaque under the copy, then clears off so the product art keeps its colour */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(27, 16, 53, 0.97) 0%, rgba(27, 16, 53, 0.93) 38%, rgba(27, 16, 53, 0.46) 66%, rgba(27, 16, 53, 0.06) 88%, rgba(27, 16, 53, 0) 100%);
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 24px 72px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yolk);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 15px;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero h1 {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 15ch;
}

.hero h1 .hero-sub {
  display: block;
  font-weight: 500;
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--yolk);
  margin-top: 12px;
}

.hero p.lede {
  margin-top: 22px;
  max-width: 52ch;
  font-size: 1.1rem;
  opacity: 0.93;
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 50px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats > div {
  background: rgba(255, 246, 231, 0.08);
  border: 2px solid rgba(255, 246, 231, 0.22);
  border-radius: 18px;
  padding: 12px 20px;
  min-width: 118px;
}

.hero-stats dt {
  font-family: "Space Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yolk);
  opacity: 0.95;
}

.hero-stats dd {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1.15;
  margin-top: 2px;
}

/* ---------- brand marquee ---------- */

.brand-marquee {
  background: var(--yolk);
  color: var(--ink);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  padding: 11px 0;
}

.brand-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  will-change: transform;
}

.brand-track span {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 18px;
}

.brand-track span::after {
  content: "★";
  margin-left: 36px;
  font-size: 0.72rem;
  vertical-align: 3px;
  opacity: 0.55;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- controls ---------- */

.controls {
  background: var(--cream);
  border-bottom: 2px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.controls-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.controls input[type="search"],
.controls select {
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.controls input[type="search"] { flex: 1 1 190px; min-width: 150px; cursor: text; }

.controls input[type="search"]:focus,
.controls select:focus {
  outline: 3px solid var(--sky);
  outline-offset: 1px;
}

/* prerendered crawler cards are anchors until site.js swaps in the buttons */
a.card { text-decoration: none; color: inherit; }

.dept-pills, .type-pills { display: flex; gap: 7px; flex-wrap: wrap; }

.dept-pills button, .type-pills button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 15px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: transform 140ms var(--bounce), background 140ms ease, box-shadow 140ms ease;
}

.dept-pills button:hover, .type-pills button:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 0 var(--ink);
}

.dept-pills button:focus-visible, .type-pills button:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.dept-pills button.on, .type-pills button.on {
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
}

.count-note {
  margin-left: auto;
  font-size: 0.76rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.count-note button {
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--yolk);
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  padding: 2px 10px;
  margin-left: 8px;
}

/* ---------- shelf grid ---------- */

.shelf {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px 80px;
}

.shelf-title {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.shelf-title::after {
  content: "";
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--yolk) 0 14px, var(--coral) 14px 28px, var(--mint) 28px 42px, var(--sky) 42px 56px);
  opacity: 0.55;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 26px 22px;
}

/* each listing is a sticker on the wall */
.card {
  position: relative;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--pop);
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 180ms var(--bounce), box-shadow 180ms var(--bounce);
}

.card:hover, .card:focus-visible {
  transform: translate(-3px, -3px) rotate(-0.6deg);
  box-shadow: var(--pop-lg);
}

.card:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.card-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream-dark);
  overflow: hidden;
  border-bottom: 2.5px solid var(--ink);
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 240ms ease, transform 400ms var(--bounce);
}

.card:hover .card-photo img { transform: scale(1.04); }

.card-photo img.alt {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.card:hover .card-photo img.alt, .card:focus-visible .card-photo img.alt { opacity: 1; }

.card-photo .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--ink-soft);
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
}

.badge-col {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  z-index: 2;
}

.badge-off {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--coral);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 3px 11px;
  box-shadow: 2px 2px 0 var(--ink);
}

/* anything that isn't brand-new-in-box announces itself on the card */
.badge-cond {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
}

.badge-new {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--mint);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  box-shadow: 2px 2px 0 var(--ink);
}

.card-view {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: "Fredoka", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 9px 0;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 180ms ease, transform 180ms var(--bounce);
}

.card:hover .card-view, .card:focus-visible .card-view { opacity: 1; transform: translateY(0); }

.card-info { padding: 14px 16px 4px; }

.card-brand {
  font-family: "Space Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grape);
  font-weight: 700;
  min-height: 1em;
}

.card-model {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.24rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-colorway {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px 15px;
}

.card-size .lbl {
  display: block;
  font-family: "Space Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.card-size .num {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--ink);
}

.card-size .num.long { font-size: 1.08rem; line-height: 1.3; }

.card-price { text-align: right; }

.card-price .was {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-soft);
  text-decoration: line-through;
}

.card-price .now {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.62rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* skeletons while listings.json loads */
.skel {
  background: var(--paper);
  border: 2.5px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.skel .ph { aspect-ratio: 1 / 1; }

.skel .ln { height: 12px; margin: 14px 16px; border-radius: 999px; }

.skel .ln.short { width: 45%; }

.skel .ph, .skel .ln {
  background: linear-gradient(100deg, var(--cream-dark) 40%, var(--cream) 50%, var(--cream-dark) 60%);
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  color: var(--ink-soft);
}

.empty .big-emo { font-size: 3.4rem; display: block; margin-bottom: 12px; }

.empty .display { font-size: 1.7rem; color: var(--ink); }

.empty button {
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--yolk);
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  padding: 2px 12px;
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(16px) scale(0.98); }

.reveal.in { opacity: 1; transform: none; transition: opacity 420ms ease, transform 480ms var(--bounce); }

/* ---------- recently sold strip ---------- */

.sold-strip {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

.sold-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.sold-label {
  flex-shrink: 0;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yolk);
  font-weight: 700;
}

.sold-track {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.sold-track .row {
  display: inline-flex;
  gap: 30px;
  animation: marquee 45s linear infinite;
  will-change: transform;
}

.sold-item {
  font-size: 0.86rem;
  color: rgba(255, 246, 231, 0.72);
}

.sold-item strong {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.sold-item .when { color: var(--yolk); }

/* ---------- about ---------- */

.about {
  background: var(--cream);
  background-image: radial-gradient(rgba(27, 16, 53, 0.07) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  border-top: 3px solid var(--ink);
}

.about-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 24px;
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 60px;
  align-items: center;
}

.about-photo {
  border: 3px solid var(--ink);
  border-radius: 26px;
  box-shadow: var(--pop-lg);
  overflow: hidden;
  transform: rotate(-1.5deg);
}

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
  font-weight: 700;
}

.about h2 {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.about h2 em {
  font-style: normal;
  color: var(--ink);
  background: linear-gradient(180deg, transparent 62%, var(--yolk) 62%);
  padding: 0 2px;
}

.about p { margin-top: 16px; max-width: 52ch; color: var(--ink); }

.trust-list {
  margin: 20px 0 28px;
  list-style: none;
  display: grid;
  gap: 10px;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 11px 16px;
  font-size: 0.96rem;
}

.trust-list li .emo { font-size: 1.3rem; flex-shrink: 0; }

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

footer {
  background: var(--ink);
  color: var(--cream);
  border-top: 3px solid var(--yolk);
}

.foot-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  opacity: 0.88;
}

.foot-inner a { color: var(--yolk); }

/* ---------- modal ---------- */

.modal { position: fixed; inset: 0; z-index: 40; }

.modal[hidden] { display: none; }

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(27, 16, 53, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  background: var(--paper);
  width: min(1000px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden auto;
  border: 3px solid var(--ink);
  border-radius: 26px;
  box-shadow: 10px 10px 0 rgba(255, 200, 61, 0.9);
  animation: modal-in 260ms var(--bounce);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms var(--bounce), background 140ms ease;
}

.modal-close:hover, .modal-close:focus-visible { background: var(--coral); color: #fff; transform: rotate(90deg); }

.modal-gallery { padding: 20px; background: var(--cream); }

.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  touch-action: pan-y;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.g-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms var(--bounce);
}

.g-arrow:hover, .g-arrow:focus-visible { background: var(--yolk); }

.g-prev { left: 10px; }

.g-next { right: 10px; }

.g-prev:hover { transform: translateY(-50%) translateX(-2px); }

.g-next:hover { transform: translateY(-50%) translateX(2px); }

.g-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  padding: 4px 11px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.gallery-thumbs button {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 140ms ease, transform 140ms var(--bounce);
}

.gallery-thumbs button:hover { opacity: 1; transform: translateY(-2px); }

.gallery-thumbs button.on { opacity: 1; box-shadow: 0 0 0 3px var(--yolk); }

.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.modal-info { padding: 34px 30px 28px; display: flex; flex-direction: column; }

.m-brand {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grape);
  font-weight: 700;
}

.modal-info h3 {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-top: 5px;
}

.m-colorway { color: var(--ink-soft); margin-top: 4px; }

.m-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 15px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}

.tag.new { background: var(--mint); }

.tag.one { background: var(--yolk); }

.tag.cond { background: var(--cream-dark); }

.m-notes {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-style: italic;
}

.m-size {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 0;
  border-top: 2px dashed var(--line);
  border-bottom: 2px dashed var(--line);
}

.m-size:empty { display: none; }

.m-size .lbl {
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.m-size .num {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.m-size .conv {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.m-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.m-was { font-size: 0.95rem; color: var(--ink-soft); text-decoration: line-through; }

.m-now {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 2.7rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.m-save {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--yolk);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 11px;
}

.m-buy { margin-top: 22px; width: 100%; }

.m-trust {
  margin-top: 12px;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-align: center;
}

.m-share {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-btn {
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 7px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 140ms ease, transform 140ms var(--bounce);
}

.share-btn:hover, .share-btn:focus-visible { background: var(--sky); color: #fff; transform: translateY(-2px); }

.m-posted { margin-left: auto; font-size: 0.66rem; color: var(--ink-soft); }

body.modal-open { overflow: hidden; }

/* ---------- confetti ---------- */

.confetti {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

/* ---------- toasts ---------- */

.toasts {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(340px, calc(100vw - 36px));
}

.toast {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--pop);
  padding: 13px 38px 13px 15px;
  position: relative;
  animation: toast-in 320ms var(--bounce);
  cursor: default;
}

.toast.link { cursor: pointer; }

.toast.link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

.toast .kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grape);
}

.toast .body { font-size: 0.88rem; margin-top: 4px; line-height: 1.4; }

.toast .t-close {
  position: absolute;
  top: 7px;
  right: 8px;
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}

.toast.out { animation: toast-out 240ms ease forwards; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(10px); }
}

/* ---------- privacy page ---------- */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

.prose h1 {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.prose h2 {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin: 34px 0 8px;
}

.prose p, .prose li { margin-top: 10px; color: var(--ink); }

.prose ul { padding-left: 22px; }

.prose a { color: var(--grape); font-weight: 700; }

.prose .updated {
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- motion & responsive ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .card-view, .card-photo img, .dept-pills button, .type-pills button,
  .share-btn, .g-arrow, .modal-close, .gallery-thumbs button, .wordmark .mark { transition: none; }
  .card:hover { transform: none; }
  .card:hover .card-photo img { transform: none; }
  .modal-close:hover { transform: none; }
  .brand-track, .sold-track .row { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal.in { transition: none; }
  .modal-panel, .toast { animation: none; }
  .pulse { animation: none; }
  .skel .ph, .skel .ln { animation: none; }
}

/* narrow screens crop into the middle of the hero art, so the copy needs the
   photo pushed right back behind it */
@media (max-width: 760px) {
  .hero-photo { background-position: center bottom; }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(27, 16, 53, 0.95) 0%, rgba(27, 16, 53, 0.9) 55%, rgba(27, 16, 53, 0.82) 100%);
  }
}

@media (max-width: 900px) {
  .modal-panel { grid-template-columns: 1fr; max-height: calc(100dvh - 24px); margin: 12px auto; }
  .modal-gallery { padding: 14px; }
  .modal-info { padding: 22px 20px 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; padding: 56px 24px; }
  .about-photo { max-width: 420px; }
}

@media (max-width: 640px) {
  .topbar-inner { padding: 12px 16px; }
  .live-count { display: none; }
  .wordmark { font-size: 1.4rem; }
  .wordmark .mark { width: 34px; height: 34px; }
  .hero-inner { padding: 58px 16px 52px; }
  .hero-stats > div { min-width: 0; flex: 1 1 44%; padding: 10px 14px; }
  .hero-stats dd { font-size: 1.5rem; }
  .controls-inner, .shelf, .sold-inner, .foot-inner { padding-left: 16px; padding-right: 16px; }
  .shelf-title { font-size: 1.25rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 18px 12px; }
  .card { border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); }
  .card-model { font-size: 1.08rem; }
  .card-size .num { font-size: 1.32rem; }
  .card-price .now { font-size: 1.34rem; }
  .count-note { margin-left: 0; width: 100%; }
  .toasts { left: 12px; bottom: 12px; right: 12px; max-width: none; }
}
