:root {
    --site-blue: #1d4ed8;
    --site-blue-deep: #102a50;
    --site-amber: #f59e0b;
    --site-ink: #172338;
    --site-muted: #617087;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    color: var(--site-ink);
    background: #fff;
    font-feature-settings: "ss01" on;
    text-rendering: optimizeLegibility;
}

::selection {
    color: #102a50;
    background: #fde68a;
}

header.sticky {
    background: rgb(255 255 255 / 94%);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgb(20 36 59 / 7%);
}

header nav > div:first-child {
    min-height: 5rem;
}

header nav a:not([aria-label]) {
    text-underline-offset: .3rem;
}

body .home-hero .home-hero__title {
    max-width: 14ch;
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    line-height: 1.04;
}

main section {
    scroll-margin-top: 6rem;
}

main section img {
    backface-visibility: hidden;
}

main article,
main figure,
main .rounded-3xl,
main .rounded-2xl {
    transition: box-shadow .22s ease, border-color .22s ease, transform .22s ease;
}

main article:hover,
main figure:hover {
    border-color: rgb(29 78 216 / 14%);
}

main a:focus-visible,
header a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgb(245 158 11 / 65%);
    outline-offset: 3px;
}

footer a {
    transition: color .15s ease, transform .15s ease;
}

footer a:hover {
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 640px) {
    body .home-hero {
        min-height: 680px;
    }

    body .home-hero .home-hero__title {
        max-width: 11ch;
        font-size: clamp(2.25rem, 10vw, 2.75rem);
    }

    body .home-hero .home-hero__control {
        top: auto;
        bottom: 1.25rem;
        transform: none;
    }

    body .home-hero .home-hero__control--previous {
        left: calc(50% - 3.25rem);
    }

    body .home-hero .home-hero__control--next {
        right: calc(50% - 3.25rem);
    }
}
