/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans JP",
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        sans-serif;

    background: #0b0b0b;
    color: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}


/* =========================================
   HEADER
========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 82px;

    background: rgba(8, 8, 8, 0.97);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    z-index: 9999;

    backdrop-filter: blur(12px);
}

.header-inner {
    max-width: 1200px;
    height: 100%;

    margin: 0 auto;
    padding: 0 30px;

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


/* LOGO */

.logo {
    display: inline-flex;
    align-items: center;

    color: #ffffff;

    text-decoration: none;

    font-size: 27px;
    font-weight: 900;

    letter-spacing: -1px;

    white-space: nowrap;
}

.logo span {
    color: #e3262e;
    margin-left: 4px;
}


/* NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    position: relative;

    color: #d6d6d6;

    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #ffffff;
}

.main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: #e3262e;

    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}


/* =========================================
   RECIPE HERO
========================================= */

.recipe-hero {
    min-height: 620px;

    margin-top: 82px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.90) 0%,
            rgba(0,0,0,.65) 45%,
            rgba(0,0,0,.20) 100%
        ),
        url("https://images.unsplash.com/photo-1547592180-85f173990554?auto=format&fit=crop&w=1800&q=90");

    background-size: cover;
    background-position: center;
}

.recipe-hero-content {
    width: 1200px;
    max-width: 100%;

    margin: auto;
    padding: 70px 30px;
}

.recipe-tag,
.recipe-label {
    color: #e3262e;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 4px;
}

.recipe-hero h1 {
    max-width: 700px;

    margin: 18px 0 25px;

    font-size: clamp(42px, 6vw, 78px);

    line-height: 1.05;

    font-weight: 900;
}

.recipe-hero h1 span {
    color: #e3262e;
}

.recipe-hero p {
    max-width: 600px;

    color: #dddddd;

    font-size: 17px;

    line-height: 2;

    margin-bottom: 35px;
}


/* =========================================
   BUTTON
========================================= */

.recipe-button {
    display: inline-block;

    padding: 15px 32px;

    background: #e3262e;
    color: #ffffff;

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

    text-decoration: none;

    border: 1px solid #e3262e;

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;
}

.recipe-button:hover {
    background: #ffffff;
    color: #000000;

    transform: translateY(-2px);
}


/* =========================================
   INTRO
========================================= */

.recipe-intro {
    max-width: 1200px;

    margin: auto;

    padding: 90px 30px 40px;
}

.recipe-heading {
    font-size: 42px;

    line-height: 1.25;

    margin: 12px 0;
}

.recipe-description {
    max-width: 650px;

    color: #999999;

    line-height: 1.9;
}


/* =========================================
   FEATURED RECIPE
========================================= */

.featured-recipe {
    max-width: 1200px;

    margin: 30px auto 100px;

    padding: 0 30px;

    display: grid;

    grid-template-columns:
        1.2fr 1fr;
}

.featured-image {
    min-height: 500px;

    background-image:
        url("https://images.unsplash.com/photo-1512621776951-a57141f2eefd?auto=format&fit=crop&w=1000&q=90");

    background-size: cover;

    background-position: center;
}

.featured-content {
    padding: 55px;

    background: #151515;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.featured-content .small-label {
    color: #e3262e;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 3px;
}

.featured-content h2 {
    font-size: 38px;

    line-height: 1.3;

    margin: 15px 0;
}

.featured-content p {
    color: #aaaaaa;

    line-height: 1.9;
}


/* =========================================
   RECIPE INFO
========================================= */

.recipe-info {
    display: flex;

    gap: 25px;

    margin: 25px 0;

    flex-wrap: wrap;
}

.recipe-info div {
    border-left: 2px solid #e3262e;

    padding-left: 12px;
}

.recipe-info strong {
    display: block;

    font-size: 17px;
}

.recipe-info span {
    color: #888888;

    font-size: 12px;
}


/* =========================================
   RECIPE LIST
========================================= */

.recipe-list {
    max-width: 1200px;

    margin: auto;

    padding: 0 30px 100px;
}

.recipe-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

    margin-top: 35px;
}


/* =========================================
   RECIPE CARD
========================================= */

.recipe-card {
    background: #151515;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,0.05);

    transition:
        transform .3s ease,
        border-color .3s ease;
}

.recipe-card:hover {
    transform: translateY(-7px);

    border-color: rgba(227,38,46,.5);
}

.recipe-card-image {
    width: 100%;

    height: 240px;

    object-fit: cover;

    display: block;

    transition: transform .5s ease;
}

.recipe-card:hover .recipe-card-image {
    transform: scale(1.04);
}

.recipe-card-content {
    padding: 25px;
}

.recipe-card-category {
    color: #e3262e;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}

.recipe-card h3 {
    font-size: 22px;

    margin: 10px 0;
}

.recipe-card p {
    color: #999999;

    font-size: 14px;

    line-height: 1.8;
}

.recipe-card-link {
    display: inline-block;

    margin-top: 15px;

    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;
}

.recipe-card-link:hover {
    color: #e3262e;
}


/* =========================================
   CATEGORIES
========================================= */

.recipe-categories {
    background: #121212;

    padding: 90px 30px;
}

.category-container {
    max-width: 1200px;

    margin: auto;
}

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-top: 35px;
}

.category-box {
    min-height: 180px;

    padding: 30px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    background-size: cover;

    background-position: center;

    position: relative;

    overflow: hidden;

    text-decoration: none;

    color: #ffffff;
}

.category-box::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            transparent,
            rgba(0,0,0,.9)
        );
}

.category-box-content {
    position: relative;

    z-index: 1;
}

.category-box h3 {
    margin: 0;

    font-size: 21px;
}

.category-box span {
    color: #e3262e;

    font-size: 11px;

    letter-spacing: 2px;
}


/* =========================================
   NEWSLETTER
========================================= */

.recipe-newsletter {
    max-width: 1200px;

    margin: 100px auto;

    padding: 60px 40px;

    text-align: center;

    background: #e3262e;
}

.recipe-newsletter h2 {
    font-size: 36px;

    margin: 0 0 12px;
}

.recipe-newsletter p {
    max-width: 600px;

    margin: 0 auto 25px;

    line-height: 1.8;
}

.newsletter-form {
    display: flex;

    max-width: 550px;

    margin: auto;
}

.newsletter-form input {
    flex: 1;

    border: 0;

    padding: 16px;

    outline: none;

    font-size: 14px;
}

.newsletter-form button {
    border: 0;

    padding: 16px 25px;

    background: #000000;

    color: #ffffff;

    cursor: pointer;

    font-weight: 700;
}

.newsletter-form button:hover {
    background: #222222;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    background: #080808;

    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-inner {
    max-width: 1200px;

    margin: auto;

    padding: 70px 30px 0;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 50px;

    padding-bottom: 60px;
}

.footer-logo {
    font-size: 25px;

    font-weight: 900;

    color: #ffffff;
}

.footer-logo span {
    color: #e3262e;
}

.footer-about {
    max-width: 380px;

    color: #888888;

    margin-top: 18px;

    line-height: 1.9;

    font-size: 14px;
}

.footer-title {
    color: #ffffff;

    font-size: 15px;

    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #888888;

    text-decoration: none;

    font-size: 14px;

    transition: color .3s ease;
}

.footer-links a:hover {
    color: #e3262e;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);

    padding: 25px 0;

    text-align: center;

    color: #666666;

    font-size: 13px;
}


/* =========================================
   MOBILE MENU
========================================= */

.menu-toggle {
    display: none;

    background: transparent;

    border: 0;

    color: #ffffff;

    font-size: 25px;

    cursor: pointer;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .main-nav {
        gap: 18px;
    }

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

    .featured-image {
        min-height: 350px;
    }

    .recipe-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (max-width: 700px) {

    .site-header {
        height: 70px;
    }

    .header-inner {
        height: 70px;

        padding: 0 20px;
    }

    .logo {
        font-size: 22px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        padding: 10px 20px 20px;

        background: #090909;

        border-top: 1px solid rgba(255,255,255,.08);

        display: none;

        flex-direction: column;

        align-items: flex-start;

        gap: 0;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        width: 100%;

        padding: 13px 0;

        border-bottom: 1px solid rgba(255,255,255,.05);
    }

    .main-nav a::after {
        display: none;
    }

    .recipe-hero {
        margin-top: 70px;

        min-height: 600px;
    }

    .recipe-hero-content {
        padding: 50px 20px;
    }

    .recipe-hero h1 {
        font-size: 48px;
    }

    .recipe-heading {
        font-size: 32px;
    }

    .recipe-intro,
    .recipe-list {
        padding-left: 20px;

        padding-right: 20px;
    }

    .featured-recipe {
        padding-left: 20px;

        padding-right: 20px;
    }

    .featured-content {
        padding: 30px;
    }

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

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

    .newsletter-form {
        flex-direction: column;

        gap: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .recipe-newsletter {
        margin: 60px 20px;

        padding: 45px 20px;
    }

    .recipe-newsletter h2 {
        font-size: 28px;
    }
}