@font-face {
    font-family: "Bricolage Grotesque";
    src: url("bricolage-grotesque.woff2") format("woff2");
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
}

:root {
    --pn-ink: #222c25;
    --pn-muted: #506053;
    --pn-page: #f6f2e8;
    --pn-surface: #fffdf7;
    --pn-sage: #d5e0c8;
    --pn-line: #c9cdbd;
    --pn-accent: #963e2d;
    --pn-focus: #235c83;
}

html:root { background: var(--pn-page); color: var(--pn-ink); }
body { background: var(--pn-page); color: var(--pn-ink); accent-color: var(--pn-ink); }
::selection { background: var(--pn-sage); color: var(--pn-ink); }
body :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--pn-focus);
    outline-offset: 3px;
}
body a { text-underline-offset: .18em; }
body :is(input, textarea) { caret-color: var(--pn-accent); }
body :is(input, textarea)::placeholder { color: var(--pn-muted); }
body :is(.muted, small, .fineprint) { color: var(--pn-muted); }
body :is(h1, h2, h3) {
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    text-wrap: balance;
    letter-spacing: -.025em;
}
body h1 { font-size: clamp(2rem, 5vw, 3.35rem); line-height: 1.04; margin: 0 0 .25em; }
body .banner { background: var(--pn-ink); }
body > header, body > main, body > footer { max-width: 1240px; }
body > header { padding-block: 17px; }
body > main { margin-block-start: 12px; }
body .brand-icon { background: var(--pn-ink); }
body .brand-icon span { color: #a65b22; }
body .beta-role-switch { background: var(--pn-surface); border-color: var(--pn-line); }
body .beta-role-switch a { color: var(--pn-ink); }
body .beta-role-switch a.active,
body .beta-role-switch a.active:hover { background: var(--pn-ink); }
body :is(button, .button):where(:not(.secondary, .danger, .chip, .close)) { background-color: var(--pn-accent); color: white; }
body :is(.secondary, input, select, textarea) { background: var(--pn-surface); border-color: #a0aa98; color: var(--pn-ink); }
body .secondary:hover { background: var(--pn-sage); }
body .danger { color: #812b20; background: #f9e9e1; }
body .card { background: var(--pn-surface); border-color: var(--pn-line); }
body .pill:not(.booking-source, .booking-status, .pending, .confirmed, .ready, .rejected, .cancelled, .collected, .noshow) { background: var(--pn-sage); color: var(--pn-ink); }
body .empty { background: var(--pn-surface); border-color: var(--pn-line); }
body :is(.stat strong, .price, .menu-availability dd, .cart-total, input[inputmode], input[type=number]) { font-variant-numeric: tabular-nums; }
body summary { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body .date-navigation .date-arrow { display: flex; align-items: center; justify-content: center; font-size: 0; }
body .date-navigation .date-arrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-block-start: 2px solid currentColor;
    border-inline-end: 2px solid currentColor;
    transform: rotate(45deg);
}
body .date-navigation .date-arrow:first-child::before { transform: rotate(-135deg); }

/* The pickup date is the first control customers encounter. */
.storefront {
    --ink: var(--pn-ink);
    --paper: var(--pn-page);
    --line: var(--pn-line);
    --muted: var(--pn-muted);
    --sage: var(--pn-sage);
    --honey: #e9c889;
}
.storefront .pickup-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
    padding: clamp(20px, 4vw, 42px);
    margin-bottom: 24px;
    background: var(--pn-sage);
    color: var(--pn-ink);
    border-radius: 16px;
}
.pickup-board p { margin: 0; max-width: 55ch; }
.pickup-board .pickup-day { display: block; margin-bottom: 10px; font-size: .95rem; }
.pickup-board .pickup-date-label { margin: 0 0 6px; }
.storefront .pickup-board .catalog-date-form { align-items: stretch; }
.storefront .pickup-board .date-navigation { border-color: #a0aa98; }
.storefront .search { width: 100%; max-width: none; margin-bottom: 12px; }
.storefront .filters { margin-bottom: 16px; }
.storefront .chip { min-height: 44px; color: var(--pn-ink); }
.storefront .chip.active { background: var(--pn-ink); color: white; }
.storefront .product.card { border-radius: 14px; }
.storefront .product:hover { box-shadow: none; }
.storefront .food-art { background: #eae6d8; }
.storefront .cart-panel { background: var(--pn-surface); border-color: var(--pn-line); }
.storefront .cart-empty { text-align: left; }
.storefront .quantity button { background: var(--pn-page); color: var(--pn-ink); }
.storefront .cart-total { border-top: 1px solid var(--pn-line); padding-top: 14px; }
.storefront #checkout-dialog { background: var(--pn-surface); border-radius: 16px; }
.storefront #checkout-dialog::backdrop { background: #222c2599; backdrop-filter: none; }
.storefront .mobile-cart { bottom: max(16px, env(safe-area-inset-bottom)); }

.shop-area .shop-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 24px;
    padding: 4px;
    border-radius: 12px;
    background: var(--pn-ink);
}
.shop-area .shop-navigation a {
    display: grid;
    flex: 1 0 auto;
    place-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--pn-surface);
}
.shop-area .shop-navigation strong { margin: 0; font-size: .9rem; }
.shop-area .shop-navigation a:hover { border-color: var(--pn-sage); }
.shop-area .shop-navigation a[aria-current] { background: var(--pn-sage); color: var(--pn-ink); }
.shop-area .shop-navigation a:focus-visible { outline-color: #ffdc8e; outline-offset: -3px; }
.shop-area :is(.shop-page-heading, .menu-bulk) { background: var(--pn-sage); }
.shop-page-heading {
    padding: clamp(18px, 3vw, 30px);
    margin-block-end: 20px;
    border-radius: 16px;
}
.shop-page-heading h1 { margin: 0; }
.shop-area .stats { background: var(--pn-surface); border: 1px solid var(--pn-line); border-radius: 14px; gap: 0; }
.shop-area .stat { border: 0; background: transparent; border-radius: 0; }
.shop-area .stat + .stat { border-inline-start: 1px solid var(--pn-line); }
.shop-area .stat strong { color: var(--pn-ink); }
.shop-area [data-order] .tagline { display: block; overflow-wrap: anywhere; }
.shop-area [data-order] .actions { border-top: 1px solid var(--pn-line); padding-top: 14px; }
.order-list-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin: 24px 0 12px; }
.order-list-heading :is(h2, label) { margin: 0; }
.order-list-heading select { min-height: 44px; margin: 0; }
:is(#order-filter, #order-filter-empty, [data-order])[hidden] { display: none; }
.shop-area .catalog-filter a[aria-current] { background: var(--pn-ink); color: var(--pn-surface); font-weight: 650; }
.shop-area .menu-search label { margin-bottom: 6px; }
.shop-area .menu-availability dt { color: var(--pn-muted); }
.shop-area .date-navigation { min-width: 0; }
.shop-area .date-navigation input { min-width: 0; }
.customer-account .account-intro { background: var(--pn-sage); border-radius: 16px; }

@media (max-width: 700px) {
    body > header { gap: 10px; padding-block: 12px; }
    body .beta-role-switch { width: auto; height: auto; }
    body .beta-role-switch a { padding-inline: 10px; }
    body .customer-nav { gap: 0; }
    .storefront .pickup-board { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .storefront .pickup-board .catalog-date-form { flex-wrap: wrap; }
    .storefront .pickup-board .date-navigation { flex: 1 1 160px; }
    .storefront .pickup-board .catalog-date-form > button { flex: 1 0 auto; }
}

@media (max-width: 480px) {
    .shop-area .shop-navigation { margin-block-end: 14px; }
    .shop-area .shop-navigation a { flex-basis: calc(50% - 4px); }
    .shop-page-heading { gap: 12px; margin-block-end: 12px; }
    .shop-page-heading .date-form { display: grid; grid-template-columns: minmax(0, 1fr); }
    .shop-page-heading .date-navigation { width: 100%; }
    .order-list-heading { margin-block-start: 16px; }
    .storefront .mobile-cart { inset-inline: 16px; width: auto; }
}

@media (max-width: 360px) {
    .shop-area .brand small { font-size: .59rem; letter-spacing: .045em; }
    .shop-area .beta-role-switch a, .shop-area .beta-role-navigation > form > button { padding-inline: 8px; }
    .shop-area .shop-navigation strong { font-size: .82rem; }
    .shop-area .orders-actions .button { padding-inline: 10px; }
    .order-list-heading { align-items: center; }
}

@media print {
    .shop-page-heading { background: white; padding: 0; }
    .shop-area .stats { display: none; }
}
