:root {
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-soft: #f5f3ef;
  --ink: #171512;
  --ink-dim: #6f695f;
  --accent: #7c22c4;
  --accent-ink: #fbf5ff;
  --line: #e6e1d6;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: env(safe-area-inset-top, 0px); scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* top bar */
.topbar {
  padding-top: 20px; padding-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark-small { display: block; height: 40px; width: auto; }
.top-links { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--ink-dim); }
.top-links a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s ease, color .15s ease; }
.top-links a:hover { color: var(--ink); border-color: var(--ink-dim); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--ink); background: var(--bg);
  color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer;
}
.cart-btn:hover { background: var(--ink); color: var(--bg); }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 64px 0 56px; }
.hero p.lede { font-size: 18px; line-height: 1.55; color: var(--ink-dim); max-width: 46ch; margin: 0 0 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.btn {
  display: inline-block; padding: 13px 22px; text-decoration: none;
  font-size: 14px; font-weight: 600; border: 1px solid var(--ink);
  color: var(--ink); background: transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.solid:hover { background: #5e1a98; border-color: #5e1a98; color: var(--accent-ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.solid[disabled]:hover { background: var(--accent); border-color: var(--accent); }
.btn.wide { width: 100%; text-align: center; }

.stat-row { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.stat { font-size: 13px; color: var(--ink-dim); }
.stat b { color: var(--ink); font-size: 15px; display: block; font-weight: 700; }

/* section heading */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 8px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px;
}
.section-head h2 { font-family: 'Pirata One', serif; font-weight: 400; font-size: 34px; margin: 0; }
.section-head span { font-size: 13px; color: var(--ink-dim); }

/* product grid */
.grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  background: var(--line); border: 1px solid var(--line); margin-bottom: 80px;
}
.card { background: var(--bg); display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--bg-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card.sold .card-media img { filter: grayscale(1); opacity: .6; }
.sold-tag {
  position: absolute; left: 14px; top: 14px; padding: 6px 10px;
  background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.thumbs { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.thumbs button {
  width: 34px; height: 34px; padding: 0; border: 1px solid rgba(23,21,18,0.35);
  background: rgba(255,255,255,0.75); cursor: pointer; overflow: hidden;
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.active { border-color: var(--ink); }

.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body .meta { font-size: 12px; color: var(--ink-dim); margin-bottom: 6px; }
.card-body h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; line-height: 1.3; }
.card-body .price { font-size: 20px; font-weight: 800; margin: 0 0 18px; }
.card-body .spacer { flex: 1; }
.card-body .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 calc(48px + env(safe-area-inset-bottom, 0px));
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
footer .foot-note { font-size: 13px; color: var(--ink-dim); max-width: 42ch; line-height: 1.6; }
footer .foot-links { display: flex; gap: 18px; font-size: 13px; }
footer a { text-decoration: none; color: var(--ink-dim); border-bottom: 1px solid transparent; }
footer a:hover { color: var(--ink); border-color: var(--ink-dim); }

.launch-banner {
  background: var(--accent); color: var(--accent-ink); text-align: center;
  font-size: 13px; font-weight: 600; padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}

/* cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(23,21,18,.45); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(480px, 100%); background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
  border-left: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.drawer.open { transform: none; }
.drawer.wide { width: min(620px, 100%); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-family: 'Pirata One', serif; font-weight: 400; font-size: 28px; margin: 0; }
.icon-btn { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 8px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px)); }
.line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 72px; height: 90px; object-fit: cover; background: var(--bg-soft); }
.line-item .name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.line-item .meta { font-size: 12px; color: var(--ink-dim); margin-top: 4px; }
.line-item .lp { font-weight: 800; font-size: 15px; text-align: right; }
.line-item .remove { border: 0; background: none; color: var(--ink-dim); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 6px 0 0; }
.empty { color: var(--ink-dim); font-size: 14px; padding: 24px 0; }
.subtotal { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 6px; }
.fine { font-size: 12px; color: var(--ink-dim); margin: 0 0 14px; }
.notice { font-size: 13px; background: #fdf1f1; color: #8a1c1c; border: 1px solid #f0c9c9; padding: 10px 12px; margin: 0 0 12px; }
.back-link { border: 0; background: none; padding: 10px 0 14px; color: var(--ink-dim); font-size: 13px; cursor: pointer; }
.back-link:hover { color: var(--ink); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 40px; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .top-links { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
