:root {
    --ink: #24130f;
    --ink-soft: #5c463c;
    --paper: #fff6ee;
    --card: #fffdfb;
    --paprika: #e23b2f;
    --marigold: #ffb000;
    --leaf: #1f8a5b;
    --berry: #c23b73;
    --cobalt: #2f6fed;
    --plum: #6d28d9;
    --line: rgba(36, 19, 15, 0.12);
    --shadow: 0 18px 40px rgba(36, 19, 15, 0.12);
    --serif: "Fraunces", Georgia, serif;
    --sans: "Outfit", "Avenir Next", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    font-family: var(--sans);
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 176, 0, 0.45), transparent 26%),
        radial-gradient(circle at 96% 8%, rgba(226, 59, 47, 0.28), transparent 24%),
        radial-gradient(circle at 80% 40%, rgba(31, 138, 91, 0.16), transparent 22%),
        var(--paper);
    line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.05; letter-spacing: -0.03em; }
h1 { font-size: clamp(3rem, 7vw, 6.2rem); margin: 0.15em 0; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0; }
p { margin: 0 0 0.8rem; }
.wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 2rem)); }
.sr-only, .hp {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--ink);
    color: white;
    padding: 0.5rem 0.8rem;
    z-index: 20;
}
.skip:focus { top: 0.5rem; }

.color-rail { height: 8px; background: linear-gradient(90deg, var(--paprika), var(--marigold), var(--leaf), var(--cobalt), var(--berry), var(--plum)); }
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 246, 238, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 0.75rem 1rem; min-height: 64px; flex-wrap: nowrap; padding: 0.4rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.45rem; }
.mark { width: 28px; height: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.mark i { display: block; border-radius: 50%; }
.mark i:nth-child(1) { background: var(--paprika); }
.mark i:nth-child(2) { background: var(--marigold); }
.mark i:nth-child(3) { background: var(--leaf); }
.mark i:nth-child(4) { background: var(--cobalt); }
.site-nav { display: flex; gap: 0.15rem; flex-wrap: nowrap; flex: 1; min-width: 0; overflow-x: auto; }
.site-nav a { text-decoration: none; padding: 0.28rem 0.5rem; border-radius: 999px; font-weight: 600; font-size: 0.82rem; white-space: nowrap; }
.site-nav a:hover, .site-nav a.is-active { background: var(--ink); color: white; }
.nav-toggle { display: none; border: 0; background: var(--ink); color: white; border-radius: 999px; padding: 0.45rem 0.8rem; font: inherit; }
.header-search { margin-left: auto; display: flex; background: white; border-radius: 999px; border: 1px solid var(--line); overflow: hidden; flex: 0 0 auto; }
.header-search input { border: 0; padding: 0.55rem 0.9rem; font: inherit; width: 168px; background: transparent; }
.header-search button { flex: 0 0 auto; white-space: nowrap; }
.header-search button, .hero-search button, .contact-form button, .button {
    border: 0; background: var(--paprika); color: white; font: inherit; font-weight: 700; padding: 0.6rem 0.95rem; cursor: pointer; text-decoration: none;
}
.button { display: inline-block; border-radius: 999px; margin: 0.4rem 0.4rem 0.4rem 0; }
.button-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

.hero { padding: 2.5rem 0 1rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1.5rem; align-items: start; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 700; color: var(--paprika); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 42rem; }
.hero-search { display: flex; gap: 0.5rem; margin: 1.2rem 0; }
.hero-search input, .contact-form input, .contact-form textarea {
    flex: 1; border: 2px solid var(--ink); border-radius: 16px; padding: 0.85rem 1rem; font: inherit; background: white;
}
.hero-search button { border-radius: 16px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pill { text-decoration: none; background: white; border-radius: 999px; padding: 0.4rem 0.75rem; font-weight: 700; box-shadow: inset 0 0 0 2px var(--line); }
.pill:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.hero-stage { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0.75rem; align-items: stretch; }
.hero-feature, .hero-mini {
    display: flex; text-decoration: none; overflow: hidden; color: var(--ink); background: white;
    border-radius: 22px; box-shadow: var(--shadow);
}
.hero-feature { flex-direction: column; }
.hero-frame { display: block; background: linear-gradient(160deg, #ffd7a8, #ff8b7a 50%, #7dcea0); overflow: hidden; }
.hero-feature .hero-frame { height: 250px; }
.hero-frame img, .hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.hero-caption { display: block; padding: 0.85rem 1rem 1rem; }
.hero-feature small { display: block; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; font-weight: 700; color: var(--paprika); }
.hero-feature strong {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
    margin-top: 0.2rem; font-family: var(--serif); font-size: 1.45rem; font-weight: 650; line-height: 1.15;
}
.hero-side { display: grid; gap: 0.65rem; }
.hero-mini { align-items: center; min-height: 0; }
.hero-mini .hero-frame { width: 108px; height: 84px; flex: none; }
.hero-mini .hero-caption {
    font-weight: 650; font-size: 0.98rem; line-height: 1.25; padding: 0.55rem 0.8rem;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}

.band { padding: 1.4rem 0 2rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.section-head a { font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
    display: flex; flex-direction: column; text-decoration: none; background: var(--card);
    border-radius: 24px; overflow: hidden; min-height: 100%;
    box-shadow: var(--shadow); border-top: 8px solid var(--paprika);
}
.card.tone-marigold { border-top-color: var(--marigold); }
.card.tone-leaf { border-top-color: var(--leaf); }
.card.tone-berry { border-top-color: var(--berry); }
.card.tone-cobalt { border-top-color: var(--cobalt); }
.card.tone-plum { border-top-color: var(--plum); }
.card img, .card-fallback { aspect-ratio: 4 / 5; background: linear-gradient(135deg, #ffd7a8, #ff8b7a 45%, #7dcea0); }
.card-body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.card h3 { font-size: 1.25rem; margin: 0; }
.card-meta { color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.card:hover { transform: translateY(-4px); }

.crumbs { color: var(--ink-soft); font-size: 0.92rem; }
.crumbs a { color: var(--ink); font-weight: 700; }
.recipe-head { display: grid; grid-template-columns: 1fr 0.9fr; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; }
.hero-photo { margin: 0; border-radius: 32px; overflow: hidden; background: #f3d7c3; min-height: 280px; }
.hero-photo img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; list-style: none; }
.facts li { background: white; border-radius: 18px; padding: 0.55rem 0.75rem; min-width: 88px; box-shadow: inset 0 0 0 2px var(--line); }
.facts span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.meta { color: var(--ink-soft); }
.recipe-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 390px); gap: 1.5rem; align-items: start; }
.prose h2, .prose-page h2 { margin: 1.4rem 0 0.4rem; font-size: 1.8rem; }
.prose h3, .prose-page h3 { margin: 1rem 0 0.3rem; }
.inline-photo { margin: 1rem 0; border-radius: 24px; overflow: hidden; }
.faq { background: white; border-radius: 16px; padding: 0.7rem 0.9rem; margin: 0.5rem 0; }
.recipe-card {
    position: sticky; top: 92px; background: white; border-radius: 28px; padding: 1.1rem 1.15rem 1.3rem;
    box-shadow: var(--shadow); border: 3px solid var(--ink);
}
.recipe-card + .recipe-card { margin-top: 1rem; }
.recipe-card h2 { font-size: 1.8rem; }
.recipe-card h3 { margin: 1rem 0 0.4rem; font-size: 1.25rem; }
.ingredients, .steps, .nutrition { padding-left: 0; list-style: none; }
.ingredients li { margin: 0.35rem 0; }
.ingredients label { display: flex; gap: 0.55rem; align-items: flex-start; }
.ingredients input { margin-top: 0.3rem; accent-color: var(--paprika); }
.ingredients .is-done span { text-decoration: line-through; color: var(--ink-soft); }
.steps { counter-reset: step; }
.steps li { counter-increment: step; margin: 0.8rem 0; padding-left: 2.6rem; position: relative; }
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%;
    display: grid; place-items: center; color: white; font-weight: 700; background: var(--paprika);
}
.steps li:nth-child(3n + 2)::before { background: var(--marigold); color: var(--ink); }
.steps li:nth-child(3n)::before { background: var(--leaf); }
.nutrition { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.nutrition li { background: var(--paper); border-radius: 12px; padding: 0.45rem 0.6rem; display: flex; justify-content: space-between; gap: 0.4rem; }
.related { margin-top: 2.5rem; }
.cat-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.7rem; }
.cat-tile { display: flex; flex-direction: column; text-decoration: none; background: white; border-radius: 20px; padding: 1rem; min-height: 110px; box-shadow: var(--shadow); }
.cat-tile:nth-child(6n + 1) { background: #ffe8e4; }
.cat-tile:nth-child(6n + 2) { background: #fff1cc; }
.cat-tile:nth-child(6n + 3) { background: #e5f6ee; }
.cat-tile:nth-child(6n + 4) { background: #e7eeff; }
.cat-tile:nth-child(6n + 5) { background: #fde7f1; }
.cat-tile:nth-child(6n) { background: #efe6ff; }
.cat-tile span { color: var(--ink-soft); margin-top: auto; }
.pager { display: flex; gap: 1rem; align-items: center; margin-top: 1.4rem; }
.pager a { font-weight: 700; }
.contact-form { display: grid; gap: 0.8rem; }
.contact-form label { display: grid; gap: 0.3rem; font-weight: 700; }
.notice { background: #e5f6ee; border-radius: 16px; padding: 0.8rem 1rem; }
.notice-bad { background: #ffe8e4; }
.empty { color: var(--ink-soft); }
.site-footer { margin-top: 2rem; background: var(--ink); color: #fff6ee; padding: 2.5rem 0 1.2rem; }
.site-footer a { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.footer-grid h2 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.footer-grid a { display: block; text-decoration: none; margin: 0.25rem 0; }
.footer-base { margin-top: 1.5rem; color: rgba(255,246,238,.72); }
.brand-footer { color: white; }

@media (max-width: 980px) {
    .hero-grid, .recipe-head, .recipe-layout, .footer-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-feature .hero-frame { height: 200px; }
    .hero-mini .hero-frame { width: 92px; height: 72px; }
    .recipe-card { position: static; }
    .header-search { display: none; }
}
@media (max-width: 720px) {
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--paper); padding: 0.8rem 1rem 1rem; border-bottom: 1px solid var(--line); overflow: visible; }
    .site-nav.is-open { display: grid; }
    .site-nav.is-open a { white-space: normal; }
    .card-grid, .hero-stage { grid-template-columns: 1fr; }
    h1 { font-size: 2.7rem; }
}
