/* North County Cookbook — public styles (mobile first) */

@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
    font-weight: 400 600;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3-italic-latin.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --cream: #f7f1e7;
    --cream-deep: #efe6d6;
    --paper: #fffdf9;
    --ink: #2a2622;
    --ink-soft: #544c44;
    --muted: #7c7166;
    --line: #e4d9c6;
    --terracotta: #b4573a;
    --terracotta-dark: #8e4128;
    --terracotta-soft: #f4e2d9;
    --sage: #66775a;
    --sage-dark: #4c5a42;
    --sage-soft: #e6eadd;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(42, 38, 34, .05), 0 8px 24px rgba(42, 38, 34, .06);
    --shadow-lift: 0 2px 4px rgba(42, 38, 34, .06), 0 16px 40px rgba(42, 38, 34, .12);
    --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
    --container: 1200px;
    --gutter: clamp(1.1rem, 4vw, 2rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 .5em;
    font-variation-settings: "opsz" 72;
}

p { margin: 0 0 1em; }

a { color: var(--terracotta-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--terracotta); }

:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: var(--paper); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 780px; }

/* ---------- Buttons, links, chips ---------- */

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 2.9rem; padding: .7rem 1.35rem;
    border: 1.5px solid var(--terracotta); border-radius: 999px;
    background: var(--terracotta); color: #fff;
    font: 600 1rem/1 var(--font-body); letter-spacing: .01em;
    text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.button:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: #fff; }
.button:active { transform: translateY(1px); }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink-soft); }
.button--small { min-height: 2.3rem; padding: .45rem 1rem; font-size: .92rem; }
.button--block { width: 100%; }
.button .icon { width: 1.15em; height: 1.15em; }

.text-link {
    display: inline-flex; align-items: center; gap: .35rem;
    font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.text-link .icon { width: 1.1em; height: 1.1em; transition: transform .15s ease; }
.text-link:hover { color: var(--terracotta-dark); }
.text-link:hover .icon { transform: translateX(3px); }

.eyebrow {
    display: inline-block; margin-bottom: .45rem;
    font: 700 .74rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
    color: var(--sage-dark); text-decoration: none;
}
a.eyebrow:hover { color: var(--terracotta-dark); }
.eyebrow--plain { color: var(--terracotta-dark); }

.chip-list { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.chip-list--center { justify-content: center; }
.chip {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem 1rem; border-radius: 999px;
    background: var(--paper); border: 1px solid var(--line);
    color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.chip:hover { border-color: var(--sage); background: var(--sage-soft); color: var(--ink); transform: translateY(-1px); }
.chip__count { font-size: .78rem; font-weight: 700; color: var(--sage-dark); background: var(--sage-soft); border-radius: 999px; padding: .05rem .5rem; }
.chip--quiet { font-weight: 500; color: var(--ink-soft); }

/* ---------- Header & navigation ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 241, 231, .94);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; min-height: 4.5rem; padding-block: .6rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__mark { color: var(--terracotta); flex: none; }
.brand__name { font: 600 1.22rem/1.05 var(--font-display); letter-spacing: -.01em; }
.brand__name span { font-style: italic; font-weight: 500; color: var(--terracotta-dark); }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; width: 100%; }
.site-nav__links { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav__links a { color: var(--ink); text-decoration: none; font-weight: 600; padding-block: .3rem; border-bottom: 2px solid transparent; }
.site-nav__links a:hover { border-bottom-color: var(--terracotta); color: var(--ink); }

.site-nav__search { display: flex; align-items: center; flex: 1 1 14rem; max-width: 22rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .25rem .2rem 1rem; }
.site-nav__search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: .95rem; color: var(--ink); padding: .35rem 0; }
.site-nav__search input:focus { outline: none; }
.site-nav__search:focus-within { border-color: var(--terracotta); box-shadow: 0 0 0 3px var(--terracotta-soft); }
.site-nav__search button { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer; }
.site-nav__search button:hover { background: var(--cream); color: var(--terracotta-dark); }

.nav-toggle { display: none; }

/* JS-enhanced collapsible navigation on small screens */
@media (max-width: 47.99rem) {
    .js .nav-toggle {
        display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
        border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer;
    }
    .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
        display: block; width: 1.1rem; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease;
    }
    .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
    .nav-toggle__bar::before { top: -6px; }
    .nav-toggle__bar::after { top: 6px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

    .js .site-nav { display: none; padding: .5rem 0 1rem; }
    .js .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
    .js .site-nav.is-open .site-nav__links { flex-direction: column; gap: 0; }
    .js .site-nav.is-open .site-nav__links a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
    .js .site-nav.is-open .site-nav__search { max-width: none; margin-top: .5rem; }
}

@media (min-width: 48rem) {
    .site-header__inner { flex-wrap: nowrap; }
    .site-nav { width: auto; flex-wrap: nowrap; }
    .site-nav__search { flex: 0 1 15rem; }
}

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

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: -2; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(30, 24, 19, .55) 0%, rgba(30, 24, 19, .72) 100%);
}
.hero__inner { padding-block: clamp(4rem, 12vw, 8.5rem); }
.hero__content { max-width: 37rem; }
.hero__kicker { font: 700 .78rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: #f1d7c8; margin-bottom: 1rem; }
.hero__title { font-size: clamp(2.6rem, 8vw, 4.6rem); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 1.1rem; font-variation-settings: "opsz" 144; }
.hero__title em { font-weight: 500; color: #f6d2bf; }
.hero__lead { font-size: clamp(1.08rem, 2.4vw, 1.25rem); color: #f4ece2; max-width: 32rem; margin-bottom: 2rem; }

@media (min-width: 60rem) {
    .hero::after { background: linear-gradient(90deg, rgba(30, 24, 19, .82) 0%, rgba(30, 24, 19, .55) 45%, rgba(30, 24, 19, .08) 75%); }
}

.hero-search {
    display: flex; align-items: center; gap: .5rem;
    background: var(--paper); border-radius: 999px; padding: .35rem .35rem .35rem 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: 34rem; color: var(--muted);
}
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: .65rem .25rem; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: 0 0 0 3px rgba(244, 226, 217, .9), 0 10px 30px rgba(0, 0, 0, .25); }
.hero-search .icon { flex: none; }
.hero-search--compact { margin: 1.5rem auto; box-shadow: var(--shadow); border: 1px solid var(--line); }

@media (max-width: 30rem) {
    .hero-search { flex-wrap: wrap; border-radius: var(--radius); padding: .5rem; }
    .hero-search > .icon { display: none; }
    .hero-search input { flex-basis: 100%; padding: .7rem .8rem; }
    .hero-search .button { width: 100%; }
}

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

.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section--tight { padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.section--alt { background: var(--cream-deep); }
.section--results { padding-top: 1.5rem; }
.section__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section__header--center { justify-content: center; text-align: center; }
.section__title { font-size: clamp(1.75rem, 4vw, 2.4rem); margin: 0; }

/* ---------- Cards ---------- */

.card-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }

.card {
    position: relative; display: flex; flex-direction: column;
    background: var(--paper); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__placeholder { display: grid; place-items: center; height: 100%; color: var(--line); }
.card__placeholder svg { width: 4rem; height: 4rem; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.3rem 1.3rem; }
.card__title { font-size: 1.32rem; margin: 0 0 .45rem; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:hover { color: var(--terracotta-dark); }
.card .eyebrow { position: relative; z-index: 2; }
.card__summary {
    color: var(--ink-soft); font-size: .98rem; margin-bottom: 1rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; list-style: none; margin: auto 0 0; padding: .85rem 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; font-weight: 600; }
.card__meta li { display: inline-flex; align-items: center; gap: .35rem; }
.card__meta .icon { width: 1.05rem; height: 1.05rem; color: var(--sage); }

.card--large .card__media { aspect-ratio: 3 / 2; }
.card--large .card__title { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
.card--large .card__summary { -webkit-line-clamp: 3; font-size: 1.05rem; }

.featured-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.featured-grid__side { display: grid; gap: clamp(1.25rem, 3vw, 2rem); align-content: start; }

@media (min-width: 40rem) {
    .card--horizontal { flex-direction: row; }
    .card--horizontal .card__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 12rem; }
    .card--horizontal .card__title { font-size: 1.25rem; }
}
@media (min-width: 62rem) {
    .featured-grid { grid-template-columns: 1.35fr 1fr; }
    .featured-grid--single { grid-template-columns: 1fr; max-width: 52rem; }
    .featured-grid__side { grid-template-rows: 1fr 1fr; align-content: stretch; }
}

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

.about-band {
    display: grid; gap: 2rem; align-items: center;
    background: var(--sage-dark); color: #f3f1ea; border-radius: calc(var(--radius) + 6px);
    padding: clamp(2rem, 5vw, 3.5rem);
}
.about-band .section__title { color: #fff; margin-bottom: .8rem; }
.about-band .eyebrow--plain { color: #dfe6cf; }
.about-band p { color: #e5e8dc; max-width: 34rem; }
.about-band .button--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); margin-top: .5rem; }
.about-band .button--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.about-band__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.about-band__points li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-sm); padding: 1rem 1.2rem; color: #e5e8dc; }
.about-band__points strong { color: #fff; display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
@media (min-width: 56rem) { .about-band { grid-template-columns: 1.2fr 1fr; } }

/* ---------- Page header, breadcrumbs, filters ---------- */

.page-header { padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; border-bottom: 1px solid var(--line); background: var(--cream-deep); }
.page-header--plain { background: transparent; border-bottom: 0; padding-bottom: .5rem; }
.page-header__title { font-size: clamp(2.1rem, 6vw, 3.3rem); margin-bottom: .5rem; }
.page-header__lead { color: var(--ink-soft); font-size: 1.15rem; max-width: 42rem; }

.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--terracotta-dark); text-decoration: underline; }

.filters { display: grid; gap: .9rem; margin-top: 1.5rem; padding: 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.filters__field { display: grid; gap: .3rem; }
.filters label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.filters input, .filters select {
    width: 100%; min-height: 2.9rem; padding: .55rem .85rem;
    font: inherit; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.filters input:focus, .filters select:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px var(--terracotta-soft); }
@media (min-width: 48rem) {
    .filters { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }
}

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.results-bar__count { margin: 0; color: var(--ink-soft); font-weight: 600; }

.empty-state { text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state h2 { font-size: 1.6rem; }
.empty-state p { color: var(--ink-soft); max-width: 32rem; margin-inline: auto; }

/* ---------- Pagination ---------- */

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1rem; margin-top: 2.5rem; }
.pagination ul { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination__current, .pagination__gap {
    display: grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .6rem;
    border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--ink);
}
.pagination a { background: var(--paper); border: 1px solid var(--line); }
.pagination a:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }
.pagination__current { background: var(--ink); color: var(--paper); }
.pagination__step { padding-inline: 1rem !important; }

/* ---------- Recipe page ---------- */

.preview-banner { background: #fdf0c8; border-bottom: 1px solid #ecd58b; }
.preview-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; flex-wrap: wrap; }
.preview-banner p { margin: 0; }

.recipe-header { padding-block: clamp(2rem, 5vw, 3.5rem) 2rem; text-align: center; }
.recipe-header .breadcrumbs { justify-content: center; }
.recipe-header__title { font-size: clamp(2.3rem, 7vw, 3.9rem); line-height: 1.04; letter-spacing: -.025em; font-variation-settings: "opsz" 144; margin-bottom: 1rem; }
.recipe-header__summary { font-size: clamp(1.1rem, 2.5vw, 1.3rem); color: var(--ink-soft); max-width: 40rem; margin-inline: auto; }
.recipe-header__dates { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .92rem; color: var(--muted); }

.recipe-facts {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: 1.75rem auto;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); max-width: 40rem; overflow: hidden;
}
.recipe-facts > div { flex: 1 1 6.5rem; padding: .9rem .75rem; border-right: 1px solid var(--line); }
.recipe-facts > div:last-child { border-right: 0; }
.recipe-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-dark); }
.recipe-facts dd { margin: .15rem 0 0; font: 600 1.15rem/1.2 var(--font-display); }

.recipe-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }

.recipe-hero { margin: 0 auto 2.5rem; max-width: 1080px; }
.recipe-hero img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--shadow); }
.recipe-hero figcaption, .recipe-gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; text-align: center; font-style: italic; }

.prose { font-size: 1.12rem; line-height: 1.75; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose--page { padding-bottom: 4rem; }
.recipe-intro { margin-bottom: 2.5rem; }
.recipe-intro p:first-child::first-letter {
    float: left; font: 600 3.6em/.85 var(--font-display); padding: .08em .1em 0 0; color: var(--terracotta);
}

.recipe-method { display: grid; gap: 2rem; padding-bottom: 3rem; scroll-margin-top: 5.5rem; }
.recipe-print-title { display: none; }

.ingredients {
    background: var(--paper); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.25rem;
    border: 1px solid var(--line); box-shadow: var(--shadow); align-self: start;
}
.ingredients h2, .instructions > h2 { font-size: 1.7rem; margin-bottom: .25rem; }
.ingredients__yield { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.ingredients__list { list-style: none; margin: 0; padding: 0; }
.ingredients__list li { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); line-height: 1.45; }
.ingredients__list li:last-child { border-bottom: 0; }
.ingredients__amount { flex: 0 0 auto; min-width: 4.75rem; font-weight: 700; color: var(--terracotta-dark); }
.ingredients__note { color: var(--muted); }

.instructions > h2 { margin-bottom: 1.25rem; }
.instructions__list { list-style: none; counter-reset: step; margin: 0 0 2rem; padding: 0; }
.instructions__list li { counter-increment: step; position: relative; padding: 0 0 1.6rem 3.6rem; font-size: 1.08rem; line-height: 1.7; }
.instructions__list li::before {
    content: counter(step); position: absolute; left: 0; top: -.1rem;
    display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
    background: var(--terracotta-soft); color: var(--terracotta-dark); font: 600 1.15rem/1 var(--font-display);
}
.instructions__list li:not(:last-child)::after {
    content: ""; position: absolute; left: 1.22rem; top: 2.6rem; bottom: .4rem; width: 1px; background: var(--line);
}

.callout { background: var(--sage-soft); border-radius: var(--radius); padding: 1.25rem 1.5rem .5rem; margin-bottom: 1rem; border-left: 4px solid var(--sage); }
.callout h2 { font-size: 1.25rem; color: var(--sage-dark); margin-bottom: .4rem; }
.callout p { color: var(--ink-soft); }

@media (min-width: 56rem) {
    .recipe-method { grid-template-columns: minmax(18rem, 22rem) 1fr; gap: 3rem; }
    .ingredients { position: sticky; top: 6rem; }
}

.recipe-gallery { padding-bottom: 3rem; }
.recipe-gallery h2 { font-size: 1.6rem; }
.recipe-gallery__grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.recipe-gallery figure { margin: 0; }
.recipe-gallery img { border-radius: var(--radius-sm); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.recipe-taxonomy { display: grid; gap: 1.5rem; padding-bottom: 3.5rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.recipe-taxonomy h2 { font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
@media (min-width: 40rem) { .recipe-taxonomy { grid-template-columns: 1fr 1fr; } }

.card-grid--three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }

/* ---------- Contact & error pages ---------- */

.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem .75rem; margin: 1rem 0 2rem; box-shadow: var(--shadow); }
.contact-card h2 { margin-top: 0; }
.contact-card__email { font: 600 1.35rem/1.3 var(--font-display); word-break: break-word; }
.contact-card__note { color: var(--muted); font-size: .98rem; }

.error-page { text-align: center; padding-block: clamp(4rem, 12vw, 7rem); }
.error-page__code { font: 600 clamp(4rem, 14vw, 7rem)/1 var(--font-display); color: var(--terracotta); margin-bottom: .5rem; font-variation-settings: "opsz" 144; }
.error-page__title { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.error-page__lead { color: var(--ink-soft); font-size: 1.15rem; }
.error-page__links { color: var(--muted); }
.error-page__debug { text-align: left; white-space: pre-wrap; background: var(--paper); border: 1px solid var(--line); padding: 1rem; border-radius: var(--radius-sm); font-size: .85rem; }

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

.site-footer { background: var(--ink); color: #d9d1c6; padding-top: 3.5rem; margin-top: 0; }
.site-footer__inner { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
.brand--footer { color: #fff; margin-bottom: .75rem; }
.brand--footer:hover { color: #fff; }
.brand--footer .brand__mark { color: #e4987c; }
.brand--footer .brand__name span { color: #e4987c; }
.site-footer__brand p { max-width: 22rem; color: #bfb5a8; }
.site-footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.5rem; }
.site-footer h2 { font: 700 .76rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #d9d1c6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__base { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.25rem; font-size: .9rem; color: #a49a8e; }
.site-footer__base p { margin: 0; }
@media (min-width: 56rem) { .site-footer__inner { grid-template-columns: 1fr 1.4fr; } }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print: just the recipe ---------- */

@media print {
    @page { margin: 1.6cm; }
    body { background: #fff; color: #000; font-size: 11pt; line-height: 1.45; }
    .site-header, .site-footer, .skip-link, .breadcrumbs, .recipe-actions, .recipe-gallery, .related,
    .recipe-taxonomy, .preview-banner, .recipe-hero, .recipe-intro { display: none !important; }
    .container { max-width: none; padding: 0; }
    .recipe-header { text-align: left; padding: 0 0 .5cm; }
    .recipe-header__title { font-size: 24pt; margin-bottom: .2cm; }
    .recipe-header__summary { margin: 0; font-size: 12pt; color: #333; }
    .recipe-header__dates { justify-content: flex-start; color: #555; }
    .recipe-facts { justify-content: flex-start; margin: .4cm 0; box-shadow: none; border-color: #999; max-width: none; }
    .recipe-facts > div { border-color: #999; flex: 0 0 auto; padding: .2cm .5cm; }
    .recipe-method { display: block; padding: 0; }
    .ingredients { position: static; box-shadow: none; border: 1px solid #999; padding: .4cm; margin-bottom: .6cm; break-inside: avoid; }
    .ingredients__list li { padding: .1cm 0; }
    .ingredients__amount { color: #000; }
    .instructions__list li { padding-left: 1.1cm; padding-bottom: .35cm; font-size: 11pt; break-inside: avoid; }
    .instructions__list li::before { background: none; border: 1px solid #000; color: #000; width: .7cm; height: .7cm; font-size: 10pt; }
    .instructions__list li::after { display: none; }
    .callout { background: none; border: 0; border-left: 2px solid #999; padding: 0 0 0 .4cm; break-inside: avoid; }
    .callout h2 { color: #000; }
    a { color: #000; text-decoration: none; }
}
