/* ================================================================
   Little Luna — v2. Typographic, airy, restrained.
   Palette & fonts arrive as CSS custom properties from PHP.
   The ONLY moon on the site is .crescent-bullet on menu headings.
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---------------- design tokens (v2.1) ----------------
   One radius scale and an 8px-based spacing scale so cards, buttons, and
   vertical rhythm stay consistent everywhere. Colors + fonts arrive from PHP. */
:root {
    --radius: 18px;         /* cards, chooser cards, issue card, media */
    --radius-sm: 12px;      /* inputs, small tiles */
    --radius-pill: 999px;   /* buttons */

    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --space-7: 96px;

    /* two half-steps for fine in-card rhythm (kept on a 4px sub-grid) */
    --space-0-5: 4px;
    --space-1-5: 12px;
    --space-2-5: 20px;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    transition: background .35s ease, color .35s ease;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute; left: -9999px;
    background: var(--accent); color: #2B2410;
    padding: 10px 18px; border-radius: 0 0 8px 0; font-weight: 600; z-index: 200;
}
.skip-link:focus { left: 0; top: 0; }

/* honeypot — hidden from humans, visible to bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------------- type ---------------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.12;
    margin: 0 0 .5em;
    letter-spacing: -0.02em;
    font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.18rem; }
h4 { font-family: var(--font-subhead); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* The 4.6rem clamp is the homepage hero only. Utility page heads
   (Contact / FAQ / Catering / Menu / Brunch) top out far smaller. */
.page-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
/* v2.3: page heads sit close under the header — no dead void */
.section.page-head { padding: clamp(var(--space-3), 4vw, var(--space-4)) 0 clamp(var(--space-2), 3vw, var(--space-3)); }
.page-head .lede { margin-top: var(--space-1-5); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(var(--space-4), 5vw, var(--space-5)) 0; }
.subtle { color: var(--muted); }
.small { font-size: .85rem; }
.hint { color: var(--muted); font-weight: 400; font-size: .82rem; }
.prose { max-width: 60ch; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.eyebrow {
    display: inline-block;
    font-family: var(--font-subhead);
    font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
    line-height: 1.5;
    color: var(--muted); margin: 0 0 var(--space-2);
}
.text-link {
    color: var(--brand); font-weight: 500;
    /* v2.5 (B#11, SITE-WIDE): thinner accent underline (2px → 1px) everywhere. */
    border-bottom: 1px solid var(--accent);
    padding-bottom: 1px;
    transition: color .2s ease;
}
.text-link:hover { color: var(--ink); }

/* Heading left, trailing link right, on one baseline (desktop). */
.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; gap: var(--space-2) var(--space-4);
    margin-bottom: var(--space-4);
}
.section-head h2 { margin-bottom: 0; }
.section-head > p, .section-head .rating-line { margin: 0; }
@media (max-width: 640px) {
    .section-head { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
}

/* ------- the one surviving moon: crescent bullet on menu headings ------- */
.crescent-bullet {
    display: inline-block;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    position: relative;
    flex: none;
    margin-right: 4px;
    vertical-align: baseline;
}
.crescent-bullet::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: 50%;
    background: var(--paper);
    transform: translateX(-30%) scale(.92);
    transition: background .35s ease;
}

/* ---------------- buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    white-space: nowrap;
    text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* the dominant order CTA — 2–4x the weight of anything near it.
   v2.5 (B#9, SITE-WIDE): no resting glow — the shadow appears on hover only. */
.btn-xl {
    padding: 24px 52px;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: none;
}
.btn-xl:hover { box-shadow: 0 16px 44px color-mix(in srgb, var(--accent) 50%, transparent); }

.btn-accent { background: var(--accent); color: #2B2410; }
.btn-accent:hover { color: #2B2410; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-brand { background: var(--brand); color: var(--paper); }
.btn-brand:hover { color: var(--paper); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---------------- header ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--card) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--space-3); height: 72px; }
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { height: 38px; width: auto; }
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); }

.main-nav { display: flex; gap: var(--space-3); margin-left: auto; }
/* v2.5 (B#1): slightly larger desktop nav (.93rem → 1rem). Mobile pulldown is
   pinned back to .93rem in the ≤980px block so mobile is unchanged. */
.main-nav a { font-family: var(--font-subhead); font-size: 1rem; font-weight: 500; color: var(--muted); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }

/* Screen Menu Match: nav links carry the menu-board yellow. */
[data-palette="screen-menu-match"] .main-nav a { color: var(--accent); }
[data-palette="screen-menu-match"] .main-nav a:hover,
[data-palette="screen-menu-match"] .main-nav a[aria-current="page"] {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: var(--space-1-5); flex: none; }
.header-order { padding: var(--space-1-5) var(--space-2-5); font-size: .88rem; }

.theme-toggle {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    color: var(--muted);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; fill: currentColor; stroke: none; }

.nav-burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: none; border: 0; cursor: pointer; min-width: 44px; min-height: 44px; padding: 10px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------------- hero ---------------- */
.hero { padding: clamp(var(--space-4), 5vw, var(--space-5)) 0 clamp(var(--space-3), 5vw, var(--space-4)); }

/* Desktop: copy left, image right. Collapses to one column below 900px, and
   when no image is set the single column just fills the width. */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    align-items: center;
}
.hero-copy { max-width: 46ch; }

/* v2.5 hero (Prompt B): the H1 is now the visually-dominant headline.
   "Skip the line, order ahead" (.hero-display) drops to a modest yellow accent
   line under the made-to-order paragraph. Order: eyebrow → H1 → support →
   display → CTA → issue. */

/* Semantic H1 — now the giant headline (was the small descriptive line). */
.hero-h1 {
    margin: var(--space-1) 0 var(--space-1);
    font-family: var(--font-display);
    font-weight: 700;
    /* B#4: clamp max 4.4rem → 3.6rem, line-height 1.02 → 0.98. Mobile floor kept. */
    font-size: clamp(2.4rem, 8vw, 3.6rem);
    line-height: 0.98;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-transform: none;
    text-wrap: balance;
}

/* Display line — B#5/#6: single element, entire line yellow + bold, sized to
   roughly match .hero-support (a modest accent line, NOT a headline). */
.hero-display {
    margin: 0 0 var(--space-2-5);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--accent);
    font-size: 1.15rem;
    text-wrap: balance;
}

/* B#7: made-to-order paragraph now sits ABOVE the display line; tighten its
   bottom margin so the yellow line reads as a caption to it. */
.hero-support {
    margin: 0 0 var(--space-1-5);
    color: var(--muted);
    max-width: 52ch;
    line-height: 1.55;
}

/* CTA hierarchy: primary order button (full width), then a secondary row.
   v2.5 (B#10): one shared width var locks all three stacked rows to the same
   width, left-aligned in the hero column. .hero-issue shares the same width. */
.hero-cta { --hero-cta-w: 460px; display: flex; flex-direction: column; gap: var(--space-1-5); max-width: var(--hero-cta-w); margin-inline: 0; }
.hero-cta-order { width: 100%; }
.hero-cta-secondary-row { display: flex; gap: var(--space-1-5); }
.hero-cta-secondary-row .btn { flex: 1 1 0; min-height: 48px; }

/* Tertiary: order-issue, small and quiet, clearly subordinate.
   v2.5 (B#10): constrained to the same width as the CTA group, left-aligned. */
.hero-issue {
    display: flex; align-items: baseline; flex-wrap: wrap;
    gap: var(--space-0-5) var(--space-1);
    margin: var(--space-2-5) 0 0;
    max-width: 460px;
    font-size: .88rem;
    color: var(--muted);
}
.hero-issue-label { font-weight: 500; color: var(--muted); }
.hero-issue a { font-weight: 600; }

.hero-media { margin: var(--space-2) 0 0; }
.hero-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Two columns once there's room. */
@media (min-width: 900px) {
    /* v2.5 (B#3): tighter horizontal gap between copy and image (32px → 20px). */
    .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: var(--space-2-5); }
    .hero-grid--noimg { grid-template-columns: 1fr; }
    .hero-media { display: flex; margin: 0; }
    .hero-media img { height: 100%; aspect-ratio: 4 / 3; min-height: 0; }
    .hero-copy { max-width: none; }
}

.hero-info { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-4); font-size: .95rem; }
.hero-info .label {
    display: block; font-size: .72rem; text-transform: uppercase;
    letter-spacing: .12em; color: var(--muted); margin-bottom: var(--space-0-5);
}
.map-link { border-bottom: 1px dotted var(--line); }
.map-link:hover { border-bottom-color: var(--accent); }

/* ---------------- one-sentence story ---------------- */
.story-line { padding: clamp(var(--space-3), 4vw, var(--space-4)) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-sentence {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.4vw, 1.9rem);
    line-height: 1.3;
    letter-spacing: -0.015em;
    max-width: 46ch;
    margin: 0 auto;
    text-align: center;
    text-wrap: balance;
}

/* ---------------- featured ---------------- */

/* ---------------- reviews ---------------- */
.rating-line { color: var(--muted); font-size: .95rem; }
.stars { color: var(--accent); letter-spacing: 2px; margin-right: var(--space-1); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-3); }
.review-card {
    margin: 0; padding: var(--space-3);
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.review-card p { margin: 0 0 var(--space-2); font-size: 1.02rem; line-height: 1.6; }
.review-card cite { font-style: normal; font-size: .85rem; color: var(--muted); }

/* ---------------- menu page ---------------- */
.menu-tabs {
    position: sticky; top: 72px; z-index: 90;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.menu-tabs-row { display: flex; gap: var(--space-3); overflow-x: auto; padding-top: var(--space-2); padding-bottom: var(--space-2); scrollbar-width: none; }
.menu-tabs-row::-webkit-scrollbar { display: none; }
.menu-tabs-row a { white-space: nowrap; font-size: .9rem; font-weight: 500; color: var(--muted); padding-bottom: 4px; }
.menu-tabs-row a:hover, .menu-tabs-row a.active { color: var(--ink); border-bottom: 2px solid var(--accent); }

.menu-columns { columns: 2; column-gap: var(--space-6); }
.menu-stack { display: block; }
.menu-cat { break-inside: avoid; margin-bottom: var(--space-5); scroll-margin-top: 140px; }
.menu-cat-name { display: flex; align-items: center; gap: var(--space-1); font-size: 1.35rem; margin-bottom: var(--space-1); }
.menu-cat-note { font-family: var(--font-subhead); color: var(--muted); font-size: .88rem; margin: 0 0 var(--space-2); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { padding: var(--space-1-5) 0; border-bottom: 1px solid var(--line); }
.menu-list li:last-child { border-bottom: 0; }
.menu-item-name { display: block; font-weight: 600; }
.menu-item-desc { display: block; color: var(--muted); font-size: .9rem; margin-top: var(--space-0-5); }

.item-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space-3); }
.item-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item-card-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.item-card-body { padding: var(--space-2-5) var(--space-2-5) var(--space-3); }
.item-card-body h3 { margin: 0 0 var(--space-1); font-size: 1.05rem; }
.item-card-body p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------------- brunch / locations ---------------- */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-4); }
.loc-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 0 0 var(--space-4); overflow: hidden;
}
.loc-photo { margin: 0 0 var(--space-3); }
.loc-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.loc-logo { margin: 0 var(--space-4) var(--space-2); height: 40px; width: auto; }
.loc-card h2 { margin: 0 var(--space-4) var(--space-1); }
.loc-type {
    margin: 0 var(--space-4) var(--space-2); font-family: var(--font-subhead);
    font-size: .74rem; text-transform: uppercase;
    letter-spacing: .12em; color: var(--accent); font-weight: 600;
}
.loc-meta { margin: 0 var(--space-4) var(--space-2); font-size: .95rem; }
.loc-note { margin: 0 var(--space-4) var(--space-3); color: var(--muted); font-size: .93rem; }
.loc-actions { display: flex; flex-wrap: wrap; gap: var(--space-1-5); margin: 0 var(--space-4); }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 780px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: var(--space-0-5) 0; }
.faq-list summary {
    cursor: pointer; list-style: none;
    padding: var(--space-2-5) var(--space-4) var(--space-2-5) 0; position: relative;
    font-weight: 600; font-size: 1.03rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+"; position: absolute; right: 4px; top: 50%;
    transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); font-weight: 400;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-answer { padding: 0 0 var(--space-3); color: var(--muted); max-width: 65ch; }

/* ---------------- contact flow ---------------- */
.flow-q { margin-bottom: var(--space-4); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-2); }
.choice-card {
    display: flex; flex-direction: column; gap: var(--space-1); text-align: left;
    padding: var(--space-3);
    background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
    cursor: pointer; font-family: inherit;
    transition: border-color .2s ease, transform .2s ease;
}
.choice-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.choice-label { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.choice-blurb { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.choice-fallback { list-style: none; padding: 0; }

/* the smooth drop-down transition into the form */
.flow-form { overflow: hidden; }
.flow-form[hidden] { display: none; }
.flow-form.dropping { animation: drop-in .42s cubic-bezier(.16,1,.3,1); }
@keyframes drop-in {
    from { opacity: 0; transform: translateY(-14px); max-height: 0; }
    to   { opacity: 1; transform: translateY(0); max-height: 2200px; }
}
.flow-back {
    background: none; border: 0; cursor: pointer; padding: 0;
    color: var(--muted); font-family: inherit; font-size: .9rem; margin-bottom: var(--space-2-5);
}
.flow-back:hover { color: var(--ink); }

/* ---------------- forms ---------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-4); align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); }
.stack-form { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.stack-form label { display: grid; gap: var(--space-1); font-size: .88rem; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    font-family: inherit; font-size: .95rem; font-weight: 400;
}
input:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; }
.form-ok { color: var(--brand); font-weight: 600; }
.form-ok.big { font-size: 1.1rem; }

/* Wraps so the button drops below the input full-width in a narrow column,
   instead of overflowing. */
.subscribe-form { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-bottom: var(--space-3); }
.subscribe-form input { flex: 1 1 180px; min-width: 0; }
.subscribe-form .btn { padding: var(--space-1-5) var(--space-2); font-size: .85rem; flex: 0 0 auto; }
@media (max-width: 420px) {
    .subscribe-form .btn { flex: 1 1 100%; }
}

.catering-photo { margin: 0; }
.catering-photo img { border-radius: var(--radius); }
.catering-photo figcaption { margin-top: var(--space-1); }

/* ---------------- gallery ---------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-2); }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }

/* ---------------- footer ---------------- */
.site-footer { background: var(--card); border-top: 1px solid var(--line); padding: var(--space-4) 0 var(--space-3); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-4); align-items: start; }
.footer-col { min-width: 0; }
.footer-brand img { height: 36px; width: auto; margin-bottom: var(--space-1-5); }
.footer-tag { color: var(--muted); font-size: .9rem; }
.socials { display: flex; gap: var(--space-2); flex-wrap: wrap; font-size: .9rem; margin-top: var(--space-2); }
.footer-col h4 { margin-top: var(--space-2-5); margin-bottom: var(--space-1); }
.footer-col h4:first-child { margin-top: 0; }
.footer-col p { font-size: .92rem; margin: 0 0 var(--space-1); }
.footer-col a { word-break: break-word; }
.footer-base {
    margin-top: var(--space-5); padding-top: var(--space-3);
    border-top: 1px solid var(--line);
    text-align: center; color: var(--muted); font-size: .85rem;
}

/* ---------------- mobile order bar ---------------- */
.mobile-order-bar { display: none; }

/* ---------------- reveals ----------------
   Only hide .reveal when JS is confirmed running (html.js, set before paint).
   If JS errors or is disabled, nothing is hidden and the page renders fully. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------------- responsive ---------------- */

/* Header crowding, 901–1280px: six nav links + logo + toggle + Order button
   get tight before the mobile breakpoint. Tighten nav gaps in this band so
   nothing wraps or overlaps. */
@media (min-width: 901px) and (max-width: 1280px) {
    .main-nav { gap: 18px; }
    .header-inner { gap: 16px; }
    .header-order { padding: 9px 16px; }
}

/* Burger breakpoint raised to 980px so the desktop header never crowds. */
@media (max-width: 980px) {
    .menu-columns { columns: 1; }
    .header-order { display: none; }
    .nav-burger { display: flex; }
    .main-nav {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: var(--card);
        border-bottom: 1px solid var(--line);
        padding: var(--space-1) var(--space-3) var(--space-2-5);
        display: none;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: var(--space-1-5) 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .93rem; }
    .main-nav a[aria-current="page"] { border-bottom: 1px solid var(--line); color: var(--ink); }
    /* Screen Menu Match: current page's link is yellow in the pulldown. */
    [data-palette="screen-menu-match"] .main-nav a { color: var(--muted); }
    [data-palette="screen-menu-match"] .main-nav a[aria-current="page"] { color: var(--accent); }
    .menu-tabs { top: 72px; }
}

@media (max-width: 640px) {
    .hero { padding-top: var(--space-4); padding-bottom: var(--space-4); }
    .hero-grid { gap: var(--space-3); }
    .hero-copy { max-width: none; }
    /* v2.5: roles swapped — H1 is the giant headline, display is the small line. */
    .hero-h1 { font-size: clamp(2.2rem, 12vw, 3.1rem); line-height: 1.0; }
    .hero-display { font-size: 1.1rem; }
    .hero-cta { max-width: none; }
    .hero-issue { max-width: none; }
    /* Keep the food visible on phones (below the CTA, per hero sequence). */
    .hero-media { display: block; margin-top: var(--space-3); }
    .hero-media img { aspect-ratio: 16 / 10; }
    .form-row { grid-template-columns: 1fr; }
    .hero-info { gap: var(--space-3); }

    /* persistent order bar on mobile */
    .mobile-order-bar {
        display: flex;
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
        border-radius: 0;
        padding: 14px var(--space-2-5);
        font-size: 1rem;
        box-shadow: 0 -6px 24px rgba(0,0,0,.16);
        /* clear the iOS home indicator */
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
    }
    .mobile-order-bar:hover { transform: none; }
    /* Enough clearance that the footer's last line is never covered by the bar. */
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

    /* v2.3: mobile footer — gaps cut ~50%, headings tightened (screenshot 8819) */
    .site-footer { padding: var(--space-3) 0 var(--space-2); }
    .footer-grid { gap: var(--space-2-5); }
    .footer-col h4 { margin-top: var(--space-2); margin-bottom: var(--space-0-5); }
    .footer-col p { margin-bottom: var(--space-0-5); }
    .footer-base { margin-top: var(--space-3); padding-top: var(--space-2); }
}

/* ================================================================
   v2.1 — Menu chooser (three-menu State 1 / State 2)
   ================================================================ */

/* --- State 1: the chooser --- */
.menu-chooser .choice-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: var(--space-5);
}
.menu-choice {
    /* larger, more tappable than the contact choice-cards */
    padding: var(--space-4) var(--space-4) var(--space-5);
    gap: var(--space-1);
}
.menu-choice .choice-label { font-size: 1.35rem; }
.menu-choice .choice-days {
    font-family: var(--font-subhead);
    font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
    color: var(--accent); font-weight: 600;
}
.menu-choice .choice-arrow { margin-top: var(--space-2); color: var(--muted); font-size: 1.1rem; }

/* --- State 2: a chosen menu --- */
.menu-view[hidden] { display: none; }
.js .menu-view.dropping { animation: drop-in .42s cubic-bezier(.16,1,.3,1); }

.menu-context {
    display: flex; align-items: baseline; flex-wrap: wrap;
    gap: var(--space-1) var(--space-3);
    margin-bottom: var(--space-2);
}
.menu-context h2 { margin: 0; }
.menu-context .menu-context-days {
    font-family: var(--font-subhead);
    font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
    color: var(--accent); font-weight: 600;
}
.menu-back {
    background: none; border: 0; cursor: pointer; padding: 0;
    color: var(--muted); font-family: var(--font-subhead); font-size: .9rem;
    margin-bottom: var(--space-3); display: inline-block;
}
.menu-back:hover { color: var(--ink); }

/* graceful empty menu */
.menu-empty {
    color: var(--muted);
    padding: var(--space-4) 0;
    max-width: 48ch;
}

/* --- Multi-color category headings (menu page only) ---
   Cycle heading colors by category index. Non–Screen-Menu palettes resolve
   every --cat-* to var(--accent), so this reads as a single accent there. */
.menu-page .menu-cat:nth-of-type(4n+1) .menu-cat-name { color: var(--cat-green); }
.menu-page .menu-cat:nth-of-type(4n+2) .menu-cat-name { color: var(--cat-yellow); }
.menu-page .menu-cat:nth-of-type(4n+3) .menu-cat-name { color: var(--cat-red); }
.menu-page .menu-cat:nth-of-type(4n+4) .menu-cat-name { color: var(--cat-orange); }
/* the crescent bullet follows its heading color */
.menu-page .menu-cat:nth-of-type(4n+1) .crescent-bullet { background: var(--cat-green); }
.menu-page .menu-cat:nth-of-type(4n+2) .crescent-bullet { background: var(--cat-yellow); }
.menu-page .menu-cat:nth-of-type(4n+3) .crescent-bullet { background: var(--cat-red); }
.menu-page .menu-cat:nth-of-type(4n+4) .crescent-bullet { background: var(--cat-orange); }
/* item names stay uniform weight regardless of heading color */
.menu-page .menu-item-name { font-weight: 600; color: var(--ink); }

/* ================================================================
   v2.1 — Empty gallery placeholder (designed, not a floating heading)
   ================================================================ */
.gallery-empty {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}
.gallery-empty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    opacity: .5;
}
.gallery-empty-grid span {
    aspect-ratio: 1;
    background: color-mix(in srgb, var(--muted) 14%, var(--card));
}
.gallery-empty-cta {
    position: absolute; inset: 0;
    display: grid; place-items: center; text-align: center;
    padding: var(--space-3);
    background: color-mix(in srgb, var(--paper) 55%, transparent);
}
.gallery-empty-cta p { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
@media (max-width: 640px) {
    .gallery-empty-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Menu tabs when rendered inside a chosen-menu view (State 2). Already inside
   .wrap, so no inner wrap; full-bleed background via negative inline margin. */
.menu-tabs-inline {
    margin: 0 calc(-1 * var(--space-3)) var(--space-4);
    padding: 0 var(--space-3);
    top: 72px;
}
.menu-tabs-inline .menu-tabs-row { padding-top: var(--space-2); padding-bottom: var(--space-2); }

/* ================================================================
   FAVORITES COMPONENT (isolated) — v2.3
   All styles for includes/home-favorites.php live between these
   markers. Edit freely without touching the rest of the sheet.
   ================================================================ */
/* Desktop: 3 across (a balanced 3×2 at six). Max six, no placeholders. */
.fav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}
.section-sub { margin: var(--space-0-5) 0 0; color: var(--muted); }
.fav-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    display: flex;
    align-items: flex-end;
}
.fav-card-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.fav-card:hover .fav-card-img { transform: scale(1.04); }
.fav-card-body {
    position: relative;
    width: 100%;
    padding: var(--space-3) var(--space-2-5) var(--space-2-5);
    /* readable text over any photo */
    background: linear-gradient(to top, rgba(8,8,10,.90) 0%, rgba(8,8,10,.55) 60%, rgba(8,8,10,0) 100%);
}
.fav-card h3 { margin: 0 0 var(--space-0-5); font-size: 1.06rem; color: #fff; line-height: 1.25; }
.fav-card p {
    margin: 0; font-size: .88rem; line-height: 1.5; color: rgba(255,255,255,.85);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* text-only card (no photo): normal card colors, no gradient */
.fav-card:not(:has(.fav-card-img)) { aspect-ratio: auto; min-height: 128px; }
.fav-card:not(:has(.fav-card-img)) .fav-card-body { background: none; }
.fav-card:not(:has(.fav-card-img)) h3 { color: var(--ink); }
.fav-card:not(:has(.fav-card-img)) p { color: var(--muted); }

/* Tablet: two columns. */
@media (max-width: 900px) {
    .fav-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
}
/* Phone: one clear column (spec default). */
@media (max-width: 560px) {
    .fav-grid { grid-template-columns: 1fr; gap: var(--space-2); }
    .fav-card { aspect-ratio: 16 / 10; }
}
/* ================================================================
   END FAVORITES COMPONENT
   ================================================================ */

/* ---------------- reviews: 3-line clamp + read more (v2.3) ---------------- */
.review-quote {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-open .review-quote { display: block; -webkit-line-clamp: unset; overflow: visible; }
.review-more {
    background: none; border: 0; padding: 0; cursor: pointer;
    font-family: var(--font-subhead); font-size: .82rem; font-weight: 600;
    color: var(--brand); margin: 0 0 var(--space-1);
}
.review-more:hover { text-decoration: underline; }

/* ---------------- catering menu link: thin rules, tight (v2.3) ---------------- */
.catering-menu-link {
    margin-top: var(--space-4);
    padding: var(--space-2) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ---------------- accessibility: visible focus (v2.3) ---------------- */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; }

/* ---- v2.4 additions: form privacy, menu disclaimer, footer legal ---- */
.form-privacy { margin: var(--space-1) 0; color: var(--muted); }
.menu-disclaimer { margin-top: var(--space-2); max-width: 60ch; }
.footer-legal { margin-top: var(--space-1); opacity: .85; }
.footer-legal a, .footer-privacy a { color: inherit; text-decoration: underline; }
.prose-section .prose h2 { margin-top: var(--space-4); }
.prose-section .prose p { line-height: 1.6; }

/* Scroll-lock while the mobile nav is open (set by main.js). */
body.nav-open { overflow: hidden; }

/* ================================================================
   v2.5 — PROMPT B: Home page desktop refinements
   Home-scoped selectors only (#favorites / .gallery / .reviews / .story-line
   appear on the homepage only). Does NOT touch base .section, .section-head,
   or .text-link thickness (those are handled elsewhere / site-wide).
   ================================================================ */

/* B#11 (home only): the three trailing links in home section-heads
   ("See the full menu →", "Follow @littlelunacafes →", "Leave a review →")
   read slightly larger. Scoped so inline .text-links (story "Cafe Luna",
   footer) are untouched. Underline thickness is the site-wide 1px from B#11. */
#favorites .section-head .text-link,
.gallery   .section-head .text-link,
.reviews   .section-head .text-link {
    font-size: 1.05rem;
}

/* B#12: reduce vertical gaps on the homepage (desktop). Snap to tokens and
   keep equivalent gaps identical. Scoped to home-only sections so global
   .section padding is unchanged. */
@media (min-width: 900px) {
    /* Gap above the "Favorites" heading (story-line → favorites) ~25%.
       The story-line block owns this gap via its own padding on home. */
    .story-line { padding-top: var(--space-3); padding-bottom: var(--space-3); }

    /* Gap above each home section-head (Favorites / From the cafe / What
       people say) ~50% — reduce the section TOP padding on these home
       sections only (base .section stays clamp(space-4, 5vw, space-5)). */
    #favorites, .gallery, .reviews { padding-top: var(--space-3); }

    /* Gap between the reviews section and the footer ~40% — trim reviews
       bottom padding on home. */
    .reviews { padding-bottom: var(--space-3); }
}

/* B#12 (footer, SITE-WIDE): tighten footer vertical rhythm ~50%. Footer is
   shared, so keep interior pages balanced — these are modest, even reductions
   of the desktop footer only (mobile footer already tightened in v2.3). */
@media (min-width: 641px) {
    .site-footer { padding: var(--space-3) 0 var(--space-2-5); }
    .footer-grid { gap: var(--space-2-5) var(--space-4); }
    .footer-col h4 { margin-top: var(--space-1-5); }
    .footer-base { margin-top: var(--space-3); padding-top: var(--space-2-5); }
}

/* ================================================================
   v2.5 — PROMPT C: Interior pages desktop spacing & text refinements
   Interior-scoped only. Does NOT touch index.php styles, base .hero-info,
   base .text-link thickness, or home .section-head. Two items are ALL SIZES
   (marked); everything else is desktop via @media (min-width:900px).
   ================================================================ */

/* Utility classes replacing former inline styles (keep spacing tokenized). */
.faq-all-link { margin-top: var(--space-3); }
.faq-directions-link { margin-top: var(--space-3); }

/* C3 — FAQ accordion per-question spacing ~50% tighter. [ALL SIZES]
   Shared .faq-list (Brunch mini-FAQ + main FAQ). Dividers and +/- markers kept. */
.faq-list summary {
    padding: var(--space-1-5) var(--space-4) var(--space-1-5) 0;
}
.faq-answer { padding: 0 0 var(--space-2); }

/* C4 — Catering contact row font +~100%. [Catering only, ALL SIZES]
   Scoped to .catering-contact .hero-info--lg so base .hero-info (home hero,
   Contact) is never affected. Grey label + values scale proportionally. */
.catering-contact .hero-info--lg { font-size: 1.9rem; gap: var(--space-4) var(--space-5); }
.catering-contact .hero-info--lg .label { font-size: 1.05rem; margin-bottom: var(--space-1); }

/* Desktop-scoped interior spacing. */
@media (min-width: 900px) {

    /* C1 — Brunch: tighten gap BELOW the intro (intro → photo cards) ~50%.
       Reduce the brunch page-head bottom padding only. */
    .page-head--brunch { padding-bottom: var(--space-1-5); }

    /* C2 — Brunch: tighten gap ABOVE the "Brunch questions" heading ~50%.
       Reduce the brunch mini-FAQ section top padding only. */
    .faq--brunch { padding-top: var(--space-3); }

    /* C6 — Catering: tighten all vertical gaps ~50% (catering only).
       (a) intro/prose → CONTACT row, (b) contact row → catering-menu-link,
       (c) catering-menu-link → "Request a proposal" card. Same token reused
       for equivalent gaps. */
    .catering-contact .prose { margin-bottom: var(--space-2); }
    .catering-contact .hero-info--lg { margin-top: var(--space-2); }
    .catering-contact .catering-menu-link { margin-top: var(--space-2); }
    .page-head--catering { padding-bottom: var(--space-2); }

    /* C7 — Contact: tighten BOTH gaps around the channels row ~50%
       (above the EMAIL/CALL/VISIT row and below it, before the flow question).
       Contact page-head bottom padding + hero-info top margin. Font unchanged. */
    .page-head--contact .hero-info { margin-top: var(--space-2); }
    .page-head--contact { padding-bottom: var(--space-2); }
    .contact-flow { padding-top: var(--space-3); }

    /* C8 — Menu index: tighten disclaimer → cards gap ~50%.
       The chooser grid's top margin drives this gap. */
    .menu-chooser .choice-grid { margin-top: var(--space-2-5); }
}

/* C9 — Menu cards: equalize internal top/bottom padding so the space below
   "View menu →" matches the space above the card title. Shared .menu-choice,
   menu index only. Global is fine. */
.menu-choice { padding: var(--space-4); }
