:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --ink: #2a2420;
  --muted: #7a6e66;
  --line: #ebe3d9;
  --accent: #c8553d;
  --accent-ink: #ffffff;
  --etsy: #f1641e;
  --tiktok: #111111;
  --radius: 16px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; text-decoration: none; }
.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 96px 0 72px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--accent); font-weight: 600; margin: 0 0 16px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-etsy { background: var(--etsy); color: #fff; }
.btn-tiktok { background: var(--tiktok); color: #fff; }
.btn-sm { padding: 9px 14px; font-size: .85rem; }

/* Shop */
.shop { padding: 48px 0 80px; }
.shop-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.shop-head h2 { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font: inherit; font-size: .88rem; cursor: pointer; color: var(--muted);
}
.chip[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 12px 30px -12px rgba(42, 36, 32, .2); transform: translateY(-2px); }
.card-media { aspect-ratio: 1 / 1; background: var(--line); cursor: pointer; position: relative; overflow: hidden; border: 0; padding: 0; width: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 3.5rem; color: rgba(255,255,255,.9);
}
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--surface); color: var(--ink);
  font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-family: var(--font-display); font-size: 1.15rem; margin: 0; }
.card-price { color: var(--muted); font-weight: 500; }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.card-actions .btn { flex: 1; }

/* About / Contact */
.about { padding: 80px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-inner { max-width: 720px; }
.about p { font-size: 1.1rem; color: var(--muted); }
.contact { padding: 80px 0; text-align: center; }
.contact p { color: var(--muted); }
.contact-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

.site-footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; text-align: center; }

/* Detail dialog */
.detail {
  border: 0; border-radius: var(--radius); padding: 0; width: min(880px, calc(100% - 32px));
  background: var(--surface); color: var(--ink);
}
.detail::backdrop { background: rgba(30, 24, 20, .55); }
.detail .close {
  position: absolute; top: 10px; right: 14px; z-index: 2; border: 0; background: var(--surface);
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.detail-body { display: grid; grid-template-columns: 1fr 1fr; }
.detail-media { aspect-ratio: 1 / 1; background: var(--line); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.detail-info .price { font-size: 1.2rem; font-weight: 600; }
.detail-info p { color: var(--muted); margin: 0; }
.detail-info .card-actions { margin-top: 12px; }
.thumbs { display: flex; gap: 8px; padding: 8px; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; width: 56px; height: 56px; cursor: pointer; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 680px) {
  .nav { gap: 16px; }
  .hero { padding: 64px 0 48px; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-info { padding: 22px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-actions { flex-direction: column; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}
