/* label.css and theme.css are linked by the pages themselves (an @import
   here would make the browser fetch them only after this file). */
/* Mug Club, gift cards and subscriptions: the three landing-and-purchase
   pages, in the label and theme system (shared/label.css, shared/theme.css).
   Each page is a full-bleed label hero whose band holds the main purchase
   action, then sections marked .t-pale, .t-deep or .t-field.
   Page-local components: .cb-band (the band, after shop.css .lp-band),
   .mug-deal, .mug-moment, .mug-pay, .faq, .club-count, .gift and .gc-label (the gift card as
   a mini label), .cb-picks (small labels for the subscription). */

/* Ordering controls need JavaScript; without it the noscript notices show. */
html:not(.js) .needs-js { display: none !important; }
/* kit.css gives .field display:grid, which beats the hidden attribute. */
.field[hidden], .cb-custom[hidden], .cb-holder__fields[hidden], .gift__balance[hidden], .cb-add[hidden] { display: none; }
/* A control the shop has switched off stays where it is, so the layout does not move, but dims and cannot be used. */
[inert] { opacity: .55; }

/* ---------- Hero band: the label's info strip, holding real controls ---------- */
.cb-band { display: grid; gap: 14px; }
/* Mug Club: the promise, in the label's display face, as big as the band allows. */
.mug-promise { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.02; letter-spacing: -.005em; text-wrap: balance; }
.cb-lede { margin: 0; font-family: var(--font-body); font-style: italic; font-weight: 500; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.25; }
.cb-spec { margin: 0; padding: 10px 0; border-block: 1px solid currentColor; display: flex; flex-wrap: wrap; gap: 4px 0; font-family: var(--font-body); font-weight: 600; font-size: .9375rem; }
.cb-spec > span:not(:last-child)::after { content: "|" / ""; margin: 0 .75em; }
.cb-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; margin: 0; }
.cb-legend { display: block; margin: 0 0 6px; padding: 0; font-family: var(--font-body); font-weight: 600; font-size: .875rem; }
.cb-legend .sample { text-transform: none; letter-spacing: .04em; margin-left: .5em; }
.cb-choose { margin: 0; padding: 0; border: 0; min-width: 0; }
.cb-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-opt { position: relative; display: grid; align-content: center; min-width: 64px; min-height: 48px; padding: 6px 14px; border: 1px solid currentColor; cursor: pointer; }
.cb-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cb-opt__name { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.cb-opt__sub { font-size: .8125rem; line-height: 1.25; }
.cb-opt:has(input:checked) { background: var(--beer-ink); color: var(--beer); }
.cb-opt:has(input:focus-visible) { outline: 3px solid var(--beer-ink); outline-offset: 2px; }
.cb-pricebox p { margin: 0; }
.cb-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.cb-price .price { font-size: 2.2rem; line-height: 1; }
.cb-left { font-size: .9375rem; }
/* Mug Club: the price by the week, beside the price. */
.cb-week { font-family: var(--font-body); font-weight: 600; font-size: 1rem; }
.cb-left strong { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; }
.t-field .sample, .t-field .err { color: inherit; }
.cb-add { min-height: 54px; padding: 10px 28px; border-radius: var(--radius-pill); font-size: 1.05rem; margin-left: auto; }
.cb-note { margin: 0; font-size: .9375rem; }
.cb-note a { color: inherit; }
.cb-note .cb-add { margin-left: 12px; }
/* Mug Club for someone else: a tick box and, once ticked, the holder's name and email. */
.cb-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.cb-check input { width: 22px; height: 22px; accent-color: var(--beer-ink); }
.cb-holder__fields { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 6px; }
.cb-custom { display: grid; gap: 4px; }
/* Mug Club as a gift: when we email them (a row of choices), the day and time, and a message across the full width. */
.cb-when { flex-basis: 100%; }
.cb-custom .input.cb-at { width: auto; min-width: 16ch; color-scheme: dark; }
.cb-msg { flex-basis: 100%; }
.cb-custom .cb-msg textarea, .cb-msg textarea.input { width: 100%; max-width: 46ch; resize: vertical; font-size: 1rem; line-height: 1.35; }
[data-when-xmas][hidden], [data-when-pick][hidden] { display: none; }
.cb-custom .input { width: 12ch; border-color: currentColor; border-width: 1px; border-radius: var(--radius); background: transparent; color: inherit; font-size: 1.15rem; }
.cb-custom .input[aria-invalid="true"] { border-width: 3px; }
.cb-custom .err { margin: 0; font-size: .875rem; font-weight: 600; min-height: 0; }
.cb-custom .err:not(:empty)::before { content: "!" / ""; display: inline-grid; place-items: center; width: 1.2em; height: 1.2em; margin-right: .4em; border: 1.5px solid currentColor; border-radius: 50%; font-size: .8em; }

/* ---------- Sections ---------- */
.cb-sec { padding: clamp(56px, 8vw, 112px) 0; }
.cb-sec .crumbs { padding: 0 0 clamp(28px, 4vw, 48px); color: var(--muted); }
.cb-sec__title { margin-bottom: clamp(24px, 3vw, 36px); }
.cb-sec__lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); margin-bottom: 32px; }
.t-deep .sample, .t-deep .kicker { color: var(--beer-muted-deep); }
.t-pale .sample, .t-pale .kicker { color: var(--beer-muted-pale); }

/* Mug Club: advance buying in three dated steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps li { border-top: 3px solid var(--beer-mid); padding-top: 16px; }
.steps__when { font-family: var(--font-body); font-weight: 600; font-size: .875rem; color: var(--fg); margin-bottom: 8px; }
.steps__title { font-family: var(--font-body); font-weight: 700; font-size: 1.5rem; margin-bottom: 10px; }
.steps li p:last-child { margin: 0; }

/* Mug Club: the deal, three things said big, each over a rule. */
.mug-deal-sec .kicker { margin-bottom: clamp(18px, 2.5vw, 28px); }
.mug-deal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.mug-deal__item { border-top: 3px solid var(--beer-mid-on-deep); padding-top: clamp(14px, 2vw, 22px); }
.mug-deal__h { margin: 0 0 10px; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: .92; text-transform: uppercase; }
.mug-deal__item p { margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.35; max-width: 26ch; }

/* Mug Club: when the pints are free, the taproom's hours as a small timetable under the deal. */
.mug-hours { margin-top: clamp(36px, 5vw, 64px); }
.mug-hours__h { margin: 0 0 14px; font-family: var(--font-body); font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.mug-hours__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.mug-hours__list li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-strong); }
.mug-hours__d { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mug-hours__t { font-size: .9375rem; }

/* Mug Club: the moment, one photograph across the page with one line over its foot. */
.mug-moment { position: relative; display: grid; min-height: clamp(380px, 62vw, 760px); overflow: clip; background: var(--beer-deep); color: var(--cream); }
.mug-moment img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.mug-moment::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .72) 0, rgba(0, 0, 0, .2) 45%, transparent 70%); }
.mug-moment__in { position: relative; z-index: 1; align-self: end; padding-bottom: clamp(32px, 6vw, 80px); }
.mug-moment__line { margin: 0; font-size: clamp(2rem, 5.2vw, 4.6rem); line-height: .98; text-transform: uppercase; text-wrap: balance; max-width: 16ch; }

/* Mug Club: how often do you come in? The choice, then the year in pints, huge, with what it is worth beside it. */
.mug-pay__ask { margin-bottom: 14px; font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; color: inherit; }
.mug-pay__pick { margin: 0 0 clamp(24px, 3vw, 36px); }
.mug-pay__sum { display: block; margin-top: .25em; font-family: var(--font-body); font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.45rem); text-transform: none; letter-spacing: 0; }

/* Mug Club: a year of free pints as a present, with the mug's dog tag. */
.mug-gift__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.mug-gift__h { margin-bottom: 14px; }
.mug-gift__p { margin: 0 0 24px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34ch; }
.mug-gift .cb-add { margin-left: 0; }
.mug-tag { justify-self: center; position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; width: min(100%, 240px); aspect-ratio: 5 / 3; padding: 18px 24px 18px 48px;
  border-radius: 999px / 46%; transform: rotate(-8deg);
  background: linear-gradient(155deg, #f2f2f0 0, #b9bcbf 38%, #e6e7e8 55%, #8d9196 100%); color: #3a3d41;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55), inset 0 -6px 10px rgba(0, 0, 0, .25), 0 18px 30px rgba(0, 0, 0, .45);
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; text-align: center; line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
.mug-tag__hole { position: absolute; left: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--beer-deep); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .5); }
.mug-tag__club { font-size: 1.7rem; letter-spacing: .02em; }
.mug-tag__year { font-size: .8rem; letter-spacing: .22em; }
.mug-tag__for { margin-top: 6px; padding-top: 6px; border-top: 2px solid currentColor; width: 70%; font-size: .9rem; letter-spacing: .16em; text-align: left; }

/* Mug Club gift, until Christmas Day (.is-xmas, clubs/build.mjs and clubs-mug.js): deep pine green with a little red
   at the corner, the heading and the button in warm gold, the dog tag hung on a red ribbon, and hop-shaped snow. */
.mug-gift { position: relative; overflow: clip; }
.mug-gift.is-xmas { --xmas-gold: #f0cf7a; --xmas-red: #c8242c;
  background: radial-gradient(70% 90% at 100% 0, color-mix(in oklab, var(--xmas-red) 38%, transparent) 0, transparent 60%),
    radial-gradient(120% 100% at 75% 30%, #1f5c40 0, #0f3726 55%, #0a2619 100%);
  color: #f6f1e7; --fg: #f6f1e7; --line: rgba(246, 241, 231, .25); }
.mug-gift.is-xmas .kicker { color: var(--xmas-gold); }
.mug-gift.is-xmas .mug-gift__h { color: var(--xmas-gold); }
.mug-gift.is-xmas .cb-add { background: var(--xmas-gold); border-color: var(--xmas-gold); color: #0f3726; }
.mug-gift.is-xmas .mug-tag__hole { background: #0f3726; }
/* The bow (an SVG in the tag), tied through the hole; only when dressed for Christmas. */
.mug-tag__bow { display: none; }
.mug-gift.is-xmas .mug-tag__bow { display: block; position: absolute; left: -26px; top: calc(50% - 32px); width: 104px; height: auto;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.mug-gift__in { position: relative; z-index: 1; }
/* Snow: small hop marks drifting down and sideways, with motion on only; none at all otherwise. */
.mug-snow { position: absolute; inset: 0; pointer-events: none; display: none; }
html[data-motion="full"] .mug-gift.is-xmas .mug-snow { display: block; }
.mug-snow i { position: absolute; top: -40px; left: var(--x); width: var(--w); aspect-ratio: 229 / 297; background: #fff; opacity: 0;
  -webkit-mask: url("/shared/brand/bcb-hop.svg") center / contain no-repeat; mask: url("/shared/brand/bcb-hop.svg") center / contain no-repeat;
  animation: mug-snow var(--d) linear var(--s) infinite; }
@keyframes mug-snow {
  0% { top: -40px; transform: translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: .7; }
  50% { transform: translateX(var(--sway)) rotate(120deg); }
  90% { opacity: .6; }
  100% { top: 100%; transform: translateX(calc(var(--sway) * -.5)) rotate(260deg); opacity: 0; }
}

/* Mug Club: it pays for itself. One heading: the pint number huge, the rest of the sentence beside it; the week under. */
.mug-pay__h { margin: 0 0 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 44px); }
.mug-pay__n { font-size: clamp(6rem, 18vw, 15rem); line-height: .8; letter-spacing: -.02em; }
.mug-pay__line { margin: 0; text-wrap: balance; }
.mug-pay__week { margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; }

.club-renew { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 16px 40px; padding-bottom: clamp(48px, 7vw, 88px); }
.club-renew p { margin: 0; }
.faq { border-top: 2px solid var(--fg); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding: 14px 0; cursor: pointer; list-style: none; font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+" / ""; font-family: var(--font-body); font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--beer-mid); }
.faq details[open] summary::after { content: "\2212" / ""; }
.faq details p { padding-bottom: 18px; margin: 0; }

/* Mug Club: founding mugs left, one square per mug */
.cb-again__in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.cb-again h2 { margin-bottom: 14px; }
.club-count__line { font-size: 1.125rem; margin-bottom: 14px; }
.club-count__line strong { font-family: var(--font-body); font-weight: 700; font-size: 1.6rem; }
.club-count__mugs { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; width: min(100%, 480px); }
.club-count__mugs i { aspect-ratio: 1; background: var(--beer-ink); }
.club-count__mugs i.is-taken { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--beer-ink) 55%, transparent); }
.club-count__key { font-size: .875rem; margin: 10px 0 0; }

/* ---------- Gift cards ---------- */
.gift { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.gift__form .field p { margin: 0; }
.gift__form .err:empty { min-height: 0; }
.gift__form .input { border-color: var(--beer-mid); border-width: 1px; }
.gift__form .input:focus-visible { outline-color: var(--beer-mid); border-color: var(--beer-mid); }
.gift__form .choice { border-width: 1px; border-color: var(--beer-mid); }
.gift__form .choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--beer-mid); }
.gift__form .choice input { accent-color: var(--beer-mid); }
.gift__sum { margin: 8px 0 14px; font-weight: 600; }
.gift__form .cb-add { margin-left: 0; }
.input--date { width: auto; min-width: 14ch; }
.choices--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices--row .choice { align-items: center; }
.choices--row .choice input { margin-top: 0; }
textarea.input { resize: vertical; min-height: 92px; }
.gift__preview { position: sticky; top: calc(var(--header-h) + 24px); }
.gift__msg { margin: 16px 0 0; font-family: var(--font-body); font-weight: 500; font-style: italic; font-size: 1.15rem; overflow-wrap: anywhere; }
.gift__where { margin: 14px 0 0; font-weight: 600; }
.gift__balance { margin-top: 24px; display: grid; gap: 6px; }
.gift__balance .input { flex: 1 1 14ch; min-width: 0; border-color: var(--beer-mid); border-width: 1px; }

/* The card as a mini label: vertical GIFT CARD, the hop, the amount on the strip */
/* On black the card glows in its own colour, with a deep drop shadow under it. */
.gc-wrap { width: min(100%, 440px); box-shadow: 0 24px 48px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .5), 0 0 80px color-mix(in oklab, var(--beer) 32%, transparent); }
.gc-label .bl__info { display: grid; gap: .35em; padding-block: .8em; }
.gc-label .bl__info span { display: block; }
.gc-label__amount { font-family: var(--font-display); font-weight: 800; font-size: 5.2em; line-height: .9; letter-spacing: 0; }
.gc-label__when { font-size: 1.15em; }
/* The clip box gets .2em of room either side across the line (the block axis in
   vertical writing), so descenders like the y in "for you" are not cut. */
.gc-label .bl__light { max-inline-size: 74cqh; overflow: clip; text-overflow: ellipsis; white-space: nowrap; padding-block: .2em; margin-block: 0 -.2em; }

/* ---------- Subscriptions: what might be in the box ---------- */
.cb-picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.cb-pick a { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.cb-pick__label { display: block; width: 100%; margin-bottom: 8px; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); transition: transform .25s var(--ease-out); }
.cb-pick a:hover .cb-pick__label, .cb-pick a:focus-visible .cb-pick__label { transform: translateY(-4px); }
.cb-pick__name { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.cb-pick a:hover .cb-pick__name, .cb-pick a:focus-visible .cb-pick__name { text-decoration: underline; text-underline-offset: 3px; }
.cb-pick__meta { font-size: .875rem; color: var(--muted); }

.sub-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.sub-info h2 { margin-bottom: 14px; }
.sub-info p:last-child { margin-bottom: 0; }

/* ---------- Mug Club: the mug in the hero ----------
   Cas's photo of the real mug on the bar in front of the tanks, uncut, in a rounded frame as tall as the aside allows. */
.mug-fig { margin: 0; height: 100%; display: grid; align-items: end; justify-items: center; container-type: size; }
.mug-fig__photo { display: block; width: min(100cqw, 100cqh * 3 / 4); height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 14px; box-shadow: 0 22px 44px rgba(0, 0, 0, .35); }

/* ---------- Mug Club: the close, the count of founding mugs left ----------
   The hop, the number left, "Founding mugs left", "of 50", and a bar that fills to the share of places taken (--level,
   0 to 100). With motion on, the bar fills the first time it is in view (clubs-mug.js adds .is-poured). */
@property --fill { syntax: "<number>"; inherits: true; initial-value: 0; }
.mug-close { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.mug-close .cb-add { margin-left: 0; }
.mug-close .sample { margin: 18px 0 0; }
.mug-fill { --fill: var(--level, 0); width: min(100%, 420px); justify-self: center; container-type: inline-size; display: grid; gap: 7cqw; }
html[data-motion="full"] .mug-fill:not(.is-poured) { --fill: 0; }
html[data-motion="full"] .mug-fill { transition: --fill 1.8s cubic-bezier(.2, .7, .2, 1); }
.mug-fill__etch { margin: 0; display: grid; justify-items: center; gap: 3cqw;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; text-align: center; line-height: .9; }
.mug-fill__logo { display: block; width: 18cqw; height: auto; }
.mug-fill__n { font-size: 46cqw; }
.mug-fill__w { font-size: 8cqw; letter-spacing: .14em; }
.mug-fill__of { font-size: 6cqw; letter-spacing: .2em; padding-top: 3cqw; border-top: .6cqw solid currentColor; }
.mug-fill__bar { display: block; height: 2.6cqw; min-height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.mug-fill__bar > span { display: block; height: 100%; width: calc(var(--fill) * 1%); border-radius: inherit; background: var(--beer-mid-on-deep, #f2b632); }

/* ---------- Without the hero script (no JavaScript) ----------
   heroHeader() is what tucks the hero under the header; without it the
   header stays solid above the hero, which is fine. */

@media (max-width: 980px) {
  .gift, .mug-close { grid-template-columns: minmax(0, 1fr); }
  .gift__preview { position: static; order: -1; }
  .sub-info { grid-template-columns: minmax(0, 1fr); }
  .cb-picks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .steps, .club-renew { grid-template-columns: minmax(0, 1fr); }
  .cb-add { margin-left: 0; width: 100%; }
  .cb-note .cb-add { margin: 12px 0 0; }
  .cb-spec { font-size: .875rem; }
  .cb-spec > span:not(:last-child)::after { margin: 0 .5em; }
}
@media (max-width: 480px) {
  .cb-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choices--row { grid-template-columns: minmax(0, 1fr); }
  .cb-opts .cb-opt { flex: 1 1 calc(50% - 6px); }
}

/* The link to the brewery's Mug Club terms (a PDF), under the questions. */
.cb-terms { margin: clamp(20px, 3vw, 28px) 0 0; font-weight: 600; }

@media (max-width: 760px) {
  .mug-deal, .mug-gift__in { grid-template-columns: minmax(0, 1fr); }
  .mug-pay__h { grid-template-columns: minmax(0, 1fr); }
}
