@media (max-width: 1024px) {
    .featured,
    .recipe-layout,
    .newsletter-band,
    .contact-grid,
    .about-split,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .recipe-grid--3,
    .tips {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-row div:nth-child(n + 4) {
        border-top: 1px solid var(--line);
    }

    .filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        min-height: 64px;
        gap: 0.8rem;
    }

    .site-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--ivory);
        border-bottom: 1px solid var(--line);
        display: none;
        margin: 0;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.4rem 1.25rem 1rem;
    }

    .site-nav a {
        display: block;
        padding: 0.7rem 0;
        border-bottom: 1px solid var(--line);
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding-top: 2.6rem;
        text-align: left;
    }

    .hero p.lead,
    .hero-actions {
        margin-left: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .recipe-grid,
    .recipe-grid--3,
    .tips,
    .toc-cats,
    .recipe-extras,
    .stat-row {
        grid-template-columns: 1fr;
    }

    .stat-row div + div,
    .stat-row div:nth-child(n + 4) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .filters {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.1rem;
    }

    .section {
        padding: 2.6rem 0;
    }
}

@media (max-width: 375px) {
    .container-wide,
    .container-narrow,
    .header-inner,
    .hero-plate,
    .search-panel__form {
        width: calc(100% - 1.5rem);
    }

    body {
        font-size: 1rem;
    }

    .wordmark {
        font-size: 1.3rem;
    }
}

@media (min-width: 1440px) {
    :root {
        --max: 1240px;
    }
}
