/* Grace & Goodies — palette and type taken from the logo and printed menu. */
:root {
  --cream: #F8F2E8;     /* logo background — the page */
  --paper: #F4EBDA;     /* printed menu paper — the card */
  --paper-deep: #EADCC4;
  --ink: #3B2613;       /* body text */
  --espresso: #421301;  /* headings, wordmark */
  --gold: #865D1F;      /* the heart — actions & accents */
  --gold-deep: #6E4A14;
  --tan: #C1AA92;       /* menu rules and dotted leaders */
  --muted: #6B5641;
  --white: #FFFCF6;
  --error: #9B2C1A;
  --ok: #3F6B3A;

  --serif: 'EB Garamond', Garamond, 'Iowan Old Style', Georgia, serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;

  --step--1: 0.9rem;
  --step-0: 1.125rem;   /* 18px body */
  --step-1: 1.35rem;
  --step-2: 1.7rem;
  --step-3: clamp(2.1rem, 7.5vw, 3.1rem);
  --script-size: clamp(3.4rem, 13vw, 4.6rem);

  --radius: 6px;
  --frame: 0 0 0 1px var(--tan), inset 0 0 0 7px var(--paper), inset 0 0 0 8px var(--tan);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.55;
  font-feature-settings: 'kern', 'liga', 'onum';
  padding: 16px 16px calc(120px + env(safe-area-inset-bottom));
}

.sprite { position: absolute; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-underline-offset: 3px; }
a:hover { color: var(--espresso); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── The card: the printed menu, double-ruled ───────────────────────────── */
.card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: var(--frame);
  border-radius: 3px;
  padding: 36px 26px 28px;
}
@media (min-width: 720px) { .card { padding: 52px 64px 36px; margin-top: 24px; } }

/* Phone/tablet: one column, in reading order. Desktop: brand column + order column. */
.card { display: flex; flex-direction: column; }
.side, .content { display: contents; }
.masthead { order: 1; }
.content-rule { order: 2; }
.closed-banner { order: 3; }
.order { order: 4; }
.confirmation { order: 5; }
.side-rule { order: 6; }
.trust { order: 7; }
.footer { order: 8; }
.step--menu { margin-top: 0; }



.masthead { text-align: center; }
.logo { width: 168px; margin: 0 auto 6px; border-radius: 50%; mix-blend-mode: multiply; }
.wordmark {
  font-weight: 500;
  font-size: var(--step-3);
  font-variant: small-caps;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--espresso);
  margin: 0;
}
.subbrand {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 10px 0 0;
  font-size: var(--step--1);
  letter-spacing: 0.32em;
  text-transform: uppercase; /* mirrors the printed menu's "BAKED TREATS" */
  color: var(--ink);
}
.subbrand::before, .subbrand::after { content: ''; height: 1px; width: 48px; background: var(--ink); opacity: .6; }
.intro { max-width: 30em; margin: 22px auto 8px; font-size: var(--step-1); line-height: 1.45; color: var(--ink); }
.next-up { margin: 0 auto 22px; color: var(--muted); font-style: italic; max-width: 32em; min-height: 1.5em; }
.next-up strong { color: var(--espresso); font-style: normal; font-weight: 600; }

.heart-rule { display: flex; align-items: center; gap: 12px; margin: 34px 0; color: var(--gold); }
.heart-rule::before, .heart-rule::after { content: ''; flex: 1; height: 1px; background: var(--tan); }
.heart-rule svg { width: 16px; height: 14px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font: 600 var(--step-0) var(--serif);
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid var(--gold);
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.button--primary { background: var(--gold); color: var(--white); }
.button--primary:hover { background: var(--gold-deep); color: var(--white); }
.button--primary:active { transform: translateY(1px); }
.button--quiet { background: transparent; color: var(--gold-deep); }
.button--quiet:hover { background: var(--white); }
.button[disabled] { opacity: .6; cursor: progress; }

/* ── Menu (doubles as step 1 of the order form) ─────────────────────────── */
.script-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: var(--script-size);
  line-height: 1;
  text-align: center;
  color: var(--espresso);
  margin: 0;
}
.step-hint { color: var(--muted); margin: 6px 0 18px; }
.step-hint--first { text-align: center; }

.menu-section { margin-top: 30px; text-align: center; }
.menu-icon { display: flex; align-items: center; gap: 16px; color: var(--ink); }
.menu-icon::before, .menu-icon::after { content: ''; flex: 1; height: 1px; background: var(--tan); }
.menu-icon svg { width: 64px; height: 40px; }
.menu-section h3 {
  margin: 10px 0 0;
  font-weight: 500;
  font-size: var(--step-2);
  letter-spacing: 0.16em;
  text-transform: uppercase; /* section names are set this way on the printed menu */
  color: var(--espresso);
}
.menu-blurb { margin: 0 0 14px; font-style: italic; color: var(--muted); letter-spacing: 0.04em; }
.menu-group { text-align: left; }
.menu-group h4 {
  margin: 18px 0 4px;
  font-weight: 500;
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  font-variant: small-caps;
  text-transform: lowercase;
  color: var(--gold-deep);
  text-align: center;
}

.menu-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.menu-line-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.menu-line-name span:first-child { min-width: 0; line-height: 1.25; }
.menu-line-name .leader { flex: 1; min-width: 12px; border-bottom: 2px dotted var(--tan); transform: translateY(-4px); }
.menu-line-price { font-variant-numeric: lining-nums tabular-nums; min-width: 3.2ch; text-align: right; }
.menu-line.is-picked .menu-line-name { color: var(--espresso); font-weight: 600; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--tan); border-radius: 999px; background: var(--white); }
.stepper button {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; background: none; color: var(--gold-deep);
  font: 500 1.35rem/1 var(--serif);
  cursor: pointer; border-radius: 999px;
}
.stepper button:hover { background: var(--paper); }
.stepper button[disabled] { color: var(--tan); cursor: default; background: none; }
.stepper output { min-width: 1.6ch; text-align: center; font-variant-numeric: lining-nums tabular-nums; font-weight: 600; }
.menu-line:not(.is-picked) .stepper output { color: var(--muted); font-weight: 400; }

/* ── Form steps ─────────────────────────────────────────────────────────── */
.step { margin-top: 34px; }
.step h2:not(.script-title) {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 12px;
  font-size: var(--step-2); font-weight: 500;
  color: var(--espresso);
}
.step-num {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; flex: none;
  border: 1px solid var(--gold); border-radius: 50%;
  font-size: 1rem; font-weight: 600; color: var(--gold-deep);
  font-variant-numeric: lining-nums;
}
.step-hint--first .step-num { width: 26px; height: 26px; font-size: .9rem; margin-right: 6px; vertical-align: 1px; }

.cutoff-note { margin: 0 0 14px; color: var(--muted); }
.break-note { margin: -4px 0 14px; color: var(--ink); font-size: var(--step--1); }

/* Taking a break: menu stays visible, ordering is hidden */
.closed-banner { text-align: center; background: var(--white); border: 1px solid var(--gold); border-radius: var(--radius); padding: 22px 20px 18px; margin-bottom: 30px; }
.closed-banner .script-title { font-size: clamp(2.6rem, 10vw, 3.4rem); }
.closed-lead { font-size: var(--step-1); margin: 8px 0 4px; }
.closed-when { margin: 0; }
.closed-foot { margin: 10px 0 0; color: var(--muted); font-size: var(--step--1); }
body.is-closed .step:not(.step--menu),
body.is-closed .checkout,
body.is-closed .stepper,
body.is-closed .step-hint--first,
body.is-closed .content > .heart-rule ~ .order .heart-rule { display: none; }
body.is-closed { padding-bottom: 32px; }
.cutoff-note.is-rolled {
  color: var(--ink);
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-weight: 500; }

.choices { display: grid; gap: 10px; }
.choices--compact { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-body {
  display: block;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .15s ease, background-color .15s ease;
}
.choice-body::before {
  content: ''; position: absolute; left: 16px; top: 17px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--white);
}
.choices--compact .choice-body::before { top: 50%; transform: translateY(-50%); }
.choice input:checked + .choice-body { border-color: var(--gold); background: #FBF4E6; box-shadow: 0 0 0 1px var(--gold); }
.choice input:checked + .choice-body::before { background: radial-gradient(var(--gold) 0 4px, var(--white) 5px); }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--gold); outline-offset: 2px; }
.choice-title { display: block; font-weight: 600; color: var(--espresso); }
.choice-detail { display: block; color: var(--muted); font-size: var(--step--1); }

.date-wrap { margin-top: 18px; }
.date-list { display: flex; flex-wrap: wrap; gap: 8px; }
.date-chip { position: relative; }
.date-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.date-chip span {
  display: block; padding: 8px 14px;
  border: 1px solid var(--tan); border-radius: 999px; background: var(--white);
  font-variant-numeric: lining-nums;
}
.date-chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--white); }
.date-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.field { margin-top: 14px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { display: block; margin-bottom: 4px; font-weight: 500; }
.optional { font-weight: 400; color: var(--muted); }
input[type='text'], input[type='tel'], input[type='email'], textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--tan);
  border-radius: var(--radius);
}
textarea { resize: vertical; min-height: 72px; }
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(134, 93, 31, .25); }
[aria-invalid='true'] { border-color: var(--error) !important; }
.field-error, .form-error { margin: 4px 0 0; color: var(--error); font-size: var(--step--1); min-height: 0; }
.field-error:empty, .form-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { background: var(--white); border: 1px solid var(--tan); border-radius: var(--radius); padding: 14px 16px; }
.notice p { margin: 0; }
.notice .cottage { margin-top: 10px; font-size: var(--step--1); font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-weight: 400; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--gold); flex: none; }
.turnstile { margin-top: 16px; }

/* ── Sticky checkout bar ────────────────────────────────────────────────── */
.checkout {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(255, 252, 246, .96);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--tan);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.checkout-inner { max-width: 680px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-total { margin: 0; display: flex; flex-direction: column; line-height: 1.2; }
.checkout-total span { color: var(--muted); font-size: var(--step--1); }
.checkout-total strong { font-size: var(--step-2); font-weight: 600; color: var(--espresso); font-variant-numeric: lining-nums tabular-nums; }
.checkout-total strong.bump { animation: bump .25s ease; }
@keyframes bump { 50% { transform: scale(1.08); } }
.checkout .form-error { max-width: 680px; margin: 6px auto 0; }

/* ── Confirmation ───────────────────────────────────────────────────────── */
.confirmation { text-align: center; padding-top: 8px; scroll-margin-top: 24px; }
.confirmation:focus { outline: none; }
.conf-lead { margin: 14px 0 0; color: var(--muted); }
.conf-code { margin: 0; font-size: var(--step-3); font-weight: 600; letter-spacing: .06em; color: var(--espresso); font-variant-numeric: lining-nums; }
.conf-when { margin: 4px 0 20px; font-size: var(--step-1); }
.ticket { text-align: left; background: var(--white); border: 1px solid var(--tan); border-radius: var(--radius); padding: 14px 18px; }
.ticket-line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-variant-numeric: lining-nums tabular-nums; }
.ticket-line--total { border-top: 1px dashed var(--tan); margin-top: 6px; padding-top: 10px; font-weight: 600; font-size: var(--step-1); color: var(--espresso); }
.pay-panel { margin-top: 18px; text-align: left; background: #FBF4E6; border: 1px solid var(--gold); border-radius: var(--radius); padding: 16px 18px; }
.pay-panel h3 { margin: 0 0 8px; font-size: var(--step-1); font-weight: 600; color: var(--espresso); }
.pay-panel ol { margin: 0; padding-left: 1.3em; }
.pay-panel li { margin: 6px 0; }
.copy-row { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.copy-btn { font: 500 var(--step--1) var(--serif); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--gold); background: var(--white); color: var(--gold-deep); cursor: pointer; }
.copy-btn.is-done { background: var(--ok); border-color: var(--ok); color: var(--white); }
.pay-panel .button { margin-top: 10px; width: 100%; }
.conf-reserved { max-width: 34em; margin: 0 auto 18px; }
.progress { display: flex; justify-content: center; gap: 0; list-style: none; padding: 0; margin: 14px auto 8px; max-width: 360px; counter-reset: step; }
.progress li { flex: 1; position: relative; padding-top: 30px; font-size: var(--step--1); color: var(--muted); counter-increment: step; }
.progress li::before {
  content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--tan); background: var(--white);
  display: grid; place-items: center; font-size: .8rem; font-variant-numeric: lining-nums; z-index: 1;
}
.progress li + li::after { content: ''; position: absolute; top: 12px; right: 50%; width: 100%; height: 1px; background: var(--tan); }
.progress li.is-done { color: var(--ink); }
.progress li.is-done::before { content: '✓'; background: var(--gold); border-color: var(--gold); color: var(--white); }
.progress li.is-current { color: var(--espresso); font-weight: 600; }
.progress li.is-current::before { border: 2px solid var(--gold); color: var(--gold-deep); font-weight: 600; }
.button--wide { width: 100%; }
.claim { margin-top: 18px; }
.claim-hint { margin: 8px 0 0; color: var(--muted); font-size: var(--step--1); }
.claimed { margin: 0 0 18px; background: var(--white); border: 1px solid var(--ok); border-radius: var(--radius); padding: 14px 18px; }
.claimed p { margin: 0; }
.claimed-title { font-family: var(--script); font-size: 2.6rem; line-height: 1.1; color: var(--espresso); }
.conf-foot { margin: 20px 0 12px; color: var(--muted); }

/* ── Trust & footer ─────────────────────────────────────────────────────── */
.trust { display: grid; gap: 18px; align-items: center; justify-items: center; text-align: center; }
@media (min-width: 560px) { .trust { grid-template-columns: 140px 1fr; justify-items: start; text-align: left; } }
.trust h2 { margin: 0 0 6px; font-size: var(--step-1); font-weight: 600; color: var(--espresso); }
.trust p { margin: 0; }
.seal { width: 132px; height: 132px; color: var(--gold); }
.seal-text { font: 600 11.5px var(--serif); letter-spacing: 2.6px; fill: var(--gold-deep); }
.seal-heart { color: var(--gold); }
.seal-tx { font: 600 15px var(--serif); letter-spacing: 3px; fill: var(--espresso); }

.footer { margin-top: 34px; text-align: center; color: var(--muted); font-size: var(--step--1); }
.motto { font-style: italic; font-size: var(--step-0); color: var(--ink); margin-bottom: 4px; }
.loading { text-align: center; color: var(--muted); }
.noscript { max-width: 680px; margin: 16px auto; text-align: center; }

/* Desktop: brand column + order column (kept last so it overrides the base rules) */
@media (min-width: 1100px) {
  .card {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    column-gap: 72px;
    align-items: start;
    max-width: 1200px;
    padding: 56px 64px 40px;
  }
  .side, .content { display: block; }
  .side { text-align: center; padding-top: 6px; }
  .content-rule { display: none; }
  .logo { width: 150px; }
  .wordmark { font-size: 2.35rem; white-space: nowrap; }
  .intro { font-size: var(--step-0); }
  .side .trust { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .side .seal { width: 112px; height: 112px; }
  .side .footer { margin-top: 28px; }
  .checkout-inner { max-width: 1200px; padding: 0 64px 0 calc(64px + 320px + 72px); }
  .checkout .form-error { max-width: 1200px; padding-left: calc(64px + 320px + 72px); }
}
