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

/* Black Coffee Roasters — the sister site of Black Coffee Cafe, sharing its
   palette and type: forest greens, gold, cream; Playfair Display + Lora. */

:root {
    --forest-deep:  #161f16;   /* nav, hero, footer */
    --forest:       #2c3e2d;
    --forest-mid:   #344835;
    --gold:         #c8972a;   /* large text, rules, borders: 4.3:1 on forest, so not small text there */
    --gold-light:   #e5b850;   /* small gold text on forest */
    --gold-pale:    #f0d48a;
    --brown:        #4a2c17;
    --brown-mid:    #5e3920;
    --cream:        #f5edd6;   /* headings */
    --cream-dim:    #cfc0a0;   /* body text */
    --muted:        #c0a88a;   /* captions; 5.4:1 on brown, 6.9:1 on forest-deep */

    --gold-dim:     rgba(200,151,42,0.06);
    --gold-border:  rgba(200,151,42,0.22);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Lora', Georgia, serif;
    background: var(--forest);
    color: var(--cream);
    overflow-x: hidden;
}

/* ─── ACCESSIBILITY UTILITIES ─────────────────────── */
.skip-link {
    position: absolute;
    top: -5rem;
    left: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--gold);
    color: var(--forest-deep);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 2px;
    z-index: 999;
    transition: top 0.15s;
}
.skip-link:focus { top: 1rem; }

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

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 1px; }
:focus:not(:focus-visible) { outline: none; }

/* ─── NAV ─────────────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(22,31,22,0.97);
    border-bottom: 1px solid rgba(200,151,42,0.13);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gold);
    text-decoration: none;
}

.nav-toggle { display: none; }
.nav-burger { display: none; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--cream-dim);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.4rem 0;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover { color: var(--gold-light); }
.nav-links a[aria-current="page"] { color: var(--gold-light); border-bottom-color: var(--gold); }

/* ─── HERO ────────────────────────────────────────── */
.hero {
    background-color: var(--forest-deep);
    background-image:
        radial-gradient(ellipse 80% 55% at 50% -10%, rgba(74,44,23,0.55) 0%, transparent 65%),
        radial-gradient(ellipse 45% 35% at 85% 90%, rgba(200,151,42,0.07) 0%, transparent 55%);
    padding: 6rem 2rem;
}

.hero-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.hero-eyebrow,
.eyebrow {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7.5vw, 6.25rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.015em;
    color: var(--cream);
    margin-bottom: 2rem;
}

.hero-title .accent { color: var(--gold); font-style: italic; }

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-style: italic;
    color: var(--cream-dim);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 34rem;
}

.hero-photo { aspect-ratio: 781/900; max-height: 560px; justify-self: center; }

.chips {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.chip {
    padding: 0.65rem 1.4rem;
    border: 1px solid rgba(200,151,42,0.35);
    background: var(--gold-dim);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--cream-dim);
    border-radius: 1px;
}

.chip strong { color: var(--gold-light); font-weight: 500; }

/* page heads on inner pages */
.page-head {
    background-color: var(--forest-deep);
    background-image: radial-gradient(ellipse 80% 70% at 50% -20%, rgba(74,44,23,0.55) 0%, transparent 65%);
    padding: 5.5rem 2rem 4.5rem;
    text-align: center;
}

.page-head h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--cream);
    margin-bottom: 1.25rem;
}

.page-head h1 em { color: var(--gold); }

.page-head p {
    max-width: 38rem;
    margin: 0 auto;
    font-style: italic;
    color: var(--cream-dim);
    line-height: 1.75;
}

/* ─── SHARED SECTIONS ─────────────────────────────── */
section { padding: 6.5rem 2rem; }

.inner { max-width: 1140px; margin: 0 auto; }
.inner.narrow { max-width: 780px; }

h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--cream);
    margin-bottom: 2.5rem;
}

h2 em { font-style: italic; color: var(--gold); }

h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 0.75rem;
}

.prose p {
    font-size: 1.05rem;
    line-height: 1.88;
    color: var(--cream-dim);
    margin-bottom: 1.5rem;
}

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

.prose a,
.text-link {
    color: var(--gold-light);
    text-decoration: underline;
    text-decoration-color: rgba(229,184,80,0.45);
    text-underline-offset: 0.2em;
}

.prose a:hover,
.text-link:hover { text-decoration-color: var(--gold-light); }

.band-forest { background: var(--forest); }
.band-deep   { background: var(--forest-deep); }
.band-brown {
    background-color: var(--brown);
    background-image: radial-gradient(ellipse 90% 50% at 50% 110%, rgba(22,31,22,0.6) 0%, transparent 65%);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5.5rem;
    align-items: center;
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.photo-box { border-radius: 2px; overflow: hidden; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tall { aspect-ratio: 3/4; }
.photo-wide { aspect-ratio: 16/11; }

.pullquote {
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--gold);
    background: var(--gold-dim);
}

.pullquote p { margin: 0; font-style: italic; font-size: 0.98rem; color: var(--cream-dim); line-height: 1.75; }

.rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin: -1.25rem 0 3.5rem;
}

.rule::before,
.rule::after {
    content: '';
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(200,151,42,0.6));
}

.rule::after { background: linear-gradient(to left, transparent, rgba(200,151,42,0.6)); }
.rule span { color: var(--gold); font-size: 0.55rem; letter-spacing: 0.2em; }

.center { text-align: center; }

/* ─── CARDS (steps, beans, recipes) ───────────────── */
.card {
    padding: 2.5rem 2rem;
    background: rgba(22,31,22,0.38);
    border: 1px solid rgba(200,151,42,0.18);
    border-radius: 2px;
}

.card p { font-size: 0.92rem; line-height: 1.75; color: var(--cream-dim); }

.step-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 1rem;
}

/* bean cards */
.bean-list { display: grid; gap: 1.75rem; }

.bean {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 2rem;
    padding: 2.25rem 2.25rem 2rem;
    background: rgba(22,31,22,0.38);
    border: 1px solid rgba(200,151,42,0.18);
    border-radius: 2px;
}

.bean h3 { margin-bottom: 0.35rem; }

.bean-origin {
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.bean-price {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    text-align: right;
}

.bean-price small {
    display: block;
    margin-top: 0.4rem;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.bean-notes {
    grid-column: 1 / -1;
    margin-top: 1rem;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.75;
    color: var(--cream-dim);
}

.bean-meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
    list-style: none;
}

.bean-meta li {
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--gold-border);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--cream-dim);
}

/* recipe cards */
.recipe dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1.25rem;
    margin: 1.25rem 0 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(200,151,42,0.13);
    border-bottom: 1px solid rgba(200,151,42,0.13);
}

.recipe dt {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    align-self: baseline;
}

.recipe dd { font-family: 'Playfair Display', serif; color: var(--gold-light); }

.recipe ol { padding-left: 1.25rem; }
.recipe li { font-size: 0.92rem; line-height: 1.75; color: var(--cream-dim); margin-bottom: 0.5rem; }

/* hours list, as on the cafe */
.hours-list { margin-top: 0.5rem; }

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(200,151,42,0.13);
}

.hours-row:first-child { border-top: 1px solid rgba(200,151,42,0.13); }

.day-label { font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cream-dim); }
.time-label { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--gold-light); }

.note {
    max-width: 620px;
    margin: 3rem auto 0;
    text-align: center;
    padding: 1.5rem 2rem;
    border: 1px dashed var(--gold-border);
    border-radius: 2px;
}

.note p { font-size: 0.88rem; font-style: italic; color: var(--muted); line-height: 1.75; }

.button {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border: 1px solid rgba(200,151,42,0.45);
    background: rgba(200,151,42,0.08);
    color: var(--gold-light);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.button:hover { background: rgba(200,151,42,0.16); border-color: var(--gold); }

/* ─── FOOTER ──────────────────────────────────────── */
.site-footer {
    background: var(--forest-deep);
    border-top: 1px solid rgba(200,151,42,0.13);
    padding: 3.5rem 2rem;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-copy,
.footer-made {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    flex: 1;
}

.footer-copy { text-align: left; }
.footer-made { text-align: right; }

.footer-made a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid rgba(192,168,138,0.3);
    transition: color 0.2s, border-color 0.2s;
}

.footer-made a:hover { color: var(--gold-light); border-color: rgba(229,184,80,0.5); }

.footer-center { text-align: center; }

.footer-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.45rem;
}

.footer-sub {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ─── 404 ─────────────────────────────────────────── */
.not-found {
    min-height: 70vh;
    background-color: var(--forest-deep);
    background-image: radial-gradient(ellipse 80% 55% at 50% -10%, rgba(74,44,23,0.55) 0%, transparent 65%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
}

.not-found h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--cream);
    margin-bottom: 1.5rem;
}

.not-found h1 em { color: var(--gold); }
.not-found p { font-style: italic; color: var(--cream-dim); margin-bottom: 2.75rem; }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
    .site-nav { padding: 1rem 1.5rem; }

    .nav-burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 0.6rem;
        cursor: pointer;
    }

    .nav-burger span { display: block; width: 22px; height: 2px; background: var(--gold-light); }

    /* visually hidden but focusable and operable: the menu's real control */
    .nav-toggle {
        display: block; position: absolute; width: 1px; height: 1px;
        margin: -1px; padding: 0; border: 0; overflow: hidden;
        clip: rect(0 0 0 0); clip-path: inset(50%);
    }

    .nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--gold-light); outline-offset: 2px; border-radius: 4px; }

    .nav-links {
        flex-basis: 100%;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.3s ease, visibility 0.3s;
    }

    .nav-toggle:checked ~ .nav-links { max-height: 320px; visibility: visible; }
    .nav-links li { border-top: 1px solid rgba(200,151,42,0.13); }
    .nav-links li:first-child { margin-top: 1rem; }
    .nav-links a { display: block; padding: 1rem 0; border-bottom: 0; }

    .hero-grid,
    .two-col { grid-template-columns: 1fr; gap: 3.5rem; }
    .hero-photo { max-height: 380px; width: 100%; aspect-ratio: 4/3; }

    .three-col { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 680px) {
    section { padding: 5rem 1.5rem; }
    .hero { padding: 4rem 1.5rem; }
    .bean { grid-template-columns: 1fr; padding: 1.75rem 1.5rem; }
    .bean-price { text-align: left; margin-top: 0.75rem; }
    .footer-inner { flex-direction: column; text-align: center; gap: 1.25rem; }
    .footer-copy,
    .footer-made { text-align: center; flex: unset; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
