/* ============================================
   BREWING BEER — Editorial Overrides
   Base: article-shared.css
   Prefix: brew-
   Accent: Craft amber #B8860B
   ============================================ */

:root {
  --art-accent: #B8860B;
  --art-accent-dark: #956D09;
  --art-accent-glow: rgba(184, 134, 11, 0.4);
  --art-accent-subtle: rgba(184, 134, 11, 0.06);
  --art-link: #956D09;
  --art-link-hover: #7A5907;
  --art-link-underline: #B8860B;
  --art-ornament: #B8860B;
  --art-subtitle-color: #D4A843;
  --art-hero-accent-line: #D4A843;
}


/* ── Hero overrides ── */
.art-hero__media img {
  object-position: center top;
  animation: brewHeroKB 30s ease-out forwards;
}

@keyframes brewHeroKB {
  0%   { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.art-hero__overlay {
  background:
    linear-gradient(180deg,
      rgba(25, 18, 5, 0.15) 0%,
      rgba(25, 18, 5, 0) 20%,
      rgba(25, 18, 5, 0.35) 55%,
      rgba(25, 18, 5, 0.88) 80%,
      rgba(25, 18, 5, 1) 100%
    );
}

.art-hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(184, 134, 11, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.art-hero__category {
  background: rgba(184, 134, 11, 0.85);
  color: #fff;
}

.art-hero {
  background: #191205;
}

/* ── Tighten intro → first section gap ── */
.art-intro + .art-section {
  padding-top: var(--space-md);
}


/* ============================================
   BREW-FACT — Brewing tradition fact box
   ============================================ */
.brew-fact {
  max-width: 700px;
  margin: var(--space-xl) auto;
  padding: var(--space-lg) var(--space-xl);
  background: var(--art-accent-subtle);
  border-left: 4px solid var(--art-accent);
  border-radius: 0 var(--radius-xl, 12px) var(--radius-xl, 12px) 0;
}

.brew-fact__emoji {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  display: block;
}

.brew-fact__title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-weight: 700;
  color: var(--art-accent-dark);
  margin: 0 0 var(--space-sm);
}

.brew-fact__text {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-base, 1rem);
  line-height: 1.8;
  color: var(--color-text-secondary, #4a4a4a);
  margin: 0;
}


/* ============================================
   BREW-SPLIT — Side-by-side image + text
   ============================================ */
.brew-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 900px;
  margin: var(--space-xl) auto;
}

.brew-split--reverse {
  direction: rtl;
}

.brew-split--reverse > * {
  direction: ltr;
}

.brew-split__fig {
  margin: 0;
}

.brew-split__img-wrap {
  overflow: hidden;
  border-radius: var(--radius-xl, 12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.brew-split__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.brew-split figcaption {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-muted, #888);
  font-style: italic;
  margin-top: var(--space-xs);
}

.brew-split__text {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-lg, 1.125rem);
  line-height: 1.9;
  color: var(--color-text-secondary, #4a4a4a);
}

.brew-split__text p {
  margin: 0 0 var(--space-md);
}

.brew-split__text p:last-child {
  margin-bottom: 0;
}


/* ============================================
   BREW-BLEED — Full-bleed image break
   ============================================ */
.brew-bleed {
  max-width: 1100px;
  margin: var(--space-2xl) auto;
}

.brew-bleed--section-end {
  margin-bottom: var(--space-md);
}

.brew-bleed figure {
  margin: 0;
}

.brew-bleed__img-wrap {
  overflow: hidden;
  border-radius: var(--radius-xl, 12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.brew-bleed__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.brew-bleed figcaption {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-muted, #888);
  font-style: italic;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.brew-village-card {
  max-width: 900px;
  margin: var(--space-xl) auto;
}


/* ============================================
   BREW-STAT — Key statistics display
   ============================================ */
.brew-stat {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  max-width: 700px;
  margin: var(--space-xl) auto;
  padding: var(--space-lg) 0;
}

.brew-stat__item {
  text-align: center;
}

.brew-stat__number {
  display: block;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--art-accent);
  line-height: 1.1;
}

.brew-stat__label {
  display: block;
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-muted, #888);
  margin-top: var(--space-xs);
  letter-spacing: 0.03em;
}


/* ============================================
   BREW-PORTRAIT — Centered portrait image
   ============================================ */
.brew-portrait {
  max-width: 600px;
  margin: var(--space-xl) auto;
}

.brew-portrait figure {
  margin: 0;
}

.brew-portrait__img-wrap {
  overflow: hidden;
  border-radius: var(--radius-xl, 12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.brew-portrait__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.brew-portrait figcaption {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-muted, #888);
  font-style: italic;
  margin-top: var(--space-sm);
  text-align: center;
}


/* ============================================
   BREW-GALLERY — Beer label gallery grid
   ============================================ */
.brew-gallery {
  max-width: 1120px;
  margin: var(--space-2xl) auto;
}

.brew-gallery__title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--art-accent-dark);
  text-align: center;
  margin: 0 0 var(--space-lg);
}

.brew-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: var(--space-lg);
  justify-content: center;
  justify-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.brew-gallery__item {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.brew-gallery__img-wrap {
  overflow: hidden;
  border-radius: var(--radius-xl, 12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.brew-gallery__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.brew-gallery__caption {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-muted, #888);
  font-style: italic;
  margin-top: var(--space-xs);
  line-height: 1.5;
}


/* ── Responsive — Tablet (768px) ── */
@media (max-width: 768px) {
  .art-hero__media img {
    object-position: center top;
  }

  .brew-split,
  .brew-split--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    max-width: 600px;
  }

  .brew-bleed {
    margin-left: var(--space-md);
    margin-right: var(--space-md);
  }

  .brew-stat {
    gap: var(--space-lg);
  }

  .brew-stat__number {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
  }

  .brew-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .art-card-grid__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .art-card-grid {
    padding: var(--space-xl) var(--space-lg);
  }
}

/* ── Mobile (480px) ── */
@media (max-width: 480px) {
  .brew-gallery__grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .art-hero__media img {
    animation: none;
    transform: none;
  }
}
