/* ---------------------------------------------------------------------------
   Ziarno & Woda — site stylesheet
   Fonts are self-hosted (GDPR: no third-party font CDN requests).
--------------------------------------------------------------------------- */

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/fraunces-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/fraunces-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/fraunces-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/plexmono-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/plexmono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
    --paper: #f6f1e7;
    --paper-deep: #eee6d5;
    --ink: #221a12;
    --ink-soft: #5a4d3f;
    --accent: #bc5a1c;
    --accent-deep: #9c4812;
    --accent-light: #d97a3c;
    --line: rgba(34, 26, 18, 0.16);
    --line-strong: rgba(34, 26, 18, 0.55);
    --paper-line: rgba(246, 241, 231, 0.22);

    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
    --font-mono: 'IBM Plex Mono', Consolas, 'Courier New', monospace;

    --container: 76rem;
    --gutter: clamp(1.25rem, 5vw, 4rem);
    --header-h: 4.5rem;
}

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

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
    background-color: var(--accent);
    color: var(--paper);
}

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

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 540;
    line-height: 1.08;
    letter-spacing: -0.015em;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    padding: 0.6rem 1rem;
    background-color: var(--ink);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-decoration: none;
    transform: translateY(-300%);
}

.skip-link:focus {
    transform: none;
}

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

.btn {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background-color: transparent;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--ink);
    color: var(--paper);
}

.btn-primary:hover {
    background-color: var(--accent-deep);
    border-color: var(--accent-deep);
}

.btn-ghost:hover {
    border-color: var(--accent-deep);
    color: var(--accent-deep);
}

.btn-small {
    padding: 0.5rem 1.1rem;
    font-size: 0.72rem;
}

/* --- Header ------------------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background-color: rgba(246, 241, 231, 0.92);
    box-shadow: 0 1px 0 var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: var(--header-h);
}

.brand {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand-amp {
    color: var(--accent);
    font-style: italic;
}

.site-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.site-nav a {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-soft);
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--accent-deep);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.lang-switch {
    display: flex;
    gap: 0.25rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.2rem;
}

.lang-switch a {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--ink-soft);
    transition: background-color 0.2s ease, color 0.2s ease;
}

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

.lang-switch a[aria-current='true'] {
    background-color: var(--ink);
    color: var(--paper);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 1.1rem;
    height: 2px;
    margin: 0 auto;
    background-color: var(--ink);
    transition: transform 0.25s ease;
}

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

.hero {
    max-width: var(--container);
    margin: 0 auto;
    padding: calc(var(--header-h) + clamp(3rem, 9vh, 6rem)) var(--gutter) 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.kicker {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.kicker::before {
    content: '— ';
}

.hero-title {
    margin: 1.4rem 0 1.8rem;
    font-size: clamp(3.2rem, 9.5vw, 7.2rem);
    font-weight: 480;
}

.hero-line {
    display: block;
}

.hero-line-accent em {
    font-style: italic;
    font-weight: 580;
    color: var(--accent);
}

.hero-dot {
    color: var(--ink);
}

.hero-lead {
    max-width: 34rem;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    color: var(--ink-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.4rem;
}

.hero-art {
    color: var(--accent);
    width: 100%;
    max-width: 26rem;
    justify-self: end;
    animation: heroSpin 90s linear infinite;
}

.hero-art svg {
    width: 100%;
    height: auto;
}

@keyframes heroSpin {
    to {
        transform: rotate(360deg);
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    list-style: none;
    margin-top: clamp(3rem, 7vh, 5rem);
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--line-strong);
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 520;
    line-height: 1;
}

.stat-label {
    display: block;
    margin-top: 0.6rem;
    max-width: 16rem;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

/* --- Ticker --------------------------------------------------------------- */

.ticker {
    overflow: hidden;
    background-color: var(--accent-deep);
    color: var(--paper);
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 36s linear infinite;
}

.ticker-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0.85rem 0;
}

.ticker-list li {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    white-space: nowrap;
}

.ticker-list li::after {
    content: '✳';
    margin: 0 1.6rem;
    font-style: normal;
    font-size: 0.8rem;
    opacity: 0.85;
}

@keyframes tickerScroll {
    to {
        transform: translateX(-50%);
    }
}

/* --- Sections ------------------------------------------------------------- */

.section {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(4.5rem, 11vw, 8rem) var(--gutter);
    scroll-margin-top: var(--header-h);
}

.section-head {
    position: relative;
    max-width: 46rem;
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-index {
    position: absolute;
    top: -0.5em;
    right: -0.1em;
    z-index: -1;
    font-family: var(--font-display);
    font-size: clamp(7rem, 18vw, 13rem);
    font-weight: 200;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(34, 26, 18, 0.14);
}

.section-title {
    margin: 1.1rem 0 1.2rem;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
}

.section-lead {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--ink-soft);
}

/* --- About ----------------------------------------------------------------- */

.section-about {
    background: linear-gradient(transparent, transparent);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

.about-card {
    padding-top: 1.4rem;
    border-top: 2px solid var(--ink);
}

.about-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.7rem;
}

.about-card p {
    font-size: 0.93rem;
    color: var(--ink-soft);
}

.waves {
    margin-top: clamp(3.5rem, 8vw, 6rem);
    padding: clamp(1.75rem, 4vw, 3rem);
    background-color: var(--paper-deep);
    border-radius: 14px;
}

.waves-title {
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
}

.waves-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    list-style: none;
    counter-reset: wave;
}

.wave {
    counter-increment: wave;
}

.wave::before {
    content: '0' counter(wave);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--accent-deep);
}

.wave h4 {
    margin: 0.5rem 0 0.2rem;
    font-size: 1.2rem;
}

.wave-tagline {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent-deep);
    margin-bottom: 0.6rem;
}

.wave-text {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

/* --- Roasters --------------------------------------------------------------- */

.roaster-list {
    list-style: none;
}

.roaster-row {
    position: relative;
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) auto 3rem;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: clamp(1.5rem, 3vw, 2.2rem) 0.75rem;
    border-top: 1px solid var(--line);
    text-decoration: none;
    transition: background-color 0.25s ease;
}

.roaster-list li:last-child .roaster-row {
    border-bottom: 1px solid var(--line);
}

.roaster-row:hover {
    background-color: rgba(255, 255, 255, 0.55);
}

.roaster-index {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.roaster-name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
    font-weight: 540;
    line-height: 1.15;
    transition: color 0.25s ease;
}

.roaster-row:hover .roaster-name {
    color: var(--accent-deep);
}

.roaster-desc {
    display: block;
    max-width: 44rem;
    margin-top: 0.45rem;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.roaster-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0.5rem;
    min-height: 3.4rem;
}

.roaster-city {
    padding: 0.3rem 0.85rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.roaster-since {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--ink-soft);
}

.roaster-arrow {
    justify-self: end;
    align-self: center;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.roaster-row:hover .roaster-arrow {
    transform: translateX(6px);
    color: var(--accent-deep);
}

/* --- Brewing (dark) ----------------------------------------------------------- */

.section-brewing {
    max-width: none;
    padding: 0;
    background-color: var(--ink);
    color: var(--paper);
}

.section-brewing > .section-head,
.section-brewing > .brew {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.section-brewing > .section-head {
    padding-top: clamp(4.5rem, 11vw, 8rem);
    margin-bottom: 0;
}

.section-brewing .section-index {
    -webkit-text-stroke: 1px rgba(246, 241, 231, 0.22);
}

.section-brewing .kicker {
    color: var(--accent-light);
}

.section-brewing .section-lead {
    color: rgba(246, 241, 231, 0.65);
}

.brew {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(2rem, 6vw, 5rem);
    padding-top: clamp(2.5rem, 6vw, 4rem);
    padding-bottom: clamp(4.5rem, 11vw, 8rem);
}

.brew-tabs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.brew-tab {
    position: relative;
    padding: 0.45rem 0 0.45rem 2.2rem;
    border: 0;
    background: none;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 480;
    text-align: left;
    color: var(--paper);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.brew-tab::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.3rem;
    height: 1px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.brew-tab:hover {
    opacity: 0.85;
}

.brew-tab[aria-selected='true'] {
    opacity: 1;
    transform: translateX(4px);
}

.brew-tab[aria-selected='true']::before {
    transform: scaleX(1);
}

.brew-panel-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.brew-panel h3 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.brew-tagline {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-light);
}

.brew-text {
    max-width: 36rem;
    margin: 1.2rem 0 2.2rem;
    color: rgba(246, 241, 231, 0.72);
}

.brew-specs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background-color: var(--paper-line);
    border: 1px solid var(--paper-line);
    border-radius: 10px;
    overflow: hidden;
}

.spec {
    padding: 1.2rem 1.3rem 1.35rem;
    background-color: var(--ink);
}

.spec dt {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(246, 241, 231, 0.5);
}

.spec dd {
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: var(--paper);
}

.js .brew-panel.is-entering {
    animation: panelIn 0.4s ease both;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* --- Footer ------------------------------------------------------------------------ */

.site-footer {
    background-color: var(--ink);
    color: var(--paper);
    border-top: 1px solid var(--paper-line);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) auto auto;
    gap: clamp(2.5rem, 7vw, 6rem);
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(3.5rem, 8vw, 5.5rem) var(--gutter) 2.5rem;
}

.footer-wordmark {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 560;
    letter-spacing: -0.02em;
}

.footer-tagline {
    margin-top: 0.8rem;
    max-width: 22rem;
    font-size: 0.9rem;
    color: rgba(246, 241, 231, 0.6);
}

.footer-nav h2,
.footer-lang h2 {
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(246, 241, 231, 0.5);
}

.footer-nav ul,
.footer-lang ul {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.footer-nav a,
.footer-lang a {
    font-size: 0.92rem;
    text-decoration: none;
    color: rgba(246, 241, 231, 0.85);
    transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-lang a:hover {
    color: var(--accent-light);
}

.footer-lang a[aria-current='true'] {
    color: var(--accent-light);
}

.footer-fineprint {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.75rem var(--gutter) 2.25rem;
    border-top: 1px solid var(--paper-line);
    display: grid;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(246, 241, 231, 0.62);
}

/* --- Cookie banner ------------------------------------------------------------------- */

.cookie-banner {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 150;
    display: grid;
    gap: 0.9rem;
    max-width: 23rem;
    padding: 1.3rem 1.4rem;
    border-radius: 12px;
    background-color: var(--ink);
    color: var(--paper);
    box-shadow: 0 12px 40px rgba(34, 26, 18, 0.35);
}

.cookie-banner p {
    font-size: 0.85rem;
    line-height: 1.55;
}

.cookie-banner .btn {
    border-color: var(--accent-deep);
    background-color: var(--accent-deep);
    color: var(--paper);
    justify-self: start;
}

.cookie-banner .btn:hover {
    background-color: #833c0e;
    border-color: #833c0e;
}

.cookie-banner.is-hidden {
    display: none;
}

/* --- Reveal animations ------------------------------------------------------------------ */

.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

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

@media (max-width: 64rem) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-art {
        display: none;
    }

    .brew {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .brew-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem 1.5rem;
    }

    .brew-tab {
        padding-left: 0;
        font-size: 1.25rem;
    }

    .brew-tab::before {
        top: auto;
        bottom: 0;
        width: 100%;
    }

    .brew-tab[aria-selected='true'] {
        transform: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 53.75rem) {
    .nav-toggle {
        display: flex;
    }

    .js .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background-color: var(--paper);
        border-bottom: 1px solid var(--line);
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
        transition: transform 0.25s ease, opacity 0.2s ease;
        visibility: hidden;
    }

    .js body.nav-open .site-nav {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    body.nav-open .nav-toggle-bar:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    body.nav-open .nav-toggle-bar:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem var(--gutter) 1.5rem;
    }

    .site-nav a {
        display: block;
        padding: 0.8rem 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 47rem) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-cards,
    .waves-list {
        grid-template-columns: 1fr;
    }

    .roaster-row {
        grid-template-columns: 2.5rem minmax(0, 1fr);
        row-gap: 0.9rem;
    }

    .roaster-meta {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
    }

    .roaster-arrow {
        position: absolute;
        top: clamp(1.5rem, 3vw, 2.2rem);
        right: 0.75rem;
    }

    .brew-specs {
        grid-template-columns: 1fr 1fr;
    }

    .cookie-banner {
        left: 0.75rem;
        right: 0.75rem;
        max-width: none;
    }
}

/* --- Reduced motion ------------------------------------------------------------------------ */

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

    .hero-art,
    .ticker-track {
        animation: none;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .js .brew-panel.is-entering {
        animation: none;
    }

    .btn,
    .roaster-arrow,
    .brew-tab {
        transition: none;
    }
}
