/*
 * Wasa Brewing Company. The look is lifted from the cans: black labels, loud
 * colour bands that repeat the beer's style, and lettering stamped with an
 * offset shadow. Each beer's colour comes from its "accent" in products.csv
 * and arrives as --beer / --on-beer on the element.
 */

:root {
  --ink: #0d0d0c;
  --ink-2: #151513;
  --ink-3: #1f1d1a;
  --paper: #f6f3ea;
  --paper-dim: rgba(246, 243, 234, 0.7);
  --paper-faint: rgba(246, 243, 234, 0.42);
  --line: rgba(246, 243, 234, 0.12);
  --line-strong: rgba(246, 243, 234, 0.28);
  --ink-dim: rgba(13, 13, 12, 0.74);
  --ink-line: rgba(13, 13, 12, 0.16);

  --yolk: #f2c012;
  --yolk-2: #ffd83d;
  /* Full yolk behind paper lettering blurs the edges; this deeper amber keeps
     the stamp but lets the words read */
  --yolk-stamp: color-mix(in srgb, var(--yolk) 62%, var(--ink));
  --cyan: #57cfe0;
  --pink: #ef6fae;
  --lime: #5bd15b;
  --lilac: #a389d4;

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(1.2rem, 4vw, 2.4rem);
  --radius: 18px;
  --radius-sm: 8px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--yolk);
  outline-offset: 3px;
}

::selection {
  background: var(--yolk);
  color: var(--ink);
}

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* iOS Safari lets you pan sideways to anything overflowing, even with
   overflow-x on body, so clip here where the tilted ticker lives. */
main {
  overflow-x: hidden;
  overflow-x: clip;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Small label above headings, with a rule like the can's printed strip */
.eyebrow {
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yolk);
}

.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 3px;
  background: currentColor;
}

/* Headline treatment: layered like the can's drop-printed lettering */
.stamped {
  text-shadow: 0.06em 0.06em 0 var(--stamp, var(--yolk-stamp));
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s ease,
    color 0.15s ease, border-color 0.15s ease;
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.74rem;
}

.btn-primary {
  --shadow: var(--paper);
  background: var(--yolk);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--shadow);
}

.btn-primary:hover {
  background: var(--yolk-2);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--shadow);
}

.btn-primary:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--shadow);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--paper);
}

.btn-ink {
  background: var(--ink);
  color: var(--yolk);
  box-shadow: 4px 4px 0 var(--paper);
}

.btn-ink:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--paper);
}

.btn-ink:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--paper);
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 12, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  position: relative;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo img {
  width: 150px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-menu a:not(.btn) {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: color 0.2s ease;
}

.nav-menu a:not(.btn):hover {
  color: var(--yolk);
}

.nav-menu .btn-primary {
  --shadow: var(--ink-3);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  color: var(--paper);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.nav-toggle-bars {
  position: relative;
  transform: translateY(-3px);
}

.nav-toggle-bars::before {
  content: "";
  position: absolute;
  top: 6px;
}

.nav[data-open] .nav-toggle-bars {
  transform: translateY(0) rotate(45deg);
}

.nav[data-open] .nav-toggle-bars::before {
  transform: translateY(-6px) rotate(-90deg);
}

/* HERO */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: clamp(3rem, 8vw, 5.5rem);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(60% 50% at 50% 100%, rgba(242, 192, 18, 0.16), transparent 70%);
}

.hero .eyebrow::after {
  content: "";
  width: 1.8rem;
  height: 3px;
  background: currentColor;
}

.hero-title {
  font-size: clamp(1.6rem, 6.2vw, 5.4rem);
  font-weight: 900;
  line-height: 0.94;
}

.hero-title span {
  display: block;
}

.hero-lead {
  margin: 1.6rem auto 0;
  max-width: 42ch;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--paper-dim);
}

.actions {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* With every can left out of the lineup, the copy needs room above the ticker */
.hero:not(:has(.lineup)) {
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}

/* The can lineup stands on the ticker, in front of a rising sun */
.lineup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: min(1100px, 100% - 2 * var(--gutter));
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
}

.lineup::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 0;
  width: min(640px, 92vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yolk);
  transform: translate(-50%, 50%);
}

.lineup-can {
  --r: 0deg;
  --y: 0px;
  position: relative;
  flex: 0 1 200px;
  min-width: 0;
  margin-inline: -3%;
  transform: translateY(calc(var(--y) + 8%)) rotate(var(--r));
  transition: transform 0.45s var(--ease);
}

.lineup-can:nth-child(4n + 1) {
  --r: -6deg;
  --y: 6px;
}

.lineup-can:nth-child(4n + 2) {
  --r: 3deg;
  --y: -10px;
}

.lineup-can:nth-child(4n + 3) {
  --r: -2deg;
  --y: -18px;
}

.lineup-can:nth-child(4n + 4) {
  --r: 5deg;
  --y: -4px;
}

.lineup-can img {
  width: 100%;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.5));
}

.lineup-can::before {
  content: "";
  position: absolute;
  inset: 25% 15% 10%;
  z-index: -1;
  border-radius: 50%;
  background: var(--beer, var(--yolk));
  filter: blur(34px);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.lineup-can:hover,
.lineup-can:focus-visible {
  z-index: 2;
  transform: translateY(-6%) rotate(0deg);
}

.lineup-can:hover::before,
.lineup-can:focus-visible::before {
  opacity: 0.8;
}

/* TICKER: the can's repeating style band, scrolling */
.ticker {
  position: relative;
  z-index: 3;
  margin-inline: -2vw;
  overflow: hidden;
  background: var(--ink);
  color: var(--yolk);
  border-block: 3px solid var(--yolk);
  transform: rotate(-1.2deg);
  transform-origin: center;
}

.ticker-track {
  display: flex;
  width: max-content;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: ticker 50s linear infinite;
}

/* Trailing padding instead of flex gap keeps both halves the same width,
   so the -50% loop lands exactly on the second copy. */
.ticker-track span {
  flex: none;
  padding-right: 1.4rem;
}

.ticker-star {
  color: var(--paper);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* SECTIONS */
.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}

.section-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.95;
}

.section-lead {
  margin: 1.3rem 0 0;
  max-width: 52ch;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--paper-dim);
}

/* BEERS */
.beer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.beer {
  --accent: var(--beer, var(--yolk));
  --on-accent: var(--on-beer, var(--ink));
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-bottom: 6px solid var(--accent);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), border-color 0.35s ease;
}

.beer:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  border-bottom-color: var(--accent);
}

/* A keg-only beer keeps its colour; only the can parts go grey */
.beer.is-out:not(.has-kegs) {
  --accent: #5e5b54;
  --on-accent: var(--paper);
}

.beer-band {
  display: flex;
  overflow: hidden;
  padding: 0.55rem 0;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Every span holds the same text, so shifting each by its own width loops
   seamlessly without measuring anything. */
.beer-band span {
  flex: none;
  padding-right: 1.6rem;
}

.beer:hover .beer-band span {
  animation: band-step 2.4s linear infinite;
}

@keyframes band-step {
  to {
    transform: translateX(-100%);
  }
}

.beer-media {
  display: grid;
  place-items: center;
  padding: 2.2rem 1rem 1.4rem;
  background: radial-gradient(closest-side at 50% 60%, color-mix(in srgb, var(--accent) 40%, transparent), transparent);
}

.beer-media img {
  width: auto;
  height: clamp(240px, 26vw, 330px);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
  transition: transform 0.45s var(--ease);
}

.beer:hover .beer-media img {
  transform: rotate(-4deg) translateY(-4px);
}

/* Kegs still sell, so a keg-only beer keeps its colour */
.beer.is-out:not(.has-kegs) .beer-media img {
  filter: grayscale(1) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
  opacity: 0.55;
}

/* Names are sized against their own column (cqi) so single long words like
   SOMMARTIDER fit a phone card instead of being clipped. */
.beer-body {
  container-type: inline-size;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0 1.6rem 1.7rem;
}

.beer-style {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.beer.is-out:not(.has-kegs) .beer-style {
  color: var(--paper-faint);
}

.beer-out {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--paper-dim);
  letter-spacing: 0.08em;
}

.beer-name {
  --stamp: var(--accent);
  font-size: clamp(0.9rem, 9.5cqi, 1.75rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.beer-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--paper-dim);
}

.beer-rating {
  align-self: flex-start;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

.untappd-updated {
  margin: 1.6rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--paper-faint);
}

/* The whole card opens the product page, via a stretched link on the name */
.beer-name a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.beer:has(.beer-name a:focus-visible) {
  outline: 3px solid var(--yolk);
  outline-offset: 3px;
}

.beer-name a:focus-visible {
  outline: none;
}

.beer-stock {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--paper-dim);
  letter-spacing: 0.08em;
}

.beer-stock.is-limited {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.beer-meta {
  margin: auto 0 0;
  padding-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--paper-faint);
}

.beer-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--paper);
}

.beer-more {
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}

.beer:hover .beer-more {
  transform: translateX(3px);
}

.beer.is-out:not(.has-kegs) .beer-more {
  color: var(--paper-faint);
}

/* TRADE SHEET: the business site's can and keg rows, on cards and product
   pages */
.trade {
  margin: auto 0 0;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}

.trade-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(4.6rem, auto);
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--line);
}

.trade dt {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.trade dd {
  margin: 0;
}

.trade-stock {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--paper-dim);
}

.trade-stock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}

.trade-stock.is-limited::before {
  background: var(--yolk);
}

/* An outline dot: none at the brewery, but we'll fill one */
.trade-stock.is-request::before {
  background: none;
  box-shadow: inset 0 0 0 1.5px var(--paper-faint);
}

.trade-stock.is-out::before {
  background: var(--paper-faint);
}

.trade-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-align: right;
  color: var(--paper);
}

/* No cans to sell, so their price steps back */
.trade-price.is-out {
  color: var(--paper-faint);
}

/* A narrow card can't fit three columns, so the stock tucks under the label
   and the price spans both lines */
@container (max-width: 16rem) {
  .trade-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "label price"
      "stock price";
    gap: 0.3rem 0.9rem;
  }

  .trade dt {
    grid-area: label;
    white-space: nowrap;
  }

  .trade-stock {
    grid-area: stock;
  }

  .trade-price {
    grid-area: price;
  }
}

/* On a card the sheet takes over the meta row's top rule */
.trade+.beer-meta {
  margin-top: 0;
  border-top: 0;
}

.product-buy .trade {
  padding-top: 0;
  border-top: 0;
}

.product-buy .trade dt {
  font-size: 0.8rem;
}

.product-buy .trade-stock {
  font-size: 0.85rem;
}

.product-buy .trade-price {
  font-size: 1.4rem;
}

.product-trade-note {
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--paper-dim);
}

.product-order,
.product-order:hover {
  background: var(--accent);
  color: var(--on-accent);
}

/* PRODUCT PAGE */
.product-page {
  --accent: var(--beer, var(--yolk));
  --on-accent: var(--on-beer, var(--ink));
  --stamp: var(--accent);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.product-page.is-out:not(.has-kegs) {
  --accent: #5e5b54;
  --on-accent: var(--paper);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.product-visual {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    radial-gradient(closest-side at 50% 58%, color-mix(in srgb, var(--accent) 55%, transparent), transparent),
    var(--ink-2);
  border: 1px solid var(--line);
  border-bottom: 6px solid var(--accent);
}

.product-visual img {
  width: auto;
  height: 82%;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55));
  animation: bob-can 6s ease-in-out infinite;
}

.product-page.is-out:not(.has-kegs) .product-visual img {
  filter: grayscale(1) drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55));
  opacity: 0.6;
}

@keyframes bob-can {
  50% {
    transform: translateY(-10px) rotate(-1.5deg);
  }
}

.back-link {
  display: block;
  width: fit-content;
  margin-bottom: 1.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.back-link:hover {
  color: var(--yolk);
}

.product-info .eyebrow {
  color: var(--accent);
}

.product-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.product-buy {
  margin: 2rem 0;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.product-price {
  margin: 0 0 0.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.8rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}

.product-price span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--paper-faint);
}

.product-stock {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.product-stock::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
}

.product-stock.is-limited::before {
  background: var(--yolk);
}

.product-stock.is-out::before {
  background: var(--paper-faint);
}

.product-pickup {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--paper-dim);
}

.product-quick-lane {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.product-quick-lane p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--paper-dim);
}

.product-quick-lane strong {
  color: var(--paper);
}

.product-quick-lane .btn-primary,
.product-quick-lane .btn-primary:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.product-desc {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  line-height: 1.5;
}

.product-notes {
  color: var(--paper-dim);
  font-size: 1.02rem;
}

.specs {
  margin: 2.2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  border-top: 3px solid var(--accent);
}

.specs div {
  padding: 0.9rem 0.9rem 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.specs dt {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

.specs dd {
  margin: 0.25rem 0 0;
  font-weight: 700;
}

/* 404 */
.not-found {
  min-height: 60vh;
}

.actions-left {
  justify-content: flex-start;
}

/* STORY: the one light section, like the paper label on a bottle */
.story {
  --stamp: var(--yolk);
  position: relative;
  background: var(--paper);
  color: var(--ink);
}

/* Scalloped edges, like a bottle cap */
.story::before,
.story::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background: radial-gradient(circle at 14px 14px, var(--paper) 13.5px, transparent 14px) 0 0 / 28px 28px repeat-x;
}

.story::before {
  top: -14px;
}

.story::after {
  bottom: -14px;
  background-position: 0 -14px;
}

.story .eyebrow {
  color: var(--ink);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.story-title {
  font-size: clamp(3.4rem, 9.5vw, 7.6rem);
  font-weight: 900;
  line-height: 0.86;
}

.story-copy {
  padding-top: 0.4rem;
}

.story-copy p {
  max-width: 58ch;
  font-size: 1.08rem;
  color: var(--ink-dim);
}

.story-copy .story-lead {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink);
}

/* HOW TO BUY: three steps to a pickup (or, for businesses, a delivery) */
.how {
  padding-top: clamp(5.5rem, 11vw, 8.5rem);
}

/* Room for each line of the two-line title */
.how .section-head {
  max-width: none;
}

.steps {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--steps-gap);
  --steps-gap: clamp(2rem, 4vw, 3.5rem);
  --step-num: 2.8rem;
  --step-icon: 4rem;
  --step-head-gap: 1.4rem;
}

.step {
  position: relative;
  text-align: center;
}

/* An arrow leading on to the next step, centred in the gap. Steps are
   centred, so that's also midway between this icon and the next number. */
.step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: calc(var(--step-icon) / 2);
  left: calc(100% + var(--steps-gap) / 2);
  translate: -50% -50%;
  font-size: 1.6rem;
  color: var(--paper-dim);
}

.step:nth-child(2)::after {
  color: var(--yolk);
}

.step-head {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--step-head-gap);
  margin-bottom: 1.4rem;
}

.step-num {
  display: grid;
  place-items: center;
  width: var(--step-num);
  height: var(--step-num);
  border-radius: 50%;
  background: var(--yolk);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
}

.step-icon {
  width: var(--step-icon);
  height: var(--step-icon);
}

.step-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
  text-transform: uppercase;
}

.step-text {
  margin: 0 auto;
  max-width: 24ch;
  color: var(--paper-dim);
}

.step-text a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.2em;
}

.step-text a:hover {
  color: var(--paper);
  text-decoration-color: var(--yolk);
}

.how-cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.how-cta .btn {
  min-width: min(100%, 18rem);
}

.how-note {
  margin: 1.4rem auto 0;
  max-width: 48ch;
  color: var(--paper-dim);
}

.how-note a {
  color: var(--yolk);
  font-weight: 700;
}

/* Pickup map: the brewery's spot on Google Maps beside its address */
.pickup-map {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}

.pickup-map-frame {
  display: block;
  width: 100%;
  min-height: 22rem;
  border: 0;
}

.pickup-map-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.pickup-map-address {
  font-style: normal;
  color: var(--paper-dim);
}

/* CONTACT */
.contact {
  padding-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* The yellow card: wholesale on the business site, the quick lane on the
   consumer site */
.wholesale,
.quick-lane-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.6rem);
  border-radius: var(--radius);
  background: var(--yolk);
  color: var(--ink);
}

.wholesale::after,
.quick-lane-card::after {
  content: "ØL";
  position: absolute;
  z-index: -1;
  right: -0.08em;
  bottom: -0.3em;
  font-family: var(--font-display);
  font-size: clamp(9rem, 17vw, 15rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(13, 13, 12, 0.1);
  pointer-events: none;
}

.wholesale .eyebrow,
.quick-lane-card .eyebrow {
  color: var(--ink);
}

.wholesale-title,
.quick-lane-title {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 0.92;
  text-shadow: 0.06em 0.06em 0 var(--paper);
}

.wholesale-lead,
.quick-lane-lead {
  margin: 1.4rem 0 2rem;
  max-width: 50ch;
  font-size: 1.08rem;
  color: var(--ink-dim);
}

.wholesale-form label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wholesale-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  max-width: 560px;
}

.wholesale-row input {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  transition: box-shadow 0.15s var(--ease);
}

.wholesale-row input::placeholder {
  color: rgba(13, 13, 12, 0.45);
}

.wholesale-row input:focus {
  outline: none;
  box-shadow: 4px 4px 0 var(--ink);
}

.wholesale-row .btn {
  min-height: 52px;
}

.wholesale-note {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: rgba(13, 13, 12, 0.62);
}

.wholesale-whatsapp {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--ink-line);
}

.wholesale-whatsapp p {
  margin: 0 0 1rem;
  color: var(--ink-dim);
}

.hello {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.hello-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.hello p {
  margin: 1.1rem 0 1.5rem;
  color: var(--paper-dim);
}

.hello-email {
  align-self: flex-start;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 700;
  color: var(--yolk);
  border-bottom: 2px solid currentColor;
}

.quick-lane {
  margin-bottom: 2.2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
}

/* Yellow on yellow would vanish, so the card's button is ink like .btn-ink */
.quick-lane-card .quick-lane-btn,
.wholesale .quick-lane-btn {
  background: var(--ink);
  color: var(--yolk);
}

.quick-lane-btn svg {
  width: 1.4em;
  height: 1.4em;
}

.social-block {
  margin-top: auto;
  padding-top: 2.4rem;
}

.social-label {
  margin: 0 0 0.8rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

.social {
  display: flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.icon svg {
  width: 20px;
  height: 20px;
}

.icon:hover {
  background: var(--yolk);
  border-color: var(--yolk);
  color: var(--ink);
}

/* FOOTER */
.footer {
  overflow: clip;
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem 3.5rem;
  align-items: start;
}

.footer-logo {
  width: 170px;
}

.footer-address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--paper-dim);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav a:hover {
  color: var(--yolk);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-top: 2.8rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--paper-faint);
}

/* AGE GATE */
.gate {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2.5rem var(--gutter) 0;
}

.gate::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  bottom: 0;
  width: min(900px, 150vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 192, 18, 0.26), transparent 62%);
  transform: translate(-50%, 45%);
}

.gate-card {
  width: min(580px, 100%);
  padding-bottom: clamp(9rem, 28vh, 17rem);
  text-align: center;
}

.gate-logo {
  width: min(200px, 55vw);
  margin-inline: auto;
}

.gate-title {
  margin: 2.2rem 0 1rem;
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.02;
}

.gate-text {
  max-width: 40ch;
  margin: 0 auto;
  color: var(--paper-dim);
}

.gate-actions {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.gate-actions .btn {
  min-width: 150px;
}

.gate-fine {
  margin: 1.6rem 0 0;
  font-size: 0.82rem;
  color: var(--paper-faint);
}

.gate-fine a {
  color: var(--paper-dim);
  text-decoration: underline;
}

/* The business gate asks for an email instead of a yes/no */
.gate-eyebrow {
  margin: 2.2rem 0 0;
}

.gate-eyebrow+.gate-title {
  margin-top: 1rem;
}

.gate-form {
  max-width: 500px;
  margin: 2.2rem auto 0;
}

.gate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.gate-row input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--ink-2);
  color: var(--paper);
  font: inherit;
}

.gate-row input:focus {
  outline: none;
  border-color: var(--yolk);
}

.gate-row input[aria-invalid="true"] {
  border-color: #ff8a80;
}

.gate-row .btn {
  flex: 1 1 auto;
  min-height: 52px;
}

.gate-error {
  margin: 0.8rem 0 0;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ff8a80;
}

.gate-lineup {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.gate-lineup img {
  width: clamp(76px, 12vw, 170px);
  margin-inline: -1.4vw;
  transform: translateY(24%);
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.5));
  animation: bob 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.9s);
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(24%);
  }

  50% {
    transform: translateY(19%);
  }
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .beer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-visual {
    position: static;
    aspect-ratio: 5 / 4;
  }

  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-nav {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 64px;
  }

  .nav-logo img {
    width: 124px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem var(--gutter) 1.4rem;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .nav[data-open] .nav-menu {
    display: flex;
  }

  .nav-menu a:not(.btn) {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }

  .nav-menu .btn {
    margin-top: 1.2rem;
    min-height: 50px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .pickup-map {
    grid-template-columns: 1fr;
  }

  .pickup-map-frame {
    min-height: 16rem;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .beer-grid {
    grid-template-columns: 1fr;
  }

  .beer {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .beer-band {
    grid-column: 1 / -1;
  }

  .beer-media {
    padding: 1.4rem 0.4rem;
  }

  .beer-media img {
    height: 190px;
  }

  .beer-body {
    padding: 1.4rem 1.2rem 1.4rem 0;
  }

  .lineup-can {
    margin-inline: -4%;
  }

  .wholesale::after,
  .quick-lane-card::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
