﻿/* =========================================================
   STREGA
   SEARCH
========================================================= */

.search-page {
    min-height: 70vh;
    padding: 7rem 0 9rem;
    color: var(--strega-ink);
    background: var(--strega-paper);
}

.search-page__inner {
    width: min( calc(100% - 3rem), 900px );
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.search-page__header {
    max-width: 760px;
    margin-bottom: 4rem;
}

    .search-page__header .eyebrow {
        display: block;
        margin-bottom: 1rem;
    }

    .search-page__header h1 {
        margin: 0;
        font-size: clamp( 4rem, 7vw, 6.5rem );
        font-weight: 400;
        line-height: 0.95;
    }

    .search-page__header p {
        max-width: 560px;
        margin: 1.75rem 0 0;
        font-size: 1.1rem;
        line-height: 1.65;
    }


/* =========================================================
   SEARCH FORM
========================================================= */

.search-page__form {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-bottom: 1px solid var(--strega-ink);
}

    .search-page__form input[type="search"] {
        width: 100%;
        min-width: 0;
        min-height: 74px;
        margin: 0;
        padding: 0 2rem 0 0;
        border: 0;
        border-radius: 0;
        outline: 0;
        color: var(--strega-ink);
        background: transparent;
        box-shadow: none;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp( 1.35rem, 2.5vw, 2rem );
        line-height: 1.2;
        appearance: none;
        -webkit-appearance: none;
    }

        .search-page__form input[type="search"]::placeholder {
            color: var(--strega-ink);
            opacity: 0.45;
        }

        .search-page__form input[type="search"]:focus-visible {
            outline: none;
        }

        .search-page__form input[type="search"]::-webkit-search-decoration,
        .search-page__form input[type="search"]::-webkit-search-cancel-button,
        .search-page__form input[type="search"]::-webkit-search-results-button,
        .search-page__form input[type="search"]::-webkit-search-results-decoration {
            -webkit-appearance: none;
        }

    .search-page__form button {
        min-height: 74px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        color: var(--strega-ink);
        background: transparent;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 0.7rem;
        font-weight: 500;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        cursor: pointer;
    }

        .search-page__form button:hover {
            opacity: 0.55;
        }

        .search-page__form button:focus-visible {
            outline: 1px solid var(--strega-ink);
            outline-offset: 5px;
        }


/* =========================================================
   SUMMARY
========================================================= */

.search-page__summary {
    margin: 2rem 0 3rem;
}

    .search-page__summary p {
        margin: 0;
        font-size: 0.95rem;
        opacity: 0.62;
    }


/* =========================================================
   RESULTS
========================================================= */

.search-results {
    margin-top: 3rem;
    border-top: 1px solid var(--strega-line);
}

.search-result {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--strega-line);
}

    .search-result .eyebrow {
        display: block;
        margin-bottom: 0.6rem;
    }

    .search-result h2 {
        margin: 0 0 0.8rem;
        font-size: clamp( 1.7rem, 3vw, 2.2rem );
        font-weight: 400;
        line-height: 1.1;
    }

        .search-result h2 a {
            color: inherit;
            text-decoration: none;
        }

            .search-result h2 a:hover {
                opacity: 0.65;
            }

            .search-result h2 a:focus-visible {
                outline: 1px solid currentColor;
                outline-offset: 4px;
            }

    .search-result p {
        max-width: 680px;
        margin: 0 0 0.8rem;
        font-size: 1rem;
        line-height: 1.65;
    }

    .search-result time {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 0.7rem;
        letter-spacing: 0.04em;
        opacity: 0.5;
    }


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 640px) {

    .search-page {
        padding: 5rem 0 6rem;
    }

    .search-page__inner {
        width: calc(100% - 2rem);
    }

    .search-page__header {
        margin-bottom: 3rem;
    }

    .search-page__form input[type="search"] {
        min-height: 64px;
        padding-right: 1rem;
        font-size: 1.2rem;
    }

    .search-page__form button {
        min-height: 64px;
    }
}
