:root {
    --ink: #f1eee4;
    --fallback: #181812;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    background: var(--fallback);
    color: var(--ink);
    font-family: "Source Code Pro", monospace;
}

.hero {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    overflow: hidden;
    isolation: isolate;
}

.hero__image,
.hero__shade {
    position: absolute;
    inset: 0;
}

.hero__image {
    z-index: -2;
    background-color: var(--fallback);
    background-image: url("/public/hero.webp");
    background-position: center;
    background-size: cover;
}

.hero__shade {
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(12, 11, 8, 0.22) 0%, rgba(12, 11, 8, 0.04) 46%, rgba(12, 11, 8, 0.62) 100%),
        linear-gradient(90deg, rgba(12, 11, 8, 0.18), transparent 48%);
}

h1 {
    align-self: center;
    width: 100%;
    margin: 10%;
    font-size: 16.2vw;
    font-size: min(16.2vw, 25svh);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: 0.075em;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
}

.headline__line {
    display: block;
    white-space: nowrap;
}

footer {
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-size: clamp(0.75rem, 1.15vw, 1rem);
    font-weight: 500;
    letter-spacing: .515em;
    line-height: 1.4;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}

footer a {
    color: inherit;
    text-decoration-color: rgba(241, 238, 228, 0.65);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: text-decoration-color 160ms ease;
}

footer a:hover,
footer a:focus-visible {
    text-decoration-color: currentColor;
}

footer a:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 0.3rem;
}

@media (max-width: 600px) {
    .hero {
        padding-inline: max(0.8rem, env(safe-area-inset-left)) max(0.8rem, env(safe-area-inset-right));
    }

    h1 {
        line-height: 0.84;
    }

    footer {
        gap: 0.25rem 0.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    footer a {
        transition: none;
    }
}
