:root {
    --ink: #1f2a1f;
    --paper: #f9f4ea;
    --sage: #d8e3cf;
    --tomato: #d85232;
    --gold: #f0b539;
    --pine: #30513a;
    --card: #fffdf8;
    --shadow: 0 14px 40px rgba(53, 41, 24, 0.14);
    --radius-lg: 24px;
    --radius-md: 14px;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 20% 5%, #fff3d9, transparent 42%),
                radial-gradient(circle at 88% 18%, #dcead4, transparent 36%),
                var(--paper);
    color: var(--ink);
    font-family: "Manrope", "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 20px 44px;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    animation: rise 0.7s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(46, 64, 45, 0.12);
    border-radius: 999px;
    backdrop-filter: blur(7px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--tomato), #be421f);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(216, 82, 50, 0.35);
}

.topnav {
    display: flex;
    gap: 18px;
    font-weight: 600;
    font-size: 0.94rem;
}

.topnav a {
    opacity: 0.84;
    transition: opacity 0.2s ease;
}

.topnav a:hover {
    opacity: 1;
}

.top-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--pine);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.hero {
    margin-top: 22px;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(130deg, #fef8ed 10%, #f8ecd2 70%);
    box-shadow: var(--shadow);
    display: grid;
    gap: 22px;
    grid-template-columns: 1.2fr 1fr;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: rgba(240, 181, 57, 0.22);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #8a5d1f;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    background: rgba(240, 181, 57, 0.18);
    padding: 6px 12px;
    border-radius: 999px;
}

h1 {
    font-family: "Fraunces", Georgia, serif;
    line-height: 1.02;
    margin: 14px 0;
    font-size: clamp(2.3rem, 6vw, 4.2rem);
    max-width: 20ch;
}

.hero p {
    margin: 0 0 20px;
    font-size: 1.05rem;
    max-width: 54ch;
    color: rgba(31, 42, 31, 0.84);
}

.search {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 999px;
    padding: 8px;
    gap: 8px;
    box-shadow: inset 0 0 0 1px rgba(31, 42, 31, 0.09);
    max-width: 560px;
}

.search input {
    flex: 1 1 260px;
    border: 0;
    background: transparent;
    padding: 0 12px;
    font-size: 0.98rem;
    min-height: 42px;
    outline: none;
}

.search button {
    border: 0;
    border-radius: 999px;
    background: var(--tomato);
    color: #fff;
    font-weight: 700;
    padding: 0 20px;
    min-height: 42px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search button:hover {
    transform: translateY(-1px);
}

.search-results {
    max-width: 560px;
    margin-top: 10px;
    background: #fff;
    border: 1px solid rgba(48, 81, 58, 0.16);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 10px 24px rgba(66, 52, 31, 0.1);
}

.search-result-item {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
}

.search-result-item:hover {
    background: #f5f8f2;
}

.search-result-item strong {
    display: block;
    font-size: 0.95rem;
}

.search-result-item span {
    display: block;
    margin-top: 3px;
    font-size: 0.84rem;
    color: rgba(31, 42, 31, 0.72);
}

.search-empty {
    margin: 4px;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: rgba(31, 42, 31, 0.75);
}

.hero-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(48, 81, 58, 0.14);
    position: relative;
    z-index: 2;
}

.hero-card h2 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.6rem;
}

.meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0 12px;
}

.meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4e8;
    font-size: 0.8rem;
    font-weight: 700;
    color: #406146;
}

.hero-card ul {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.hero-card li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px dashed rgba(64, 97, 70, 0.2);
    padding-bottom: 8px;
    font-size: 0.92rem;
}

.section-head {
    margin: 34px 0 14px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.section-head h3 {
    margin: 0;
    font-size: 1.7rem;
    font-family: "Fraunces", Georgia, serif;
}

.section-head p {
    margin: 0;
    color: rgba(31, 42, 31, 0.72);
    font-size: 0.95rem;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.recipe {
    background: var(--card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(48, 81, 58, 0.14);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(66, 52, 31, 0.08);
}

.recipe-link {
    display: block;
    height: 100%;
    transition: transform 0.2s ease;
}

.recipe-link:hover {
    transform: translateY(-3px);
}

.recipe-banner {
    height: 128px;
    background-size: cover;
    background-position: center;
}

.recipe:nth-child(1) .recipe-banner {
    background-image: linear-gradient(120deg, #c5e0b7, #7fb087);
}

.recipe:nth-child(2) .recipe-banner {
    background-image: linear-gradient(120deg, #f4c68b, #d88c43);
}

.recipe:nth-child(3) .recipe-banner {
    background-image: linear-gradient(120deg, #f3b99f, #cb6a51);
}

.recipe-banner.banner-green {
    background-image: linear-gradient(120deg, #c5e0b7, #7fb087);
}

.recipe-banner.banner-amber {
    background-image: linear-gradient(120deg, #f4c68b, #d88c43);
}

.recipe-banner.banner-red {
    background-image: linear-gradient(120deg, #f3b99f, #cb6a51);
}

.recipe-body {
    padding: 14px;
}

.rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0 14px 14px;
}

.star-group {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.star-button {
    border: 1px solid rgba(48, 81, 58, 0.24);
    background: #fff;
    color: #8a5d1f;
    border-radius: 10px;
    min-width: 30px;
    height: 30px;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
}

.star-button:hover {
    border-color: #c4852f;
    background: #fff6e8;
}

.rating-summary {
    font-size: 0.84rem;
    color: rgba(31, 42, 31, 0.7);
    font-weight: 700;
}

.recipe h4 {
    margin: 0;
    font-size: 1.06rem;
}

.recipe p {
    margin: 8px 0 0;
    color: rgba(31, 42, 31, 0.77);
    font-size: 0.9rem;
}

.chips {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chips button {
    border: 1px solid rgba(48, 81, 58, 0.2);
    background: #fff;
    color: var(--ink);
    padding: 7px 11px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.chips button.active {
    border-color: var(--pine);
    background: var(--pine);
    color: #fff;
}

.newsletter {
    margin-top: 28px;
    border-radius: 22px;
    background: linear-gradient(110deg, #30513a, #3f6a4b);
    color: #fff;
    padding: 24px;
    display: grid;
    gap: 14px;
    grid-template-columns: 1.5fr 1fr;
}

.newsletter h3 {
    margin: 0;
    font-size: 1.6rem;
    font-family: "Fraunces", Georgia, serif;
}

.newsletter p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.85);
}

.newsletter form {
    align-self: center;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.newsletter input {
    border: 0;
    border-radius: 999px;
    min-height: 42px;
    padding: 0 14px;
    min-width: 210px;
}

.newsletter button {
    border: 0;
    border-radius: 999px;
    background: var(--gold);
    color: #2d2a20;
    min-height: 42px;
    padding: 0 18px;
    font-weight: 800;
    cursor: pointer;
}

footer {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    color: rgba(31, 42, 31, 0.68);
}

@media (max-width: 960px) {
    .hero,
    .newsletter {
        grid-template-columns: 1fr;
    }

    .newsletter form {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .topbar {
        border-radius: 18px;
        padding: 12px;
    }

    .topnav {
        width: 100%;
        justify-content: space-between;
        font-size: 0.86rem;
    }

    .hero {
        padding: 22px;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
    }
}
