:root {
    --bg: #160f09;
    --panel: #24160d;
    --panel-light: #382314;
    --gold: #d8aa4c;
    --cream: #f3e0b7;
    --muted: #c3a46f;
    --red: #6f1d14;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top, #3a2413 0, #160f09 45%, #090604 100%);
    color: var(--cream);
    font-family: Georgia, "Times New Roman", serif;
}

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem;
}

.hero-text {
    max-width: 820px;
}

.main-logo {
    width: min(420px, 90vw);
    margin-bottom: 2rem;
}

h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 0.9;
    margin: 0;
    color: var(--gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.subtitle {
    color: var(--muted);
    font-size: 1.25rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-text p {
    font-size: 1.15rem;
    line-height: 1.7;
}

.hero-image-wrap {
    border: 2px solid rgba(216, 170, 76, 0.6);
    padding: 1rem;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-image {
    width: 100%;
    display: block;
}

.cellar-button,
.controls button,
.home-link {
    display: inline-block;
    background: var(--red);
    color: var(--cream);
    border: 1px solid var(--gold);
    padding: 0.85rem 1.3rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: bold;
    margin-top: 1rem;
    cursor: pointer;
}

.cellar-button:hover,
.controls button:hover,
.home-link:hover {
    background: var(--gold);
    color: #160f09;
}

.cellar-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    border-bottom: 1px solid rgba(216, 170, 76, 0.35);
}

.cellar-header h1 {
    margin-top: 2rem;
}

.cellar-header p {
    max-width: 800px;
    margin: 1rem auto;
    color: var(--muted);
    font-size: 1.15rem;
}

.controls {
    margin-top: 2rem;
}

.controls button {
    margin: 0.4rem;
}

main {
    padding: 2rem;
}

.beer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.beer-card {
    background: linear-gradient(180deg, var(--panel), var(--panel-light));
    border: 1px solid rgba(216, 170, 76, 0.35);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.beer-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #090604;
    border: 1px solid rgba(216, 170, 76, 0.2);
}

.beer-card h2 {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.beer-meta {
    color: var(--muted);
    font-weight: bold;
}

.beer-card p {
    line-height: 1.5;
}

.group-section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(216, 170, 76, 0.25);
}

.group-section > h2 {
    color: var(--gold);
    font-size: 2.4rem;
    text-align: center;
}

.group-blurb {
    max-width: 900px;
    margin: 0 auto 2rem;
    color: var(--cream);
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
}

.hidden {
    display: none;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .hero-image-wrap {
        order: -1;
    }
}
.info-link {
    background: none;
    border: none;
    color: var(--gold);
    font-family: inherit;
    font-size: inherit;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.info-link:hover {
    color: var(--cream);
}

.group-title-button {
    background: none;
    border: none;
    color: var(--gold);
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.group-title-button:hover {
    color: var(--cream);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-panel {
    width: min(900px, 95vw);
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #2b1b10, #160f09);
    border: 2px solid rgba(216, 170, 76, 0.75);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.65);
    padding: 2rem;
    position: relative;
}

.modal-panel h2 {
    color: var(--gold);
    font-size: 2rem;
    margin-right: 3rem;
}

.modal-section {
    border-top: 1px solid rgba(216, 170, 76, 0.25);
    padding-top: 1rem;
    margin-top: 1rem;
}

.modal-section h3 {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1rem;
}

.modal-section p {
    line-height: 1.65;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2.2rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--cream);
}

.site-footer {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    border-top: 1px solid rgba(216, 170, 76, 0.3);
    background: rgba(0, 0, 0, 0.25);
}

.site-footer p {
    margin: 0.35rem 0;
}
/* v0.3 professional polish */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 2rem;
    background: rgba(12, 7, 4, 0.92);
    border-bottom: 1px solid rgba(216, 170, 76, 0.35);
    backdrop-filter: blur(8px);
}

.nav-brand {
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: var(--cream);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.nav-links a:hover {
    color: var(--gold);
}

.eyebrow {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
    font-weight: bold;
}

.intro-card {
    border: 1px solid rgba(216, 170, 76, 0.25);
    background: rgba(0, 0, 0, 0.18);
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.lead {
    font-size: 1.35rem !important;
    color: var(--gold);
}

.cellar-count {
    display: inline-block;
    margin-top: 1rem !important;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(216, 170, 76, 0.45);
    background: rgba(0, 0, 0, 0.22);
    color: var(--cream) !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem !important;
}

.controls button.active-view {
    background: var(--gold);
    color: #160f09;
}

.label-frame {
    background:
        radial-gradient(circle at center, #2b1b10 0, #090604 75%);
    border: 1px solid rgba(216, 170, 76, 0.25);
    padding: 0.65rem;
    margin-bottom: 1rem;
}

.label-frame img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    display: block;
    background: transparent;
    border: none;
}

.beer-card {
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.beer-card:hover {
    transform: translateY(-4px);
    border-color: rgba(216, 170, 76, 0.75);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.48);
}

.beer-card-meta-row {
    display: flex;
    justify-content: center;
    margin: 0.6rem 0;
}

.abv-badge {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(216, 170, 76, 0.7);
    background: rgba(111, 29, 20, 0.75);
    color: var(--cream);
    font-weight: bold;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.beer-blurb {
    border-top: 1px solid rgba(216, 170, 76, 0.18);
    padding-top: 0.85rem;
    margin-top: 0.85rem;
}

.substyle-link {
    margin-top: 0.25rem;
}

.group-intro-panel {
    max-width: 1050px;
    margin: 0 auto 2rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(216, 170, 76, 0.45);
    background:
        linear-gradient(180deg, rgba(56, 35, 20, 0.75), rgba(18, 11, 6, 0.75));
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

.group-intro-panel.compact {
    padding: 1.25rem;
}

.group-intro-panel h2 {
    color: var(--gold);
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin: 0.25rem 0 1rem;
}

.group-intro-panel .group-blurb {
    margin-bottom: 0;
}

.footer-logo {
    width: 120px;
    opacity: 0.85;
    margin-bottom: 0.75rem;
}

.footer-small {
    font-size: 0.9rem;
    opacity: 0.85;
}

@media (max-width: 700px) {
    .site-nav {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.75rem 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .label-frame img {
        height: 260px;
    }
}
