:root {
  --cream: #FBF7EE; --paper: #FFFDF7; --sand: #F3EDDE; --ink: #2A241E;
  --brick: #9A2E1E; --brick-dark: #7A2416; --forest: #2E3D2A; --sage: #DDE3CF;
  --tan: #EBDAB9; --blush: #E5C2B6; --line: #E3DCCB; --line-strong: #D7CFBC;
  --muted: #6B655C; --muted-2: #8C857A; --error-bg: #F9E4E0;
  --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans: Karla, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 5.5vw, 80px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--brick); text-decoration: none; }
a:hover { color: var(--brick-dark); }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; }
[hidden] { display: none !important; }

.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brick); }
.label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hint { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.error { font-size: 14px; color: var(--brick-dark); background: var(--error-bg); border-left: 3px solid var(--brick); padding: 10px 14px; border-radius: 0 6px 6px 0; margin-top: 12px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 6px; border: 1.5px solid transparent; font-weight: 700; font-size: 16px; white-space: nowrap; }
.button.primary { background: var(--brick); color: #fff; }
.button.primary:hover { background: var(--brick-dark); color: #fff; }
.button.primary:disabled { background: var(--muted-2); cursor: default; }
.button.outline { border-color: var(--brick); color: var(--brick); background: transparent; }
.button.wide { width: 100%; min-height: 54px; }
.text-button { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Notice + top bar */
.notice { background: var(--sand); border-bottom: 1px solid var(--line); text-align: center; font-size: 14px; padding: 10px var(--gutter); }
.notice strong { margin-right: 6px; }
.notice-warn { background: var(--error-bg); }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px var(--gutter); border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.wordmark span { color: var(--brick); }
.wordmark.small { font-size: 20px; }
.topnav { display: flex; align-items: center; gap: 28px; }
.topnav > a:not(.button) { color: var(--ink); font-weight: 500; font-size: 15px; }
.topnav .button { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* Hero */
.hero { padding: clamp(36px, 5vw, 56px) var(--gutter) 0; }
.hero-text { display: flex; flex-direction: column; gap: 22px; max-width: 980px; }
h1 { font-size: clamp(38px, 4.7vw, 68px); line-height: 1.02; }
h1 em { font-style: normal; color: var(--brick); }
.lede { font-size: clamp(17px, 1.35vw, 19px); max-width: 640px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--line); max-width: 760px; }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.3; }

/* Two panels: treats and recipients */
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 36px var(--gutter) 24px; }
.panel { border-radius: 14px; display: flex; flex-direction: column; min-height: 420px; }
.panel-treats { background: var(--sage); overflow: hidden; padding: 28px 28px 28px; gap: 8px; }
.panel-treats > .label { color: var(--forest); }
.panel-art { position: relative; flex: 1; min-height: 220px; margin: 0 -28px; }
.panel-art .art { position: absolute; width: auto; filter: drop-shadow(0 10px 16px rgba(42,36,30,0.18)); }
.panel-art .art-chip { height: 72%; left: 10%; bottom: 4%; z-index: 3; }
.panel-art .art-rosemary { height: 64%; left: 38%; top: 6%; z-index: 1; }
.panel-art .art-brownie { height: 66%; right: 8%; bottom: 6%; z-index: 2; }
.panel-text { display: flex; flex-direction: column; gap: 14px; padding: 8px 0 0; color: var(--forest); }
.panel-text .label { color: var(--forest); }
.panel-text p { font-size: 17px; line-height: 1.55; }
.panel-text .button { align-self: flex-start; margin-top: 4px; }
.kinds { list-style: none; margin: -4px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.kinds li { font-size: 16px; line-height: 1.4; padding-left: 18px; position: relative; }
.kinds li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--brick); }
.panel-causes { background: var(--forest); color: var(--sand); padding: 28px; gap: 22px; }
.panel-causes .label { color: #B9C4A8; }
.cause { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(243,237,222,0.25); }
.cause h2 { font-size: 26px; line-height: 1.15; color: var(--sand); }
.cause p { font-size: 15px; line-height: 1.55; color: #D8DCC9; }
.cause a { color: var(--sand); font-weight: 600; font-size: 15px; }
.cause a:hover { color: #fff; }
.panel-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(243,237,222,0.25); font-size: 14px; color: #B9C4A8; }

/* Order sheet */
.order { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 4vw, 56px); align-items: start; padding: 32px var(--gutter) 88px; }
.sheet { display: flex; flex-direction: column; gap: 44px; min-width: 0; }
.sheet h2 { font-size: clamp(30px, 2.6vw, 38px); line-height: 1.1; }
.block { border: 0; padding: 0; margin: 0; min-width: 0; }
.block legend { display: flex; align-items: center; gap: 14px; width: 100%; padding: 0 0 16px; }
.block-title { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.aside { margin-left: auto; font-size: 14px; color: var(--muted); text-align: right; max-width: 46ch; }
.step { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brick); color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.sub-title { font-weight: 600; margin: 18px 0 12px; }

.menu { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row img { width: 88px; height: 88px; object-fit: contain; }
.row-text { display: flex; flex-direction: column; gap: 8px; }
.row-name { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.stepper { display: flex; align-items: center; height: 44px; width: 132px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper); overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; line-height: 1; }
.stepper button:hover { background: var(--sand); }
.stepper button:disabled { color: var(--line-strong); cursor: default; background: transparent; }
.stepper output { flex: 1; text-align: center; font-weight: 600; font-size: 17px; }
.menu + .hint { margin-top: 12px; }

.tiles { display: grid; gap: 14px; }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); cursor: pointer; min-height: 44px; }
.tile:hover { border-color: var(--muted-2); }
.tile input[type="radio"] { position: absolute; top: 18px; right: 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--brick); }
.tile.selected { border: 2px solid var(--brick); background: #FFF7EE; padding: 17px 17px 15px; }
.tile.selected input[type="radio"] { top: 17px; right: 17px; }
.tile.disabled { opacity: 0.55; cursor: default; }
.tile-row { flex-direction: row; align-items: flex-start; gap: 14px; }
.tile-row input[type="radio"] { position: static; margin-top: 3px; flex-shrink: 0; }
.tile-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-title { font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.tile-sub { font-size: 14px; color: var(--muted); }
.tile-week .week-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tile-week.selected .week-label { color: var(--brick); }
.tile-week .week-range { font-family: var(--serif); font-size: 22px; }
.notice-full { margin-top: 14px; padding: 12px 16px; background: var(--sand); border-left: 3px solid var(--forest); border-radius: 0 6px 6px 0; font-size: 15px; }
.bar { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 8px; }
.bar > span { display: block; height: 100%; background: var(--forest); border-radius: 999px; }
.bar-text { font-size: 12px; color: var(--muted); }
.amounts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 14px; }
.tile-amount .amt { font-family: var(--serif); font-size: 28px; }
.tile-amount.selected .tile-sub { color: var(--brick); font-weight: 600; }
.tile-own .tile-body { gap: 8px; }
.own-input { display: flex; align-items: center; gap: 6px; }
.own-input .currency { font-family: var(--serif); font-size: 24px; color: var(--muted); }
.own-input input { width: 140px; min-height: 44px; padding: 6px 12px; font: 600 20px/1 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px; }
.own-input input:focus { outline: 2px solid var(--brick); outline-offset: 0; border-color: var(--brick); }
.tile-own.selected .tile-sub { color: var(--muted); font-weight: 400; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field small { font-weight: 400; color: var(--muted); }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea { font: 15px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brick); outline-offset: 0; border-color: var(--brick); }
.distance { font-size: 14px; color: var(--muted); min-height: 1em; margin-top: 8px; }
.distance.ok { color: var(--forest); font-weight: 600; }
.distance.far { color: var(--brick-dark); font-weight: 600; }
#field-address { display: flex; flex-direction: column; gap: 0; }
#field-address .field { font-weight: 600; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Receipt */
.receipt { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; padding: 26px 26px 24px; background: var(--sand); border-top: 3px solid var(--brick); border-radius: 0 0 10px 10px; }
.receipt-title { font-family: var(--serif); font-size: 30px; line-height: 1.15; }
.sum-lines { list-style: none; margin: 0; padding: 16px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.sum-lines li { display: flex; justify-content: space-between; gap: 12px; }
.sum-lines:empty { display: none; }
.sum-lines .qty { color: var(--muted); }
.sum-meta { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.sum-meta div { display: flex; justify-content: space-between; gap: 12px; }
.sum-meta dt { color: var(--muted); }
.sum-meta dd { margin: 0; font-weight: 600; text-align: right; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.total span { font-weight: 600; font-size: 15px; }
.total strong { font-family: var(--serif); font-weight: 400; font-size: 36px; color: var(--brick); }
.receipt .hint { font-size: 13px; }

.mobile-bar { display: none; }

/* Confirmation */
.confirmation { padding: 40px var(--gutter) 88px; display: flex; flex-direction: column; gap: 22px; }
.confirmation h2 { font-size: clamp(34px, 3.2vw, 46px); line-height: 1.05; }
.conf-thanks { display: flex; flex-direction: column; gap: 10px; max-width: 640px; font-size: 17px; line-height: 1.55; padding: 22px 26px; background: var(--sand); border-left: 3px solid var(--brick); border-radius: 0 10px 10px 0; }
.field small.muted { font-weight: 400; font-size: 13px; }
.conf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.card-pay { background: var(--sage); border-color: transparent; }
.card-pay h3 { font-size: 26px; line-height: 1.15; color: var(--forest); }
.order-id { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 24px; }
.order-id .text-button { font-family: var(--sans); font-size: 14px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { position: relative; padding-left: 44px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.step-title { font-family: var(--serif); font-size: 20px; line-height: 1.25; color: var(--forest); }
.steps .button { align-self: flex-start; }
.steps input[type="text"] { font: 15px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px; padding: 12px 14px; min-height: 48px; width: 100%; max-width: 420px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--brick); }
.pay-detail { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,0.6); border-radius: 6px; font-size: 15px; }
.pay-detail strong { word-break: break-all; }
.actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px var(--gutter); background: var(--sand); font-size: 14px; color: var(--muted); }

/* Tablet */
@media (max-width: 1100px) {
  .order { grid-template-columns: minmax(0, 1fr) 320px; }
  .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 860px) {
  .topnav > a:not(.button) { display: none; }
  .hero { padding-bottom: 0; }
  .hero-text { gap: 16px; }
  .facts { grid-template-columns: 1fr; gap: 0; padding-top: 0; border-top: 0; }
  .facts div { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
  .facts div:last-child { border-bottom: 1px solid var(--line); }
  .facts dd { font-size: 16px; text-align: right; }
  .panels { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; }
  .panel { min-height: 0; }
  .panel-art { min-height: 190px; flex: 0 0 190px; }
  .panel-text .button { align-self: stretch; }
  .order { grid-template-columns: 1fr; gap: 32px; padding-bottom: 120px; }
  .receipt { position: static; }
  .receipt .button, .receipt > .hint { display: none; }
  .block-title { font-size: 22px; }
  .block legend { flex-wrap: wrap; gap: 10px 12px; }
  .aside { margin-left: 0; flex-basis: 100%; text-align: left; padding-left: 40px; }
  .row { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; }
  .row img { width: 56px; height: 56px; }
  .row .stepper { grid-column: 2; justify-self: end; width: 120px; }
  .row-name { font-size: 18px; }
  .tiles-2, .amounts { grid-template-columns: 1fr; }
  .tile-week .week-range { font-size: 19px; }
  .fields { grid-template-columns: 1fr; }
  .conf-grid { grid-template-columns: 1fr; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--sand); border-top: 1px solid var(--line-strong); box-shadow: 0 -8px 24px rgba(42,36,30,0.08); }
  .mobile-bar-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .mobile-bar-text strong { font-family: var(--serif); font-weight: 400; font-size: 17px; }
  .mobile-bar-text span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-bar .button { min-height: 48px; padding: 0 18px; font-size: 15px; }
}
@media (max-width: 400px) {
  .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 14px; }
  .tile.selected { padding: 13px; }
}

/* Print: confirmation only */
@media print {
  .notice, .topbar, .hero, .panels, .order, .footer, .actions, .mobile-bar, #copy-id { display: none !important; }
  body { background: #fff; color: #000; }
  .confirmation { padding: 0; }
  .card { border: 1px solid #999; break-inside: avoid; }
  .card-pay { background: #fff; }
}
