:root {
    --ink: #1f1a17;
    --ink-soft: #40372f;
    --gold: #c99337;
    --gold-dark: #9a6b20;
    --cream: #f7f2e8;
    --cream-deep: #eee4d2;
    --paper: #fffdf9;
    --line: #d8c7ac;
    --muted: #6e6258;
    --shadow: 0 14px 34px rgba(31, 26, 23, 0.09);
    --radius: 18px;
    --shell: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
}

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

a {
    color: var(--gold-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--ink);
}

.shell {
    width: min(calc(100% - 40px), var(--shell));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 2000;
    transform: translateY(-150%);
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    color: #000;
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(201, 147, 55, 0.35);
    background: rgba(255, 253, 249, 0.96);
    backdrop-filter: blur(10px);
}

.site-header-inner {
    width: min(calc(100% - 40px), var(--shell));
    min-height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    color: var(--ink);
    text-decoration: none;
}

.brand img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 3px 12px rgba(31, 26, 23, 0.14);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.brand-text strong {
    font-size: 21px;
}

.brand-text span {
    margin-top: 4px;
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: 700;
}

.primary-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.primary-nav a {
    padding: 10px 11px;
    border-radius: 9px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.active {
    background: var(--ink);
    color: #fff;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
    width: 22px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
}

.menu-toggle-lines {
    position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle-lines::before { top: -7px; }
.menu-toggle-lines::after { top: 7px; }

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 60px;
    background:
        radial-gradient(circle at 88% 12%, rgba(201, 147, 55, 0.24), transparent 28%),
        linear-gradient(135deg, #231d19 0%, #34291f 50%, #181411 100%);
    color: #fff;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
                linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 28px 28px;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
    gap: 58px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.basics-copy h2,
.ingredient-copy h2 {
    margin: 0;
    line-height: 1.08;
}

.hero h1 {
    max-width: 620px;
    font-size: clamp(42px, 6vw, 72px);
    letter-spacing: -0.035em;
}

.hero-copy p {
    max-width: 670px;
    color: #e8ded2;
    font-size: 18px;
}

.hero-copy .hero-lead {
    margin-top: 24px;
    font-size: 21px;
    line-height: 1.55;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 19px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.button.primary {
    background: var(--gold);
    color: var(--ink);
}

.button.primary:hover,
.button.primary:focus-visible {
    background: #e0ad54;
}

.button.secondary {
    border: 1px solid rgba(255,255,255,0.45);
    color: #fff;
}

.button.secondary:hover,
.button.secondary:focus-visible {
    background: rgba(255,255,255,0.09);
}

.hero-media img {
    width: 100%;
    max-height: 500px;
    border: 7px solid rgba(255,255,255,0.92);
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.quick-links {
    position: relative;
    z-index: 5;
    margin-top: -24px;
}

.quick-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.quick-link-card {
    min-height: 126px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.quick-link-card:hover,
.quick-link-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(31,26,23,0.14);
}

.quick-link-kicker {
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.quick-link-card strong {
    margin-top: 4px;
    font-size: 22px;
}

.quick-link-card > span:last-child {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.content-section,
.ingredient-section {
    scroll-margin-top: 115px;
}

.content-section {
    padding: 82px 0;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 34px;
}

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading h2,
.basics-copy h2,
.ingredient-copy h2 {
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -0.025em;
}

.section-heading p,
.basics-copy > p,
.ingredient-copy > p {
    color: var(--ink-soft);
    font-size: 17px;
}

.pairing-section {
    padding-top: 90px;
}

.pairing-feature {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: stretch;
}

.pairing-feature > img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.pairing-rules {
    display: grid;
    gap: 13px;
}

.rule-card {
    padding: 20px 22px;
    border-left: 5px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--paper);
    box-shadow: 0 6px 20px rgba(31,26,23,0.06);
}

.rule-card strong {
    font-size: 18px;
}

.rule-card p {
    margin: 6px 0 0;
    color: var(--muted);
}

.source-note {
    margin: 24px 0 22px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.pairing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pairing-item {
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,0.6);
}

.pairing-item strong,
.pairing-item span {
    display: block;
}

.pairing-item strong {
    color: var(--gold-dark);
    font-size: 14px;
    text-transform: uppercase;
}

.pairing-item span {
    margin-top: 5px;
    color: var(--ink-soft);
    font-size: 14px;
}

.beer-basics {
    background: var(--ink);
    color: #fff;
}

.basics-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
    gap: 54px;
    align-items: center;
}

.basics-image img {
    width: min(100%, 360px);
    margin: 0 auto;
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.28));
}

.basics-copy > p {
    color: #e5dacc;
}

.basics-copy a {
    color: #f0bd64;
}

.basics-copy h3 {
    margin-top: 28px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ingredient-jump-list {
    margin: 18px 0 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.ingredient-jump-list a {
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ingredient-jump-list a:hover,
.ingredient-jump-list a:focus-visible {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--ink);
}

.ingredient-section {
    padding: 58px 0;
}

.ingredient-section.alt {
    background: var(--cream-deep);
}

.ingredient-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 52px;
    align-items: center;
}

.ingredient-card.reverse {
    grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.72fr);
}

.ingredient-card.reverse .ingredient-media {
    order: 2;
}

.ingredient-card.reverse .ingredient-copy {
    order: 1;
}

.ingredient-media {
    display: flex;
    justify-content: center;
}

.ingredient-media img {
    width: min(100%, 360px);
    max-height: 360px;
    border-radius: 18px;
    object-fit: contain;
    box-shadow: var(--shadow);
    background: #fff;
}

.ingredient-media.wide img {
    width: min(100%, 390px);
    max-height: 300px;
    object-fit: cover;
}

.ingredient-media.portrait img {
    width: min(100%, 240px);
    max-height: 440px;
}

.ingredient-copy p:last-child {
    margin-bottom: 0;
}

.clean-list {
    margin: 20px 0;
    padding-left: 21px;
}

.clean-list li {
    margin: 8px 0;
}

.two-column-list {
    columns: 2;
    column-gap: 36px;
}

.two-column-list li {
    break-inside: avoid;
}

.history-quote {
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,0.65);
    overflow: hidden;
}

.history-quote summary {
    padding: 14px 17px;
    color: var(--gold-dark);
    font-weight: 800;
    cursor: pointer;
}

.history-quote blockquote {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--ink-soft);
    font-size: 15px;
    font-style: italic;
}

.site-footer {
    padding: 46px 0 22px;
    background: #171310;
    color: #d8cdc1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.footer-grid p {
    max-width: 560px;
    margin: 8px 0 0;
    color: #aa9c8e;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 20px;
}

.footer-links a {
    color: #e8ded2;
    font-size: 14px;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--gold);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
    color: #87796d;
    font-size: 12px;
}

@media (max-width: 980px) {
    .site-header-inner {
        min-height: 78px;
    }

    .brand {
        min-width: 0;
    }

    .brand img {
        width: 58px;
        height: 58px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 12px max(20px, calc((100vw - var(--shell)) / 2));
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        background: var(--paper);
        box-shadow: 0 16px 26px rgba(31,26,23,0.12);
    }

    .primary-nav.open {
        display: flex;
    }

    .primary-nav a {
        padding: 12px 14px;
    }

    .hero-grid,
    .pairing-feature,
    .basics-grid,
    .ingredient-card,
    .ingredient-card.reverse {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 34px;
    }

    .hero-media {
        max-width: 700px;
    }

    .pairing-feature > img {
        min-height: 0;
        max-height: 430px;
    }

    .pairing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .basics-image img {
        width: min(280px, 70vw);
    }

    .ingredient-card,
    .ingredient-card.reverse {
        gap: 28px;
    }

    .ingredient-card.reverse .ingredient-media,
    .ingredient-card.reverse .ingredient-copy {
        order: initial;
    }

    .ingredient-media {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .shell,
    .site-header-inner {
        width: min(calc(100% - 24px), var(--shell));
    }

    .site-header-inner {
        gap: 10px;
    }

    .brand img {
        width: 52px;
        height: 52px;
    }

    .brand-text strong {
        font-size: 16px;
    }

    .brand-text span {
        font-size: 12px;
    }

    .menu-label {
        display: none;
    }

    .hero {
        padding: 48px 0 46px;
    }

    .hero h1 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .hero-copy .hero-lead {
        font-size: 18px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .quick-links {
        margin-top: 18px;
    }

    .quick-link-grid,
    .pairing-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 62px 0;
    }

    .pairing-section {
        padding-top: 48px;
    }

    .pairing-feature {
        gap: 18px;
    }

    .ingredient-section {
        padding: 45px 0;
    }

    .ingredient-media {
        justify-content: center;
    }

    .two-column-list {
        columns: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

/* About page */
.page-hero {
    padding: 56px 0 36px;
    background:
        radial-gradient(circle at 82% 18%, rgba(201, 147, 55, 0.22), transparent 30%),
        linear-gradient(135deg, #231d19 0%, #33281f 55%, #181411 100%);
    color: #fff;
}

.page-hero .eyebrow {
    margin-bottom: 8px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1;
    letter-spacing: -0.035em;
}

.page-hero p:last-child {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.about-section {
    padding: 64px 0 76px;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.55fr);
    gap: 58px;
    align-items: center;
}

.about-art {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 510px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 50% 38%, rgba(201, 147, 55, 0.22), transparent 44%),
        linear-gradient(180deg, #fffdf9 0%, #eee4d2 100%);
    box-shadow: var(--shadow);
}

.about-art::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(201, 147, 55, 0.13);
    filter: blur(2px);
}

.about-art img {
    position: relative;
    z-index: 1;
    max-height: 450px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 20px rgba(31, 26, 23, 0.18));
}

.about-copy {
    padding: 4px 0;
}

.about-copy h2 {
    margin: 0 0 22px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.about-copy p {
    margin: 0 0 22px;
    font-size: 17px;
}

.about-copy p:last-child {
    margin-bottom: 0;
}

.about-callout {
    margin-top: 30px;
    padding: 22px 24px;
    border-left: 5px solid var(--gold);
    border-radius: 0 12px 12px 0;
    background: var(--paper);
    box-shadow: 0 8px 24px rgba(31, 26, 23, 0.07);
    font-weight: 700;
}

.about-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.about-actions .button.secondary {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.about-actions .button.secondary:hover,
.about-actions .button.secondary:focus-visible {
    background: var(--ink-soft);
    border-color: var(--ink-soft);
    color: #fff;
}

@media (max-width: 820px) {
    .page-hero {
        padding: 42px 0 30px;
    }

    .about-section {
        padding: 42px 0 56px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .about-art {
        min-height: 380px;
    }

    .about-art img {
        max-height: 330px;
    }
}

@media (max-width: 520px) {
    .about-art {
        min-height: 310px;
        padding: 22px;
    }

    .about-art img {
        max-height: 270px;
    }

    .about-copy p {
        font-size: 16px;
    }
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-section {
    padding: 62px 0 78px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 44px;
    align-items: start;
}

.contact-intro {
    padding: 6px 0;
}

.contact-intro h2 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.contact-intro p {
    margin: 0 0 20px;
    font-size: 17px;
}

.contact-note {
    margin-top: 28px;
    padding: 20px 22px;
    border-left: 5px solid var(--gold);
    border-radius: 0 12px 12px 0;
    background: var(--paper);
    box-shadow: 0 8px 24px rgba(31, 26, 23, 0.07);
}

.contact-note strong {
    display: block;
    margin-bottom: 5px;
}

.contact-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-weight: 800;
    color: var(--ink);
}

.form-field .optional {
    margin-left: 5px;
    color: #756d68;
    font-size: 13px;
    font-weight: 600;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid #b9b1aa;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input {
    min-height: 48px;
    padding: 10px 12px;
}

.form-field textarea {
    min-height: 150px;
    padding: 12px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(201, 147, 55, 0.18);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
    border-color: #b42318;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.10);
}

.field-error {
    color: #9b1c13;
    font-size: 14px;
    font-weight: 700;
}

.character-count {
    margin-top: -2px;
    text-align: right;
    color: #756d68;
    font-size: 13px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.contact-submit {
    min-width: 150px;
    border: 1px solid var(--gold-dark);
    cursor: pointer;
}

.form-status {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 10px;
    font-weight: 700;
}

.form-status.success {
    border: 1px solid #83b98f;
    background: #eff9f1;
    color: #235d2f;
}

.form-status.error {
    border: 1px solid #e3aaa4;
    background: #fff1ef;
    color: #8a2016;
}

.form-required-note {
    margin: -6px 0 0;
    color: #756d68;
    font-size: 13px;
}

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

@media (max-width: 820px) {
    .contact-section {
        padding: 42px 0 58px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 580px) {
    .contact-card {
        padding: 22px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-intro p {
        font-size: 16px;
    }

    .form-actions .button,
    .contact-submit {
        width: 100%;
    }
}

/* ------------------------------------------------------------
   Our Friends / Brewery Directory
------------------------------------------------------------ */
.friends-hero {
    position: relative;
    overflow: hidden;
}

.friends-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(201, 147, 55, 0.25);
    border-radius: 50%;
    right: -90px;
    bottom: -150px;
    pointer-events: none;
}

.friends-section {
    padding: 56px 0 76px;
    background: #f7f4ef;
}

.friends-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.friends-heading h2 {
    margin: 4px 0 0;
}

.friends-count {
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid rgba(31, 26, 23, 0.13);
    border-radius: 999px;
    background: #fff;
    color: #655b55;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.friend-card {
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 24px;
    border: 1px solid rgba(31, 26, 23, 0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 26, 23, 0.06);
}

.friend-card-topline {
    margin-bottom: 9px;
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.friend-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.14;
}

.friend-location {
    margin: 12px 0 22px;
    color: #675f59;
    font-size: 15px;
    line-height: 1.5;
}

.friend-location.muted {
    color: #918982;
}

.friend-card-footer {
    margin-top: auto;
    padding-top: 17px;
    border-top: 1px solid rgba(31, 26, 23, 0.09);
}

.friend-website {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    max-width: 100%;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}


.friend-website span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--gold-dark);
}

.friend-website span::after {
    content: "→";
    transition: transform 0.15s ease;
}

.friend-website:hover span::after,
.friend-website:focus-visible span::after {
    transform: translateX(3px);
}

.friend-website small {
    overflow: hidden;
    max-width: 100%;
    color: #817770;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-website.unavailable {
    color: #918982;
}

.friend-website.unavailable::after,
.friend-website.unavailable span::after {
    content: none;
}

.friends-message {
    padding: 28px;
    border: 1px solid rgba(31, 26, 23, 0.12);
    border-radius: 12px;
    background: #fff;
    text-align: center;
    font-weight: 700;
}

.friends-message.error {
    border-color: #e3aaa4;
    background: #fff1ef;
    color: #8a2016;
}

@media (max-width: 960px) {
    .friends-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .friends-section {
        padding: 42px 0 58px;
    }

    .friends-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .friends-grid {
        grid-template-columns: 1fr;
    }

    .friend-card {
        min-height: 0;
        padding: 21px;
    }
}

/* ------------------------------------------------------------
   Reviewed Beers
------------------------------------------------------------ */
.beers-hero {
    position: relative;
    overflow: hidden;
}

.beers-hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -120px;
    bottom: -190px;
    border: 1px solid rgba(201, 147, 55, 0.25);
    border-radius: 50%;
    pointer-events: none;
}

.beers-section {
    padding: 52px 0 76px;
    background: #f7f4ef;
}

.beer-tools-card {
    margin-bottom: 26px;
    padding: 26px;
    border: 1px solid rgba(31, 26, 23, 0.12);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 26, 23, 0.06);
}

.beer-tools-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 20px;
}

.beer-tools-heading h2 {
    margin: 3px 0 0;
}

.beer-result-count {
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid rgba(31, 26, 23, 0.13);
    border-radius: 999px;
    background: var(--cream);
    color: #655b55;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.beer-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.beer-search-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.beer-search-field input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #bdb0a2;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.beer-search-field input:focus {
    outline: 3px solid rgba(201, 147, 55, 0.2);
    border-color: var(--gold-dark);
}

.beer-search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.beer-search-submit,
.beer-clear-search {
    min-height: 46px;
    border: 0;
    cursor: pointer;
}

.beer-clear-search {
    background: var(--ink);
    color: #fff;
}

.beer-clear-search:hover,
.beer-clear-search:focus-visible {
    background: var(--gold-dark);
    color: #fff;
}

.beer-sort-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid rgba(31, 26, 23, 0.09);
}

.beer-sort-wrap > span {
    color: #766d66;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.beer-sort-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.beer-sort-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--cream);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.beer-sort-button:hover,
.beer-sort-button:focus-visible,
.beer-sort-button.active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.beer-list {
    display: grid;
    gap: 20px;
}

.beer-card {
    overflow: hidden;
    border: 1px solid rgba(31, 26, 23, 0.12);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 26, 23, 0.07);
}

.beer-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    background: linear-gradient(135deg, #241f1b 0%, #40352c 100%);
    color: #fff;
}

.beer-title-block {
    min-width: 0;
}

.beer-card-kicker {
    margin-bottom: 5px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.beer-card h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(23px, 3vw, 32px);
    line-height: 1.12;
}

.beer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 20px;
    margin-top: 11px;
    color: #e9ded3;
    font-size: 14px;
}

.beer-meta strong {
    margin-right: 5px;
    color: var(--gold);
}

.beer-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.beer-photo-button {
    width: 48px;
    height: 48px;
    padding: 0;
    overflow: hidden;
    border: 2px solid var(--gold);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

.beer-photo-button:hover,
.beer-photo-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.beer-photo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.beer-video-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: var(--gold);
    color: #231d19;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.beer-video-button:hover,
.beer-video-button:focus-visible {
    background: #e6b965;
    color: #231d19;
}

.beer-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 18px 24px;
}

.beer-review-item {
    min-width: 0;
    padding: 8px 18px;
    text-align: center;
}

.beer-review-item + .beer-review-item {
    border-left: 1px solid rgba(31, 26, 23, 0.1);
}

.beer-review-item > span {
    display: block;
    margin-bottom: 8px;
    color: #766a61;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.beer-rating-image,
.beer-review-image {
    width: 106px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.beer-notes {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 15px;
    padding: 17px 24px 20px;
    border-top: 1px solid rgba(31, 26, 23, 0.08);
    background: var(--cream);
}

.beer-notes > span {
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.beer-notes p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.beer-message {
    padding: 28px;
    border: 1px solid rgba(31, 26, 23, 0.12);
    border-radius: 14px;
    background: #fff;
    text-align: center;
    font-weight: 700;
}

.beer-message.error {
    border-color: #e3aaa4;
    background: #fff1ef;
    color: #8a2016;
}

body.modal-open {
    overflow: hidden;
}

.photo-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.photo-modal.open {
    display: flex;
}

.photo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
}

.photo-modal-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(1000px, 92vw);
    max-height: 90vh;
}

.photo-modal-content img {
    max-width: 92vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    border: 4px solid #fff;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.55);
}

.photo-modal-caption {
    margin-top: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.photo-modal-close {
    position: fixed;
    top: 16px;
    right: 22px;
    z-index: 3;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.48);
    color: #fff;
    font-size: 34px;
    line-height: 40px;
    cursor: pointer;
}

.photo-modal-close:hover,
.photo-modal-close:focus-visible {
    background: var(--gold-dark);
}

@media (max-width: 820px) {
    .beer-search-form {
        grid-template-columns: 1fr 1fr;
    }

    .beer-search-actions {
        grid-column: 1 / -1;
    }

    .beer-card-header {
        align-items: flex-start;
    }
}

@media (max-width: 620px) {
    .beers-section {
        padding: 38px 0 58px;
    }

    .beer-tools-card {
        padding: 20px 18px;
    }

    .beer-tools-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .beer-search-form {
        grid-template-columns: 1fr;
    }

    .beer-search-actions {
        grid-column: auto;
        width: 100%;
    }

    .beer-search-actions .button,
    .beer-search-submit {
        flex: 1 1 0;
        justify-content: center;
    }

    .beer-sort-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .beer-card-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        padding: 19px;
    }

    .beer-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .beer-review-grid {
        grid-template-columns: 1fr;
        padding: 8px 18px;
    }

    .beer-review-item {
        display: grid;
        grid-template-columns: 82px 1fr;
        align-items: center;
        padding: 12px 0;
        text-align: left;
    }

    .beer-review-item + .beer-review-item {
        border-top: 1px solid rgba(31, 26, 23, 0.1);
        border-left: 0;
    }

    .beer-review-item > span {
        margin: 0;
    }

    .beer-rating-image,
    .beer-review-image {
        width: 92px;
        margin: 0 auto;
    }

    .beer-notes {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 16px 19px 19px;
    }

    .photo-modal {
        padding: 14px;
    }

    .photo-modal-close {
        top: 10px;
        right: 10px;
    }
}

/* =========================================================
   Mobile readability pass — 2026-08-29
   Phones render this stylesheet at ~375-430px wide, where the
   11-14px UI labels, the 92px gauges and the icon-only menu
   button all read as too small. Everything below is scoped to
   phone widths, so desktop and tablet layouts are untouched.
   ========================================================= */
@media (max-width: 680px) {
    /* --- Header: give the menu button a real tap target --- */
    .menu-label {
        display: inline;
    }

    .menu-toggle {
        gap: 10px;
        min-height: 48px;
        padding: 11px 15px;
        font-size: 16px;
    }

    .menu-toggle-lines,
    .menu-toggle-lines::before,
    .menu-toggle-lines::after {
        width: 24px;
        height: 3px;
    }

    .menu-toggle-lines::before { top: -8px; }
    .menu-toggle-lines::after  { top: 8px; }

    .primary-nav a {
        padding: 15px 14px;
        font-size: 17px;
    }

    /* --- Shared type scale --- */
    .eyebrow {
        font-size: 13px;
        letter-spacing: 0.12em;
    }

    .page-hero p:last-child {
        font-size: 17px;
    }

    .button {
        min-height: 50px;
        font-size: 16px;
    }

    .footer-bottom {
        font-size: 13px;
    }

    /* --- Contact form --- */
    .form-field .optional,
    .character-count,
    .form-required-note {
        font-size: 14px;
    }

    /* --- Our Friends --- */
    .friends-count {
        font-size: 14px;
    }

    .friend-card-topline {
        font-size: 13px;
    }

    .friend-website small {
        font-size: 14px;
    }

    /* --- Beers: search + sort controls --- */
    .beer-result-count {
        font-size: 14px;
    }

    .beer-search-field label {
        font-size: 14px;
    }

    .beer-search-field input {
        min-height: 52px;
        font-size: 17px;
    }

    .beer-search-submit,
    .beer-clear-search {
        min-height: 52px;
        font-size: 16px;
    }

    .beer-sort-wrap > span {
        font-size: 13px;
    }

    .beer-sort-bar {
        gap: 10px;
    }

    .beer-sort-button {
        min-height: 46px;
        padding: 10px 18px;
        font-size: 15px;
    }

    /* --- Beers: card header --- */
    .beer-card-kicker {
        font-size: 12px;
    }

    .beer-card h2 {
        font-size: 27px;
    }

    .beer-meta {
        font-size: 16px;
    }

    .beer-photo-button {
        width: 62px;
        height: 62px;
    }

    .beer-video-button {
        min-height: 46px;
        padding: 10px 16px;
        font-size: 14px;
    }

    /* --- Beers: rating / aroma / taste row --- */
    .beer-review-item {
        grid-template-columns: 96px 1fr;
        padding: 14px 0;
    }

    .beer-review-item > span {
        font-size: 13px;
        letter-spacing: 0.08em;
    }

    .beer-rating-image,
    .beer-review-image {
        width: 132px;
    }

    /* --- Beers: notes + messages --- */
    .beer-notes > span {
        font-size: 12px;
    }

    .beer-notes p {
        font-size: 16px;
    }

    .beer-message {
        font-size: 16px;
    }
}

/* Very narrow phones: drop the word "Menu" again so the header  
   never wraps, but keep the button itself finger-sized. */
@media (max-width: 400px) {
    .menu-label {
        display: none;
    }

    .menu-toggle {
        justify-content: center;
        min-width: 48px;
        padding: 11px 12px;
    }
}
