/* Shared base for the beer.bm demos: fonts, Bermuda brand colours, reset,
   motion flag, age gate. kit.css (the design system, DARK.md) loads on top.

   One family everywhere: Rajdhani (Medium 500, SemiBold 600, Bold 700), the
   brewery's own label font. --font-display, --font-body, --font-warm and
   --font-label all point at it, so the old variable names keep working.
   Weights above 700 render as Bold, below 500 as Medium. */

@font-face { font-family: "Rajdhani"; src: url("fonts/rajdhani-latin-500-normal.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("fonts/rajdhani-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("fonts/rajdhani-latin-700-normal.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }

:root {
  /* Bermuda brand colours: roof, cottage walls, reef, sand, cedar. These are
     brand colours for artwork, not surfaces or text (DARK.md). */
  --roof: #F6F4EE;
  --limestone: #E7E1D3;
  --reef: #2FA3A0;
  --reef-deep: #0E5A63;
  --atlantic: #0B2A3A;
  --sand: #F2C7BF;
  --sand-deep: #D98C82;
  --cedar: #6A3F26;
  --ink: #1B1A17;
  --paper: #F4EFE6;      /* label paper; page text is --cream (kit.css) */
  --cottage-yellow: #F3DE8A;
  --cottage-blue: #A9CFE0;
  --cottage-pink: #F1B9B0;

  --font-display: "Rajdhani", "Arial Narrow", sans-serif;
  --font-body: "Rajdhani", "Arial Narrow", sans-serif;
  --font-warm: "Rajdhani", "Arial Narrow", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --ease-out: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
body { margin: 0; overscroll-behavior: none; font-family: var(--font-body); font-size: clamp(1.0625rem, 1rem + .2vw, 1.125rem); line-height: 1.55; color: #FFFFFF; background: #000000; overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus, #F7CF0B); outline-offset: 3px; }

.skip { position: absolute; left: 8px; top: -80px; z-index: 1000; padding: 12px 18px; border-radius: 999px; background: #F7CF0B; color: #000000; font-weight: 700; }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: clip; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Motion. html[data-motion="reduce"] is set from prefers-reduced-motion or the
   visitor's own switch (in the footer). Pages default to their finished state;
   motion is an enhancement on top. */
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after {
  animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important;
}

/* Age gate: one question over the page, never a redirect. Crawlers see the
   content. A garden photo sits behind a dark scrim. */
.agegate { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: var(--gutter); color: #FFFFFF; background: #000000 url("img/space/garden-crowd-sm.webp") 50% 50% / cover no-repeat; }
.agegate::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .9)); }
.agegate[hidden] { display: none; }
html.gate-open, html.gate-open body { overflow: clip; overscroll-behavior: none; }
.agegate__panel { position: relative; width: min(100%, 480px); padding: clamp(28px, 6vw, 44px) clamp(20px, 5vw, 40px); border-radius: 20px; background: #141414; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); text-align: center; }
.agegate__mark { width: 56px; margin: 0 auto 14px; color: #F7CF0B; }
.agegate__hi { font-family: var(--font-warm); font-size: clamp(1.3rem, 4vw, 1.6rem); line-height: 1.2; color: #F7CF0B; margin: 0 0 6px; }
.agegate h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 7vw, 3rem); line-height: 1; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 22px; }
.agegate__choices { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.agegate__choices button { min-height: 52px; min-width: 120px; padding: 12px 26px; border-radius: 999px; border: 2px solid #FFFFFF; background: transparent; color: #FFFFFF; font-weight: 700; font-size: 1.0625rem; cursor: pointer; }
.agegate__choices .agegate__yes { background: #F7CF0B; border-color: #F7CF0B; color: #000000; }
.agegate__choices button:hover { transform: translateY(-1px); }
.agegate__choices button:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.agegate__fine { margin: 22px 0 0; font-size: .9375rem; color: #CDBEA6; }

main:focus { outline: none; }
/* Without JavaScript nothing sets data-motion, so honour the system setting directly. */
@media (prefers-reduced-motion: reduce) {
  html:not(.js) *, html:not(.js) *::before, html:not(.js) *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Untappd credit and the sample-data note (shared/untappd-ui.js). */
.untappd-credit { font-size: .875rem; margin: 12px 0 0; }
.untappd-credit a { text-underline-offset: 2px; }
