/* ============================================================================
   Victor's Soul Table — heritage register (shared stylesheet)
   ----------------------------------------------------------------------------
   Ported 2026-09-18 from the live demo's worker-snippets/site-theme.js (the
   2026-09-17 heritage skin): a Southern soul-food house opened in 1984 — hand-
   lettered sign script over heavy slab caps, painted ribbons and keylines, hard
   drop shades instead of soft shadows, cream / oxblood / mustard / cast iron.
   Type: Alfa Slab One (titles, prices, buttons) + Kaushan Script (painted
   accents) + Oswald (labels, small caps) over Alegreya Sans (body). The fonts
   come from Google Fonts — the page's <head> carries the <link>.

   HOW TO ADOPT ON ANOTHER PAGE (a sibling task rolls this across the site):
     1. <link rel="stylesheet" href="/css/heritage.css"> and drop site.css.
     2. <body class="heritage"> — every rule here is scoped under .heritage so
        a page can also opt in ONE section at a time (the homepage catering
        section does exactly that while the rest of the page stays on site.css).
     3. Copy the <header class="site-head"> and <footer class="site-foot">
        markup from catering.html (brand lockup + nav; dark seal footer).

   Brand assets live on R2 (pub-…r2.dev/brand/*). The header lockup falls back
   to a text lockup if the PNG 404s (catering-preset.js adds .no-img).

   No body-level stacking hook here ON PURPOSE: a `body > * { position }` rule
   overrode the UA's dialog:modal position:fixed on the demo and pushed the
   checkout dialog off-screen (QA 2026-09-17). Nothing in this file may reset
   the position of body's direct children.
   ========================================================================== */

/* ---- tokens ------------------------------------------------------------- */
.heritage {
  --paper: #f6efe3;        /* sun-faded cream */
  --paper-2: #fbf6ec;      /* card panel */
  --paper-3: #ede2cc;      /* deeper cream for bands and rails */
  --paper-edge: #d9c9a8;   /* hard shade under cream panels */
  --ink: #1f2c3d;          /* sign lettering navy */
  --ink-2: #46536a;        /* secondary text  (6.9:1 on paper) */
  --ink-3: #5f6b7e;        /* captions        (4.9:1 on paper) */
  --iron: #161c27;         /* cast-iron band */
  --iron-2: #212a3a;
  --ox: #7d2a26;           /* oxblood — the seal ring, links */
  --ox-deep: #5f1f1c;
  --ox-tint: #f3e1dc;
  --sign: #a8322a;         /* sign-red — buttons, tags (5.6:1 with paper) */
  --mustard: #e0b04a;      /* painted mustard — tags, underlines, never small text on cream */
  --gold: #d6a23a;         /* cornbread — ornament on dark bands */
  --collard: #3d5a2a;      /* status: open / success */
  --line: rgba(31, 44, 61, 0.16);
  --line-strong: rgba(31, 44, 61, 0.34);
  --shade-paper: 4px 4px 0 var(--paper-edge);
  --shade-ink: 4px 4px 0 var(--ink);
  --r-sm: 3px; --r: 4px; --r-lg: 6px;
  --font-display: 'Alfa Slab One', 'Rockwell Extra Bold', Rockwell, Georgia, serif;
  --font-script: 'Kaushan Script', 'Brush Script MT', 'Segoe Script', cursive;
  --font-label: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Alegreya Sans', 'Gill Sans', 'Trebuchet MS', Verdana, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1180px;
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: auto;
}

/* ---- base (full-page opt-in) -------------------------------------------- */
.heritage *, .heritage *::before, .heritage *::after { box-sizing: border-box; }
body.heritage {
  margin: 0;
  background: var(--paper);
  background-image: none;
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: clip;
}
@media (max-width: 480px) { body.heritage { font-size: 16px; } }
/* A single section opting in on a site.css page (the homepage catering band). */
section.heritage { background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.55; padding: clamp(40px, 7vw, 80px) 0; border-top: 6px solid var(--sign); box-shadow: inset 0 3px 0 var(--mustard); }
.heritage img { max-width: 100%; height: auto; display: block; }
.heritage a { color: var(--ox); text-decoration: underline; text-underline-offset: 0.15em; }
.heritage a:hover { color: var(--ox-deep); }
.heritage :focus-visible { outline: 3px solid var(--sign); outline-offset: 3px; border-radius: 2px; }
.heritage .band-dark :focus-visible, .heritage .site-foot :focus-visible { outline-color: var(--mustard); }
.heritage h1, .heritage h2, .heritage h3 {
  font-family: var(--font-display); color: var(--ink); font-weight: 400;
  line-height: 1.12; letter-spacing: 0.01em; margin: 0;
}
.heritage p { margin: 0 0 1em; }
.heritage [hidden] { display: none !important; }
.heritage .h-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.heritage .h-section { padding: clamp(40px, 7vw, 80px) 0; }
.heritage .h-section + .h-section { border-top: 1px solid var(--line); }

/* ---- ornaments ---------------------------------------------------------- */
/* Painted ribbon: sign-red bar with a mustard centre stripe. */
.heritage .h-rule { height: 6px; background: linear-gradient(90deg, var(--sign) 0 38%, var(--mustard) 38% 62%, var(--sign) 62%); }
.heritage .h-rule-short { width: 96px; margin: 14px auto 0; }
.heritage .h-eyebrow {
  display: block; font-family: var(--font-script); font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.2; color: var(--sign); margin: 0 0 6px;
}
.heritage .h-label {
  font-family: var(--font-label); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.heritage .h-sec-head { text-align: center; margin: 0 auto 28px; max-width: 760px; }
.heritage .h-title { font-size: clamp(1.55rem, 3.2vw, 2.3rem); text-transform: uppercase; letter-spacing: 0.02em; }
.heritage .h-sub { color: var(--ink-2); font-size: clamp(1.02rem, 1.7vw, 1.2rem); margin: 14px auto 0; max-width: 62ch; }
.heritage .h-lede { max-width: 720px; margin: 0 auto 14px; text-align: center; font-size: 1.05rem; line-height: 1.65; color: var(--ink-2); }

/* Demo caveat: a stamped note, not a warning box. */
.heritage .h-note {
  max-width: 680px; margin: 18px auto 0; padding: 12px 16px;
  border: 2px solid var(--ink); background: var(--paper-2); box-shadow: var(--shade-paper);
  font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); text-align: center;
}
.heritage .h-note strong { color: var(--ink); }

/* ---- buttons: slab caps, ink keyline, hard drop shade ------------------- */
.heritage .h-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 11px 24px; border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 400; font-size: 0.98rem; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 2px solid var(--ink); box-shadow: var(--shade-ink);
  line-height: 1.2; color: var(--ink); background: var(--paper-2);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.heritage .h-btn:hover, .heritage .h-btn:focus-visible { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.heritage .h-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.heritage .h-btn-primary { background: var(--sign); color: var(--paper-2); }
.heritage .h-btn-primary:hover, .heritage .h-btn-primary:focus-visible { background: var(--ox); color: var(--paper-2); }
.heritage .h-btn-ghost { background: var(--paper-2); color: var(--ink); }
.heritage .h-btn-ghost:hover, .heritage .h-btn-ghost:focus-visible { background: var(--ink); color: var(--paper); }
.heritage .h-btn-light { background: var(--mustard); color: var(--ink); box-shadow: 4px 4px 0 var(--paper); }
.heritage .h-btn-light:hover, .heritage .h-btn-light:focus-visible { background: var(--paper); color: var(--ink); box-shadow: 5px 5px 0 var(--mustard); }
.heritage .h-btn-sm { min-height: 40px; padding: 7px 14px; font-size: 0.82rem; box-shadow: 3px 3px 0 var(--ink); }
.heritage .h-btn:disabled, .heritage .h-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.heritage .h-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 560px) { .heritage .h-ctas .h-btn { width: 100%; } }

/* ---- header: painted sign board ----------------------------------------- */
.heritage .site-head { background: var(--paper); border-bottom: 4px solid var(--sign); }
.heritage .site-head::after { content: ""; display: block; height: 3px; background: var(--mustard); }
.heritage .site-brand { display: block; width: fit-content; margin: 0 auto; padding: 14px 16px 6px; text-decoration: none; color: var(--ink); }
.heritage .site-lockup { display: block; width: auto; height: 52px; }
.heritage .brand-text { display: none; align-items: baseline; gap: 10px; line-height: 1; min-height: 52px; }
.heritage .site-brand.no-img .site-lockup { display: none; }
.heritage .site-brand.no-img .brand-text { display: flex; }
.heritage .brand-script { font-family: var(--font-script); font-size: 2rem; color: var(--sign); }
.heritage .brand-slab { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; }
.heritage .brand-est { font-family: var(--font-label); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.heritage .primary-nav {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 2px 6px; padding: 4px 10px 12px;
}
.heritage .primary-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px 6px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-label); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.heritage .primary-nav a:hover, .heritage .primary-nav a:focus-visible { color: var(--sign); border-bottom-color: var(--ink); }
.heritage .primary-nav a[aria-current="page"] { color: var(--sign); border-bottom-color: var(--mustard); }
.heritage .primary-nav a.order-cta {
  margin-left: 8px; padding: 6px 16px; border: 2px solid var(--ink); border-radius: var(--r-sm);
  background: var(--sign); color: var(--paper-2); box-shadow: 3px 3px 0 var(--ink); min-height: 44px;
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.04em; font-size: 0.9rem;
}
.heritage .primary-nav a.order-cta:hover, .heritage .primary-nav a.order-cta:focus-visible { background: var(--ox); color: var(--paper-2); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
@media (min-width: 900px) {
  .heritage .site-head-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  }
  .heritage .site-brand { margin: 0; padding: 12px 0; }
  .heritage .site-lockup { height: 64px; }
  .heritage .brand-text { min-height: 64px; }
  .heritage .primary-nav { justify-content: flex-end; padding: 0; gap: 2px 4px; }
  /* Seven links + the CTA must fit one row beside the lockup at 1280. */
  .heritage .primary-nav a { font-size: 0.86rem; letter-spacing: 0.1em; padding: 8px 8px 6px; }
}

/* ---- dark band ---------------------------------------------------------- */
.heritage .band-dark {
  background: var(--iron); color: var(--paper);
  background-image:
    radial-gradient(1100px 520px at 12% -10%, rgba(224, 176, 74, 0.2), transparent 60%),
    radial-gradient(700px 400px at 100% 110%, rgba(168, 50, 42, 0.35), transparent 60%);
}
.heritage .band-dark h1, .heritage .band-dark h2, .heritage .band-dark h3 { color: var(--paper); }
.heritage .band-dark a { color: var(--paper); }
.heritage .band-dark .h-eyebrow { color: var(--mustard); }

/* ---- footer: cast-iron band with the founder seal ----------------------- */
.heritage .site-foot {
  margin-top: 64px; padding: 48px var(--gutter) 40px; text-align: center;
  background: var(--iron); color: rgba(246, 239, 227, 0.86);
  background-image: radial-gradient(900px 300px at 50% 0%, rgba(224, 176, 74, 0.14), transparent 70%);
  border-top: 6px solid var(--sign); box-shadow: inset 0 3px 0 var(--mustard);
}
.heritage .site-foot-inner { max-width: 720px; margin: 0 auto; }
.heritage .site-foot a { color: var(--paper); }
.heritage .foot-seal { display: block; width: 132px; height: auto; margin: 0 auto 22px; }
.heritage .foot-kicker { margin: 0 0 6px; font-family: var(--font-label); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mustard); }
.heritage .foot-phone {
  display: inline-block; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--paper); text-decoration: none; line-height: 1.1; padding: 4px 6px;
}
.heritage .foot-phone:hover { color: var(--mustard); }
.heritage .foot-since { margin: 16px 0 10px; font-family: var(--font-script); font-size: 1.35rem; color: var(--mustard); }
.heritage .foot-address { margin: 0 0 4px; font-size: 0.98rem; }
.heritage .foot-hours { margin: 0 0 8px; font-size: 0.94rem; color: rgba(246, 239, 227, 0.78); }
.heritage .foot-demo { margin: 0 0 6px; font-family: var(--font-label); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(246, 239, 227, 0.7); }
.heritage .foot-powered { margin: 22px 0 8px; font-size: 0.92rem; }
.heritage .legal-links { margin: 0; font-size: 0.88rem; }

/* ---- forms -------------------------------------------------------------- */
.heritage .field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; min-width: 0; }
.heritage .field > span, .heritage .field > label, .heritage .field-legend {
  font-family: var(--font-label); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
.heritage .field small, .heritage .field-hint { font-family: var(--font-body); font-size: 0.88rem; letter-spacing: 0; text-transform: none; color: var(--ink-3); line-height: 1.45; }
.heritage .field input:not([type="checkbox"]):not([type="radio"]), .heritage .field select, .heritage .field textarea {
  width: 100%; min-height: 46px; padding: 9px 12px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--ink); border-radius: var(--r-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.heritage .field textarea { min-height: 96px; resize: vertical; }
.heritage .field input:focus, .heritage .field select:focus, .heritage .field textarea:focus {
  outline: none; border-color: var(--sign); box-shadow: 0 0 0 3px rgba(168, 50, 42, 0.2);
}
.heritage .field.is-invalid input, .heritage .field.is-invalid select { border-color: var(--sign); background: #fff7f5; }
.heritage .field-err { font-size: 0.86rem; color: var(--sign); font-weight: 700; margin: 0; }
.heritage .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.heritage .field-grid .span-2 { grid-column: 1 / -1; }
.heritage .field-grid.cols-3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 560px) { .heritage .field-grid, .heritage .field-grid.cols-3 { grid-template-columns: 1fr; } }
.heritage .req { color: var(--sign); }

/* Painted radio choice: a keylined card that fills when picked. */
.heritage .choice-list { display: flex; flex-direction: column; gap: 8px; }
.heritage .choice-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.heritage .choice {
  display: flex; align-items: flex-start; gap: 11px; cursor: pointer;
  padding: 11px 13px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: var(--paper-2);
}
.heritage .choice-inline .choice { align-items: center; padding: 9px 13px; }
.heritage .choice:hover { border-color: var(--sign); }
.heritage .choice input[type="radio"] {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0;
  border: 2px solid var(--ink); border-radius: 50%; background: #fff; position: relative; cursor: pointer;
}
.heritage .choice-inline .choice input[type="radio"] { margin: 0; }
.heritage .choice input[type="radio"]:checked { border-color: var(--sign); }
.heritage .choice input[type="radio"]:checked::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--sign); }
.heritage .choice:has(input[type="radio"]:checked) { border-color: var(--sign); background: var(--ox-tint); box-shadow: 3px 3px 0 var(--paper-edge); }
.heritage .choice-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.heritage .choice-name { font-weight: 700; font-size: 0.98rem; line-height: 1.3; color: var(--ink); }
.heritage .choice-desc { font-size: 0.86rem; line-height: 1.45; color: var(--ink-2); }
.heritage .consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); margin: 14px 0 0; }
.heritage .consent input[type="checkbox"] { flex: 0 0 auto; margin-top: 3px; width: 18px; height: 18px; accent-color: var(--sign); }
.heritage .form-error { display: none; margin: 14px 0 0; padding: 10px 14px; border: 2px solid var(--sign); background: #fff7f5; color: var(--sign); font-weight: 700; }
.heritage .form-error.shown { display: block; }

/* ---- terms list --------------------------------------------------------- */
.heritage .h-terms { list-style: none; padding: 14px 18px; margin: 0 0 22px; border: 2px solid var(--ink); background: var(--paper-2); box-shadow: var(--shade-paper); font-size: 0.95rem; line-height: 1.55; display: grid; gap: 6px; }
.heritage .h-terms li { padding-left: 20px; position: relative; }
.heritage .h-terms li::before { content: "\2605"; position: absolute; left: 0; top: 0; color: var(--mustard); font-size: 0.75rem; line-height: 1.9; }

/* ---- catalogue: the package cards --------------------------------------- */
.heritage .pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 18px; margin: 26px 0 10px; }
@media (max-width: 960px) { .heritage .pkg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .heritage .pkg-grid { grid-template-columns: 1fr; } }
.heritage .pkg-card {
  display: flex; flex-direction: column; background: var(--paper-2);
  border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shade-paper);
  scroll-margin-top: 24px; overflow: hidden;
}
.heritage .pkg-card:target { box-shadow: 0 0 0 3px var(--mustard), var(--shade-paper); }
.heritage .pkg-photo {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background-color: #d4c1a0;
  background-size: cover; background-position: center;
  background-image: linear-gradient(135deg, #e9ddc4, #cdb58a 55%, #b8845a);
  border-bottom: 3px solid var(--mustard);
}
.heritage .pkg-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.heritage .pkg-photo img.img-missing { display: none; }
.heritage .pkg-photo .soon-mark {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-script); font-size: 1.5rem; color: rgba(31, 44, 61, 0.55);
}
.heritage .pkg-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.heritage .pkg-name { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.01em; }
.heritage .pkg-desc { font-size: 0.92rem; line-height: 1.45; color: var(--ink-2); margin: 0; }
.heritage .pkg-sizes { display: grid; gap: 6px; margin: 2px 0; }
.heritage .pkg-size {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 11px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: #fff;
  font: inherit; color: var(--ink); cursor: pointer; text-align: left;
}
.heritage .pkg-size:hover { border-color: var(--sign); }
.heritage .pkg-size.is-active { background: var(--ox-tint); border-color: var(--sign); box-shadow: 3px 3px 0 var(--paper-edge); }
.heritage .pkg-size-label { font-weight: 700; font-size: 0.95rem; }
.heritage .pkg-size-serves { display: block; font-weight: 400; font-size: 0.82rem; color: var(--ink-2); }
.heritage .pkg-size-price { font-family: var(--font-display); font-size: 1.05rem; color: var(--sign); white-space: nowrap; }
.heritage .pkg-lead { font-family: var(--font-label); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.heritage .pkg-add { display: flex; align-items: stretch; gap: 8px; margin-top: auto; padding-top: 6px; }
.heritage .qty {
  display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--r-sm); background: #fff; overflow: hidden;
}
.heritage .qty button {
  width: 40px; min-height: 44px; border: 0; background: var(--paper-3); color: var(--ink);
  font-family: var(--font-display); font-size: 1.1rem; cursor: pointer;
}
.heritage .qty button:hover { background: var(--mustard); }
.heritage .qty button:disabled { opacity: 0.4; cursor: not-allowed; background: var(--paper-3); }
.heritage .qty output { min-width: 36px; text-align: center; font-family: var(--font-display); font-size: 1rem; }
.heritage .pkg-add .h-btn { flex: 1; }
.heritage .pkg-card.is-added .pkg-add .h-btn-primary { background: var(--collard); }

/* ---- the floating order summary ----------------------------------------- */
.heritage .order-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--iron); color: var(--paper);
  border-top: 5px solid var(--sign); box-shadow: inset 0 3px 0 var(--mustard), 0 -8px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(110%); transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.heritage .order-bar.is-open { transform: none; }
.heritage .order-bar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter);
  /* The ElevenLabs "Need help?" bubble floats bottom-right on every page and
     sat exactly on the Checkout button (caught in the browser, 2026-09-18), so
     the bar keeps its right end clear of controls. */
  padding-right: calc(var(--gutter) + 240px);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.heritage .order-bar-kicker { display: block; font-family: var(--font-script); font-size: 1.15rem; color: var(--mustard); line-height: 1.1; }
.heritage .order-bar-sum { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.2; }
.heritage .order-bar-sum b { color: var(--mustard); font-weight: 400; }
.heritage .order-bar-actions { display: flex; align-items: center; gap: 14px; }
.heritage .order-bar-clear { color: rgba(246, 239, 227, 0.75); font-size: 0.9rem; background: none; border: 0; cursor: pointer; text-decoration: underline; font: inherit; }
.heritage .order-bar .h-btn-light { box-shadow: 4px 4px 0 var(--sign); }
/* Phones: the voice widget's expanded panel spans most of a 375px bottom edge,
   so the bar docks at the TOP instead (below any fixed site nav — the script
   sets --bar-top from it). One compact row: summary left, Checkout right. */
@media (max-width: 700px) {
  .heritage .order-bar {
    top: var(--bar-top, 0px); bottom: auto; transform: translateY(-110%);
    border-top: 0; border-bottom: 5px solid var(--sign);
    box-shadow: inset 0 -3px 0 var(--mustard), 0 8px 24px rgba(0, 0, 0, 0.28);
  }
  .heritage .order-bar.is-open { transform: none; }
  .heritage .order-bar-inner { padding: 8px 14px 10px; flex-wrap: nowrap; }
  .heritage .order-bar-kicker { font-size: 0.95rem; }
  .heritage .order-bar-sum { font-size: 0.95rem; }
  .heritage .order-bar-actions { gap: 10px; flex: 0 0 auto; }
  .heritage .order-bar .h-btn-light { min-height: 42px; padding: 8px 16px; font-size: 0.88rem; }
  .heritage .order-bar-clear { font-size: 0.82rem; }
  .heritage.has-order-bar, body.heritage.has-order-bar { padding-bottom: 0; }
}
/* Room for the bar so the last row of cards is never hidden behind it. */
.heritage.has-order-bar, body.heritage.has-order-bar { padding-bottom: 96px; }

/* ---- the checkout dialog ------------------------------------------------ */
.heritage .checkout-dlg {
  width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  padding: 0; border: 3px solid var(--ink); border-radius: var(--r-lg); background: var(--paper);
  color: var(--ink); box-shadow: 8px 8px 0 var(--ink); overflow: auto; overscroll-behavior: contain;
}
.heritage .checkout-dlg::backdrop { background: rgba(22, 28, 39, 0.72); backdrop-filter: blur(2px); }
.heritage .dlg-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; background: var(--iron); color: var(--paper); border-bottom: 4px solid var(--sign);
}
.heritage .dlg-head h2 { color: var(--paper); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.03em; }
.heritage .dlg-head .h-eyebrow { color: var(--mustard); font-size: 1rem; margin: 0; }
.heritage .dlg-close { background: none; border: 2px solid var(--paper); color: var(--paper); border-radius: var(--r-sm); width: 40px; height: 40px; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.heritage .dlg-close:hover { background: var(--paper); color: var(--iron); }
.heritage .dlg-body { padding: 18px 20px 22px; }
.heritage .dlg-section { padding: 16px 0; border-top: 1px solid var(--line); }
.heritage .dlg-section:first-child { border-top: 0; padding-top: 0; }
.heritage .dlg-section-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.heritage .dlg-section-title .h-label { color: var(--sign); }
.heritage .dlg-section-title .h-eyebrow { font-size: 1.05rem; margin: 0; color: var(--ink-2); }
.heritage .dlg-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.heritage .dlg-line { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--paper-2); border: 1.5px solid var(--ink); border-radius: var(--r-sm); }
.heritage .dlg-line-name { flex: 1; min-width: 0; font-weight: 700; }
.heritage .dlg-line-name small { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.85rem; }
.heritage .dlg-line-price { font-family: var(--font-display); color: var(--sign); white-space: nowrap; }
.heritage .dlg-line .qty button { min-height: 34px; width: 32px; font-size: 0.95rem; }
.heritage .dlg-line .qty output { min-width: 28px; font-size: 0.9rem; }
.heritage .dlg-remove { background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 1.1rem; padding: 4px 6px; line-height: 1; }
.heritage .dlg-remove:hover { color: var(--sign); }
.heritage .tip-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.heritage .tip-btn {
  min-height: 40px; padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: #fff;
  font-family: var(--font-label); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; color: var(--ink); cursor: pointer;
}
.heritage .tip-btn.active { background: var(--ox-tint); border-color: var(--sign); color: var(--sign); box-shadow: 3px 3px 0 var(--paper-edge); }
.heritage .tip-custom { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; }
.heritage .tip-custom input { width: 120px; min-height: 40px; padding: 6px 10px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); font: inherit; }
.heritage .totals { display: grid; gap: 4px; margin: 0; padding: 12px 14px; background: var(--paper-2); border: 2px solid var(--ink); box-shadow: var(--shade-paper); }
.heritage .totals div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.98rem; }
.heritage .totals .grand { font-family: var(--font-display); font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }
.heritage .totals .grand span:last-child { color: var(--sign); }
.heritage .totals small { color: var(--ink-3); font-size: 0.82rem; }
.heritage .dlg-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.heritage .dlg-actions .h-btn { width: 100%; }
.heritage .dlg-fine { font-size: 0.85rem; color: var(--ink-3); text-align: center; margin: 4px 0 0; line-height: 1.45; }

/* ---- Demo Mode banner (js/nav.js renders it under the header) ------------
   Cast-iron band, cream text, cornbread card number — the public demo's banner
   (worker-snippets/demo-banner.js) with Checkout copy. Sticky on desktop;
   static on phones where two lines would take a fifth of the viewport. Remove
   with nav.js's renderDemoBanner when real food is ever fulfilled. */
.heritage .demo-banner {
  position: sticky; top: 0; z-index: 100; text-align: center; padding: 12px 20px;
  background: var(--iron); color: var(--paper);
  font-family: var(--font-label); font-weight: 500; letter-spacing: 0.02em; font-size: 16px; line-height: 1.45;
  border-bottom: 3px solid var(--gold); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.heritage .demo-banner__inner { max-width: 1100px; margin: 0 auto; }
.heritage .demo-banner__line { display: block; }
.heritage .demo-banner__how { margin-top: 4px; font-weight: 600; }
.heritage .demo-banner strong { color: var(--gold); }
.heritage .demo-banner__card { color: var(--gold); font-size: 22px; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 601px) { html:has(.demo-banner) { scroll-padding-top: 96px; } }
@media (min-width: 601px) and (max-width: 999px) { html:has(.demo-banner) { scroll-padding-top: 120px; } }
@media (max-width: 600px) {
  .heritage .demo-banner { position: static; font-size: 15px; padding: 11px 12px; }
  .heritage .demo-banner__card { font-size: 19px; }
}

/* ---- founder story (three generations) ---------------------------------- */
.heritage .founder-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 760px) { .heritage .founder-grid { grid-template-columns: minmax(200px, 0.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); } }
.heritage .founder-portrait { margin: 0 auto; width: min(100%, 300px); text-align: center; }
@media (min-width: 760px) { .heritage .founder-portrait { width: 100%; max-width: 380px; } }
.heritage .founder-portrait img { display: block; width: 100%; aspect-ratio: 1 / 1; background: var(--paper-3); border: 2px solid var(--ink); box-shadow: var(--shade-paper); }
.heritage .founder-portrait.no-img { display: none; }
.heritage .founder-portrait figcaption { margin-top: 14px; font-family: var(--font-script); font-size: 1.2rem; color: var(--ink-2); }
.heritage .founder-copy .h-title { font-size: clamp(1.45rem, 2.8vw, 2.1rem); text-align: left; }
.heritage .founder-copy .h-eyebrow { text-align: left; }
.heritage .founder-copy .h-rule-short { margin: 14px 0 18px; }
.heritage .founder-copy p:not(.h-eyebrow) { color: var(--ink-2); font-size: 1.06rem; max-width: 52ch; line-height: 1.7; }
.heritage .founder-caveat { font-family: var(--font-label); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 759px) {
  .heritage .founder-copy { text-align: center; }
  .heritage .founder-copy .h-title, .heritage .founder-copy .h-eyebrow { text-align: center; }
  .heritage .founder-copy p:not(.h-eyebrow) { margin-left: auto; margin-right: auto; }
  .heritage .founder-copy .h-rule-short { margin-left: auto; margin-right: auto; }
}

/* ---- state + motion ----------------------------------------------------- */
.heritage .state-msg { grid-column: 1 / -1; text-align: center; padding: 40px 20px; font-family: var(--font-script); font-size: 1.6rem; color: var(--ink-2); }
@keyframes h-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.heritage .pkg-card { animation: h-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.heritage .pkg-card:nth-child(2) { animation-delay: 0.06s; } .heritage .pkg-card:nth-child(3) { animation-delay: 0.12s; }
.heritage .pkg-card:nth-child(4) { animation-delay: 0.18s; } .heritage .pkg-card:nth-child(5) { animation-delay: 0.24s; }
.heritage .pkg-card:nth-child(6) { animation-delay: 0.3s; }  .heritage .pkg-card:nth-child(7) { animation-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .heritage *, .heritage *::before, .heritage *::after { animation: none !important; transition: none !important; }
}
