/* =========================================================
   DUTCH CREEK BREWING — V2
   ========================================================= */


/* ---------------------------------------------------------
   Design Tokens
   --------------------------------------------------------- */

:root {
    --black: #181713;
    --charcoal: #211f1b;
    --charcoal-light: #302d27;

    --cream: #f5f0e5;
    --paper: #fbf8f1;
    --card: #eee7d9;

    --copper: #ad6f2c;
    --gold: #c58d43;

    --text: #25231f;
    --muted: #746d61;

    --border: #d8cebc;

    --max-width: 1200px;
}


/* ---------------------------------------------------------
   Reset / Base
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background: var(--black);

    color: var(--text);

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.55;

    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin-top: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    line-height: 1.02;
}

h1 {
    margin-bottom: 1rem;

    font-size: clamp(3rem, 4.5vw, 4.75rem);

    letter-spacing: -.045em;
}

h2 {
    margin-bottom: .75rem;

    font-size: clamp(2.5rem, 4vw, 4rem);

    letter-spacing: -.035em;
}

h3 {
    margin-bottom: .65rem;

    font-size: 1.7rem;
}

.eyebrow {
    margin: 0 0 .7rem;

    color: var(--copper);

    font-size: .72rem;

    font-weight: 700;

    letter-spacing: .18em;

    text-transform: uppercase;
}


/* =========================================================
   Header
   ========================================================= */

.site-header {
    background: var(--black);

    color: white;

    border-bottom: 1px solid #38352e;
}

.header-inner {
    max-width: var(--max-width);

    min-height: 70px;

    margin: 0 auto;

    padding: 0 2rem;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 2rem;
}

.brand {
    display: flex;

    align-items: center;

    gap: .8rem;

    color: white;

    text-decoration: none;
}

.brand-mark {
    color: var(--gold);

    font-size: 2rem;
}

.brand-copy {
    display: flex;

    flex-direction: column;
}

.brand-name {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.55rem;

    font-weight: 700;

    line-height: 1.1;
}

.brand-tagline {
    margin-top: .2rem;

    color: #bdb5a6;

    font-size: .65rem;

    letter-spacing: .13em;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   Navigation
   --------------------------------------------------------- */

.site-nav {
    display: flex;

    align-items: center;

    gap: 1.6rem;
}

.site-nav a {
    position: relative;

    padding: 1.5rem 0;

    color: #d7d2c8;

    font-size: .72rem;

    font-weight: 700;

    letter-spacing: .08em;

    text-decoration: none;

    text-transform: uppercase;
}

.site-nav a::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: .9rem;
    left: 0;

    height: 2px;

    background: var(--gold);

    transform: scaleX(0);

    transition: transform .2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: white;
}

.site-nav a.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;

    padding: .4rem;

    border: 0;

    background: none;

    color: white;

    font-size: 1.6rem;
}


/* =========================================================
   Hero
   ========================================================= */

.hero {
    position: relative;

    min-height: 390px;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(24, 23, 19, .98) 0%,
            rgba(24, 23, 19, .92) 28%,
            rgba(24, 23, 19, .55) 52%,
            rgba(24, 23, 19, .08) 72%,
            rgba(24, 23, 19, 0) 100%
        ),
        url("../images/dcb-basement-bar.webp");

    background-size: cover;
    background-position: center 52%;
    background-repeat: no-repeat;

    color: white;
}

.hero-overlay {
    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(15, 14, 12, .08) 0%,
            rgba(15, 14, 12, 0) 60%,
            rgba(15, 14, 12, .18) 100%
        );
}

.hero-inner {
    position: relative;

    z-index: 1;

    max-width: var(--max-width);

    min-height: 390px;

    margin: 0 auto;

    padding: 2rem;

    display: flex;

    align-items: center;
}

.hero-copy {
    max-width: 650px;
}

.hero-description {
    max-width: 610px;

    margin: 0;

    color: #d8d2c7;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.05rem;
}

.hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 1rem;

    margin-top: 1.75rem;
}


/* =========================================================
   Buttons
   ========================================================= */

.button {
    min-height: 48px;

    padding: .8rem 1.35rem;

    border: 1px solid transparent;

    display: inline-flex;

    align-items: center;

    gap: 1.25rem;

    font-size: .75rem;

    font-weight: 800;

    letter-spacing: .09em;

    text-transform: uppercase;
}

.button-primary {
    background: var(--copper);

    color: white;
}

.button-primary:hover {
    background: #bd7c34;
}

.button-secondary {
    border-color: #8a8479;

    background: transparent;

    color: white;
}

.button-secondary:hover {
    border-color: white;
}


/* =========================================================
   Dynamic Content Area
   ========================================================= */

.content-area {
    background: var(--paper);

    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.content-panel {
    display: none;

    max-width: var(--max-width);

    min-height: 290px;

    margin: 0 auto;

    padding: 1.75rem 2rem 2rem;
}

.content-panel.active {
    display: block;

    width: 100%;
    flex: 1 0 auto;

    animation: panelFade .2s ease;
}

@keyframes panelFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-heading {
    margin-bottom: 1rem;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 2rem;
}

.content-heading h2 {
    margin-bottom: 0;
}

.section-description {
    max-width: 650px;

    color: var(--muted);
}


/* =========================================================
   Home Panel
   ========================================================= */

.home-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 1rem;
}

.feature-card {
    min-height: 150px;

    padding: 1.15rem 1.25rem;

    border: 0;

    border-top: 4px solid var(--charcoal);

    background: var(--cream);

    color: var(--text);

    text-align: left;

    display: flex;

    gap: 1.25rem;

    transition:
        transform .15s ease,
        background .15s ease;
}

.feature-card:hover {
    background: #eee6d7;

    transform: translateY(-2px);
}

.feature-number {
    color: var(--copper);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.8rem;
}

.feature-label {
    color: var(--muted);

    font-size: .68rem;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.feature-card h3 {
    margin-top: .4rem;
}

.feature-card p {
    margin-bottom: 0;

    color: var(--muted);
}


/* =========================================================
   On Tap
   ========================================================= */

.beer-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 1rem;
}

.beer-card {
    min-height: 205px;

    padding: 1.4rem 1.5rem 1.2rem;

    border-top: 4px solid var(--charcoal);

    background: var(--card);

    display: grid;

    grid-template-columns: 58px 1fr;

    grid-template-rows: 1fr auto;

    column-gap: 1rem;
}

.beer-number {
    color: var(--copper);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 2.25rem;

    line-height: 1;
}

.beer-card-body {
    align-self: start;
}

.beer-style {
    margin: 0 0 .35rem;

    color: var(--muted);

    font-size: .68rem;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.beer-card h3 {
    margin-bottom: .55rem;
}

.beer-description {
    margin: 0;

    color: #5f594f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;
}

.beer-meta {
    grid-column: 1 / -1;

    margin-top: 1rem;

    padding-top: .85rem;

    border-top: 1px solid var(--border);

    display: flex;

    justify-content: space-between;

    gap: 1rem;

    font-size: .65rem;

    font-weight: 800;

    letter-spacing: .1em;

    text-transform: uppercase;
}


/* =========================================================
   Brewing Tools
   ========================================================= */

.tool-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 1rem;
}

.tool-card {
    min-height: 175px;
    height: 175px;

    padding: 1.1rem 1.25rem;

    border: 0;

    border-top: 4px solid var(--charcoal);

    background: var(--cream);

    color: var(--text);

    text-decoration: none;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    transition:
        transform .15s ease,
        background .15s ease;
}

a.tool-card:hover {
    background: #eee6d7;

    transform: translateY(-2px);
}

.tool-status {
    margin: 0 0 .55rem;

    color: var(--copper);

    font-size: .62rem;

    font-weight: 800;

    line-height: 1.2;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.tool-card h3 {
    margin: 0 0 .45rem;

    font-size: 1.5rem;

    line-height: 1.05;
}

.tool-card p {
    margin: 0;

    color: var(--muted);

    font-size: .9rem;

    line-height: 1.4;
}

.card-action {
    margin-top: auto;

    padding-top: .5rem;

    color: var(--copper);

    font-size: .72rem;

    font-weight: 800;

    letter-spacing: .04em;
}

.coming-soon {
    opacity: .78;
}


/* =========================================================
   Placeholder Panels
   ========================================================= */

.placeholder-copy {
    max-width: 650px;

    color: var(--muted);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.15rem;
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    min-height: 60px;
    flex-shrink: 0;

    padding: .85rem 2rem;

    background:
        linear-gradient(
            90deg,
            #201a14,
            #31251b,
            #201a14
        );

    color: #d8c8af;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 2rem;
}

.footer-rule {
    width: 120px;

    height: 1px;

    background: #88643b;
}

.footer-motto,
.footer-location {
    margin: 0;

    font-size: .68rem;

    font-weight: 700;

    letter-spacing: .16em;

    text-transform: uppercase;
}

.footer-motto {
    white-space: nowrap;
}

.footer-motto span,
.footer-location span {
    margin: 0 .7rem;

    color: var(--copper);
}


/* =========================================================
   Desktop Height Optimization
   Designed for desktop browser windows such as 1920x1080.
   ========================================================= */

@media (min-width: 1001px) and (max-height: 950px) {

    /* Header */

    .header-inner {
        min-height: 64px;
    }


    /* Hero */

    .hero,
    .hero-inner {
        min-height: 355px;
    }

    .hero-inner {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    h1 {
        font-size: clamp(3rem, 4.2vw, 4.4rem);

        margin-bottom: .8rem;
    }

    .hero-actions {
        margin-top: 1.35rem;
    }


    /* Dynamic Content Area */

    .content-panel {
        min-height: 350px;

        padding-top: 1.25rem;
        padding-bottom: 1.25rem;

        overflow: hidden;
    }

    .content-heading {
        margin-bottom: .75rem;
    }

    .content-heading .eyebrow {
        margin-bottom: .3rem;
    }

    .content-heading h2 {
        font-size: 2.75rem;
    }


    /* Home */

    .feature-card {
        min-height: 175px;

        padding: 1.15rem 1.25rem;
    }

    .feature-card h3 {
        margin-top: .25rem;

        margin-bottom: .4rem;
    }

    .feature-card p {
        margin-top: .4rem;
    }


    /* On Tap */

    .beer-card {
        min-height: 185px;
        height: 185px;

        padding: 1.1rem 1.25rem .9rem;

        grid-template-columns: 48px 1fr;

        column-gap: .8rem;
    }

    .beer-number {
        font-size: 1.9rem;
    }

    .beer-style {
        margin-bottom: .2rem;

        font-size: .62rem;
    }

    .beer-card h3 {
        margin-bottom: .35rem;

        font-size: 1.45rem;
    }

    .beer-description {
        font-size: .9rem;

        line-height: 1.35;
    }

    .beer-meta {
        margin-top: .55rem;

        padding-top: .5rem;

        font-size: .58rem;
    }


    /* Brewing Tools */

    .tool-grid {
        gap: 1rem;
    }

    .tool-card {
        min-height: 175px;
        height: 175px;

        padding: 1.1rem 1.25rem;
    }

    .tool-status {
        margin: 0 0 .55rem;

        font-size: .62rem;
    }

    .tool-card h3 {
        margin: 0 0 .45rem;

        font-size: 1.5rem;

        line-height: 1.05;
    }

    .tool-card p {
        margin: 0;

        font-size: .9rem;

        line-height: 1.4;
    }

    .card-action {
        margin-top: auto;

        padding-top: .5rem;

        font-size: .72rem;
    }


    /* Footer */

    .site-footer {
        min-height: 54px;

        padding-top: .65rem;
        padding-bottom: .65rem;
    }
}


/* =========================================================
   Tablet / Smaller Desktop
   ========================================================= */

@media (max-width: 1000px) {

    .site-nav {
        gap: 1rem;
    }

    .site-nav a {
        font-size: .65rem;
    }

    .footer-location {
        display: none;
    }
}


/* =========================================================
   Tablet / Mobile Navigation
   ========================================================= */

@media (max-width: 850px) {

    .header-inner {
        flex-wrap: wrap;

        padding-top: .9rem;
        padding-bottom: .9rem;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;

        width: 100%;

        flex-direction: column;

        align-items: flex-start;

        gap: 0;
    }

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

    .site-nav a {
        width: 100%;

        padding: .7rem 0;
    }

    .site-nav a::after {
        display: none;
    }

    .home-grid,
    .beer-grid,
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: 450px;
    }

    .site-footer {
        flex-wrap: wrap;
    }
}


/* =========================================================
   Phone
   ========================================================= */

@media (max-width: 600px) {

    .hero {
        background-position: 58% center;
    }

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(18, 17, 14, .28);
        pointer-events: none;
    }

    .header-inner,
    .hero-inner,
    .content-panel {
        padding-left: 1.25rem;

        padding-right: 1.25rem;
    }

    .brand-tagline {
        display: none;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    h1 {
        font-size: clamp(3rem, 14vw, 4.3rem);
    }

    .hero-inner {
        min-height: 460px;

        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .content-panel {
        height: auto;
        min-height: auto;

        padding-top: 2.5rem;
        padding-bottom: 2.5rem;

        overflow: visible;
    }

    .feature-card,
    .beer-card,
    .tool-card {
        height: auto;
        min-height: 0;
    }

    .beer-card {
        grid-template-columns: 50px 1fr;
    }

    .footer-rule {
        display: none;
    }

    .footer-motto {
        white-space: normal;

        text-align: center;

        line-height: 2;
    }
}

/* =========================================================
   ABV CALCULATOR
   ========================================================= */

.calculator-page {
    background: var(--paper);

    flex: 1 0 auto;
}

.calculator-shell {
    max-width: var(--max-width);

    margin: 0 auto;

    padding: 2rem 2rem 3rem;
}

.calculator-back {
    display: inline-block;

    margin-bottom: 1.5rem;

    color: var(--copper);

    font-size: .72rem;

    font-weight: 800;

    letter-spacing: .08em;

    text-decoration: none;

    text-transform: uppercase;
}

.calculator-back:hover {
    text-decoration: underline;
}

.calculator-heading {
    max-width: 700px;

    margin-bottom: 2rem;
}

.calculator-heading h1 {
    margin-bottom: .75rem;

    color: var(--text);
}

.calculator-heading > p:last-child {
    margin: 0;

    color: var(--muted);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.05rem;
}


/* ---------------------------------------------------------
   Calculator Layout
   --------------------------------------------------------- */

.calculator-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(300px, .75fr);

    gap: 1rem;
}


/* ---------------------------------------------------------
   Input Card
   --------------------------------------------------------- */

.calculator-card {
    padding: 1.5rem;

    border-top: 4px solid var(--charcoal);

    background: var(--cream);
}

.calculator-card-heading {
    margin-bottom: 1.5rem;

    display: flex;

    gap: 1.25rem;
}

.calculator-step {
    color: var(--copper);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 2rem;

    line-height: 1;
}

.calculator-label {
    margin: 0 0 .3rem;

    color: var(--copper);

    font-size: .65rem;

    font-weight: 800;

    letter-spacing: .13em;

    text-transform: uppercase;
}

.calculator-card-heading h2 {
    margin: 0;

    font-size: 2rem;
}


/* ---------------------------------------------------------
   Fields
   --------------------------------------------------------- */

.calculator-field {
    margin-bottom: 1.25rem;
}

.calculator-field label {
    margin-bottom: .4rem;

    display: flex;
    justify-content: space-between;

    color: var(--text);

    font-size: .8rem;
    font-weight: 800;

    letter-spacing: .04em;
    text-transform: uppercase;
}

.calculator-field label span {
    color: var(--copper);
}


/* Input and Select Controls */

.calculator-field input,
.calculator-field select {
    width: 100%;
    height: 50px;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid var(--border);
    border-radius: 0;

    background: var(--cream);
    color: var(--ink);

    font-family: inherit;
    font-size: 1rem;
}


/* Select-specific styling */

.calculator-field select {
    cursor: pointer;
}


/* Focus state */

.calculator-field input:focus,
.calculator-field select:focus {
    outline: 2px solid var(--amber);
    outline-offset: -2px;
}


/* Field help text */

.calculator-field small {
    display: block;

    margin-top: .35rem;

    color: var(--muted);

    font-size: .75rem;
}


/* ---------------------------------------------------------
   Error
   --------------------------------------------------------- */

.calculator-error {
    min-height: 1.4rem;

    margin-bottom: .75rem;

    color: #8a2f25;

    font-size: .8rem;

    font-weight: 700;
}


/* ---------------------------------------------------------
   Calculator Buttons
   --------------------------------------------------------- */

.calculator-actions {
    display: flex;

    flex-wrap: wrap;

    gap: .75rem;
}

.calculator-reset {
    border-color: var(--border);

    background: transparent;

    color: var(--text);
}

.calculator-reset:hover {
    border-color: var(--charcoal);
}


/* ---------------------------------------------------------
   Results
   --------------------------------------------------------- */

.calculator-result-card {
    padding: 1.5rem;

    border-top: 4px solid var(--copper);

    background: var(--charcoal);

    color: white;

    display: flex;

    flex-direction: column;
}

.abv-result {
    margin: 1.5rem 0;

    display: flex;

    align-items: baseline;

    gap: .6rem;
}

#abv-result {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(4rem, 7vw, 6rem);

    line-height: .85;

    letter-spacing: -.05em;
}

.result-unit {
    color: var(--gold);

    font-size: .85rem;

    font-weight: 800;

    letter-spacing: .1em;

    text-transform: uppercase;
}

.result-divider {
    height: 1px;

    margin: .5rem 0 1rem;

    background: #4a463e;
}

.secondary-result {
    display: flex;

    justify-content: space-between;

    gap: 1rem;
}

.secondary-result-label {
    color: #bdb5a6;

    font-size: .75rem;

    font-weight: 700;

    letter-spacing: .06em;

    text-transform: uppercase;
}

.secondary-result strong {
    color: white;
}

.result-note {
    margin: auto 0 0;

    padding-top: 2rem;

    color: #bdb5a6;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: .85rem;
}


/* ---------------------------------------------------------
   Formula Information
   --------------------------------------------------------- */

.calculator-info {
    margin-top: 2rem;

    padding-top: 2rem;

    border-top: 1px solid var(--border);

    display: grid;

    grid-template-columns:
        minmax(250px, .7fr)
        minmax(0, 1.3fr);

    gap: 2rem;
}

.calculator-info h2 {
    margin-bottom: 0;

    font-size: 2rem;
}

.formula-card {
    padding: 1.25rem 1.5rem;

    background: var(--cream);

    border-left: 4px solid var(--copper);
}

.formula {
    display: block;

    margin-bottom: .5rem;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.35rem;

    font-weight: 700;
}

.formula-card p {
    margin: 0;

    color: var(--muted);
}

/* ---------------------------------------------------------
   Calculator Responsive
   --------------------------------------------------------- */

@media (max-width: 850px) {

    .calculator-layout {
        grid-template-columns: 1fr;
    }

    .calculator-info {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .calculator-shell {
        padding:
            1.5rem
            1.25rem
            2.5rem;
    }

    .calculator-heading h1 {
        font-size: 3rem;
    }

    .calculator-card,
    .calculator-result-card {
        padding: 1.25rem;
    }

    .calculator-actions {
        flex-direction: column;
    }

    .calculator-actions .button {
        width: 100%;

        justify-content: center;
    }

}

/* =========================================================
   ABV CALCULATOR — 1080P HEIGHT OPTIMIZATION
   ========================================================= */

@media (min-width: 1001px) and (max-height: 950px) {

    /* Main calculator area */

    .calculator-shell {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }


    /* Back link */

    .calculator-back {
        margin-bottom: .75rem;
    }


    /* Heading */

    .calculator-heading {
        margin-bottom: 1.25rem;
    }

    .calculator-heading .eyebrow {
        margin-bottom: .35rem;
    }

    .calculator-heading h1 {
        margin-bottom: .4rem;

        font-size: 3.5rem;
    }

    .calculator-heading > p:last-child {
        font-size: .95rem;

        line-height: 1.4;
    }


    /* Calculator cards */

    .calculator-card,
    .calculator-result-card {
        min-height: 340px;

        padding: 1.2rem 1.35rem;
    }


    /* Input card heading */

    .calculator-card-heading {
        margin-bottom: 1rem;
    }

    .calculator-step {
        font-size: 1.75rem;
    }

    .calculator-card-heading h2 {
        font-size: 1.7rem;
    }


    /* Gravity fields */

    .calculator-field {
        margin-bottom: .85rem;
    }

    .calculator-field label {
        margin-bottom: .25rem;
    }

    .calculator-field input {
        padding: .6rem .75rem;

        font-size: 1.2rem;
    }

    .calculator-field small {
        margin-top: .2rem;

        font-size: .7rem;
    }


    /* Error space */

    .calculator-error {
        min-height: 1rem;

        margin-bottom: .4rem;
    }


    /* Buttons */

    .calculator-actions .button {
        min-height: 42px;

        padding: .65rem 1.2rem;
    }


    /* Result card */

    .abv-result {
        margin: 1rem 0;
    }

    #abv-result {
        font-size: 4.5rem;
    }

    .result-divider {
        margin: .35rem 0 .75rem;
    }

    .result-note {
        padding-top: 1rem;
    }


    /* Math section */

    .calculator-info {
        margin-top: 1.25rem;

        padding-top: 1.25rem;

        gap: 1.25rem;
    }

    .calculator-info .eyebrow {
        margin-bottom: .3rem;
    }

    .calculator-info h2 {
        font-size: 1.65rem;
    }

    .formula-card {
        padding: .85rem 1.25rem;
    }

    .formula {
        margin-bottom: .25rem;

        font-size: 1.15rem;
    }

    .formula-card p {
        font-size: .85rem;

        line-height: 1.35;
    }


    /* Footer */

    .site-footer {
        min-height: 54px;

        padding-top: .65rem;
        padding-bottom: .65rem;
    }

}

/* =========================================================
   HYDROMETER CALCULATOR — 1080P HEIGHT OPTIMIZATION
   ========================================================= */

@media (min-width: 1001px) and (max-height: 950px) {

    /* Tighten overall page slightly */

    body.hydrometer-page .calculator-shell {
        padding-top: .9rem;
        padding-bottom: .75rem;
    }


    /* Back link */

    body.hydrometer-page .calculator-back {
        margin-bottom: .5rem;
    }


    /* Heading */

    body.hydrometer-page .calculator-heading {
        margin-bottom: .9rem;
    }

    body.hydrometer-page .calculator-heading h1 {
        margin-bottom: .25rem;
    }


    /* Main cards */

    body.hydrometer-page .calculator-card,
    body.hydrometer-page .calculator-result-card {
        min-height: 315px;
    }


    /* Fields */

    body.hydrometer-page .calculator-field {
        margin-bottom: .55rem;
    }

    body.hydrometer-page .calculator-field input,
    body.hydrometer-page .calculator-field select {
        height: 44px;
    }

    body.hydrometer-page .calculator-field small {
        margin-top: .15rem;
    }


    /* Information section */

    body.hydrometer-page .calculator-info {
        margin-top: .7rem;
        padding-top: .7rem;
        gap: 1rem;
    }

    body.hydrometer-page .calculator-info .eyebrow {
        margin-bottom: .15rem;
    }

    body.hydrometer-page .calculator-info h2 {
        font-size: 1.55rem;
        line-height: .95;
    }

    body.hydrometer-page .formula-card {
        padding: .65rem 1.15rem;
    }

    body.hydrometer-page .formula {
        margin-bottom: .15rem;
        font-size: 1.05rem;
    }

    body.hydrometer-page .formula-card p {
        font-size: .8rem;
        line-height: 1.25;
    }
}

/* =========================================================
   PRIMING SUGAR CALCULATOR — 1080P HEIGHT OPTIMIZATION
   ========================================================= */

@media (min-width: 1001px) and (max-height: 950px) {

    body.priming-page .calculator-shell {
        padding-top: .7rem;
        padding-bottom: .6rem;
    }

    body.priming-page .calculator-back {
        margin-bottom: .35rem;
    }

    body.priming-page .calculator-heading {
        margin-bottom: .65rem;
    }

    body.priming-page .calculator-heading h1 {
        margin-bottom: .15rem;
    }

    body.priming-page .calculator-card,
    body.priming-page .calculator-result-card {
        min-height: 330px;
    }

    body.priming-page .calculator-field {
        margin-bottom: .4rem;
    }

    body.priming-page .calculator-field input,
    body.priming-page .calculator-field select {
        height: 40px;
    }

    body.priming-page .calculator-field small {
        margin-top: .1rem;
        font-size: .7rem;
    }

    body.priming-page .calculator-info {
        margin-top: .55rem;
        padding-top: .55rem;
        gap: 1rem;
    }

    body.priming-page .calculator-info .eyebrow {
        margin-bottom: .1rem;
    }

    body.priming-page .calculator-info h2 {
        font-size: 1.45rem;
        line-height: .95;
    }

    body.priming-page .formula-card {
        padding: .55rem 1.1rem;
    }

    body.priming-page .formula {
        margin-bottom: .1rem;
        font-size: 1rem;
    }

    body.priming-page .formula-card p {
        font-size: .78rem;
        line-height: 1.2;
    }
}

/* =========================================================
   OUR STORY
   ========================================================= */

.story-page {
    background: var(--cream);
}


/* ---------------------------------------------------------
   Story Hero
   --------------------------------------------------------- */

.story-hero {
    padding: 3rem 2rem 3.25rem;

    background:
        linear-gradient(
            90deg,
            #171612 0%,
            #211f1a 55%,
            #2a2823 100%
        );

    color: var(--cream);
}

.story-hero-inner {
    width: min(1110px, 100%);
    margin: 0 auto;
}


/* Section label */

.story-kicker {
    margin: 0 0 .65rem;

    color: var(--copper);

    font-size: .8rem;
    font-weight: 900;

    letter-spacing: .15em;
    text-transform: uppercase;
}


/* Main heading */

.story-hero h1 {
    max-width: 900px;

    margin: 0;

    color: var(--cream);

    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 900;
    line-height: .92;

    letter-spacing: -.04em;
    text-transform: uppercase;
}


/* Intro */

.story-intro {
    max-width: 690px;

    margin: 1.25rem 0 0;

    color: rgba(255, 255, 255, .82);

    font-size: 1.05rem;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   Story Content
   --------------------------------------------------------- */

.story-content {
    padding: 5rem 2rem;
}

.story-container {
    width: min(1000px, 100%);
    margin: 0 auto;
}


/* ---------------------------------------------------------
   Chapters
   --------------------------------------------------------- */

.story-chapter {
    display: grid;

    grid-template-columns: 110px minmax(0, 1fr);

    gap: 2.5rem;

    padding: 4rem 0;

    border-bottom: 1px solid var(--border);
}

.story-chapter:first-child {
    padding-top: 0;
}

.story-number {
    color: var(--copper);

    font-size: 3.75rem;
    font-weight: 900;
    line-height: .85;

    letter-spacing: -.06em;
}

.story-copy {
    max-width: 720px;
}

.story-copy .eyebrow {
    margin: 0 0 .65rem;

    color: var(--copper);

    font-size: .75rem;
    font-weight: 800;

    letter-spacing: .14em;
}

.story-copy h2 {
    margin: 0 0 1.5rem;

    color: var(--ink);

    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: .95;

    letter-spacing: -.035em;
    text-transform: uppercase;
}

.story-copy p {
    margin: 0 0 1.15rem;

    color: var(--text);

    font-size: 1.05rem;
    line-height: 1.75;
}

.story-copy strong {
    color: var(--ink);
}

.story-emphasis {
    margin: 1.75rem 0 !important;

    color: var(--ink) !important;

    font-size: 1.25rem !important;
    font-weight: 700;

    line-height: 1.45 !important;
}


/* ---------------------------------------------------------
   Pull Quote
   --------------------------------------------------------- */

.story-quote {
    position: relative;

    margin: 1rem 0 1rem 110px;
    padding: 2.75rem 3rem;

    overflow: hidden;

    background: var(--ink);
}

.story-quote-mark {
    position: absolute;

    top: -.75rem;
    left: 1.25rem;

    color: var(--copper);

    font-family: Georgia, serif;
    font-size: 8rem;
    line-height: 1;

    opacity: .45;
}

.story-quote blockquote {
    position: relative;

    max-width: 700px;

    margin: 0;

    color: var(--cream);

    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.35;
}


/* ---------------------------------------------------------
   Brew Day Feature
   --------------------------------------------------------- */

.story-chapter-feature {
    margin-top: 3rem;
}


/* ---------------------------------------------------------
   Lesson Card
   --------------------------------------------------------- */

.story-lesson {
    display: grid;

    grid-template-columns: 150px 1fr;

    align-items: center;

    gap: 1.5rem;

    margin: 1rem 0 1rem 110px;
    padding: 1.5rem 2rem;

    background: var(--copper);
    color: var(--ink);
}

.story-lesson-label {
    font-size: .72rem;
    font-weight: 900;

    letter-spacing: .12em;
}

.story-lesson-text {
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.05;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   Final Chapter
   --------------------------------------------------------- */

.story-final {
    border-bottom: 0;
}


/* ---------------------------------------------------------
   Closing Section
   --------------------------------------------------------- */

.story-closing {
    padding: 5rem 2rem;

    background: #e7dfd1;
}

.story-closing-inner {
    width: min(1000px, 100%);
    margin: 0 auto;

    text-align: center;
}

.story-closing .eyebrow {
    margin-bottom: .75rem;

    color: var(--copper);

    font-size: .75rem;
    font-weight: 900;

    letter-spacing: .16em;
}

.story-closing h2 {
    margin: 0;

    color: var(--ink);

    font-size: clamp(3rem, 7vw, 6rem);
    line-height: .88;

    letter-spacing: -.045em;
    text-transform: uppercase;
}

.story-closing p {
    margin: 1.5rem 0 2rem;

    color: var(--muted);

    font-size: 1rem;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 760px) {

    .story-hero {
        padding: 3.5rem 1.25rem 3rem;
    }

    .story-content {
        padding: 3rem 1.25rem;
    }

    .story-chapter {
        grid-template-columns: 1fr;

        gap: 1.25rem;

        padding: 3rem 0;
    }

    .story-number {
        font-size: 2.5rem;
    }

    .story-quote {
        margin: 1rem 0;
        padding: 2.5rem 1.5rem;
    }

    .story-lesson {
        grid-template-columns: 1fr;

        gap: .5rem;

        margin: 1rem 0;
        padding: 1.5rem;
    }

    .story-closing {
        padding: 4rem 1.25rem;
    }

}