/* ============================================================
   MORE IS MORE — design system
   Density with discipline: one palette, one pattern cast,
   borders within borders, hierarchy loud and clear.
   ============================================================ */

:root {
  --pink: #FF2E88;
  --marigold: #FFB000;
  --cobalt: #2541E8;
  --acid: #B5E61D;
  --lacquer: #E3312A;
  --cream: #FFF3DC;
  --ink: #221437;
  --cocoa: #4A2C1A;

  --font-badge: "Bungee", "Arial Black", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --shadow-offset: 6px 6px 0 var(--ink);
  --shadow-offset-sm: 3px 3px 0 var(--ink);
  --border-heavy: 4px solid var(--ink);
  --border-mid: 3px solid var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--cream);
  /* the bazaar ground: a faint harlequin wash over cream */
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255, 46, 136, 0.06) 0 120px, transparent 121px),
    radial-gradient(circle at 85% 70%, rgba(37, 65, 232, 0.05) 0 160px, transparent 161px),
    repeating-linear-gradient(45deg, rgba(74, 44, 26, 0.035) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(-45deg, rgba(74, 44, 26, 0.035) 0 2px, transparent 2px 26px);
  overflow-x: hidden;
}

::selection { background: var(--acid); color: var(--ink); }

a { color: inherit; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.02; }

/* ---------- reusable frames: borders within borders ---------- */

.frame-double {
  border: var(--border-heavy);
  outline: 3px solid var(--cream);
  outline-offset: -9px;
  box-shadow: var(--shadow-offset);
  position: relative;
  background: var(--cream);
}

.frame-thin {
  border: var(--border-mid);
  box-shadow: var(--shadow-offset-sm);
  background: var(--cream);
}

/* patterned band: JS sets --tile + --tile-w/--tile-h */
.pattern-band {
  background-image: var(--tile);
  background-size: var(--tile-w, 64px) var(--tile-h, 64px);
  background-repeat: repeat;
}

/* ---------- stickers & medallions ---------- */

.sticker {
  font-family: var(--font-badge);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.05;
  border: var(--border-mid);
  box-shadow: var(--shadow-offset-sm);
  user-select: none;
}

.sticker-sun {
  background: var(--marigold);
  color: var(--ink);
  border-radius: 50%;
  width: 88px; height: 88px;
  font-size: 15px;
  transform: rotate(-8deg);
}

.sticker-dot {
  background: var(--pink);
  color: var(--cream);
  border-radius: 50%;
  width: 96px; height: 96px;
  font-size: 14px;
  transform: rotate(6deg);
  outline: 3px dashed var(--cream);
  outline-offset: -8px;
}

.sticker-burst {
  background: var(--acid);
  color: var(--ink);
  width: 92px; height: 92px;
  font-size: 13px;
  transform: rotate(-3deg);
  clip-path: polygon(50% 0%, 61% 12%, 75% 5%, 80% 20%, 95% 18%, 92% 34%, 100% 50%, 92% 66%, 95% 82%, 80% 80%, 75% 95%, 61% 88%, 50% 100%, 39% 88%, 25% 95%, 20% 80%, 5% 82%, 8% 66%, 0% 50%, 8% 34%, 5% 18%, 20% 20%, 25% 5%, 39% 12%);
}

/* price medallion */
.medallion {
  font-family: var(--font-badge);
  background: var(--marigold);
  border: var(--border-mid);
  border-radius: 50%;
  width: 74px; height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-offset-sm);
  outline: 3px dashed var(--ink);
  outline-offset: -7px;
  flex: none;
}

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

#confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
}

.confetto {
  position: absolute;
  top: -8vh;
  will-change: transform;
  animation: confetti-drift var(--dur, 26s) linear var(--delay, 0s) infinite;
  opacity: 0.85;
}

@keyframes confetti-drift {
  0%   { transform: translate3d(0, -8vh, 0) rotate(0deg); }
  25%  { transform: translate3d(3vw, 22vh, 0) rotate(120deg); }
  50%  { transform: translate3d(-2vw, 52vh, 0) rotate(200deg); }
  75%  { transform: translate3d(2vw, 82vh, 0) rotate(320deg); }
  100% { transform: translate3d(0, 112vh, 0) rotate(420deg); }
}

/* ---------- tickers ---------- */

.ticker {
  overflow: hidden;
  border-top: var(--border-mid);
  border-bottom: var(--border-mid);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-badge);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 7px 0;
  position: relative;
  z-index: 5;
}

.ticker-top { border-top: none; }
.ticker-bottom { border-bottom: none; }

.ticker-track {
  display: inline-flex;
  gap: 3.5rem;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 40s linear infinite;
  padding-left: 100%;
}

.ticker[data-reverse] .ticker-track,
.ticker-track.reverse { animation-direction: reverse; }

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-track .tk { display: inline-flex; align-items: center; gap: 3.5rem; }
.ticker-track .tk i {
  font-style: normal;
  color: var(--acid);
}

@keyframes ticker-scroll {
  to { transform: translateX(-100%); }
}

/* ---------- masthead ---------- */

.site-head { position: relative; z-index: 10; }

.masthead {
  margin: 14px 14px 0;
  background: var(--pink);
  background-image: var(--tile, none);
  background-size: var(--tile-w, 90px) var(--tile-h, 90px);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(180deg, rgba(255, 243, 220, 0.94), rgba(255, 243, 220, 0.88));
  margin: 10px;
  border: var(--border-mid);
  outline: 2px dashed var(--pink);
  outline-offset: -7px;
  flex-wrap: wrap;
}

.brand { text-decoration: none; display: block; flex: 1 1 auto; min-width: 240px; }

.brand-over,
.brand-under {
  font-family: var(--font-badge);
  font-size: clamp(9px, 1.4vw, 12px);
  letter-spacing: 0.18em;
  display: block;
  color: var(--cocoa);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 0.95;
  display: block;
  color: var(--lacquer);
  text-shadow:
    3px 3px 0 var(--marigold),
    6px 6px 0 var(--ink);
  letter-spacing: -0.01em;
  transition: transform 0.25s ease;
}

.brand:hover .brand-name { transform: skewX(-3deg) scale(1.01); }

.masthead-badges {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex: none;
}

.menu-btn {
  display: none;
  font-family: var(--font-badge);
  font-size: 13px;
  background: var(--acid);
  border: var(--border-mid);
  box-shadow: var(--shadow-offset-sm);
  padding: 10px 14px;
  align-items: center;
  gap: 8px;
}

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

.menu-btn-lines,
.menu-btn-lines::before,
.menu-btn-lines::after {
  display: block;
  width: 20px; height: 3px;
  background: var(--ink);
  content: "";
}
.menu-btn-lines::before { transform: translateY(-7px); }
.menu-btn-lines::after { transform: translateY(4px); }

/* ---------- nav strip ---------- */

.nav-strip {
  margin: 12px 14px 0;
  display: flex;
  background: var(--cobalt);
  padding: 0;
  gap: 0;
}

.nav-strip a {
  flex: 1 1 0;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-badge);
  font-size: clamp(10px, 1.5vw, 14px);
  letter-spacing: 0.05em;
  color: var(--cream);
  padding: 13px 8px;
  border-right: 3px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  position: relative;
}

.nav-strip a:last-child { border-right: none; }

.nav-strip a:hover { background: var(--pink); transform: translateY(-2px); }
.nav-strip a.active {
  background: var(--marigold);
  color: var(--ink);
  box-shadow: inset 0 -5px 0 var(--ink);
}

/* ---------- generic section furniture ---------- */

#view { display: block; min-height: 60vh; }

.section { margin: 26px 14px 0; }

.section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  font-weight: 900;
  font-style: italic;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 18px 10px;
  border: var(--border-mid);
  box-shadow: var(--shadow-offset-sm);
  transform: rotate(-1deg);
}

.section-title.alt { background: var(--lacquer); transform: rotate(1deg); }
.section-title.alt2 { background: var(--cobalt); transform: rotate(-1.5deg); }

.section-rule {
  flex: 1 1 120px;
  height: 14px;
  border-top: var(--border-mid);
  border-bottom: var(--border-mid);
  background-image: var(--tile);
  background-size: var(--tile-w, 28px) var(--tile-h, 28px);
}

.section-more {
  font-family: var(--font-badge);
  font-size: 12px;
  text-decoration: none;
  background: var(--acid);
  border: var(--border-mid);
  box-shadow: var(--shadow-offset-sm);
  padding: 8px 12px;
  transition: transform 0.12s ease;
  white-space: nowrap;
}
.section-more:hover { transform: translate(-1px, -2px) rotate(-1deg); }
.section-more:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* buttons */
.btn-loud {
  font-family: var(--font-badge);
  font-size: 13px;
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  background: var(--marigold);
  border: var(--border-mid);
  box-shadow: var(--shadow-offset-sm);
  padding: 11px 16px;
  transition: transform 0.12s ease;
}
.btn-loud:hover { transform: translate(-1px, -2px) rotate(-1deg); background: var(--acid); }
.btn-loud:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-loud.pink { background: var(--pink); color: var(--cream); }
.btn-loud.pink:hover { background: var(--lacquer); }
.btn-loud.cobalt { background: var(--cobalt); color: var(--cream); }
.btn-loud.cobalt:hover { background: var(--pink); }

/* ============================================================
   HOME
   ============================================================ */

.hero {
  margin: 22px 14px 0;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 18px;
  position: relative;
}

.hero-main {
  border: var(--border-heavy);
  outline: 3px solid var(--cream);
  outline-offset: -9px;
  box-shadow: 8px 8px 0 var(--ink);
  position: relative;
  overflow: hidden;
  background: var(--marigold);
  background-image: var(--tile);
  background-size: var(--tile-w, 110px) var(--tile-h, 110px);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,243,220,0) 30%, rgba(34,20,55,0.55) 78%, rgba(34,20,55,0.85));
}

.hero-caption { position: relative; padding: 2rem 2.2rem 2.2rem; color: var(--cream); }

.hero-kicker {
  font-family: var(--font-badge);
  font-size: clamp(10px, 1.6vw, 14px);
  letter-spacing: 0.22em;
  display: inline-block;
  background: var(--lacquer);
  border: var(--border-mid);
  box-shadow: var(--shadow-offset-sm);
  padding: 7px 12px;
  transform: rotate(-1.5deg);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 900;
  font-style: italic;
  line-height: 0.95;
  text-shadow: 4px 4px 0 var(--ink);
  max-width: 15ch;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  max-width: 44ch;
  margin: 14px 0 18px;
  font-weight: 500;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-ornament {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(3px 3px 0 rgba(34, 20, 55, 0.55));
  animation: ornament-bob 7s ease-in-out infinite;
}

@keyframes ornament-bob {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(calc(var(--rot, 0deg) + 4deg)); }
}

.hero-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* spotlight panel */
.spotlight {
  border: var(--border-heavy);
  outline: 3px solid var(--cream);
  outline-offset: -9px;
  box-shadow: var(--shadow-offset);
  background: var(--cream);
  overflow: hidden;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.spotlight-head {
  font-family: var(--font-badge);
  font-size: 12px;
  letter-spacing: 0.14em;
  background: var(--acid);
  border-bottom: var(--border-mid);
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spotlight-body { position: relative; flex: 1 1 auto; min-height: 300px; }

.spotlight-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(24px) rotate(1deg);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.spotlight-slide.on { opacity: 1; transform: none; pointer-events: auto; }

.spot-swatch {
  flex: 1 1 55%;
  background-image: var(--tile);
  background-size: var(--tile-w, 84px) var(--tile-h, 84px);
  border-bottom: var(--border-mid);
  position: relative;
}

.spot-swatch .stall-no {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--font-badge);
  font-size: 11px;
  background: var(--ink);
  color: var(--cream);
  padding: 5px 9px;
  border: 2px solid var(--cream);
  transform: rotate(-3deg);
}

.spot-info { padding: 14px 16px 16px; background: var(--cream); }

.spot-info h3 { font-size: 1.5rem; font-weight: 900; font-style: italic; }
.spot-info .spot-tag { font-weight: 500; margin: 6px 0 10px; }
.spot-info a { font-family: var(--font-badge); font-size: 11px; }

.spotlight-nav {
  display: flex;
  border-top: var(--border-mid);
}
.spotlight-nav button {
  flex: 1;
  font-family: var(--font-badge);
  background: var(--cream);
  border: none;
  border-right: var(--border-mid);
  padding: 10px 0;
  font-size: 13px;
  transition: background 0.12s ease;
}
.spotlight-nav button:last-child { border-right: none; }
.spotlight-nav button:hover { background: var(--pink); color: var(--cream); }

/* arrivals panel */
.arrivals {
  border: var(--border-heavy);
  outline: 3px solid var(--cream);
  outline-offset: -9px;
  box-shadow: var(--shadow-offset);
  background: var(--cobalt);
  color: var(--cream);
  padding: 0;
}

.arrivals-head {
  font-family: var(--font-badge);
  font-size: 12px;
  letter-spacing: 0.14em;
  background: var(--pink);
  border-bottom: var(--border-mid);
  padding: 9px 12px;
}

.arrivals ul { list-style: none; margin: 0; padding: 0; }
.arrivals li { border-bottom: 2px dashed rgba(255, 243, 220, 0.4); }
.arrivals li:last-child { border-bottom: none; }
.arrivals a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.12s ease, padding-left 0.12s ease;
}
.arrivals a:hover { background: rgba(255, 46, 136, 0.35); padding-left: 20px; }
.arrivals .arr-price { font-family: var(--font-badge); font-size: 12px; color: var(--acid); flex: none; }

/* featured goods strip */
.goods-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ---------- goods card: dense, decorated, hover piles on more ---------- */

.goods-card {
  position: relative;
  border: var(--border-heavy);
  box-shadow: var(--shadow-offset);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  outline: 3px solid var(--cream);
  outline-offset: -8px;
}

.goods-card:hover {
  transform: translate(-3px, -4px) rotate(-0.6deg);
  box-shadow: 10px 10px 0 var(--ink);
  z-index: 3;
}

.gc-swatch {
  height: 150px;
  border-bottom: var(--border-mid);
  background-image: var(--tile);
  background-size: var(--tile-w, 72px) var(--tile-h, 72px);
  position: relative;
  transition: background-size 0.35s ease;
}

.goods-card:hover .gc-swatch {
  /* pile on more: a second motif fades in over the first */
  background-size: var(--tile-w-hover, 46px) var(--tile-h-hover, 46px);
}

.gc-swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--tile2, none);
  background-size: var(--tile2-w, 60px) var(--tile2-h, 60px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.goods-card:hover .gc-swatch::after { opacity: 0.9; }

.gc-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-family: var(--font-badge);
  font-size: 10px;
  background: var(--lacquer);
  color: var(--cream);
  border: 2px solid var(--cream);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 4px 7px;
  transform: rotate(4deg);
}

.gc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.gc-cat {
  font-family: var(--font-badge);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--cocoa);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.gc-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.18rem;
  line-height: 1.08;
}

.gc-vendor { font-size: 0.86rem; font-weight: 500; color: var(--cocoa); }

.gc-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 2px dashed var(--cocoa);
  padding-top: 9px;
}

.gc-price { font-family: var(--font-badge); font-size: 15px; color: var(--lacquer); }

.gc-more {
  font-family: var(--font-badge);
  font-size: 10px;
  background: var(--acid);
  border: 2px solid var(--ink);
  padding: 5px 8px;
  transition: transform 0.1s ease;
}
.goods-card:hover .gc-more { transform: rotate(-3deg) scale(1.08); background: var(--marigold); }

/* hover burst shapes injected by JS */
.burst-bit {
  position: fixed;
  pointer-events: none;
  z-index: 70;
  animation: burst-pop 0.7s ease-out forwards;
}
@keyframes burst-pop {
  0% { transform: translate(0, 0) scale(0.2) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--bx), var(--by)) scale(1) rotate(var(--br)); opacity: 0; }
}

/* ---------- home: journal teasers + event banner + pattern marquee ---------- */

.home-lower {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
}

.journal-teasers { display: flex; flex-direction: column; gap: 14px; }

.essay-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  border: var(--border-mid);
  box-shadow: var(--shadow-offset-sm);
  background: var(--cream);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.14s ease;
}
.essay-card:hover { transform: translate(-2px, -3px) rotate(-0.4deg); }

.essay-swatch {
  background-image: var(--tile);
  background-size: var(--tile-w, 48px) var(--tile-h, 48px);
  border-right: var(--border-mid);
  min-height: 110px;
}

.essay-body { padding: 12px 16px; }
.essay-body h3 { font-size: 1.35rem; font-weight: 900; font-style: italic; }
.essay-meta { font-family: var(--font-badge); font-size: 10px; letter-spacing: 0.12em; color: var(--cocoa); margin: 4px 0 8px; }
.essay-lede { font-size: 0.95rem; margin: 0; }

.event-banner {
  border: var(--border-heavy);
  outline: 3px solid var(--cream);
  outline-offset: -9px;
  box-shadow: var(--shadow-offset);
  background: var(--lacquer);
  color: var(--cream);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.event-banner .eb-pattern {
  height: 120px;
  border-bottom: var(--border-mid);
  background-image: var(--tile);
  background-size: var(--tile-w, 60px) var(--tile-h, 60px);
}

.event-banner .eb-body { padding: 18px 20px 22px; }
.event-banner h3 { font-size: 1.9rem; font-weight: 900; font-style: italic; text-shadow: 2px 2px 0 var(--ink); }
.event-banner .eb-dates { font-family: var(--font-badge); font-size: 13px; margin: 8px 0 4px; color: var(--marigold); }
.event-banner p { margin: 8px 0 16px; }

.pattern-marquee {
  border-top: var(--border-heavy);
  border-bottom: var(--border-heavy);
  overflow: hidden;
  display: flex;
  margin-top: 26px;
  background: var(--ink);
}
.pattern-marquee .pm-tile {
  flex: none;
  width: 120px; height: 120px;
  border-right: var(--border-mid);
  background-image: var(--tile);
  background-size: cover;
}

/* ============================================================
   CATALOG
   ============================================================ */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.filter-chip {
  font-family: var(--font-badge);
  font-size: 11px;
  background: var(--cream);
  border: var(--border-mid);
  box-shadow: var(--shadow-offset-sm);
  padding: 8px 12px;
  transition: transform 0.1s ease, background 0.12s ease;
}
.filter-chip:hover { transform: rotate(-2deg) translateY(-1px); background: var(--marigold); }
.filter-chip.on { background: var(--pink); color: var(--cream); transform: rotate(-2deg); }

.filter-note { font-size: 0.9rem; font-weight: 500; color: var(--cocoa); margin-left: auto; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* vendor stall cards */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.vendor-card {
  border: var(--border-heavy);
  box-shadow: var(--shadow-offset);
  outline: 3px solid var(--cream);
  outline-offset: -8px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}
.vendor-card:hover { transform: translate(-2px, -3px) rotate(0.5deg); }

.vc-swatch {
  height: 110px;
  border-bottom: var(--border-mid);
  background-image: var(--tile);
  background-size: var(--tile-w, 64px) var(--tile-h, 64px);
  position: relative;
}

.vc-stall {
  position: absolute; bottom: -14px; left: 12px;
  font-family: var(--font-badge);
  font-size: 10px;
  background: var(--ink); color: var(--cream);
  border: 2px solid var(--cream);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 4px 8px;
  transform: rotate(-3deg);
}

.vc-body { padding: 20px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vc-body h3 { font-size: 1.3rem; font-weight: 900; font-style: italic; }
.vc-spec { font-family: var(--font-badge); font-size: 10px; letter-spacing: 0.1em; color: var(--lacquer); }
.vc-tag { font-size: 0.92rem; font-weight: 500; margin: 0; }
.vc-count { margin-top: auto; font-size: 0.85rem; color: var(--cocoa); border-top: 2px dashed var(--cocoa); padding-top: 8px; }

/* ============================================================
   PRODUCT VIEW — a full celebration
   ============================================================ */

.crumbs { font-family: var(--font-badge); font-size: 11px; letter-spacing: 0.06em; margin-bottom: 16px; }
.crumbs a { color: var(--cobalt); }
.crumbs span { color: var(--cocoa); }

.product-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  align-items: start;
}

.swatch-stage {
  border: var(--border-heavy);
  outline: 3px solid var(--cream);
  outline-offset: -9px;
  box-shadow: var(--shadow-offset);
  background: var(--cream);
  padding: 14px;
  position: sticky;
  top: 16px;
}

.swatch-zoom {
  position: relative;
  height: 420px;
  border: var(--border-mid);
  overflow: hidden;
  cursor: crosshair;
  background-image: var(--tile);
  background-size: var(--tile-w, 120px) var(--tile-h, 120px);
}

.swatch-zoom .lens {
  position: absolute;
  width: 190px; height: 190px;
  border: var(--border-heavy);
  border-radius: 50%;
  box-shadow: var(--shadow-offset-sm), inset 0 0 0 4px var(--cream);
  background-image: var(--tile);
  background-size: var(--lens-w, 360px) var(--lens-h, 360px);
  background-repeat: repeat;
  pointer-events: none;
  display: none;
  transform: translate(-50%, -50%);
}

.swatch-zoom:hover .lens { display: block; }

.swatch-hint {
  font-family: var(--font-badge);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--cocoa);
  text-align: center;
  margin-top: 10px;
}

.swatch-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.swatch-thumb {
  width: 64px; height: 64px;
  border: var(--border-mid);
  background-image: var(--tile);
  background-size: var(--tile-w, 34px) var(--tile-h, 34px);
  padding: 0;
  transition: transform 0.1s ease;
}
.swatch-thumb:hover { transform: rotate(-4deg) scale(1.06); }
.swatch-thumb.on { outline: 3px solid var(--pink); outline-offset: 2px; }

.product-info { display: flex; flex-direction: column; gap: 16px; }

.pi-panel {
  border: var(--border-heavy);
  outline: 3px solid var(--cream);
  outline-offset: -8px;
  box-shadow: var(--shadow-offset);
  background: var(--cream);
  padding: 20px 22px;
  position: relative;
}

.pi-panel.patterned-top::before {
  content: "";
  display: block;
  height: 22px;
  margin: -20px -22px 16px;
  border-bottom: var(--border-mid);
  background-image: var(--tile);
  background-size: var(--tile-w, 30px) var(--tile-h, 30px);
}

.pi-name { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; font-style: italic; }

.pi-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 12px 0; }
.pi-vendor-link {
  font-family: var(--font-badge); font-size: 11px;
  background: var(--cobalt); color: var(--cream);
  border: var(--border-mid); box-shadow: var(--shadow-offset-sm);
  padding: 6px 10px; text-decoration: none;
}
.pi-vendor-link:hover { background: var(--pink); }
.pi-cat { font-family: var(--font-badge); font-size: 11px; color: var(--cocoa); letter-spacing: 0.1em; }

.pi-blurb { font-size: 1.15rem; font-weight: 500; line-height: 1.45; }

.pi-buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pi-buy .medallion { width: 92px; height: 92px; font-size: 19px; transform: rotate(-4deg); }

.pi-details { list-style: none; margin: 0; padding: 0; }
.pi-details li {
  padding: 9px 0 9px 30px;
  border-bottom: 2px dashed var(--cocoa);
  position: relative;
  font-weight: 500;
}
.pi-details li:last-child { border-bottom: none; }
.pi-details li::before {
  content: "◆";
  position: absolute; left: 4px;
  color: var(--pink);
}

/* vendor story panel */
.vendor-story {
  border: var(--border-heavy);
  outline: 3px solid var(--cream);
  outline-offset: -8px;
  box-shadow: var(--shadow-offset);
  background: var(--cocoa);
  color: var(--cream);
  padding: 0;
  overflow: hidden;
}

.vendor-story .vs-band {
  height: 90px;
  background-image: var(--tile);
  background-size: var(--tile-w, 54px) var(--tile-h, 54px);
  border-bottom: var(--border-mid);
}

.vendor-story .vs-body { padding: 18px 22px 22px; }
.vendor-story h3 { font-size: 1.7rem; font-weight: 900; font-style: italic; color: var(--marigold); }
.vendor-story .vs-founded { font-family: var(--font-badge); font-size: 10.5px; letter-spacing: 0.12em; color: var(--acid); margin: 6px 0 12px; }
.vendor-story p { margin: 0 0 12px; }

/* pairs loudly with */
.pairs-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* scroll-shifting ornament rails on product page */
.ornament-rail {
  position: fixed;
  top: 0; bottom: 0;
  width: 30px;
  pointer-events: none;
  z-index: 4;
  opacity: 0.5;
  background-image: var(--tile);
  background-size: var(--tile-w, 30px) var(--tile-h, 30px);
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}
.ornament-rail.left { left: 0; }
.ornament-rail.right { right: 0; }
@media (max-width: 1280px) { .ornament-rail { display: none; } }

/* ============================================================
   PATTERN LIBRARY
   ============================================================ */

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pattern-card {
  border: var(--border-heavy);
  box-shadow: var(--shadow-offset);
  outline: 3px solid var(--cream);
  outline-offset: -8px;
  background: var(--cream);
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-family: inherit;
  transition: transform 0.14s ease;
}
.pattern-card:hover { transform: translate(-2px, -3px) rotate(-0.5deg); }
.pattern-card.on { outline: 4px solid var(--pink); outline-offset: 3px; }

.pc-swatch {
  height: 140px;
  border-bottom: var(--border-mid);
  background-image: var(--tile);
  background-size: var(--tile-w, 70px) var(--tile-h, 70px);
}
.pc-body { padding: 12px 14px 14px; }
.pc-body h3 { font-size: 1.25rem; font-weight: 900; font-style: italic; }
.pc-cw { font-family: var(--font-badge); font-size: 10px; color: var(--lacquer); letter-spacing: 0.08em; margin-top: 4px; }

.pattern-preview {
  margin-top: 22px;
  border: var(--border-heavy);
  outline: 3px solid var(--cream);
  outline-offset: -9px;
  box-shadow: var(--shadow-offset);
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 320px;
  overflow: hidden;
}

.pp-stage {
  min-height: 420px;
  background-image: var(--tile);
  background-size: var(--tile-w, 96px) var(--tile-h, 96px);
  border-right: var(--border-mid);
  transition: background-size 0.2s ease;
}

.pp-controls { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.pp-controls h3 { font-size: 1.6rem; font-weight: 900; font-style: italic; }
.pp-origin { font-size: 0.95rem; font-weight: 500; color: var(--cocoa); margin: 0; }

.pp-label { font-family: var(--font-badge); font-size: 10.5px; letter-spacing: 0.12em; color: var(--cocoa); }

.pp-scale { display: flex; align-items: center; gap: 12px; }
.pp-scale input[type="range"] {
  flex: 1;
  accent-color: var(--pink);
  height: 6px;
}
.pp-scale .pp-scale-val { font-family: var(--font-badge); font-size: 12px; width: 52px; text-align: right; }

.pp-colorways { display: flex; gap: 10px; flex-wrap: wrap; }
.pp-cw-btn {
  border: var(--border-mid);
  box-shadow: var(--shadow-offset-sm);
  padding: 0;
  width: 56px; height: 56px;
  background-image: var(--tile);
  background-size: var(--tile-w, 30px) var(--tile-h, 30px);
  transition: transform 0.1s ease;
}
.pp-cw-btn:hover { transform: rotate(-4deg) scale(1.08); }
.pp-cw-btn.on { outline: 3px solid var(--pink); outline-offset: 2px; }
.pp-cw-name { font-size: 0.9rem; font-weight: 500; }

/* ============================================================
   JOURNAL
   ============================================================ */

.journal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.journal-grid .essay-card { grid-template-columns: 150px 1fr; }
.journal-grid .essay-swatch { min-height: 150px; }

.article {
  max-width: 860px;
  margin: 0 auto;
  border: var(--border-heavy);
  outline: 3px solid var(--cream);
  outline-offset: -9px;
  box-shadow: var(--shadow-offset);
  background: var(--cream);
}

.article .art-band {
  height: 130px;
  border-bottom: var(--border-mid);
  background-image: var(--tile);
  background-size: var(--tile-w, 66px) var(--tile-h, 66px);
}

.article .art-body { padding: 26px 34px 34px; }
.article h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 900; font-style: italic; }
.art-meta { font-family: var(--font-badge); font-size: 11px; letter-spacing: 0.12em; color: var(--lacquer); margin: 10px 0 6px; }
.art-lede { font-size: 1.2rem; font-weight: 500; border-left: 6px solid var(--pink); padding-left: 16px; margin: 18px 0; }
.art-body p.p { margin: 0 0 16px; }
.art-body p.drop::first-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6em;
  float: left;
  line-height: 0.85;
  padding: 4px 8px 0 0;
  color: var(--lacquer);
}

/* ============================================================
   EVENTS
   ============================================================ */

.event-hero {
  border: var(--border-heavy);
  outline: 3px solid var(--cream);
  outline-offset: -9px;
  box-shadow: var(--shadow-offset);
  background: var(--cobalt);
  background-image: var(--tile);
  background-size: var(--tile-w, 100px) var(--tile-h, 100px);
  color: var(--cream);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.event-hero .eh-veil { background: rgba(34, 20, 55, 0.72); padding: 40px 34px; }
.event-hero h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 900; font-style: italic; text-shadow: 3px 3px 0 var(--ink); }
.event-hero .eh-dates { font-family: var(--font-badge); font-size: clamp(0.85rem, 2vw, 1.1rem); color: var(--marigold); margin-top: 10px; }
.event-hero .eh-place { font-weight: 500; margin-top: 6px; }

.event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.hours-panel, .zones-panel, .workshop-panel {
  border: var(--border-heavy);
  outline: 3px solid var(--cream);
  outline-offset: -8px;
  box-shadow: var(--shadow-offset);
  background: var(--cream);
  padding: 0;
}

.panel-head {
  font-family: var(--font-badge);
  font-size: 12px;
  letter-spacing: 0.14em;
  border-bottom: var(--border-mid);
  padding: 10px 14px;
}
.hours-panel .panel-head { background: var(--marigold); }
.zones-panel .panel-head { background: var(--acid); }
.workshop-panel .panel-head { background: var(--pink); color: var(--cream); }

.hours-row { padding: 14px 16px; border-bottom: 2px dashed var(--cocoa); }
.hours-row:last-child { border-bottom: none; }
.hours-row .hr-day { font-family: var(--font-badge); font-size: 13px; }
.hours-row .hr-time { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 1.25rem; margin: 2px 0; }
.hours-row p { margin: 0; font-size: 0.95rem; }

.zone-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 2px dashed var(--cocoa); }
.zone-row:last-child { border-bottom: none; }
.zone-chip {
  flex: none;
  width: 44px; height: 44px;
  border: var(--border-mid);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--ink);
}
.zone-row .z-name { font-family: var(--font-badge); font-size: 12px; }
.zone-row .z-what { font-size: 0.95rem; font-weight: 500; }

.workshop-row { padding: 12px 16px; border-bottom: 2px dashed var(--cocoa); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.workshop-row:last-child { border-bottom: none; }
.workshop-row .w-time { font-family: var(--font-badge); font-size: 11px; color: var(--lacquer); flex: none; }
.workshop-row .w-name { font-weight: 700; flex: 1; }
.workshop-row .w-spots { font-family: var(--font-badge); font-size: 10px; background: var(--acid); border: 2px solid var(--ink); padding: 3px 7px; flex: none; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-foot { margin-top: 40px; }

.foot-grid {
  margin: 0 14px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 22px;
  padding: 26px 28px;
  background: var(--cream);
}

.foot-brand {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 1.9rem;
  margin: 0 0 8px;
  color: var(--lacquer);
  text-shadow: 2px 2px 0 var(--marigold);
}

.foot-head { font-family: var(--font-badge); font-size: 11px; letter-spacing: 0.14em; margin: 0 0 10px; color: var(--cocoa); }

.foot-links { display: flex; flex-direction: column; gap: 6px; }
.foot-links a { text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.foot-links a:hover { color: var(--pink); text-decoration: underline wavy; }

.foot-col p { margin: 0; font-size: 0.95rem; }

.foot-line {
  text-align: center;
  font-family: var(--font-badge);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--cocoa);
  padding: 18px 14px 22px;
  margin: 0;
}

/* ============================================================
   RESPONSIVE — density reflows into one rich column
   ============================================================ */

@media (max-width: 1100px) {
  .catalog-grid, .goods-strip, .vendor-grid, .pattern-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; flex-wrap: wrap; }
  .hero-side > * { flex: 1 1 300px; }
  .home-lower { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .swatch-stage { position: static; }
  .pattern-preview { grid-template-columns: 1fr; }
  .pp-stage { border-right: none; border-bottom: var(--border-mid); min-height: 320px; }
  .event-grid, .journal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }

  .masthead { margin: 10px 10px 0; }
  .masthead-inner { padding: 1rem; gap: 0.8rem; }
  .masthead-badges { display: none; }
  .menu-btn { display: inline-flex; }

  .nav-strip {
    display: none;
    flex-direction: column;
    margin: 10px 10px 0;
  }
  .nav-strip.open { display: flex; }
  .nav-strip a { border-right: none; border-bottom: var(--border-mid); padding: 14px; }
  .nav-strip a:last-child { border-bottom: none; }

  .section { margin: 20px 10px 0; }
  .filter-chip { padding: 11px 14px; }
  .nav-strip a { min-height: 48px; }
  .hero { margin: 16px 10px 0; gap: 14px; }
  .hero-main { min-height: 400px; }
  .hero-caption { padding: 1.4rem 1.2rem 1.6rem; }

  .catalog-grid, .goods-strip, .vendor-grid, .pattern-grid, .pairs-strip {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .essay-card { grid-template-columns: 90px 1fr; }
  .journal-grid .essay-card { grid-template-columns: 100px 1fr; }

  .article .art-body { padding: 18px 18px 24px; }
  .foot-grid { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
  .ticker { font-size: 11px; }
}

@media (max-width: 460px) {
  .catalog-grid, .goods-strip, .vendor-grid, .pattern-grid, .pairs-strip { grid-template-columns: 1fr; }
  .swatch-zoom { height: 320px; }
  .filter-note { margin-left: 0; width: 100%; }
}

/* ---------- reduced motion: the bazaar holds still ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; padding-left: 0; }
  .confetto { display: none; }
  .hero-ornament { animation: none; }
  .burst-bit { display: none; }
  * { transition-duration: 0.01ms !important; }
}
