:root {
    --ink: #2a140c;
    --muted: #6e5346;
    --paper: rgba(255, 252, 247, 0.9);
    --line: rgba(42, 20, 12, 0.1);
    --pomegranate: #e23b4a;
    --saffron: #f0a202;
    --olive: #2c7a45;
    --sea: #0d8b93;
    --plum: #6a3adf;
    --citrus: #ff7430;
    --cream: #fff6ec;
    --shadow: 0 18px 50px rgba(80, 28, 12, 0.12);
    --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    font-family: Outfit, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    background:
        radial-gradient(980px 520px at -8% -10%, #ffd7a1 0%, transparent 58%),
        radial-gradient(760px 480px at 110% -6%, #ffc0d0 0%, transparent 52%),
        radial-gradient(820px 540px at 90% 110%, #b7f0e6 0%, transparent 46%),
        radial-gradient(640px 420px at 8% 92%, #ffe08a 0%, transparent 42%),
        var(--cream);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, .brand-name { font-family: Fraunces, serif; font-weight: 560; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.4rem, 4.4vw, 3.7rem); line-height: 0.95; margin: 0.05em 0 0.2em; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.1; margin: 0; }
p { margin: 0 0 0.8em; }
.wrap { width: min(1240px, calc(100% - 1.5rem)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 2rem)); }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--ink);
    color: white;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    z-index: 20;
}
.skip:focus { top: 0.7rem; }

.site-header {
    position: relative;
    z-index: 10;
    background: transparent;
    border: 0;
}
.header-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 76px;
    background: rgba(255, 246, 236, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.site-header .google-auto-placed,
.site-header ins.adsbygoogle {
    position: relative !important;
    top: auto !important;
    z-index: 0 !important;
    margin: 0.75rem auto 0;
    max-width: min(1240px, calc(100% - 1.5rem));
}
.brand, .brand-footer {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    font-weight: 700;
}
.mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(145deg, var(--pomegranate), var(--citrus) 55%, var(--saffron));
    box-shadow: 0 8px 18px rgba(226, 59, 74, 0.28);
}
.brand-name { font-size: 1.45rem; }
.site-nav { display: flex; gap: 0.35rem; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
}
.site-nav a.is-active, .site-nav a:hover { background: white; }
.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: white;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font: inherit;
    font-weight: 700;
}

.hero {
    padding: 1.1rem 0 1.15rem;
    background: linear-gradient(160deg, #fffdf8 0%, #ffe7c8 42%, #ffd0d4 100%);
    border-bottom: 1px solid var(--line);
}
.hero-bar { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.25rem; align-items: end; margin-bottom: 0.9rem; }
.lede { margin-bottom: 0.7rem; }
.eyebrow {
    display: inline-block;
    margin: 0 0 0.6rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: white;
    color: var(--pomegranate);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
}
.lede { font-size: 1.18rem; color: var(--muted); max-width: 42rem; }
.search-bar { display: grid; grid-template-columns: 1fr auto; gap: 0.55rem; margin: 0; align-items: center; }
.search-bar .chips { grid-column: 1 / -1; }
.search-bar input {
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.2rem;
    font: inherit;
    background: white;
    box-shadow: var(--shadow);
}
.button, a.button {
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: white;
    font: inherit;
    font-weight: 700;
    padding: 0.9rem 1.2rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.chips, .stamp-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip, .stamp {
    text-decoration: none;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    background: white;
    font-weight: 650;
    font-size: 0.92rem;
}
.stamp { padding: 0.7rem 1rem; }
.tone-pomegranate { box-shadow: inset 0 0 0 2px var(--pomegranate); }
.tone-saffron { box-shadow: inset 0 0 0 2px var(--saffron); }
.tone-olive { box-shadow: inset 0 0 0 2px var(--olive); }
.tone-sea { box-shadow: inset 0 0 0 2px var(--sea); }
.tone-plum { box-shadow: inset 0 0 0 2px var(--plum); }
.tone-citrus { box-shadow: inset 0 0 0 2px var(--citrus); }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
.stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 72px;
    padding: 0.55rem 0.75rem;
    border-radius: 16px;
    text-decoration: none;
    color: white;
}
.stat strong { font-family: Fraunces, serif; font-size: 1.45rem; line-height: 1; }
.stat span { font-size: 0.78rem; font-weight: 700; opacity: 0.92; }
.stat-pop { background: linear-gradient(145deg, #e23b4a, #ff7430); }
.stat-sea { background: linear-gradient(145deg, #0d8b93, #1aa8a4); }
.stat-olive { background: linear-gradient(145deg, #2c7a45, #6aaa2f); }
.mosaic {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-auto-rows: 176px;
    gap: 0.65rem;
}
.mosaic .card:first-child { grid-row: span 2; }
.mosaic .card { height: 100%; min-height: 0; overflow: hidden; }
.mosaic .card-text { height: auto; flex: 0 0 auto; }
.mosaic .card-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 140px; display: flex; }
.mosaic .card-link { height: 100%; }
.mosaic .card-body { padding: 0.55rem 0.7rem 0.65rem; }
.mosaic .card-summary { display: none; }
.mosaic .card:first-child .card-summary { display: -webkit-box; }

.band { padding: 1.15rem 0 1.25rem; }
.band-rose { background: #ffe3e0; }
.band-gold { background: #ffe6bc; }
.band-mint { background: #d9f6df; }
.band-sky { background: #d5f4f5; }
.band-lilac { background: #efe3ff; }
.band-ink { background: #2a140c; color: #fff6ec; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 0.75rem; }
.section-head-light h2 { color: #fff6ec; }
.text-link { font-weight: 700; color: var(--sea); }
.text-link-light { color: #ffd27a; }
.tile-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.6rem; }
.tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 96px;
    padding: 0.75rem 0.8rem;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    box-shadow: none;
}
.tile strong { font-family: Fraunces, serif; font-size: 1.12rem; line-height: 1.05; }
.tile span { font-size: 0.75rem; font-weight: 700; opacity: 0.92; }
.tile.tone-pomegranate { background: linear-gradient(160deg, #e23b4a, #ff6a3d); }
.tile.tone-saffron { background: linear-gradient(160deg, #e08900, #f0a202); color: #2a140c; }
.tile.tone-olive { background: linear-gradient(160deg, #217a3e, #67b12e); }
.tile.tone-sea { background: linear-gradient(160deg, #0c7c86, #19b0b0); }
.tile.tone-plum { background: linear-gradient(160deg, #6234d6, #b15cff); }
.tile.tone-citrus { background: linear-gradient(160deg, #ff5a1f, #ffb020); color: #2a140c; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; width: 100%; }
.cook-next { clear: both; }
.cook-next .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; height: auto; }
.card-link { display: flex; flex-direction: column; height: auto; min-height: 0; text-decoration: none; color: inherit; }
a.photo { display: block; }
a.photo img { width: 100%; height: 100%; object-fit: cover; }
.card-media { position: relative; aspect-ratio: 16 / 11; width: 100%; flex: 0 0 auto; background: #fff; overflow: hidden; }
.card-body { position: relative; z-index: 1; background: #fffdf9; }
.card-media > img,
.card-media .photo,
.card-media .img-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-media img, .img-fallback { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-fallback {
    display: grid;
    place-items: center;
    font-family: Fraunces, serif;
    font-size: 2.4rem;
    color: white;
    background: linear-gradient(160deg, var(--pomegranate), var(--saffron));
}
.tone-sea .img-fallback { background: linear-gradient(160deg, var(--sea), #8ee7df); }
.tone-olive .img-fallback { background: linear-gradient(160deg, var(--olive), #d6f36b); }
.tone-saffron .img-fallback { background: linear-gradient(160deg, #e07a00, #ffe08a); color: var(--ink); }
.tone-plum .img-fallback { background: linear-gradient(160deg, var(--plum), #ffb3d1); }
.tone-citrus .img-fallback { background: linear-gradient(160deg, var(--citrus), #ffe08a); color: var(--ink); }
.pill {
    position: absolute;
    left: 0.8rem;
    bottom: 0.8rem;
    background: white;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
}
.card-body { padding: 0.7rem 0.8rem 0.8rem; display: flex; flex-direction: column; gap: 0.25rem; }
.card-title { font-family: Fraunces, serif; font-size: 1.08rem; line-height: 1.15; }
.card-summary {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta { color: var(--muted); font-size: 0.8rem; }

.page-hero { padding: 2.2rem 0 0.4rem; }
.recipe-hero { padding: 1.6rem 0 0.4rem; }
.recipe-hero-grid, .recipe-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.recipe-photo {
    border-radius: 28px;
    overflow: hidden;
    min-height: 220px;
    max-height: 320px;
    background: white;
    box-shadow: var(--shadow);
}
.recipe-photo img, .img-fallback-lg { width: 100%; height: 100%; min-height: 220px; max-height: 320px; object-fit: cover; }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.55rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.meta-row li {
    background: white;
    border-radius: 18px;
    padding: 0.55rem 0.8rem;
    min-width: 5.5rem;
    font-weight: 700;
}
.meta-row span { display: block; font-weight: 600; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.crumb { color: var(--pomegranate); font-weight: 700; text-decoration: none; letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.ingredient-card {
    background: white;
    border-radius: 28px;
    padding: 1.2rem 1.3rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 92px;
}
.ingredient-card h2, .ingredient-card h3 { margin-bottom: 0.4rem; }
.ingredient-card ul, .steps { padding: 0; margin: 0 0 1rem; }
.ingredient-card li { list-style: none; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.yield { color: var(--muted); }
.steps { list-style: none; display: grid; gap: 0.8rem; }
.steps li, .roundup-item { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; }
.step-no {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--pomegranate);
    color: white;
    font-weight: 800;
}
.steps p { margin: 0.35rem 0 0; }
.notes, .nutrition { margin-top: 1.4rem; background: white; border-radius: 24px; padding: 1rem 1.1rem; }
.nutrition ul { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; list-style: none; }
.nutrition li { background: var(--cream); border-radius: 16px; padding: 0.55rem 0.75rem; font-weight: 700; }
.nutrition span { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.prose img { border-radius: 24px; margin: 0.5rem 0 1rem; }
.roundup-list { display: grid; gap: 1rem; }
.roundup-item {
    grid-template-columns: auto 1fr auto;
    background: white;
    border-radius: 24px;
    padding: 1rem;
    box-shadow: var(--shadow);
}
.roundup-item h2 { font-size: 1.45rem; }
.roundup-item a { text-decoration: none; }
.roundup-item a:hover { color: var(--pomegranate); }
.roundup-photo img { width: 120px; height: 90px; object-fit: cover; border-radius: 16px; }
.pager { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.4rem; }
.pager-link {
    min-width: 2.4rem;
    text-align: center;
    text-decoration: none;
    background: white;
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    font-weight: 700;
}
.pager-link.is-current { background: var(--ink); color: white; }
.stack-form { display: grid; gap: 0.8rem; }
.stack-form label { display: grid; gap: 0.3rem; font-weight: 700; }
.stack-form input, .stack-form textarea {
    border: 0;
    border-radius: 16px;
    padding: 0.8rem 0.9rem;
    font: inherit;
    background: white;
}
.optional { font-weight: 500; color: var(--muted); }
.honey { position: absolute; left: -9999px; }
.notice { background: #e5f7ef; border-radius: 16px; padding: 0.8rem 1rem; }
.notice-bad { background: #ffe1e4; }
.empty { color: var(--muted); }

.site-footer { margin-top: 2rem; background: #24140f; color: #fff4ea; padding: 2.4rem 0 1.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1.4rem; }
.site-footer a { display: block; text-decoration: none; margin: 0.3rem 0; color: #ffe7c4; }
.site-footer h2 { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.6rem; }
.brand-footer .mark { width: 28px; height: 28px; }
.footer-base { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 1.4rem; padding-top: 0.8rem; color: #e7cbb8; }

@media (max-width: 980px) {
    .hero-bar, .recipe-hero-grid, .recipe-layout, .footer-grid { grid-template-columns: 1fr; }
    .card-grid, .footer-grid, .cook-next .card-grid { grid-template-columns: 1fr 1fr; }
    .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 168px; }
}
@media (max-width: 760px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 76px;
        background: #fff8f1;
        padding: 0.8rem 1rem 1rem;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
    }
    .site-nav.is-open { display: flex; }
    .hero-bar, .recipe-hero-grid, .recipe-layout, .footer-grid, .stat-row { grid-template-columns: 1fr; }
    .card-grid, .cook-next .card-grid, .mosaic, .tile-grid { grid-template-columns: 1fr 1fr; }
    .mosaic .card:first-child { grid-column: span 2; grid-row: auto; min-height: 220px; }
    .search-bar { grid-template-columns: 1fr; }
    .ingredient-card { position: static; }
    .roundup-item { grid-template-columns: auto 1fr; }
    .roundup-photo { grid-column: 2; }
    h1 { font-size: 2.7rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
