:root {
    --cookie-banner-space: 11rem;
}

body {
    min-height: 100vh;
    color: #212529;
    background: #fff;
}

.hero-image {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: cover;
}

main {
    width: min(100% - 2rem, 720px);
    margin: 0 auto;
    padding: 1.5rem 0 calc(var(--cookie-banner-space) + 1.5rem);
}

.message {
    margin-bottom: 1rem;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 600;
}

.intro,
.contact {
    font-size: clamp(1rem, 2.8vw, 1.125rem);
    line-height: 1.6;
}

.random-message {
    margin-top: 2rem;
    margin-bottom: 0;
}

.cookie-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    color: #fff;
    background: #212529;
}

.cookie-banner__content {
    display: grid;
    width: min(100% - 2rem, 1140px);
    margin: 0 auto;
    padding: 1rem 0;
    gap: 1rem;
    text-align: center;
}

.cookie-banner__copy {
    line-height: 1.5;
}

.cookie-banner__link {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    color: #fff;
    border: 1px solid currentColor;
    border-radius: 0.375rem;
    text-decoration: none;
}

.cookie-banner__link:hover,
.cookie-banner__link:focus-visible {
    color: #212529;
    background: #fff;
}

@media (min-width: 768px) {
    :root {
        --cookie-banner-space: 7rem;
    }

    .cookie-banner__content {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        text-align: left;
    }

    .cookie-banner__action {
        text-align: right;
    }
}
