:root {
    --ink: #2a1410;
    --muted: #6d5148;
    --paper: #fff7f1;
    --card: #fffdfb;
    --line: #f0d2c4;
    --berry: #9d2344;
    --berry-deep: #6e1630;
    --mango: #ef8b2c;
    --yolk: #f2c14e;
    --leaf: #2f7d57;
    --sea: #1f6f8b;
    --grape: #6a4c93;
    --shadow: 0 18px 40px rgba(80, 28, 20, 0.08);
    --serif: "Bricolage Grotesque", Georgia, serif;
    --sans: "Figtree", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% -10%, #ffd9c2 0, transparent 32%),
        radial-gradient(circle at 100% 0, #f8c3d4 0, transparent 28%),
        var(--paper);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
h1, h2, h3, .brand-name, .card-title {
    font-family: var(--serif);
    letter-spacing: -0.03em;
    line-height: 1.05;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0; }
h3 { margin: 1.2rem 0 0.4rem; }
p { margin: 0 0 0.8rem; }
.wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 2rem)); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.eyebrow {
    margin: 0 0 0.4rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--berry);
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--ink);
    color: white;
    padding: 0.5rem 0.8rem;
    z-index: 5;
}
.skip:focus { top: 1rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 247, 241, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4.6rem;
}
.brand, .brand-footer {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
}
.mark {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 58%, #e4572e 0 28%, transparent 29%),
        radial-gradient(circle at 50% 50%, #ffe7c2 0 70%, #9d2344 71%);
    box-shadow: inset 0 -4px 0 #6e1630;
}
.brand-name { font-size: 1.45rem; }
.site-nav { display: flex; gap: 0.35rem; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav-link {
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
}
.nav-link:hover, .nav-link.is-active { background: var(--berry); color: white; }
.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: var(--ink);
    color: white;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 700;
}

.hero { padding: 2.2rem 0 1rem; }
.hero-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.5rem; align-items: center; }
.hero-copy {
    background: linear-gradient(160deg, #9d2344, #6e1630 70%);
    color: #fff7f1;
    border-radius: 2rem;
    padding: 2rem 1.8rem 1.6rem;
    box-shadow: var(--shadow);
}
.hero-copy .eyebrow { color: #f2c14e; }
.hero-copy .lede { color: #ffe4ea; }
.search-hero { display: flex; gap: 0.5rem; margin: 1.2rem 0; }
.search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.search-hero input {
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.1rem;
    background: white;
    color: var(--ink);
}
.button, a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--yolk);
    color: var(--ink);
    font-weight: 800;
    padding: 0.85rem 1.15rem;
    text-decoration: none;
    cursor: pointer;
}
.stat-row { display: flex; gap: 1.2rem; list-style: none; padding: 0; margin: 0.4rem 0 0; }
.stat-row strong { display: block; font-family: var(--serif); font-size: 1.5rem; }
.stat-row span { color: #ffd5df; font-size: 0.85rem; }
.hero-stage { display: grid; gap: 0.8rem; }
.hero-side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }

.recipe-card { min-width: 0; }
.card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border-radius: 1.3rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.7);
}
.card-link:hover { transform: translateY(-3px); }
.card-media { aspect-ratio: 4 / 3; background: #f3d5c4; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media img.is-plate { object-fit: contain; padding: 1rem; background: #f6d7c3; }
.hero-main .card-media { aspect-ratio: 16 / 10; }
.hero-mini .card-title { font-size: 1rem; }
.card-body { padding: 0.85rem 0.95rem 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.card-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.card-title { font-size: 1.2rem; }
.chip, .time {
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    background: #fff1e6;
}
.time { background: transparent; color: var(--muted); padding-left: 0; }
.tone-paprika { background: #fde2d2; }
.tone-mango { background: #ffe7bf; }
.tone-basil { background: #dff3e6; }
.tone-berry { background: #f8d5e0; }
.tone-grape { background: #eadff5; }
.tone-teal { background: #d7f1f4; }
.tone-yolk { background: #fff1c2; }
.tone-sky { background: #dcecff; }

.mosaic, .band { padding: 1.4rem 0 0.6rem; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.section-head p { color: var(--muted); margin: 0.3rem 0 0; }
.text-link { color: var(--berry-deep); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.mosaic-grid, .card-grid, .category-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}
.related-grid { grid-template-columns: repeat(4, 1fr); }
.mosaic-tile, .category-tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 8.5rem;
    padding: 1rem;
    border-radius: 1.3rem;
    text-decoration: none;
    color: #2a1410;
    background: #ffe7bf;
    box-shadow: var(--shadow);
}
.mosaic-tile strong, .category-tile strong { font-family: var(--serif); font-size: 1.45rem; }
.mosaic-tile span, .category-tile span { color: var(--muted); font-weight: 700; }
.tile-cookies { background: #f8d5e0; }
.tile-cake { background: #ffe7bf; }
.tile-cocktails { background: #eadff5; }
.tile-coffee-tea { background: #f3d7b5; }
.tile-breakfast { background: #fff1c2; }
.tile-appetizer { background: #dff3e6; }
.tile-dinner { background: #d7f1f4; }
.tile-dessert { background: #ffd9c8; }

.page-hero { padding: 2rem 0 0.4rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; color: var(--muted); font-size: 0.92rem; margin-bottom: 0.8rem; }
.crumbs a { color: var(--berry-deep); font-weight: 700; text-decoration: none; }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin: 1.4rem 0; font-weight: 700; }
.pager a { color: var(--berry-deep); }
.empty { background: white; border-radius: 1rem; padding: 1rem; }

.recipe-top { padding: 1.6rem 0 0.4rem; }
.recipe-top-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.4rem; align-items: center; }
.recipe-frame {
    margin: 0;
    border-radius: 1.6rem;
    overflow: hidden;
    background: #f6d7c3;
    box-shadow: var(--shadow);
}
.recipe-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.recipe-frame img.is-plate { object-fit: contain; }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; }
.meta-row li {
    background: white;
    border-radius: 1rem;
    padding: 0.55rem 0.8rem;
    min-width: 5.5rem;
}
.meta-row span { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.jump-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pill {
    display: inline-flex;
    text-decoration: none;
    color: var(--ink);
    background: white;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-weight: 800;
    border: 1px solid var(--line);
}
.recipe-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 1.2rem; align-items: start; }
.ingredient-card, .notes, .nutrition, .prose {
    background: white;
    border-radius: 1.4rem;
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow);
}
.ingredient-card { position: sticky; top: 5.4rem; background: #fff8ee; }
.card-head { display: flex; justify-content: space-between; gap: 0.6rem; align-items: center; }
.scaler { display: flex; align-items: center; gap: 0.4rem; }
.scaler button {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 0;
    background: var(--berry);
    color: white;
    font-weight: 800;
    cursor: pointer;
}
.ingredient-list { list-style: none; padding: 0; margin: 0.4rem 0 1rem; }
.ingredient-list li { border-bottom: 1px dashed var(--line); padding: 0.4rem 0; }
.ingredient-list label { display: flex; gap: 0.55rem; align-items: flex-start; }
.qty { font-weight: 800; }
.note { color: var(--muted); }
.step-list { padding-left: 1.2rem; }
.step-list li { margin: 0 0 0.8rem; }
.step-list li::marker { color: var(--berry); font-weight: 800; }
.nutrition ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.nutrition li { display: flex; justify-content: space-between; gap: 0.5rem; background: var(--paper); border-radius: 0.7rem; padding: 0.4rem 0.6rem; }
.prose a { color: var(--berry-deep); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.band-tight { padding-top: 0.2rem; }

.stack-form { display: grid; gap: 0.8rem; background: white; padding: 1.2rem; border-radius: 1.4rem; box-shadow: var(--shadow); }
.stack-form label { display: grid; gap: 0.3rem; font-weight: 700; }
.stack-form input, .stack-form textarea {
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 0.7rem 0.8rem;
    background: #fffaf6;
}
.optional { font-weight: 500; color: var(--muted); }
.honey { position: absolute; left: -9999px; }
.notice { background: #dff3e6; border-radius: 1rem; padding: 0.8rem 1rem; font-weight: 700; }
.notice-bad { background: #f8d5e0; }

.site-footer { margin-top: 2.5rem; background: #2a1410; color: #f8e7df; padding: 2.2rem 0 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.4rem; }
.site-footer h2 { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: #f2c14e; margin-bottom: 0.6rem; }
.footer-link, .brand-footer { color: #fff7f1; }
.footer-link { display: block; text-decoration: none; padding: 0.2rem 0; font-weight: 650; }
.footer-link:hover { color: #f2c14e; }
.footer-base { margin-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 0.8rem; color: #e7cbbf; font-size: 0.92rem; }
.legal p { font-size: 0.98rem; }

@media (max-width: 980px) {
    .hero-grid, .recipe-top-grid, .recipe-grid, .footer-grid { grid-template-columns: 1fr; }
    .mosaic-grid, .card-grid, .category-board, .related-grid, .hero-side { grid-template-columns: 1fr 1fr; }
    .ingredient-card { position: static; }
}
@media (max-width: 720px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff7f1;
        padding: 0.6rem 1rem 1rem;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
    }
    .site-nav.is-open { display: flex; }
    .mosaic-grid, .card-grid, .category-board, .related-grid, .hero-side, .nutrition ul { grid-template-columns: 1fr; }
    .search-hero { flex-direction: column; }
    .section-head { flex-direction: column; align-items: start; }
}
