/* ============ United Peoples Brewery — main.css (editorial edition) ============ */

/* ---------- Brand fonts ---------- */
@font-face {
  font-family: 'Futura Cond';
  src: url('../fonts/Futura-CondensedExtraBold.ttf') format('truetype');
  font-weight: 800; font-display: swap;
}
@font-face {
  font-family: 'Futura UPB';
  src: url('../fonts/Futura-Bold.ttf') format('truetype');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Futura UPB';
  src: url('../fonts/Futura-Medium.ttf') format('truetype');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'MiSans Thai';
  src: url('../fonts/MiSansThaiVF.ttf') format('truetype');
  font-weight: 300 900; font-display: swap;
}

:root {
  /* Brand palette */
  --brown:  #561818;
  --orange: #ff7733;
  --yellow: #ffc936;
  --blue:   #bfefef;
  --foam:   #f7f7f7;
  --tap:    #1e1814;

  --paper:  #ffffff;
  --sand:   #f4efe6;   /* warm neutral surface */
  --line:   rgba(30,24,20,0.12);
  --ink:    var(--tap);
  --muted:  #6a635d;

  /* Type */
  --font-display: 'Futura Cond', 'MiSans Thai', sans-serif;
  --font-head: 'Futura UPB', 'MiSans Thai', sans-serif;
  --font-body: 'MiSans Thai', 'Futura UPB', sans-serif;
  --fs-hero: clamp(3rem, 8vw, 6.5rem);
  --fs-h2:   clamp(2rem, 4.5vw, 3.4rem);
  --fs-h3:   clamp(1.2rem, 2vw, 1.5rem);
  --fs-lede: clamp(1.15rem, 1.7vw, 1.4rem);
  --fs-body: clamp(1rem, 1.15vw, 1.0625rem);

  --shadow-soft: 0 18px 40px -18px rgba(30,24,20,0.30);
  --radius: 16px;
  --radius-lg: 26px;
  --max-width: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space-5: clamp(4rem, 9vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.container { max-width: var(--max-width); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--tap); color: var(--foam);
  padding: 0.7rem 1.1rem; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0 0 0.7rem; line-height: 1.05; }
h1, h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; }
h3, h4 { font-family: var(--font-head); font-weight: 700; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
:lang(th) { line-height: 1.5; }
p { margin: 0 0 1rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1rem;
}
.lede { font-size: var(--fs-lede); font-weight: 500; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.7rem; border-radius: 999px;
  text-decoration: none; border: 1.5px solid var(--tap);
  color: var(--tap); background: transparent;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
  min-height: 46px; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover { background: #ff8a4d; border-color: #ff8a4d; }
.btn-dark { background: var(--tap); border-color: var(--tap); color: var(--foam); }
.btn-dark:hover { background: #000; }
.btn-ghost-light { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); }
.nav-links a:not(.btn) {
  color: var(--tap); text-decoration: none;
  font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.08em;
  padding: 0.3rem 0; position: relative;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--orange); transition: right 200ms ease;
}
.nav-links a:not(.btn):hover::after { right: 0; }
.nav-links .btn { padding: 0.5rem 1.2rem; min-height: 40px; }

.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; background: none; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; padding: 10px;
}
.menu-toggle span { display: block; height: 2px; width: 100%; background: var(--tap); border-radius: 2px; transition: transform 200ms ease, opacity 200ms ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (full-bleed, Firestone-style) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: min(92vh, 880px);
  display: flex; align-items: flex-end;
  /* Storefront photo (images/hero.jpg). To change: replace that file or this url. */
  background: #2a1420 url('../images/hero.jpg') center 38% / cover no-repeat;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(11,10,8,0.86) 0%, rgba(11,10,8,0.34) 44%, rgba(11,10,8,0.05) 70%, rgba(11,10,8,0.30) 100%),
    linear-gradient(to right, rgba(11,10,8,0.74) 0%, rgba(11,10,8,0.28) 46%, rgba(11,10,8,0) 68%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-block: clamp(3rem, 8vw, 6.5rem); }
.hero-content .eyebrow { color: var(--yellow); }
.hero h1 { color: #fff; font-size: clamp(3.2rem, 9vw, 7rem); text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.hero h1 .out { color: var(--orange); }
.hero .lede { color: rgba(255,255,255,0.92); max-width: 33rem; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4); color: #fff; text-decoration: none; font-size: 1.1rem;
}
.hero-scroll:hover { background: rgba(255,255,255,0.14); }

/* Marquee strip under hero */
.strip {
  background: var(--brown); color: var(--foam);
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.85rem;
  padding-block: 0.9rem; overflow: hidden; white-space: nowrap;
}
.strip-inner { display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; text-align: center; }
.strip-inner span { display: inline-flex; align-items: center; gap: 2.5rem; }
.strip-inner span::before { content: "★"; color: var(--yellow); }

/* ---------- Section shells ---------- */
.section { padding-block: var(--space-5); }
.section-sand { background: var(--sand); }
.section-brown { background: var(--brown); color: var(--foam); position: relative; overflow: hidden; }
.section-brown .lede { color: rgba(247,247,247,0.8); }
.section-grad { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.section-brown > .container { position: relative; z-index: 1; }
.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.head-row .section-head { margin-bottom: 0; }

/* ---------- The Goods (featured beers) ---------- */
.goods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.good {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper); overflow: hidden; display: flex; flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.good:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.good-visual { aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.good-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.good:hover .good-visual img { transform: scale(1.04); }
.good-body { padding: 1.4rem 1.6rem 1.8rem; border-top: 1px solid var(--line); }
.good .medal { font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.good h3 { color: var(--brown); margin: 0.3rem 0 0.2rem; }
.good .meta { font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: 0.85rem; margin-bottom: 0.7rem; }
.good p { margin: 0; font-size: 0.96rem; }
.good-visual.v-blue { background: linear-gradient(160deg,#e7fafa,var(--blue)); }
.good-visual.v-yellow { background: linear-gradient(160deg,#fff2cf,var(--yellow)); }
.good-visual.v-sand { background: linear-gradient(160deg,#fbf7ef,var(--sand)); }

/* ---------- Lineup list ---------- */
.lineup { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem,4vw,4rem); }
.tap {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: baseline;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
}
.tap .num { font-family: var(--font-display); color: var(--orange); font-size: 1.1rem; }
.tap .name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.tap .name small { display: block; font-weight: 500; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.02em; text-transform: none; }
.tap .abv { font-family: var(--font-head); font-weight: 700; color: var(--muted); white-space: nowrap; }

/* ---------- Stories ---------- */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem,2vw,1.6rem); }
.story { border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform 200ms ease; }
.story:hover { transform: translateY(-5px); }
.story-cover { aspect-ratio: 16/10; display: grid; place-items: center; }
.story-cover.c1 { background: linear-gradient(150deg,#ffd98a,var(--orange)); }
.story-cover.c2 { background: linear-gradient(150deg,#d8f6f6,var(--blue)); }
.story-cover.c3 { background: linear-gradient(150deg,#7a2a2a,var(--brown)); }
.story-cover img { width: 46%; }
/* Cards linked to real posts wrap in an <a> and use a full-bleed cover photo. */
.story > a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
/* Don't let flex grow/shrink the cover — it must keep its aspect ratio so every
   card's image is the same height regardless of how long the text below is. */
.story > a .story-cover { flex: 0 0 auto; }
/* Photo covers: fill the aspect-ratio box exactly. `height: 100%` alone does not
   resolve against an aspect-ratio-sized parent, so a loaded image would fall back
   to its own intrinsic ratio and make cards uneven. Absolute fill pins it. */
.story > a .story-cover:not(.c1):not(.c2):not(.c3) { background: var(--sand); position: relative; overflow: hidden; }
.story > a .story-cover:not(.c1):not(.c2):not(.c3) img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.story > a .story-cover.c1 img { width: 46%; height: auto; object-fit: contain; }
.story-body { padding: 1.3rem 1.4rem 1.5rem; }
.story .cat { font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.story h3 { font-size: 1.15rem; margin: 0.4rem 0 0.3rem; }
.story p { font-size: 0.94rem; margin: 0; color: var(--muted); }

/* ---------- Awards ---------- */
.awards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem,2vw,1.5rem); }
.award-card { border: 1px solid rgba(247,247,247,0.22); border-radius: var(--radius); padding: 1.6rem; }
.award-card .medal { font-size: 1.6rem; }
.award-card b { display: block; font-family: var(--font-head); color: var(--yellow); margin-top: 0.4rem; }
.award-card span { color: rgba(247,247,247,0.82); font-size: 0.92rem; }

/* ---------- Taproom ---------- */
.taproom-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.hours-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem,3vw,2.4rem); box-shadow: var(--shadow-soft); }
.hours-card h3 { color: var(--brown); }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
.hours-list li:last-child { border-bottom: 0; color: var(--muted); }
.hours-list span:last-child { font-family: var(--font-head); font-weight: 700; }
.taproom-photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.8rem, 2vw, 1.4rem); margin-top: clamp(2rem, 4vw, 3.2rem); }
.taproom-photos img { width: 100%; height: auto; aspect-ratio: 16/11; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
@media (max-width: 640px) { .taproom-photos { grid-template-columns: 1fr; } }

/* ---------- Locations (two taprooms) ---------- */
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.8rem); }
.location { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); display: flex; flex-direction: column; box-shadow: var(--shadow-soft); }
.location-photo { aspect-ratio: 16/10; overflow: hidden; background: var(--sand); }
.location-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.location-body { padding: clamp(1.4rem, 2.5vw, 2.1rem); display: flex; flex-direction: column; flex: 1; }
.location-body h3 { color: var(--brown); margin-bottom: 0.3rem; }
.location-body h3 span { color: var(--muted); font-weight: 500; font-family: var(--font-head); }
.loc-vibe { color: var(--muted); }
.loc-addr { font-weight: 600; margin-bottom: 1rem; }
.loc-hours { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.loc-hours li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.55rem; border-bottom: 1px solid var(--line); }
.loc-hours li:last-child { border-bottom: 0; }
.loc-hours span:last-child { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.loc-cta { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: auto; }
.loc-badge { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.6rem; }
@media (max-width: 760px) { .locations { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--tap); color: var(--foam); border-radius: var(--radius-lg); padding: clamp(2rem,5vw,3.6rem); text-align: center; }
.newsletter h2 { color: var(--foam); }
.newsletter .lede { color: rgba(247,247,247,0.78); max-width: 34rem; margin-inline: auto; }
.news-form { display: flex; gap: 0.6rem; max-width: 26rem; margin: 1.8rem auto 0; flex-wrap: wrap; justify-content: center; }
.news-form input {
  flex: 1 1 14rem; min-width: 0; padding: 0.85rem 1.1rem; border-radius: 999px; border: 1px solid rgba(247,247,247,0.3);
  background: rgba(255,255,255,0.06); color: var(--foam); font-family: var(--font-body); font-size: 1rem;
}
.news-form input::placeholder { color: rgba(247,247,247,0.5); }
.news-form input:focus { outline: 2px solid var(--orange); }

/* ---------- Partners ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.partner { font-family: var(--font-head); font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 0.65rem 1.35rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--tap); color: rgba(247,247,247,0.7); padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-logo { height: 58px; width: auto; margin-bottom: 1rem; }
.footer-col h4 { font-family: var(--font-head); color: var(--foam); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; margin-bottom: 0.9rem; }
.footer-col a { display: block; color: rgba(247,247,247,0.7); text-decoration: none; padding: 0.25rem 0; font-size: 0.95rem; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(247,247,247,0.15); padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; }
.footer-note { max-width: 44rem; font-size: 0.85rem; opacity: 0.7; margin-top: 1rem; }

/* ---------- Asia Beer Championship 2026 ---------- */
.abc-head { text-align: center; margin-top: clamp(2.5rem, 5vw, 4rem); }
.abc-kicker {
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--yellow); margin-bottom: 0.7rem;
}
.abc-title {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.02; color: var(--foam);
  text-wrap: balance; margin-bottom: 0.6rem;
}
.abc-sub { color: rgba(247,247,247,0.78); font-size: 1.02rem; }

.abc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(0.8rem, 1.8vw, 1.2rem);
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
}
.abc-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,201,54,0.32);
  border-radius: var(--radius); padding: 1.3rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.abc-card--brewery { background: rgba(255,201,54,0.12); border-color: rgba(255,201,54,0.55); }
.abc-card b { font-family: var(--font-head); font-size: 1.12rem; color: var(--foam); line-height: 1.2; }
.abc-card span:last-child { font-size: 0.88rem; color: rgba(247,247,247,0.72); }
.abc-badge {
  align-self: flex-start; font-family: var(--font-head); font-weight: 700;
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  background: rgba(255,255,255,0.14); color: var(--foam);
}
.abc-badge--gold { background: var(--yellow); color: var(--tap); }

.abc-photos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(0.7rem, 1.6vw, 1.1rem); margin-top: clamp(1.4rem, 3vw, 2rem);
}
.abc-photos img {
  width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); display: block;
}
/* Official competition badges replace the old emoji medals. */
.award-badge { width: 56px; height: auto; display: block; margin-bottom: 0.7rem; }

.abc-more-label {
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247,247,247,0.55);
  text-align: center; margin-top: clamp(2.6rem, 5vw, 4rem); margin-bottom: 1.1rem;
}

/* ---------- Blog ---------- */
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 200ms ease, box-shadow 200ms ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.post-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.post-card-cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); position: relative; flex: 0 0 auto; }
.post-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-cover--empty { display: grid; place-items: center; background: var(--blue); }
.post-card-cover--empty img { width: auto; height: 60%; object-fit: contain; }
.post-card-body { padding: clamp(1.1rem, 2vw, 1.5rem); display: flex; flex-direction: column; flex: 1; }
.post-card-body h2 { font-family: var(--font-head); font-size: var(--fs-h3); color: var(--tap); margin: 0.35rem 0 0.5rem; }
.post-card-body p { color: var(--muted); font-size: 0.95rem; }
.post-meta { color: var(--muted); font-size: 0.82rem; margin-top: auto; padding-top: 0.9rem; }
/* Press coverage cards link off-site; the publisher is named on the card. */
.post-ext { color: var(--orange); font-weight: 700; font-size: 0.82rem; margin-top: 0.6rem; }
.story .post-ext { margin-top: 0.7rem; }
.post-card--press .post-ext { display: inline; margin-left: 0.5rem; }

.post-empty { text-align: center; padding: clamp(3rem, 8vw, 6rem) 1rem; }
.post-empty img { margin-bottom: 1.5rem; }
.post-empty h2 { font-family: var(--font-head); color: var(--tap); margin-bottom: 0.6rem; }
.post-empty p { color: var(--muted); max-width: 32rem; margin: 0 auto 1.6rem; }

/* Single post */
.post { padding-block: clamp(2.5rem, 6vw, 5rem); }
.post-head { max-width: 46rem; text-align: center; }
.post-head h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.05; text-transform: uppercase; color: var(--tap); margin: 0.4rem 0 0.6rem; text-wrap: balance; }
.post-cover { max-width: 60rem; margin-block: clamp(2rem, 4vw, 3rem); }
.post-cover img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.post-body { max-width: 42rem; font-size: 1.06rem; line-height: 1.8; color: var(--ink); }
.post-body > * + * { margin-top: 1.3rem; }
.post-body h2 { font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--tap); margin-top: 2.4rem; }
.post-body h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--tap); margin-top: 1.9rem; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.post-body a { color: var(--orange); }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body li + li { margin-top: 0.5rem; }
/* Pull quote: editorial weight-and-scale contrast rather than an accent rule. */
.post-body blockquote {
  margin-block: clamp(2rem, 4vw, 2.8rem);
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.4; color: var(--brown); text-wrap: balance;
}
.post-body blockquote p + p { margin-top: 0.8rem; }
.post-body blockquote cite { display: block; margin-top: 0.9rem; font-family: var(--font-body); font-size: 0.85rem; font-style: normal; color: var(--muted); }
.post-foot { max-width: 42rem; margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Instagram carousel ---------- */
.section-ig { background: var(--sand); border-block: 1px solid var(--line); }
/* The handle is one long unbreakable token — give it its own scale so it never
   overflows on narrow screens. */
.section-ig .section-head h2 {
  font-size: clamp(1.3rem, 5vw, 3.2rem);
  overflow-wrap: anywhere; text-transform: lowercase;
}
/* Official Instagram embeds. Each iframe renders Instagram's own card, so we
   only control the frame around it. Fixed height + hidden overflow keeps the
   grid tidy since embeds report varying natural heights. */
.ig-grid {
  list-style: none; margin: clamp(1.8rem, 3.5vw, 2.6rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.ig-grid .ig-item {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; height: 500px;
  box-shadow: var(--shadow-soft);
}
.ig-grid iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 520px) { .ig-grid .ig-item { height: 440px; } }

/* LINE call-to-action (replaces the old email newsletter form) */
.line-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.line-note { font-size: 0.88rem; color: var(--muted); }
.section-brown .line-note { color: rgba(247,247,247,0.72); }

.ig-controls { display: flex; align-items: center; gap: 0.5rem; }
.ig-nav {
  width: 44px; height: 44px; flex: 0 0 44px;
  border: 1px solid var(--line); background: var(--paper); color: var(--tap);
  border-radius: 999px; cursor: pointer; font-size: 1.05rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}
.ig-nav:hover { background: var(--tap); color: var(--foam); border-color: var(--tap); }
.ig-nav[disabled] { opacity: 0.35; cursor: default; }
.ig-nav[disabled]:hover { background: var(--paper); color: var(--tap); border-color: var(--line); }

.ig-track {
  list-style: none; margin: clamp(1.6rem, 3vw, 2.4rem) 0 0; padding: 0 0 0.6rem;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(210px, 24vw, 290px);
  gap: clamp(0.7rem, 1.6vw, 1.1rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.ig-track:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.ig-track::-webkit-scrollbar { height: 6px; }
.ig-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.ig-item { scroll-snap-align: start; }
.ig-item a {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 1 / 1; background: var(--foam);
}
.ig-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease; }
.ig-item a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,24,20,0.42), rgba(30,24,20,0) 55%);
  opacity: 0; transition: opacity 260ms ease;
}
.ig-item a:hover img, .ig-item a:focus-visible img { transform: scale(1.05); }
.ig-item a:hover::after, .ig-item a:focus-visible::after { opacity: 1; }
.ig-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 0.7rem 0.85rem; color: #fff; font-size: 0.78rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  opacity: 0; transform: translateY(6px); transition: opacity 260ms ease, transform 260ms ease;
}
.ig-item a:hover .ig-cap, .ig-item a:focus-visible .ig-cap { opacity: 1; transform: none; }
@media (max-width: 640px) { .ig-controls .ig-nav { display: none; } }

/* ---------- Age gate ---------- */
/* Base display rules live inline in <head> so the overlay paints before the
   stylesheet lands. Everything below is presentation only. */
.age-gate {
  align-items: center; justify-content: center;
  padding: clamp(1.25rem, 5vw, 3rem);
  color: #fff; text-align: center;
}
.age-gate-bg {
  position: absolute; inset: 0;
  background: #1e1814 url('../images/hero.jpg') center 40% / cover no-repeat;
  opacity: 0.42; filter: blur(5px); transform: scale(1.06);
}
.age-gate::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 30%, rgba(30,24,20,0.55) 0%, rgba(30,24,20,0.92) 70%);
}
.age-gate-panel {
  position: relative; z-index: 1;
  width: min(38rem, 100%);
  display: flex; flex-direction: column; align-items: center;
}
.age-gate-logo { width: clamp(140px, 26vw, 190px); height: auto; margin-bottom: clamp(1.5rem, 4vw, 2.6rem); }
.age-gate-view { display: flex; flex-direction: column; align-items: center; width: 100%; }
.age-gate-view[hidden] { display: none; }
.age-gate-kicker {
  font-family: var(--font-head); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow);
  margin-bottom: 0.9rem;
}
.age-gate-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: 1.02;
  text-transform: uppercase; margin-bottom: 1.1rem; text-wrap: balance;
}
.age-gate-title span { color: var(--orange); }
.age-gate-desc {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem); line-height: 1.7;
  color: rgba(255,255,255,0.86); max-width: 30rem; margin-bottom: clamp(1.6rem, 4vw, 2.2rem);
}
.age-gate-desc span[lang="th"] { color: var(--blue); }
.age-gate-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.age-gate-actions .btn { min-width: 9.5rem; }
.age-gate-fine {
  margin-top: clamp(1.6rem, 4vw, 2.2rem);
  font-size: 0.78rem; color: rgba(255,255,255,0.55); letter-spacing: 0.02em;
}
/* Dismissal fade — skipped entirely under reduced-motion (see block below). */
.age-gate.is-closing { opacity: 0; transition: opacity 320ms ease; }

/* ---------- Motion ---------- */
:root {
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Non-animated content stays visible. */
.reveal { opacity: 1; }

/* Entrance choreography. The hidden start state exists ONLY when JS is active
   (the `js` class is set pre-paint), so no-JS and headless renders never ship
   blank; a 1.8s inline safety timeout also force-reveals if the script fails. */
.js .hero-content > *,
.js .goods-grid > .good,
.js .lineup > .tap,
.js .stories > .story,
.js .awards-row > .award-card,
.js .locations > .location {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
/* The hero is the one signature moment: a touch longer and further. */
.js .hero-content > * { transform: translateY(26px); transition-duration: 0.8s; }

.js .hero-content > *.in,
.js .goods-grid > .good.in,
.js .lineup > .tap.in,
.js .stories > .story.in,
.js .awards-row > .award-card.in,
.js .locations > .location.in {
  opacity: 1;
  transform: none;
}

/* Header earns a soft lift once you scroll off the hero (flat at rest). */
.site-header { transition: box-shadow 260ms var(--ease-out-quart); }
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(30, 24, 20, 0.5); }

/* Tactile button press. */
.btn:active { transform: scale(0.97); transition-duration: 90ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-content > *,
  .js .goods-grid > .good,
  .js .lineup > .tap,
  .js .stories > .story,
  .js .awards-row > .award-card,
  .js .locations > .location {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn, .good, .story, .good-visual img, .site-header,
  .nav-links a:not(.btn)::after, .age-gate { transition: none !important; }
  .age-gate-bg { filter: none; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .goods-grid, .stories, .awards-row { grid-template-columns: repeat(2, 1fr); }
  .lineup { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .taproom-grid { grid-template-columns: 1fr; }
  .hero { min-height: min(86vh, 680px); background-position: center 42%; }
  .hero .lede { max-width: 100%; }
  .hero-scrim {
    background:
      linear-gradient(to top, rgba(11,10,8,0.86) 0%, rgba(11,10,8,0.35) 50%, rgba(11,10,8,0.05) 82%),
      linear-gradient(to right, rgba(11,10,8,0.7) 0%, rgba(11,10,8,0.25) 55%, rgba(11,10,8,0) 85%);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.6rem; display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { padding: 0.6rem 0; width: 100%; font-size: 1rem; }
}
@media (max-width: 520px) {
  .goods-grid, .stories, .awards-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
