:root {
  --paper: #fbf4ea;
  --card: #fffaf3;
  --ink: #2e1f2b;
  --soft: #6f5d66;
  --line: #eadccb;
  --pumpkin: #e2772f;
  --pumpkin-ink: #ffffff;
  --candle: #f4c46b;
  --plum: #5b3b5c;
  --glow: rgba(244, 196, 107, 0.35);
  --shadow: 0 10px 30px rgba(70, 40, 30, 0.10);
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1d1519;
    --card: #271c22;
    --ink: #f6ebe0;
    --soft: #c5b2ae;
    --line: #3b2d34;
    --plum: #d9b6d6;
    --glow: rgba(244, 196, 107, 0.18);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(60rem 30rem at 50% -10%, var(--glow), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 17px/1.6 "Nunito", system-ui, -apple-system, sans-serif;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
p { margin: 0 0 1em; }
a { color: var(--plum); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--soft); }
.small { font-size: .9rem; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.25rem; text-decoration: none; color: var(--ink); }
.logo span { display: inline-block; transform: rotate(-8deg); }

.hero { text-align: center; padding: 28px 0 8px; }
.hero p.lead { font-size: 1.15rem; color: var(--soft); max-width: 34rem; margin: 0 auto 1.4em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--pumpkin); color: var(--pumpkin-ink); border: 0; border-radius: 999px;
  padding: .9em 1.6em; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 18px rgba(226, 119, 47, .35); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(226, 119, 47, .42); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }

/* before -> after examples */
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 28px 0; }
.ex { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.ex .row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; align-items: end; }
.ex img { width: 100%; display: block; border-radius: 14px; aspect-ratio: 1; object-fit: cover; }
.ex .label { font-size: .8rem; color: var(--soft); margin-top: 4px; text-align: center; }
.ex .after { position: relative; }
.ex .after img { transition: opacity .6s ease; }
.ex .after img.fade { opacity: 0; }

.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 8px 0 28px; }
.strip figure { margin: 0; text-align: center; font-size: .8rem; color: var(--soft); }
.strip img { width: 100%; border-radius: 12px; aspect-ratio: 1; object-fit: cover; display: block; margin-bottom: 4px; }
@media (max-width: 640px) { .strip { grid-template-columns: repeat(3, 1fr); } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 10px 0 34px; text-align: center; }
.steps div { padding: 6px; }
.steps b { display: block; font-family: "Fraunces", serif; font-size: 1.1rem; margin-bottom: 2px; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; text-align: left; } }

/* the order card */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 22px; margin: 0 0 30px; }
.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 20px; }
@media (max-width: 560px) { .packs { grid-template-columns: 1fr; } }
.pack { position: relative; border: 2px solid var(--line); border-radius: 18px; padding: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.pack input { position: absolute; opacity: 0; }
.pack .price { font-family: "Fraunces", serif; font-size: 1.6rem; font-weight: 600; }
.pack .name { font-weight: 800; }
.pack .what { color: var(--soft); font-size: .95rem; }
.pack.on { border-color: var(--pumpkin); background: color-mix(in srgb, var(--pumpkin) 7%, var(--card)); }
.pack .tag { position: absolute; top: -11px; right: 14px; background: var(--candle); color: #3a2410; font-size: .75rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; }

.drop { border: 2px dashed var(--line); border-radius: 18px; padding: 22px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over, .drop:hover { border-color: var(--pumpkin); background: color-mix(in srgb, var(--pumpkin) 5%, transparent); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: .95rem; color: var(--soft); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--pumpkin); flex: none; }
.promise { font-size: .9rem; color: var(--soft); margin-top: 12px; }
.err { color: #c0392b; font-size: .95rem; min-height: 1.4em; margin-top: 8px; }

footer { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--soft); font-size: .9rem; text-align: center; }

/* results page */
.oven { text-align: center; padding: 30px 0 10px; }
.oven .pumpkin { font-size: 3.4rem; display: inline-block; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
.bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; max-width: 420px; margin: 14px auto 6px; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--candle), var(--pumpkin)); border-radius: 999px; transition: width .8s ease; }
.whisper { min-height: 1.6em; color: var(--soft); transition: opacity .4s; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 18px 0 30px; }
.grid figure { margin: 0; position: relative; animation: rise .6s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; cursor: zoom-in; background: var(--line); }
.reveal { max-width: 360px; margin: 0 auto 10px; }
.reveal video { width: 100%; border-radius: 18px; display: block; background: #000; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 10px 0; }

.lightbox { position: fixed; inset: 0; background: rgba(20, 12, 16, .88); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.lightbox.on { display: flex; flex-direction: column; gap: 12px; }
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: 16px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
