/* The Local — Kitchen + Bar, Mangawhai.
 *
 * MOBILE FIRST. Everything outside a media query is the phone layout. Wider
 * screens are additive, via min-width only. Never write a max-width query to
 * undo a desktop rule.
 *
 * The palette is the building: black ink on limewashed cream, two colours and
 * their tints, nothing else. Contrast comes from flipping whole sections to
 * ink rather than from introducing new hues.
 *
 * Bump ASSET_VERSION in includes/site.php when you change this file — assets
 * are cached for a year by .htaccess.
 */

/* --- Tokens ------------------------------------------------------------- */
:root {
    /* Brand. These two are fixed — they match the physical building. */
    --cream:      #e6d8c2;
    --ink:        #010101;

    /* Tints derived from the brand cream. No new hues. */
    --cream-lift: #f0e7d8;  /* raised panels, inputs */
    --cream-deep: #d8c8ac;  /* rules, hovers */
    --ink-soft:   #55504a;  /* secondary text on cream */
    --ink-line:   rgba(1, 1, 1, 0.14);
    --cream-line: rgba(230, 216, 194, 0.22);

    /* Semantic. Muted earths so form states don't fight the palette. */
    --error:      #8c2f27;
    --ok:         #4a5d3a;

    /* Humanist sans for display — the serif stack it replaced is recorded in
       CLAUDE.md under "Typography" should we want it back. */
    --font-display: Optima, "Gill Sans", "Gill Sans MT", "Avenir Next", Avenir,
                    "Century Gothic", "Trebuchet MS", "Segoe UI", system-ui,
                    sans-serif;
    --font-body:    system-ui, -apple-system, "Segoe UI", Roboto,
                    "Helvetica Neue", Arial, sans-serif;

    --gap:      1rem;
    --measure:  38rem;   /* comfortable reading width */
    --shell:    76rem;   /* max page width */
    --radius:   4px;
    --arch:     50% 50% 0 0 / 26% 26% 0 0;  /* the mediterranean doorway */
}

/* --- Reset-ish ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font: 400 1rem/1.65 var(--font-body);
    color: var(--ink);
    background: var(--cream);
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.08;
    margin: 0 0 var(--gap);
}

/* Tracking is optical, so it goes with the size rather than on the group above.
   The sans display face wants tightening only at true display sizes; nearer body
   size it needs a little air, which the old serif did not. */
h1 { font-size: clamp(2.25rem, 9vw, 4.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 6vw, 3rem);   letter-spacing: 0; }
h3 { font-size: clamp(1.25rem, 4vw, 1.6rem); letter-spacing: 0.005em; }
h4 { letter-spacing: 0.01em; }  /* no size of its own — sits at body size */

p { margin: 0 0 var(--gap); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:hover { text-decoration-color: var(--ink-soft); }

/* One focus style everywhere, and it must stay visible. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

/* --- Utilities ---------------------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--cream);
    text-decoration: none;
}
.skip-link:focus {
    left: 0.5rem;
    top: 0.5rem;
}

/* Small letterspaced caps — the logo's secondary voice. Used for section
 * labels, dietary tags and footer headings. */
.eyebrow {
    margin: 0 0 0.75rem;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding-inline: 1.25rem;
}

.measure { max-width: var(--measure); }

/* Honeypot. Must be a class, not an inline style — the CSP forbids inline
 * styles. Off-screen rather than display:none, which some bots detect. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;              /* comfortably past the 44px floor */
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--cream);
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: transparent; color: var(--ink); }

/* On ink backgrounds. */
.btn--ghost {
    color: var(--cream);
    background: transparent;
    border-color: var(--cream-line);
}
.btn--ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* Secondary action on a cream ground — an outline, so two buttons side by side
 * read as a first and a second choice rather than two firsts. .btn--ghost is
 * its opposite number for dark panels and is not interchangeable. */
.btn--quiet {
    color: var(--ink);
    background: transparent;
}
.btn--quiet:hover { background: var(--ink); color: var(--cream); }

/* --- Header ------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--cream);
    border-bottom: 1px solid var(--ink-line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
}

.site-header__brand {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}
/* Intrinsic size is 2200x992; the aspect ratio comes from the attributes so
 * the header does not jump while the logo loads. */
.site-header__brand img {
    width: 132px;
    height: auto;
}

/* --- Nav ---------------------------------------------------------------- */
/* Without JavaScript the nav is simply always open, stacked under the logo.
 * nav.js adds .js to <html>, which is what switches on the drawer. */
.nav-toggle { display: none; }

.site-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__list a {
    display: block;
    padding: 0.6rem 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
}
.site-nav__list a:hover { text-decoration: underline; }
.site-nav__list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

.site-nav__aside { display: none; }

.js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0.5rem 0.25rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

.nav-toggle__bars {
    position: relative;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: background 0.2s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease;
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after  { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-7px) rotate(-45deg); }

.js .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.5rem 1.25rem 2rem;
    background: var(--cream);
    border-bottom: 1px solid var(--ink-line);
}
.js .site-nav.is-open { display: block; }

.js .site-nav__list {
    display: block;
}
.js .site-nav__list a {
    padding: 0.9rem 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    border-bottom: 1px solid var(--ink-line);
}

.js .site-nav__aside {
    display: block;
    margin: 1.25rem 0 0;
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* --- Hero --------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 78svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    /* Shown until the first video paints, and behind it if none ever does. */
    background: var(--cream-deep);
}

.hero__media {
    position: absolute;
    inset: 0;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

/* Cream scrim. The brand is black-on-cream, so rather than reverse the type
 * over footage we lay cream over the video and keep the ink where it belongs.
 * Heaviest at the bottom, where the words are. */
.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(230, 216, 194, 0.34) 0%,
        rgba(230, 216, 194, 0.28) 38%,
        rgba(230, 216, 194, 0.86) 82%,
        var(--cream) 100%
    );
}

.hero__body {
    position: relative;
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 6rem 1.25rem 3rem;
}

.hero__title { margin-bottom: 0.5rem; }

.hero__catch {
    max-width: 24ch;
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 4.5vw, 1.5rem);
    color: var(--ink-soft);
}

/* A row of buttons. Used in the hero and on any page that ends in a choice. */
.actions,
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0 0;
}

/* The quieter line under a button row — a fallback route, or a condition on the
 * button above it. Ranked below the CTA by size and colour on purpose: offered
 * at the same weight, a fallback reads as a second choice, and a visitor who
 * has to choose is a visitor who has stopped. Same reasoning as the footer's
 * closing lines. */
.actions__aside {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    color: var(--ink-soft);
}

/* --- Bands (alternating sections) --------------------------------------- */
.band {
    padding: 3.5rem 0;
}
.band--ink {
    color: var(--cream);
    background: var(--ink);
}
.band--ink .eyebrow { color: var(--cream); opacity: 0.72; }
.band--lift { background: var(--cream-lift); }

.band__inner {
    max-width: var(--shell);
    margin: 0 auto;
    padding-inline: 1.25rem;
}

.band--catch { text-align: center; }

.band__catch {
    max-width: 20ch;
    margin: 0 auto 1.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 7vw, 3.25rem);
    line-height: 1.1;
}

.band__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0;
}

/* --- Quick links (the five destinations) -------------------------------- */
.quicklinks {
    display: grid;
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--ink-line);
    border-block: 1px solid var(--ink-line);
}

.quicklinks__link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--gap);
    min-height: 76px;
    padding: 1.5rem 1.25rem;
    background: var(--cream);
    text-decoration: none;
    transition: background 0.2s ease, padding-left 0.2s ease;
}
.quicklinks__link:hover {
    background: var(--cream-lift);
    padding-left: 1.75rem;
}

.quicklinks__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1;
}

.quicklinks__note {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-align: right;
}

/* --- What we do --------------------------------------------------------- */
/* Nothing draws a box around a tile, so proximity is the only thing telling a
 * reader which words belong to which photograph. The space between tiles is
 * therefore kept several times the space between a picture and its own title
 * — see .offer__img. Change one of those two numbers and change the other. */
.offer {
    display: grid;
    gap: 3rem;
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
}

.offer__item {
    padding-top: 1.25rem;
    border-top: 1px solid var(--cream-line);
}

/* A photographed tile separates itself — the picture is the divider, so the
 * hairline above it would only be noise. */
.offer__item--photo {
    padding-top: 0;
    border-top: 0;
}

.offer__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 0.8rem;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--cream-line);
}

.offer__title {
    margin: 0 0 0.4rem;
    font-size: 1.5rem;
}

.offer__text {
    margin: 0;
    color: var(--cream);
    opacity: 0.78;
    font-size: 0.9375rem;
}

.offer__link {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.9;
}

/* --- Photographs -------------------------------------------------------- */
/* A fixed crop rather than intrinsic dimensions: photographs are dropped in by
 * hand at whatever size the camera gave them, and object-fit keeps the page
 * tidy without anyone resizing anything. The ratio also reserves the space
 * before the image loads, so nothing jumps. */
.photo { margin: 0; }

.photo__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--cream-deep);
    border-radius: var(--radius);
}

.photo__caption {
    margin: 0.6rem 0 0;
    font-size: 0.8125rem;
    color: var(--ink-soft);
}
.band--ink .photo__caption { color: var(--cream); opacity: 0.72; }

/* --- Feature (a picture and its story) ---------------------------------- */
/* Stacked on a phone, side by side from 48rem. --flip puts the picture second
 * on wide screens only; on a phone the picture always leads. */
.feature {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.feature__body > :first-child { margin-top: 0; }
.feature__body p { max-width: 44ch; }
.feature__body h2 { margin-top: 0.25rem; }

/* --- Page headers ------------------------------------------------------- */
.page-head {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--ink-line);
}
.page-head__inner {
    max-width: var(--shell);
    margin: 0 auto;
    padding-inline: 1.25rem;
}
.page-head__lede {
    max-width: 44ch;
    margin: 0;
    font-size: 1.0625rem;
    color: var(--ink-soft);
}

/* --- Prose -------------------------------------------------------------- */
.prose {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
}
.prose h2 { margin-top: 2.5rem; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: 0.4rem; }

/* Named things — a cookie, a file — set in type, not shouted. */
.prose code {
    padding: 0.1em 0.35em;
    font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
    font-size: 0.875em;
    background: var(--cream-lift);
    border: 1px solid var(--ink-line);
    border-radius: 3px;
}

/* --- Menus -------------------------------------------------------------- */
.menu-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 1.25rem;
    list-style: none;
    max-width: var(--shell);
    margin-inline: auto;
}
.menu-jump a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 1.1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--ink-line);
    border-radius: 999px;
}
.menu-jump a:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* scroll-margin keeps the sticky header from covering a section when you
 * arrive on it from a #brunch style link. */
.menu-section {
    padding: 3rem 0;
    border-top: 1px solid var(--ink-line);
    scroll-margin-top: 5rem;
}
.menu-section__inner { max-width: var(--shell); margin: 0 auto; padding-inline: 1.25rem; }

.menu-section__blurb {
    max-width: 44ch;
    color: var(--ink-soft);
}

/* The arch — a shallow doorway over each course heading. */
.menu-group { margin-top: 2.75rem; }

.menu-group__head {
    position: relative;
    padding-top: 1.5rem;
}
.menu-group__head::before {
    content: "";
    display: block;
    width: 56px;
    height: 22px;
    margin-bottom: 0.9rem;
    border: 1px solid var(--ink);
    border-bottom: 0;
    border-radius: var(--arch);
}

.menu-group__title { margin: 0 0 0.25rem; font-size: 1.375rem; }
.menu-group__note {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    color: var(--ink-soft);
}
.menu-group__all {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.menu-list { margin: 1.25rem 0 0; padding: 0; list-style: none; }

.menu-item {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--ink-line);
}

.menu-item__line {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.menu-item__name {
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* The leader dots. Decorative, so it stays out of the accessibility tree. */
.menu-item__leader {
    flex: 1 1 auto;
    height: 1px;
    margin-bottom: 0.25rem;
    border-bottom: 1px dotted var(--cream-deep);
}

.menu-item__price {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
/* Wine carries two price columns; both get the same width so they line up. */
.menu-item__price--col { min-width: 2.5rem; text-align: right; }

.menu-item__desc {
    margin: 0.35rem 0 0;
    max-width: 52ch;
    font-size: 0.9375rem;
    color: var(--ink-soft);
}
.menu-item__note {
    margin: 0.3rem 0 0;
    font-size: 0.8125rem;
    color: var(--ink-soft);
}

.tag {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
    vertical-align: 0.1em;
}

.menu-columns__head {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.menu-columns__head span { min-width: 2.5rem; text-align: right; }

.dietary-key {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 2.5rem 0 0;
    padding: 1.25rem 0 0;
    list-style: none;
    border-top: 1px solid var(--ink-line);
    font-size: 0.8125rem;
    color: var(--ink-soft);
}

/* --- Detail lists (hours, contact) -------------------------------------- */
.detail-list { margin: 0; }
.detail-list dt {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.detail-list dd {
    margin: 0.25rem 0 1.25rem;
    font-family: var(--font-display);
    font-size: 1.375rem;
}

/* --- Forms -------------------------------------------------------------- */
label {
    display: block;
    margin: 1.5rem 0 0.4rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hint { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }

input, textarea, select {
    width: 100%;
    padding: 0.85rem;
    font: inherit;
    color: inherit;
    background: var(--cream-lift);
    border: 1px solid var(--ink-line);
    border-radius: var(--radius);
    /* 16px minimum stops iOS Safari zooming on focus. */
    font-size: max(1rem, 16px);
}
input:hover, textarea:hover, select:hover { border-color: var(--ink); }

textarea { resize: vertical; min-height: 9rem; }

form .btn { margin-top: 1.75rem; width: 100%; }

/* A note under a field rather than beside its label — the placeholder's job,
 * done in real text so it survives typing into the box and is read out by a
 * screen reader instead of vanishing on focus. */
.hint--under {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* Fields that belong together on one line — party size, day, time. Mobile
 * first, so they stack and each gets the full width; the row only forms once
 * there is room for three legible boxes side by side. Widening never has to
 * undo anything, which is why there is no max-width query here. */
.form-row { display: grid; gap: 0; }
.form-row__field { min-width: 0; }

/* --- Notices ------------------------------------------------------------ */
.notice {
    margin: var(--gap) 0;
    padding: var(--gap);
    border-left: 3px solid;
    background: var(--cream-lift);
}
.notice ul { margin: 0; padding-left: 1.25rem; }
.notice--error { border-color: var(--error); }
.notice--ok    { border-color: var(--ok); }

.privacy {
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: var(--ink-soft);
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
    padding: 3rem 0 2rem;
    color: var(--cream);
    background: var(--ink);
}

.site-footer__inner {
    display: grid;
    gap: 2.5rem;
    max-width: var(--shell);
    margin: 0 auto;
    padding-inline: 1.25rem;
}

.site-footer__block .eyebrow { color: var(--cream); opacity: 0.6; }
.site-footer address { font-style: normal; }

/* Scoped to the columns, not the whole footer. The closing three paragraphs set
   their own margins to build one rhythm, and a bare `.site-footer p` would
   outrank a single class and quietly win. */
.site-footer__block p { margin: 0 0 0.5rem; }

.site-footer__list { margin: 0; padding: 0; list-style: none; }
.site-footer__list a,
.site-footer__social a,
.site-footer address + p a {
    display: inline-block;
    padding: 0.35rem 0;
}

.site-footer__social a { margin-right: 1.25rem; }

/* The closing three, in descending loudness: what the business owes the public,
 * who built it, and the staff door. Three siblings rather than a wrapper, so
 * each can be ranked on its own — a shared element cannot quieten one child
 * below another. They share the legal line's gutters, so all three left edges
 * run down one line.
 *
 * RANK THEM ON EVERY REDESIGN. If all three end up the same size and colour the
 * staff link reads as a public feature, which is the thing this structure
 * exists to prevent.
 *
 * The ranking is size AND opacity, never position: recentring the footer would
 * otherwise undo it without anyone noticing. Cream on ink is 14.9:1, so the
 * quietest of the three still clears WCAG AA at about 5.5:1 — 0.6 is the floor,
 * do not dim past it. */

.site-footer__legal {
    max-width: var(--shell);
    margin: 2.5rem auto 0.75rem;
    padding: 1.5rem 1.25rem 0;
    border-top: 1px solid var(--cream-line);
    font-size: 0.8125rem;
    opacity: 0.85;
}

.site-footer__credit {
    max-width: var(--shell);
    margin: 0 auto;
    padding-inline: 1.25rem;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Quietest thing on the page: smallest type, softest ink. Still a real 44px
 * touch target — discreet is not the same as hard to tap.
 *
 * ── WHY IT CARRIES NO SEPARATING MARGIN, WHERE THE LEGAL LINE CARRIES 0.75rem ─
 *
 * ONE RHYTHM FOR ALL THREE: about 12px of visible space between each line. The
 * legal line buys its 12px with margin. This one gets its 12px free — the 44px
 * target is far taller than the 11px text and the link centres that text, so
 * roughly 13px of the target already reads as blank space above the word.
 * Adding the credit's margin on top would make the gap MEASURE equal and LOOK
 * half as big again. That is why the number here is 0 and not a bug.
 *
 * The target comes from min-height and centring, not padding-block. Padding
 * would need a negative margin to reclaim the layout space, which would float
 * this link's invisible hit area over the credit link above it and quietly
 * steal its clicks. Do not "tidy" this back into padding. */
.site-footer__staff {
    max-width: var(--shell);
    margin: 0 auto;
    padding-inline: 1.25rem;
    font-size: 0.6875rem;
    opacity: 0.6;
}

.site-footer__staff a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
}

.site-footer__staff a:hover { text-decoration: underline; }

/* --- Tabs (Experience Mangawhai) ---------------------------------------- */
/* Two real links, not a script. The active one flips to ink, which is the same
 * move the whole palette is built on — contrast comes from going to ink, never
 * from a new hue. It is also exactly what .menu-jump does on hover, so the
 * control reads as part of the site on arrival rather than as a new gadget. */
.page-tabs {
    border-bottom: 1px solid var(--ink-line);
}

.page-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 1rem 1.25rem;
    list-style: none;
}

.page-tabs__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 1.15rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--ink-line);
    border-radius: 999px;
}

.page-tabs__link:hover {
    background: var(--cream-lift);
    border-color: var(--cream-deep);
}

/* Must stay AFTER :hover. Both selectors weigh the same, so source order is
 * the only thing keeping the current tab from un-inking under the cursor. */
.page-tabs__link[aria-current="page"] {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}

/* --- Group headings ----------------------------------------------------- */
/* The same shallow doorway the menu sets over a course heading. Reused rather
 * than reinvented, so a section of producers and a section of the menu are
 * visibly the same kind of thing. */
.group-head {
    position: relative;
    padding-top: 1.5rem;
}
.group-head::before {
    content: "";
    display: block;
    width: 56px;
    height: 22px;
    margin-bottom: 0.9rem;
    border: 1px solid var(--ink);
    border-bottom: 0;
    border-radius: var(--arch);
}

.group-head__title { margin: 0 0 0.35rem; }

.group-head__blurb {
    max-width: 44ch;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.group-head__intro {
    max-width: 52ch;
    margin: 1rem 0 0;
    color: var(--ink-soft);
}

/* --- Entries (producers, and activities without a photograph) ----------- */
/* One component, both tabs. A producer and a thing to do are the same shape of
 * card, and using one for both is what makes the two tabs read as one page. */
.entries {
    display: grid;
    gap: 2.5rem;
    margin: 2.25rem 0 0;
    padding: 0;
    list-style: none;
}

.entry__meta { margin-bottom: 0.4rem; }

.entry__name {
    margin: 0 0 0.5rem;
    font-size: 1.3125rem;
}

.entry__desc {
    max-width: 46ch;
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

.entry__link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* --- The thread --------------------------------------------------------- */
/* One marked line bringing an entry back to The Local — "you'll find this
 * pouring here", "come in afterwards". The same component on both tabs,
 * because they are the same move. The rule down the left is the only thing
 * separating our voice from the description above it, so it stays. */
.thread {
    max-width: 46ch;
    margin: 0.9rem 0 0;
    padding-left: 0.9rem;
    border-left: 2px solid var(--cream-deep);
}

.thread__text {
    margin: 0;
    font-size: 0.9375rem;
}

.thread__link {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.band--ink .thread { border-left-color: var(--cream-line); }

/* Several features now stack inside one band, so they need air between them
 * that a single feature never did. */
.feature--spaced + .feature--spaced { margin-top: 3.5rem; }

/* The closing statement on The Local List. The catch carries the two best
 * lines, so it gets room the hero's 20ch would not give it. */
.band--catch .band__catch { max-width: 28ch; }

/* Sits above the catch, not below it — the copy builds to the last two lines,
 * so the big type comes second. */
.band__catch-lede {
    max-width: 52ch;
    margin: 0 auto 1.75rem;
    opacity: 0.8;
}

/* --- Wider screens ------------------------------------------------------ */

/* The narrowest step on the site, and it belongs to one thing: the party
 * size / day / time row. Each field carries its own label margin, and grid
 * items do not collapse margins, so the three labels line up on their own. */
@media (min-width: 34rem) {
    .form-row { gap: 0 1rem; }
    .form-row--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 48rem) {
    .band { padding: 5rem 0; }
    .hero { min-height: 86svh; }
    .hero__body { padding: 8rem 1.25rem 4rem; }

    /* 24ch suits a phone; on a wide screen it collapses into a cramped
     * column under the headline, so let it run. */
    .hero__catch { max-width: 44ch; }

    .quicklinks { grid-template-columns: repeat(2, 1fr); }
    /* Row gap stays generous so a tile is never closer to the one below it
     * than to its own caption; the column gap can be tighter, since side by
     * side the tiles are already unambiguous. */
    .offer { grid-template-columns: repeat(2, 1fr); gap: 3.25rem 2.25rem; }

    /* Two columns only when there is actually a picture. A feature whose photo
     * has not been uploaded yet keeps one column and reads as ordinary prose,
     * rather than leaving half the band empty. Browsers without :has() get the
     * single-column layout, which is the correct fallback either way. */
    .feature:has(.feature__figure) { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .feature--flip .feature__figure { order: 2; }
    .menu-list--split { columns: 2; column-gap: 3rem; }
    .menu-list--split .menu-item { break-inside: avoid; }

    /* Row gap stays wider than the column gap for the same reason .offer's
     * does: nothing boxes an entry, so the space around it is the only thing
     * saying which words belong together. */
    .entries { grid-template-columns: repeat(2, 1fr); gap: 3rem 2.25rem; }
    .feature--spaced + .feature--spaced { margin-top: 4.5rem; }
    .site-footer__inner { grid-template-columns: repeat(2, 1fr); }
    form .btn { width: auto; }
}

@media (min-width: 62rem) {
    .site-header__brand img { width: 156px; }

    /* Full nav in the bar; the drawer and its button step aside. */
    .js .nav-toggle { display: none; }
    .js .site-nav {
        display: flex;
        align-items: center;
        gap: 1.75rem;
        position: static;
        padding: 0;
        background: none;
        border: 0;
    }
    .js .site-nav.is-open { display: flex; }
    .js .site-nav__list { display: flex; }
    .js .site-nav__list a {
        padding: 0.6rem 0;
        font-family: var(--font-body);
        font-size: 0.8125rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        border-bottom: 0;
    }
    .js .site-nav__aside { display: none; }

    .quicklinks { grid-template-columns: repeat(5, 1fr); }
    .quicklinks__link {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        min-height: 190px;
    }
    .quicklinks__note { text-align: left; margin-top: 0.5rem; order: -1; }

    .offer { grid-template-columns: repeat(3, 1fr); }
    .entries { grid-template-columns: repeat(3, 1fr); }
    .site-footer__inner { grid-template-columns: repeat(4, 1fr); }

    /* The closing three stay stacked and left-aligned at every width. They used
     * to become a two-ended row here, with the credit pushed right — but that
     * row could only hold two things, which is why the staff link had been
     * folded into the legal line in the first place. Ranking the three by size
     * and opacity down one edge is what keeps the staff door quiet, and a row
     * would flatten them back into peers. See the note beside them above. */
}

/* --- Respect user preferences ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    /* hero.js also pauses playback; this hides the frozen frame so the hero
     * reads as a still cream panel rather than a stalled video. */
    .hero__video { display: none; }
    .hero { min-height: 0; }
    .hero__body { padding-top: 3rem; }
}


/* --- Order bar ----------------------------------------------------------
 *
 * Pinned to the bottom of the screen on a phone, on the two pages where
 * somebody is deciding what to eat. Rendered by includes/order-bar.php, which
 * outputs nothing at all unless online takeaway ordering is switched on — so
 * these rules are inert on a site that is still taking orders by phone.
 *
 * Mobile-first, as everything here is: the bar exists at the narrow widths
 * where the page's own buttons have scrolled away, and a min-width query
 * removes it further up, where they have not.
 */
.order-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;                    /* over the page, under the skip link (100) */
    background: var(--ink);
    border-top: 1px solid var(--ink);
    /* Clears the home indicator on a modern iPhone. Falls back to 0 elsewhere. */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.order-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0.625rem 1rem;
}

.order-bar__text {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cream);
}

/* Reversed out of the dark bar, and a little tighter than a page button so the
 * bar does not eat the screen. Still past the 44px touch floor. */
.order-bar__btn {
    min-height: 44px;
    padding: 0.5rem 1.25rem;
    color: var(--ink);
    background: var(--cream);
    border-color: var(--cream);
}
.order-bar__btn:hover {
    background: var(--cream-lift);
    border-color: var(--cream-lift);
}

/* Set on <body> by the pages that include the bar, so the last line of the
 * footer is reachable instead of sitting underneath it. */
.has-order-bar {
    padding-bottom: 5rem;
}

@media (min-width: 48em) {
    /* The page's own buttons are in view at this width; a bar across the bottom
     * of a laptop is an advert rather than a help. */
    .order-bar { display: none; }
    .has-order-bar { padding-bottom: 0; }
}
