:root {
    --ink: #241610;
    --ink-soft: #5c463c;
    --paper: #fff6ec;
    --white: #fffdf9;
    --chili: #e23b2f;
    --chili-deep: #b42318;
    --yolk: #ffb000;
    --herb: #1f7a4d;
    --sea: #0f766e;
    --berry: #c0266a;
    --grape: #6d28d9;
    --butter: #ffe08a;
    --line: rgba(36, 22, 16, 0.12);
    --shadow: 0 18px 40px rgba(80, 28, 12, 0.12);
    --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
    --sans: "Manrope", "Avenir Next", sans-serif;
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(255, 176, 0, 0.35), transparent 60%),
        radial-gradient(700px 380px at -10% 8%, rgba(226, 59, 47, 0.18), transparent 55%),
        var(--paper);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.1rem); margin: 0.2em 0; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0; }
p { margin: 0.6em 0; }
a { color: inherit; }

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--ink);
    color: white;
    padding: 0.5rem 0.8rem;
    z-index: 20;
}
.skip:focus { top: 0.6rem; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.wrap { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; }
.honeypot { position: absolute; left: -9999px; }

.mast {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 246, 236, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 4px solid var(--chili);
}
.mast-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 78px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}
.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--chili), #ff7a45);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 16px rgba(226, 59, 47, 0.28);
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--serif); font-size: 1.7rem; }
.brand-text em { font-style: normal; color: var(--ink-soft); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.nav-toggle {
    margin-left: auto;
    border: 2px solid var(--ink);
    background: white;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-weight: 800;
    display: none;
}
.site-nav { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.nav-link {
    text-decoration: none;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}
.nav-link.is-active, .nav-link:hover { background: var(--ink); color: white; }
.header-search { display: flex; margin-left: 0.4rem; }
.header-search input, .hero-search input, .form-card input, .form-card textarea {
    border: 2px solid var(--ink);
    background: white;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
}
.header-search input { width: 8.2rem; border-right: 0; border-radius: 999px 0 0 999px; }
.header-search button, .hero-search button, .send {
    border: 2px solid var(--ink);
    background: var(--chili);
    color: white;
    font-weight: 800;
    cursor: pointer;
}
.header-search button { border-radius: 0 999px 999px 0; padding: 0.55rem 0.7rem; white-space: nowrap; }

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2.4rem 0 1.4rem;
}
.eyebrow {
    display: inline-block;
    margin: 0;
    background: var(--yolk);
    color: var(--ink);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
}
.hero-lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 38rem; }
.hero-search { display: flex; gap: 0.5rem; margin-top: 1rem; }
.hero-search input { flex: 1; border-radius: 16px; }
.hero-search button { border-radius: 16px; padding: 0.7rem 1rem; }
.hero-stats { display: flex; gap: 1.2rem; margin: 1.3rem 0 0; }
.hero-stats div { background: white; border: 2px solid var(--ink); border-radius: 16px; padding: 0.6rem 0.9rem; min-width: 6.2rem; }
.hero-stats dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.hero-stats dd { margin: 0; font-family: var(--serif); font-size: 1.7rem; font-weight: 700; }
.hero-stage { position: relative; }
.hero-plate {
    display: block;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    border: 3px solid var(--ink);
    box-shadow: var(--shadow);
    min-height: 360px;
    background: white;
    text-decoration: none;
}
.hero-plate img { width: 100%; height: 460px; object-fit: cover; }
.hero-ticket {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 18px;
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    transform: rotate(-1.5deg);
}
.hero-ticket small { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--chili-deep); }
.hero-ticket strong { font-family: var(--serif); font-size: 1.35rem; }

.ribbon { overflow: hidden; border-block: 2px solid var(--ink); background: var(--ink); color: white; margin: 0.4rem 0 0.2rem; }
.ribbon-track { display: flex; gap: 1.5rem; width: max-content; animation: march 28s linear infinite; padding: 0.55rem 0; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ribbon-track span:nth-child(4n + 1) { color: var(--yolk); }
.ribbon-track span:nth-child(4n + 2) { color: #ffd0c8; }
.ribbon-track span:nth-child(4n + 3) { color: #b7f3d0; }
.ribbon-track span:nth-child(4n) { color: #f9a8d4; }
@keyframes march { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.band { padding: 2.2rem 0 0.4rem; }
.band-last { padding-bottom: 3rem; }
.band-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.band-head p { margin: 0; color: var(--ink-soft); }
.band-follow { margin-top: 2rem; }
.text-link { font-weight: 800; color: var(--chili-deep); }

.card-grid, .tile-grid { display: grid; gap: 1rem; }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.tile-grid { grid-template-columns: repeat(4, 1fr); }
.tile-grid-home { grid-template-columns: repeat(4, 1fr); }
.card {
    background: white;
    border: 2px solid var(--ink);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 6px 6px 0 rgba(36, 22, 16, 0.08);
}
.card-photo { display: block; aspect-ratio: 4 / 3; background: #fff1d8; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card:hover .card-photo img { transform: scale(1.05); }
.card-body { padding: 0.9rem 1rem 1.1rem; }
.card-kicker { display: flex; flex-wrap: wrap; gap: 0.35rem; min-height: 1.6rem; }
.card h2 { font-size: 1.35rem; margin: 0.35rem 0; }
.card-title { text-decoration: none; }
.card-title:hover { color: var(--chili-deep); }
.card-body p { color: var(--ink-soft); font-size: 0.95rem; }
.card-meta { color: var(--ink-soft); font-size: 0.85rem; font-weight: 700; }
.chip, .chip-static {
    display: inline-block;
    text-decoration: none;
    background: var(--butter);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 800;
}
.tone-chili { --tone: var(--chili); }
.tone-yolk { --tone: var(--yolk); }
.tone-herb { --tone: var(--herb); }
.tone-sea { --tone: var(--sea); }
.tone-berry { --tone: var(--berry); }
.tone-grape { --tone: var(--grape); }
.tone-butter { --tone: #e0a100; }
.card.tone-chili { box-shadow: 6px 6px 0 rgba(226, 59, 47, 0.18); }
.card.tone-yolk { box-shadow: 6px 6px 0 rgba(255, 176, 0, 0.28); }
.card.tone-herb { box-shadow: 6px 6px 0 rgba(31, 122, 77, 0.18); }
.card.tone-berry { box-shadow: 6px 6px 0 rgba(192, 38, 106, 0.18); }
.card.tone-sea { box-shadow: 6px 6px 0 rgba(15, 118, 110, 0.18); }
.card.tone-grape { box-shadow: 6px 6px 0 rgba(109, 40, 217, 0.16); }
.card { border-top: 7px solid var(--tone, var(--chili)); }

.tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    padding: 1rem;
    text-decoration: none;
    border-radius: 20px;
    border: 2px solid var(--ink);
    background: white;
    background-image: linear-gradient(160deg, var(--tone, var(--yolk)) 0 10px, white 10px);
}
.tile-count { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; }
.tile-name { font-weight: 800; }

.page-section { padding: 1.6rem 0 3rem; }
.page-head { max-width: 46rem; margin-bottom: 1.2rem; }
.page-head p { color: var(--ink-soft); font-size: 1.1rem; }
.narrow { max-width: 820px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.88rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 0.8rem; }
.crumbs a { color: var(--chili-deep); text-decoration: none; }
.crumbs span[aria-current="page"] { color: var(--ink); }

.recipe-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1.5rem; align-items: center; }
.recipe-visual { border-radius: 28px; overflow: hidden; border: 3px solid var(--ink); background: white; min-height: 280px; }
.recipe-visual img { width: 100%; height: 420px; object-fit: cover; }
.dek { font-size: 1.15rem; color: var(--ink-soft); }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.meta-row div { background: white; border: 2px solid var(--line); border-radius: 14px; padding: 0.45rem 0.7rem; min-width: 5.5rem; }
.meta-row dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.meta-row dd { margin: 0; font-weight: 800; }
.jump-bar { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.jump { text-decoration: none; background: var(--ink); color: white; border-radius: 999px; padding: 0.35rem 0.75rem; font-weight: 800; font-size: 0.88rem; }
.recipe-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.2rem; margin-top: 1.4rem; align-items: start; }
.recipe-sheet {
    background: #fffaf0;
    border: 2px dashed var(--ink);
    border-radius: 24px;
    padding: 1rem 1.1rem 1.3rem;
    position: sticky;
    top: 96px;
}
.sheet-head { display: flex; justify-content: space-between; gap: 0.6rem; align-items: center; }
.servings { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
.servings button { width: 2rem; height: 2rem; border-radius: 999px; border: 2px solid var(--ink); background: white; font-weight: 800; cursor: pointer; }
.ingredient-list, .equipment-list { list-style: none; padding: 0; margin: 0.4rem 0 1rem; }
.ingredient-list li { border-bottom: 1px solid var(--line); padding: 0.35rem 0; }
.ingredient-list label { display: flex; gap: 0.45rem; align-items: flex-start; }
.step-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; margin: 0.8rem 0; }
.step-no {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--chili);
    color: white;
    font-weight: 800;
}
.note-box { background: #fff4cc; border: 2px solid var(--ink); border-radius: 18px; padding: 0.8rem 1rem; }
.nutrition { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.nutrition div { background: white; border-radius: 12px; padding: 0.5rem 0.6rem; border: 1px solid var(--line); }
.nutrition dt { font-size: 0.75rem; color: var(--ink-soft); }
.nutrition dd { margin: 0; font-weight: 800; }
.fine { color: var(--ink-soft); font-size: 0.88rem; }
.tag-row { margin-top: 1.2rem; }
.prose { font-size: 1.08rem; }
.prose h2, .prose h3 { margin-top: 1.3em; }
.prose img { border-radius: 18px; margin: 1rem 0; border: 2px solid var(--ink); }
.prose a { color: var(--chili-deep); font-weight: 700; }
.story-visual img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 24px; border: 3px solid var(--ink); margin-bottom: 1rem; }
.salt-fallback { min-height: 180px; display: grid; place-items: center; background: linear-gradient(160deg, var(--butter), white); }
.salt-fallback .brand-mark { width: 72px; height: 72px; }

.pager { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.4rem; }
.pager-link {
    min-width: 2.5rem;
    text-align: center;
    text-decoration: none;
    border: 2px solid var(--ink);
    border-radius: 12px;
    padding: 0.35rem 0.6rem;
    font-weight: 800;
    background: white;
}
.pager-link.is-current { background: var(--ink); color: white; }
.empty { background: white; border-radius: 16px; padding: 1rem; border: 2px dashed var(--ink); }

.form-card { display: grid; gap: 0.8rem; background: white; border: 2px solid var(--ink); border-radius: 22px; padding: 1rem; }
.field { display: grid; gap: 0.25rem; margin: 0; }
.field span { color: var(--ink-soft); font-weight: 600; }
.form-card input, .form-card textarea { border-radius: 14px; width: 100%; }
.send { justify-self: start; border-radius: 999px; padding: 0.7rem 1.2rem; }
.alert { background: #ffe1dc; border-radius: 12px; padding: 0.7rem 0.9rem; }
.alert-good { background: #d9f5e5; }

.site-footer { background: #2a160f; color: #fff4ea; margin-top: 2rem; padding: 2.4rem 0 1rem; }
.site-footer a { color: #fff4ea; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.4rem; }
.footer-grid h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-link, .site-footer .brand { display: block; text-decoration: none; margin: 0.25rem 0; font-weight: 700; }
.brand-footer { display: flex; align-items: center; gap: 0.5rem; font-family: var(--serif); font-size: 1.6rem; }
.footer-base { border-top: 1px solid rgba(255, 244, 234, 0.2); margin-top: 1.4rem; padding-top: 0.8rem; color: #f0d2c4; }

@media (max-width: 980px) {
    .hero, .recipe-hero, .recipe-layout, .footer-grid { grid-template-columns: 1fr; }
    .card-grid, .tile-grid, .tile-grid-home { grid-template-columns: 1fr 1fr; }
    .recipe-sheet { position: static; }
    .hero-plate img, .recipe-visual img { height: 320px; }
}
@media (max-width: 760px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 82px;
        background: var(--paper);
        border-bottom: 4px solid var(--chili);
        padding: 0.8rem 1rem 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    .site-nav.is-open { display: flex; }
    .header-search { margin: 0.4rem 0 0; }
    .header-search input { width: 1%; flex: 1; }
    .card-grid, .tile-grid, .tile-grid-home, .nutrition { grid-template-columns: 1fr; }
    .hero-stats { flex-wrap: wrap; }
    h1 { font-size: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ribbon-track { animation: none; }
    .card-photo img { transition: none; }
}
