/* ==========================================================================
   TapListLive design system
   Taproom in daylight: oat paper and copper kettle, hop green in the margins.
   Alfa Slab One over Archivo. Letterpress badges, ink texture, chalk energy.
   Everything is printed on paper. Only the footer keeps the roast of the bar.
   ========================================================================== */

:root {
  /* --- brief palette --- */
  --bg: #FCF7EE;
  --surface: #FFFFFF;
  --ink: #1E1710;
  --primary: #8A5A1B;
  --accent: #6F9A2E;
  --muted: #6E6252;

  /* --- oat paper stack, 100 is the brightest sheet --- */
  --oat-100: #FFFFFF;
  --oat-200: #FDFAF3;
  --oat-300: #FCF7EE;
  --oat-400: #F7F0E1;
  --oat-500: #F1E7D3;
  --oat-600: #E7D9BF;
  --oat-700: #D8C6A5;
  --oat-800: #C0A981;

  /* --- roast, kept only for the footer band --- */
  --roast-900: #17110B;
  --roast-800: #241C13;
  --roast-700: #33281B;

  /* --- copper kettle --- */
  --copper-100: #F6E7CC;
  --copper-200: #EBD0A4;
  --copper-300: #D9A75F;
  --copper-400: #B9812F;
  --copper-500: #8A5A1B;
  --copper-600: #744913;
  --copper-700: #5B380E;

  /* --- hop green --- */
  --hop-100: #E8F2D6;
  --hop-200: #CDE4A6;
  --hop-300: #A5CC6C;
  --hop-400: #86B245;
  --hop-500: #6F9A2E;
  --hop-600: #557A20;
  --hop-700: #3F5B16;

  /* --- ink tints, all measured against oat paper --- */
  --ink-100: #100C07;
  --ink-90: #2B221A;
  --ink-70: #3E332A;
  --ink-50: #5A4E42;
  --ink-20: rgba(30, 23, 16, 0.2);
  --ink-10: rgba(30, 23, 16, 0.1);
  --ink-06: rgba(30, 23, 16, 0.06);

  /* --- spacing scale --- */
  --s0: 0.25rem;
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2rem;
  --s6: 2.75rem;
  --s7: 3.5rem;
  --s8: 4.5rem;
  --s9: 6rem;
  --s10: 8rem;

  /* --- radii --- */
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* --- shadows and letterpress presses, soft and neutral on paper --- */
  --lift-1: 0 1px 0 rgba(30, 23, 16, 0.05), 0 6px 16px rgba(64, 48, 26, 0.1);
  --lift-2: 0 2px 0 rgba(30, 23, 16, 0.06), 0 14px 32px rgba(64, 48, 26, 0.14);
  --press-in: inset 0 2px 0 rgba(30, 23, 16, 0.07), inset 0 -1px 0 rgba(255, 255, 255, 0.9);
  --press-deep: inset 0 3px 8px rgba(64, 48, 26, 0.12), inset 0 -1px 0 rgba(255, 255, 255, 0.85);
  --emboss: 0 1px 0 rgba(255, 255, 255, 0.88);
  --ring: 0 0 0 3px var(--oat-100), 0 0 0 6px var(--hop-600);

  /* --- type --- */
  --font-display: "Alfa Slab One", "Rockwell", "Bookman Old Style", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --t-xs: 0.78rem;
  --t-sm: 0.88rem;
  --t-base: 1.02rem;
  --t-md: 1.16rem;
  --t-lg: 1.4rem;
  --t-xl: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  --t-2xl: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem);
  --t-3xl: clamp(2.3rem, 1.4rem + 3.9vw, 4rem);
  --t-num: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem);

  /* --- layout --- */
  --wrap: 1220px;
  --wrap-narrow: 780px;
  --rail: 3px;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.68;
  font-weight: 400;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  position: relative;
}

/* Laid paper grain plus a warm wash, laid over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(92deg,
      rgba(30, 23, 16, 0.045) 0px,
      rgba(30, 23, 16, 0) 2px,
      rgba(255, 255, 255, 0.55) 4px,
      rgba(30, 23, 16, 0.03) 7px),
    repeating-linear-gradient(178deg,
      rgba(30, 23, 16, 0.032) 0px,
      rgba(30, 23, 16, 0) 3px,
      rgba(30, 23, 16, 0.022) 9px),
    radial-gradient(circle at 18% 12%, rgba(138, 90, 27, 0.09), transparent 46%),
    radial-gradient(circle at 84% 78%, rgba(111, 154, 46, 0.07), transparent 52%);
}

/* fine ink dust */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    radial-gradient(rgba(30, 23, 16, 0.16) 0.5px, transparent 0.6px),
    radial-gradient(rgba(138, 90, 27, 0.14) 0.5px, transparent 0.6px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 2px 3px;
}

main,
header,
footer,
section { position: relative; z-index: 1; }

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

a {
  color: var(--copper-500);
  text-decoration-color: rgba(138, 90, 27, 0.5);
  text-underline-offset: 3px;
}
a:hover { color: var(--copper-700); text-decoration-color: var(--copper-600); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.002em;
  margin: 0 0 var(--s3);
  color: var(--ink-100);
  text-shadow: var(--emboss);
}

h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); line-height: 1.18; }
h4 { font-size: var(--t-md); }

p { margin: 0 0 var(--s3); }
ul, ol { margin: 0 0 var(--s3); padding-left: 1.15rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 700; color: var(--ink-100); }

::selection { background: var(--copper-200); color: var(--ink-100); }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(100% - 2.5rem, var(--wrap-narrow));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s3);
  top: -4rem;
  z-index: 999;
  background: var(--hop-600);
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: var(--r-sm);
  box-shadow: var(--lift-2);
  transition: top 0.16s ease-out;
}
.skip-link:focus { top: var(--s3); }

:focus-visible {
  outline: 3px solid var(--hop-600);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* ==========================================================================
   Letterpress furniture: rails, rivets, stamps, badges
   ========================================================================== */

/* A copper tap rail with pressed rivets. Used as a section divider. */
.rail {
  height: 14px;
  border-top: var(--rail) solid var(--copper-500);
  border-bottom: 1px solid var(--oat-700);
  background-image:
    linear-gradient(180deg, rgba(138, 90, 27, 0.2), rgba(30, 23, 16, 0.05)),
    radial-gradient(circle at 12px 7px, var(--copper-300) 1.6px, rgba(91, 56, 14, 0.55) 2.4px, transparent 3px);
  background-size: auto, 42px 14px;
  box-shadow: var(--press-in);
}

.rail--thin { height: 8px; border-top-width: 2px; background-size: auto, 28px 8px; }

/* Section eyebrow, set like a pressed metal plate */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--hop-700);
  background: var(--hop-100);
  border: 1px solid rgba(85, 122, 32, 0.42);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.95rem;
  box-shadow: var(--press-in);
  margin-bottom: var(--s3);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hop-600);
  box-shadow: 0 0 0 3px rgba(111, 154, 46, 0.24);
}

/* Letterpress badge: two pressed rings around an icon */
.badge {
  --badge-size: 62px;
  width: var(--badge-size);
  height: var(--badge-size);
  flex: 0 0 var(--badge-size);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #FFFFFF, transparent 58%),
    linear-gradient(165deg, var(--oat-200), var(--oat-500));
  border: 2px solid var(--copper-500);
  box-shadow:
    inset 0 0 0 3px var(--oat-100),
    inset 0 0 0 4.5px rgba(138, 90, 27, 0.45),
    inset 0 3px 7px rgba(64, 48, 26, 0.16),
    0 2px 0 rgba(30, 23, 16, 0.1);
  color: var(--copper-600);
}
.badge svg { width: 56%; height: 56%; display: block; }
.badge--hop { color: var(--hop-700); border-color: var(--hop-600); }
.badge--hop { box-shadow:
    inset 0 0 0 3px var(--oat-100),
    inset 0 0 0 4.5px rgba(85, 122, 32, 0.42),
    inset 0 3px 7px rgba(64, 48, 26, 0.16),
    0 2px 0 rgba(30, 23, 16, 0.1); }
.badge--lg { --badge-size: 84px; }
.badge--sm { --badge-size: 40px; }

/* A stamped mark that presses into the page on reveal */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--t-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper-700);
  background: var(--oat-200);
  border: 2px solid var(--copper-500);
  border-radius: var(--r-sm);
  padding: 0.55rem 0.95rem;
  box-shadow: var(--press-in), 0 2px 0 rgba(30, 23, 16, 0.12);
  transform: rotate(-1.2deg);
}
.stamp:nth-child(2n) { transform: rotate(1.4deg); }
.stamp:nth-child(3n) { transform: rotate(-0.6deg); }

/* Chalk panel: a pressed oat sheet with a hand ruled border */
.chalk {
  background:
    radial-gradient(circle at 22% 18%, #FFFFFF, transparent 42%),
    radial-gradient(circle at 78% 82%, rgba(255, 255, 255, 0.85), transparent 46%),
    linear-gradient(180deg, var(--oat-100), var(--oat-400));
  border: 1px solid var(--oat-700);
  border-radius: var(--r-md);
  box-shadow: var(--press-in), 0 8px 22px rgba(64, 48, 26, 0.08);
  position: relative;
}
.chalk::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(138, 90, 27, 0.38);
  border-radius: var(--r-sm);
  pointer-events: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.55rem;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.16s ease-out, color 0.16s ease-out;
}

.btn--primary {
  background: linear-gradient(180deg, #96631E, #7A4E13);
  color: #FFFFFF;
  border-color: var(--copper-700);
  box-shadow: 0 4px 0 var(--copper-700), 0 8px 18px rgba(64, 48, 26, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  text-shadow: 0 1px 0 rgba(30, 23, 16, 0.38);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #7F5115, #63400F);
  color: #FFFFFF;
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--copper-700), 0 5px 12px rgba(64, 48, 26, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.btn--primary:active { transform: translateY(4px); box-shadow: 0 0 0 var(--copper-700), inset 0 3px 7px rgba(30, 23, 16, 0.4); }

.btn--hop {
  background: linear-gradient(180deg, #5F8825, #47661A);
  color: #FFFFFF;
  border-color: var(--hop-700);
  box-shadow: 0 4px 0 var(--hop-700), 0 8px 18px rgba(64, 48, 26, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-shadow: 0 1px 0 rgba(30, 23, 16, 0.32);
}
.btn--hop:hover { transform: translateY(2px); color: #FFFFFF;
  background: linear-gradient(180deg, #4E7020, #3A5514);
  box-shadow: 0 2px 0 var(--hop-700), 0 5px 12px rgba(64, 48, 26, 0.24); }

.btn--ghost {
  background: transparent;
  color: var(--copper-600);
  border-color: rgba(138, 90, 27, 0.45);
  box-shadow: inset 0 -2px 0 rgba(30, 23, 16, 0.08);
}
.btn--ghost:hover {
  background: var(--oat-400);
  color: var(--copper-700);
  border-color: var(--copper-500);
}

.btn--block { width: 100%; }
.btn--sm { padding: 0.62rem 1.05rem; font-size: var(--t-xs); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(252, 247, 238, 0.92);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--oat-700);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: background-color 0.2s ease-out, box-shadow 0.2s ease-out;
}
.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background-image:
    linear-gradient(90deg, var(--copper-600), var(--copper-400) 40%, var(--hop-600) 40%, var(--hop-600) 42%, var(--copper-500) 42%, var(--copper-600));
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 22px rgba(64, 48, 26, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: 0.75rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink-100);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  text-shadow: var(--emboss);
  flex: 0 0 auto;
}
.wordmark svg { width: 38px; height: 38px; flex: 0 0 38px; }
.wordmark span em { font-style: normal; color: var(--copper-500); }
.wordmark:hover { color: var(--copper-700); }

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--ink-70);
  text-decoration: none;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--r-xs);
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  color: var(--copper-700);
  border-bottom-color: var(--copper-500);
  background: rgba(138, 90, 27, 0.08);
}

.header-cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  width: 46px; height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--oat-200);
  border: 2px solid var(--copper-500);
  border-radius: var(--r-sm);
  color: var(--copper-600);
  cursor: pointer;
  margin-left: auto;
  box-shadow: var(--press-in);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    margin: 0;
    background: var(--surface);
    border-bottom: 3px solid var(--copper-500);
    box-shadow: 0 20px 40px rgba(64, 48, 26, 0.18);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s2) var(--s3) var(--s4);
    width: min(100% - 2.5rem, var(--wrap));
    margin-inline: auto;
  }
  .site-nav li { margin: 0; }
  .site-nav a {
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid var(--oat-600);
    font-size: var(--t-md);
  }
  .site-nav .nav-cta { margin-top: var(--s3); }
  .site-nav .nav-cta a {
    border: 2px solid var(--copper-700);
    background: linear-gradient(180deg, #96631E, #7A4E13);
    color: #FFFFFF;
    text-align: center;
    border-radius: var(--r-sm);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.07em;
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: var(--s9) 0; }
.section--tight { padding: var(--s7) 0; }
.section--surface { background: var(--surface); }
.section--deep {
  background:
    linear-gradient(180deg, var(--oat-500), var(--oat-400) 60%, var(--oat-500));
}
.section-head { max-width: 62ch; margin-bottom: var(--s6); }
.section-head p { color: var(--ink-70); font-size: var(--t-md); margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { margin-inline: auto; }

/* ==========================================================================
   Hero, with the pour fill
   ========================================================================== */

.hero {
  padding: var(--s8) 0 var(--s9);
  background:
    radial-gradient(ellipse at 76% 22%, rgba(138, 90, 27, 0.15), transparent 58%),
    radial-gradient(ellipse at 10% 84%, rgba(111, 154, 46, 0.13), transparent 52%),
    linear-gradient(180deg, var(--oat-200), var(--oat-400));
  border-bottom: 1px solid var(--oat-700);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: var(--s7);
  align-items: center;
}

.hero h1 { margin-bottom: var(--s4); max-width: 15ch; }
.hero h1 .pour-word {
  color: var(--copper-600);
  position: relative;
  white-space: nowrap;
}
.hero h1 .pour-word::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.12em;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--copper-600), var(--copper-400), var(--hop-500));
  transform-origin: left center;
  animation: rule-draw 1.1s cubic-bezier(0.22, 0.9, 0.28, 1) 0.35s both;
}
@keyframes rule-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-lede {
  font-size: var(--t-md);
  color: var(--ink-70);
  max-width: 52ch;
  margin-bottom: var(--s5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s6);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding-top: var(--s4);
  border-top: 1px dashed rgba(30, 23, 16, 0.24);
}

/* --- hero art: framed photo with a now pouring ticket and a pint --- */
.hero-art { position: relative; }

.photo-frame {
  position: relative;
  border: var(--rail) solid var(--copper-500);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--lift-2), inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  background: var(--oat-400);
}
.photo-frame img {
  width: 100%;
  filter: saturate(1.04) contrast(1.02) brightness(1.05);
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 251, 243, 0.14), rgba(138, 90, 27, 0.12)),
    repeating-linear-gradient(0deg, rgba(30, 23, 16, 0.07) 0 2px, transparent 2px 4px);
  pointer-events: none;
}
.photo-frame--flat::after { background: linear-gradient(180deg, rgba(255, 251, 243, 0.12), rgba(138, 90, 27, 0.09)); }

.tap-ticket {
  position: absolute;
  left: -14px;
  bottom: 26px;
  z-index: 3;
  background: var(--surface);
  border: 2px solid var(--copper-500);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  min-width: 208px;
  box-shadow: var(--lift-2);
  transform: rotate(-1.6deg);
}
.tap-ticket .ticket-label {
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hop-700);
  font-weight: 700;
}
.tap-ticket .ticket-beer {
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--ink-100);
  margin: 0.2rem 0 0.35rem;
  line-height: 1.15;
}
.tap-ticket .ticket-meta {
  font-size: var(--t-xs);
  color: var(--muted);
  letter-spacing: 0.05em;
}
.tap-ticket .ticket-stamp {
  position: absolute;
  right: -16px;
  top: -16px;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.62rem;
  line-height: 1.05;
  text-align: center;
  color: var(--hop-700);
  background: var(--oat-200);
  border: 2px solid var(--hop-600);
  box-shadow: inset 0 0 0 3px var(--oat-100), inset 0 0 0 4px rgba(111, 154, 46, 0.45), 0 2px 0 rgba(30, 23, 16, 0.12);
  transform: rotate(-13deg);
  animation: stamp-press 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) 1.5s both;
}

@keyframes stamp-press {
  0% { transform: rotate(-30deg) scale(1.7); opacity: 0; }
  55% { transform: rotate(-9deg) scale(0.93); opacity: 1; }
  78% { transform: rotate(-14deg) scale(1.04); }
  100% { transform: rotate(-13deg) scale(1); opacity: 1; }
}

/* the pint glass that fills */
.pour-glass {
  position: absolute;
  right: -10px;
  top: -26px;
  z-index: 3;
  width: 96px;
  height: 132px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 231, 211, 0.7));
  border: 2px solid rgba(30, 23, 16, 0.3);
  border-top-width: 3px;
  border-radius: 6px 6px 16px 16px;
  clip-path: polygon(4% 0, 96% 0, 84% 100%, 16% 100%);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(64, 48, 26, 0.2);
}
.pour-glass .beer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0;
  background: linear-gradient(180deg, #E0A244, #B9812F 55%, #8A5A1B);
  animation: pour-fill 2.4s cubic-bezier(0.4, 0.05, 0.25, 1) 0.5s both;
}
.pour-glass .foam {
  position: absolute;
  left: -6%; right: -6%;
  bottom: 0;
  height: 20px;
  border-radius: 50% 50% 30% 30% / 100% 100% 20% 20%;
  background: #FFFDF6;
  box-shadow: 0 2px 5px rgba(64, 48, 26, 0.2), inset 0 -3px 0 rgba(138, 90, 27, 0.12);
  animation: foam-rise 2.4s cubic-bezier(0.4, 0.05, 0.25, 1) 0.5s both;
}
.pour-glass .bubble {
  position: absolute;
  bottom: 8%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255, 250, 235, 0.85);
  animation: bubble-rise 2.9s linear infinite;
}
.pour-glass .bubble:nth-of-type(1) { left: 26%; animation-delay: 2.4s; }
.pour-glass .bubble:nth-of-type(2) { left: 48%; width: 4px; height: 4px; animation-delay: 3.1s; }
.pour-glass .bubble:nth-of-type(3) { left: 66%; width: 6px; height: 6px; animation-delay: 3.7s; }

@keyframes pour-fill { from { height: 0; } to { height: 74%; } }
@keyframes foam-rise { from { bottom: 0; } to { bottom: 70%; } }
@keyframes bubble-rise {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  16% { opacity: 0.85; }
  100% { transform: translateY(-72px) scale(1.1); opacity: 0; }
}

/* ==========================================================================
   Problem: chalk slates
   ========================================================================== */

.slate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: var(--s4);
}
.slate {
  padding: var(--s5) var(--s4) var(--s4);
  position: relative;
}
.slate h3 {
  font-size: 1.22rem;
  color: var(--ink-100);
  margin-bottom: 0.6rem;
  padding-right: 1.5rem;
}
.slate p { color: var(--ink-70); font-size: var(--t-sm); margin-bottom: var(--s3); }
.cost-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--copper-700);
  background: rgba(138, 90, 27, 0.1);
  border: 1px solid rgba(138, 90, 27, 0.42);
  border-left: 4px solid var(--copper-500);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  padding: 0.35rem 0.7rem;
  letter-spacing: 0.02em;
}
.slate-num {
  position: absolute;
  top: 10px; right: 14px;
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: rgba(30, 23, 16, 0.11);
  line-height: 1;
  text-shadow: none;
}

/* ==========================================================================
   Solution: numbered steps along a copper rail
   ========================================================================== */

.how-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: var(--s7);
  align-items: start;
}
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  left: 27px; top: 12px; bottom: 24px;
  width: 3px;
  background: linear-gradient(180deg, var(--copper-400), rgba(138, 90, 27, 0.16));
  border-radius: 3px;
}
.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: var(--s3);
  padding-bottom: var(--s5);
  position: relative;
}
.step-num {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #FFFFFF;
  background: linear-gradient(180deg, #9E671E, #7A4E13);
  border: 2px solid var(--copper-700);
  box-shadow: 0 3px 0 rgba(30, 23, 16, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  text-shadow: 0 1px 0 rgba(30, 23, 16, 0.4);
  position: relative;
  z-index: 2;
}
.step:nth-child(even) .step-num {
  background: linear-gradient(180deg, #5F8825, #47661A);
  border-color: var(--hop-700);
}
.step h3 { margin-bottom: 0.35rem; font-size: 1.2rem; padding-top: 0.5rem; }
.step p { color: var(--ink-70); font-size: var(--t-sm); margin-bottom: 0; }
.how-note {
  margin-top: var(--s4);
  padding: var(--s3) var(--s4);
  border-left: 4px solid var(--hop-500);
  background: rgba(111, 154, 46, 0.11);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--t-sm);
  color: var(--ink-70);
}
.how-media { position: sticky; top: 120px; }
.how-caption {
  margin-top: var(--s2);
  font-size: var(--t-xs);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   Features: badge cards with the seal pressed over the top edge
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: var(--s6) var(--s4);
  margin-top: var(--s8);
}
.feature {
  position: relative;
  background: linear-gradient(180deg, var(--oat-100), var(--oat-200));
  border: 1px solid var(--oat-600);
  border-top: 2px solid var(--copper-400);
  border-radius: var(--r-md);
  padding: calc(var(--s7) + 6px) var(--s4) var(--s4);
  box-shadow: var(--lift-1);
  transition: transform 0.16s ease-out, border-color 0.16s ease-out;
}
.feature:hover { transform: translateY(-3px); border-color: var(--copper-400); }
.feature .badge {
  position: absolute;
  top: -32px;
  left: var(--s4);
}
.feature h3 { font-size: 1.14rem; margin-bottom: 0.5rem; }
.feature p { color: var(--ink-70); font-size: var(--t-sm); margin-bottom: 0; }

/* ==========================================================================
   Outcomes: big numerals with a pour meter under each
   ========================================================================== */

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: var(--s5);
}
.outcome {
  padding: var(--s5) var(--s4);
  background: var(--oat-100);
  border: 1px solid var(--oat-600);
  border-radius: var(--r-md);
  box-shadow: var(--press-in), 0 4px 12px rgba(64, 48, 26, 0.07);
}
.outcome-num {
  font-family: var(--font-display);
  font-size: var(--t-num);
  line-height: 0.95;
  color: var(--copper-600);
  display: block;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.9);
}
.outcome:nth-child(2n) .outcome-num { color: var(--hop-700); }
.outcome-label {
  display: block;
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.55rem 0 0.9rem;
  font-weight: 700;
}
.meter {
  height: 9px;
  border-radius: var(--r-pill);
  background: var(--oat-500);
  box-shadow: inset 0 1px 3px rgba(64, 48, 26, 0.22), 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  margin-bottom: var(--s3);
}
.meter i {
  display: block;
  height: 100%;
  width: var(--fill, 62%);
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--copper-600), var(--copper-400));
  transform-origin: left center;
}
.outcome:nth-child(2n) .meter i { background: linear-gradient(90deg, var(--hop-700), var(--hop-400)); }
.is-revealed .meter i { animation: meter-pour 1.3s cubic-bezier(0.3, 0.9, 0.3, 1) both; }
@keyframes meter-pour { from { transform: scaleX(0.02); } to { transform: scaleX(1); } }
.outcome p { font-size: var(--t-sm); color: var(--ink-70); margin-bottom: 0; }

/* ==========================================================================
   Testimonials: beer coasters
   ========================================================================== */

.coaster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--s5);
}
.testimonial {
  position: relative;
  margin: 0;
  padding: var(--s5) var(--s4) var(--s4);
  background:
    radial-gradient(circle at 50% -30%, rgba(138, 90, 27, 0.1), transparent 60%),
    linear-gradient(180deg, var(--oat-100), var(--oat-300));
  border: 2px solid var(--oat-700);
  border-radius: var(--r-lg);
  box-shadow: var(--lift-1);
}
.testimonial::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(138, 90, 27, 0.32);
  border-radius: calc(var(--r-lg) - 5px);
  pointer-events: none;
}
.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--copper-300);
  display: block;
  margin-bottom: 0.4rem;
  text-shadow: none;
}
.testimonial p {
  font-size: var(--t-sm);
  color: var(--ink-90);
  margin-bottom: var(--s3);
  position: relative;
}
.testimonial figcaption {
  border-top: 1px dashed rgba(30, 23, 16, 0.24);
  padding-top: var(--s2);
  font-size: var(--t-xs);
}
.testimonial .who {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--ink-100);
  letter-spacing: 0.01em;
}
.testimonial .where { display: block; color: var(--muted); letter-spacing: 0.05em; }

.results-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--s3);
  margin-top: var(--s6);
  padding: var(--s4);
  border-radius: var(--r-md);
  background: var(--oat-500);
  border: 1px solid rgba(138, 90, 27, 0.3);
  box-shadow: var(--press-deep);
}
.result { text-align: center; padding: var(--s2); }
.result b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--hop-700);
  line-height: 1.05;
}
.result span {
  display: block;
  font-size: var(--t-xs);
  color: var(--ink-70);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ==========================================================================
   Pricing: keg hang tags
   ========================================================================== */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: var(--s5);
  align-items: start;
}
.tier {
  position: relative;
  background: linear-gradient(180deg, var(--oat-100), var(--oat-300));
  border: 2px solid var(--oat-700);
  border-radius: var(--r-md);
  padding: var(--s7) var(--s4) var(--s4);
  box-shadow: var(--lift-1);
}
/* the punched hole of a keg tag */
.tier::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 9px;
  border-radius: var(--r-pill);
  background: var(--oat-600);
  box-shadow: inset 0 2px 4px rgba(64, 48, 26, 0.4), 0 1px 0 rgba(255, 255, 255, 0.95);
}
.tier--featured {
  border-color: var(--copper-500);
  background: linear-gradient(180deg, #FFFDF7, var(--oat-400));
  box-shadow: var(--lift-2), 0 0 0 1px rgba(138, 90, 27, 0.3);
}
.tier-flag {
  position: absolute;
  top: -15px;
  right: -8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: linear-gradient(180deg, #96631E, #7A4E13);
  border: 2px solid var(--copper-700);
  border-radius: var(--r-xs);
  padding: 0.35rem 0.7rem;
  transform: rotate(3deg);
  box-shadow: 0 3px 0 rgba(30, 23, 16, 0.18);
  text-shadow: 0 1px 0 rgba(30, 23, 16, 0.35);
}
.tier h3 { font-size: 1.3rem; margin-bottom: 0.15rem; }
.tier .tier-for {
  display: block;
  font-size: var(--t-xs);
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: var(--s3);
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--ink-100);
  line-height: 1;
  margin-bottom: 0.2rem;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.9);
}
.tier-price small {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-shadow: none;
}
.tier-taps {
  font-size: var(--t-xs);
  color: var(--hop-700);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--s3);
}
.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s4);
  border-top: 1px dashed rgba(30, 23, 16, 0.22);
  padding-top: var(--s3);
}
.tier li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.55rem;
  font-size: var(--t-sm);
  color: var(--ink-70);
  margin-bottom: 0.55rem;
}
.tier li svg { width: 16px; height: 16px; margin-top: 5px; color: var(--hop-600); }
.billing-note {
  margin-top: var(--s5);
  text-align: center;
  font-size: var(--t-sm);
  color: var(--muted);
}

/* ==========================================================================
   FAQ accordion on paper
   ========================================================================== */

.faq-list { border-top: 1px solid var(--oat-700); }
.faq-item { border-bottom: 1px solid var(--oat-700); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  background: none;
  border: 0;
  padding: var(--s4) 0;
  text-align: left;
  cursor: pointer;
  color: var(--ink-100);
  font-family: var(--font-display);
  font-size: 1.06rem;
  line-height: 1.3;
}
.faq-q:hover { color: var(--copper-700); }
.faq-sign {
  flex: 0 0 30px;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--copper-500);
  background: var(--oat-200);
  color: var(--copper-600);
  box-shadow: var(--press-in);
  transition: transform 0.2s ease-out, background-color 0.2s ease-out;
  font-size: 1rem;
  line-height: 1;
}
.faq-q[aria-expanded="true"] .faq-sign {
  transform: rotate(45deg);
  background: var(--copper-500);
  color: #FFFFFF;
}
.faq-a {
  padding: 0 0 var(--s4);
  max-width: 74ch;
  color: var(--ink-70);
  font-size: var(--t-sm);
}
.faq-a p:last-child { margin-bottom: 0; }
.faq-a[hidden] { display: none; }

/* ==========================================================================
   Contact form
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--s7);
  align-items: start;
}
.contact-aside .stamp { margin: 0 0 var(--s2); }
.contact-aside ul { list-style: none; padding: 0; margin: var(--s4) 0 0; }
.contact-aside li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.6rem;
  font-size: var(--t-sm);
  color: var(--ink-70);
  margin-bottom: 0.75rem;
}
.contact-aside li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--copper-500); }

.form-panel {
  background: linear-gradient(180deg, var(--oat-200), var(--oat-400));
  border: 2px solid var(--oat-700);
  border-top: var(--rail) solid var(--copper-500);
  border-radius: var(--r-md);
  padding: var(--s5);
  box-shadow: var(--lift-2);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}
.field { margin-bottom: var(--s3); }
.field label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 0.4rem;
}
.field .req { color: var(--copper-600); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--t-sm);
  color: var(--ink);
  background: var(--oat-100);
  border: 1px solid var(--oat-700);
  border-radius: var(--r-sm);
  padding: 0.75rem 0.85rem;
  box-shadow: inset 0 1px 2px rgba(64, 48, 26, 0.12);
  transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--copper-500) 50%),
    linear-gradient(135deg, var(--copper-500) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(138, 90, 27, 0.55); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--hop-600);
  box-shadow: inset 0 1px 2px rgba(64, 48, 26, 0.12), 0 0 0 3px rgba(111, 154, 46, 0.3);
  outline: none;
}
.field [aria-invalid="true"] { border-color: #B0400F; box-shadow: inset 0 1px 2px rgba(64, 48, 26, 0.12), 0 0 0 3px rgba(176, 64, 15, 0.2); }
.field-error {
  display: none;
  margin-top: 0.35rem;
  font-size: var(--t-xs);
  color: #9B360C;
  font-weight: 600;
}
.field-error.is-shown { display: block; }

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: var(--s3) 0 var(--s4);
  font-size: var(--t-xs);
  color: var(--ink-70);
  line-height: 1.55;
}
.consent input {
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--hop-600);
}
.consent label { letter-spacing: 0; text-transform: none; font-size: var(--t-xs); font-weight: 500; margin: 0; }

.form-reassure {
  margin-top: var(--s3);
  font-size: var(--t-xs);
  color: var(--muted);
  text-align: center;
}

/* ==========================================================================
   Author byline block
   ========================================================================== */

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s7);
  padding: var(--s4);
  background: var(--oat-200);
  border: 1px solid var(--oat-600);
  border-left: 4px solid var(--hop-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  box-shadow: var(--press-in);
}
.byline p { margin: 0; font-size: var(--t-sm); color: var(--ink-70); flex: 1 1 320px; }
.byline strong { color: var(--ink-100); }

/* ==========================================================================
   Footer: the one roasted band on the page, for contrast under all that paper
   ========================================================================== */

.site-footer {
  background: linear-gradient(180deg, var(--roast-800), var(--roast-900));
  color: #CFC2B0;
  border-top: var(--rail) solid var(--copper-400);
  padding-top: var(--s7);
  margin-top: var(--s8);
}
.site-footer .wordmark { color: var(--oat-300); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55); }
.site-footer .wordmark span em { color: var(--copper-300); }
.site-footer .wordmark:hover { color: var(--copper-200); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--s5);
  padding-bottom: var(--s6);
}
.footer-brand .wordmark { margin-bottom: var(--s3); }
.footer-brand p { font-size: var(--t-sm); color: #C9BBA8; max-width: 34ch; }
.social {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--s3);
}
.social a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(252, 247, 238, 0.07);
  border: 1px solid rgba(217, 167, 95, 0.42);
  color: var(--copper-300);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: background-color 0.16s ease-out, color 0.16s ease-out, transform 0.16s ease-out;
}
.social a:hover { background: var(--copper-300); color: var(--roast-900); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }

.footer-col h2 {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hop-300);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: var(--s3);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(252, 247, 238, 0.16);
  text-shadow: none;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  color: #CFC2B0;
  text-decoration: none;
  font-size: var(--t-sm);
}
.footer-col a:hover { color: var(--copper-200); text-decoration: underline; }
.footer-col .publisher {
  margin-top: var(--s3);
  font-size: var(--t-xs);
  color: #B2A492;
}

.footer-base {
  border-top: 1px solid rgba(252, 247, 238, 0.14);
  padding: var(--s3) 0 var(--s5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  justify-content: space-between;
  font-size: var(--t-xs);
  color: #B2A492;
}
.footer-base a { color: #C3B5A2; }
.footer-base a:hover { color: var(--copper-200); }

/* ==========================================================================
   Inner page prose
   ========================================================================== */

.page-head {
  padding: var(--s8) 0 var(--s6);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(138, 90, 27, 0.14), transparent 55%),
    linear-gradient(180deg, var(--oat-200), var(--oat-400));
  border-bottom: 1px solid var(--oat-700);
}
.page-head p { color: var(--ink-70); max-width: 62ch; margin-bottom: 0; }
.crumbs {
  font-size: var(--t-xs);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s3);
}
.crumbs a { color: var(--copper-600); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.prose { max-width: 74ch; }
.prose h2 {
  font-size: 1.55rem;
  margin-top: var(--s6);
  padding-top: var(--s3);
  border-top: 1px solid var(--oat-700);
}
.prose h3 { font-size: 1.14rem; margin-top: var(--s4); }
.prose p, .prose li { color: var(--ink-70); }
.prose li { margin-bottom: 0.5rem; }
.prose dl { margin: 0 0 var(--s4); }
.prose dt { font-weight: 700; color: var(--ink-100); margin-top: var(--s2); }
.prose dd { margin: 0 0 0.5rem; color: var(--ink-70); }
.fact-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--s4);
  font-size: var(--t-sm);
}
.fact-table th,
.fact-table td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--oat-600);
  vertical-align: top;
}
.fact-table th { color: var(--ink-100); width: 38%; font-weight: 700; }
.fact-table td { color: var(--ink-70); }

.author-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--s7);
  align-items: start;
}
.author-card {
  position: sticky;
  top: 120px;
  background: var(--oat-100);
  border: 2px solid var(--oat-700);
  border-radius: var(--r-md);
  padding: var(--s4);
  box-shadow: var(--lift-1);
  text-align: center;
}
.author-card img {
  width: 100%;
  border-radius: var(--r-sm);
  border: 2px solid var(--copper-500);
  margin-bottom: var(--s3);
}
.author-card .role { font-size: var(--t-xs); color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.author-links { list-style: none; padding: 0; margin: var(--s3) 0 0; text-align: left; }
.author-links li { margin-bottom: 0.5rem; font-size: var(--t-sm); }

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s5);
}
.map-card {
  background: var(--oat-100);
  border: 1px solid var(--oat-600);
  border-top: 2px solid var(--copper-500);
  border-radius: var(--r-md);
  padding: var(--s4);
  box-shadow: var(--lift-1);
}
.map-card h2 { font-size: 1.14rem; margin-bottom: var(--s2); }
.map-card ul { list-style: none; padding: 0; margin: 0; }
.map-card li { margin-bottom: var(--s2); font-size: var(--t-sm); color: var(--ink-70); }
.map-card a { font-weight: 600; text-decoration: none; }
.map-card a:hover { text-decoration: underline; }
.map-card span { display: block; color: var(--muted); font-size: var(--t-xs); }

.status-hero {
  text-align: center;
  padding: var(--s9) 0 var(--s7);
}
.status-hero .badge { margin: 0 auto var(--s4); }
.status-hero p { color: var(--ink-70); max-width: 56ch; margin-inline: auto; }
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: center;
  margin-top: var(--s5);
}
.big-404 {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 3rem + 12vw, 10rem);
  line-height: 0.9;
  color: var(--copper-500);
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.92), 0 5px 0 rgba(30, 23, 16, 0.14);
  margin-bottom: var(--s3);
}

/* ==========================================================================
   Reveal, reduced motion, responsive
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.62s cubic-bezier(0.22, 0.85, 0.3, 1), transform 0.62s cubic-bezier(0.22, 0.85, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-revealed { opacity: 1; transform: none; }
.reveal--stamp { transform: scale(1.14) rotate(-3deg); }
.reveal--stamp.is-revealed { transform: scale(1) rotate(0deg); }
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }
.reveal[data-delay="5"] { transition-delay: 0.45s; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .hero h1 { max-width: 20ch; }
  .how-grid { grid-template-columns: 1fr; }
  .how-media { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .author-layout { grid-template-columns: 1fr; }
  .author-card { position: static; max-width: 340px; }
}

@media (max-width: 640px) {
  :root { --s9: 4rem; --s8: 3.25rem; --s7: 2.5rem; }
  .section { padding: var(--s8) 0; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pour-glass { width: 74px; height: 104px; right: 4px; top: -20px; }
  .tap-ticket { left: 8px; right: 8px; bottom: 12px; min-width: 0; }
  .hero-actions .btn { width: 100%; }
  .form-panel { padding: var(--s4) var(--s3); }
  .results-strip { padding: var(--s3); }
}

@media (max-width: 380px) {
  .wrap, .wrap-narrow { width: calc(100% - 1.6rem); }
  .badge { --badge-size: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .pour-glass .beer { height: 74%; }
  .pour-glass .foam { bottom: 70%; }
  .pour-glass .bubble { display: none; }
  .hero h1 .pour-word::after { transform: none; }
}

@media print {
  body::before, body::after { display: none; }
  .site-header, .site-footer, .hero-actions, .form-panel { display: none; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   The Tap Wall: magazine index, article pages and article cards
   Built from the same oat, copper and hop tokens as the rest of the room.
   Cards read as keg hang tags pinned to a paper wall.
   ========================================================================== */

/* ---- magazine masthead ------------------------------------------------- */

.mag-head {
  padding: var(--s8) 0 var(--s7);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(138, 90, 27, 0.15), transparent 58%),
    radial-gradient(ellipse at 88% 18%, rgba(111, 154, 46, 0.11), transparent 56%),
    linear-gradient(180deg, var(--oat-200), var(--oat-400));
  border-bottom: 1px solid var(--oat-700);
}
.mag-head h1 { max-width: 16ch; margin-bottom: var(--s4); }
.mag-head .mag-standfirst { max-width: 60ch; }
.mag-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s4);
  margin-top: var(--s4);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.mag-standfirst {
  font-size: var(--t-md);
  line-height: 1.62;
  color: var(--ink-90);
  margin-bottom: 0;
}

/* ---- the card wall ----------------------------------------------------- */

.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}

.mag-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 6%, #FFFFFF, transparent 42%),
    linear-gradient(180deg, var(--oat-100), var(--oat-300));
  border: 1px solid var(--oat-600);
  border-top: var(--rail) solid var(--copper-500);
  border-radius: var(--r-md);
  box-shadow: var(--lift-1);
  transition: transform 0.18s ease-out, border-color 0.18s ease-out, box-shadow 0.18s ease-out;
}
.mag-card:hover {
  transform: translateY(-3px);
  border-color: var(--copper-400);
  box-shadow: var(--lift-2);
}

.mag-card-media {
  position: relative;
  margin: 0;
  background: var(--oat-400);
  border-bottom: 1px solid var(--oat-600);
}
.mag-card-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.mag-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.1), rgba(138, 90, 27, 0.14));
}

.mag-kicker {
  position: absolute;
  left: var(--s2);
  bottom: var(--s2);
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--hop-700);
  background: var(--oat-100);
  border: 1px solid rgba(85, 122, 32, 0.45);
  border-radius: var(--r-pill);
  padding: 0.3rem 0.7rem;
  box-shadow: 0 2px 6px rgba(30, 23, 16, 0.28);
}

.mag-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: var(--s4) var(--s3) var(--s3);
}
.mag-card-body h2,
.mag-card-body h3 {
  font-size: 1.16rem;
  line-height: 1.16;
  margin-bottom: var(--s2);
}
.mag-card-body h2 a,
.mag-card-body h3 a {
  color: var(--ink-100);
  text-decoration: none;
}
.mag-card-body h2 a:hover,
.mag-card-body h3 a:hover { color: var(--copper-700); }
.mag-card-dek {
  color: var(--ink-70);
  font-size: var(--t-sm);
  line-height: 1.62;
  margin-bottom: var(--s3);
}

.mag-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin-top: auto;
  padding-top: var(--s2);
  border-top: 1px dashed rgba(30, 23, 16, 0.22);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-meta .dot { color: var(--copper-400); }

/* the lead tag hangs across the wall at a larger size */
.mag-card.lead { grid-column: 1 / -1; }
@media (min-width: 861px) {
  .mag-card.lead {
    flex-direction: row;
    align-items: stretch;
  }
  .mag-card.lead .mag-card-media {
    flex: 0 0 55%;
    border-bottom: 0;
    border-right: 1px solid var(--oat-600);
  }
  .mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 340px; }
  .mag-card.lead .mag-card-body { justify-content: center; padding: var(--s6) var(--s5); }
  .mag-card.lead .mag-card-body h2 { font-size: var(--t-xl); }
  .mag-card.lead .mag-card-dek { font-size: var(--t-base); }
}

/* ---- article page header ----------------------------------------------- */

.mag-article-head {
  padding: var(--s7) 0 var(--s5);
  background:
    radial-gradient(ellipse at 18% 0%, rgba(138, 90, 27, 0.15), transparent 56%),
    linear-gradient(180deg, var(--oat-200), var(--oat-400));
  border-bottom: 1px solid var(--oat-700);
}
.mag-article-head h1 {
  font-size: var(--t-2xl);
  max-width: 22ch;
  margin-bottom: var(--s3);
}
.mag-article-head .mag-standfirst { max-width: 64ch; }

.mag-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.9rem;
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--oat-700);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.mag-byline a { color: var(--copper-600); text-decoration: none; font-weight: 700; }
.mag-byline a:hover { text-decoration: underline; }
.mag-byline .dot { color: var(--copper-400); }

.mag-figure {
  margin: 0;
  border: 1px solid var(--oat-600);
  border-top: var(--rail) solid var(--copper-500);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--lift-2);
  background: var(--oat-400);
}
.mag-figure img { width: 100%; }
.mag-figure-wrap { margin-top: calc(var(--s6) * -1); margin-bottom: var(--s6); }

/* ---- article body ------------------------------------------------------ */

.mag-body {
  max-width: 68ch;
  font-size: var(--t-md);
  line-height: 1.72;
  color: var(--ink-70);
}
.mag-body > p { margin-bottom: var(--s4); }
.mag-body h2 {
  font-size: clamp(1.45rem, 1.15rem + 1.1vw, 1.9rem);
  line-height: 1.12;
  color: var(--ink-100);
  margin-top: var(--s7);
  margin-bottom: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--oat-700);
}
.mag-body h3 {
  font-size: 1.2rem;
  color: var(--ink-100);
  margin-top: var(--s5);
  margin-bottom: var(--s2);
}
.mag-body ul, .mag-body ol { margin-bottom: var(--s4); padding-left: 1.25rem; }
.mag-body li { margin-bottom: 0.55rem; line-height: 1.66; }
.mag-body li::marker { color: var(--copper-500); }
.mag-body strong { color: var(--ink-100); }
.mag-body a { font-weight: 600; }

.mag-body blockquote {
  margin: var(--s5) 0;
  padding: var(--s4) var(--s4) var(--s4) var(--s5);
  background: linear-gradient(180deg, var(--oat-200), var(--oat-400));
  border: 1px solid var(--oat-700);
  border-left: var(--rail) solid var(--hop-500);
  border-radius: var(--r-sm);
  box-shadow: var(--press-deep);
  color: var(--ink-90);
  font-size: var(--t-base);
}
.mag-body blockquote p:last-child { margin-bottom: 0; }

.mag-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s4) 0 var(--s5);
  font-size: var(--t-sm);
  background: var(--oat-100);
  border: 1px solid var(--oat-600);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.mag-body th, .mag-body td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--oat-500);
  vertical-align: top;
}
.mag-body thead th {
  color: var(--copper-700);
  background: var(--oat-400);
  font-size: var(--t-xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.mag-body tbody tr:last-child td { border-bottom: 0; }

/* the contextual pointer to another piece, pressed like a tap ticket */
.inline-read {
  margin: var(--s4) 0;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  position: relative;
  background: var(--hop-100);
  border: 1px solid rgba(85, 122, 32, 0.38);
  border-radius: var(--r-sm);
  box-shadow: var(--press-in);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-70);
}
.inline-read::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hop-600);
  box-shadow: 0 0 0 3px rgba(111, 154, 46, 0.24);
}
.inline-read a { color: var(--copper-600); font-weight: 700; }

/* ---- call to action ---------------------------------------------------- */

.mag-cta {
  margin: var(--s7) 0 var(--s6);
  padding: var(--s5);
  background:
    radial-gradient(circle at 88% 8%, rgba(111, 154, 46, 0.14), transparent 52%),
    linear-gradient(165deg, var(--oat-200), var(--oat-500));
  border: 1px solid rgba(138, 90, 27, 0.38);
  border-top: var(--rail) solid var(--copper-500);
  border-radius: var(--r-md);
  box-shadow: var(--lift-2);
}
.mag-cta h2 {
  font-size: var(--t-xl);
  margin-bottom: var(--s2);
  border: 0;
  padding: 0;
  margin-top: 0;
  color: var(--ink-100);
}
.mag-cta p { color: var(--ink-70); max-width: 56ch; margin-bottom: var(--s4); }

/* ---- author box -------------------------------------------------------- */

.mag-author {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
  margin: var(--s6) 0;
  padding: var(--s4);
  background: linear-gradient(180deg, var(--oat-100), var(--oat-300));
  border: 1px solid var(--oat-600);
  border-radius: var(--r-md);
  box-shadow: var(--lift-1);
}
.mag-author img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--copper-500);
  box-shadow: inset 0 0 0 3px var(--oat-100), 0 2px 0 rgba(30, 23, 16, 0.12);
}
.mag-author h2 {
  font-size: var(--t-lg);
  margin: 0 0 0.35rem;
  border: 0;
  padding: 0;
  color: var(--ink-100);
}
.mag-author .role {
  display: block;
  font-size: var(--t-xs);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s2);
}
.mag-author p { color: var(--ink-70); font-size: var(--t-sm); margin-bottom: var(--s2); }

/* ---- read also --------------------------------------------------------- */

.mag-related {
  padding: var(--s7) 0 var(--s8);
  background: var(--surface);
  border-top: 1px solid var(--oat-700);
}
.mag-related > .wrap > h2 {
  font-size: var(--t-xl);
  margin-bottom: var(--s5);
}
.mag-rel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}
.mag-rel-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, var(--oat-200), var(--oat-400));
  border: 1px solid var(--oat-600);
  border-top: 2px solid var(--hop-500);
  border-radius: var(--r-md);
  box-shadow: var(--lift-1);
  transition: transform 0.18s ease-out, border-color 0.18s ease-out;
}
.mag-rel-card:hover { transform: translateY(-3px); border-color: var(--hop-500); }
.mag-rel-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--oat-600);
}
.mag-rel-body { padding: var(--s3); display: flex; flex-direction: column; flex: 1 1 auto; }
.mag-rel-body h3 { font-size: 1.04rem; line-height: 1.18; margin-bottom: 0.5rem; }
.mag-rel-body h3 a { color: var(--ink-100); text-decoration: none; }
.mag-rel-body h3 a:hover { color: var(--hop-700); }
.mag-rel-body p { color: var(--ink-70); font-size: var(--t-xs); line-height: 1.6; margin-bottom: var(--s2); }
.mag-rel-body time {
  margin-top: auto;
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- home page magazine teaser ----------------------------------------- */

.mag-more { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.mag-more p { margin: 0; color: var(--ink-70); font-size: var(--t-sm); }

/* ---- author page and site map listings --------------------------------- */

.mag-list { list-style: none; padding: 0; margin: 0; }
.mag-list li {
  padding: var(--s2) 0;
  border-bottom: 1px dashed rgba(30, 23, 16, 0.2);
  font-size: var(--t-sm);
}
.mag-list li:last-child { border-bottom: 0; }
.mag-list a { font-weight: 600; text-decoration: none; }
.mag-list a:hover { text-decoration: underline; }
.mag-list time { display: block; color: var(--muted); font-size: var(--t-xs); letter-spacing: 0.09em; text-transform: uppercase; margin-top: 0.2rem; }

/* ---- magazine responsive ----------------------------------------------- */

@media (max-width: 1000px) {
  .mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mag-figure-wrap { margin-top: calc(var(--s4) * -1); }
  .mag-body { font-size: var(--t-base); }
}
@media (max-width: 640px) {
  .mag-grid { grid-template-columns: 1fr; gap: var(--s3); }
  .mag-rel-grid { grid-template-columns: 1fr; }
  .mag-head { padding: var(--s6) 0 var(--s5); }
  .mag-article-head { padding: var(--s6) 0 var(--s4); }
  .mag-article-head h1 { max-width: none; }
  .mag-cta { padding: var(--s4) var(--s3); }
  .mag-author {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: var(--s3);
  }
  .mag-figure-wrap { margin-top: 0; margin-bottom: var(--s5); }
  .mag-byline, .mag-meta { letter-spacing: 0.06em; }
}
@media (max-width: 380px) {
  .mag-card-body { padding: var(--s3) var(--s2) var(--s2); }
  .mag-body table { font-size: var(--t-xs); }
  .mag-body th, .mag-body td { padding: 0.5rem 0.55rem; }
}

/* ---- site map: the magazine card runs the full width of the grid -------- */

.map-card--wide {
  grid-column: 1 / -1;
  border-top-color: var(--hop-500);
}
.map-card--wide ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s2) var(--s5);
}

/* ---- read also thumbnail link ------------------------------------------ */

.mag-rel-thumb { display: block; line-height: 0; }



/* Network strip: five sibling products, rotated so every site is linked the same
   number of times. Spans the full footer grid rather than adding a fifth column,
   because each footer declares a fixed column count and a fifth item would wrap. */
.site-network { grid-column: 1 / -1; flex-basis: 100%; width: 100%;
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.site-network h2 { font: inherit; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.7rem; opacity: 0.72;
  color: inherit; text-shadow: none; }
.site-network ul { list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-network li + li { margin-top: 0; }
.site-network a { font-size: 0.86rem; text-decoration: none; opacity: 0.9;
  color: inherit; border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { opacity: 1; border-bottom-color: currentColor; }
@media (max-width: 620px) { .site-network ul { gap: 0.45rem 1.1rem; } }


/* Wide content on phones. Class names for the prose wrapper differ from site to site,
   so this targets tables and pre blocks directly: they scroll inside their own box
   rather than pushing cells past the right edge, per the build contract. */
@media (max-width: 700px) {
  table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { overflow-wrap: anywhere; }
  pre { overflow-x: auto; max-width: 100%; }
}
