/* =====================================================================
   EASTSIDE BAGEL — SITE STYLES
   Depends on tokens.css. Plain CSS, no build step (HostGator-ready).
   Sections:
     1. Base & typography      6. Cards, tiles, chips
     2. Layout                 7. Photo placeholders
     3. Header / nav / drawer  8. Tabs, accordion, tables
     4. Buttons                9. Forms
     5. Hero & sections       10. Modal, popup, toast, sticky bar
                              11. The 12×12 Grid, countdown, footer
                              12. Utilities & motion
   ===================================================================== */

/* ---------- 1. Base & typography ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--primary); }
button { font: inherit; color: inherit; }
::selection { background: var(--egg); color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-4);
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
}
h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-2xl); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); font-variation-settings: "opsz" 48, "SOFT" 30; }
p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-6) 0; }
small { font-size: var(--fs-sm); }

.lede { font-size: var(--fs-md); color: var(--text-muted); max-width: 60ch; }
.measure { max-width: 62ch; }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--primary);
}
.eyebrow.plain::before { display: none; }

.mono { font-family: var(--font-mono); font-size: var(--fs-sm); }
.index { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-subtle); letter-spacing: 0.08em; }
.mark { background: linear-gradient(transparent 62%, var(--egg-soft) 62%); padding: 0 .1em; }

/* ---------- 2. Layout ------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-pad); }
.section.tight { padding-block: calc(var(--section-pad) * .6); }
.section + .section { padding-top: 0; }
.section.bordered { border-top: 1px solid var(--border); }
.section.alt { background: var(--bg-alt); }
.section.alt + .section, .section.ink + .section { padding-top: var(--section-pad); }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.section-head h2 { margin-bottom: var(--sp-2); max-width: 22ch; }
.section-head .lede { margin: 0; }
.section-head .actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.grid { display: grid; gap: var(--sp-5); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center; }
.split.wide-left { grid-template-columns: 1.2fr 1fr; }
.split.wide-right { grid-template-columns: 1fr 1.2fr; }
.stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

@media (max-width: 960px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.wide-left, .split.wide-right { grid-template-columns: 1fr; gap: var(--sp-6); }
}
@media (max-width: 600px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* ---------- 3. Header / nav / drawer -------------------------------- */
.skip-link { position: absolute; left: var(--sp-4); top: -100px; background: var(--ink); color: var(--flour); padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm); z-index: 1000; }
.skip-link:focus { top: var(--sp-4); }

.announce {
  background: var(--ink); color: var(--flour);
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.06em;
  min-height: var(--announce-h);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: var(--sp-2) var(--gutter); gap: var(--sp-3);
}
.announce a { color: var(--egg); text-decoration: none; white-space: nowrap; }
.announce a:hover { text-decoration: underline; }
.announce[hidden] { display: none; }

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: color-mix(in srgb, var(--flour) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: var(--sp-5); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand .wordmark { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; font-variation-settings: "opsz" 48, "SOFT" 60; }
.brand .wordmark small { display: block; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-subtle); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: var(--sp-1); margin-left: auto; }
.nav a { text-decoration: none; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); }
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-alt); }
.header-cta { display: flex; align-items: center; gap: var(--sp-2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: var(--sp-2) var(--sp-3); cursor: pointer; font-size: var(--fs-sm); gap: var(--sp-2); align-items: center; }

.brand .wordmark { white-space: nowrap; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-cta .btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 600px) {
  .site-header .brand .wordmark small { display: none; }
  .site-header .brand .wordmark { font-size: 1.1rem; }
  .header-cta .btn-primary { display: none; } /* sticky bar carries Book Catering on phones */
  .announce { font-size: 11px; letter-spacing: .02em; line-height: 1.3; }
}

.drawer { position: fixed; inset: 0; z-index: 300; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(27, 20, 17, 0.5); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 92vw);
  background: var(--flour); padding: var(--sp-5); overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--sp-4);
  box-shadow: var(--shadow-lg);
  animation: slide-in var(--dur) var(--ease);
}
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-panel .close { align-self: flex-end; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { text-decoration: none; padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); font-family: var(--font-display); font-size: var(--fs-lg); }
.drawer-nav a[aria-current="page"] { color: var(--primary); }
.drawer-panel .btn { width: 100%; }
.drawer-meta { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- 4. Buttons --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.8rem 1.35rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--fs-sm); line-height: 1; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -8px rgba(180, 80, 27, .7); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--flour); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--flour); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-lg { padding: 1rem 1.75rem; font-size: var(--fs-base); }
.btn-sm { padding: 0.55rem 0.95rem; font-size: var(--fs-xs); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-link { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.btn-link:hover { color: var(--primary); border-color: var(--primary); }
.btn-link::after { content: "→"; transition: transform var(--dur) var(--ease); }
.btn-link:hover::after { transform: translateX(3px); }
.ext::after { content: "↗"; font-size: .85em; margin-left: .1em; }

/* ---------- 5. Hero & sections ------------------------------------- */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) var(--section-pad); position: relative; overflow: hidden; }
.hero .split { align-items: center; }
.hero h1 { margin-bottom: var(--sp-5); }
.hero .lede { font-size: var(--fs-lg); margin-bottom: var(--sp-6); }
.hero .row { gap: var(--sp-3); }
.hero-media { position: relative; }
.hero-media .ph { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
@media (max-width: 960px) { .hero-media .ph { aspect-ratio: 3 / 2; } }
.hero-note { position: absolute; left: var(--sp-4); bottom: var(--sp-4); background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); box-shadow: var(--shadow); max-width: 260px; }
.hero-note .mono { font-size: var(--fs-xs); color: var(--text-subtle); }
.hero-note strong { display: block; font-family: var(--font-display); font-size: var(--fs-md); }

.page-hero { padding-block: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(2rem, 1.5rem + 3vw, 4rem); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: var(--fs-2xl); max-width: 18ch; }
.page-hero .lede { margin-bottom: 0; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { padding: var(--sp-4) var(--sp-5); border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1; font-weight: 500; }
.stat > span { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-subtle); }
@media (max-width: 720px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

.section.ink { background: var(--ink-bg); color: var(--ink-text); }
.section.ink .eyebrow, .section.ink .subtle, .section.ink .muted, .section.ink .lede { color: var(--ink-text-muted); }
.section.ink .card { background: var(--ink-surface); border-color: var(--ink-border); color: var(--ink-text); }
.section.ink .btn-secondary { color: var(--ink-text); border-color: var(--ink-text); }
.section.ink .btn-secondary:hover { background: var(--ink-text); color: var(--ink); }
.section.ink .btn-link { color: var(--ink-text); border-color: var(--ink-text); }
.section.ink hr { border-color: var(--ink-border); }

.cta-band { background: var(--primary); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 1.5rem + 3vw, 4rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-6); align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 56px solid rgba(255,255,255,.08); pointer-events: none; }
.cta-band h2 { color: #fff; margin-bottom: var(--sp-3); }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band .row { justify-content: flex-end; }
.cta-band .btn-light:hover { background: #fff; }
.cta-band .btn-secondary { color: #fff; border-color: rgba(255,255,255,.7); }
.cta-band .btn-secondary:hover { background: #fff; color: var(--primary); }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } .cta-band .row { justify-content: flex-start; } }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.step { position: relative; padding: var(--sp-5); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; color: var(--primary); display: block; margin-bottom: var(--sp-3); }
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.step p { color: var(--text-muted); font-size: var(--fs-sm); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.quote { border-left: 3px solid var(--egg); padding-left: var(--sp-4); font-family: var(--font-display); font-size: var(--fs-lg); font-style: italic; font-variation-settings: "opsz" 72, "SOFT" 50; }
.quote cite { display: block; font-family: var(--font-mono); font-style: normal; font-size: var(--fs-xs); color: var(--text-subtle); margin-top: var(--sp-3); letter-spacing: .06em; }

.testimonial { padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; gap: var(--sp-4); }
.testimonial blockquote { margin: 0; font-family: var(--font-display); font-size: var(--fs-md); font-variation-settings: "opsz" 48, "SOFT" 50; }
.testimonial .who { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--text-muted); margin-top: auto; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-alt); border: 1px dashed var(--border-strong); flex: none; display: grid; place-items: center; font-family: var(--font-mono); font-size: 10px; color: var(--text-subtle); }

.logo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-4); align-items: center; }
.logo-ph { height: 48px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); display: grid; place-items: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); }
@media (max-width: 800px) { .logo-strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 6. Cards, tiles, chips --------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.card.hover:hover, a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
a.card { display: block; text-decoration: none; color: inherit; }
.card h3 { margin-bottom: var(--sp-2); }
.card-body { display: flex; flex-direction: column; gap: var(--sp-3); }

.occasion-tile { display: flex; flex-direction: column; gap: var(--sp-3); text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); min-height: 220px; position: relative; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.occasion-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.occasion-tile .ph { aspect-ratio: 16 / 9; }
.occasion-tile h3 { font-size: var(--fs-lg); margin: 0; }
.occasion-tile p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.occasion-tile .btn-link { margin-top: auto; align-self: flex-start; }

.pkg-card { display: flex; flex-direction: column; gap: var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.pkg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pkg-card .ph { aspect-ratio: 4 / 3; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
.pkg-card .body { padding: 0 var(--sp-5) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.pkg-card .top { display: flex; justify-content: space-between; align-items: start; gap: var(--sp-3); }
.pkg-card h3 { font-size: var(--fs-lg); margin: 0; }
.pkg-card .price { font-family: var(--font-display); font-size: var(--fs-lg); white-space: nowrap; text-align: right; line-height: 1.1; }
.pkg-card .price small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-subtle); }
.pkg-card .desc { color: var(--text-muted); font-size: var(--fs-sm); }
.pkg-card .box { list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); display: grid; gap: 4px; }
.pkg-card .box li { display: flex; gap: var(--sp-2); align-items: baseline; }
.pkg-card .box li::before { content: "—"; color: var(--sesame-2); flex: none; }
.pkg-card .meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pkg-card .actions { margin-top: auto; display: flex; gap: var(--sp-2); flex-wrap: wrap; padding-top: var(--sp-2); }
.pkg-card .actions .btn { flex: 1; }
.pkg-card.featured { border-color: var(--egg); }
.pkg-card .ribbon { position: absolute; top: var(--sp-3); left: var(--sp-3); }
.pkg-card { position: relative; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: var(--bg-alt); color: var(--text-muted); border: 1px solid transparent; white-space: nowrap; }
.chip.outline { background: transparent; border-color: var(--border); }
.chip.crust { background: var(--primary-soft); color: var(--primary-hover); }
.chip.egg { background: var(--egg-soft); color: #7A5A12; }
.chip.chive { background: var(--success-soft); color: var(--success); }
.chip.ink { background: var(--ink); color: var(--flour); }
.chip.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.verdict { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.verdict.holds { background: var(--success-soft); color: var(--success); }
.verdict.spills { background: var(--danger-soft); color: var(--danger); }
.verdict.worth { background: var(--egg-soft); color: #7A5A12; }
.verdict.untested { background: var(--bg-alt); color: var(--text-subtle); }
.verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.diet { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-strong); font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--text-muted); background: var(--surface); }

.episode-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.episode-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.episode-card .ph { aspect-ratio: 4 / 5; border: 0; border-radius: 0; border-bottom: 1px solid var(--border); }
.episode-card .body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.episode-card .series { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.episode-card h3 { font-size: var(--fs-lg); margin: 0; }
.episode-card .hook { font-family: var(--font-display); font-style: italic; color: var(--text-muted); font-variation-settings: "opsz" 48, "SOFT" 50; }
.episode-card .actions { display: flex; gap: var(--sp-3); margin-top: auto; padding-top: var(--sp-2); flex-wrap: wrap; }

.series-explainer { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.series-explainer .card { border-top: 4px solid var(--primary); }
.series-explainer .card.b { border-top-color: var(--egg); }
.series-explainer ol { padding-left: 1.2em; margin: var(--sp-3) 0 0; font-size: var(--fs-sm); color: var(--text-muted); display: grid; gap: 4px; }
@media (max-width: 800px) { .series-explainer { grid-template-columns: 1fr; } }

/* ---------- 7. Photo placeholders ---------------------------------- */
/* A placeholder is intentional: it names the exact shot the photographer
   owes. Replace by swapping the <div class="ph"> for an <img>. */
.ph {
  position: relative; width: 100%; aspect-ratio: 3 / 2;
  background:
    linear-gradient(135deg, rgba(27,20,17,.035) 25%, transparent 25%, transparent 50%, rgba(27,20,17,.035) 50%, rgba(27,20,17,.035) 75%, transparent 75%) 0 0 / 22px 22px,
    var(--bg-alt);
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  display: grid; place-items: center; overflow: hidden; color: var(--text-subtle);
}
.ph::before { content: ""; width: 28%; max-width: 96px; aspect-ratio: 1; border-radius: 50%; border: 0.5em solid var(--sesame); opacity: .7; }
.ph .ph-label { position: absolute; left: 10px; bottom: 10px; right: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-subtle); background: color-mix(in srgb, var(--paper) 85%, transparent); padding: 4px 8px; border-radius: 4px; line-height: 1.3; }
.ph.square { aspect-ratio: 1; }
.ph.portrait { aspect-ratio: 4 / 5; }
.ph.wide { aspect-ratio: 21 / 9; }
.ph.round { border-radius: 50%; aspect-ratio: 1; }
.ph.dark { background-color: var(--ink-surface); border-color: var(--ink-border); }
.ph.dark::before { border-color: var(--ink-border); }
.ph.dark .ph-label { background: rgba(27,20,17,.7); color: var(--ink-text-muted); }
.ph.embed::before { display: none; }
.ph.embed .embed-tag { font-family: var(--font-mono); font-size: var(--fs-xs); text-align: center; padding: var(--sp-4); }
.ph.embed .embed-tag b { display: block; font-size: var(--fs-md); font-family: var(--font-display); color: var(--text-muted); margin-bottom: 4px; }

/* ---------- 8. Tabs, accordion, tables ----------------------------- */
.tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: var(--sp-3); margin-bottom: var(--sp-6); position: sticky; top: var(--header-h); background: var(--bg); z-index: 20; padding-top: var(--sp-3); }
.tab { border: 1px solid var(--border); background: transparent; border-radius: var(--radius-pill); padding: 8px 16px; font-size: var(--fs-sm); font-weight: 500; cursor: pointer; color: var(--text-muted); transition: all var(--dur) var(--ease); }
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--flour); border-color: var(--ink); }
.tab .count { font-family: var(--font-mono); font-size: 10px; opacity: .7; margin-left: 4px; }
.tab-panel[hidden] { display: none; }

.accordion { border-top: 1px solid var(--border); }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary { list-style: none; cursor: pointer; padding: var(--sp-4) 0; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); font-family: var(--font-display); font-size: var(--fs-md); font-weight: 500; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.2rem; color: var(--primary); flex: none; transition: transform var(--dur) var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .answer { padding: 0 0 var(--sp-4); color: var(--text-muted); max-width: 70ch; }

.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { text-align: left; padding: var(--sp-3) var(--sp-3); border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-subtle); font-weight: 500; }
.spec-table td:first-child { font-weight: 600; }
.spec-table.compact th, .spec-table.compact td { padding: var(--sp-2) var(--sp-2); }
.table-wrap { overflow-x: auto; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.checklist li { display: flex; gap: var(--sp-3); align-items: baseline; }
.checklist li::before { content: "✓"; color: var(--success); font-weight: 700; flex: none; }

/* ---------- 9. Forms ------------------------------------------------ */
.form { display: grid; gap: var(--sp-4); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--text-subtle); font-size: var(--fs-xs); margin-left: 4px; }
.field .hint { font-size: var(--fs-xs); color: var(--text-subtle); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); font: inherit; font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--egg-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.field .error { font-size: var(--fs-xs); color: var(--danger); display: none; }
.field.has-error .error { display: block; }
.check { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-sm); }
.check input { margin-top: 3px; accent-color: var(--primary); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { font-size: var(--fs-sm); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); display: none; }
.form-status.ok { display: block; background: var(--success-soft); color: var(--success); }
.form-status.err { display: block; background: var(--danger-soft); color: var(--danger); }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.inline-form { display: flex; gap: var(--sp-2); }
.inline-form input { flex: 1; min-width: 0; padding: 0.75rem 0.9rem; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--paper); font: inherit; font-size: var(--fs-sm); }
.inline-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--egg-soft); }
@media (max-width: 480px) { .inline-form { flex-direction: column; } }

/* Pill choice groups (headcount, bagel picks) */
.choices { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); font-size: var(--fs-sm); background: var(--paper); cursor: pointer; transition: all var(--dur) var(--ease); }
.choice input:checked + span { background: var(--ink); color: var(--flour); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice span .index { color: inherit; opacity: .6; }

/* Spread builder */
.builder { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--sp-6); }
.builder-summary { position: sticky; top: calc(var(--header-h) + var(--sp-4)); align-self: start; }
.builder-summary .line { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.builder-summary .line b { font-family: var(--font-mono); font-weight: 500; }
.builder-summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--sp-3); }
.builder-summary .total b { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; }
.range { width: 100%; accent-color: var(--primary); }
@media (max-width: 900px) { .builder { grid-template-columns: 1fr; } .builder-summary { position: static; } }

/* ---------- 10. Modal, popup, toast, sticky bar -------------------- */
.modal { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: var(--sp-4); }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(27,20,17,.55); backdrop-filter: blur(2px); }
.modal-panel { position: relative; background: var(--flour); border-radius: var(--radius-lg); width: min(720px, 100%); max-height: min(88vh, 900px); overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop var(--dur) var(--ease); }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-panel .close { position: absolute; top: var(--sp-3); right: var(--sp-3); z-index: 2; }
.modal-panel .ph { border-radius: var(--radius-lg) var(--radius-lg) 0 0; border: 0; border-bottom: 1px solid var(--border); aspect-ratio: 21 / 9; }
.modal-body { padding: var(--sp-5) clamp(1.25rem, 1rem + 2vw, 2.5rem) clamp(1.25rem, 1rem + 2vw, 2.5rem); display: grid; gap: var(--sp-4); }
.modal-body h2 { font-size: var(--fs-xl); margin: 0; }
.modal-body .actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; padding-top: var(--sp-2); }
.modal.popup .modal-panel { width: min(560px, 100%); }
.modal.popup .modal-body { padding-top: var(--sp-6); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--paper); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--ink); color: var(--flour); border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--sp-5) + 64px); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--flour); padding: var(--sp-3) var(--sp-5); border-radius: var(--radius-pill); font-size: var(--fs-sm); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); z-index: 500; max-width: min(520px, 92vw); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 761px) { .toast { bottom: var(--sp-5); } }

.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; display: none; gap: var(--sp-2); padding: var(--sp-3) var(--gutter); background: color-mix(in srgb, var(--flour) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--border); padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom)); }
.sticky-bar .btn { flex: 1; }
@media (max-width: 760px) { .sticky-bar { display: flex; } body { padding-bottom: 76px; } }

.cookie { position: fixed; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); z-index: 260; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4); box-shadow: var(--shadow-lg); display: none; gap: var(--sp-3); align-items: center; font-size: var(--fs-sm); max-width: 560px; margin-inline: auto; }
.cookie.show { display: flex; }
@media (max-width: 760px) { .cookie { bottom: 84px; flex-direction: column; align-items: stretch; } }

.back-top { position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: 240; opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease); }
.back-top.show { opacity: 1; pointer-events: auto; }
@media (max-width: 760px) { .back-top { display: none; } }

/* ---------- 11. The 12×12 Grid, countdown, footer ------------------ */
.bgrid-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-6); align-items: start; }
@media (max-width: 960px) { .bgrid-wrap { grid-template-columns: 1fr; } }
.bgrid { display: grid; grid-template-columns: auto repeat(12, minmax(0, 1fr)); gap: 3px; font-family: var(--font-mono); font-size: 10px; }
.bgrid .corner { }
.bgrid .head { display: grid; place-items: center; padding: 4px 0; color: var(--ink-text-muted); letter-spacing: .05em; }
.bgrid .rhead { display: grid; place-items: center; padding: 0 8px 0 0; color: var(--ink-text-muted); letter-spacing: .05em; }
.bgrid .cell { aspect-ratio: 1; border-radius: 3px; background: var(--ink-surface); border: 1px solid var(--ink-border); cursor: pointer; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease); padding: 0; }
.bgrid .cell:hover, .bgrid .cell:focus-visible { transform: scale(1.15); z-index: 2; background: var(--sesame-2); outline: none; }
.bgrid .cell.holds { background: var(--chive); border-color: var(--chive); }
.bgrid .cell.spills { background: var(--lox); border-color: var(--lox); }
.bgrid .cell.worth { background: var(--egg); border-color: var(--egg); }
.bgrid .cell.testing { background: var(--crust); border-color: var(--crust); }
.bgrid .cell.active { box-shadow: 0 0 0 2px var(--flour); transform: scale(1.15); z-index: 3; }
.bgrid-panel { background: var(--ink-surface); border: 1px solid var(--ink-border); border-radius: var(--radius); padding: var(--sp-5); min-height: 280px; display: flex; flex-direction: column; gap: var(--sp-3); }
.bgrid-panel .id { font-family: var(--font-mono); color: var(--egg); letter-spacing: .1em; font-size: var(--fs-sm); }
.bgrid-panel h3 { margin: 0; font-size: var(--fs-xl); }
.bgrid-panel p { color: var(--ink-text-muted); font-size: var(--fs-sm); }
.bgrid-panel .actions { margin-top: auto; display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.bgrid-legend { display: flex; flex-wrap: wrap; gap: var(--sp-4); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-text-muted); margin-top: var(--sp-4); }
.bgrid-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bgrid-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid var(--ink-border); }

.mini-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.mini-grid i { aspect-ratio: 1; border-radius: 3px; background: var(--ink-surface); border: 1px solid var(--ink-border); }
.mini-grid i.on { background: var(--egg); border-color: var(--egg); }
.mini-grid i.on2 { background: var(--chive); border-color: var(--chive); }
.mini-grid i.on3 { background: var(--crust); border-color: var(--crust); }

.catalog-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.catalog-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--sp-3); align-items: baseline; padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.catalog-list li .index { color: var(--primary); }
.catalog-list li b { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 500; }
.catalog-list li .note { color: var(--text-subtle); font-size: var(--fs-xs); }
.catalog-list li .chip { justify-self: end; }
@media (max-width: 600px) { .catalog-list li { grid-template-columns: 48px 1fr; } .catalog-list li .chip { grid-column: 2; justify-self: start; } }

.countdown { display: flex; gap: var(--sp-3); }
.countdown div { text-align: center; min-width: 64px; padding: var(--sp-3) var(--sp-2); background: var(--ink-surface); border: 1px solid var(--ink-border); border-radius: var(--radius-sm); }
.countdown b { display: block; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-text-muted); }
.drop-card { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); background: var(--ink-surface); border: 1px solid var(--ink-border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
@media (max-width: 800px) { .drop-card { grid-template-columns: 1fr; } }
.meter { height: 8px; background: var(--ink-border); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--egg); border-radius: 999px; }

.site-footer { background: var(--ink-bg); color: var(--ink-text); padding: var(--section-pad) 0 var(--sp-6); margin-top: auto; }
.site-footer a { color: var(--ink-text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--egg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: var(--sp-6); padding-bottom: var(--sp-7); border-bottom: 1px solid var(--ink-border); }
.footer-grid h4 { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-text-muted); margin-bottom: var(--sp-3); font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); font-size: var(--fs-sm); }
.footer-brand .brand { color: var(--ink-text); }
.footer-brand .brand .wordmark small { color: var(--ink-text-muted); }
.footer-brand p { color: var(--ink-text-muted); font-size: var(--fs-sm); margin-top: var(--sp-4); max-width: 34ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); padding-top: var(--sp-5); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-text-muted); letter-spacing: .04em; }
.footer-bottom ul { list-style: none; display: flex; gap: var(--sp-4); margin: 0; padding: 0; }
.site-footer .inline-form input { background: var(--ink-surface); border-color: var(--ink-border); color: var(--ink-text); }
.site-footer .inline-form input::placeholder { color: var(--ink-text-muted); }
.site-footer .field .hint { color: var(--ink-text-muted); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } .footer-news { grid-column: 1 / -1; } }

/* Contact / hours */
.hours { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); display: grid; gap: 6px; }
.hours li { display: flex; justify-content: space-between; gap: var(--sp-4); border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.hours li span:last-child { font-family: var(--font-mono); }

/* Page: 404 & thank-you */
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.center .row { justify-content: center; }

/* ---------- 12. Utilities & motion --------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0 !important; } .mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); } .mt-7 { margin-top: var(--sp-7); }
.mb-0 { margin-bottom: 0 !important; } .mb-4 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); }
.gap-2 { gap: var(--sp-2); }
.text-center { text-align: center; }
.hide-mobile { } .show-mobile { display: none; }
@media (max-width: 760px) { .hide-mobile { display: none !important; } .show-mobile { display: initial; } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.ring-bg { position: absolute; border-radius: 50%; border: 48px solid var(--bg-alt); pointer-events: none; z-index: -1; }
.hero .ring-bg { width: 520px; height: 520px; right: -160px; top: -160px; }

@media print {
  .site-header, .announce, .sticky-bar, .site-footer form, .back-top, .cookie, .modal { display: none !important; }
  body { background: #fff; }
}
