:root {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    font-family: var(--font-copy);
    font-size: var(--text-base);
    font-weight: bold;
    letter-spacing: var(--tracking);

    background-color: var(--color-brown);
    color: var(--color-pink);
    text-transform: var(--text-upper);
}

::selection {
    background: var(--color-red);
    color: var(--color-brown);
}

.is-loading body {
    opacity: 0;
}

a {
    color: inherit;

    &.link {
        text-decoration: none;
        padding: var(--space-xs) var(--space-xs);
        display: inline-block;
        line-height: .85;
    }

    &:hover {
        text-decoration: underline;
        color: var(--color-red);
    }
}

address {
    font-style: normal;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-xs);
}

hr {
    background-color: var(--color-pink);
    color: var(--color-pink);
    border-color: var(--color-pink);
}

.lead {
    margin: 0;
    font-size: var(--text-3xl);
    max-width: 15ch;
    line-height: .8;
    text-align: center;
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
    text-decoration: line-through;
}

.hero {
    position: relative;
    z-index: 1;
    overflow: clip;
    min-height: 100vh;
    min-height: 100svh;

    display: grid;
    grid-template-areas:
        "top-left top-center top-center top-right"
        "middle middle middle middle"
        "bottom-left bottom-left bottom-right bottom-right";

    border-bottom: 1px solid var(--color-pink);

    .hero__image {
        position: absolute;
        inset: 0 0 auto;
        width: 100%;
        height: 120%;
        object-fit: cover;
        z-index: -1;
    }

    .hero__logo {
        width: 100%;
        max-width: var(--logo-width);
        height: auto;
    }

    .hero__block--top-left {
        grid-area: top-left;
        align-self: start;
        justify-self: start;
    }

    .hero__block--top-center {
        grid-area: top-center;
        align-self: start;
        justify-self: center;
    }

    .hero__block--top-right {
        grid-area: top-right;
        align-self: start;
        justify-self: end;
    }

    .hero__block--center {
        grid-area: middle;
        align-self: center;
        justify-self: center;

        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__block--bottom-left {
        grid-area: bottom-left;
        align-self: end;
        justify-self: start;
    }

    .hero__block--bottom-right {
        grid-area: bottom-right;
        align-self: end;
        justify-self: end;
    }
}

.table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;

    width: 100%;
    max-width: clamp(18rem, 50svw, 20rem);
    font-size: var(--text-sm);

    dd {
        text-align: right;
    }
}

.footer {
    position: sticky;
    bottom: 0;
    padding: var(--space-xs);
}

.not-found {
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

/* Film grain overlay; pointer-events none keeps links clickable */
body::after {
    content: "";
    position: fixed;
    inset: -50%;
    z-index: 9999;
    pointer-events: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    opacity: 1;
    mix-blend-mode: overlay;

    animation: grain 0.8s steps(1) infinite;
}

@keyframes grain {
    0% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(-6%, 4%);
    }

    40% {
        transform: translate(5%, -7%);
    }

    60% {
        transform: translate(-4%, -5%);
    }

    80% {
        transform: translate(7%, 6%);
    }
}

@media (prefers-reduced-motion: reduce) {
    body::after {
        animation: none;
    }
}