:root {
    --ink: #24182f;
    --ink-soft: #5c4d68;
    --paper: #fff6ee;
    --card: #fffdfb;
    --line: rgba(36, 24, 47, 0.1);
    --tomato: #ff4d3a;
    --mango: #ffb000;
    --leaf: #14915f;
    --sea: #1f7aed;
    --berry: #e23e8c;
    --grape: #6d4aff;
    --shadow: 0 18px 40px rgba(70, 28, 18, 0.08);
    --display: "Bricolage Grotesque", "Avenir Next", sans-serif;
    --body: "Figtree", "Avenir Next", sans-serif;
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% -8%, #ffe1c4 0 16%, transparent 34%),
        radial-gradient(circle at 110% 0%, #ffd0e6 0 14%, transparent 32%),
        radial-gradient(circle at 90% 100%, #d9f6e6 0 16%, transparent 36%),
        var(--paper);
    font-family: var(--body);
    font-size: 1.05rem;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, .brand-name, .tile-name, .card-title {
    font-family: var(--display);
    letter-spacing: -0.03em;
    line-height: 1.05;
}
a { color: inherit; }
.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: 12px;
    top: 0;
    transform: translateY(-150%);
    background: var(--ink);
    color: white;
    padding: 8px 12px;
    border-radius: 999px;
    z-index: 30;
}
.skip:focus {
    position: fixed;
    top: 12px;
    transform: none;
}
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 246, 238, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--tomato), var(--mango), var(--leaf), var(--sea), var(--berry)) 1;
}
.header-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 76px;
}
.brand, .brand-footer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.35rem;
}
.mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--tomato);
    color: #fff4d2;
    box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.08);
}
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav-link, .footer-link, .text-link, .crumb, .chip, .jump, .pager-link, .card-title, .card-photo, .tile, .collage-main, .collage-mini {
    text-decoration: none;
}
.nav-link {
    padding: 8px 9px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--ink-soft);
    white-space: nowrap;
}
.nav-link.is-active, .nav-link:hover { background: white; color: var(--ink); }
.header-search { margin-left: auto; display: flex; background: white; border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
.header-search input, .hero-search input {
    border: 0;
    background: transparent;
    padding: 8px 14px;
    min-width: 0;
    width: 180px;
}
.header-search button, .hero-search button, .send {
    border: 0;
    background: var(--tomato);
    color: white;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    cursor: pointer;
}
.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: white;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
    padding: 42px 0 18px;
}
.eyebrow {
    display: inline-flex;
    margin: 0 0 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--tomato);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}
.hero h1, .page-head h1, .not-found h1, .recipe-copy h1 {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 800;
}
.hero-lead, .dek, .page-head p { color: var(--ink-soft); font-size: 1.15rem; }
.hero-search, .search-form {
    display: flex;
    gap: 8px;
    background: white;
    padding: 8px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    margin: 18px 0;
}
.hero-search input { width: 100%; }
.hero-stats { display: flex; gap: 18px; margin: 8px 0 0; }
.hero-stats div { background: white; border-radius: 18px; padding: 12px 16px; min-width: 110px; }
.hero-stats dt { color: var(--ink-soft); font-size: 0.85rem; }
.hero-stats dd { margin: 0; font-family: var(--display); font-size: 1.6rem; font-weight: 800; }
.hero-collage { display: grid; grid-template-columns: 1.3fr 0.8fr; gap: 12px; }
.collage-main, .collage-mini {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    border-radius: 28px;
    min-height: 180px;
    background: var(--tomato);
    color: white;
    box-shadow: var(--shadow);
}
.collage-main .plate, .collage-mini .plate { height: auto; padding-top: 18px; }
.collage-main .plate svg { width: 46%; }
.collage-mini .plate svg { width: 42%; }
.collage-main { min-height: 360px; align-items: flex-end; }
.collage-side { display: grid; gap: 12px; }
.collage-main img, .collage-mini img, .card-photo img, .recipe-visual img, .story-visual img { width: 100%; height: 100%; object-fit: cover; }
.collage-main::after, .collage-mini::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 52%;
    background: linear-gradient(transparent, rgba(28, 10, 18, 0.78));
}
.collage-main span, .collage-mini span {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    font-family: var(--display);
    font-weight: 800;
    line-height: 1.15;
}
.tone-tomato { --tone: var(--tomato); }
.tone-mango { --tone: var(--mango); }
.tone-leaf { --tone: var(--leaf); }
.tone-sea { --tone: var(--sea); }
.tone-berry { --tone: var(--berry); }
.tone-grape { --tone: var(--grape); }
.collage-mini, .card, .tile, .plate { background: var(--tone, var(--tomato)); }

.band, .page-section { padding: 18px 0 36px; }
.band-head, .page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.band-head h2, .recipe-method h2, .sheet-head h2 { margin: 0; font-size: 2rem; }
.band-follow { margin-top: 28px; }
.text-link { font-weight: 800; color: var(--sea); }
.tile-grid, .card-grid { display: grid; gap: 16px; }
.tile-grid { grid-template-columns: repeat(4, 1fr); }
.card-grid { grid-template-columns: repeat(4, 1fr); }
.tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    padding: 16px;
    border-radius: 24px;
    color: white;
    box-shadow: var(--shadow);
}
.tile-count { font-family: var(--display); font-size: 1.8rem; font-weight: 800; }
.tile-name { font-size: 1.25rem; font-weight: 800; }
.card {
    background: var(--card);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.card-photo {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--tone, var(--mango));
}
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.card-body h2 { margin: 0; font-size: 1.25rem; }
.card-body p { margin: 0; color: var(--ink-soft); }
.card-kicker, .tag-row, .jump-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .chip-static, .jump, .pager-link {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: #fff1e4;
    color: var(--ink);
    font-weight: 800;
    font-size: 0.82rem;
}
.chip-static { background: var(--tone, var(--berry)); color: white; }
.card-title:hover, .text-link:hover, .footer-link:hover { text-decoration: underline; }
.card-meta, .fine { color: var(--ink-soft); font-size: 0.92rem; }
.plate {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.92);
}
.plate svg { width: 58%; height: auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 12px; }
.crumb { font-weight: 700; }
.page-head { display: block; }
.page-head h1 { margin-bottom: 8px; }
.narrow { width: min(760px, calc(100% - 32px)); }
.empty { background: white; border-radius: 20px; padding: 18px; }

.recipe-hero, .story-visual { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center; }
.recipe-visual, .story-visual {
    border-radius: 32px;
    overflow: hidden;
    min-height: 320px;
    background: var(--tone, var(--tomato));
    box-shadow: var(--shadow);
}
.recipe-visual .plate, .card-photo .plate, .collage-main .plate, .collage-mini .plate { min-height: 180px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.meta-row div, .nutrition div {
    background: white;
    border-radius: 16px;
    padding: 10px 12px;
    min-width: 88px;
}
.meta-row dt, .nutrition dt { font-size: 0.78rem; color: var(--ink-soft); }
.meta-row dd, .nutrition dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.jump { background: var(--ink); color: white; }
.recipe-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; margin-top: 22px; }
.recipe-sheet {
    background: #fff4d6;
    border-radius: 28px;
    padding: 18px;
    box-shadow: var(--shadow);
    align-self: start;
    position: sticky;
    top: 92px;
}
.sheet-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.servings { display: inline-flex; align-items: center; gap: 8px; background: white; border-radius: 999px; padding: 4px; }
.servings button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: white;
    cursor: pointer;
    font-weight: 800;
}
.ingredient-list, .equipment-list, .step-list { list-style: none; padding: 0; margin: 0 0 16px; }
.ingredient-list li { border-bottom: 1px dashed rgba(36, 24, 47, 0.15); }
.ingredient-list label { display: flex; gap: 10px; padding: 9px 0; cursor: pointer; }
.ingredient-list input { margin-top: 6px; accent-color: var(--tomato); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin: 0 0 14px; }
.step p { margin: 0; }
.step-no {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--tomato);
    color: white;
    font-family: var(--display);
    font-weight: 800;
}
.note-box { background: #ffe8f3; border-radius: 24px; padding: 16px 18px; }
.nutrition { display: flex; flex-wrap: wrap; gap: 8px; }
.prose { font-size: 1.05rem; }
.prose h2, .prose h3 { margin: 1.4em 0 0.4em; }
.prose p, .prose ul, .prose ol { margin: 0.7em 0; }
.prose a { color: var(--sea); font-weight: 700; }
.prose img { border-radius: 22px; margin: 12px auto; }
.prose li img { width: min(180px, 100%); margin: 8px 0; }
.prose figure { margin: 16px 0; }
.story-visual { margin: 8px 0 18px; display: block; }
.story-visual img { width: 100%; max-height: 520px; object-fit: cover; }

.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pager-link.is-current { background: var(--ink); color: white; }
.form-card { display: grid; gap: 12px; background: white; padding: 18px; border-radius: 24px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin: 0; }
.field span { color: var(--ink-soft); font-weight: 500; }
.field input, .field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    background: #fffaf6;
}
.honeypot { position: absolute; left: -9999px; }
.alert { background: #ffe1dc; border-radius: 16px; padding: 12px 14px; }
.alert-good { background: #daf6e6; }
.send { justify-self: start; padding: 12px 18px; }
.not-found { padding-top: 48px; }

.site-footer { margin-top: 20px; background: var(--ink); color: #f6efe8; padding: 36px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 22px; }
.footer-grid h2 { margin: 0 0 8px; font-size: 1rem; }
.footer-grid a, .brand-footer { color: white; display: inline-flex; margin: 4px 0; }
.footer-grid p { color: #d9c9c2; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 18px; padding-top: 12px; color: #d9c9c2; }
.mark:empty { display: inline-block; }

@media (max-width: 980px) {
    .hero, .recipe-hero, .recipe-layout, .footer-grid, .tile-grid, .card-grid { grid-template-columns: 1fr 1fr; }
    .hero-collage { grid-template-columns: 1fr 1fr; }
    .collage-main { min-height: 240px; }
    .recipe-sheet { position: static; }
}
@media (max-width: 1080px) {
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; }
    .site-nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        background: white;
        padding: 12px;
        border-radius: 20px;
        box-shadow: var(--shadow);
    }
    .site-nav.is-open .header-search { margin-left: 0; width: 100%; }
    .site-nav.is-open .header-search input { width: 100%; }
    .header-bar { position: relative; }
}
@media (max-width: 760px) {
    .hero, .recipe-hero, .recipe-layout, .footer-grid, .tile-grid, .card-grid, .hero-collage, .collage-side { grid-template-columns: 1fr; }
    .hero-stats { flex-wrap: wrap; }
    .hero h1 { font-size: 3rem; }
}
@media print {
    .site-header, .site-footer, .jump-bar, .band, .header-search, .servings { display: none !important; }
    body { background: white; }
    .recipe-sheet { position: static; box-shadow: none; }
}
