/* Shared stylesheet. Brand colors and fonts come from brands/<id>.json as CSS variables. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--heading); }
.btn, .eyebrow, .tag, .facts-row, .nav, dt, .seg button, .label, .brand-name, .menu-cost, .stepper output, .about-facts { font-family: var(--ui); }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; font-weight: 600; letter-spacing: .01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.small { font-size: .95rem; }
.muted { color: var(--muted); }
.big { font-size: 1.25rem; }
.sep { margin: 0 .6em; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 1.5px solid var(--ink); border-radius: 999px; padding: .78em 1.5em; font-size: 1rem; font-weight: 600; letter-spacing: .03em; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease; background: transparent; color: var(--ink); }
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: .55em 1.1em; font-size: .92rem; white-space: nowrap; }
.btn[disabled] { opacity: .35; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1.5px solid var(--ink); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-name { font-weight: 600; font-size: 1.1rem; letter-spacing: .01em; }
.nav { display: flex; gap: 24px; font-size: 1rem; font-weight: 500; }
.nav a { white-space: nowrap; text-decoration: none; padding: 4px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); }
.logo { object-fit: contain; }
.logo-round { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--ink); }
.logo-sm { width: 54px; height: 52px; }
.logo-lg { width: 168px; height: 168px; }
.wordmark { font-family: var(--heading); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* hero */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.no-photos .hero-grid { grid-template-columns: 1fr; text-align: center; }
.no-photos .hero-actions, .no-photos .hero-logo { justify-content: center; }
.hero-logo { display: flex; margin-bottom: 22px; }
.eyebrow { font-size: 1rem; letter-spacing: .02em; color: var(--accent); margin-bottom: .8em; font-weight: 600; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); text-transform: uppercase; }
.lede { font-size: 1.2rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-photos { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; height: 480px; }
.hero-photo { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 16px; border: 1.5px solid var(--ink); }
.hero-photo-0 { grid-row: 1 / 3; }

/* daily banner from Facebook */
.today { background: var(--ink); color: #fff; padding: 34px 0; }
.today-row { display: flex; gap: 32px; align-items: center; }
.today-copy { flex: 1; min-width: 0; }
.today-kicker { font-family: var(--ui); font-weight: 600; font-size: .95rem; color: #f3d9b1; margin-bottom: .4em; }
.today h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .3em; }
.today-blurb { font-size: 1.12rem; max-width: 46em; color: #f4f1ec; }
.today-items { list-style: none; padding: 0; margin: 4px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.today-items li { font-family: var(--ui); font-weight: 500; border: 1.5px solid rgba(255,255,255,.7); border-radius: 999px; padding: .3em .95em; }
.today-items li.special { background: #f3d9b1; color: var(--ink); border-color: #f3d9b1; }
.today-items li.special span { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-right: .5em; }
.today-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #f3d9b1; border-color: #f3d9b1; }
.today-link { font-family: var(--ui); font-weight: 600; color: #fff; }
.today-photo { width: 240px; height: 180px; object-fit: cover; border-radius: 14px; flex: none; }
@media (max-width: 760px) { .today-row { flex-direction: column; align-items: flex-start; } .today-photo { width: 100%; height: 200px; } }

/* facts strip */
.facts { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: var(--card); }
.facts-row { list-style: none; margin: 0 auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 0; padding-top: 18px; padding-bottom: 18px; font-size: 1.02rem; font-weight: 500; }
.facts-row li { display: flex; align-items: center; }
.facts-row li { padding: 0 22px; }
.facts-row li + li { border-left: 1.5px solid color-mix(in srgb, var(--ink) 25%, transparent); }

/* sections */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.rule-title { display: flex; align-items: center; gap: 18px; font-size: clamp(1.7rem, 3vw, 2.3rem); text-transform: uppercase; letter-spacing: .08em; justify-content: center; }
.rule-title::before, .rule-title::after { content: ""; height: 1.5px; background: var(--ink); flex: 0 1 70px; }
.rule-left { justify-content: flex-start; }
.rule-left::before { display: none; }

/* menu */
.menu-list { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; columns: 2; column-gap: 56px; }
.menu-list li { display: flex; align-items: center; gap: 12px; padding: 14px 2px; border-bottom: 1.5px dotted color-mix(in srgb, var(--ink) 35%, transparent); break-inside: avoid; }
.menu-name { font-size: 1.12rem; }
.menu-note { color: var(--muted); font-size: .92rem; }
.menu-cost { margin-left: auto; font-weight: 600; }
.menu-price { text-align: center; margin-top: 30px; color: var(--muted); }
.menu-price strong { color: var(--ink); font-family: var(--ui); font-size: 1.3rem; }
.dot { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.25); }
.tag { font-size: .8rem; letter-spacing: .01em; background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 80%, #000); border-radius: 999px; padding: .25em .75em; white-space: nowrap; font-weight: 500; }

/* order */
.section-order { background: var(--card); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.order-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.card { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 18px; padding: 26px; }
.card h3 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card h3 .count { font-size: .95rem; color: var(--muted); letter-spacing: .06em; }
.card + .card { margin-top: 22px; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; margin-bottom: 18px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: .55em 1.1em; font-size: .95rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; max-width: 360px; margin: 6px 0 20px; }
.slot { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--ink) 40%, transparent); transition: background .2s ease, transform .2s ease; }
.slot.filled { border: 1.5px solid rgba(0,0,0,.3); transform: scale(1.04); }
.assorted-box { padding: 18px; border: 1.5px dashed color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 14px; margin-bottom: 18px; }
.assorted-box p { margin: 0; }
.flavor-rows { list-style: none; margin: 0 0 16px; padding: 0; }
.flavor-rows li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.flavor-rows .menu-name { font-size: 1rem; }
.row-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; flex: 1; min-width: 0; }
.flavor-rows li.blocked .menu-name, .flavor-rows li.blocked .dot { opacity: .35; }
.stepper { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.menu-cost + .stepper { margin-left: 14px; }
.order-left { min-width: 0; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--card); font-size: 1.15rem; line-height: 1; cursor: pointer; color: var(--ink); }
.stepper button:disabled { opacity: .25; cursor: not-allowed; }
.stepper output { min-width: 26px; text-align: center; font-family: var(--heading); font-size: 1.05rem; }
.hint { font-size: 1rem; color: var(--muted); margin: 0 0 14px; }
.hint.warn { color: #9a3b1f; }
.cart { list-style: none; margin: 0; padding: 0; }
.cart li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.cart .cart-text { flex: 1; }
.cart .cart-text strong { font-family: var(--ui); font-weight: 600; display: block; }
.cart .cart-text span { font-size: 1rem; color: var(--muted); }
.cart .remove { border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; font: inherit; font-size: .85rem; }
.empty { color: var(--muted); font-style: italic; margin: 0; }
.field { display: block; margin-bottom: 14px; }
.label { display: block; font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .7em .85em; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--card); color: var(--ink); }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field textarea:focus, .btn:focus-visible, .seg button:focus-visible, .stepper button:focus-visible, .day:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.addr-row { display: flex; gap: 8px; }
.addr-row input { flex: 1; }
.status { font-size: 1rem; margin: -4px 0 14px; min-height: 1.4em; }
.status.ok { color: #2f6b3a; }
.status.bad { color: #9a3b1f; }
.days { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.day { border: 1.5px solid var(--ink); background: var(--card); border-radius: 12px; padding: .55em .9em; font: 600 1rem var(--ui); cursor: pointer; color: var(--ink); text-align: left; }
.day[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.day:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.summary { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: .98rem; }
.summary td { padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); vertical-align: top; }
.summary td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.summary tr.total td { border-bottom: 0; font-family: var(--ui); font-weight: 600; font-size: 1.2rem; padding-top: 12px; }
.notice { background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; font-size: .98rem; margin: 14px 0 0; }
.error { color: #9a3b1f; font-size: .95rem; margin: 12px 0 0; }

.check { display: flex; align-items: center; gap: 10px; font-family: var(--ui); font-weight: 500; margin: 0 0 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.field select { width: 100%; font: inherit; font-size: 1rem; padding: .7em .85em; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--card); color: var(--ink); }

/* delivery options + business */
.options, .uses { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.options li, .uses li { border: 1.5px solid var(--ink); border-radius: 18px; padding: 22px; background: var(--card); }
.options h3, .uses h3 { font-family: var(--ui); font-size: 1.15rem; font-weight: 600; letter-spacing: 0; margin-bottom: .4em; }
.options p, .uses p { margin: 0; color: var(--muted); }
.sub-title { font-family: var(--ui); font-size: 1.4rem; font-weight: 600; letter-spacing: 0; }
.section-business { border-top: 1.5px solid var(--ink); }
.business-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.uses { grid-template-columns: 1fr; margin: 0; }

/* delivery */
.delivery-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.towns { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { border: 1.5px solid var(--ink); border-radius: 999px; padding: .3em .95em; font-size: .95rem; background: var(--card); }
.delivery-facts { margin: 0; border: 1.5px solid var(--ink); border-radius: 18px; background: var(--card); }
.delivery-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; }
.delivery-facts div + div { border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.delivery-facts dt { font-size: 1rem; font-weight: 600; }
.delivery-facts dd { margin: 0; text-align: right; }

/* stand */
.section-stand { background: var(--paper); border-top: 1.5px solid var(--ink); }
.stand-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
/* the other bakery's ad band */
.section-partner { padding-top: 0; }
.partner-ad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--card); }
.partner-photo { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.partner-body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.partner-kicker { font-family: var(--ui); font-size: 1rem; color: var(--muted); margin: 0 0 14px; }
.partner-logo { width: 190px; max-width: 70%; height: auto; margin: 0 0 14px; }
.partner-name { font-family: var(--ui); font-weight: 600; margin: 0 0 8px; }
.partner-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; }
.partner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 8px; }
.partner-soon { font-family: var(--ui); font-size: .95rem; color: var(--muted); }
.zones { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.zones li { display: flex; gap: 14px; align-items: baseline; border: 1.5px solid var(--ink); border-radius: 12px; padding: 12px 16px; background: var(--card); }
.zone-fee { font-family: var(--ui); font-weight: 600; font-size: 1.15rem; min-width: 3.6em; }
.zone-note { font-family: var(--ui); font-weight: 600; color: var(--accent); margin: 0 0 10px; }
.summary .nudge td { font-family: var(--ui); font-weight: 600; color: var(--accent); padding-top: 12px; border: 0; }
.stand-address { font-family: var(--ui); font-weight: 600; margin: 0 0 14px; }
.stand-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.stand-photos { position: relative; margin: 0 0 34px 34px; }
.stand-photo { display: block; border: 1.5px solid var(--ink); border-radius: 16px; object-fit: cover; }
.stand-photo-0 { width: 100%; height: auto; aspect-ratio: 1320 / 1040; }
.stand-photo-1 { position: absolute; left: -34px; bottom: -34px; width: 34%; aspect-ratio: 4 / 5; padding: 6px; background: #fff; border-radius: 12px; }

/* about */
.about-grid { max-width: 760px; }
.about-grid p { font-size: 1.1rem; }
.about-facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 0; font-size: 1rem; font-weight: 500; }
.about-facts li { display: flex; align-items: center; }
.about-facts li + li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 0 16px; }

/* footer */
.site-footer { border-top: 1.5px solid var(--ink); padding: 44px 0 52px; text-align: center; }
.footer-brand { font-family: var(--heading); font-weight: 600; font-size: 1.4rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.footer-contact { margin-bottom: 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; overflow-wrap: anywhere; }
.foot-credit { margin-top: 6px; }
.foot-credit a { color: inherit; }

/* thanks page */
.thanks { max-width: 640px; margin: 64px auto; text-align: center; }
.thanks .card { text-align: left; margin-top: 28px; }

@media (max-width: 900px) {
  .hero-grid, .order-grid, .delivery-grid, .stand-grid, .business-grid { grid-template-columns: 1fr; gap: 36px; }
  .partner-ad { grid-template-columns: 1fr; }
  .partner-photo { min-height: 0; height: 280px; }
  .partner-body { padding: 28px 24px; }
  .stand-photos { margin: 0 0 24px 18px; }
  .stand-photo-1 { left: -18px; bottom: -24px; width: 38%; }
  .hero-photos { height: 360px; }
  .menu-list { columns: 1; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .brand-name { display: none; }
  .brand .brand-name:first-child { display: inline; } /* no logo yet: keep the name */
  .hero { padding: 32px 0 44px; }
  .logo-lg { width: 128px; height: 128px; }
  .hero-photos { height: 280px; gap: 10px; }
  .section { padding: 60px 0; }
  .facts-row { flex-direction: column; align-items: center; gap: 6px; }
  .facts-row li + li { border-left: 0; }
  .card { padding: 20px; }
  .two { grid-template-columns: 1fr; }
  .rule-title::before, .rule-title::after { flex-basis: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
