/* Dee's Gourmet — site styles. All colors are tokens; light on :root, dark below. */
:root {
  color-scheme: light;
  --bg: #fbf5ea;
  --bg-alt: #f3e6cf;
  --surface: #ffffff;
  --surface-2: #fdf8ef;
  --text: #2b1d14;
  --muted: #6b5546;
  --line: #e6d6bd;
  --brand: #2f6b3f;
  --brand-ink: #ffffff;
  --brand-soft: #e3efe4;
  --accent: #b8691b;
  --accent-soft: #f8e6cc;
  --ube: #6d4593;
  --ube-soft: #efe6f7;
  --danger: #a4262c;
  --ok: #2f6b3f;
  --focus: #1f5fbf;
  --shadow: 0 1px 2px rgba(59, 36, 22, .08), 0 8px 24px rgba(59, 36, 22, .08);
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1b1713; --bg-alt: #231e19; --surface: #2a241e; --surface-2: #241f1a;
    --text: #f4ece1; --muted: #c4b4a2; --line: #3d342b;
    --brand: #6cbf80; --brand-ink: #10241a; --brand-soft: #22352a;
    --accent: #f0a54a; --accent-soft: #3a2c1c; --ube: #c3a2e6; --ube-soft: #2f2639;
    --danger: #ff8a8f; --ok: #6cbf80; --focus: #8ab4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b1713; --bg-alt: #231e19; --surface: #2a241e; --surface-2: #241f1a;
  --text: #f4ece1; --muted: #c4b4a2; --line: #3d342b;
  --brand: #6cbf80; --brand-ink: #10241a; --brand-soft: #22352a;
  --accent: #f0a54a; --accent-soft: #3a2c1c; --ube: #c3a2e6; --ube-soft: #2f2639;
  --danger: #ff8a8f; --ok: #6cbf80; --focus: #8ab4ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.eyebrow { font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 1.2rem/1 var(--serif); }
.brand img { width: 200px; height: 40px; display: block; }
@media (max-width: 420px) { .brand img { width: 150px; height: 30px; } }
.hero-logo { width: clamp(170px, 22vw, 240px); height: auto; margin: 0 0 18px; display: block; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--bg-alt); }
.header-cta { white-space: nowrap; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; }
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .header-cta { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, var(--text)); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Hero */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-art { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.facts li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 7px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { order: -1; } }

/* Sections */
section { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 30px; }
.section-head p { margin: 0; color: var(--muted); max-width: 52ch; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-addons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1020px) { .grid-addons { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-addons { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.card-img { aspect-ratio: 4 / 3; background: var(--bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.price { font: 700 1.15rem/1 var(--sans); color: var(--accent); white-space: nowrap; }
.includes { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.includes li { display: inline; }
.includes li + li::before { content: " · "; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--ube-soft); color: var(--ube); align-self: flex-start; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card.addon .card-body { padding: 14px 14px 16px; }
.card.addon h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 650; }
.card.addon .price { font-size: 1rem; }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { background: transparent; color: var(--text); border: 0; width: 38px; height: 38px; font: 600 1.15rem/1 var(--sans); cursor: pointer; }
.qty button:hover { background: var(--bg-alt); }
.qty output { min-width: 26px; text-align: center; font-weight: 650; }
.card.selected { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), var(--shadow); }

/* Order bar */
.order-bar { position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 140%); transition: transform .25s ease; z-index: 50; width: min(640px, 100% - 24px); background: var(--text); color: var(--bg); border-radius: 999px; padding: 10px 10px 10px 22px; display: flex; align-items: center; gap: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); visibility: hidden; }
.order-bar.show { transform: translate(-50%, 0); visibility: visible; }
.order-bar .sum { flex: 1; font-weight: 600; font-size: .98rem; }
.order-bar .btn-primary { background: var(--accent); color: #1d1209; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; margin-bottom: 12px; }
.steps h3 { font-size: 1.1rem; font-family: var(--sans); font-weight: 650; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Split / catering teaser */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.split .art { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 20px 0 26px; }
.stats div { font-size: .9rem; color: var(--muted); }
.stats strong { display: block; font: 700 1.8rem/1.1 var(--serif); color: var(--text); }

/* Packages */
.packages .card-body { gap: 10px; }
.packages ul.list { margin: 4px 0 0; padding-left: 1.1em; color: var(--muted); }
.packages .featured { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Forms */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(20px, 3.5vw, 36px); }
.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
textarea { min-height: 120px; resize: vertical; }
.seg { display: inline-flex; background: var(--bg-alt); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 18px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--text); padding: 9px 16px; border-radius: 999px; font: 600 .95rem/1 var(--sans); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow); color: var(--brand); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.summary { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; font-size: .95rem; }
.summary table { width: 100%; border-collapse: collapse; }
.summary td { padding: 3px 0; }
.summary td:last-child { text-align: right; white-space: nowrap; }
.summary tr.total td { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; }
.summary .empty { color: var(--muted); margin: 0; }
.notice { border-radius: 12px; padding: 12px 14px; margin-top: 14px; font-size: .95rem; }
.notice.ok { background: var(--brand-soft); color: var(--text); border: 1px solid var(--brand); }
.notice.err { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); border: 1px solid var(--danger); }
.side { display: flex; flex-direction: column; gap: 16px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.info-card h3 { font-size: 1.1rem; font-family: var(--sans); font-weight: 650; }
.info-card p { color: var(--muted); margin: 0 0 6px; }
.big-link { font: 700 1.3rem/1.3 var(--sans); text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 40px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer a { color: var(--muted); }
.legal-line > * + *::before { content: " · "; color: var(--muted); }

/* Theme switch */
.theme-switch { display: inline-flex; background: var(--bg-alt); border-radius: 999px; padding: 3px; gap: 2px; }
.theme-switch button { border: 0; background: transparent; color: var(--muted); width: 34px; height: 30px; border-radius: 999px; cursor: pointer; font-size: .95rem; }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.site-header .theme-switch { margin-left: 4px; }
@media (max-width: 860px) { .site-header .theme-switch { display: none; } }

/* Legal pages */
.legal { max-width: 780px; padding: 48px 0 64px; }
.legal h2 { font-size: 1.45rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--text); }
.legal .effective { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.form-note { margin: 10px 0 0; font-size: .88rem; color: var(--muted); }
.ts { margin-top: 14px; }
.legal-line > a::before { display: inline-block; white-space: pre; text-decoration: none; }
/* live menu (from the ordering system) */
.menu-live .menu-cat { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 28px 0 14px; }
.menu-live .menu-cat:first-child { margin-top: 8px; }
.card-img .ph { width: 100%; height: 100%; display: grid; place-items: center; font: 700 3rem var(--serif); color: var(--brand); background: var(--brand-soft); }
.card.soldout { opacity: .6; }
.menu-cta { margin: 28px 0 0; text-align: center; }
#menu-status .notice { margin: 0 0 8px; }
.nav-order { display: none; }
@media (max-width: 860px) { .nav-order { display: block; font-weight: 700; color: var(--brand) !important; } }

/* ---- signed-in account menu and banners (also shown on public pages when staff are signed in) ---- */
/* avatars */
.av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.av-lg { width: 56px; height: 56px; }
.av-ini { display: inline-grid; place-items: center; background: var(--brand); color: var(--brand-ink); font: 700 .85rem/1 var(--sans); }
.av-lg.av-ini { font-size: 1.2rem; }
/* account menu */
.acct { position: relative; }
.acct summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--bg-alt); font-size: .9rem; }
.acct summary::-webkit-details-marker { display: none; }
.acct-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.acct .tag { font-size: .72rem; padding: 2px 7px; border-radius: 999px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.acct .tag-breakglass { color: var(--danger); border-color: var(--danger); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 270px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; }
.acct-who { display: flex; gap: 10px; align-items: center; padding: 6px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-who div { display: flex; flex-direction: column; min-width: 0; }
.acct-who span, .acct-who small { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 9px 10px; border-radius: 8px; font: 500 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.menu-item:hover { background: var(--bg-alt); }
.acct-menu form { margin: 0; }
.acct-menu form:last-child { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
@media (max-width: 640px) { .acct-name, .acct .tag { display: none; } .app-title { display: none; } }
/* banners */
.banner { background: var(--brand-soft); border-bottom: 1px solid var(--line); font-size: .92rem; }
.banner .wrap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.banner form { margin: 0; }
.banner-danger { background: color-mix(in srgb, var(--danger) 16%, var(--surface)); color: var(--text); font-weight: 600; }
.linklike { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* Announcement bar */
.announce { background: var(--brand); color: #fff; font-size: .95rem; }
.announce .wrap { padding-top: 9px; padding-bottom: 9px; text-align: center; }
.announce a { color: #fff; font-weight: 700; margin-left: .4em; }

/* Newsletter signup (footer) */
.nl { flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: 8px 24px; align-items: center; padding: 18px 20px; margin-bottom: 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.nl-text { display: grid; gap: 2px; }
.nl-text strong { font-family: var(--serif); font-size: 1.2rem; }
.nl-text span { color: var(--muted); }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.nl .hint { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--muted); }
.nl .notice { grid-column: 1 / -1; margin-top: 0; }
.nl .ts { grid-column: 1 / -1; }
@media (max-width: 720px) { .nl { grid-template-columns: 1fr; } }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* News */
.news-grid { gap: 20px; }
.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news-card a { color: inherit; text-decoration: none; display: block; height: 100%; }
.news-card img, .nc-ph { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft)); }
.nc-body { padding: 16px 18px 20px; }
.nc-body h3 { margin: 4px 0 6px; font-size: 1.25rem; }
.nc-body p { margin: 0; color: var(--muted); }
.nc-date { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.news-card a:hover h3, .news-card a:focus-visible h3 { text-decoration: underline; }
.news-hero { padding-bottom: 8px; }
.article { max-width: 760px; padding: 40px 0 64px; }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: .2em 0 .3em; }
.article .eyebrow a { color: inherit; }
.article-cover { width: 100%; height: auto; border-radius: var(--radius); margin: 8px 0 24px; }
.prose { font-size: 1.1rem; line-height: 1.7; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; } .prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose figure { margin: 1.4em 0; } .prose figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 4px solid var(--accent); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.article-cta { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; }
.nl-page { max-width: 640px; padding: 40px 0; }
.nl-page form { margin-top: 18px; }
