:root {
  --paper: #f6efe2;
  --paper-2: #efe4d0;
  --ink: #231c17;
  --ink-soft: #5b4e44;
  --rust: #b4472a;
  --rust-dark: #8f3520;
  --mustard: #e0a526;
  --olive: #5f6b3a;
  --denim: #3e5a7a;
  --plum: #6d3b54;
  --line: rgba(35, 28, 23, 0.14);
  --radius: 14px;
  --display: "Fraunces", Georgia, serif;
  --body: "Work Sans", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: clip;
  /* subtle paper grain */
  background-image: radial-gradient(rgba(35, 28, 23, 0.035) 1px, transparent 1px);
  background-size: 4px 4px;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.9rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(246, 239, 226, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--rust);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.3rem;
  transform: rotate(-6deg);
}
.logo-text { font-family: var(--display); font-weight: 900; font-size: 1.35rem; letter-spacing: -0.01em; }
.logo-text em, .footer-logo em { font-style: italic; font-weight: 400; color: var(--rust); }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:not(.nav-cta):hover { color: var(--rust); }
.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--rust); }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform 0.25s, top 0.25s; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn-primary { background: var(--rust); color: var(--paper); border-color: var(--rust); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  max-width: 1240px;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}
.scribble {
  font-style: italic;
  font-weight: 400;
  color: var(--rust);
  position: relative;
  white-space: nowrap;
}
.scribble::after {
  content: "";
  position: absolute;
  left: 0; right: -0.1em; bottom: -0.08em;
  height: 0.16em;
  background: var(--mustard);
  border-radius: 999px;
  transform: rotate(-2deg);
  z-index: -1;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-tags { position: relative; height: 420px; }
.hang-tag {
  position: absolute;
  width: 190px;
  padding: 2.4rem 1.2rem 1.4rem;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  clip-path: polygon(22% 0, 78% 0, 100% 16%, 100% 100%, 0 100%, 0 16%);
  text-align: center;
  box-shadow: 0 10px 30px rgba(35, 28, 23, 0.12);
  animation: sway 6s ease-in-out infinite;
  transform-origin: 50% 0;
}
.hang-tag .hole {
  position: absolute; top: 14px; left: 50%;
  width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
}
.hang-tag b { display: block; font-family: var(--display); font-size: 1.65rem; line-height: 1.05; font-weight: 900; }
.hang-tag small { display: block; margin-top: 0.4rem; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.t1 { top: 10px; left: 8%; background: var(--rust); color: var(--paper); --r: -8deg; }
.t1 small { color: rgba(246, 239, 226, 0.8); }
.t2 { top: 90px; right: 4%; background: var(--mustard); --r: 7deg; animation-delay: -2s; }
.t3 { bottom: 0; left: 30%; background: var(--olive); color: var(--paper); --r: -3deg; animation-delay: -4s; }
.t3 small { color: rgba(246, 239, 226, 0.8); }
@keyframes sway {
  0%, 100% { transform: rotate(var(--r)); }
  50% { transform: rotate(calc(var(--r) + 3deg)); }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 1rem 0;
  transform: rotate(-1.2deg);
  margin: 0 -2rem;
}
.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scroll 30s linear infinite;
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  font-style: italic;
  white-space: nowrap;
}
.marquee-track span:nth-child(even) { color: var(--mustard); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem);
}
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.section-sub { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Rack ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip {
  font-family: var(--mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.chip:hover { background: var(--paper-2); }
.chip.is-active { background: var(--ink); color: var(--paper); }

.rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.item {
  position: relative;
  background: #fffaf1;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.item:hover { transform: translateY(-4px) rotate(-0.5deg); box-shadow: 0 16px 30px rgba(35, 28, 23, 0.12); }
.item.is-hidden { display: none; }
.swatch, .item img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.swatch {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--display);
  font-style: italic;
  font-size: 2rem;
  font-weight: 700;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 12px, transparent 12px 24px);
}
.s-rust { background-color: var(--rust); }
.s-denim { background-color: var(--denim); }
.s-olive { background-color: var(--olive); }
.s-mustard { background-color: var(--mustard); color: var(--ink); }
.s-plum { background-color: var(--plum); }
.s-ink { background-color: #3a2f28; }
.item-body { padding: 1rem 1.1rem 1.2rem; }
.item h3 { font-family: var(--body); font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
.meta { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.3rem; }
.tag-price {
  position: absolute;
  top: 14px; right: -6px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem 0.3rem 1.1rem;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
  transform: rotate(4deg);
}
a.item { display: block; text-decoration: none; color: inherit; }
.item-photo { position: relative; }
.item.is-sold .item-photo > :first-child { filter: grayscale(0.85); opacity: 0.6; }
.item.is-sold:hover { transform: none; box-shadow: none; }
.sold-stamp {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  font-family: var(--display); font-weight: 900; font-size: 2.6rem; text-transform: uppercase;
  color: var(--rust); border: 4px solid var(--rust); border-radius: 10px; padding: 0.1rem 1rem;
  background: rgba(246, 239, 226, 0.85);
}
.platform {
  display: inline-block; margin-top: 0.7rem;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--rust);
}
.item:not(.is-sold) .platform::after { content: " →"; }
.item.is-sold .platform { color: var(--ink-soft); }
.rack-loading, .rack-empty {
  grid-column: 1 / -1; text-align: center; padding: 3rem 1rem;
  border: 2px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft);
}
.rack-empty a { color: var(--rust); font-weight: 600; }
.rack-note { margin-top: 2rem; font-size: 0.95rem; color: var(--ink-soft); }
.rack-note a { color: var(--rust); font-weight: 600; }

/* ---------- Hunt ---------- */
.hunt { border-top: 1px solid var(--line); }
.hunt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.hunt-card { padding: 2rem 1.6rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper-2); }
.hunt-card:nth-child(2) { background: var(--mustard); }
.hunt-card .num { font-family: var(--mono); font-size: 0.85rem; color: var(--rust); font-weight: 700; }
.hunt-card:nth-child(2) .num { color: var(--ink); }
.hunt-card h3 { font-family: var(--display); font-size: 1.9rem; font-weight: 900; margin: 0.6rem 0 0.6rem; line-height: 1.05; }
.hunt-card p { color: var(--ink-soft); }
.hunt-card:nth-child(2) p { color: var(--ink); }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.story-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.story-card .eyebrow { color: var(--mustard); }
.story-card p:not(.eyebrow) { color: rgba(246, 239, 226, 0.85); margin-bottom: 1rem; font-size: 1.05rem; }
.handles { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.handle {
  flex: 1 1 180px;
  border: 1.5px solid rgba(246, 239, 226, 0.3);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
}
.handle-label { display: block; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mustard); }
.handle-name { font-family: var(--display); font-size: 1.4rem; font-weight: 700; }

.story-stamp { display: grid; place-items: center; }
.story-stamp svg { width: min(320px, 100%); animation: spin 28s linear infinite; }
.story-stamp text { font-family: var(--mono); font-size: 15.5px; font-weight: 700; letter-spacing: 3px; fill: var(--rust); }
.story-stamp .stamp-w { font-family: var(--display); font-size: 64px; font-weight: 900; letter-spacing: 0; fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Shop ---------- */
.shop { border-top: 1px solid var(--line); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.steps li { counter-increment: step; position: relative; padding-top: 3.6rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.8rem; height: 2.8rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--rust);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.3rem;
}
.steps b { display: block; font-family: var(--display); font-size: 1.45rem; margin-bottom: 0.3rem; }
.steps span { color: var(--ink-soft); }

.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-card {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.5rem 1.6rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  background: #fffaf1;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.contact-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.contact-card svg { width: 42px; height: 42px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card .dot { fill: currentColor; stroke: none; }
.contact-card.ig { color: var(--rust); }
.contact-card.fb { color: var(--denim); }
.contact-card span { color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.contact-card small { display: block; font-family: var(--mono); font-size: 0.72rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(246, 239, 226, 0.75);
  text-align: center;
  padding: 3.5rem 1rem;
}
.footer-logo { font-family: var(--display); font-size: 2rem; font-weight: 900; color: var(--paper); margin-bottom: 0.5rem; }
.site-footer .small { font-family: var(--mono); font-size: 0.75rem; margin-top: 1rem; opacity: 0.6; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-tags { height: 300px; }
  .hang-tag { width: 160px; }
  .hang-tag b { font-size: 1.35rem; }
  .story { grid-template-columns: 1fr; }
  .story-stamp svg { width: 220px; }
  .hunt-grid, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 0.8rem; text-align: center; border-bottom: 0; }
  .contact-row { grid-template-columns: 1fr; }
  .hang-tag { width: 140px; padding: 2.2rem 0.8rem 1.1rem; }
  .t1 { left: 0; }
  .t2 { right: 0; }
  .t3 { left: 22%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
