:root {
    --bg: #f8f7f3;
    --surface: #ffffff;
    --text: #20201e;
    --muted: #77756e;
    --line: #e9e7e1;
    --accent: #ef6b45;
    --accent-dark: #d95632;
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

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

button,
input {
    font: inherit;
}


/* HEADER */

.header {
    position: relative;
    background: rgba(248, 247, 243, .94);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: 1240px;
    height: 78px;
    margin: auto;
    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -1.5px;
}

.logo span {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 34px;
    margin-left: 80px;
}

.nav a {
    font-size: 14px;
    color: #55534d;
    transition: color .2s ease;
}

.nav a:hover {
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.language {
    display: flex;
    gap: 9px;
    font-size: 12px;
    font-weight: 700;
}

.language a {
    color: #aaa79f;
}

.language a.active {
    color: var(--text);
}

.profile-button {
    width: 38px;
    height: 38px;

    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;

    position: relative;
}

.profile-button span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #777;
    top: 8px;
    left: 14px;
}

.profile-button span::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 8px;
    border-radius: 10px 10px 6px 6px;
    background: #777;
    top: 10px;
    left: -4px;
}


/* HERO */

.hero {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    max-width: 1240px;
    min-height: 570px;
    margin: auto;
    padding: 70px 28px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-copy {
    max-width: 600px;
}

.eyebrow,
.section-label {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
}

.eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

h1 {
    margin: 0;

    font-size: clamp(48px, 6vw, 78px);
    line-height: .98;
    letter-spacing: -4px;
    font-weight: 850;
}

.hero-copy > p {
    max-width: 530px;
    margin: 27px 0 34px;

    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}


/* SEARCH */

.search {
    width: 100%;
    max-width: 560px;
    height: 62px;

    display: flex;
    align-items: center;

    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 17px;

    padding: 6px 7px 6px 20px;

    box-shadow: 0 12px 35px rgba(40, 38, 30, .06);
}

.search-icon {
    color: #aaa69e;
    font-size: 27px;
    transform: rotate(-20deg);
}

.search input {
    min-width: 0;
    flex: 1;

    border: 0;
    outline: 0;
    background: transparent;

    padding: 0 13px;
    color: var(--text);
}

.search input::placeholder {
    color: #aaa79f;
}

.search button {
    height: 48px;
    padding: 0 22px;

    border: 0;
    border-radius: 13px;

    background: var(--accent);
    color: white;

    font-weight: 700;
    cursor: pointer;

    transition: background .2s ease, transform .2s ease;
}

.search button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}


/* HERO FOOD */

.hero-food {
    min-height: 430px;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.food-card-main {
    width: min(380px, 80%);
    overflow: hidden;

    background: white;
    border-radius: 30px;

    transform: rotate(3deg);

    box-shadow:
        0 30px 70px rgba(43, 40, 30, .15);
}

.food-image {
    height: 320px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 150px;

    background:
        linear-gradient(
            135deg,
            #f3dfc2,
            #e9c898
        );
}

.food-card-info {
    padding: 20px 23px 23px;
}

.food-card-info span {
    display: block;
    margin-bottom: 5px;

    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.food-card-info strong {
    font-size: 21px;
}


/* FLOATING CARDS */

.floating-card {
    position: absolute;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 13px 16px;

    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;

    box-shadow: 0 15px 40px rgba(40, 38, 30, .10);
}

.floating-card > span {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    background: #f7f5f0;

    font-size: 20px;
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card strong {
    font-size: 12px;
}

.floating-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.floating-card-one {
    top: 48px;
    right: 5px;
}

.floating-card-two {
    bottom: 55px;
    left: 10px;
}


/* RECIPES */

.today {
    max-width: 1240px;
    margin: auto;
    padding: 90px 28px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 9px 0 0;

    font-size: 38px;
    letter-spacing: -1.8px;
}

.text-link {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    font-weight: 700;
}

.text-link span {
    font-size: 18px;
}

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

.recipe-card {
    overflow: hidden;

    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);

    transition: transform .25s ease, box-shadow .25s ease;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(40, 38, 30, .09);
}

.recipe-photo {
    height: 270px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eee4d6;
}

.recipe-photo > span {
    font-size: 100px;
}

.recipe-tag {
    position: absolute;
    top: 15px;
    left: 15px;

    padding: 7px 10px;

    border-radius: 999px;
    background: rgba(255,255,255,.9);

    font-size: 10px;
    font-weight: 800;
}

.recipe-content {
    padding: 20px 21px 22px;
}

.recipe-content h3 {
    margin: 0 0 15px;

    font-size: 21px;
    letter-spacing: -.5px;
}

.recipe-meta {
    display: flex;
    gap: 18px;

    color: var(--muted);
    font-size: 12px;
}


/* FEATURE BLOCKS */

.feature-sections {
    max-width: 1240px;
    margin: auto;
    padding: 0 28px 100px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.feature-block {
    min-height: 300px;

    padding: 38px;

    border-radius: var(--radius);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-block {
    background: #e9dfd0;
}

.shopping-block {
    background: #e4e9dc;
}

.feature-icon {
    font-size: 36px;
}

.feature-copy {
    max-width: 440px;
}

.feature-copy h2 {
    margin: 0 0 10px;

    font-size: 30px;
    letter-spacing: -1.2px;
}

.feature-copy p {
    margin: 0 0 23px;

    color: #65635d;
    line-height: 1.5;
}

.feature-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 14px;
    font-weight: 800;
}

.feature-button span {
    font-size: 18px;
}


/* FOOTER */

.footer {
    border-top: 1px solid var(--line);
}

.footer-inner {
    max-width: 1240px;
    min-height: 100px;
    margin: auto;
    padding: 20px 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #8b8880;
    font-size: 12px;
}


/* MOBILE */

@media (max-width: 800px) {

    .header-inner {
        height: 68px;
        padding: 0 20px;
    }

    .nav {
        display: none;
    }

    .header-actions {
        gap: 12px;
    }

    .profile-button {
        display: none;
    }

    .hero-inner {
        min-height: auto;

        grid-template-columns: 1fr;
        gap: 20px;

        padding: 65px 20px 50px;
    }

    h1 {
        font-size: 52px;
        letter-spacing: -3px;
    }

    .hero-copy > p {
        font-size: 17px;
    }

    .hero-food {
        min-height: 390px;
        margin-top: 10px;
    }

    .food-card-main {
        width: 290px;
    }

    .food-image {
        height: 250px;
        font-size: 110px;
    }

    .floating-card-one {
        right: -3px;
        top: 20px;
    }

    .floating-card-two {
        left: -3px;
        bottom: 25px;
    }

    .today {
        padding: 65px 20px;
    }

    .section-heading {
        align-items: flex-start;
        gap: 20px;
    }

    .section-heading h2 {
        font-size: 31px;
    }

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

    .recipe-photo {
        height: 250px;
    }

    .feature-sections {
        grid-template-columns: 1fr;
        padding: 0 20px 65px;
    }

    .feature-block {
        min-height: 270px;
        padding: 30px;
    }

    .footer-inner {
        padding: 25px 20px;
    }
}
