/* =====================================================================
   Red Lantern Bites by Bernadette — public NFC card
   Night market at dusk: ink sky, lantern red, gold hairlines, rice paper.
   Mobile first (390px), then wider screens.
   ===================================================================== */

:root {
  /* Brand */
  --lantern-red: #9B1C1C;
  --lantern-hot: #C4321F;
  --lantern-deep: #6E1212;
  --ink: #160B0A;
  --ink-2: #21110E;
  --ink-3: #2E1A15;
  --gold: #E3B04B;
  --gold-soft: rgba(227, 176, 75, 0.55);
  --gold-hair: rgba(227, 176, 75, 0.35);
  --paper: #F3E7D3;
  --paper-light: #FBF4E6;
  --paper-deep: #E6D5BA;
  --paper-ink: #2A1714;
  --paper-muted: #6A4B3F;
  --jade: #2E6B57;
  --night-text: #F3E7D3;
  --night-muted: #C9B59B;

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-ink: cubic-bezier(.65, 0, .35, 1);
  --ease-stamp: cubic-bezier(.34, 1.56, .64, 1);

  /* Layout */
  --gutter: clamp(1.1rem, 5vw, 3rem);
  --radius: 6px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --quick-h: 68px;

  --focus: var(--gold);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--night-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain over everything, very faint */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: url('/assets/textures/grain.svg');
  background-size: 220px 220px;
  opacity: 0.11;
  mix-blend-mode: overlay;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pre-line { white-space: pre-line; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--paper);
  color: var(--paper-ink);
  font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.icon { display: block; flex-shrink: 0; }
[data-icon] { display: inline-flex; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--lantern-red);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .8rem 1.25rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--gold-soft), 0 10px 24px -12px rgba(0, 0, 0, .7);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--lantern { --btn-bg: var(--lantern-red); --btn-fg: var(--paper); }
.btn--lantern:hover { --btn-bg: var(--lantern-hot); }
.btn--paper { --btn-bg: var(--paper); --btn-fg: var(--paper-ink); box-shadow: inset 0 0 0 1px rgba(42, 23, 20, .2), 0 10px 24px -12px rgba(0, 0, 0, .7); }
.btn--paper:hover { --btn-bg: var(--paper-light); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--paper);
  box-shadow: inset 0 0 0 1px var(--gold-soft);
}
.btn--small { min-height: 44px; padding: .5rem .9rem; font-size: .92rem; }
.btn--wide { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .55; cursor: not-allowed; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
}

/* ---------------------------------------------------------------------
   0. Notice bar
   --------------------------------------------------------------------- */
.notice {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .5rem .55rem var(--gutter);
  background: var(--lantern-red);
  color: var(--paper);
  border-bottom: 1px solid var(--gold-soft);
  font-size: .9rem;
  line-height: 1.35;
}
.notice[hidden] { display: none; }
.notice--closed { background: var(--ink-3); color: var(--gold); }
.notice__text { flex: 1; }
.notice__text strong { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-right: .35rem; }
.notice__text a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.notice__close {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex-shrink: 0;
  border: 0; background: transparent; cursor: pointer; border-radius: var(--radius);
}

/* ---------------------------------------------------------------------
   1. Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--notice-h, 0px));
  min-height: calc(100svh - var(--notice-h, 0px));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__stage { position: absolute; inset: 0; z-index: -1; }
.hero__fallback,
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__fallback { transition: opacity 1.2s var(--ease-out); }
.hero__canvas {
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}
.hero.is-3d .hero__canvas { opacity: 1; }
.hero.is-3d .hero__fallback { opacity: 0; }

/* A warm scrim at the bottom so the text always reads over the lanterns */
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to top, var(--ink) 8%, rgba(22, 11, 10, .86) 38%, rgba(22, 11, 10, 0));
}

.hero__copy {
  position: relative;
  padding: 0 var(--gutter) calc(2.2rem + 24px);
  max-width: 44rem;
}
.hero__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold-hair);
}
.hero__kicker {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .9rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero__kicker [data-setting]:empty { display: none; }
.hero__kicker [data-setting]:empty ~ * { display: none; }
.hero__kicker-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--lantern-hot);
  box-shadow: 0 0 10px 2px rgba(224, 69, 42, .7);
}
.hero__kicker:has([data-setting]:empty) .hero__kicker-dot { display: none; }

.hero__title {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  font-weight: 640;
  font-size: clamp(3rem, min(15vw, 11vh), 6.4rem);
  line-height: .88;
  letter-spacing: -.02em;
  color: var(--paper);
  text-wrap: balance;
}
.hero__title .word { display: inline-block; white-space: nowrap; }
.hero__title .ink-letter { display: inline-block; }
.hero__by {
  display: block;
  margin: .55em 0 0 1.6em;
  font-size: .34em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--gold);
}
.hero__by::before {
  content: '';
  display: inline-block;
  width: 1.6em;
  height: 1px;
  margin: 0 .45em .3em -2.05em;
  background: var(--gold-soft);
  vertical-align: middle;
}

.hero__tagline {
  max-width: 22rem;
  margin-top: 1.1rem;
  color: var(--night-muted);
  font-size: 1.08rem;
  line-height: 1.45;
}
.hero__tagline:empty { display: none; }

.hero__actions {
  display: grid;
  gap: .7rem;
  margin-top: 1.6rem;
}

.tilt-btn {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 1rem);
  right: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .4rem .85rem;
  border: 1px solid var(--gold-hair);
  border-radius: var(--radius);
  background: rgba(22, 11, 10, .55);
  color: var(--gold);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}
.tilt-btn[hidden] { display: none; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44px;
  height: 44px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
}
.hero__scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 2.4s var(--ease-ink) infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------------------------------------------------------------------
   2. Quick actions
   --------------------------------------------------------------------- */
.quick {
  position: relative;
  z-index: 20;
  min-height: var(--quick-h);
  padding: 0 calc(var(--gutter) - .4rem);
  background: var(--ink);
}
.quick__list {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr));
  gap: .35rem;
  padding: .45rem 0;
}
.quick__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  width: 100%;
  min-height: 58px;
  padding: .35rem .2rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink-2);
  color: var(--paper);
  text-decoration: none;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--gold-hair);
  transition: background-color .25s var(--ease-out), transform .3s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.quick__btn .icon { color: var(--gold); }
.quick__btn:active { transform: scale(.95); background: var(--ink-3); }
.quick__btn--main { background: var(--lantern-red); }
.quick__btn--main .icon { color: var(--paper); }
.quick__btn[aria-disabled='true'] { opacity: .45; pointer-events: none; }

@media (max-width: 759px) {
  .is-docked .quick__list {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .45rem .6rem calc(.45rem + var(--safe-bottom));
    background: rgba(22, 11, 10, .94);
    border-top: 1px solid var(--gold-hair);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: dock-in .5s var(--ease-out);
  }
  .is-docked .footer { padding-bottom: calc(var(--quick-h) + 2rem + var(--safe-bottom)); }
  .is-docked .toast-region { bottom: calc(var(--quick-h) + 1rem + var(--safe-bottom)); }
}
@keyframes dock-in { from { transform: translateY(100%); } to { transform: none; } }

/* ---------------------------------------------------------------------
   Section headings (deliberately not centered)
   --------------------------------------------------------------------- */
.section-head { padding: 0 var(--gutter); margin-bottom: 1.6rem; }
.eyebrow {
  display: inline-block;
  margin-bottom: .5rem;
  color: var(--lantern-red);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow--gold { color: var(--gold); }
.section-title {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 100, 'opsz' 96;
  font-weight: 620;
  font-size: clamp(2.3rem, 11vw, 4.6rem);
  line-height: .95;
  letter-spacing: -.015em;
}
.section-sub {
  max-width: 26rem;
  margin-top: .6rem;
  font-size: 1rem;
}
.section-sub:empty { display: none; }

/* ---------------------------------------------------------------------
   The paper sheet (origins + snacks)
   --------------------------------------------------------------------- */
.paper {
  --focus: var(--lantern-red);
  position: relative;
  z-index: 5;
  margin-top: .8rem;
  padding: 3rem 0 4rem;
  background-color: var(--paper);
  color: var(--paper-ink);
  border-radius: 22px 26px 0 0;
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.paper::before {
  /* thin gold hairline, inset, like the edge of a lacquer tray */
  content: '';
  position: absolute;
  inset: 10px 10px auto 10px;
  height: 1px;
  background: var(--gold);
  opacity: .7;
}
.paper .section-sub { color: var(--paper-muted); }

/* ---------------------------------------------------------------------
   3. Where it's from — passport stamps
   --------------------------------------------------------------------- */
.section-head--origins { margin-left: .4rem; }
.stamps {
  display: flex;
  gap: .3rem;
  padding: .8rem var(--gutter) 1.6rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.stamps::-webkit-scrollbar { display: none; }
.stamps li { flex: 0 0 auto; scroll-snap-align: start; }
.stamps li:nth-child(1) { --r: -7deg; --y: 4px; }
.stamps li:nth-child(2) { --r: 5deg;  --y: 18px; }
.stamps li:nth-child(3) { --r: -2deg; --y: 0px; }
.stamps li:nth-child(4) { --r: 9deg;  --y: 14px; }
.stamps li:nth-child(5) { --r: -5deg; --y: 6px; }

.stamp {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .25rem;
  width: 104px;
  padding: .35rem;
  border: 0;
  background: none;
  color: var(--paper-ink);
  cursor: pointer;
  transform: translateY(var(--y)) rotate(var(--r));
  transition: transform .5s var(--ease-stamp), opacity .3s var(--ease-out), filter .3s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.stamp img {
  width: 92px;
  height: 92px;
  mix-blend-mode: multiply;
  opacity: .86;
  transition: opacity .3s var(--ease-out);
}
.stamp__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .95rem;
  font-weight: 500;
}
.stamps.has-filter .stamp { opacity: .42; filter: grayscale(.6); }
.stamps.has-filter .stamp[aria-pressed='true'] { opacity: 1; filter: none; }
.stamp[aria-pressed='true'] img { opacity: 1; }
.stamp[aria-pressed='true'] .stamp__name { text-decoration: underline; text-decoration-color: var(--lantern-red); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.stamp.is-pressing { animation: stamp-press .55s var(--ease-stamp); }
@keyframes stamp-press {
  0%   { transform: translateY(var(--y)) rotate(var(--r)) scale(1); }
  35%  { transform: translateY(calc(var(--y) - 6px)) rotate(calc(var(--r) - 3deg)) scale(1.12); }
  60%  { transform: translateY(var(--y)) rotate(var(--r)) scale(.92); }
  100% { transform: translateY(var(--y)) rotate(var(--r)) scale(1); }
}

/* Fan divider */
.fan-rule {
  display: block;
  width: min(220px, 56vw);
  height: 64px;
  margin: 1rem auto 2.8rem 18%;
  color: var(--gold);
}
.fan-rule--night { margin: 0 12% 3rem auto; opacity: .8; }

/* ---------------------------------------------------------------------
   Chips
   --------------------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap; /* every filter stays visible: no hidden sideways scrolling */
  gap: .45rem;
  padding: 0 var(--gutter) 1.4rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  min-height: 44px;
  padding: .45rem .95rem .45rem .75rem;
  border: 1px solid rgba(42, 23, 20, .22);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper-ink);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.chip .icon { color: var(--lantern-red); }
.chip[aria-pressed='true'] { background: var(--paper-ink); border-color: var(--paper-ink); color: var(--paper); }
.chip[aria-pressed='true'] .icon { color: var(--gold); }
.chips--night .chip { border-color: var(--gold-hair); color: var(--paper); }
.chips--night .chip .icon { color: var(--gold); }
.chips--night .chip[aria-pressed='true'] { background: var(--paper); color: var(--paper-ink); border-color: var(--paper); }
.chips--night .chip[aria-pressed='true'] .icon { color: var(--lantern-red); }

/* ---------------------------------------------------------------------
   4. Snacks — price-tag cards
   --------------------------------------------------------------------- */
.snacks:focus { outline: none; }
.tag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem .9rem;
  padding: .4rem var(--gutter) 0;
}
/* Second column sits lower, like tags hung on a string at different heights */
.tag-grid > li:nth-child(even) { margin-top: .9rem; }
.tag-grid > li { --r: -.8deg; }
.tag-grid > li:nth-child(3n + 2) { --r: 1.2deg; }
.tag-grid > li:nth-child(4n + 3) { --r: -1.6deg; }
.tag-grid > li:nth-child(5n + 4) { --r: .6deg; }

.tag {
  --tx: 0deg;
  --ty: 0deg;
  position: relative;
  display: block;
  width: 100%;
  padding: .55rem .55rem .8rem;
  border: 0;
  border-radius: 4px 4px 10px 10px;
  background: var(--paper-light);
  color: var(--paper-ink);
  text-align: left;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px var(--gold-hair),
    0 1px 0 rgba(42, 23, 20, .06),
    0 14px 26px -16px rgba(42, 23, 20, .55);
  transform: perspective(700px) rotateX(var(--tx)) rotateY(var(--ty)) rotate(var(--r));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.tag.is-tilting { transition: transform .12s linear, box-shadow .3s var(--ease-out); }
/* punched hole + string, so it reads as a hanging price tag */
.tag::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  width: 1px;
  height: 22px;
  background: rgba(42, 23, 20, .45);
  transform: rotate(-4deg);
}
.tag::after {
  content: '';
  position: absolute;
  top: 5px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 1px 2px rgba(42, 23, 20, .5);
}
.tag__img {
  position: relative;
  display: block;
  margin-top: .9rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 3px;
  background: var(--paper-deep);
}
.tag__img img { width: 100%; height: 100%; object-fit: cover; }
.tag__stamp {
  position: absolute;
  top: .5rem;
  right: -.4rem;
  width: 44px;
  height: 44px;
  transform: rotate(14deg);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.tag__badge {
  position: absolute;
  left: .45rem;
  bottom: .45rem;
  max-width: calc(100% - .9rem);
  padding: .18rem .45rem;
  border-radius: 3px;
  background: var(--lantern-red);
  color: var(--paper);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.25;
}
.tag__badge--gold { background: var(--gold); color: var(--paper-ink); }
.tag__name {
  display: block;
  margin-top: .7rem;
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 100, 'opsz' 24;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.15;
  hyphens: auto;
}
.tag__meta {
  display: block;
  margin-top: .15rem;
  color: var(--paper-muted);
  font-size: .78rem;
}
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .5rem;
  margin-top: .5rem;
}
.price__now {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 50, 'opsz' 48;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--lantern-red);
  font-variant-numeric: lining-nums;
}
.price__was {
  position: relative;
  color: var(--paper-muted);
  font-size: .86rem;
  text-decoration: line-through;
  text-decoration-color: var(--lantern-red);
  text-decoration-thickness: 1.5px;
}
.stock-tag {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: .3rem;
  margin-top: .45rem;
  color: var(--jade);
  font-size: .76rem;
  font-weight: 700;
}
.stock-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock-tag--low { color: #8A4B0E; }

/* Out of stock: faded photo + a red "sold out" ink stamp */
.tag.is-out .tag__img img { filter: grayscale(.85) contrast(.9); opacity: .65; }
.tag.is-out .price__now { color: var(--paper-muted); }
.sold-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: .3rem .6rem;
  border: 2px solid var(--lantern-red);
  border-radius: 4px;
  color: var(--lantern-red);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .9rem;
  line-height: 1.05;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-12deg);
  background: rgba(251, 244, 230, .78);
  mix-blend-mode: multiply;
}
.sold-stamp small { display: block; font-size: .62rem; font-style: italic; text-transform: none; letter-spacing: 0; font-weight: 600; }

.link-btn {
  min-height: 44px;
  padding: 0 .1rem;
  border: 0;
  background: none;
  color: var(--lantern-red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Skeletons */
.skeleton {
  border-radius: 4px 4px 10px 10px;
  background: var(--paper-light);
  box-shadow: inset 0 0 0 1px var(--gold-hair);
  padding: .55rem .55rem .8rem;
}
.skeleton__img, .skeleton__line {
  border-radius: 3px;
  background: linear-gradient(100deg, var(--paper-deep) 30%, #F1E4CC 50%, var(--paper-deep) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.6s var(--ease-ink) infinite;
}
.skeleton__img { margin-top: .9rem; aspect-ratio: 1 / 1; }
.skeleton__line { height: .9rem; margin-top: .7rem; width: 80%; }
.skeleton__line--short { width: 45%; height: 1.2rem; }
.grid-state--night .skeleton,
.spread .skeleton { background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--gold-hair); }
.spread .skeleton__img, .spread .skeleton__line {
  background: linear-gradient(100deg, var(--ink-3) 30%, #3A2219 50%, var(--ink-3) 70%);
  background-size: 300% 100%;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Empty / error */
.grid-state { padding: 0 var(--gutter); }
.grid-state:empty { display: none; }
.state-card {
  position: relative;
  max-width: 26rem;
  padding: 1.4rem 1.3rem 1.3rem;
  border-radius: var(--radius);
  background: var(--paper-light);
  color: var(--paper-ink);
  box-shadow: inset 0 0 0 1px var(--gold-hair);
  transform: rotate(-.6deg);
}
.state-card__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.state-card__text { margin: .4rem 0 1rem; color: var(--paper-muted); }
.grid-state--night .state-card { background: var(--ink-2); color: var(--paper); }
.grid-state--night .state-card__text { color: var(--night-muted); }

/* ---------------------------------------------------------------------
   5. More than snacks — editorial spread on the night side
   --------------------------------------------------------------------- */
.more {
  position: relative;
  padding: 4.5rem 0 3rem;
  background:
    radial-gradient(60% 40% at 90% 0%, rgba(155, 28, 28, .28), transparent 70%),
    var(--ink);
}
.section-head--more { margin-left: auto; text-align: right; max-width: 30rem; }
.section-head--more .section-sub { margin-left: auto; color: var(--night-muted); }
.chips--night { justify-content: flex-end; }

/* Same-size frames so a long list stays compact; every second one sits a little lower. */
.spread {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem .9rem;
  padding: .5rem var(--gutter) 0;
}
.spread > li:nth-child(even) { margin-top: 1.2rem; }

.piece {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.piece__frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink-2);
  border-radius: 2px;
}
.piece__frame::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold-hair);
  pointer-events: none;
}
.piece__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
@media (hover: hover) {
  .piece:hover .piece__frame img { transform: scale(1.04); }
}
.piece.is-out .piece__frame img { filter: grayscale(.85); opacity: .6; }
.piece__kind {
  display: block;
  margin-top: .7rem;
  color: var(--gold);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.piece__name {
  display: block;
  margin-top: .2rem;
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 100, 'opsz' 36;
  font-size: 1.12rem;
  font-weight: 560;
  line-height: 1.15;
}

/* "Show more" under a grid */
.show-more { display: flex; justify-content: center; padding: 1.8rem var(--gutter) 0; }
.show-more:empty { display: none; }
.show-more__btn { --btn-bg: transparent; --btn-fg: var(--paper-ink); box-shadow: inset 0 0 0 1px rgba(42, 23, 20, .3); }
.show-more__btn:hover { --btn-bg: var(--paper-light); }
.show-more--night .show-more__btn { --btn-fg: var(--paper); box-shadow: inset 0 0 0 1px var(--gold-soft); }
.show-more--night .show-more__btn:hover { --btn-bg: var(--ink-2); }
.show-more__count { color: var(--paper-muted); font-weight: 500; }
.show-more--night .show-more__count { color: var(--night-muted); }
.piece .price__now { color: var(--gold); font-size: 1.15rem; }
.piece .price__was { color: var(--night-muted); text-decoration-color: var(--gold); }
.piece .sold-stamp { background: rgba(22, 11, 10, .7); color: #FF8A73; border-color: #FF8A73; mix-blend-mode: normal; }

/* ---------------------------------------------------------------------
   7. How to order
   --------------------------------------------------------------------- */
.how { padding: 1rem var(--gutter) 4rem; }
.how .section-head { padding: 0; }
.steps {
  display: grid;
  gap: 2.2rem;
  margin: 1rem 0 2.6rem;
  counter-reset: step;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 1rem;
  align-items: start;
  align-content: start;
}
.step:nth-child(2) { margin-left: 1.6rem; }
.step:nth-child(3) { margin-left: .6rem; }
.step__num {
  grid-column: 2;
  color: var(--gold);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.step__num::before { content: 'Step '; }
.step__icon {
  grid-row: 1 / span 3;
  grid-column: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--gold);
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--gold-hair);
}
.step__title {
  grid-column: 2;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.1;
  margin-top: .2rem;
}
.step__text { grid-column: 2; margin-top: .3rem; color: var(--night-muted); max-width: 30rem; }

/* ---------------------------------------------------------------------
   8. Footer
   --------------------------------------------------------------------- */
.footer {
  padding: 3.2rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--gold-hair);
  background: #110807;
}
.footer__note {
  --focus: var(--lantern-red);
  max-width: 26rem;
  padding: 1.5rem 1.4rem 1.2rem;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 3px;
  transform: rotate(-1.4deg);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .8), inset 0 0 0 1px var(--gold-hair);
}
.footer__letter {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: 'SOFT' 100, 'opsz' 18;
  font-size: 1.12rem;
  line-height: 1.5;
}
.footer__sign {
  margin-top: .8rem;
  text-align: right;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--lantern-red);
}
.footer__facts {
  display: grid;
  gap: 1.3rem;
  margin: 2.6rem 0 2rem;
}
.footer__fact dt {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer__fact dd { margin: .25rem 0 0; color: var(--paper); }
.footer__fact dd:empty::after { content: '—'; color: var(--night-muted); }
.pay-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.pay-list li {
  padding: .2rem .6rem;
  border: 1px solid var(--gold-hair);
  border-radius: 3px;
  font-size: .88rem;
  font-weight: 600;
}
.footer__social { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .4rem .8rem .4rem .6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--gold-hair);
}
.footer__social .icon { color: var(--gold); }
.footer__motto {
  margin-top: 2.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold);
}
.footer__motto span { margin: 0 .3rem; color: var(--lantern-hot); font-style: normal; }
.footer__small { margin-top: .4rem; color: var(--night-muted); font-size: .8rem; }

/* ---------------------------------------------------------------------
   6. Product sheet (dialog)
   --------------------------------------------------------------------- */
.sheet {
  --focus: var(--lantern-red);
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 94svh;
  max-height: 94vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper-ink);
  overflow: visible;
}
.sheet::backdrop {
  background: rgba(10, 5, 4, .72);
  animation: fade-in .35s var(--ease-out);
}
.sheet[open] .sheet__panel { animation: sheet-up .55s var(--ease-out); }
.sheet.is-closing .sheet__panel { animation: sheet-down .3s var(--ease-ink) forwards; }
.sheet.is-closing::backdrop { opacity: 0; transition: opacity .3s; }
.sheet__panel {
  position: relative;
  max-height: 94svh;
  max-height: 94vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 0 calc(1.4rem + var(--safe-bottom));
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -20px 50px -10px rgba(0, 0, 0, .6);
  transform: translateY(var(--drag, 0px));
}
.sheet__grab {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  height: 24px;
  touch-action: none;
}
.sheet__grab span { width: 44px; height: 4px; border-radius: 2px; background: rgba(42, 23, 20, .3); }
.sheet__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(243, 231, 211, .92);
  box-shadow: inset 0 0 0 1px var(--gold-hair);
  cursor: pointer;
}
.sheet__body { padding: 0 var(--gutter); }
.sheet--small .sheet__body { padding-top: .4rem; padding-bottom: .6rem; }
.sheet__title {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 100, 'opsz' 48;
  font-size: 1.9rem;
  font-weight: 620;
  line-height: 1.05;
  padding-right: 2.6rem;
}
.sheet__text { margin-top: .7rem; color: var(--paper-muted); }
.sheet__text strong { color: var(--paper-ink); }

@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sheet-down { to { transform: translateY(105%); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Gallery */
.gallery { position: relative; margin: 0 calc(var(--gutter) * -1) 1.2rem; }
.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide {
  flex: 0 0 100%;
  aspect-ratio: 1 / 1;
  max-height: 58vh;
  scroll-snap-align: center;
  background: var(--paper-deep);
}
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: .7rem;
  display: flex;
  justify-content: center;
  gap: .1rem;
}
.gallery__dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  cursor: pointer;
}
.gallery__dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(251, 244, 230, .6);
  box-shadow: 0 0 0 1px rgba(42, 23, 20, .35);
  transition: transform .3s var(--ease-out), background-color .3s;
}
.gallery__dot[aria-current='true']::before { background: var(--lantern-red); transform: scale(1.3); }

.detail__head { display: flex; align-items: flex-start; gap: .8rem; }
.detail__stamp { width: 58px; height: 58px; flex-shrink: 0; transform: rotate(-8deg); mix-blend-mode: multiply; }
.detail__origin { color: var(--paper-muted); font-size: .85rem; margin-top: .3rem; }
.detail .price { margin-top: .9rem; }
.detail .price__now { font-size: 2rem; }
.detail__desc { margin-top: 1rem; white-space: pre-line; }
.detail__facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .45rem 1rem;
  margin: 1.2rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(42, 23, 20, .15);
  font-size: .95rem;
}
.detail__facts dt { color: var(--paper-muted); font-weight: 600; }
.detail__facts dd { margin: 0; }
.detail__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }
.detail__tags li {
  padding: .15rem .55rem;
  border-radius: 3px;
  background: var(--paper-deep);
  font-size: .8rem;
  font-weight: 600;
}
.detail__actions { display: grid; gap: .6rem; margin-top: 1.4rem; }

/* Inquiry form */
.ask {
  margin-top: 1.4rem;
  padding: 1.2rem 1rem 1rem;
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: inset 0 0 0 1px var(--gold-hair);
}
.ask[hidden] { display: none; }
.ask__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.field { display: grid; gap: .3rem; margin-top: .9rem; }
.field label { font-weight: 700; font-size: .9rem; }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .8rem;
  border: 1px solid #B9A385;
  border-radius: var(--radius);
  background: #FFFBF3;
  color: var(--paper-ink);
  font: inherit;
  font-size: 16px; /* stops iOS from zooming in */
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--lantern-red); outline-offset: 1px; border-color: var(--lantern-red); }
.field__hint { color: var(--paper-muted); font-size: .8rem; }
.field__error { color: #9B1C1C; font-size: .85rem; font-weight: 600; }
.field__error:empty { display: none; }
.field [aria-invalid='true'] { border-color: #9B1C1C; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask__done { padding: .4rem 0; }
.ask__done strong { font-family: var(--font-display); font-size: 1.2rem; display: block; }

.copy-row { display: flex; gap: .6rem; align-items: center; margin-top: .6rem; }
.copy-row__value {
  flex: 1;
  padding: .7rem .8rem;
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: inset 0 0 0 1px var(--gold-hair);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Toasts */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + var(--safe-bottom));
  z-index: 95;
  display: grid;
  gap: .5rem;
  width: min(92vw, 26rem);
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  padding: .8rem 1rem;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--paper-ink);
  font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--gold-hair);
  animation: toast-in .45s var(--ease-out);
  pointer-events: auto;
}
.toast--error { border-left: 4px solid var(--lantern-red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* Reveal helper (only active when GSAP loaded) */
.js-anim [data-reveal] { opacity: 0; }

/* ---------------------------------------------------------------------
   Wider screens
   --------------------------------------------------------------------- */
@media (min-width: 600px) {
  .hero__actions { grid-template-columns: auto auto; justify-content: start; }
  .tag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tag-grid > li:nth-child(even) { margin-top: 0; }
  .tag-grid > li:nth-child(3n + 2) { margin-top: 1.2rem; }
  .tag-grid > li:nth-child(3n) { margin-top: .8rem; }
  .stamps { justify-content: flex-start; gap: 1rem; }
  .stamp { width: 124px; }
  .stamp img { width: 108px; height: 108px; }
  .footer__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  :root { --quick-h: 0px; }
  .quick { padding: 0 var(--gutter); }
  .quick__list {
    grid-template-columns: repeat(5, max-content);
    justify-content: start;
    gap: .5rem;
    padding: 1rem 0;
  }
  .quick__btn {
    flex-direction: row;
    gap: .5rem;
    min-height: 48px;
    padding: .5rem 1rem;
    font-size: .92rem;
  }
  .quick__label { white-space: nowrap; }

  .paper { margin: 1rem 2.5vw 0; border-radius: 26px 30px 0 0; }

  .spread { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.4rem; }
  .spread > li:nth-child(n) { margin-top: 0; }
  .spread > li:nth-child(3n + 2) { margin-top: 1.6rem; }

  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .step { grid-template-columns: 1fr; }
  .step:nth-child(2) { margin: 3rem 0 0; }
  .step:nth-child(3) { margin: 1.2rem 0 0; }
  .step__icon, .step__num, .step__title, .step__text { grid-column: 1; grid-row: auto; }
  .step__icon { order: -1; margin-bottom: .9rem; }
  .how .btn--wide { width: auto; }

  .footer {
    display: grid;
    grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
    column-gap: 4rem;
    align-items: start;
  }
  .footer__facts { margin-top: 0; }
  .footer__social, .footer__motto, .footer__small { grid-column: 2; }

  /* Product detail becomes a centered two-column modal */
  .sheet {
    inset: 0;
    width: min(960px, 92vw);
    max-height: 88vh;
    margin: auto;
  }
  .sheet--small { width: min(480px, 92vw); }
  .sheet__panel { max-height: 88vh; border-radius: 10px; padding-bottom: 1.6rem; }
  .sheet[open] .sheet__panel { animation: modal-in .5s var(--ease-out); }
  .sheet.is-closing .sheet__panel { animation: modal-out .25s var(--ease-ink) forwards; }
  .sheet__grab { display: none; }
  .sheet__body { padding: 1.6rem 1.8rem 0; }
  .detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
  .detail .gallery { margin: 0; position: sticky; top: 0; }
  .gallery__slide { max-height: none; }
  .detail__info { padding-top: .5rem; }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }

@media (min-width: 1024px) {
  .hero__copy { padding-bottom: 3.6rem; margin-left: 4vw; }
  .hero__title { font-size: clamp(3rem, min(15vw, 9.5vh), 6.4rem); }
  .hero__tagline { max-width: 30rem; margin-top: .9rem; }
  .hero__actions { margin-top: 1.3rem; }
  .tag-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem 1.4rem; max-width: 1320px; }
  .tag-grid > li:nth-child(n) { margin-top: 0; }
  .tag-grid > li:nth-child(5n + 2), .tag-grid > li:nth-child(5n + 4) { margin-top: 1.4rem; }
  .spread { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.2rem 1.4rem; }
  .spread > li:nth-child(n) { margin-top: 0; }
  .spread > li:nth-child(5n + 2), .spread > li:nth-child(5n + 4) { margin-top: 1.4rem; }
  .section-head--snacks { display: grid; grid-template-columns: auto 1fr; column-gap: 2rem; align-items: end; }
  .section-head--snacks .eyebrow { grid-column: 1 / -1; }
  .section-head--snacks .section-sub { margin: 0 0 .5rem; }
  .more, .how { max-width: 1320px; margin: 0 auto; }
}

@media (hover: hover) and (pointer: fine) {
  .tag:hover { box-shadow: inset 0 0 0 1px var(--gold-soft), 0 24px 40px -18px rgba(42, 23, 20, .6); }
  .stamp:hover { transform: translateY(calc(var(--y) - 4px)) rotate(calc(var(--r) * .6)); }
  .chip:hover { border-color: var(--lantern-red); }
  .chips--night .chip:hover { border-color: var(--gold); }
}

/* ---------------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__scroll-line { animation: none; transform: none; }
  .js-anim [data-reveal] { opacity: 1; }
}

/* Long words typed by people (links, codes) wrap instead of overflowing */
body { overflow-wrap: break-word; }
.tag__name, .piece h3, .sheet__title, .row-card__title, .attention__main, .inquiry-msg, td { overflow-wrap: anywhere; }
.gallery__track:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
