/* Homepage and collection-entry presentation */

.hero {
    padding: 72px 0 64px;
}

.hero h1 {
        margin: 0 0 48px;
        font-size: clamp(4rem, 9vw, 8rem);
        font-weight: 400;
        line-height: 0.9;
        letter-spacing: -0.055em;
    }

.search {
    display: flex;
    width: min(760px, 100%);
    border-bottom: 2px solid var(--text);
}

.search input {
        flex: 1;
        min-width: 0;
        padding: 16px 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--text);
        font: inherit;
        font-size: 1.25rem;
    }

.search input::placeholder {
            color: var(--muted);
        }

.search button {
        padding: 0 0 0 24px;
        border: 0;
        background: transparent;
        color: var(--text);
        font: inherit;
        cursor: pointer;
    }

.featured {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.featured__item {
    min-height: 90px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: var(--surface);
}

.featured__item strong {
        font-size: 1.05rem;
        font-weight: 500;
    }

.featured__item span {
        flex-shrink: 0;
        color: var(--muted);
        font-size: 0.9rem;
    }

.collections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.collection-card {
    min-height: 240px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--surface);
}

.collection-card h2 {
        margin: 0;
        font-size: clamp(2rem, 4vw, 3.25rem);
        font-weight: 400;
        letter-spacing: -0.035em;
    }

.collection-card p {
        max-width: 500px;
        margin: 40px 0 0;
        color: var(--muted);
    }

.picture-collection {
    padding: 56px;
    background: var(--dark);
    color: white;
}

.picture-collection h2 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.05em;
}

.picture-collection > p:not(.eyebrow) {
    max-width: 500px;
    margin: 30px 0;
    font-size: 1.1rem;
}

.periods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.periods a {
        min-height: 72px;
        padding: 18px 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
        border-bottom: 1px solid var(--line);
    }

.periods a:nth-child(odd) {
            margin-right: 24px;
        }

.periods a:nth-child(even) {
            margin-left: 24px;
        }

.periods strong {
        font-weight: 500;
    }

.periods span {
        color: var(--muted);
        font-size: 0.9rem;
    }

@media (max-width: 720px) {
    .hero {
            padding: 50px 0 40px;
        }

    .hero h1 {
                margin-bottom: 36px;
            }

    .featured,
        .collections,
        .periods {
            grid-template-columns: 1fr;
        }

    .featured__item {
            align-items: flex-start;
        }

    .periods a:nth-child(n) {
            margin-inline: 0;
        }

    .picture-collection {
            padding: 32px 24px;
        }

}
