/* Code Brew Coffee: their brand ("Website Layout" + palette, 10-23). Off-white pages, brown ink and
   bands, sky and pale blue for bands, rules and highlights, tan for drawings. MonteCarlo (their primary
   script, display sizes only: the ticker and script accents), Libre Baskerville (Abbie's pick, 10-28,
   standing in for CoFo Raffine, which needs a paid web licence: headings and spaced caps; 400, 400
   italic and 700 only, so headings are 400 and small caps 700), Montserrat (their web font: body and
   forms). The home headline is Abbie's own lettering (assets/headline.svg), not a font.
   AA: blues and tan are never text on light backgrounds; brown on pale blue is 9.9:1; --muted is
   >= 5.4:1 on every light background. The palette's fourth swatch is labelled #29356E but shows pale
   blue (#D4EBFA); the swatch is used until they say otherwise. 10-28 (Abbie): pale-blue header,
   sand Events band (#E5DDD4) with white tiles, white footer text; no EKG/heartbeat lines anywhere. */
:root {
  --cream: #F4F3EC;
  --cream-2: #EAE6DA;
  --paper: #FBFAF6;
  --brown: #493728;
  --brown-2: #5A4636;
  --brown-3: #33261C;
  --blue-pale: #D4EBFA;
  --blue: #A9D7F3;
  --tan: #AF8B75;
  --sand: #E5DDD4;   /* Events band (10-28) */
  --tile: #FEFFFF;   /* Events tiles (10-28) */
  --muted: #6B5A4E;
  --field: #8A7868;
  --error: #9B2C1F;
  --ok: #2F6B3F;
  --line: rgba(73, 55, 40, .16);
  --line-dark: rgba(244, 243, 236, .16);
  --on-dark: rgba(244, 243, 236, .84);
  --radius: 18px;
  --script: 'MonteCarlo', 'Snell Roundhand', 'Apple Chancery', cursive;
  --serif: 'Libre Baskerville', Baskerville, Georgia, 'Times New Roman', serif;
  --caps: 'Libre Baskerville', Baskerville, Georgia, serif;
  --body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(64px, 9vw, 120px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--brown); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.14; letter-spacing: -.015em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.28rem; font-weight: 700; line-height: 1.25; letter-spacing: -.005em; }
/* Script accents: loopy, but big enough to read. */
h1 em, h2 em, h3 em { font-family: var(--script); font-style: normal; font-weight: 400; font-size: 1.36em; line-height: .9; letter-spacing: 0; padding: 0 .08em 0 .02em; }
h3 em { font-size: 1.45em; font-weight: 400; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
section { padding-block: var(--pad); }
.eyebrow { font: 700 .8rem/1.45 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--brown); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; flex: none; width: 34px; height: 2px; background: var(--blue); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 99; background: var(--brown); color: var(--cream); font-weight: 800; padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
/* Focus: brown ring with a pale-blue halo on light backgrounds; pale blue on dark ones. */
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 9px var(--blue-pale); }
.how :focus-visible, .site-footer :focus-visible, .action-bar :focus-visible, .book-aside :focus-visible, .event-cta :focus-visible, .lightbox :focus-visible { outline-color: var(--blue-pale); box-shadow: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, background-color .15s, box-shadow .15s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.08rem; }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn-primary { background: var(--brown); color: var(--cream); box-shadow: 0 4px 0 var(--blue); }
.btn-primary:hover { background: var(--brown-2); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--blue); }
.btn-primary svg { transition: transform .2s; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { border-color: var(--brown); color: var(--brown); }
.btn-ghost:hover { background: var(--blue-pale); }
.btn:disabled { opacity: .6; cursor: progress; }
/* on dark bands */
.how .btn-primary, .event-cta .btn-primary { background: var(--cream); color: var(--brown); box-shadow: 0 4px 0 var(--blue); }
.how .btn-primary:hover, .event-cta .btn-primary:hover { background: var(--blue-pale); }

/* ---------- wordmark (after their Facebook cover) ---------- */
.brand { text-decoration: none; margin-right: auto; display: flex; min-height: 44px; align-items: center; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--brown); }
.wm-badge { width: 44px; height: 44px; flex: none; }
.wm-text { display: inline-flex; flex-direction: column; align-items: center; }
.wm-name { font: 400 2.15rem/.95 var(--script); padding: 0 .1em; white-space: nowrap; }
.wm-sub { display: flex; align-items: center; gap: 8px; font: 700 0.79rem/1 var(--caps); letter-spacing: .42em; text-transform: uppercase; margin-right: -.42em; }
.wm-sub::before, .wm-sub::after { content: ''; width: 20px; height: 1.5px; background: var(--blue); }
.wm-sub::after { margin-left: -.42em; }
.wm-dark { color: var(--cream); }

/* ---------- header ---------- */
/* Announcement bar (Website → Content in Hello to Paid): above the header, scrolls away. */
.announce { background: var(--brown); color: var(--cream); font-size: .95rem; }
.announce .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; padding-top: 10px; padding-bottom: 10px; text-align: center; }
.announce p { margin: 0; font-weight: 600; }
.announce-link { color: var(--brown); background: var(--blue-pale); border-radius: 999px; padding: 4px 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.announce-link:hover, .announce-link:focus-visible { background: var(--cream); }
[data-social][hidden], li:has(> a[data-social][hidden]), .build[hidden] { display: none !important; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(212, 235, 250, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--brown); border-bottom: 1.5px solid var(--blue); } /* #D4EBFA (10-28); brown on it is 9.2:1 */
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.nav { display: flex; gap: 4px; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--brown); border-radius: 999px; }
.nav a:hover { background: var(--paper); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: .32em; }
.hero h1 em { display: inline-block; font-size: 1.3em; margin-top: .02em; }
.hero .lead b { color: var(--brown); font-weight: 700; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.hero-note { display: flex; gap: 10px; align-items: center; margin: 26px 0 0; font-size: .95rem; color: var(--muted); }
.hero-note svg { width: 22px; height: 22px; flex: none; color: var(--brown); }
.blip { width: 10px; height: 10px; border-radius: 50%; background: var(--brown); box-shadow: 0 0 0 0 rgba(169, 203, 221, .9); animation: blip 1.6s infinite; flex: none; }
@keyframes blip { 0% { box-shadow: 0 0 0 0 rgba(169, 203, 221, .95); } 70% { box-shadow: 0 0 0 11px rgba(169, 203, 221, 0); } 100% { box-shadow: 0 0 0 0 rgba(169, 203, 221, 0); } }
.art { position: relative; }
.art-badge { display: grid; justify-items: center; isolation: isolate; }
.art-badge::before { content: ''; position: absolute; z-index: -1; top: 50%; left: 50%; width: min(96%, 500px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -52%); background: var(--blue-pale); box-shadow: 0 0 0 10px var(--cream), 0 0 0 12px var(--blue); }
.hero-badge { width: min(100%, 470px); height: auto; animation: idle 3.2s ease-in-out infinite; }
@keyframes idle { 50% { transform: translateY(-3px); } }
/* "Where's Cody today?" badge (site.js fills it from the schedule). Its height is reserved up front
   and the text fades in, so the hero doesn't jump when the answer arrives. */
.cody-badge { display: flex; align-items: center; gap: 12px; max-width: 470px; min-height: 76px; margin: 26px 0 0; padding: 9px 18px 9px 9px; background: var(--paper); border: 1.5px solid var(--brown); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--blue-pale), 5px 5px 0 1.5px var(--blue); }
.cb-pic { width: 54px; height: 54px; flex: none; }
.cb-text { min-width: 0; }
.cb-label { margin: 0 0 3px; font: 700 .72rem/1.35 var(--caps); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cb-detail { margin: 0; font-weight: 600; line-height: 1.35; min-height: 1.35em; transition: opacity .35s; }
.cody-badge.is-loading .cb-detail { opacity: 0; }
.cb-name { font-weight: 700; }
.cb-when { white-space: nowrap; }
.cb-detail > * + *::before { content: '·'; display: inline-block; margin: 0 .45em; color: var(--muted); font-weight: 700; }
.cb-detail a { font-weight: 700; text-underline-offset: 3px; text-decoration-color: var(--blue); text-decoration-thickness: 2px; }
.cb-detail a:hover { text-decoration-color: var(--brown); }

/* ---------- ticker ---------- */
.ticker { background: var(--blue-pale); color: var(--brown); overflow: hidden; border-block: 1px solid var(--blue); }
.tk-track { display: flex; width: max-content; animation: tick 44s linear infinite; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li { display: flex; align-items: center; gap: 26px; padding: 10px 0 12px 26px; font: 400 2.1rem/1.1 var(--script); white-space: nowrap; }
.tk-ic { width: 34px; height: auto; flex: none; } /* Abbie's coffee beans between the phrases */
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- what we do ---------- */
.what .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.vitals { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.vitals li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--blue); }
.vitals b { display: block; font-size: 1.12rem; }
.vitals span { color: var(--muted); }
.vi { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--blue-pale); color: var(--brown); display: grid; place-items: center; border: 1.5px solid var(--brown); }
.vi svg { width: 24px; height: 24px; }
/* the joke patient chart: brown ink on paper ruled in pale blue */
.chart { background: var(--paper); border: 1.5px solid var(--brown); border-radius: 6px 6px var(--radius) var(--radius); padding: 30px 26px 20px; box-shadow: 12px 12px 0 var(--blue-pale), 12px 12px 0 1.5px var(--blue); transform: rotate(1.5deg); position: relative; }
.chart::before { content: ''; position: absolute; top: -14px; left: 50%; width: 96px; height: 26px; margin-left: -48px; background: var(--brown); border-radius: 8px; box-shadow: inset 0 -6px 0 var(--brown-2); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; font: 700 1.00rem/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 3px double var(--brown); }
.chart-head span:first-child { font: 400 1.9rem/1 var(--script); letter-spacing: 0; text-transform: none; }
.chart dl { margin: 0; }
.chart dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1.5px solid var(--blue-pale); }
.chart dt { font: 700 0.92rem/1.9 var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chart dd { margin: 0; font: italic 600 1.2rem/1.3 var(--serif); }
.chart-foot { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- meet the truck ---------- */
.meet { background: var(--blue-pale); }
.meet .wrap { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.meet-photo { margin: 0; border-radius: 6px; overflow: hidden; border: 10px solid var(--paper); outline: 1.5px solid var(--brown); box-shadow: 10px 10px 0 var(--brown); transform: rotate(-1.2deg); background: var(--paper); }
.meet-photo img { display: block; width: 100%; height: auto; }
.meet .lead { color: var(--brown-2); }

/* ---------- from ambulance to coffee truck (gallery) ---------- */
.build { background: var(--cream); }
.gallery { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: 16px; }
.gallery li { margin: 0; min-width: 0; grid-column: span 2; }
.gallery li.wide { grid-column: span 5; }
.g-item { position: relative; display: block; height: 100%; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--brown); background: var(--brown); text-decoration: none; }
.g-item img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .35s ease; }
.gallery li.wide .g-item img { aspect-ratio: auto; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.03); }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 10px; color: #FFFFFF; font: italic 400 1.02rem/1.35 var(--serif); background: linear-gradient(transparent, rgba(44, 31, 23, .92) 55%); }
.g-follow { margin: 14px 0 0; color: var(--muted); }
.g-follow a { font-weight: 700; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(44, 31, 23, .92); }
.lightbox img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 6px; border: 8px solid var(--cream); }
.lb-cap { color: #FFFFFF; text-align: center; margin: 12px 0 0; font: italic 400 1.15rem/1.4 var(--serif); }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--blue); background: var(--cream); color: var(--brown); display: grid; place-items: center; cursor: pointer; padding: 0; }
.lb-nav[hidden] { display: none; }
.lb-nav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-nav:hover { background: var(--blue-pale); }
.lb-prev { left: max(14px, calc(50vw - 640px)); }
.lb-next { right: max(14px, calc(50vw - 640px)); }
@media (max-width: 600px) { .lb-nav { top: auto; bottom: 18px; transform: none; width: 48px; height: 48px; } .lb-cap { font-size: 1rem; padding: 0 64px; } }
.lb-close { position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--blue); background: var(--cream); color: var(--brown); font-size: 28px; line-height: 1; cursor: pointer; }

/* ---------- events ---------- */
.events { background: var(--sand); }
.events .eyebrow::before { background: var(--brown); }
.event-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.event { background: var(--tile); border: 1.5px solid var(--brown); border-radius: var(--radius); padding: 26px 26px 22px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.event:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--blue); }
.event h3 { font-size: 1.16rem; }
.event p { color: var(--muted); flex: 1; }
.ev-ic { width: 54px; height: 54px; border-radius: 50%; background: var(--blue-pale); color: var(--brown); display: grid; place-items: center; margin-bottom: 18px; border: 1.5px solid var(--brown); }
.ev-ic svg { width: 28px; height: 28px; }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--brown); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.more svg { width: 18px; height: 18px; transition: transform .2s; }
.more:hover { text-decoration-color: var(--brown); }
.more:hover svg { transform: translateX(3px); }
.event-cta { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.event-cta p { color: var(--on-dark); }
.event-cta .ev-ic { background: var(--cream); border-color: var(--blue); }
.event-cta .btn { align-self: flex-start; }

/* ---------- how it works (dark band) ---------- */
.how { background: var(--brown); color: var(--cream); position: relative; overflow: hidden; }
.how h2, .how .eyebrow { color: var(--cream); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps li { background: var(--brown-2); border: 1px solid var(--line-dark); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 24px; position: relative; }
.st-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.steps .n { font: 700 1.00rem/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--blue-pale); }
.st-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--blue-pale); color: var(--brown); display: grid; place-items: center; }
.st-ic svg { width: 24px; height: 24px; }
.steps h3 { color: var(--cream); font-size: 1.5rem; }
.steps p { color: var(--on-dark); margin: 0; }
.how-cta { margin-top: 40px; }

/* ---------- book ---------- */
.book-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.form { background: var(--paper); border: 1.5px solid var(--brown); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 40px); box-shadow: 12px 12px 0 var(--blue-pale), 12px 12px 0 1.5px var(--blue); }
.form fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.form legend { font: 700 .82rem/1.2 var(--caps); letter-spacing: .15em; text-transform: uppercase; color: var(--brown); padding: 0 0 14px; }
.form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 700; margin-bottom: 6px; }
.form .opt { font-weight: 500; color: var(--muted); }
.form .hint { font-size: .9rem; color: var(--muted); margin: -2px 0 8px; }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: 500 1rem/1.3 var(--body); color: var(--brown); background: #fff; border: 2px solid var(--field); border-radius: 12px; appearance: none; -webkit-appearance: none; }
.form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%233B2A20' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 42px; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 4px var(--blue); }
.form [aria-invalid="true"] { border-color: var(--error); background: #FDF3F1; }
.field-err { color: var(--error); font-size: .92rem; font-weight: 700; margin: 6px 0 0; }
.req { color: var(--error); }
/* Code Brew's own questions (from Hello to Paid): pick-any choices */
.q-checks { margin: 0; }
.form .q-legend { font: inherit; font-weight: 700; letter-spacing: 0; text-transform: none; color: inherit; padding: 0 0 6px; }
.q-check { display: flex; gap: 10px; align-items: center; font-weight: 400; margin: 4px 0; }
.req-note { font-size: .92rem; color: var(--muted); margin-bottom: 22px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form .actions { margin-top: 6px; gap: 12px 20px; }
.fine { font-size: .92rem; color: var(--muted); margin: 0; }
.form-error { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: #FDF3F1; color: var(--error); font-weight: 700; border: 1.5px solid #E2B5AC; }
.form-done { display: none; text-align: center; padding: 24px 8px; }
.form.sent > :not(.form-done) { display: none; }
.form.sent .form-done { display: block; }
.form-done h3 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); }
.form-done h3:focus { outline: none; box-shadow: none; }
.form-done p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.done-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok); color: var(--cream); box-shadow: 0 0 0 6px var(--blue-pale); }
.done-ic svg { width: 34px; height: 34px; stroke-width: 3; }
.book-aside { background: var(--brown); color: var(--cream); border-radius: var(--radius); padding: 30px; position: sticky; top: 100px; }
.book-aside h3 { color: var(--cream); }
.book-aside ol { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: s; }
.book-aside li { counter-increment: s; position: relative; padding: 0 0 18px 46px; color: var(--on-dark); }
.book-aside li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-pale); color: var(--brown); font: 700 .8rem/30px var(--caps); text-align: center; }
.book-aside li b { color: var(--cream); display: block; }
.aside-note { border-top: 1px solid var(--line-dark); padding-top: 20px; color: var(--on-dark); }
.aside-note b { color: var(--blue-pale); }

/* Which booking form shows (site.js sets data-mode): 'events' = date first (Hello to Paid booking),
   'message' = the lead form picked from there ("Drop us a line!"), 'lead' = the fallback lead form. */
.book[data-mode="events"] #book-form, .book:not([data-mode="events"]) #event-form { display: none; }
.book:not([data-mode="events"]) .only-events, .book[data-mode="events"] .only-lead, .book:not([data-mode="message"]) .only-message { display: none; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.linkish svg { width: 18px; height: 18px; }
.form-switch { margin: 18px 0 0; }
.form-switch svg { transform: rotate(180deg); }
.book-aside .linkish { color: var(--blue-pale); }

/* ---------- open-dates calendar ---------- */
.cal { max-width: 420px; }
.cal-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin-bottom: 8px; }
.cal-month { margin: 0; text-align: center; font-size: 1.25rem; }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--brown); background: var(--paper); color: var(--brown); font: 700 1.5rem/1 var(--body); cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.cal-nav:hover:not(:disabled) { background: var(--blue-pale); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-dow span { text-align: center; font: 700 .72rem/1.9 var(--caps); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cal-day { width: 100%; aspect-ratio: 1; max-height: 52px; min-height: 40px; border-radius: 12px; border: 2px solid transparent; font: 700 1rem/1 var(--body); cursor: pointer; display: grid; place-items: center; padding: 0; position: relative; }
.cal-day.is-open { background: var(--blue-pale); color: var(--brown); border-color: var(--blue); }
.cal-day.is-open:hover { border-color: var(--brown); }
.cal-day.is-off { background: transparent; color: #A99A8C; text-decoration: line-through; text-decoration-color: rgba(107, 90, 78, .45); cursor: default; }
.cal-day.is-on { background: var(--brown); color: var(--cream); border-color: var(--brown); box-shadow: 0 3px 0 var(--blue); }
.cal-day.is-today::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: currentColor; }
.cal-day:focus-visible { outline: 3px solid var(--brown); outline-offset: 2px; box-shadow: 0 0 0 6px var(--blue); }
.cal-status { min-height: 1.5em; margin: 6px 0 0; font-size: .95rem; color: var(--muted); }
.cal-status:empty { min-height: 0; margin: 0; }
.cal-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 0; font-size: .88rem; color: var(--muted); }
.cal-key span:not(.sr) { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.cal-key .k-open { background: var(--blue-pale); border: 2px solid var(--blue); }
.cal-key .k-off { border: 2px dashed #C9BCAE; margin-left: 10px; }
.cal-picked { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--cream); font-weight: 700; }
.cal-set .field-err { margin-top: 10px; }
.form-done .done-what { color: var(--brown); font-weight: 600; }

/* ---------- where's the truck (pale-blue band, the board on paper) ---------- */
.where { background: var(--blue-pale); }
.where .wrap { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-areas: "board side"; gap: 0 clamp(32px, 6vw, 80px); align-items: start; }
/* Computers: the intro and the email list start level with the top of the board and stay beside it while
   the board scrolls past (10-28, Don), on screens tall enough to show them whole. Phones: see max-width 860px. */
.where-side { grid-area: side; margin-top: 170px; }
@media (min-width: 861px) and (min-height: 760px) { .where-side { position: sticky; top: 108px; } }
.where-head { grid-area: head; }
.where .board { grid-area: board; }
.where-list { grid-area: list; }
.where-list .form-inline { margin-top: 4px; }
.where .lead { color: var(--brown-2); }
.where .lead a { font-weight: 700; }
.board { position: relative; background: var(--paper); border: 1.5px solid var(--brown); border-radius: var(--radius); padding: 8px 26px 10px; box-shadow: 10px 10px 0 var(--brown); }
/* Cody's truck is parked on top of the board: its wheels rest on the top edge. */
.board-cody { position: absolute; bottom: calc(100% - 3px); right: 32px; width: 168px; height: auto; pointer-events: none; }
.where .board { margin-top: 170px; }
.rounds-status { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 14px 0; border-bottom: 1.5px solid var(--blue-pale); font-weight: 700; color: var(--ok); }
.rounds-status[hidden] { display: none; }
.rounds-status .blip { background: var(--ok); margin-top: .45em; }
.rounds-status.off { color: var(--brown-2); }
.rounds-status.off .blip { background: var(--field); animation: none; }
.board-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1.5px solid var(--blue-pale); align-items: center; }
.board-row:last-child { border-bottom: 0; }
.board .k { font: 700 .74rem/1.4 var(--caps); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.board .v { font: 400 1.1rem/1.35 var(--serif); color: var(--brown); display: flex; align-items: center; gap: 10px; }
.board .v.ok { color: var(--ok); }
.board .v.ok .blip { background: var(--ok); }
.board-title { font: 700 .76rem/1.4 var(--caps); letter-spacing: .13em; text-transform: uppercase; color: var(--brown); margin: 0; padding: 18px 0 4px; border-bottom: 3px double var(--brown); }
/* 404: Cody (the bandage pose, once drawn) instead of the logo, without the big disc behind. */
.art-cody::before { display: none; }
.cody-404 { width: min(76%, 340px); height: auto; animation: idle 3.2s ease-in-out infinite; }
.stops { list-style: none; margin: 0; padding: 0; }
.stops .board-row { align-items: start; }
.stops .k { color: var(--brown); padding-top: 4px; }
.sv { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.s-name { font: 400 1.1rem/1.3 var(--serif); }
.s-meta { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.s-map { align-self: flex-start; font-weight: 700; font-size: .95rem; margin-top: 2px; text-underline-offset: 3px; }
.stop.is-private .s-name { color: var(--muted); font-style: italic; }
.stop-note .v { font-size: 1rem; grid-column: 1 / -1; }
.cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--brown); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.form-inline { background: transparent; border: 0; box-shadow: none; padding: 0; margin-top: 26px; }
.form-inline .grid { grid-template-columns: 1fr 1.3fr auto; align-items: end; gap: 14px; }
.form-inline label { white-space: nowrap; }
.form-inline .fine { color: var(--brown-2); margin-top: 14px; }
.form-inline .form-done { text-align: left; padding: 8px 0 0; }
.form-inline .done-ic { margin: 6px 0 16px 6px; }
.form-inline .form-done p { color: var(--brown-2); margin-inline: 0; }
.form-inline .go .btn { min-height: 50px; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-grid .section-head { position: sticky; top: 100px; margin: 0; }
.faq .lead a { color: var(--brown); font-weight: 700; }
.faqs { border-top: 2px solid var(--brown); }
.faqs details { border-bottom: 1.5px solid var(--blue); }
.faqs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 14px 0; font: 700 1.15rem/1.35 var(--serif); }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%233B2A20' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .2s; }
.faqs details[open] summary::after { transform: rotate(45deg); background-color: var(--blue); }
.faqs details p { color: var(--muted); max-width: 70ch; padding-bottom: 12px; }

/* ---------- final cta ---------- */
.final { background: var(--blue-pale); padding-block: clamp(56px, 7vw, 90px); border-top: 1px solid var(--blue); }
.final .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; }
.final h2 { margin: 0; max-width: 17ch; }
@media (min-width: 641px) { .final h2 em { white-space: nowrap; } }
.final h2 em { display: block; line-height: 1.05; margin-top: .06em; }
.final .actions { margin: 0; }
.final .btn-primary { box-shadow: 0 4px 0 var(--cream); }

/* ---------- footer (dark band) ---------- */
.site-footer { background: var(--brown-3); color: #fff; padding: 64px 0 28px; } /* white text, blue-pale headings (10-28) */
.site-footer .top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot-badge { width: 130px; height: auto; flex: none; }
.site-footer .wm-name { font-size: 2.6rem; }
.site-footer .wm-sub { font-size: .7rem; }
.site-footer h2 { font: 700 .82rem/1.2 var(--caps); letter-spacing: .15em; text-transform: uppercase; color: var(--blue-pale); margin: 8px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer li a:hover { color: var(--blue-pale); text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 4px; }
.site-footer .tag { margin-top: 18px; max-width: 38ch; }
.site-footer .foot-reach { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-footer .foot-reach a { color: #fff; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer .foot-reach a:hover { color: var(--blue-pale); }
.site-footer .foot-hours { margin: 6px 0 0; color: #fff; }
.site-footer .social { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer .social a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; text-decoration: none; font-weight: 600; }
.site-footer .social a:hover { color: var(--blue-pale); }
.site-footer .social svg { width: 22px; height: 22px; padding: 7px; box-sizing: content-box; border-radius: 50%; background: rgba(215, 231, 239, .14); }
.site-footer .bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(169, 203, 221, .35); font-size: .9rem; color: #fff; }
.site-footer .bottom a:hover { color: var(--blue-pale); }

.action-bar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .event-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery li { grid-column: span 1; }
  .gallery li.wide, .gallery li.last-odd { grid-column: span 2; }
  .gallery li.last-odd .g-item img { aspect-ratio: auto; }
  .g-cap { font-size: .9rem; padding: 30px 10px 8px; }
}
@media (max-width: 860px) {
  .hero .wrap, .what .wrap, .where .wrap, .book-grid, .meet .wrap { grid-template-columns: 1fr; }
  .hero .art { max-width: 560px; margin: 8px auto 0; width: 100%; }
  .hero-badge { width: min(78vw, 380px); }
  .meet-photo { max-width: 460px; }
  .book-aside { position: static; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .site-footer .about { grid-column: 1 / -1; }
  .chart { transform: none; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .where .wrap { grid-template-areas: "head" "board" "list"; grid-template-rows: auto; gap: 0; }
  .where-side { display: contents; } /* its intro and email list take their own places around the board */
  .where-list { margin-top: 30px; }
  .where .board { margin-top: 160px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  html { scroll-padding-top: 72px; }
  .site-header .wrap { min-height: 64px; gap: 12px; }
  .wm-badge { width: 40px; height: 40px; }
  .wm-name { font-size: 1.95rem; }
  h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  h2 { font-size: clamp(1.75rem, 7.6vw, 2.15rem); }
  .hero .actions .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .event-grid { grid-template-columns: 1fr; gap: 12px; }
  .event { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 18px; }
  .event > :not(.ev-ic) { grid-column: 2; }
  .ev-ic { width: 48px; height: 48px; margin: 0; grid-row: 1 / span 3; }
  .ev-ic svg { width: 24px; height: 24px; }
  .event h3 { font-size: 1.12rem; margin-top: 6px; }
  .event p { margin-bottom: 0; }
  .form .grid, .form-inline .grid { grid-template-columns: 1fr; }
  .form .actions .btn { width: 100%; }
  .form-inline .go .btn { width: 100%; }
  .form:not(.form-inline) { box-shadow: 6px 6px 0 var(--blue-pale), 6px 6px 0 1.5px var(--blue); }
  .hero-note { display: none; }
  .chart { box-shadow: 6px 6px 0 var(--blue-pale), 6px 6px 0 1.5px var(--blue); }
  .chart dl div { grid-template-columns: 1fr; gap: 2px; }
  .board { padding: 6px 18px; box-shadow: 6px 6px 0 var(--brown); }
  .board-cody { width: 120px; right: 18px; }
  .where .board { margin-top: 124px; }
  .cody-badge { max-width: none; margin-top: 22px; box-shadow: 4px 4px 0 var(--blue-pale), 4px 4px 0 1.5px var(--blue); }
  .cb-pic { width: 48px; height: 48px; }
  .cody-badge { min-height: 88px; } /* room for a two-line stop on phones */
  .cb-detail { font-size: .97rem; }
  .board-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .stops .k { padding-top: 0; }
  .meet-photo { box-shadow: 6px 6px 0 var(--brown); }
  .final .actions, .final .btn { width: 100%; }
  .ticker li { font-size: 1.8rem; padding-block: 8px 10px; }
  .foot-badge { width: 110px; }
  .lb-cap { font-size: 1.9rem; }
  .action-bar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(59, 42, 32, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 2px solid var(--blue); transition: transform .2s; }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 14px; background: rgba(244, 238, 227, .12); color: var(--cream); text-decoration: none; font-weight: 700; font-size: .98rem; }
  .action-bar a svg { width: 22px; height: 22px; flex: none; }
  .action-bar .ab-book { background: var(--cream); color: var(--brown); }
  .typing .action-bar { transform: translateY(110%); }
  .site-header .btn-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tk-track { width: auto; }
  .ticker ul[aria-hidden] { display: none; }
  .ticker ul { flex-wrap: wrap; }
}

/* ---------- share image (node build.mjs --cards; see scripts/make-images.sh) ---------- */
.card-og { width: 1200px; height: 630px; margin: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; padding: 0 56px 0 80px; background: var(--cream); border: 0; box-shadow: inset 0 0 0 14px var(--cream), inset 0 0 0 16px var(--blue); }
.card-og .wordmark { margin-bottom: 26px; }
.card-og .wm-badge { width: 72px; height: 72px; }
.card-og .wm-art { height: 96px; }
.card-og .wm-name { font-size: 4rem; }
.card-og .wm-sub { font-size: 1rem; gap: 14px; }
.card-og .wm-sub::before, .card-og .wm-sub::after { width: 40px; height: 2px; }
.card-og h1 { font-size: 4.3rem; margin: 0 0 14px; }
.card-og .og-line { font: 700 1.02rem/1 var(--caps); letter-spacing: .15em; text-transform: uppercase; margin: 0 0 28px; color: var(--muted); }
.card-og .og-cta { display: inline-block; background: var(--brown); color: var(--cream); font-weight: 700; font-size: 1.4rem; padding: 14px 28px; border-radius: 999px; margin: 0; box-shadow: 0 5px 0 var(--blue); }
.og-art { position: relative; display: grid; justify-items: center; isolation: isolate; }
.og-art::before { content: ''; position: absolute; z-index: -1; top: 50%; left: 50%; width: 470px; height: 470px; border-radius: 50%; transform: translate(-50%, -54%); background: var(--blue-pale); box-shadow: 0 0 0 10px var(--cream), 0 0 0 12px var(--blue); }
.og-badge { width: 400px; height: auto; }

/* Our menu (src/menu.js): from Hello to Paid. Two columns of sections on wide screens, one on phones;
   prices line up under their sizes. Specialty drinks are cards across the full width. */
.menu { background: var(--paper); }
.mn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 72px); align-items: start; }
.mn-sec h3 { font: 700 .95rem/1.2 var(--caps); letter-spacing: .15em; text-transform: uppercase; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1.5px solid var(--blue); }
.mn-featured { grid-column: 1 / -1; }
.mn-note { color: var(--muted); font-size: .95rem; margin: -2px 0 10px; }
.mn-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.mn-row:last-child { border-bottom: 0; }
.mn-prices { display: grid; grid-template-columns: repeat(var(--cols, 1), 4.2em); text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.mn-sizes { grid-template-columns: minmax(0, 1fr) repeat(var(--cols, 1), 4.2em); border-bottom: 0; padding: 0 0 2px; font: 700 .7rem/1.2 var(--caps); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mn-sizes .mn-price { text-align: right; }
.mn-name { font-weight: 600; }
.mn-desc { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }
.mn-tags { font: 700 .7rem/1.2 var(--caps); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mn-out { display: inline-block; font: 700 .72rem/1 var(--body); letter-spacing: .04em; text-transform: uppercase; background: var(--cream-2); color: var(--error); border-radius: 999px; padding: 4px 8px; margin-left: 4px; vertical-align: 2px; }
.is-out .mn-name, .is-out .mn-prices, .mn-card.is-out h4 { opacity: .55; text-decoration: line-through; text-decoration-thickness: 1px; }
.is-out .mn-out { opacity: 1; text-decoration: none; }
.mn-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.mn-card { background: var(--cream); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.mn-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mn-card-body { padding: 16px 18px 18px; }
.mn-card h4 { font: 700 1.12rem/1.25 var(--serif); margin: 0 0 6px; }
.mn-card p { margin: 0 0 6px; font-size: .97rem; }
.mn-card .mn-tags { margin-bottom: 8px; }
.mn-card-price { font-weight: 700; }
@media (max-width: 760px) { .mn-grid { grid-template-columns: 1fr; } }

/* ---------- 10-23: their feedback ---------- */
/* Header: their wordmark artwork and the social icons */
.wm-art { height: 46px; width: auto; }
.site-footer .wm-art { height: 64px; }
.site-header .wm-art { height: 56px; } /* 10-28: bigger once the small Cody left the header (header is 72px) */
@media (max-width: 640px) { .site-header .wm-art { height: 52px; } } /* phone header is 64px */
.head-social { display: flex; gap: 4px; margin: 0 0 0 auto; }
.head-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--brown); }
.head-social a:hover { background: var(--paper); }
.head-social svg { width: 20px; height: 20px; }
.site-header .nav + .head-social { margin-left: 8px; }
/* Hero: just the brown Cody, no circle */
.art-cody-hero { display: grid; justify-items: center; }
.hero-cody { width: min(100%, 460px); height: auto; animation: idle 3.2s ease-in-out infinite; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.7rem); } /* the 404 page's headline */
.hero h1 em { display: block; font-size: 1.2em; margin-top: .06em; }
/* Home: Abbie's lettering is the headline (an <img> inside the h1, its alt is the heading text) */
.hero h1.hero-title { margin: 0 0 clamp(16px, 2.2vw, 26px); font-size: 1rem; line-height: 1; }
.hero-title img { width: min(100%, 560px); height: auto; }
.cb-pic { object-fit: contain; }
/* Our menu: their bean drawings in the corners */
.menu { position: relative; overflow: hidden; }
.menu .wrap { position: relative; }
.beans { position: absolute; pointer-events: none; opacity: .5; height: auto; }
.beans-l { width: clamp(150px, 18vw, 260px); left: -40px; top: -30px; }
.beans-r { width: clamp(170px, 22vw, 320px); right: -50px; top: -40px; }
/* Bring us to…: tiles only, one button below */
.event-grid { grid-template-columns: repeat(4, 1fr); }
.event p { flex: none; }
.event:hover { transform: none; box-shadow: none; } /* tiles, not links (their layout doc) */
.mn-none { color: var(--field); }
/* Phones: the site menu button opens a centred pop-up */
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; margin-left: auto; border: 1.5px solid var(--brown); border-radius: 999px; background: var(--paper); color: var(--brown); font: 700 .95rem var(--body); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.site-menu { border: 1.5px solid var(--brown); border-radius: var(--radius); padding: 22px 20px 20px; width: min(88vw, 360px); background: var(--paper); color: var(--brown); box-shadow: 8px 8px 0 var(--blue); }
.site-menu::backdrop { background: rgba(44, 31, 23, .55); }
.site-menu nav { display: flex; flex-direction: column; margin: 8px 0 18px; }
.site-menu nav a { display: flex; align-items: center; min-height: 52px; padding: 0 6px; border-bottom: 1px solid var(--line); color: var(--brown); text-decoration: none; font: 400 1.3rem/1.25 var(--serif); }
.site-menu .btn { width: 100%; justify-content: center; }
.sm-close { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; border: 0; background: none; color: var(--brown); font-size: 2rem; line-height: 1; cursor: pointer; }
.sm-social { display: flex; justify-content: center; gap: 10px; margin: 16px 0 0; }
.sm-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-pale); color: var(--brown); }
.sm-social svg { width: 20px; height: 20px; }
/* The small Cody and short intro are for phones */
.hero-cody-sm, .lead-short { display: none; }
.events-cta { margin: 32px 0 0; text-align: center; }
/* Our story */
.story { background: var(--cream); }
.story .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.story-copy p { max-width: 62ch; }
.story-photo { margin: 0; position: sticky; top: 100px; }
.story-photo img { width: 100%; height: auto; border-radius: var(--radius); border: 8px solid var(--paper); box-shadow: 10px 10px 0 var(--blue); }
.form-done .done-email-line { color: var(--muted); }
@media (max-width: 1100px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .story .wrap { grid-template-columns: 1fr; }
  .story-photo { position: static; max-width: 420px; }
  .head-social { display: none; }
}
@media (max-width: 600px) { .event-grid { grid-template-columns: 1fr; } .beans { opacity: .3; } }

/* Phones and tablets: the site menu button (after the base rules above, so these win) */
@media (max-width: 1020px) { .menu-btn { display: inline-flex; } }
@media (max-width: 640px) {
  /* First screen: small Cody, the headline, one line of intro, Where's Cody today (the bar at the bottom books) */
  .hero { padding-block: 18px 40px; }
  .hero-cody-sm { display: block; width: 128px; height: auto; margin: 0 auto 4px; }
  .hero .art, .hero .eyebrow, .lead-long, .hero .actions { display: none; }
  .lead-short { display: block; }
  .hero h1 { text-align: center; }
  .hero-title img { width: min(100%, 360px); margin-inline: auto; }
  .hero .lead-short { text-align: center; }
  .final .actions { display: none; }
}
.story-page h1.h2 { font-size: clamp(2rem, 4vw, 3.1rem); } /* the page's heading, sized like the other sections */
/* Recent stops on the Where's Cody board: quieter than his upcoming rounds */
.recent .board-title { margin-top: 18px; }
.recent-stops .stop.is-past .s-name { font-weight: 400; }
.recent-stops .stop.is-past .k, .recent-stops .stop.is-past .s-meta { color: var(--muted); }
.recent-stops .k { white-space: nowrap; }
/* Only the latest two recent stops show; the rest open with "See N more" (site.js) */
.recent-stops.is-collapsed .is-extra { display: none; }
.recent-more { display: inline-flex; align-items: center; min-height: 44px; margin: 2px 0 4px; padding: 0; border: 0; background: none; color: var(--brown); font: 700 .95rem/1.3 var(--body); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }
.recent-more:hover { text-decoration-color: var(--brown); }
/* Computers: the first screen is the hero, and the ticker sits whole along its bottom edge (a cue that
   there's more below). Header 74px + ticker 61px. Shorter screens tighten the hero so it still fits. */
@media (min-width: 861px) {
  .hero { min-height: calc(100svh - 135px); display: grid; align-content: center; padding-block: clamp(20px, 4vh, 64px); }
}
@media (min-width: 861px) and (max-height: 860px) {
  .hero h1 { font-size: clamp(2.1rem, 6vh, 3.7rem); }
  .hero-title img { width: min(100%, 560px, 64vh); }
  .hero .lead { font-size: 1rem; line-height: 1.55; margin-bottom: 18px; }
  .hero .cody-badge { margin-top: 16px; }
  .hero-note { display: none; }
  .hero-cody { width: min(100%, 58vh); }
}
@media (min-width: 861px) and (max-height: 700px) {
  .hero .eyebrow { display: none; }
  .hero .lead { font-size: .95rem; }
}
/* Address suggestions under a field (site.js: data-lookup) */
.has-lookup { position: relative; }
.lookup { position: absolute; z-index: 30; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 2px solid var(--brown); border-radius: 12px; box-shadow: 6px 6px 0 var(--blue-pale); max-height: 300px; overflow-y: auto; }
.lookup li { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; min-height: 44px; border-radius: 8px; cursor: pointer; }
.lookup li b { font-weight: 700; }
.lookup li span { color: var(--muted); font-size: .9rem; }
.lookup li[aria-selected="true"], .lookup li:hover { background: var(--blue-pale); }
/* Our story: the owners' own photos (10-28). "The Code Brew family" is five portraits: one row in the
   build gallery's grid (two across on phones, the fifth full width). */
.family { background: var(--paper); }
@media (max-width: 900px) { .gallery-family li.last-odd .g-item img { aspect-ratio: 4 / 5; object-position: center 40%; } }
/* Six family photos: two rows of three on computers (phones keep two across). */
@media (min-width: 901px) { .gallery-family { grid-template-columns: repeat(3, 1fr); } .gallery-family li, .gallery-family li.wide { grid-column: span 1; } }
