/* Spoonsnap site. Tokens mirror DESIGN.md ("The Snack Counter"): warm paper, ink, chili for the brand,
   butter for celebration, the dark stage for the ticket moment. */
@font-face {
  font-family: 'Bricolage';
  src: url('bricolage-800.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

:root {
  --paper: #faf6f0;
  --paper-2: #f2ece3;
  --hairline: #e2dbd4;
  --ink: #201612;
  --ink-2: #605650;
  --ink-3: #877e79;
  --chili: #e94625;
  --chili-deep: #c12b11;
  --butter: #fad957;
  --stage: #140e0b;
  --stage-2: #241c19;
  --stage-ink: #f7f3ee;
  --stage-ink-2: #aaa39d;
  --display: 'Bricolage', ui-rounded, -apple-system, system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1120px;
  --out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; letter-spacing: -0.02em; text-wrap: balance; line-height: 1.02; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
:focus-visible { outline: 3px solid var(--chili); outline-offset: 3px; border-radius: 6px; }

/* ── Nav ── */
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav a.quiet { font-weight: 600; font-size: 15px; color: var(--ink-2); text-decoration: none; }

/* ── Hero ── */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(24px, 6vw, 80px) clamp(48px, 8vw, 112px); }
.hero h1 { font-size: clamp(52px, 8vw, 92px); }
.hero h1 .dot { color: var(--chili); }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); margin-top: 22px; max-width: 30ch; }
.soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 16px; }
.soon svg { width: 18px; height: 18px; fill: currentColor; }
.fine { margin-top: 12px; font-size: 14px; color: var(--ink-3); }

/* The ticket stage */
.stage { position: relative; background: var(--stage); border-radius: 32px; padding: 34px 28px 0; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.stage .photo { position: absolute; width: 150px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; border: 4px solid var(--paper); box-shadow: 0 18px 40px rgb(0 0 0 / 0.4); }
.stage .photo img { width: 100%; height: 100%; object-fit: cover; }
.stage .p1 { top: 26px; left: -14px; transform: rotate(-8deg); }
.stage .p2 { top: 18px; right: -10px; transform: rotate(7deg); }
.ticket { position: relative; z-index: 1; margin: 0 auto; width: min(100%, 330px); background: var(--paper); padding: 16px 20px 34px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); }
.ticket::before { content: ''; position: absolute; left: 0; right: 0; top: -7px; height: 7px; background: linear-gradient(-45deg, var(--paper) 5px, transparent 0) 0 0 / 14px 7px repeat-x, linear-gradient(45deg, var(--paper) 5px, transparent 0) 0 0 / 14px 7px repeat-x; }
.ticket .meta { display: flex; justify-content: space-between; font: 700 11px/1.3 var(--mono); letter-spacing: 0.08em; color: var(--ink-3); }
.ticket .no { font: 800 15px/1.4 var(--mono); margin-top: 4px; }
.ticket .rule { border-top: 1.5px dashed var(--hairline); margin: 10px 0; }
.ticket h3 { font-size: 27px; line-height: 1.08; }
.ticket ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 7px; }
.ticket li { display: grid; grid-template-columns: 70px 1fr; gap: 8px; font-size: 15px; font-weight: 500; opacity: 0; transform: translateY(8px); animation: print 0.35s var(--out) forwards; }
.ticket li span { font: 700 13px/1.5 var(--mono); color: var(--chili-deep); }
.ticket li:nth-child(1) { animation-delay: 0.5s; } .ticket li:nth-child(2) { animation-delay: 0.7s; } .ticket li:nth-child(3) { animation-delay: 0.9s; }
.ticket li:nth-child(4) { animation-delay: 1.1s; } .ticket li:nth-child(5) { animation-delay: 1.3s; }
.stamp { position: absolute; right: 18px; bottom: 44px; border: 3px solid var(--chili); border-radius: 10px; padding: 4px 14px 2px; color: var(--chili); background: rgb(250 246 240 / 0.85); font: 800 34px/1 var(--display); letter-spacing: 0.06em; transform: rotate(-9deg) scale(2.4); opacity: 0; animation: stamp 0.38s cubic-bezier(0.55, 0, 1, 0.45) 1.8s forwards; }
.slot { position: relative; z-index: 2; height: 18px; margin: -10px -8px 22px; border-radius: 9px; background: var(--stage-2); border: 1px solid rgb(247 243 238 / 0.08); }
.slot::after { content: ''; position: absolute; inset: 7px 10px; border-radius: 2px; background: #000; }
.stage .caption { position: relative; z-index: 2; color: var(--stage-ink); font: 800 26px/1.1 var(--display); padding-bottom: 6px; }
.stage .caption small { display: block; font: 400 15px/1.4 var(--sans); color: var(--stage-ink-2); margin-top: 4px; padding-bottom: 26px; }
@keyframes print { to { opacity: 1; transform: none; } }
@keyframes stamp { 60% { opacity: 1; transform: rotate(-9deg) scale(0.94); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }

/* ── How it works ── */
.how { padding-block: clamp(40px, 7vw, 96px); border-top: 1px solid var(--hairline); }
.how > h2 { font-size: clamp(36px, 5vw, 60px); max-width: 16ch; }
.steps { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: clamp(28px, 4vw, 44px); }
.step { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; align-items: start; max-width: 720px; }
.step:nth-child(2) { margin-left: clamp(0px, 8vw, 120px); }
.step:nth-child(3) { margin-left: clamp(0px, 16vw, 240px); }
.step .n { font: 800 64px/0.9 var(--display); color: var(--chili); }
.step h3 { font-size: 26px; }
.step p { margin-top: 6px; color: var(--ink-2); max-width: 46ch; }

/* ── Strip of dishes ── */
.dishes { display: flex; gap: 14px; overflow: hidden; padding-block: 8px clamp(40px, 7vw, 96px); }
.dishes img { flex: 0 0 auto; width: clamp(150px, 20vw, 220px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }
.dishes img:nth-child(odd) { transform: rotate(-2deg); } .dishes img:nth-child(even) { transform: rotate(2deg) translateY(14px); }

/* ── Pro / close ── */
.close { background: var(--chili); color: var(--ink); border-radius: 32px; padding: clamp(32px, 6vw, 72px); margin-bottom: clamp(40px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.close h2 { font-size: clamp(40px, 6vw, 72px); }
.close ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-weight: 600; font-size: 17px; }
.close li::before { content: '✓'; display: inline-block; width: 26px; font-weight: 900; }

/* ── Docs ── */
.doc { max-width: 720px; padding-block: 24px 80px; }
.doc h1 { font-size: clamp(40px, 6vw, 56px); }
.doc .date { margin-top: 10px; color: var(--ink-3); font-size: 15px; }
.doc > p { margin-top: 18px; }
.doc h2 { font-size: 26px; margin-top: 40px; }
.doc ul { padding-left: 1.2em; margin: 12px 0 0; display: grid; gap: 8px; }
.doc h2 + p { margin-top: 10px; }
.doc p + p { margin-top: 12px; }
.doc a { color: var(--chili-deep); text-underline-offset: 3px; }
.button { display: inline-block; margin-top: 22px; padding: 14px 24px; border-radius: 999px; background: var(--chili); color: var(--ink) !important; font-weight: 800; text-decoration: none; }

/* ── Footer ── */
footer { border-top: 1px solid var(--hairline); padding-block: 28px 40px; color: var(--ink-2); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; font-weight: 600; }
footer small { flex-basis: 100%; color: var(--ink-3); }

@media (max-width: 860px) {
  .hero, .close { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 480px; }
  .step:nth-child(n) { margin-left: 0; }
  .step { grid-template-columns: 60px minmax(0, 1fr); }
  .step .n { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticket li, .stamp { animation: none; opacity: 1; transform: none; }
  .stamp { transform: rotate(-9deg); }
}
