/* Grain Patio Weather: site styles.
   Tokens mirror the Grain Patio Weather design system (tokens.json). Phone first:
   base rules are for phones, then 768px (tablet) and 1024px (desktop). */

:root {
  --surface: #FFFFFF;
  --surface-sage: #E4EDE6;
  --surface-tan: #EDDABC;
  --line: #E5DED2;
  --line-strong: #8C8174;
  --ink: #1A1919;
  --ink-muted: #5A524B;
  --green: #2F5B46;
  --green-hover: #22443A;
  --on-green: #FFFFFF;
  --sage: #98B39F;
  --wood: #6B4A2E;
  --on-wood: #F6EBD9;
  --alert: #A8261E;

  --font-serif: "Young Serif", Georgia, "Times New Roman", serif;
  --font-sans: Poppins, "Helvetica Neue", Arial, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-16: 64px; --space-24: 96px;
  --radius-md: 14px; --radius-lg: 20px; --radius-xl: 28px; --radius-pill: 999px;
  --content-max: 1160px; --text-max: 680px;
  --gutter: var(--space-5);
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: var(--space-10); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-hover); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-4); top: -60px; padding: var(--space-3) var(--space-4); background: var(--ink); color: #fff; border-radius: var(--radius-md); z-index: 50; }
.skip:focus { top: var(--space-3); }

.wrap { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--space-10); }
@media (min-width: 768px) { .section { padding-block: var(--space-16); } }
@media (min-width: 1024px) { .section { padding-block: var(--space-24); } }
.band-sage { background: var(--surface-sage); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }

/* Type */
.label { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wood); }
.display { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 34px; line-height: 38px; letter-spacing: -0.01em; text-wrap: balance; }
.heading { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 28px; line-height: 34px; text-wrap: balance; }
.title { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.lead { margin: 0; font-size: 17px; line-height: 27px; max-width: var(--text-max); }
.body { margin: 0; max-width: var(--text-max); }
.meta { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.tagline { margin: 0; font-family: var(--font-serif); font-size: 17px; line-height: 24px; color: var(--wood); }
@media (min-width: 768px) {
  .display { font-size: 56px; line-height: 60px; }
  .heading { font-size: 38px; line-height: 44px; }
  .title { font-size: 20px; line-height: 28px; }
  .lead { font-size: 19px; line-height: 30px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-6); border-radius: var(--radius-pill); border: 2px solid transparent; font: 600 16px/20px var(--font-sans); text-decoration: none; text-align: center; cursor: pointer; }
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-hover); color: var(--on-green); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 var(--space-4); font-size: 15px; }
.btn-block { width: 100%; }
.btn-row { display: grid; gap: var(--space-2); }
.btn-row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.btn-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.link-strong { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-weight: 600; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--surface-sage); color: var(--ink); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.02em; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--green); }
.tag-tan { background: var(--surface-tan); color: var(--wood); }
.tag-tan::before { background: var(--wood); }

/* Header + phone nav */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; }
.brand { display: flex; align-items: center; min-height: 48px; }
.brand img { width: 112px; height: auto; }
.nav-desktop { display: none; }
.nav-phone-actions { display: flex; align-items: center; gap: var(--space-1); }
.nav-phone-actions a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-2); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.menu-toggle { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink); border-radius: var(--radius-pill); cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }
@media (min-width: 1024px) {
  .brand img { width: 140px; }
  .nav-desktop { display: flex; align-items: center; gap: var(--space-6); }
  .nav-desktop a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
  .nav-desktop a[aria-current="page"] { font-weight: 600; box-shadow: inset 0 -2px 0 var(--green); }
  .nav-phone-actions { display: none; }
}

.drawer { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: flex-end; background: rgba(26, 25, 25, 0.45); }
.drawer[hidden] { display: none; }
.drawer-panel { width: min(420px, 100%); height: 100%; overflow-y: auto; background: var(--surface); padding: var(--space-3) var(--gutter) calc(var(--space-10) + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: var(--space-6); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.drawer-loc { padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface-sage); display: flex; flex-direction: column; gap: var(--space-3); }
.drawer-loc .loc-link { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; }
.drawer-small { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); }
.drawer-small a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 15px; }

/* Hero */
.hero { display: grid; gap: var(--space-5); padding-top: var(--space-2); }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: 190px; object-fit: cover; object-position: 62% 45%; border-radius: var(--radius-xl); }
.photo-label { position: absolute; left: var(--space-3); bottom: var(--space-3); padding: 5px 12px; border-radius: var(--radius-pill); background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; }
.hero-text { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.hero-actions { display: flex; flex-direction: column; gap: var(--space-4); }
.order-choose { display: flex; flex-direction: column; gap: var(--space-2); }
.order-choose .meta { font-weight: 600; }
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: var(--space-16); padding-top: var(--space-6); }
  .hero-photo { order: 2; }
  .hero-photo img { height: auto; aspect-ratio: 4 / 3; }
  .hero-text { gap: var(--space-5); }
  .hero-actions { max-width: 460px; }
  .hero-actions > .btn { align-self: flex-start; }
}

/* Open today strip */
.today { margin-top: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4); }
.today-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-6); align-items: baseline; padding-bottom: var(--space-1); }
.today-rows { display: grid; }
.today-row { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); padding: 10px 0; border-top: 1px solid var(--line); }
.today-row:first-child { border-top: 0; }
.today-row .status { text-align: right; color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.today-row .links { display: none; }
@media (min-width: 768px) {
  .today { padding: var(--space-5) var(--space-6) var(--space-2); }
  .today-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
  .today-row { flex-direction: column; gap: 2px; border-top: 0; padding: var(--space-2) 0 0; }
  .today-row .status { text-align: left; font-size: 14px; line-height: 20px; }
  .today-row .links { display: flex; gap: var(--space-4); }
}
.open-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: middle; }
.closed-dot { background: var(--line-strong); }

/* Location cards */
.loc-grid { display: grid; gap: var(--space-3); }
.loc-card { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-3); }
.loc-card-head { display: flex; gap: var(--space-4); align-items: center; color: var(--ink); text-decoration: none; }
.loc-card-head img { width: 88px; height: 88px; flex-shrink: 0; object-fit: cover; border-radius: var(--radius-md); }
.loc-card-head .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.loc-card .facts, .loc-card .addr, .loc-card .card-tag { display: none; }
.loc-card .btn-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.loc-card .btn-row .order { display: none; }
@media (min-width: 768px) {
  .loc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
  .loc-card { padding: 0; overflow: hidden; gap: 0; }
  .loc-card-head { flex-direction: column; align-items: stretch; gap: 0; }
  .loc-card-head img { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0; }
  .loc-card-head .txt { padding: var(--space-6) var(--space-6) 0; }
  .loc-card-body { padding: var(--space-3) var(--space-6) var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
  .loc-card .facts, .loc-card .addr { display: flex; align-items: center; min-height: 44px; }
  .loc-card .btn-row { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: auto; padding-top: var(--space-2); }
  .loc-card .btn-row .order { display: inline-flex; }
}
@media (min-width: 1024px) { .loc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { position: relative; padding-left: 16px; font-size: 15px; line-height: 22px; margin-top: 6px; }
.facts li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

/* Weekly */
.weekly-grid { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .weekly-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.event { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.event-day { min-width: 56px; padding: 0 8px; box-sizing: border-box; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--wood); color: var(--on-wood); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; text-align: center; line-height: 1.1; }

/* Callout */
.callout { display: grid; gap: var(--space-5); padding: var(--space-6) var(--space-5); border-radius: var(--radius-lg); background: var(--surface-tan); }
.callout img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.callout-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
@media (min-width: 768px) { .callout { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: var(--space-10); padding: var(--space-10); } }

/* Location page */
.loc-hero img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-xl); }
@media (min-width: 768px) { .loc-hero img { height: 420px; } }
.status-card { background: var(--surface-sage); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.status-line { font-size: 19px; line-height: 26px; font-weight: 600; }
.two-col { display: grid; gap: var(--space-10); }
@media (min-width: 1024px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); } }
.hours-block { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); }
.hours-block + .hours-block { margin-top: var(--space-3); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: var(--space-2); font-variant-numeric: tabular-nums; }
.hours-table th { text-align: left; font-weight: 400; padding: 6px 0; }
.hours-table td { text-align: right; padding: 6px 0; }
.hours-table tr.today th, .hours-table tr.today td { font-weight: 600; }
.qa { padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.qa h3 { margin: 0 0 4px; font-size: 17px; }

/* Footer */
.site-footer { background: var(--wood); color: var(--on-wood); padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-footer a { color: var(--on-wood); }
.footer-grid { display: grid; gap: var(--space-6); padding-block: var(--space-10); }
.footer-grid .seal { width: 88px; height: 88px; }
.footer-loc { display: flex; flex-direction: column; font-size: 15px; line-height: 22px; }
.footer-loc strong { font-family: var(--font-serif); font-weight: 400; font-size: 20px; line-height: 28px; }
.footer-loc a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { border-top: 1px solid rgba(246, 235, 217, 0.3); padding-block: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-size: 14px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 112px repeat(3, minmax(0, 1fr)); padding-block: var(--space-16); } .footer-grid .seal { width: 112px; height: 112px; } }

/* ---------- Menu page ---------- */
.menu-top { display: flex; flex-direction: column; gap: var(--space-4); padding-top: var(--space-3); }
.seg { display: flex; gap: var(--space-2); }
.seg a { flex: 1 1 0; min-height: 44px; padding: 0 var(--space-2); }
.tabs { display: flex; gap: var(--space-6); border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink-muted); text-decoration: none; font-weight: 500; }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--green); }
.tabs small { font-size: 13px; }
.costs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.cost { background: var(--surface-sage); border-radius: var(--radius-md); padding: 10px var(--space-3); display: flex; flex-direction: column; }
.cost span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.cost strong { font-size: 16px; line-height: 22px; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .costs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.deal { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); background: var(--surface-tan); }
.deal-price { font-family: var(--font-serif); font-size: 30px; line-height: 1; color: var(--wood); white-space: nowrap; }
.menu-tools { position: sticky; top: 64px; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); margin-top: var(--space-4); }
.chips { display: flex; gap: var(--space-2); overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill); border: 0; background: var(--surface-sage); color: var(--ink); font: 600 14px/1 var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filters { padding-top: 10px; }
.filters .chip { background: var(--surface); border: 2px solid var(--line-strong); }
.filters .chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.menu-body { padding-bottom: calc(var(--space-24) + env(safe-area-inset-bottom, 0px)); }
.menu-section { border-bottom: 1px solid var(--line); }
.menu-section > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 60px; cursor: pointer; }
.menu-section > summary::-webkit-details-marker { display: none; }
.menu-section > summary h2 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 24px; line-height: 30px; }
.sum-meta { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chev { width: 14px; height: 14px; transition: transform 0.15s; }
.menu-section[open] .chev { transform: rotate(180deg); }
.section-intro { margin: 0 0 var(--space-2); font-size: 15px; line-height: 22px; }
.section-note { margin: 0; padding: var(--space-3) 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.item { padding: 14px 0; border-top: 1px solid var(--line); }
.item-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.item-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 17px; line-height: 24px; font-weight: 600; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.diet { display: inline-flex; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--surface-sage); color: var(--green); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; }
.item-desc { margin: 3px 0 0; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.opt { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 14px; line-height: 20px; margin-top: 3px; }
.quip { display: none; margin: 4px 0 0; font-size: 14px; line-height: 20px; font-style: italic; color: var(--wood); }
.list-block { padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.list-block div { font-size: 15px; line-height: 23px; color: var(--ink-muted); }
.no-match { padding: var(--space-6) 0; color: var(--ink-muted); }
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--surface); border-top: 1px solid var(--line); padding: var(--space-3) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
@media (min-width: 768px) {
  .menu-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-10); align-items: start; }
  .menu-tools { position: sticky; top: 80px; margin-top: 0; border-bottom: 0; }
  .menu-tools .chips.sections { flex-direction: column; gap: 0; overflow: visible; padding: 0; }
  .menu-tools .chips.sections .chip { background: transparent; min-height: 44px; padding: 0; font-weight: 500; font-size: 15px; }
  .menu-tools .filters { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .menu-sections { columns: 2 320px; column-gap: var(--space-10); }
  .menu-section { break-inside: avoid; border-bottom: 0; margin-bottom: var(--space-8); }
  .menu-section > summary { pointer-events: none; min-height: 0; padding-bottom: var(--space-2); }
  .menu-section > summary h2 { font-size: 30px; line-height: 36px; }
  .menu-section > summary .chev { display: none; }
  .quip { display: block; }
  .action-bar { display: none; }
  .menu-body { padding-bottom: var(--space-24); }
}
a.deal { text-decoration: none; color: var(--ink); }
a.deal:hover { background: #E6CFAA; }
.today-row .title { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 767.98px) {
  body:has(.action-bar) { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}
