/* Goat Pepper Kitchen — shared design system.
   ART DIRECTION: "The lid comes off." A Nassau kitchen at the moment the pot opens.
   Light: one warm lamp, upper left, on the bush-green night kitchen; chapters move toward daylight (cream, pepper yellow).
   Material: glazed enamel (the Sunday pot) leads; painted board and kraft paper support. Geometry: circles on a hard board grid.
   Motion: decelerating, like a lid lifting. No bounce, no shimmer. Tokens come from the brand kit.
   Rules: UI surfaces stay flat (square cards, 2px ink rules). Light and gradient live only on the dimensional objects and the pill buttons. */
@font-face { font-family: "Alfa Slab One"; src: url("/fonts/alfa-slab-one.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  --yellow: #F7C331; --on-yellow: #14231A;
  --red: #C9281A; --on-red: #FFF6DC; --red-text: #B02215;
  --ink: #14231A; --cream: #FFF6DC; --white: #FFFFFF;
  --leaf: #2F6B2A; --on-leaf: #FFFFFF; --leaf-soft: #E4EFD9;
  --muted: #4D5A50; --line: #E3D7B4; --yellow-soft: #FCE7A6; --red-soft: #F6D3CC;
  --ground: var(--cream); --surface: var(--white); --fg: var(--ink);

  --display: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s14: 56px; --s20: 80px;
  --rule: 2px solid var(--ink);
  --max: 1240px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .8, .2, 1);          /* entrances: gentle deceleration */
  --ease-press: cubic-bezier(.3, 0, .2, 1);
  --t-press: 120ms; --t-hover: 200ms; --t-panel: 300ms; --t-reveal: 600ms; --t-sign: 1100ms;
  --night: #0E1A13; --lamp: #FFD978;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--ground); color: var(--fg); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.on-dark :focus-visible, .dark :focus-visible { outline-color: var(--yellow); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type */
.display-xl, .display, .dish, h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: 0; }
.display-xl { font-size: clamp(3rem, 11vw, 9.5rem); line-height: .9; text-transform: uppercase; }
.display { font-size: clamp(2rem, 5.4vw, 4rem); line-height: .95; text-transform: uppercase; }
.dish { font-size: 1.375rem; line-height: 1.15; }
.title { font: 700 1.5rem/1.25 var(--sans); margin: 0; }
.label { font: 700 .75rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.small { font-size: .875rem; line-height: 1.45; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; font-weight: 700; }
p { margin: 0; max-width: 65ch; }

/* ---------- layout */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }

/* ---------- checker band (Junkanoo paper / greaseproof paper) */
.checker { height: 24px; background-color: var(--yellow);
  background-image: conic-gradient(var(--ink) 0 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0);
  background-size: 24px 24px; }
.checker.red { background-color: var(--cream); background-image: conic-gradient(var(--red) 0 25%, transparent 0 50%, var(--red) 0 75%, transparent 0); }
.checker.thin { height: 12px; background-size: 12px 12px; }

/* ---------- pill buttons: tactile, lit from above, one quiet glow on the primary */
.btn { --b-bg: linear-gradient(180deg, #FFD458 0%, var(--yellow) 55%, #EDB21F 100%); --b-fg: var(--on-yellow); --b-glow: rgba(247, 195, 49, .45); --b-edge: rgba(20, 35, 26, .9);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px;
  border: 1.5px solid var(--b-edge); border-radius: 999px; background: var(--b-bg); color: var(--b-fg);
  font: 700 1rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap; isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(20,35,26,.12), 0 6px 18px -8px var(--b-glow);
  transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease), filter var(--t-hover); }
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(20,35,26,.12), 0 12px 26px -10px var(--b-glow); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: var(--t-press); box-shadow: inset 0 2px 4px rgba(20,35,26,.25); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn .arr { transition: transform var(--t-hover) var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn.red { --b-bg: linear-gradient(180deg, #DE3B2B 0%, var(--red) 60%, #A81F13 100%); --b-fg: var(--on-red); --b-glow: rgba(201, 40, 26, .5); }
.btn.leaf { --b-bg: linear-gradient(180deg, #3E8236 0%, var(--leaf) 60%, #245520 100%); --b-fg: var(--on-leaf); --b-glow: rgba(47, 107, 42, .5); }
.btn.ink { --b-bg: linear-gradient(180deg, #24382B 0%, var(--ink) 70%); --b-fg: var(--cream); --b-glow: rgba(20, 35, 26, .45); }
.btn.ghost { --b-bg: transparent; --b-glow: transparent; box-shadow: none; border-color: currentColor; color: inherit; }
.btn.ghost:hover { background: rgba(20,35,26,.06); box-shadow: none; }
.btn.small { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; filter: saturate(.6); }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--b-fg); border-right-color: transparent; animation: spin-btn .7s linear infinite; }
@keyframes spin-btn { to { transform: rotate(360deg); } }
.on-dark .btn.ghost, .dark .btn.ghost { color: var(--cream); }
.on-dark .btn:focus-visible, .dark .btn:focus-visible { outline-color: var(--yellow); }
.link { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: inherit; }

/* ---------- inputs */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font: 700 .75rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 12px 14px; border: var(--rule); border-radius: 6px; background: var(--white); color: var(--ink); }
textarea.input { min-height: 96px; resize: vertical; }
.input::placeholder { color: #7d877f; }
.hint { font-size: .85rem; color: var(--muted); }
.err { color: var(--red-text); font-weight: 700; font-size: .9rem; }

/* segmented choice (pickup / delivery, pay method, sides) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: var(--rule); border-radius: 999px; overflow: hidden; padding: 3px; gap: 3px; background: var(--white); }
.seg button { min-height: 44px; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: var(--rule); background: var(--white); text-align: left; font-weight: 600; width: 100%; color: var(--ink); }
.choice[aria-pressed="true"] { background: var(--yellow); }
.choice .tick { width: 22px; height: 22px; border: var(--rule); flex: none; display: grid; place-items: center; background: var(--white); }
.choice[aria-pressed="true"] .tick::after { content: ""; width: 10px; height: 10px; background: var(--ink); }

/* ---------- heat pips: always paired with the word */
.heat { display: inline-flex; align-items: center; gap: 3px; font: 700 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.heat svg { width: 13px; height: 13px; }
.heat .on { fill: var(--red); }
.heat .off { fill: var(--line); }
.heat b { margin-left: 5px; font-weight: 700; }
.on-dark .heat .off, .dark .heat .off { fill: rgba(255,246,220,.25); }

/* ---------- macro strip (Lean Heat) */
.macros { display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--rule); }
.macros div { padding: 8px 0 0; }
.macros b { display: block; font: 700 1.05rem/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.macros span { font-size: .75rem; color: var(--muted); }
.flag-leaf { display: inline-block; background: var(--leaf); color: var(--on-leaf); font: 700 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 5px 8px; }
.badge { display: inline-block; border: 2px solid currentColor; font: 700 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 4px 7px; }

/* ---------- site header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--ground); border-bottom: var(--rule); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--ground); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-head .brand img { height: 38px; width: auto; }
.site-head nav { display: flex; align-items: center; gap: 28px; }
.site-head nav a { text-decoration: none; font-weight: 700; font-size: .95rem; padding: 6px 0; border-bottom: 3px solid transparent; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { border-color: var(--red); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.bag-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 8px 6px 16px; border: var(--rule); border-radius: 999px; background: var(--white); font-weight: 700; color: var(--ink); text-decoration: none; transition: transform var(--t-hover) var(--ease); }
.bag-btn:hover { transform: translateY(-1px); }
.bag-btn .count { min-width: 28px; height: 28px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--red); color: var(--on-red); font-size: .82rem; font-variant-numeric: tabular-nums; }
.bag-btn .count:empty, .bag-btn .count[data-n="0"] { background: var(--line); color: var(--ink); }
.menu-toggle { display: none; min-height: 44px; min-width: 44px; border: var(--rule); border-radius: 50%; background: var(--white); }
@media (max-width: 860px) {
  .site-head nav { display: none; }
  .site-head nav.open { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--ground); border-bottom: var(--rule); }
  .site-head nav.open a { padding: 16px var(--gut-r) 16px var(--gut); border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .site-head .brand img { height: 30px; }
  .head-actions .btn.order-cta { display: none; }
}

/* preview ribbon: shows until the owner switches the site live */
.preview-bar { background: var(--ink); color: var(--cream); font-size: .82rem; text-align: center; padding: 8px var(--gut-r) 8px var(--gut); }
.preview-bar b { color: var(--yellow); }

/* ---------- sheet (item details, bag, checkout) */
.scrim { position: fixed; inset: 0; background: rgba(20, 35, 26, .55); z-index: 80; opacity: 0; transition: opacity .2s; }
.scrim.show { opacity: 1; }
.sheet { position: fixed; z-index: 90; background: var(--ground); display: flex; flex-direction: column; max-height: 100%;
  right: 0; top: 0; bottom: 0; width: min(480px, 100%); border-left: var(--rule); transform: translateX(100%); transition: transform .28s var(--ease); }
.sheet.show { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gut-r) 16px var(--gut); border-bottom: var(--rule); background: var(--yellow); }
.sheet-body { flex: 1; overflow-y: auto; padding: 20px var(--gut-r) 24px var(--gut); display: flex; flex-direction: column; gap: 20px; overscroll-behavior: contain; }
.sheet-foot { padding: 16px var(--gut-r) calc(16px + env(safe-area-inset-bottom, 0px)) var(--gut); border-top: var(--rule); background: var(--white); display: flex; flex-direction: column; gap: 10px; }
.x { width: 44px; height: 44px; border: var(--rule); border-radius: 50%; background: var(--white); display: grid; place-items: center; flex: none; color: var(--ink); }
@media (max-width: 640px) {
  .sheet { top: auto; left: 0; width: 100%; max-height: 92%; border-left: 0; border-top: var(--rule); transform: translateY(100%); }
}

/* ---------- toast */
.toasts { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--ink); color: var(--cream); padding: 14px 16px; border: 2px solid var(--ink); font-weight: 600; pointer-events: auto; animation: toast-in .25s var(--ease); }
.toast.bad { background: var(--red); color: var(--on-red); border-color: var(--red); }
.toast.good { background: var(--leaf); color: var(--on-leaf); border-color: var(--leaf); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- qty stepper */
.qty { display: inline-grid; grid-template-columns: 40px 44px 40px; border: var(--rule); border-radius: 999px; background: var(--white); overflow: hidden; }
.qty button { border: 0; background: none; font-size: 1.25rem; font-weight: 700; min-height: 40px; color: var(--ink); }
.qty output { display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- footer */
.site-foot { background: var(--ink); color: var(--cream); }
.site-foot .wrap { padding-block: 56px 32px; display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,246,220,.2); padding-top: 20px; font-size: .82rem; color: rgba(255,246,220,.7); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-foot h3 { font-family: var(--sans); font: 700 .75rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* reveal on scroll: content is visible at rest; motion only adds lift */
.rise { transition: transform var(--t-reveal) var(--ease), opacity var(--t-reveal) var(--ease); }
.js-motion .rise:not(.in) { transform: translateY(18px); opacity: .001; }

/* ================================================================ LID GLASS
   The brand's glass is the clear lid over a hot bowl: warm-tinted, lightly fogged, lit from the upper left.
   Roles: FOUNDATION = cream or night ground (solid). CONTENT = white square cards (solid, for reading).
   ELEVATED = pearl lid glass (header, sheets, drawers, toasts). SIGNATURE = smoked glass over the night kitchen.
   Each layer is designed separately: tinted body, selective blur, top-left highlight, variable edge, inner shade, contact shadow. */
:root {
  --lid-body: rgba(255, 250, 236, .72); --lid-body-strong: rgba(255, 250, 236, .9);
  --smoke-body: rgba(18, 32, 24, .58); --smoke-body-strong: rgba(14, 26, 19, .86);
  --glass-blur: 18px; --glass-sat: 150%;
  --glass-hi: rgba(255, 255, 255, .55); --glass-edge: rgba(255, 255, 255, .55); --smoke-edge: rgba(255, 236, 190, .28);
  --glass-shadow: 0 18px 40px -22px rgba(14, 26, 19, .45), 0 2px 6px -2px rgba(14, 26, 19, .18);
}
.glass, .glass-smoke { position: relative; isolation: isolate; }
.glass { background: var(--lid-body); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 rgba(20, 35, 26, .06), var(--glass-shadow); }
.glass-smoke { background: var(--smoke-body); color: var(--cream); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%); backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, .22), inset 0 0 0 1px rgba(255, 236, 190, .08), 0 22px 50px -24px rgba(0, 0, 0, .7); }
/* the lamp catches the upper-left edge: a highlight that fades along the border, not a uniform white outline */
.glass::before, .glass-smoke::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(135deg, var(--glass-edge) 0%, rgba(255, 255, 255, .08) 38%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .14) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.glass-smoke::before { background: linear-gradient(135deg, rgba(255, 217, 120, .55) 0%, var(--smoke-edge) 30%, rgba(255, 236, 190, .04) 62%, rgba(255, 236, 190, .12) 100%); }
/* a soft fogged reflection across one corner, as on a warm lid */
.glass::after, .glass-smoke::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, .28), transparent 55%); }
.glass-smoke::after { background: radial-gradient(90% 70% at 0% 0%, rgba(255, 217, 120, .12), transparent 60%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--lid-body-strong); } .glass-smoke { background: var(--smoke-body-strong); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--cream); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .glass-smoke { background: var(--night); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* elevated surfaces adopt lid glass */
.site-head { background: var(--lid-body-strong); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .4); }
.home .site-head { background: var(--lid-body-strong); }
.sheet { background: var(--lid-body-strong); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); }
.sheet-head { background: rgba(247, 195, 49, .92); }
.sheet-foot { background: rgba(255, 255, 255, .78); }
.scrim { background: rgba(14, 26, 19, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.toast { background: var(--smoke-body-strong); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-color: rgba(255, 236, 190, .22); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); }
.toast.good { background: rgba(47, 107, 42, .94); } .toast.bad { background: rgba(201, 40, 26, .95); }
@media (prefers-reduced-transparency: reduce) { .site-head, .sheet, .toast, .scrim { -webkit-backdrop-filter: none; backdrop-filter: none; } .site-head, .sheet { background: var(--cream); } }

/* odometer digits: tabular strips that roll; motion stops for reduced motion */
.odo-d { display: inline-block; height: 1.15em; overflow: hidden; vertical-align: bottom; }
.odo-s { display: flex; flex-direction: column; transition: transform 620ms cubic-bezier(.2, .8, .2, 1); }
.odo-s > span { display: block; height: 1.15em; line-height: 1.15em; }
@media (prefers-reduced-motion: reduce) { .odo-s { transition: none; } }
