/* Sugoi Brewing Company */

/* ==========================================================================
   SWITCH: the bold "Sugoi Station" link at the start of the menu.
   It is on every page but hidden until this is switched on.
     Hidden:  --station-link: none;
     Shown:   --station-link: inline-flex;
   ========================================================================== */
/*:root { --station-link: none; }*/
:root { --station-link: inline-flex; }

/* ==========================================================================
   SWITCH: the event bar across the top of the home page.
     Hidden:  --event-bar: none;
     Shown:   --event-bar: flex;
   ========================================================================== */
:root { --event-bar: flex; }

:root {
  --navy: #124c80;
  --navy-deep: #0b3357;
  --ink: #12263a;
  --ink-soft: #4a5b6c;
  --cream: #faf6ee;
  --paper: #fffdf9;
  --sand: #f2eadb;
  --line: #e4dac7;
  --gold: #f0b83c;
  --persimmon: #dc5f2e;
  --radius: 22px;
  --wrap: 1160px;
  /* Shapes from the logo (pebble and hand-drawn line), inlined so masks also work when opened from disk */
  --pebble: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1148.53 980.61%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M824.82,41.67c308.27,162.12,481.76,524.83,123.98,791.58-59.98,56.11-138.89,87.6-233.02,117.85-210.37,71.18-392.2,4.52-514.73-103.48C50.25,739.4-1.31,583.75.03,425.44,22.52,180.04,528.19-109.24,824.82,41.67Z%22/%3E%3C/svg%3E");
  --stroke: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 435.32 14.11%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M435.08,5.33c-.27-1.46-1.39-2.7-2.99-3.34-1.2-.48-2.4-.95-2.61-.98-.42-.08-2.27-.32-2.78-.36s-1.04-.08-1.59-.1c-.55-.02-10.3-.07-14.58-.08-4.28-.01-.49.31-4.77.3-4.28,0-16.65-.36-20.93-.36-4.28,0-21.42-.03-25.71-.04-4.28,0-10,.2-14.29.2-4.28,0-7.14-.21-11.42-.21s-15.79.37-20.07.37-1.35-.37-5.63-.36c-4.28,0-8.57,0-12.85,0-4.28,0-8.57,0-12.85.01s-15.49.14-19.77.14-1.65-.11-5.93-.1c-4.28,0-8.57.02-12.85.03s-7.5.48-11.78.49-9.64-.44-13.93-.43c-4.28-.02-21.42-.07-25.71-.09-4.28-.01-21.42-.06-25.71-.07-4.28-.01-.08.39-4.36.38-4.28,0-29.91-.46-34.2-.46-4.28,0-8.19.45-12.48.44-4.28,0-8.94-.47-13.23-.47C97.74.23,86.5,0,82.21,0c-4.28,0-1.61.22-5.89.22-4.28,0-8.57,0-12.85,0-4.28,0-15.9-.16-20.19-.16s-1.24.17-5.52.18-8.57.01-12.85.02c-4.28,0-8.57.02-12.85.03-.6,0-2.81.09-3.32.14s-2.36.29-2.78.36-.82.16-1.19.25-2.52.87-2.76.99S.24,3.77.18,3.92.02,4.75,0,4.9s.3,1.94.31,2.1.06,1.04.14,1.2,1.71,1.75,2,1.9,2.73,1.03,3.13,1.14.83.21,1.26.3,5.3.66,5.83.68c4.27.11,21.34.52,25.6.61,4.27.09,21.35.42,25.62.49,4.27.07,8.54.14,12.81.2,4.27.06,8.54.12,12.81.17,4.27.05,8.65-.31,12.92-.27,4.27.04,8.44.48,12.72.51,4.27.03,8.55.05,12.82.07s8.55.03,12.82.04,8.55.01,12.82.01,21.37-.05,25.64-.07c4.27-.02,8.55-.05,12.82-.08,4.27-.03,8.55-.07,12.82-.11,4.27-.04,3.06-.36,7.33-.41,4.27.06,39.67.61,43.94.64,4.27.03,8.55.05,12.82.06,4.27.02,8.78-.41,13.05-.41,4.27,0,8.31.44,12.59.44s8.55-.01,12.82-.03c4.27-.02,8.55-.04,12.82-.06,4.27-.03,21.01-.53,25.29-.57,4.27-.05,8.89.27,13.16.21,4.27-.06,8.54-.12,12.81-.18,4.27-.07,6-.36,10.27-.44,4.27-.08,11.07.06,15.34-.02s8.54-.18,12.8-.28c4.27-.1,3.56,0,7.82-.11.53-.01,6.02-.24,6.53-.27s5.13-.79,5.54-.9,2.98-.96,3.22-1.11c.1-.06,1.16-.91,1.51-1.33.61-.72.87-1.61.73-2.49-.06-.38-.13-.79-.21-1.2Z%22/%3E%3C/svg%3E");
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-head: "Readex Pro", "Avenir Next", "Century Gothic", "Segoe UI", sans-serif;
  /* Serif italic, kept for the few accent lines: tagline, quote, motto. */
  --font-accent: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); color: var(--navy-deep); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: 0; line-height: 1.2; }

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }

.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head p { font-size: 1.2rem; color: var(--ink-soft); margin: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--persimmon);
  margin-bottom: 16px;
}

/* Headings carry a little extra space below, where a gold stroke used to sit. */
h2 { margin-bottom: 0.7em; }

/* Buttons */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none;
  color: #fff;
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 16px 30px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); transform: translateY(-2px); }

.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: #ffd062; border-color: #ffd062; }

.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--navy-deep); }

.btn--small { padding: 11px 22px; font-size: 0.76rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */

/* Event bar: one line above the menu; it scrolls away with the page */
.event-bar { display: var(--event-bar); justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; padding: 9px 20px; background: var(--navy-deep); color: #fff; font-size: 0.95rem; line-height: 1.45; text-align: center; text-decoration: none; }
.event-bar[hidden] { display: none; }
.event-bar strong { font-weight: 600; }
.event-bar-tag { font-weight: 600; white-space: nowrap; }
.event-bar-gone { white-space: nowrap; }
.event-bar-gone s { color: rgba(255, 255, 255, 0.7); }
.event-bar-sold { background: #c24e20; border-radius: 5px; padding: 2px 7px; margin-left: 3px; font-family: var(--font-head); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; vertical-align: 0.1em; }
.event-bar-cta { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.event-bar:hover .event-bar-cta { color: #fff; }
@media (max-width: 1040px) {
  .event-bar-more { display: none; }
}
@media (max-width: 640px) {
  .event-bar { font-size: 0.88rem; padding: 8px 14px; }
}
@media (max-width: 370px) {
  .event-bar-what { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 246, 238, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { flex-shrink: 0; }
.brand img { height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 4px 26px; }

.site-nav a:not(.btn) {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.site-nav a:not(.btn):hover { color: var(--persimmon); }

/* The Sugoi Station link. Shown or hidden by the switch at the top of this file. */
.site-nav a.nav-station { display: var(--station-link); font-weight: 700; white-space: nowrap; }

/* Hero */

.hero {
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(580px, 50vw, 900px);
}

/* Full-width photo, shifted right so the glass sits clear of the headline; the gradient hides its left edge */
.hero-photo {
  position: absolute;
  top: 0;
  left: 22%;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0b3357 0%, #0b3357 22%, rgba(11, 51, 87, 0.88) 32%, rgba(11, 51, 87, 0.4) 48%, rgba(11, 51, 87, 0) 62%),
    linear-gradient(0deg, rgba(11, 51, 87, 0.3), rgba(11, 51, 87, 0) 30%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: clamp(56px, 7vw, 104px);
  padding-bottom: clamp(56px, 7vw, 104px);
}

.hero-copy { max-width: 600px; }

.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; }
.hero .lede { font-size: 1.28rem; color: rgba(255, 255, 255, 0.9); max-width: 32em; }

.value-stack {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 26px 0 34px;
  padding: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.value-stack li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }

/* Gold ticks kept in the hero: they balance the gold button and label against the navy. */
.value-stack li::before {
  content: "\2713";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.72rem;
}

/* Challenge */

.challenge .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.challenge .tagline { font-family: var(--font-accent); font-style: italic; font-weight: 500; font-size: 1.35rem; line-height: 1.3; color: var(--persimmon); margin-bottom: 0.7em; }

.same-old { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.same-old li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 22px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.same-old li span:last-child { color: var(--ink-soft); font-family: var(--font-body); font-weight: 400; font-size: 1rem; letter-spacing: 0; text-transform: none; text-align: right; }

.same-old li.answer {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 16px 30px -18px rgba(11, 51, 87, 0.7);
}

.same-old li.answer span:last-child { color: var(--gold); font-family: var(--font-accent); font-style: italic; font-weight: 600; font-size: 1.2rem; line-height: 1; }

/* Success band */

.success { background: var(--navy-deep); color: #fff; text-align: center; position: relative; overflow: hidden; }

.success .kana {
  font-family: "Zen Maru Gothic", var(--font-head);
  font-weight: 900;
  font-size: clamp(4.5rem, 15vw, 11rem);
  line-height: 1;
  color: var(--gold);
  margin: 0 0 10px;
}

.success h2 { color: #fff; }
.success p { max-width: 40em; margin-left: auto; margin-right: auto; font-size: 1.2rem; color: rgba(255, 255, 255, 0.88); }
.success .eyebrow { color: #9fc6ea; }

/* Beers */

.beer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.beer {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* The card stays put on hover; only its shadow deepens. The motion belongs to the capybara. */
.beer:hover { box-shadow: 0 22px 40px -24px rgba(18, 38, 58, 0.55); }

.beer .stage {
  position: relative;
  height: 290px;
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.beer .stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.28));
  transition: opacity 0.4s ease;
}

.beer .stage:hover::after { opacity: 0; }

.beer .stage img {
  position: relative;
  z-index: 1;
  height: 92%;
  width: auto;
  margin-bottom: -4px;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
  /* The lift and lean when the capybara picks it up pivot on the bottle's base. */
  transform-origin: 50% 100%;
  /* Leaving hover: the bottle is carried back in, then set down. */
  transition: translate 0.232s linear, transform 0.09s ease 0.232s;
}

/* The capybara. It waits out of frame on the left. When the pointer is over the
   picture (not the text below it) it runs straight
   across the bottom of the card, picks up the bottle as it passes the centre,
   and carries it out to the right. --carry is the distance from the centre of
   the card to just past its edge. */
.beer .stage { container-type: inline-size; --carry: calc(50cqw + 80px); }

.beer .stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: url("../assets/branding/capy-brown.svg") no-repeat center bottom 2px / 86px auto;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45));
  translate: calc(var(--carry) * -1) 0;
  /* Mirrored when not hovered, so it faces left on the way back. The flip has
     no transition and happens while the capybara is out of frame. */
  scale: -1 1;
  /* Leaving hover: bring the bottle back, then carry on out to the left. */
  transition: translate 0.464s linear;
}

/* Pointer over the picture. The capybara crosses the whole card at a steady speed; the bottle joins
   it for the second half, so the two move together. */
.beer .stage:hover::before {
  translate: var(--carry) 0;
  scale: 1 1;
  transition: translate 0.624s linear;
}

.beer .stage:hover img {
  translate: var(--carry) 0;
  transform: translateY(-12px) rotate(5deg);
  transition: transform 0.1s ease 0.21s, translate 0.312s linear 0.312s;
}

.beer .tag {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}

.beer .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.beer h3 { margin-bottom: 2px; }

.beer .style {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--persimmon);
  margin-bottom: 10px;
}

.beer .desc { font-size: 1rem; color: var(--ink-soft); margin-bottom: 14px; }

.beer .pairs { font-size: 0.95rem; margin: auto 0 0; padding-top: 14px; border-top: 1px dashed var(--line); }

/* Tasting notes sit above the pairings and share their label style. */
.beer .tastes { font-size: 0.95rem; margin: auto 0 0; padding-top: 14px; border-top: 1px dashed var(--line); }
.beer .tastes strong { font-family: var(--font-head); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; display: block; color: var(--ink-soft); }
.beer .tastes + .pairs { margin-top: 12px; padding-top: 0; border-top: 0; }
.beer .pairs strong { font-family: var(--font-head); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; display: block; color: var(--ink-soft); }

.beer .awards { font-size: 0.95rem; margin: 12px 0 0; }
.beer .awards strong { font-family: var(--font-head); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; display: block; color: var(--ink-soft); }

/* Line the cards up across each row. Every card shares the same set of rows
   (image, name, style, description, tasting notes, pairings, awards), so the
   dividers and labels sit at the same height on neighbouring cards. Any spare
   space falls at the end of the description and at the bottom of the card.
   Browsers without subgrid keep the simpler layout above. */
@supports (grid-template-rows: subgrid) {
  .beer {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 7;
    row-gap: 0;
  }
  .beer .body {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 6;
    row-gap: 0;
    align-content: start;
  }
  .beer .tastes { margin-top: 0; }
}

/* Guide */

.guide .wrap {
  display: grid;
  /* The portrait is kept small on purpose: it supports the story, it does not lead the page.
     The quote sits under the story text, beside the photo. */
  grid-template-columns: 320px 1fr;
  grid-template-areas: "photo text" "photo aside";
  grid-template-rows: auto 1fr;
  gap: 30px clamp(32px, 5vw, 72px);
  align-items: start;
}

.portrait { grid-area: photo; }
.story-text { grid-area: text; }
.story-aside { grid-area: aside; }
.story-aside blockquote { margin-top: 0; }
.portrait figcaption span { display: block; line-height: 1.9; }

.portrait { position: relative; margin: 6px 0 0; width: 100%; }

.portrait img {
  width: 100%;
  /* Portrait crop of the landscape photo, centred on Boris. */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 36% center;
}

.portrait figcaption {
  position: relative;
  margin-top: 18px;
  font-size: 0.78rem;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.portrait figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy-deep);
  line-height: 1.2;
}

.guide .lead { font-size: 1.28rem; line-height: 1.5; color: var(--navy-deep); }

.facts {
  list-style: none;
  margin: 34px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.facts strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 4px;
}

blockquote {
  margin: 26px 0 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--gold);
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
  font-style: italic;
}

blockquote cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--font-head); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }

/* Process */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; list-style: none; margin: 0; padding: 0; }

.steps li { position: relative; counter-increment: step; }

.steps img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 24px;
}

.steps li:nth-child(2) img { object-position: 45% center; }
.steps li:nth-child(3) img { object-position: 35% center; }

/* Step number in the logo's pebble shape, sitting on the photo's top-left corner. */
.steps li::before {
  content: counter(step);
  position: absolute;
  z-index: 1;
  top: -14px;
  left: -10px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 54px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  color: #fff;
  background: var(--navy);
  -webkit-mask: var(--pebble) center / 100% 100% no-repeat;
  mask: var(--pebble) center / 100% 100% no-repeat;
}

.steps li:nth-child(2)::before { background: var(--persimmon); }
.steps li:nth-child(3)::before { background: #2f8a63; }

.steps h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.14em; text-transform: uppercase; }

.steps p { color: var(--ink-soft); margin: 0; }

/* Proof */

.medals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

/* The medal row sits under the three steps, as plain information. */
.steps + .medals { margin-top: clamp(48px, 6vw, 72px); }

.medal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
}

.medal-card .disc {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.35);
}

.disc--gold { background: #d9a21b; }
.disc--silver { background: #8d9aa6; }
.disc--bronze { background: #b0703a; }

.medal-card h3 { font-size: 1.12rem; margin-bottom: 4px; }
.medal-card p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.region { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: var(--radius); padding: 26px 28px; }
.region:nth-child(2) { border-top-color: var(--persimmon); }
.region:nth-child(3) { border-top-color: #2f8a63; }
.region p { margin: 0; color: var(--ink-soft); }
.region .more { font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.region .more:hover { color: var(--persimmon); }

.proof-note { text-align: center; margin: 36px auto 0; max-width: 46em; color: var(--ink-soft); }

/* Benefits */

.benefits .wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.benefits .mark { max-width: 340px; margin: 0 auto; }
.benefits .motto { text-align: center; font-family: var(--font-accent); font-style: italic; font-size: 1.12rem; font-weight: 500; color: var(--navy); margin: 22px 0 0; line-height: 1.5; }

.ticks { list-style: none; margin: 26px 0 0; padding: 0; }

/* No marker: the bold opening phrase and the dividing lines carry the list. */
.ticks li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks li strong { font-family: var(--font-body); font-weight: 700; }


/* CTA */

.cta { background: var(--navy); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta h2 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.cta p { font-size: 1.2rem; color: rgba(255, 255, 255, 0.9); max-width: 36em; margin: 0 auto 32px; }
.cta .btn-row { justify-content: center; }
.cta .capy { width: 120px; margin: 0 auto 26px; }
.cta .trade { margin: 34px auto 0; font-size: 1.02rem; color: rgba(255, 255, 255, 0.82); }
.cta .trade a { color: #fff; font-weight: 700; }

/* Footer */

.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.85); padding: 56px 0 28px; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-grid img { width: 200px; }
.footer-grid h4 { font-family: var(--font-head); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: #9fc6ea; margin: 0 0 12px; }
.footer-grid p { margin: 0 0 6px; }
.site-footer a.footer-form { font-weight: 600; }
.site-footer .ig { width: 1.15em; height: 1.15em; vertical-align: -0.2em; margin-right: 0.45em; }

.legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.88rem; color: rgba(255, 255, 255, 0.62); }

/* Find page: venues by region, each with a static map picture and numbered pins */

.find-intro { padding-bottom: clamp(16px, 2.5vw, 28px); }
.find-intro .section-head { margin-bottom: 0; }

/* The region buttons stick just under the site header so they stay reachable. */
.find-jumpbar { position: sticky; top: 69px; z-index: 20; background: rgba(250, 246, 238, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 10px 0; }
.find-intro h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); color: var(--navy-deep); }
.find-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.find-jump a {
  font-family: var(--font-head); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--navy); border: 1px solid var(--line); background: var(--paper);
  padding: 9px 18px; border-radius: 999px;
}
.find-jump a:hover { border-color: var(--navy); }

.find-region { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); scroll-margin-top: 40px; }
.find-region:nth-of-type(odd) { background: var(--paper); }
.find-region h2 { margin-bottom: 0.8em; }

.venue-map { position: relative; margin: 0 0 30px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.venue-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.venue-map figcaption { position: absolute; right: 0; bottom: 0; font-size: 0.68rem; color: var(--ink-soft); background: rgba(255, 255, 255, 0.82); padding: 2px 8px; border-top-left-radius: 8px; }
.venue-map figcaption a { color: inherit; }

.pin {
  position: absolute; z-index: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); color: #fff; border: 2px solid #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 0.66rem; line-height: 1; text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.pin:hover, .pin:focus-visible { z-index: 2; background: var(--persimmon); transform: translate(-50%, -50%) scale(1.25); }

.venues { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; }
.venues li {
  break-inside: avoid; display: grid; grid-template-columns: 30px 1fr auto; column-gap: 12px; align-items: start;
  padding: 12px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px;
}
.venues li:target { background: rgba(240, 184, 60, 0.18); }
.venues .num {
  grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 0.7rem;
}
.venues .what strong { font-weight: 700; color: var(--ink); }
.venues .kind {
  margin-left: 10px; font-family: var(--font-head); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--persimmon); white-space: nowrap;
}
.venues .where { grid-column: 2; font-size: 0.92rem; color: var(--ink-soft); }
.venues .maplink {
  grid-column: 3; grid-row: 1 / span 2; align-self: center;
  font-family: var(--font-head); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy);
}
.find-outro { padding-top: clamp(24px, 4vw, 48px); }
.find-outro .proof-note { margin-top: 0; }

@media (max-width: 860px) {
  .venues { columns: 1; }
  .pin { width: 20px; height: 20px; font-size: 0.58rem; border-width: 1.5px; }
}

/* Responsive */

/* Mid widths: tighten the menu so it stays on one line with the Sugoi Station link shown. */
@media (max-width: 1020px) {
  .site-nav { gap: 4px 18px; }
  .site-nav a { white-space: nowrap; }
  .site-nav a:not(.btn) { font-size: 0.74rem; letter-spacing: 0.13em; }
}

@media (max-width: 910px) {
  .site-nav { gap: 4px 13px; }
  .site-nav a:not(.btn) { font-size: 0.7rem; letter-spacing: 0.09em; }
  .site-nav .btn--small { padding: 11px 16px; }
}

@media (max-width: 1040px) {
  .beer-grid { grid-template-columns: repeat(2, 1fr); }
  .medals { grid-template-columns: repeat(2, 1fr); }
  /* With an odd number of cards in two columns, the last one spans the row. */
  .medals .medal-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .hero .wrap, .challenge .wrap, .guide .wrap, .benefits .wrap { grid-template-columns: 1fr; }
  .guide .wrap { grid-template-areas: "photo" "text" "aside"; grid-template-rows: auto; }
  .hero { display: block; min-height: 0; }
  .hero-photo { position: static; left: 0; width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: 40% center; }
  .hero::after { display: none; }
  .hero-copy { max-width: none; }
  .portrait { max-width: 300px; }
  /* The text links go; the Sugoi Station link stays if it is switched on. */
  .site-nav a:not(.btn):not(.nav-station) { display: none; }
  .site-nav { gap: 4px 16px; }
  .steps, .regions { grid-template-columns: 1fr; }
  .steps { gap: 40px; }
  .facts { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .beer-grid { grid-template-columns: 1fr; }
  .brand img { height: 36px; }
  .site-nav { gap: 4px 12px; }
  .site-nav a.nav-station { font-size: 0.64rem; letter-spacing: 0.1em; }
  .site-nav .btn--small { padding: 10px 14px; font-size: 0.7rem; }
}

/* Narrow phones: the name goes on two lines so the logo, link and button all fit. */
@media (max-width: 400px) {
  .site-header .wrap { gap: 12px; }
  .site-nav a.nav-station { line-height: 1.25; white-space: normal; width: min-content; }
  .same-old li { flex-direction: column; gap: 2px; }
  .same-old li span:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .beer, .beer .stage img, .beer .stage::before, .beer .stage::after { transition: none; }
  .beer .stage:hover img { translate: none; transform: none; }
  .beer .stage::before, .beer .stage:hover::before { display: none; }
  .beer .stage:hover::after { opacity: 1; }
}

/* "Page not found" page.
   The pane between the header and footer is baby blue. The drawing is a closely cropped
   picture with a transparent background, so it sits on the pane with no visible edge.
   Its size follows the window height, so the heading, text and button stay in view. */
body.notfound-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body.notfound-page main { flex: 1; display: flex; }
.notfound { flex: 1; display: flex; align-items: center; background: #cae5ec; padding-top: clamp(20px, 4vh, 48px); padding-bottom: clamp(24px, 5vh, 56px); }
.notfound .wrap { width: 100%; }
.notfound .section-head p { color: var(--navy-deep); }
.notfound .section-head p + p { margin-top: 26px; }
.notfound h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 3.8vw, 2.8rem); letter-spacing: -0.01em; }
.notfound .btn { padding: 13px 24px; font-size: 0.76rem; }
.notfound-art {
  display: block;
  width: min(100%, 470px, max(170px, (100vh - 470px) * 1.015));
  width: min(100%, 470px, max(170px, (100svh - 470px) * 1.015));
  height: auto;
  aspect-ratio: 800 / 788;
  margin: 0 auto clamp(22px, 4vh, 36px);
}
