:root {
  --flour: #f6f1e7;
  --paper: #fffdf8;
  --crust: #7a4a24;
  --crust-dark: #5c3518;
  --ink: #2b2420;
  --muted: #6d625a;
  --line: rgba(43, 36, 32, 0.12);
  --sage: #5f6f52;
  --radius: 14px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--flour); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p, li { text-wrap: pretty; }
a { color: var(--crust); }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); }
.kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin: 0 0 0.75rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }

.demo-bar { background: var(--ink); color: #f3ece0; font-size: 0.82rem; text-align: center; padding: 8px 16px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246, 241, 231, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark svg { width: 34px; height: 34px; fill: var(--crust); stroke: var(--flour); stroke-width: 1.6; stroke-linecap: round; }
.brand-word { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; display: flex; flex-direction: column; line-height: 1; }
.brand-word em { font-style: normal; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--crust); }
.cart-btn { position: relative; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; }
.cart-count { position: absolute; top: -4px; right: -4px; background: var(--crust); color: #fff; font-size: 0.72rem; font-weight: 600; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 999px; font: 600 0.98rem var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--crust); color: #fff; }
.btn-primary:hover { background: var(--crust-dark); }
.btn-primary:disabled { background: #b9a596; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(43, 36, 32, 0.3); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

section { padding: 88px 0; }
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero-note { color: var(--muted); font-size: 0.9rem; margin: 0; }
.hero-photo img { border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(60, 35, 15, 0.45); }

.boxes { background: var(--paper); border-block: 1px solid var(--line); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.product-grid.small { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.boxes .card { background: var(--flour); }
.card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.93rem; margin: 0 0 16px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.stock { font-size: 0.8rem; color: var(--sage); font-weight: 600; display: block; margin-bottom: 10px; }
.stock.low { color: #a34a14; }
.card .btn { height: 44px; padding: 0 20px; }
.variant-select { font: inherit; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); margin-bottom: 12px; width: 100%; }
.loading { color: var(--muted); }

.inside-grid, .gift-grid, .jo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.inside-grid img, .gift-grid img, .jo-grid img { border-radius: var(--radius); }
.ticks { list-style: none; padding: 0; margin: 18px 0 28px; }
.ticks li { padding: 9px 0 9px 32px; position: relative; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 17px; width: 13px; height: 7px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }

.how { background: var(--paper); border-block: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps img { border-radius: var(--radius); margin-bottom: 18px; aspect-ratio: 4 / 3; object-fit: cover; }
.steps h3::before { content: counter(s) '. '; color: var(--crust); }
.steps p { color: var(--muted); margin: 0; }

.gift-grid figure { order: 2; }
.jo .sign { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--crust); }
.jo p { color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--crust); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--muted); margin: 12px 0 0; }

.site-footer { background: var(--ink); color: #e9e1d4; padding: 34px 0; font-size: 0.9rem; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-row p { margin: 0; }
.demo-note { color: #b9ad9c; }

figure { margin: 0; }

/* The box (cart) */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(30, 22, 16, 0.45); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--paper); display: flex; flex-direction: column; box-shadow: -20px 0 40px rgba(0, 0, 0, 0.15); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.5rem; margin: 0; }
.x { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink); width: 40px; height: 40px; }
.drawer-body { padding: 18px 22px 28px; overflow-y: auto; flex: 1; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.line-name { font-weight: 600; font-size: 0.95rem; }
.line-sub { color: var(--muted); font-size: 0.85rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; }
.qty button { border: 0; background: none; width: 30px; height: 28px; cursor: pointer; font-size: 1rem; color: var(--ink); }
.qty span { min-width: 22px; text-align: center; font-size: 0.9rem; }
.line-price { font-weight: 600; }
.empty { color: var(--muted); padding: 24px 0; }
fieldset { border: 0; padding: 0; margin: 22px 0 0; }
legend { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin-bottom: 10px; padding: 0; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 4px; }
.field input, .field textarea, .field select { width: 100%; font: inherit; padding: 11px 13px; border-radius: 10px; border: 1px solid rgba(43, 36, 32, 0.22); background: #fff; color: var(--ink); }
.field textarea { min-height: 88px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-size: 0.95rem; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--crust); width: 18px; height: 18px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row .btn { height: 46px; padding: 0 18px; }
.hint { font-size: 0.82rem; color: var(--muted); margin: 4px 0 0; }
.hint.ok { color: var(--sage); font-weight: 600; }
.hint.bad { color: #a34a14; }
.totals { margin: 22px 0 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.95rem; }
.totals .grand { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; padding-top: 10px; }
.done { background: var(--flour); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 8px; }
.done h3 { margin-bottom: 8px; }
.done p { margin: 0 0 10px; color: var(--muted); font-size: 0.93rem; }

@media (max-width: 900px) {
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
  .hero-grid, .inside-grid, .gift-grid, .jo-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { order: -1; }
  .gift-grid figure { order: 0; }
  .product-grid, .product-grid.small, .steps { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 24px 0 56px; }
}
@media (min-width: 640px) and (max-width: 900px) {
  .product-grid, .product-grid.small, .steps { grid-template-columns: 1fr 1fr; }
}
.cart-count[hidden], [hidden] { display: none !important; }
.done p strong { display: block; color: var(--ink); text-wrap: balance; }

/* ── Hero: the gift tag on the bench ─────────────────────────────────
   The signature move: the box shot from above fills the screen, and the
   first step of sending it is done on a gift tag lying beside it. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-gift { position: relative; min-height: min(88vh, 860px); padding: 0; display: flex; align-items: center; overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: left center; }
.hero-gift::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 241, 231, 0) 45%, rgba(246, 241, 231, 0.25) 100%); pointer-events: none; }
.hero-stage { position: relative; z-index: 1; display: flex; justify-content: flex-end; padding: 56px 0; }
.tag { position: relative; width: min(440px, 100%); background: #fffdf6; border-radius: 6px 6px 18px 18px; padding: 44px 34px 28px; transform: rotate(-1.6deg); box-shadow: 0 2px 0 rgba(122, 74, 36, 0.08), 0 30px 60px -24px rgba(60, 35, 15, 0.45); margin-right: 3%; }
.tag::before { content: ''; position: absolute; inset: 8px; border: 1px dashed rgba(122, 74, 36, 0.22); border-radius: 4px 4px 14px 14px; pointer-events: none; }
.tag-hole { position: absolute; top: 16px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--flour); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25); }
.tag-hole::after { content: ''; position: absolute; left: 6px; bottom: 9px; width: 2px; height: 70px; background: #d9c6a5; transform: rotate(14deg); transform-origin: bottom; }
.tag .kicker { margin-bottom: 6px; }
.tag h1 { font-size: clamp(1.9rem, 2.6vw, 2.35rem); margin-bottom: 18px; }
.pick { border: 0; padding: 0; margin: 0 0 16px; }
.pick-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick-row label { cursor: pointer; }
.pick-row input { position: absolute; opacity: 0; pointer-events: none; }
.pick-row .chip { display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 9px; border: 1px solid rgba(43, 36, 32, 0.18); border-radius: 12px; background: #fff; font-size: 0.8rem; line-height: 1.25; min-height: 64px; transition: border-color 0.15s, box-shadow 0.15s; }
.pick-row .chip b { font-family: var(--serif); font-size: 1.05rem; }
.pick-row input:checked + .chip { border-color: var(--crust); box-shadow: 0 0 0 2px var(--crust) inset; }
.pick-row input:focus-visible + .chip { outline: 2px solid var(--crust); outline-offset: 2px; }
.pick-row input:disabled + .chip { opacity: 0.45; cursor: not-allowed; }
.pick-loading { grid-column: 1 / -1; color: var(--muted); font-size: 0.9rem; }
.tag-line { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid rgba(43, 36, 32, 0.25); padding: 6px 0 4px; margin-bottom: 4px; }
.tag-line span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tag-line input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 1.6rem/1.2 'Caveat', cursive; color: var(--ink); padding: 0; outline: none; }
.tag-note textarea { display: block; width: 100%; border: 0; border-bottom: 1px solid rgba(43, 36, 32, 0.25); background: transparent; resize: none; font: 500 1.45rem/1.35 'Caveat', cursive; color: var(--ink); padding: 6px 0 4px; outline: none; margin-bottom: 10px; }
.tag-line input::placeholder, .tag-note textarea::placeholder { color: #b6a896; }
.tag-line:focus-within, .tag-note textarea:focus { border-color: var(--crust); }
.tag-post { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 16px; }
.tag-line.short { width: 170px; flex: none; margin: 0; }
.tag-line.short input { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; }
.post-note { margin: 0 0 6px; font-size: 0.84rem; color: var(--sage); font-weight: 600; line-height: 1.35; }
.post-note.bad { color: #a34a14; }
.tag .proof { margin: 12px 0 0; font-size: 0.82rem; color: var(--muted); text-align: center; }
.scroll-cue { position: absolute; z-index: 1; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 0.85rem; font-weight: 600; color: var(--ink); text-decoration: none; background: rgba(255, 253, 248, 0.88); padding: 8px 16px 8px 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.scroll-cue::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }

@media (prefers-reduced-motion: no-preference) {
  .tag { animation: tag-drop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.1s; }
  @keyframes tag-drop { from { opacity: 0; transform: translateY(-24px) rotate(-5deg); } to { opacity: 1; transform: translateY(0) rotate(-1.6deg); } }
}

@media (max-width: 760px) {
  .hero-gift { display: block; min-height: 0; }
  .hero-bg { position: relative; display: block; height: 46vh; min-height: 280px; }
  .hero-bg img { position: absolute; }
  .hero-gift::after { display: none; }
  .hero-stage { justify-content: center; padding: 0 0 56px; margin-top: -72px; }
  .tag { margin: 0; padding: 40px 22px 24px; transform: rotate(-0.8deg); }
  .scroll-cue { bottom: 14px; }
  @media (prefers-reduced-motion: no-preference) {
    @keyframes tag-drop { from { opacity: 0; transform: translateY(-16px) rotate(-3deg); } to { opacity: 1; transform: translateY(0) rotate(-0.8deg); } }
  }
}
.pick-row label { display: flex; }
.pick-row .chip { flex: 1; }
.tag-line.short { width: 150px; }
.tag-line.short input { width: 5ch; flex: none; }
@media (max-width: 760px) {
  .pick-row { gap: 6px; }
  .pick-row .chip { font-size: 0.74rem; padding: 9px 8px; }
  .pick-row .chip b { font-size: 1rem; }
  .tag-post { flex-wrap: wrap; gap: 4px 14px; }
}
.hero-gift { min-height: 88vh; }
@media (min-height: 980px) { .hero-gift { min-height: 860px; } }
@media (max-width: 760px) { .hero-gift { min-height: 0; } }
