/* Hilltop Superette — one stylesheet, one palette.
 *
 * Original scheme (owner-approved, build b79bd0c): paper #F3EBDD, cream #F5EEE2,
 * pine #1F4D36 / #1E4A33, brick (cranberry) #8E1F2B, brass. Fraunces headlines,
 * Montserrat body. This file replaces the three stacked sheets (preview.css,
 * hilltop-3d.css, extras.css) whose cascade let a pale theme win.
 *
 * Layout constants below are mirrored in _build/slots.py, which computes every
 * image `sizes` attribute from them. Change one, change both:
 *   .wrap = min(1120px, 100% - 40px)   gallery gap = 16px   desktop >= 800px
 *   team: 1-up cards below 600px (photo max 186px), 2-up, two groups side by side from 1000px, photo max 260px
 *   brand cards: 2 / 3 (>=560px) / 4 (>=920px) columns, gap 16px
 *
 * Contrast (WCAG 2.2): pine on paper 8.2:1, muted on paper 5.9:1, brick on paper
 * 7.5:1, cream on pine 8.4:1, brass on pine 5.6:1, cream on brick 7.7:1.
 */

@font-face {
  font-family: "Fraunces Brand";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-900.260485eb7d.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces Brand";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-700i.7dc50bd3be.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat Brand";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/montserrat-500.0aabcea59f.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat Brand";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/montserrat-600.8adb87ca2e.woff2") format("woff2");
}

:root {
  --paper: #F3EBDD;
  --cream: #F5EEE2;
  --paper-deep: #E9DFCB;
  --brass-light: #E9D9B4;
  --pine: #1F4D36;
  --pine-2: #1E4A33;
  --pine-deep: #173A2A;
  --ink: #1F4D36;
  --muted: #4A5E52;
  --brick: #8E1F2B;
  --brick-deep: #741823;
  --brass: #E2C36B;
  --brass-deep: #7A5A1E;
  --line: rgba(31, 77, 54, 0.16);
  --line-light: rgba(245, 238, 226, 0.22);
  --serif: "Fraunces Brand", Georgia, "Times New Roman", serif;
  --sans: "Montserrat Brand", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --gutter: 20px;
  --band: clamp(56px, 8vw, 104px);
  --focus: var(--brick);
  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--serif);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.3vw, 1.7rem); line-height: 1.12; }
h4 { font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 700; color: var(--brick); }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
strong { font-weight: 600; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
address { font-style: normal; }

a { color: var(--brick); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brick-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

::selection { background: var(--brass-light); color: var(--pine-deep); }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--pine);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Type helpers ---------- */

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 44rem; }
.fine, .law-note, .menu-note, .photo-credit, .credit, figcaption { font-size: 0.875rem; color: var(--muted); }
.band .wrap > p,
.band .wrap > h3,
.band .wrap > ul,
.faq p,
.cluster p { max-width: 70ch; }

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--sans);
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { text-decoration: none; }
.btn-brick { background: var(--brick); border-color: var(--brick); color: var(--cream); }
.btn-brick:hover { background: var(--brick-deep); border-color: var(--brick-deep); color: var(--cream); }
.btn-pine { background: var(--pine); border-color: var(--pine); color: var(--cream); }
.btn-pine:hover { background: var(--pine-deep); border-color: var(--pine-deep); color: var(--cream); }
.btn-cream { background: var(--cream); border-color: var(--cream); color: var(--pine); }
.btn-cream:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--pine-deep); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--pine); }
.btn-ghost:hover { background: var(--pine); border-color: var(--pine); color: var(--cream); }
.btn-outline-light { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--pine); }

.tap-phone { font-weight: 600; white-space: nowrap; }

/* ---------- Header ---------- */

.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pine);
  color: var(--cream);
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}
.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; min-height: 48px; padding: 4px 0; }
.brand-logo { width: auto; height: 60px; }
.site-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { background: rgba(245, 238, 226, 0.12); color: var(--cream); }
.site-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.nav-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid rgba(245, 238, 226, 0.5);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font: 600 0.95rem/1 var(--sans);
  cursor: pointer;
}
.mast :focus-visible, .colophon :focus-visible, .hero :focus-visible,
.band-pine :focus-visible, .band-reviews :focus-visible, .band-liquor :focus-visible,
.band-wholesale :focus-visible, .hot-now :focus-visible, .allocation :focus-visible,
.address-plate :focus-visible { outline-color: var(--brass); }

@media (max-width: 1079.98px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .mast-inner { flex-wrap: wrap; min-height: 64px; }
  .brand-logo { height: 52px; }
  .site-nav { display: none; flex: 1 0 100%; }
  .mast.nav-open .site-nav { display: block; padding: 4px 0 16px; }
  .site-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; justify-content: stretch; }
  .site-nav a { display: flex; min-height: 48px; padding: 0 14px; border-radius: var(--radius-sm); background: rgba(245, 238, 226, 0.06); }
  .site-nav a[aria-current] { box-shadow: inset 3px 0 0 var(--brass); border-radius: var(--radius-sm); }
}

/* ---------- Bands ---------- */

.band { padding: var(--band) 0; }
.band-cream, .band-grocery, .band-law, .band-news, #internships, #visit { background: var(--cream); }
.band-kitchen, .band-vapes, .band-story, .band-team, #instagram, .page-head { background: var(--paper); }
.band-brass { background: var(--brass-light); }
.band-pine, .band-reviews, .band-liquor, .band-wholesale {
  background: var(--pine);
  color: var(--cream);
}
.band-pine.night { background: var(--pine-deep); }
.band-pine .eyebrow, .band-reviews .eyebrow, .band-liquor .eyebrow, .band-wholesale .eyebrow { color: var(--brass); }
.band-pine h2 em, .band-reviews h2 em, .band-liquor h2 em, .band-wholesale h2 em { color: var(--brass); }
.band-pine a:not(.btn), .band-liquor a:not(.btn), .band-wholesale a:not(.btn), .band-reviews a:not(.btn) { color: var(--brass); }
.band-pine figcaption, .band-liquor figcaption, .band-liquor .fine { color: rgba(245, 238, 226, 0.82); }
.band-pine .btn-ghost, .band-liquor .btn-ghost, .band-wholesale .btn-ghost { color: var(--cream); }
.band-pine .btn-ghost:hover, .band-liquor .btn-ghost:hover, .band-wholesale .btn-ghost:hover { background: var(--cream); color: var(--pine); }

/* ---------- Hero ---------- */

.hero { position: relative; background: var(--pine-deep); color: var(--cream); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-copy { padding: 28px 0 44px; }
.hero-lockup { width: 120px; height: auto; margin: 0 0 18px; }
.hero .eyebrow { color: var(--brass); }
.hero h1 { color: var(--cream); max-width: 12ch; }
.hero h1 em { color: var(--brass); }
.deck { max-width: 38rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--cream); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin: 18px 0 0; color: var(--cream); }
.hero-meta a { display: inline-flex; align-items: center; min-height: 48px; color: var(--cream); }
@media (max-width: 479.98px) {
  .hero .actions .btn { flex: 1 1 100%; }
  .hero-lockup { display: none; }
}
@media (min-width: 600px) {
  .hero-photo img { aspect-ratio: 16 / 9; }
}
@media (min-width: 800px) {
  .hero {
    display: grid;
    align-items: end;
    min-height: max(560px, min(88vh, 56.25vw));
    min-height: max(560px, min(88svh, 56.25vw));
    overflow: hidden;
  }
  .hero-photo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
  .hero-photo img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 55%; }
  .hero::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background:
      linear-gradient(90deg, rgba(23, 58, 42, 0.86) 0%, rgba(23, 58, 42, 0.6) 38%, rgba(23, 58, 42, 0) 70%),
      linear-gradient(0deg, rgba(23, 58, 42, 0.55) 0%, rgba(23, 58, 42, 0) 45%);
    pointer-events: none;
  }
  .hero-copy { position: relative; z-index: 1; padding: 48px 0 56px; }
  .hero-copy .wrap > * { max-width: 40rem; }
}

/* ---------- Galleries (sizes + caps generated by slots.py) ---------- */

.gallery { display: flex; align-items: flex-start; gap: 16px; margin: 32px auto; }
.gallery > figure { flex: 1 1 0; min-width: 0; }
.gallery img { width: 100%; border-radius: var(--radius-sm); background: var(--paper-deep); }
.gallery figcaption { margin-top: 8px; line-height: 1.4; }
@media (max-width: 799.98px) {
  .gallery--stack { flex-direction: column; align-items: stretch; }
  .gallery--stack > figure { flex: none; width: 100%; margin-inline: auto; }
}

/* ---------- Reviews ---------- */

.review {
  margin: 20px 0 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  max-width: 64rem;
}
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; font-size: 1.05rem; }
.review figcaption { margin-top: 12px; color: var(--muted); font-weight: 600; }
.band-reviews .review a { color: var(--brick); }

/* ---------- Kitchen menu ---------- */

.menu-book { margin-top: 12px; }
.menu-cat { padding: 28px 0; border-top: 1px solid var(--line); }
.menu-cat > h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 4px; }
.menu-cat h4 { margin: 18px 0 6px; color: var(--brick); }
.menu-items { display: grid; gap: 14px 32px; margin: 12px 0 0; padding: 0; list-style: none; }
.menu-items p { margin: 0; color: var(--muted); }
.menu-items .item-name { color: var(--ink); font-family: var(--serif); font-weight: 900; font-size: 1.15rem; letter-spacing: -0.01em; }
.item-note { font-size: 0.9rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; padding: 0; list-style: none; }
.chip-list li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.92rem;
}
@media (min-width: 800px) { .menu-items { grid-template-columns: 1fr 1fr; } }

/* ---------- Grocery ---------- */

.hot-now {
  margin: 36px 0 0;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--pine);
  color: var(--cream);
}
.hot-copy { padding: 8px 4px 0; }
.hot-copy p { max-width: 60ch; }
.hot-now .eyebrow { color: var(--brass); }
.hot-now .gallery { margin: 12px auto 0; }
@media (min-width: 1160px) {
  /* Copy beside the photos; the gallery column (>= 685px) never squeezes the generated cap. */
  .hot-now { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 24px; align-items: center; padding: 16px; }
  .hot-now .gallery { width: 100%; margin: 0; }
  .hot-copy { padding: 8px 8px 8px 12px; }
}
.hot-now figcaption { color: rgba(245, 238, 226, 0.85); }

.shelf-partners { margin-top: 48px; }
.shelf-partners > h4 { margin: 32px 0 0; color: var(--brick); }
.maker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px) { .maker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 920px) { .maker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.maker-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.band-grocery .maker-card { background: var(--paper); }
.maker-grid--text .maker-card { height: 100%; }
.brand-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-deep); }
.maker-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; }
.maker-body p { margin: 0; }
.maker-kind, .maker-town {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brick);
}
.maker-town { color: var(--muted); }
.maker-name { font-family: var(--serif); font-weight: 900; font-size: 1.2rem; line-height: 1.15; }
.maker-name a { color: var(--ink); text-decoration: none; }
.maker-name a:hover { color: var(--brick); text-decoration: underline; }
.maker-blurb { font-size: 0.92rem; color: var(--muted); }
.brand-credit { font-size: 0.8rem; margin-top: auto; padding-top: 6px; }
.brand-credit a { display: inline-flex; align-items: center; min-height: 32px; }
.maker-fallback { font-family: var(--serif); font-weight: 900; font-size: 2rem; }
.more-link { margin-top: 24px; font-weight: 600; }

/* ---------- Vapes ---------- */

.nicotine-warning {
  /* Required health warning: white on black, as 21 CFR 1143.3 specifies. */
  margin: 16px 0 20px;
  padding: 20px 22px;
  max-width: none !important;
  background: #000;
  color: #fff;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
}
.law-sources { font-size: 0.9rem; color: var(--muted); }
.band-liquor .law-sources { color: rgba(245, 238, 226, 0.82); }

/* ---------- Liquor ---------- */

.callout {
  margin: 20px 0;
  padding: 14px 18px;
  max-width: 44rem;
  border-left: 6px solid var(--brick);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
}
.callout p { margin: 0; }
.ice-pik {
  display: grid;
  gap: 20px;
  align-items: center;
  margin: 28px 0;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--pine-deep);
}
.ice-pik p:last-child { margin-bottom: 0; }
.ice-pik-photo { width: 220px; }
.ice-pik-photo img { border-radius: var(--radius-sm); }
@media (min-width: 800px) {
  .ice-pik { grid-template-columns: 256px 1fr; }
  .ice-pik-photo { width: 256px; }
}
.table-scroll { overflow-x: auto; margin: 20px 0 24px; }
.distillers { width: 100%; min-width: 34rem; border-collapse: collapse; }
.distillers caption { margin-bottom: 8px; text-align: left; font-weight: 600; }
.distillers th, .distillers td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-light); }
.distillers thead th { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }
.distillers tbody th { font-weight: 600; }
@media (max-width: 599.98px) {
  /* Stack rows as small cards on phones instead of side-scrolling a table. */
  .distillers { min-width: 0; }
  .distillers thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .distillers tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-light); }
  .distillers th, .distillers td { display: block; padding: 2px 0; border: 0; }
  .distillers tbody th { font-size: 1.05rem; }
  .distillers td::before { content: attr(data-label) ": "; color: var(--brass); font-weight: 600; }
}

/* ---------- Maine law ---------- */

.price-split, .tier-board { display: grid; gap: 16px; margin: 20px 0 32px; }
@media (min-width: 860px) {
  .price-split, .tier-board { grid-template-columns: 1fr 1fr; align-items: start; }
}
.price-split article, .tier-track {
  margin: 0;
  padding: 22px 22px 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.price-split p:last-child { margin-bottom: 0; }
.tier-track figcaption { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.4rem; color: var(--brick); }
.tier-track ol { display: grid; gap: 16px; margin: 14px 0 0; padding: 0; list-style: none; }
.tier-track li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.tier-track li p { margin: 4px 0 0; }
.tier-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--cream);
  font-weight: 600;
}
.allocation {
  margin: 28px 0;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--pine);
  color: var(--cream);
}
.allocation p { max-width: 70ch; }
.allocation p:last-child { margin-bottom: 0; }
.allocation a { color: var(--brass); }
.house-rule {
  margin: 28px 0;
  padding: 24px;
  border-left: 6px solid var(--brick);
  border-radius: var(--radius);
  background: var(--paper);
}
.house-rule p:last-child { margin-bottom: 0; }
.house-rule-note a { font-weight: 600; }

/* ---------- Night on the Hill ---------- */

.led-stage { position: relative; cursor: pointer; border-radius: var(--radius-sm); }
.led-stage picture { width: 100%; }
.led-stage .led-lit-frame { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; transition: opacity 0.35s ease; }
.led-stage.is-on .led-lit-frame { opacity: 1; }
.led-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(23, 58, 42, 0.82);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- Story ---------- */

.story-lockup { width: 168px; height: auto; margin: 4px 0 8px; }
.slogan { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.35rem; color: var(--brick); }
.band-story blockquote {
  margin: 20px 0 0;
  padding: 20px 24px;
  max-width: 60rem;
  border-left: 6px solid var(--brass-deep);
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.band-story blockquote p { margin: 0; font-size: 1.05rem; }
.band-story blockquote footer { margin-top: 8px; font-weight: 600; color: var(--muted); }
.about-caption { margin-top: -12px; font-weight: 600; }
.wrigley-row { display: grid; gap: 8px; }
.wrigley-row > p { max-width: 70ch; }
.wrigley-card .gallery { margin: 8px 0 8px; }
.accomplishments, .other-stores { padding-left: 1.2rem; }

/* ---------- Press ---------- */

.press-card {
  margin: 20px 0 0;
  padding: 22px 24px;
  max-width: 64rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.press-card p:last-child { margin-bottom: 0; }
.press-meta { margin: 0 0 6px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brick); }
.press-card a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Team ---------- */

.team-groups { display: grid; gap: 32px; margin-top: 32px; }
.team-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.team-group-label { margin: 0 0 14px; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.3rem; color: var(--brick); }
@media (min-width: 1000px) {
  .team-groups { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; row-gap: 0; }
  .team-group { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
  .team-group > .team-list:first-child { grid-row: 2; }
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 12px 22px;
  border-radius: var(--radius);
  background: var(--cream);
  text-align: center;
}
.team-photo { width: 100%; max-width: 260px; margin: 0 auto 16px; }
/* Portraits are cropped to exactly 4:5 by the build (face in the upper third), so
   object-fit never has to guess and nothing is cut at render time. */
.team-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); background: var(--paper-deep); }
.team-card h3 { margin: 0 0 6px; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.team-role { margin: 0 0 10px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brick); }
.team-caption { margin: -4px 0 10px; font-size: 0.82rem; line-height: 1.35; color: var(--muted); }
.team-bio { margin: 0; font-size: 0.95rem; text-align: left; }
/* Phones: one card per row, full container width; portrait capped at 186px (= 562px
   source / 3x, TEAM_PHONE_PX in _build/build.py) so it stays sharp, bio at a comfortable measure. */
@media (max-width: 599.98px) {
  .team-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .team-card { padding: 20px 20px 24px; }
  .team-photo, .monogram { max-width: 186px; }
  .team-bio { font-size: 1rem; line-height: 1.6; max-width: 34rem; }
}
.monogram {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  margin: 0 auto 16px;
  border-radius: var(--radius-sm);
  background: var(--pine);
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 2.4rem;
}

/* ---------- Order, follow ---------- */

.order-band h2 { margin-bottom: 0; }
.order-meta { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.order-panel .fine { margin-top: 14px; }
.toast-slot { padding: 12px 16px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.toast-slot p { margin: 0; }
.follow-line { margin: 0; max-width: 40rem; }
.signature-list { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }

/* ---------- Visit ---------- */

.visit-tease-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) {
  .visit-tease-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
  .address-plate { position: sticky; top: 96px; }
}
.facts { display: grid; gap: 8px; margin: 20px 0; }
.facts div { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.facts dt { min-width: 5rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brick); }
.facts dd { margin: 0; font-weight: 600; }
.hours-note { display: block; margin-top: 4px; font-weight: 400; font-size: 0.95rem; }
.visit-map { max-width: 240px; margin: 24px 0 0; }
.visit-map img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.visit-map figcaption { margin-top: 6px; }
@media (min-width: 800px) { .visit-map { max-width: 360px; } }
.visit-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.pets-note { margin-top: 16px; }
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq h3 { margin: 24px 0 6px; font-size: 1.2rem; }
.address-plate {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--pine);
  color: var(--cream);
}
.address-plate span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.address-plate strong { font-family: var(--serif); font-weight: 900; font-size: 1.8rem; line-height: 1.1; }
.address-plate a { display: inline-flex; align-items: center; min-height: 48px; color: var(--brass); font-size: 1.15rem; }

/* ---------- Landing pages and 404 ---------- */

.page-head .lede { margin-top: 8px; }
.cluster { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
/* Phones and tablets: head, photo, copy, visit card. From 960px: copy left (<= 46rem),
   photo + visit card in a sticky 320px aside on the right so the page is never half empty. */
.cluster-grid { display: flex; flex-direction: column; }
.cluster-head, .cluster-body { max-width: 46rem; }
.cluster-side { display: contents; }
.cluster-head { order: 1; }
.cluster-photo { order: 2; width: 100%; margin: 28px auto 4px; }
.cluster-body { order: 3; }
.cluster-visit { order: 4; margin-top: 40px; }
.cluster-photo img { width: 100%; height: auto; border-radius: var(--radius-sm); background: var(--paper-deep); }
.cluster-photo figcaption { margin-top: 8px; }
.cluster-visit a + a { margin-top: -6px; font-size: 1rem; }
.cluster-visit strong { font-size: 1.5rem; }
@media (min-width: 960px) {
  .cluster-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto 1fr; column-gap: 56px; }
  .cluster-head { grid-column: 1; grid-row: 1; }
  .cluster-body { grid-column: 1; grid-row: 2; }
  .cluster-side { display: grid; gap: 24px; grid-column: 2; grid-row: 1 / span 2; align-self: start; position: sticky; top: 96px; }
  .cluster-photo { margin: 8px auto 0; }
  .cluster-visit { margin-top: 0; }
}
.cluster h2 { margin-top: 1.4em; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cluster h3 { margin-top: 1.2em; font-size: 1.2rem; }
.crumbs { margin: 0 0 20px; font-size: 0.9rem; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.cluster-hours { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; }
.cluster-order { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */

.colophon { background: var(--pine-deep); color: var(--cream); padding: clamp(48px, 7vw, 80px) 0 0; }
.colophon a { color: var(--cream); }
.colophon a:hover { color: var(--brass); }
.colophon .eyebrow { color: var(--brass); }
.colophon-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .colophon-grid { grid-template-columns: 1.5fr 0.75fr 0.75fr; } }
.footer-lockup { width: 150px; height: auto; margin-bottom: 18px; }
.colophon address { margin-bottom: 12px; line-height: 1.7; }
.colophon ul { margin: 0; padding: 0; list-style: none; }
.colophon li a { display: inline-flex; align-items: center; min-height: 44px; }
.colophon .btn-ghost { color: var(--cream); }
.colophon .btn-ghost:hover { background: var(--cream); color: var(--pine); }
.colophon .follow-line { margin-top: 20px; }
.colophon-end {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 40px;
  /* Room for the fixed music button (48px + 12px offset) plus the home indicator. */
  padding: 20px 0 84px;
  padding: 20px 0 calc(84px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-light);
  font-size: 0.85rem;
}
.colophon-end p { margin: 0; }
.colophon .credit { color: rgba(245, 238, 226, 0.82); }

/* ---------- Hours notice and music ---------- */

.notice {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(23, 58, 42, 0.72);
}
.notice[hidden] { display: none; }
.notice-panel {
  width: min(36rem, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 20px 22px 24px;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.notice-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.notice-panel h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.notice-panel p { margin: 14px 0 0; }
.notice-close {
  flex: none;
  min-width: 48px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--brick);
  color: var(--cream);
  font: 600 0.95rem/1 var(--sans);
  cursor: pointer;
}
@media (min-width: 700px) { .notice { align-items: center; } }

/* Music: a compact 48px circular icon button tucked into the bottom-right corner, clear
   of the notch and home indicator (safe-area insets). The text label stays in the DOM as
   the accessible name ("Play music" / "Pause music") and is shown only on desktop, where
   the button is a compact pill. The footer reserves room so the last line is never under it. */
#swing-toggle {
  position: fixed;
  right: 12px;
  bottom: 12px;
  right: calc(12px + env(safe-area-inset-right));
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--brass);
  border-radius: 999px;
  background: var(--pine);
  color: var(--cream);
  font: 600 0.88rem/1 var(--sans);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(23, 58, 42, 0.3);
}
.swing-icon { flex: none; width: 22px; height: 22px; }
#swing-toggle .swing-icon-pause, #swing-toggle[aria-pressed="true"] .swing-icon-play { display: none; }
#swing-toggle[aria-pressed="true"] .swing-icon-pause { display: block; }
#swing-toggle .swing-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (min-width: 800px) {
  #swing-toggle {
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    width: auto;
    height: 44px;
    padding: 0 16px 0 12px;
  }
  #swing-toggle .swing-icon { width: 18px; height: 18px; }
  #swing-toggle .swing-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; }
}
#swing-toggle:focus-visible { outline-color: var(--brick); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .mast, #swing-toggle, .notice, .nav-toggle { display: none !important; }
  .band-pine, .band-reviews, .band-liquor, .band-wholesale, .hero, .colophon { background: none; color: #000; }
}

/* ---------- Local, distributors, State of Maine spirits card ---------- */

.shelf-lede { max-width: 46rem; margin: 6px 0 0; }
.local-tag { margin: 0 0 4px; }
.local-tag span {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pine);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.maker-card.is-local { border-color: rgba(31, 77, 54, 0.42); }
.distributors {
  margin-top: 40px;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-deep);
}
.distributors h4 { margin: 0 0 14px; color: var(--ink); }
.distributor-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.distributor-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.distributor-name { font-family: var(--serif); font-weight: 900; font-size: 1.05rem; line-height: 1.2; }
.distributor-name a { color: var(--ink); }
.distributor-town { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.distributors-note { margin: 16px 0 0; color: var(--muted); font-size: 0.95rem; }

.maine-spirits {
  margin: 28px 0;
  padding: 24px 22px 26px;
  max-width: 46rem;
  border: 2px solid var(--brass);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
}
.maine-spirits h3 { margin: 4px 0 10px; color: var(--ink); }
.maine-spirits p { color: var(--ink); }
.maine-spirits .eyebrow { color: var(--brick); }
.ms-steps { margin: 14px 0 18px; padding-left: 1.3em; color: var(--ink); }
.ms-steps li { margin: 4px 0; }
.ms-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.ms-actions .btn { flex: 1 1 14rem; justify-content: center; text-align: center; }
.band-liquor .maine-spirits .btn-ghost, .maine-spirits .btn-ghost { color: var(--pine); }
.band-liquor .maine-spirits .btn-ghost:hover { background: var(--pine); color: var(--cream); }

/* ---------- Comment box ---------- */

.band-feedback { background: var(--paper-deep); }
.feedback-wrap { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .feedback-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; } }
.comment-form { display: grid; gap: 16px; }
.comment-form .field { display: grid; gap: 6px; min-width: 0; }
.comment-form .field-row { display: grid; gap: 16px; }
@media (min-width: 620px) { .comment-form .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.comment-form label { font-weight: 600; font-size: 0.95rem; }
.comment-form .opt { font-weight: 500; color: var(--muted); }
.comment-form input, .comment-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 77, 54, 0.45);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  font: 500 1rem/1.4 var(--sans);
  -webkit-appearance: none;
  appearance: none;
}
.comment-form textarea { min-height: 9rem; resize: vertical; }
.comment-form input:focus-visible, .comment-form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.comment-form .hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.comment-form .form-actions { margin: 0; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status.is-ok { color: var(--pine); }
.form-status.is-error { color: var(--brick); }
.form-note { margin: 0; font-size: 0.9rem; color: var(--muted); }
.feedback-phone { font-weight: 600; }

/* ---------- Visitor counter (footer, subtle) ---------- */
.visit-counter { margin: 0; font-size: 0.82rem; letter-spacing: 0.02em; color: rgba(245, 238, 226, 0.82); }
.visit-counter[hidden] { display: none; }

/* ---------- Older-browser fallbacks ---------- */
/* Browsers without :focus-visible still get a clear keyboard outline. */
@supports not selector(:focus-visible) {
  a:focus, button:focus, input:focus, textarea:focus, summary:focus, [tabindex]:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
}
/* Browsers without aspect-ratio: keep photos from collapsing. */
@supports not (aspect-ratio: 1 / 1) {
  .hero-photo img, .brand-photo img, .team-photo img { height: auto; min-height: 220px; }
}

/* Generated by _build/slots.py: gallery caps that keep every photo at or above 1 device px per source px. */
.g-kitchen{max-width:1120px}
.g-kitchen>:nth-child(1){flex-grow:1.5073}
.g-kitchen>:nth-child(2){flex-grow:1.3288}
.g-kitchen>:nth-child(3){flex-grow:0.7675}
.g-hot{max-width:685px}
.g-hot>:nth-child(1){flex-grow:0.7500}
.g-hot>:nth-child(2){flex-grow:0.9225}
.g-grocery{max-width:1044px}
.g-grocery>:nth-child(1){flex-grow:1.4798}
.g-grocery>:nth-child(2){flex-grow:0.8559}
.g-wine{max-width:687px}
.g-wine>:nth-child(1){flex-grow:1.0404}
.g-wine>:nth-child(2){flex-grow:1.4463}
.g-spirits{max-width:618px}
.g-spirits>:nth-child(1){flex-grow:0.7347}
.g-spirits>:nth-child(2){flex-grow:0.8003}
.g-counter{max-width:660px}
.g-counter>:nth-child(1){flex-grow:1.5000}
.g-night{max-width:837px}
.g-night>:nth-child(1){flex-grow:1.7778}
.g-night>:nth-child(2){flex-grow:0.9600}
.g-about{max-width:1120px}
.g-about>:nth-child(1){flex-grow:0.8810}
.g-about>:nth-child(2){flex-grow:0.8903}
.g-about>:nth-child(3){flex-grow:1.3846}
.g-wrigley{max-width:472px}
.g-wrigley>:nth-child(1){flex-grow:0.9070}
@media (max-width: 799.98px){
.g-kitchen>:nth-child(1){max-width:685px}
.g-kitchen>:nth-child(2){max-width:492px}
.g-kitchen>:nth-child(3){max-width:384px}
.g-hot>:nth-child(1){max-width:390px}
.g-hot>:nth-child(2){max-width:314px}
.g-grocery>:nth-child(1){max-width:488px}
.g-grocery>:nth-child(2){max-width:384px}
.g-wine{max-width:464px}
.g-spirits{max-width:417px}
.g-counter>:nth-child(1){max-width:512px}
.g-night>:nth-child(1){max-width:427px}
.g-night>:nth-child(2){max-width:192px}
.g-about>:nth-child(1){max-width:308px}
.g-about>:nth-child(2){max-width:308px}
.g-about>:nth-child(3){max-width:360px}
.g-wrigley>:nth-child(1){max-width:400px}
}

/* Generated by _build/build.py: landing-page photo caps (never upscaled). */
.lp-lp-liquor{max-width:512px}
.lp-lp-wine{max-width:308px}
.lp-lp-bourbon{max-width:192px}
.lp-lp-grocery{max-width:488px}
.lp-lp-directions{max-width:192px}
@media (min-width: 600px){
.lp-lp-liquor{max-width:560px}
.lp-lp-wine{max-width:463px}
.lp-lp-bourbon{max-width:288px}
.lp-lp-grocery{max-width:560px}
.lp-lp-directions{max-width:288px}
}
@media (min-width: 960px){
.lp-lp-liquor{max-width:320px}
.lp-lp-wine{max-width:320px}
.lp-lp-bourbon{max-width:288px}
.lp-lp-grocery{max-width:320px}
.lp-lp-directions{max-width:288px}
}
