:root {
    --brew-ink: #171d19;
    --brew-paper: #f4f0e7;
    --brew-gold: #dfb975;
}

#mainNav {
    background: var(--brew-paper);
    box-shadow: none;
}

#mainNav > div > a > span {
    color: var(--brew-ink);
}

#quickNav {
    background: #26392f;
}

/* Keep the age check above both sticky navigation layers. */
#ageGate {
    z-index: 100;
}

.hero-section.brew-hero {
    padding: 6rem max(6vw, 24px) 7rem;
    min-height: min(850px, 90svh);
    display: flex;
    align-items: center;
    text-align: left;
    background: var(--brew-ink);
}

.brew-hero .hero-overlay {
    background: linear-gradient(90deg, rgba(13, 24, 18, .94), rgba(13, 24, 18, .72) 48%, rgba(13, 24, 18, .25)),
        linear-gradient(0deg, rgba(13, 24, 18, .5), transparent 45%);
}

.brew-hero .hero-bubbles {
    display: none;
}

.brew-hero .hero-content {
    margin: 0;
    padding: 0;
    max-width: 920px;
    text-align: left;
}

.brew-hero .hero-content > * {
    animation: none;
    opacity: 1;
}

.brew-eyebrow {
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.brew-hero .brew-eyebrow {
    margin-bottom: 2rem;
    color: var(--brew-gold);
}

.brew-hero h1 {
    font-size: clamp(2.7rem, 5.6vw, 5.8rem);
    font-weight: 400;
    letter-spacing: -.05em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.brew-hero h1 em,
.brew-intro h2 em {
    display: block;
    font-weight: 400;
}

.brew-hero h1 em {
    color: var(--brew-gold);
}

.brew-hero .hero-content > p {
    max-width: 510px;
    color: #e1e3db;
    font-size: .94rem;
    line-height: 1.9;
    margin: 1.6rem 0 2rem;
}

.brew-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--brew-gold);
    color: var(--brew-ink);
    border: 1px solid var(--brew-gold);
    font-size: .75rem;
    font-weight: 600;
    transition: background .2s, color .2s;
}

.brew-button:hover {
    background: #efcf95;
}

.brew-hero .hero-content > .max-w-lg {
    margin: 0;
    max-width: 510px;
}

.brew-hero #beerSearch {
    background: rgba(255, 255, 255, .07);
    border-color: #889189;
    color: white;
    border-radius: 2px;
    font-size: .75rem;
}

.brew-hero #beerSearch::placeholder {
    color: #d0d5cf;
}

.brew-hero .hero-content button {
    border: 1px solid #889189;
    border-radius: 2px;
    background: transparent;
    box-shadow: none;
    font-size: .75rem;
}

.brew-hero .hero-content > button {
    margin-top: 1rem;
    padding: .5rem 0;
    border: 0;
    border-bottom: 1px solid #889189;
}

.brew-gallery {
    overflow: clip;
    padding: clamp(3.5rem, 8vw, 7rem) max(6vw, 24px);
    background: #e9e7dc;
    color: var(--brew-ink);
}

.brew-intro,
.brew-chapter,
.brew-carousel {
    max-width: 1200px;
    margin-inline: auto;
}

.brew-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
}

.brew-intro-content {
    max-width: 40rem;
}

.brew-intro .brew-eyebrow {
    color: #526549;
    margin-bottom: 1rem;
}

.brew-intro h2 {
    margin: 0 0 .8rem;
    font-size: clamp(2.3rem, 4.5vw, 4.5rem);
    letter-spacing: -.045em;
    line-height: 1.15;
}

.brew-intro h2 em {
    color: #607356;
}

.brew-carousel-controls {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.brew-carousel-position {
    min-width: 6rem;
    margin-right: .75rem;
    color: #526549;
    font-size: .75rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.brew-carousel-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #87917e;
    border-radius: 50%;
    color: #26392f;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.brew-carousel-button:hover {
    border-color: #26392f;
    background: #26392f;
    color: #fffdf8;
}

.brew-carousel {
    overflow: hidden;
    border-radius: 4px;
    background: #fffdf8;
    box-shadow: 0 16px 40px rgb(38 57 47 / 10%);
}

.brew-chapter {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    height: clamp(360px, 34vw, 420px);
}

.brew-story {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.brew-frame {
    position: relative;
    margin: 0;
    height: 100%;
    background: #26392f;
}

.brew-frame::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid #ffffff45;
    z-index: 1;
    pointer-events: none;
}

.brew-portrait {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brew-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    color: white;
    background: linear-gradient(transparent, #101b14e6);
    font-size: .7rem;
    letter-spacing: .04em;
}

.brew-caption span:last-child {
    color: #ddd6c4;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.brew-story .brew-eyebrow {
    color: #526549;
    margin-bottom: 0;
    font-size: .63rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.brew-story h3 {
    margin: 1rem 0;
    font-weight: 400;
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.brew-brewery {
    margin-top: 1rem;
    color: #607356;
    font-size: .8rem;
}

.brew-description {
    margin-top: 0;
    color: #5a6256;
    font-size: .9rem;
    line-height: 1.8;
    max-width: 370px;
}

.brew-story-link {
    display: inline-block;
    padding-block: .75rem;
    margin-top: .75rem;
    color: #344a37;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.brew-story-link:hover {
    color: #587745;
}

.brew-gallery a:focus-visible,
.brew-hero a:focus-visible,
.brew-carousel-button:focus-visible {
    outline: 3px solid #a47937;
    outline-offset: 6px;
}

@media (max-width: 760px) {
    .hero-section.brew-hero {
        min-height: auto;
        padding-block: 4rem 6rem;
    }

    .brew-gallery {
        padding-block: 3.5rem;
    }

    .brew-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.5rem;
    }

    .brew-carousel-controls {
        width: 100%;
    }

    .brew-chapter {
        grid-template-columns: 1fr;
        gap: 1rem;
        height: auto;
    }

    .brew-frame {
        height: auto;
        min-height: 0;
    }

    .brew-frame {
        aspect-ratio: 16 / 10;
    }

    .brew-portrait {
        min-height: 0;
    }

    .brew-story {
        padding: 1.5rem;
    }

    .brew-description {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brew-frame {
        transform: none;
    }

    .brew-button {
        transition: none;
    }

    .brew-carousel-button {
        transition: none;
    }
}
