/* Idle Hour Deli — shared layout. Colors and type come from theme-*.css variables. */
:root {
  --bg: #fff; --surface: #fff; --surface-2: #f5f5f2; --ink: #1c1f1c; --muted: #5d625d; --line: #e3e3dc;
  --brand: #0b6b2e; --brand-ink: #fff; --accent: #b3261e; --price: var(--brand);
  --hero-ink: #fff; --shade: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.35) 60%, rgba(0,0,0,.15));
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: Georgia, serif;
  --radius: 10px; --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.06);
  --wrap: 1140px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.55 var(--font-body); }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .4em; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 28px; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* preview bar (dev only) */
.preview-bar { position: sticky; top: 0; z-index: 60; display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
  padding: 6px 12px; padding-top: calc(6px + env(safe-area-inset-top, 0px)); background: #111; color: #ccc; font: 600 12px/1.4 system-ui, sans-serif; }
.preview-bar span { margin-right: 4px; text-transform: uppercase; letter-spacing: .06em; color: #888; }
.preview-bar a { color: #ddd; text-decoration: none; padding: 3px 9px; border-radius: 99px; border: 1px solid #333; }
.preview-bar a[aria-current] { background: #fff; color: #111; }
.preview-bar .pb-all { margin-left: auto; border-color: transparent; color: #999; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg, var(--surface)); border-bottom: 1px solid var(--line); }
.preview-bar + .site-header { top: 30px; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-mark, var(--brand)); }
.brand-clock { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.brand-sub { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); border-radius: 0; }
.header-call { white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: var(--btn-radius, 8px); font-weight: 700;
  text-decoration: none; border: 2px solid transparent; line-height: 1.1; cursor: pointer; }
.btn-primary, .btn-call { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover, .btn-call:hover { filter: brightness(1.08); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }

/* hero */
.hero { position: relative; min-height: min(78vh, 640px); display: flex; align-items: flex-end; color: var(--hero-ink); overflow: hidden; }
.hero-img, .ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: var(--shade); }
.hero-inner { position: relative; padding-block: 72px 48px; width: 100%; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; margin-bottom: 10px; opacity: .9; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.2rem); margin-bottom: .15em; }
.hero-lede { font-size: clamp(1.1rem, 2.4vw, 1.4rem); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .95rem; opacity: .92; }

/* today strip */
.today-strip { background: var(--strip-bg, var(--brand)); color: var(--strip-ink, var(--brand-ink)); padding-block: 26px 30px; }
.strip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.strip-head h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.kicker { display: block; font: 700 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-bottom: 6px; }
.link-arrow { color: inherit; font-weight: 700; }
.strip-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.strip-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--strip-card, rgba(255,255,255,.12)); color: inherit; text-decoration: none; }
.strip-card:hover { background: var(--strip-card-hover, rgba(255,255,255,.2)); }
.sc-label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; font-weight: 700; }
.sc-name { font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.sc-price { font-weight: 800; }

/* sections */
.section { padding-block: clamp(48px, 8vw, 88px); }
.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.section-title.sub { margin-top: 48px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.section-lede { color: var(--muted); font-size: 1.15rem; margin-bottom: 32px; }
.hl-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hl h3 { font-size: 1.2rem; color: var(--brand); }
.hl p { color: var(--muted); margin: 0; }
.services { background: var(--surface-2); }
.svc-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { background: var(--surface); padding: 22px; border-radius: var(--radius); box-shadow: var(--card-shadow, var(--shadow)); border: var(--card-border, 0); }
.svc h3 { font-size: 1.3rem; }
.svc p { margin: 0; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gallery-gap, 0); }
.gallery figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }

.about-grid, .visit-grid { display: grid; gap: clamp(24px, 5vw, 56px); grid-template-columns: 1fr 1.2fr; align-items: center; }
.about-grid img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dl { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; background: var(--surface); }
.dl span { font-size: .7rem; font-weight: 800; color: var(--accent); }
.visit { background: var(--surface-2); }
.visit-grid { grid-template-columns: 1fr 1.3fr; align-items: stretch; }
.addr { font-size: 1.2rem; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 0 0 20px; }
.hours dt { font-weight: 700; } .hours dd { margin: 0; }
.visit-info .btn { margin: 0 8px 8px 0; }
.map { min-height: 320px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* page heads */
.page-head { padding-block: 48px 28px; background: var(--surface-2); }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.page-head-photo { position: relative; color: var(--hero-ink); padding-block: 88px 48px; overflow: hidden; background: #222; }
.page-head-photo .wrap { position: relative; }
.page-head-photo .btn { margin: 0 8px 8px 0; }

/* section chips */
.chips { position: sticky; top: 64px; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.preview-bar ~ main .chips { top: 94px; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; background: var(--surface); }
.page-menu .chips a:first-child { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* menu */
.menu-body { padding-block: 24px 64px; }
.menu-section { padding-top: 36px; scroll-margin-top: 130px; }
.menu-section > h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); color: var(--section-ink, var(--ink)); border-bottom: var(--section-rule, 2px solid var(--brand)); padding-bottom: 8px; }
.menu-section h3 { font-size: 1.25rem; color: var(--brand); margin-top: 8px; }
.section-note { color: var(--muted); font-style: italic; }
.groups { display: grid; gap: 8px 48px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cols .items { columns: 2 340px; column-gap: 48px; }
.items { list-style: none; margin: 0; padding: 0; }
.item { break-inside: avoid; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.item-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.item-name { font-weight: 700; }
.leader { flex: 1; min-width: 12px; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.price { font-weight: 800; color: var(--price); white-space: nowrap; }
.price-multi { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-left: auto; }
.pm { white-space: nowrap; } .pm-l { color: var(--muted); font-size: .88rem; } .pm-p { font-weight: 800; color: var(--price); }
.pm-inline { font-family: var(--font-body); font-size: .95rem; color: var(--price); font-weight: 800; }
.item-desc { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.cto { color: var(--accent); font-weight: 800; margin-left: 2px; }
.name-list { line-height: 1.9; }
.options { display: grid; gap: 14px 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 8px; }
.option-group { background: var(--surface-2); padding: 14px 16px; border-radius: var(--radius); }
.option-group h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.option-group p { margin: 0; line-height: 1.7; }
.tray-grid { display: grid; gap: 20px 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tray { margin-top: 12px; overflow-x: auto; }
.tray h4 { font-size: 1.2rem; color: var(--brand); }
.tray-table, .soup-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tray-table th, .tray-table td, .soup-table th, .soup-table td { padding: 7px 6px; border-bottom: 1px dashed var(--line); text-align: right; }
.tray-table th[scope=row], .soup-table th[scope=row] { text-align: left; font-weight: 600; }
.tray-table thead th, .soup-table thead th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--line); }
.tray-table thead th:first-child, .soup-table thead th:first-child { text-align: left; }
.tray-table td, .soup-table td { font-weight: 700; color: var(--price); width: 5.5em; }
.fine { color: var(--muted); font-size: .9rem; margin-top: 28px; }

/* daily menu */
.daily { padding-block: 32px 64px; }
.daily-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.daily-head h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin: 0; }
.daily-date { display: block; font-size: .42em; font-family: var(--font-body); font-weight: 700; color: var(--brand); margin-top: 6px; letter-spacing: .02em; }
.daily-head p { margin: 8px 0 0; }
.daily-grid { display: grid; gap: 16px; grid-template-columns: 1.1fr 1fr 1fr; align-items: start; }
.daily-col { display: grid; gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--card-shadow, var(--shadow)); border: var(--card-border, 0); }
.card h2 { font-size: 1.45rem; color: var(--card-title, var(--brand)); }
.hot-list { margin: 0; padding: 0; list-style: none; counter-reset: hot; }
.hot-list li { counter-increment: hot; display: flex; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); font-weight: 600; font-size: 1.1rem; }
.hot-list li::before { content: counter(hot); font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--brand); min-width: 1.4em; text-align: right; }
.hot-list li:last-child, .card .item:last-child { border-bottom: 0; }
.card-feature { background: var(--feature-bg, var(--brand)); color: var(--feature-ink, var(--brand-ink)); }
.card-feature h2 { color: inherit; opacity: .9; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-body); }
.feature-name { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; margin: 0; line-height: 1.15; }
.card-feature .price { color: inherit; display: block; font-size: 1.3rem; margin-top: 4px; }
.feature-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.feature .price { margin-top: auto; font-size: 1.2rem; }
.daily-notes { margin: 24px 0 0; padding: 16px 20px; list-style: none; background: var(--surface-2); border-radius: var(--radius); font-weight: 600; }
.daily-notes li + li { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.archive { margin-top: 40px; }
.archive h2 { font-size: 1.1rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.archive ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.archive a { display: inline-block; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; }
.archive a[aria-current] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* footer */
.site-footer { background: var(--footer-bg, #16201a); color: var(--footer-ink, #dfe6df); padding-block: 48px 24px; margin-bottom: 0; }
.site-footer a { color: inherit; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.brand-footer { color: var(--footer-mark, #7fd18f); margin-bottom: 12px; }
.brand-footer .brand-name { color: inherit; }
.site-footer .brand-footer .brand-name { color: var(--footer-ink, #fff); }
.site-footer .muted { color: inherit; opacity: .7; }
.footer-fine { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; opacity: .7; }

/* floating call button: phones only */
.call-fab { display: none; }

@media (max-width: 900px) {
  .daily-grid { grid-template-columns: 1fr 1fr; }
  .card-hot { grid-row: span 2; }
  .about-grid, .visit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .wrap { padding-inline: 16px; }
  .header-row { min-height: 56px; gap: 10px; }
  .brand-clock { width: 34px; height: 34px; }
  .brand-name { font-size: 1.12rem; }
  .brand-sub, .header-call { display: none; }
  .nav { gap: 0; }
  .nav a { padding: 8px 8px; font-size: .95rem; }
  .nav a[href$="#visit"] { display: none; }
  .chips { top: 56px; }
  .preview-bar ~ main .chips { top: 86px; }
  .hero { min-height: 72vh; }
  .hero-inner { padding-block: 56px 28px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .daily-grid { grid-template-columns: 1fr; }
  .card-hot { grid-row: auto; }
  .daily-call { display: none; }
  .cols .items { columns: 1; }
  .groups { grid-template-columns: 1fr; }
  .call-fab { display: flex; position: fixed; z-index: 70; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 99px; background: var(--brand); color: var(--brand-ink);
    font-weight: 800; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  .site-footer { padding-bottom: 96px; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 1rem; }
  .nav a { padding: 8px 6px; font-size: .9rem; }
}

/* the daily menu prints on one sheet for the counter */
@media print {
  .preview-bar, .site-header, .site-footer, .call-fab, .chips, .archive, .daily-call, .hero-cta { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .card, .feature { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  .card-feature { background: #fff; color: #000; }
  .daily-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gallery img { transition: none; } }

/* linked notes on the daily menu (e.g. chopped salad -> order form) */
.daily-notes .note-link { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 14px; color: inherit; text-decoration: none; }
.daily-notes .note-link:hover .note-cta { text-decoration: underline; }
.note-cta { color: var(--brand); font-weight: 800; white-space: nowrap; }
.theme-c .note-cta { color: var(--accent); }
