/* The design system: one site, one shop, in the brewery's own colours:
   black, then white (Caspar's brief, 27 Oct 2026). Loads after base.css. The
   ground is true black, text is white, the raised surfaces are a visible
   grey step up, and the brand yellow is kept for primary actions only. The
   beer colours live in the labels, the beer pages and the shop's product
   pages. Tokens, classes and the rules for page CSS: DARK.md. */

:root {
  color-scheme: dark;
  /* Surfaces, darkest to lightest: true black, then neutral grey steps */
  --surface-0: #000000;   /* footer (the hairline above it separates it) */
  --ground: #000000;      /* the page */
  --surface: #141414;     /* raised: tiles, panels, fields, drawer, menu */
  --surface-2: #1E1E1E;   /* raised twice: faces without art, notices, demo line */
  --cream: #FFFFFF;       /* text (the old name kept): 21:1 on --ground, 16.6:1 on --surface-2 */
  --bg: var(--ground);
  --fg: var(--cream);
  --brand: #E2EAEA;       /* the brewery's own colour (onboarding brief); 17.2:1 on --ground */
  --muted: #C2C2C2;       /* secondary sentences only, never labels: 9.4:1 on --surface-2 */
  --line: rgba(255, 255, 255, .16);
  --line-strong: rgba(255, 255, 255, .42);
  --panel: var(--surface);

  /* Beer colours (shared/untappd.js) used as the accents */
  --parish: #F7CF0B;      /* German pilsner, the sunny yellow */
  --citra: #275F25;       /* Island pale ale, green */
  --west: #B2255F;        /* 64 West, magenta */
  --north: #472A5E;       /* 32 North, purple */
  --longtail: #D49A3A;    /* Maibock, amber */
  --haze: #EDB84A;        /* Naked Haze, warm gold */

  --sun: var(--parish);   /* the brand yellow: primary buttons, the cart count, focus. Nothing else. */
  --sun-ink: #000000;     /* 13.9:1 on --sun */
  --accent: var(--brand); /* text accent (kickers, warm lines): the brewery's own near-white */
  --accent-ink: #000000;
  --warm: var(--brand);   /* second accent: the same near-white (the beer pages re-point both) */
  --focus: var(--sun);    /* 11.0:1 or better on every black and grey surface */
  --ok: #6FCF8E;
  --warn: #F0A848;
  --error: #FF8F85;

  /* Buttons read these, so a band or section can re-point them */
  --btn-bg: var(--sun);
  --btn-ink: var(--sun-ink);

  /* Shape */
  --radius: 12px;         /* buttons' neighbours: cards, tiles, fields, images */
  --radius-sm: 8px;       /* small swatches, chips, quantity steppers */
  --radius-lg: 20px;      /* big media, panels, the age gate */
  --radius-pill: 999px;   /* buttons */

  --wrap: 1240px;
  --header-h: 72px;
}

body { background: var(--bg); color: var(--fg); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
main:focus { outline: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
::selection { background: var(--sun); color: var(--sun-ink); }
:focus-visible { outline-color: var(--focus); }

/* ---- Type ----
   .display  Rajdhani in capitals: h1s, big section titles, can names
   .kicker   the small line above a title: Rajdhani semi-bold, sentence
             case, in the accent colour
   .warm     Rajdhani: a short warm aside ("Bring the dog."), never a paragraph
   Everything else is Rajdhani: h3s, nav, buttons, prices, labels. */
.display { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; line-height: .9; }
.h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); }
.h2 { font-size: clamp(2.1rem, 5vw, 3.8rem); }
.h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.warm { font-family: var(--font-warm); font-weight: 400; font-style: normal; text-transform: none; letter-spacing: 0; line-height: 1.15; }
.warm-line { display: block; font-family: var(--font-warm); font-weight: 400; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.15; color: var(--accent); text-transform: none; letter-spacing: 0; }
.kicker { font-family: var(--font-body); font-weight: 600; font-size: .9375rem; letter-spacing: 0; text-transform: none; color: var(--accent); margin: 0 0 10px; }
.label-text { font-family: var(--font-body); font-weight: 600; font-size: .875rem; letter-spacing: 0; text-transform: none; color: var(--fg); }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.muted { color: var(--muted); }
h3 { font-family: var(--font-body); font-weight: 700; }

/* ---- Buttons ----
   .btn primary: sunny pill with dark ink (--btn-bg / --btn-ink, which bands
   and themed sections re-point). .btn--ghost: cream outline. 44px minimum. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; border: 2px solid var(--btn-bg); border-radius: var(--radius-pill); background: var(--btn-bg); color: var(--btn-ink); font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; letter-spacing: 0; text-transform: none; text-decoration: none; text-align: center; cursor: pointer; transition: transform .2s var(--ease-out), background-color .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.btn--block { width: 100%; }
.nf-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; }
.link { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Prices, stock and the sample marker (plain text, never a pill) */
.price { font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.price small { font-weight: 600; font-size: .8em; }
.sample, .at-launch { font-family: var(--font-body); font-weight: 600; font-size: .875rem; letter-spacing: 0; color: var(--accent); }
.stock { font-family: var(--font-body); font-weight: 600; font-size: .875rem; }
.stock--low { color: var(--warn); }
.stock--out { color: var(--error); }

/* Notices: a raised, rounded panel (no side stripe) */
.notice { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2); padding: 14px 18px; }
.notice--warm { border-color: var(--warm); }
.notice p:last-child { margin-bottom: 0; }

/* ---- Forms ---- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; }
.field .hint { font-size: .9375rem; color: var(--muted); }
.field .err { font-size: .9375rem; font-weight: 600; color: var(--error); min-height: 1.2em; }
.input, select.input, textarea.input { width: 100%; font-family: var(--font-body); line-height: 1.4; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); color: var(--fg); font-size: 1rem; }
.input::placeholder { color: var(--muted); opacity: 1; }
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--error); }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--fg); }
.choice input { flex: none; margin-top: 4px; accent-color: var(--sun); width: 20px; height: 20px; }
/* A tick-box label is the hit area: never under 44px */
.choice { min-height: 48px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line-strong); border-radius: var(--radius-pill); }
.qty button { width: 44px; height: 44px; border: 0; border-radius: var(--radius-pill); background: transparent; cursor: pointer; font-size: 1.2rem; }
.qty button:hover { background: var(--surface-2); }
.qty output { min-width: 2ch; text-align: center; font-weight: 700; }

/* ---- Product tiles: beer colour blocks or photos ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
/* minmax(0, 1fr) and min-height: 0 keep a photo to the tile's 4:3 face: left to its own size, a large photo
   (the Mug Club and kegerator tiles) widened and lengthened the face and pushed the name and price out of the tile. */
.tile { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; color: inherit; text-decoration: none; }
.tile__face { aspect-ratio: 4 / 3; min-height: 0; display: grid; place-items: center; background: var(--c, var(--surface-2)); color: var(--k, var(--cream)); position: relative; overflow: clip; }
.tile__face img { width: 100%; height: 100%; object-fit: cover; }
.tile__face .label-art { width: 96px; height: 96px; object-fit: cover; border-radius: 2px; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.tile__face .wordmark { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: .9; text-align: center; padding: 16px; }
.tile__body { padding: 14px 18px 18px; display: grid; gap: 6px; align-content: start; }
.tile__name { font-family: var(--font-body); font-weight: 700; font-size: 1.1875rem; line-height: 1.2; letter-spacing: 0; text-transform: none; margin: 0; }
.tile__meta { font-size: .9375rem; color: var(--muted); margin: 0; }
.tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
a.tile:hover .tile__name, a.tile:focus-visible .tile__name { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Beer-colour bands ----
   Full-bleed sections in a beer's own colour, to break up the dark:
     <section class="band band--parish section">...</section>
   Each band re-points the tokens (--fg, --bg, --accent, --focus, --line,
   --panel, --btn-bg, --btn-ink), so kit components inside follow it: links
   and kickers in the band's ink, the primary button inverted (ink fill, band
   text), the ghost button in an ink outline. Add .band--wave for a soft wavy
   top edge. Ink pairs (WCAG): parish 12.3:1, citra 7.1:1, west 5.9:1,
   north 11.1:1, longtail 7.5:1; the same pairs on --panel are higher. */
.band { background: var(--band); color: var(--band-ink); --fg: var(--band-ink); --bg: var(--band); --muted: var(--band-ink); --accent: var(--band-ink); --focus: var(--band-ink); --line: color-mix(in oklab, var(--band-ink) 28%, transparent); --line-strong: var(--band-ink); --panel: color-mix(in oklab, var(--band) 86%, #000); --btn-bg: var(--band-ink); --btn-ink: var(--band); }
.band a:not(.btn) { color: inherit; text-decoration-color: currentColor; text-underline-offset: 3px; }
.band ::selection { background: var(--band-ink); color: var(--band); }
.band--parish { --band: #F7CF0B; --band-ink: #000000; }
.band--citra { --band: #275F25; --band-ink: #FFFFFF; }
.band--west { --band: #B2255F; --band-ink: #FFFFFF; }
.band--north { --band: #472A5E; --band-ink: #FFFFFF; }
.band--longtail { --band: #D49A3A; --band-ink: #000000; }
.band--wave { position: relative; }
.band--wave::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: clamp(14px, 2.6vw, 34px); background: var(--band); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V24C180 6 360 0 540 10s360 28 540 22 270-20 360-24V40Z'/%3E%3C/svg%3E") 0 100% / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V24C180 6 360 0 540 10s360 28 540 22 270-20 360-24V40Z'/%3E%3C/svg%3E") 0 100% / 100% 100% no-repeat; pointer-events: none; }

/* ---- Header ----
   Wide screens (1200px and up): the logo (Home), the brewery's nine tabs in
   their order, search and the cart. Under 1200px: the logo, Find us (the
   yellow pin), the menu button (an icon; its name is "Site menu") and the
   cart; the menu panel holds Home, the nine tabs, Hire us, Photos, Search,
   the week's hours and directions (SHELL.md). */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.site-header .brand { display: block; width: clamp(140px, 12vw, 168px); color: var(--fg); flex: none; border-radius: var(--radius-sm); }
.site-header .brand svg { width: 100%; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav__main { display: flex; gap: 0; }
.site-nav__main a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 9px; border-radius: var(--radius-pill); font-weight: 600; font-size: .9375rem; white-space: nowrap; text-decoration: none; transition: background-color .2s, color .2s; }
.site-nav__main a:hover { background: var(--surface); }
.site-nav__main a[aria-current="page"] { color: var(--fg); background: var(--surface); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav__home { display: none; }
.site-nav__more { display: none; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.search-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid var(--line-strong); border-radius: var(--radius-pill); color: var(--fg); }
.search-btn:hover { border-color: var(--fg); }
.search-btn svg { width: 18px; height: 18px; }
/* Find us: the yellow pin, on phones and tablets only (the bar carries the
   Find us tab on wide screens). The order button: a cart icon with a count
   badge that only shows when the order has something in it. */
.find-btn { gap: 8px; white-space: nowrap; display: none; }
.find-btn svg { width: 18px; height: 18px; flex: none; }
.cart-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border: 2px solid var(--line-strong); border-radius: var(--radius-pill); color: var(--fg); text-decoration: none; }
.cart-btn:hover { border-color: var(--fg); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn__n { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--sun); color: var(--sun-ink); font-family: var(--font-body); font-weight: 700; font-size: .8125rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cart-btn__n[hidden] { display: none; }
/* The menu button is an icon: "Menu" is one of the brewery's tabs (the tap
   list), so the button's name is "Site menu", read by screen readers only. */
.menu-toggle { display: none; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 2px solid var(--fg); border-radius: var(--radius-pill); background: transparent; color: var(--fg); cursor: pointer; }
.menu-toggle:hover { background: var(--fg); color: var(--bg); }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle__x { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__x { display: inline; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { display: none; }
.site-nav__top { display: none; }
/* Open or closed, with a small coloured dot (shell.js fills it, Bermuda time) */
.status-dot { width: 10px; height: 10px; flex: none; fill: var(--muted); }
[data-open="true"] > .status-dot { fill: var(--ok); }

@media (min-width: 1200px) and (max-width: 1339px) {
  .site-header__in { gap: 10px; }
  .site-nav__main a { padding-inline: 7px; }
}
@media (max-width: 1199px) {
  .site-header__in { gap: 10px; }
  .site-nav { display: none; }
  .header-tools { margin-left: auto; }
  .header-tools .search-btn { display: none; }
  .find-btn { display: inline-flex; }
  .js .menu-toggle { display: inline-grid; }
  /* The panel: under the header, full width, scrolls on its own. --nav-top is
     where the header ends on screen (shell.js), so the demo line above a
     sticky header cannot push the panel off the bottom. */
  .site-nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - var(--nav-top, var(--header-h))); overflow: auto; overscroll-behavior: none; background: var(--surface); color: var(--cream); border-bottom: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: 0 24px 40px rgba(0, 0, 0, .5); padding: 8px var(--gutter) 24px; }
  .site-nav.is-open .site-nav__top { display: grid; gap: 12px; padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
  .site-nav__status { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; }
  .site-nav.is-open .site-nav__main { display: grid; gap: 0; }
  .site-nav.is-open .site-nav__home { display: block; }
  .site-nav.is-open .site-nav__main a { display: flex; min-height: 48px; padding: 8px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.375rem; font-weight: 700; background: none; }
  .site-nav.is-open .site-nav__main a[aria-current="page"] { color: var(--fg); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
  .site-nav.is-open .site-nav__more { display: grid; gap: 22px; padding-top: 18px; }
  /* Without JavaScript the tabs show as a row under the logo */
  html:not(.js) .site-header__in { flex-wrap: wrap; padding-bottom: 8px; }
  html:not(.js) .site-nav { display: block; order: 3; width: 100%; margin: 0; }
  html:not(.js) .site-nav__main { flex-wrap: wrap; }
  html:not(.js) .site-nav__home { display: block; }
}
@media (min-width: 640px) and (max-width: 1199px) {
  .site-nav.is-open .site-nav__main { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
.site-nav__links { display: flex; flex-wrap: wrap; gap: 8px; }
.site-nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 2px solid var(--line-strong); border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; }
.site-nav__links a[aria-current="page"] { border-color: var(--fg); color: var(--fg); }
.site-nav__h { font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--fg); margin: 0 0 8px; }

/* The week's hours (footer and menu); shell.js marks today */
.site-hours { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.site-hours td { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: left; }
.site-hours td + td { text-align: right; }
.site-hours tr.is-today td { color: var(--fg); font-weight: 700; }
.site-hours tr.is-today td:first-child::after { content: " (today)"; font-weight: 600; }

/* Announcement bar (from Untappd) */
.announce { background: var(--sun); color: var(--sun-ink); font-size: .9375rem; }
.announce .wrap { display: flex; gap: 12px; align-items: center; padding: 8px 0; flex-wrap: wrap; }
.announce strong { font-weight: 700; }

/* ---- Cart drawer (shell.js) ---- */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(100%, 440px); height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line); border-radius: var(--radius-lg) 0 0 var(--radius-lg); background: var(--surface); color: var(--fg); box-shadow: -20px 0 50px rgba(0, 0, 0, .6); }
.drawer::backdrop { background: rgba(10, 7, 4, .72); }
.drawer[open] { display: grid; grid-template-rows: auto 1fr auto; animation: drawer-in .28s var(--ease-out); }
@keyframes drawer-in { from { transform: translateX(100%); } }
.drawer__head, .drawer__foot { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__foot { border-top: 1px solid var(--line); border-bottom: 0; display: grid; gap: 10px; }
.drawer__body { overflow: auto; padding: 8px 20px; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-radius: var(--radius-lg) 0 0 0; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line__swatch { width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--c, var(--surface-2)); display: grid; place-items: center; overflow: clip; color: var(--k, var(--cream)); }
.line__swatch img { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-weight: 700; margin: 0; }
.line__meta { font-size: .875rem; color: var(--muted); margin: 0; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius-pill); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---- Footer ----
   The can's diamonds along the top edge, the hop and the tagline, then the
   taproom (open now, where, hours), the Mug Club, and three short link columns. */
.site-footer { --ft-accent: var(--fg); position: relative; background: var(--surface-0); color: var(--cream); padding: 0 0 28px; margin-top: 80px; }
.site-footer a { color: inherit; text-underline-offset: 3px; }
.site-footer__edge { height: 30px; background: var(--ft-accent); opacity: .9; -webkit-mask: url("/shared/brand/bcb-diamond-row.svg") 0 0 / auto 30px repeat-x; mask: url("/shared/brand/bcb-diamond-row.svg") 0 0 / auto 30px repeat-x; }
.site-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 44px 0 36px; border-bottom: 1px solid var(--line); }
.site-footer__hop { width: 58px; height: 75px; flex: none; background: var(--ft-accent); -webkit-mask: url("/shared/brand/bcb-hop.svg") center / contain no-repeat; mask: url("/shared/brand/bcb-hop.svg") center / contain no-repeat; }
.site-footer__tag { font-family: var(--font-warm); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.05; color: var(--cream); margin: 0; flex: 1 1 280px; }
.site-footer__brand .socials { margin: 0; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.7fr); gap: 40px; padding-top: 40px; }
.site-footer h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: 0; text-transform: none; margin: 0 0 12px; color: var(--ft-accent); }
.site-footer p { margin: 0 0 12px; }
.site-footer__note { color: var(--muted); font-size: .9375rem; margin-top: 10px; }
.site-footer__go .btn { --btn-bg: var(--ft-accent); --btn-ink: var(--surface-0); color: var(--btn-ink); }
body.themed .site-footer__go .btn { --btn-ink: var(--beer-deeper); }

/* The taproom: open now, where, and the week */
.site-footer__taproom { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 28px; align-content: start; }
.site-footer__taproom h2, .site-footer__status { grid-column: 1 / -1; }
.site-footer__status { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; margin-bottom: 16px; }
.site-footer__today { margin: 0 0 4px; font-weight: 600; }
.site-footer__week summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.site-footer__week summary::-webkit-details-marker { display: none; }
.site-footer__week summary::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.site-footer__week[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.site-footer .site-hours { width: 100%; }
.site-footer .site-hours td:last-child { white-space: nowrap; text-align: right; }

/* The Mug Club: a panel of its own */
.site-footer__club { align-self: start; padding: 24px; border: 2px solid var(--ft-accent); border-radius: 18px; }
.site-footer__club p:not(.site-footer__note) { font-size: 1.0625rem; }
.site-footer__club .site-footer__note a { display: inline; min-height: 0; min-width: 0; } /* a link in a sentence */

/* Three short link columns */
.site-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.site-footer__links { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 0; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 40px; min-width: 44px; text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-footer__legal { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: .9375rem; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.site-footer__end { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--line-strong); border-radius: var(--radius-pill); }
.socials a:hover { border-color: var(--cream); }
.socials svg { width: 18px; height: 18px; }

@media (max-width: 1180px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .site-footer__nav { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .site-footer { margin-top: 56px; }
  .site-footer__edge { height: 22px; -webkit-mask-size: auto 22px; mask-size: auto 22px; }
  .site-footer__brand { padding: 32px 0 28px; }
  .site-footer__hop { width: 44px; height: 57px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .site-footer__taproom { grid-template-columns: 1fr; }
  .site-footer__club { padding: 20px; }
  .site-footer__nav { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .site-footer__nav .site-footer__col:last-child { grid-column: 1 / -1; }
  .site-footer__nav .site-footer__col:last-child .site-footer__links { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .site-footer__links { margin-bottom: 0; }
  .site-footer__col .site-footer__note { display: none; }
  .site-footer__legal { margin-top: 28px; }
}
/* The minimal footer on the cart and checkout pages */
.site-footer--min { padding-top: 28px; }
.site-footer__min { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; }
.site-footer__min p { margin: 0; }
.site-footer--min .site-footer__legal { margin-top: 16px; }

/* The visitor's own animation switch (site.js). prefers-reduced-motion still
   applies without it; it needs JavaScript, so it hides without. */
.motion-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px 6px 6px; border: 2px solid var(--line-strong); border-radius: var(--radius-pill); background: transparent; color: var(--cream); font-family: var(--font-body); font-weight: 600; font-size: .9375rem; cursor: pointer; }
.motion-toggle:hover { border-color: var(--cream); }
.motion-toggle__track { position: relative; width: 40px; height: 24px; border-radius: var(--radius-pill); background: var(--surface-2); border: 2px solid var(--line-strong); flex: none; }
.motion-toggle__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease-out), background-color .2s; }
.motion-toggle[aria-checked="true"] .motion-toggle__track { background: var(--cream); border-color: var(--cream); }
.motion-toggle[aria-checked="true"] .motion-toggle__track::after { transform: translateX(16px); background: #000; }
html:not(.js) .motion-toggle { display: none; }

/* Section rhythm */
.section { padding: clamp(48px, 8vw, 104px) 0; }
.section--tight { padding: clamp(32px, 5vw, 64px) 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }

/* Breadcrumb */
.crumbs { font-size: .9375rem; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--fg); font-weight: 600; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; }

/* Demo banner: one quiet line at the very top of every page */

/* ---- Motion (the one place for the shared moves) ----
   The finished, static state is the default and what reduced motion shows.
   Every move below runs only under html[data-motion="full"] (site.js), uses
   transform and opacity only, and ambient loops also skip data saver
   (html.save-data) and pause off screen (.is-offscreen, site.js).

   Reveals. Mark one element with [data-reveal] (or data-reveal="scale" for
   photos that grow from .96) or a list with [data-reveal-group] (its children
   enter one by one). site.js gives the elements that start below the fold
   the class .rv and a per-row --i, so the start state exists only on
   elements the script has picked: without JS, or if it fails, nothing hides.
   Where the browser has scroll-driven animations the entrance is tied to the
   element's own entry into view (staggered by --i along the scroll); elsewhere
   site.js adds .rv-in from an IntersectionObserver and it transitions in,
   staggered 60ms a step. */
@keyframes rv-rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes rv-scale { from { opacity: 0; transform: scale(.96); } }
@supports (animation-timeline: view()) {
  html[data-motion="full"] .rv { animation: rv-rise linear both; animation-timeline: view(); animation-range: entry calc(var(--i, 0) * 28px) entry calc(150px + var(--i, 0) * 28px); }
  html[data-motion="full"] .rv--scale { animation-name: rv-scale; }
}
@supports not (animation-timeline: view()) {
  html[data-motion="full"] .rv { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  html[data-motion="full"] .rv:not(.rv-in) { opacity: 0; transform: translateY(22px); }
  html[data-motion="full"] .rv--scale:not(.rv-in) { transform: scale(.96); }
}

/* Tilt: a beer card's label leans about 4deg. Pages say what leans and how
   (beers.css, home.css, shop.css); on touch screens site.js adds .is-seen to
   [data-tilt] the first time it is in view and the lean plays once. */
@keyframes tilt-once { 0%, 100% { transform: none; } 45% { transform: translateY(-4px) rotate(-4deg); } }

/* Count-ups: <span class="count" data-count="23">23</span>. The figure in the
   markup is the real one; site.js counts up to it once, in view. The box is
   as wide as the final figure, so nothing moves while it counts. */
.count { display: inline-block; min-width: calc(var(--digits, 1) * 1ch); text-align: right; font-variant-numeric: tabular-nums; }

/* The hop in the header logo sways; it spins once when the age gate is passed. */
.site-header .brand .brand__hop { transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes hop-sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes hop-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
html[data-motion="full"]:not(.save-data) .site-header .brand .brand__hop { animation: hop-sway 6s ease-in-out infinite; }
html[data-motion="full"] .site-header .brand.is-spinning .brand__hop { animation: hop-spin .9s cubic-bezier(.3, .1, .2, 1) 1; }

/* The award medal (label.js awardMedalHTML): hangs from the top of its ribbon
   and swings a couple of degrees. The page sets its width. */
.award-medal { display: block; flex: none; }
.award-medal img { display: block; width: 100%; height: auto; transform-origin: 50% 0; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); }
@keyframes medal-swing { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }
html[data-motion="full"]:not(.save-data) .award-medal img { animation: medal-swing 5.5s ease-in-out infinite; }

/* Ambient loops pause while their box is off screen (site.js, [data-ambient]). */
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }

/* Small phones: logo, Find us (a pin), the menu button and the cart must fit 360px. */
@media (max-width: 480px) {
  :root { --header-h: 64px; }
  .site-header .brand { width: 136px; }
  .header-tools { gap: 6px; }
  .find-btn { width: 44px; padding: 0; }
  .find-btn__t { position: absolute; width: 1px; height: 1px; overflow: clip; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 400px) {
  .site-header .brand { width: 124px; }
}

/* ---- Black and white sections ----
   The brewery's colours are black, then white. .band--white is a full-bleed
   white section with black ink (21:1); .band--black a black one with white
   ink, for cards over photographs. They follow the band rules above. */
.band--white { --band: #FFFFFF; --band-ink: #000000; }
.band--black { --band: #000000; --band-ink: #FFFFFF; --panel: #141414; }
.band--white .btn--ghost:hover { background: #000; color: #fff; }

/* ---- Touch targets (batch 4) ----
   A link that sits on a line of its own keeps a 44px hit area without adding
   height: the negative margin hands the extra back to the surrounding space. */
.crumbs a, .untappd-credit a, .site-footer p > a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; margin-block: -12px; }
/* A short crumb ("Shop") at 44px wide left a gap before its slash; the 44px height is the hit area. */
.crumbs a { min-width: 0; }

/* Same-origin view transitions: every page cross-fades, declared here only
   (theme.css and beers.css used to repeat it). A themed page navigating to
   one that had not opted in logged "Transition was aborted" in Chrome. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
html[data-motion="reduce"]::view-transition-group(*),
html[data-motion="reduce"]::view-transition-old(*),
html[data-motion="reduce"]::view-transition-new(*) { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Animations and sound, in the header: one small button opens both switches
   (the footer keeps its Animations switch too). A popover, so it opens and
   closes with Escape and outside clicks without our help; the switches need
   JavaScript, so without it the button is not shown. */
.prefs-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 2px solid var(--line-strong); border-radius: var(--radius-pill); background: transparent; color: var(--fg); cursor: pointer; }
.prefs-btn:hover { border-color: var(--fg); }
.prefs-btn svg { width: 20px; height: 20px; }
html:not(.js) .prefs { display: none; }
.prefs-pop { position: fixed; inset: auto; top: calc(var(--header-h, 72px) + 8px); right: var(--gutter); margin: 0; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); color: var(--cream); box-shadow: 0 24px 40px rgba(0, 0, 0, .5); }
.prefs-pop:popover-open { display: grid; gap: 10px; }
.motion-toggle[data-sound-toggle] { justify-content: flex-start; }
.can3d__stage.is-pulling { cursor: grabbing; }

/* ---- Page to page: cross-document view transitions ----
   The page cross-fades (the beer's colour into the next one's); a beer's label
   or can, clicked on the menu or another beer's page, grows into
   the hero of its own page (names set on click by site.js, and on the beer
   page by beers.css). Only with motion: never under the OS setting, and
   site.js skips it when the site's own Animations switch is off. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-group(beer-can), ::view-transition-group(beer-label) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
