:root {
    --bg: #faf8f3;
    --surface: #ffffff;
    --surface-soft: #f1eee7;
    --text: #1f2933;
    --muted: #6b7280;
    --border: #e8e2d8;
    --accent: #4f7f52;
    --accent-dark: #355c39;
    --danger: #b42318;
    --success: #267447;
    --warning: #b7791f;
    --shadow: 0 18px 45px rgba(31, 41, 51, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(250, 248, 243, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo strong {
    font-size: 22px;
    letter-spacing: -0.04em;
}

.logo span {
    font-size: 13px;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
    color: var(--muted);
}

.nav a:hover,
.nav a.active {
    color: var(--text);
}

.front-hero {
    padding: 40px 0 22px;
}

.front-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
    gap: 28px;
    align-items: stretch;
}

.front-hero-copy {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 34px;
    padding: 36px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-soft);
    color: var(--accent-dark);
    border-radius: 999px;
    padding: 7px 13px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 16px;
    width: fit-content;
}

h1, h2, h3 {
    line-height: 1.12;
    letter-spacing: -0.045em;
    margin: 0 0 14px;
}

h1 {
    font-size: clamp(38px, 5.2vw, 62px);
}

h2 {
    font-size: clamp(28px, 4vw, 42px);
}

h3 {
    font-size: 22px;
}

.lead {
    color: var(--muted);
    font-size: 17px;
    max-width: 680px;
    margin: 0 0 24px;
}

.search-box {
    display: flex;
    gap: 10px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px;
    max-width: 620px;
}

.search-box input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 12px 14px;
    font: inherit;
    outline: none;
    min-width: 0;
}

.btn {
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font-weight: 800;
    padding: 12px 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    background: var(--accent-dark);
}

.btn-secondary {
    background: var(--surface-soft);
    color: var(--text);
}

.front-quick-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.front-quick-points span {
    display: inline-flex;
    border-radius: 999px;
    background: #f7f3eb;
    color: var(--muted);
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 800;
}

.front-hero-recipes {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
}

.hero-recipe-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(31, 41, 51, 0.06);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    min-height: 0;
}

.hero-recipe-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-recipe-card.is-large {
    grid-row: span 2;
}

.hero-recipe-image {
    height: 160px;
    background:
        linear-gradient(135deg, rgba(79, 127, 82, 0.15), rgba(255, 255, 255, 0.4)),
        var(--surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    overflow: hidden;
}

.hero-recipe-card.is-large .hero-recipe-image {
    height: 265px;
}

.hero-recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-recipe-content {
    padding: 15px;
}

.hero-recipe-content strong {
    display: block;
    font-size: 18px;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.hero-empty-card {
    grid-column: 1 / -1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 28px;
    color: var(--muted);
}

.hero-empty-card strong {
    display: block;
    color: var(--text);
    font-size: 22px;
    margin-bottom: 6px;
}

.ad-container-front .ad-slot {
    margin: 18px 0 22px;
}

.section {
    padding: 34px 0;
}

.front-section-tight {
    padding-top: 18px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-card strong {
    display: block;
    margin-bottom: 4px;
}

.category-card span {
    color: var(--muted);
    font-size: 14px;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.recipe-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.recipe-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.recipe-image {
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(135deg, rgba(79, 127, 82, 0.15), rgba(255, 255, 255, 0.4)),
        var(--surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 14px;
    overflow: hidden;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-content {
    padding: 18px;
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
}

.recipe-content p {
    color: var(--muted);
    margin: 0;
}

.ad-slot {
    min-height: 96px;
    margin: 28px 0;
    background:
        repeating-linear-gradient(
            45deg,
            #f3efe7,
            #f3efe7 10px,
            #ede6dc 10px,
            #ede6dc 20px
        );
    border: 1px dashed #d6cabb;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a7a68;
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
}

.ad-slot ins {
    max-width: 100%;
}

.site-footer {
    margin-top: 50px;
    border-top: 1px solid var(--border);
    padding: 34px 0;
    color: var(--muted);
    font-size: 14px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a:hover {
    color: var(--text);
}

.empty-state {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    color: var(--muted);
}

/* Standard content pages */

.page-hero {
    padding: 54px 0 24px;
}

.page-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 34px;
    padding: 42px;
    box-shadow: var(--shadow);
}

.page-card h1 {
    margin-bottom: 14px;
}

.page-card p {
    color: var(--muted);
    font-size: 18px;
    margin: 0;
    max-width: 760px;
}

.content-wrap {
    width: min(880px, calc(100% - 32px));
    margin: 0 auto;
}

.text-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin: 22px 0;
}

.text-panel h2 {
    font-size: 30px;
    margin-top: 6px;
}

.text-panel h3 {
    margin-top: 26px;
}

.text-panel p,
.text-panel li {
    color: var(--muted);
}

.text-panel a {
    color: var(--accent-dark);
    font-weight: 800;
}

.text-panel ul {
    padding-left: 22px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-box {
    background: var(--surface-soft);
    border-radius: 18px;
    padding: 22px;
}

.contact-box strong {
    display: block;
    margin-bottom: 5px;
}

.contact-box span {
    color: var(--muted);
}

.notice {
    background: #fff7e6;
    color: #7a4d00;
    border: 1px solid #f4d28c;
    border-radius: 18px;
    padding: 16px;
    font-weight: 700;
}

/* Recipe page helpers */

.recipe-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.recipe-main,
.recipe-sidebar {
    min-width: 0;
}

.recipe-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 34px;
    padding: 34px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.breadcrumb {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--accent-dark);
    font-weight: 800;
}

.recipe-hero h1 {
    margin-bottom: 16px;
}

.recipe-hero p {
    color: var(--muted);
    font-size: 18px;
    margin: 0 0 18px;
}

.recipe-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.jump-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 20px;
}

.content-card h2 {
    font-size: 30px;
    margin-bottom: 18px;
}

.ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.ingredients-list li {
    background: var(--surface-soft);
    border-radius: 14px;
    padding: 11px 13px;
}

.steps-list {
    counter-reset: steps;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.steps-list li {
    counter-increment: steps;
    background: var(--surface-soft);
    border-radius: 16px;
    padding: 15px 15px 15px 54px;
    position: relative;
}

.steps-list li::before {
    content: counter(steps);
    position: absolute;
    left: 14px;
    top: 13px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.recipe-sidebar {
    position: sticky;
    top: 92px;
}

.side-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 18px;
}

.side-panel h3 {
    margin-bottom: 12px;
}

.mini-list {
    display: grid;
    gap: 12px;
}

.mini-list a {
    background: var(--surface-soft);
    border-radius: 14px;
    padding: 13px;
    font-weight: 800;
}

.print-hide {
    display: inline-flex;
}

@media (max-width: 1080px) {
    .front-hero-grid {
        grid-template-columns: 1fr;
    }

    .front-hero-recipes {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
    }

    .hero-recipe-card.is-large {
        grid-row: auto;
    }

    .hero-recipe-card.is-large .hero-recipe-image,
    .hero-recipe-image {
        height: 180px;
    }
}

@media (max-width: 980px) {
    .recipe-layout {
        grid-template-columns: 1fr;
    }

    .recipe-sidebar {
        position: static;
    }
}

@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .front-hero-recipes {
        grid-template-columns: 1fr;
    }

    .hero-recipe-card {
        display: grid;
        grid-template-columns: 120px 1fr;
    }

    .hero-recipe-card.is-large {
        display: grid;
    }

    .hero-recipe-card.is-large .hero-recipe-image,
    .hero-recipe-image {
        height: 100%;
        min-height: 120px;
    }
}

@media (max-width: 640px) {
    .container,
    .content-wrap {
        width: min(100% - 22px, 1120px);
    }

    .front-hero {
        padding-top: 24px;
    }

    .front-hero-copy,
    .page-card,
    .recipe-hero {
        padding: 26px;
        border-radius: 26px;
    }

    .text-panel,
    .content-card {
        padding: 22px;
    }

    .search-box {
        border-radius: 22px;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .category-grid,
    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }

    .section-head .btn {
        margin-top: 14px;
    }

    .footer-inner {
        display: block;
    }

    .footer-links {
        margin-top: 12px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-recipe-card,
    .hero-recipe-card.is-large {
        display: block;
    }

    .hero-recipe-card.is-large .hero-recipe-image,
    .hero-recipe-image {
        height: 165px;
    }
}

@media print {
    .site-header,
    .site-footer,
    .ad-slot,
    .recipe-sidebar,
    .print-hide,
    .jump-box {
        display: none !important;
    }

    body {
        background: white;
    }

    .container {
        width: 100%;
    }

    .recipe-hero,
    .content-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}