:root {
    --bg: #11121e;
    --fg: #e2e2f2;
    --muted: #9090aa;
    --rule: #1c1c2e;
    --accent: #9090c4;
    --focus: #9090c4;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family:
        Palatino, "Palatino Linotype", "Book Antiqua",
        Charter, "Bitstream Charter", Georgia, serif;
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.card {
    width: 100%;
    max-width: 30rem;
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .card {
        animation: none;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(0.6rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    margin: 0;
    font-weight: 600;
    font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
    letter-spacing: -0.01em;
    text-align: center;
}

.tagline {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-style: italic;
    font-size: 1.0625rem;
    text-align: center;
}

.body {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1rem;
    text-align: center;
}

.home-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    color: var(--fg);
    border: 1px solid var(--muted);
    border-radius: 999px;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}

.home-link:hover,
.home-link:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.home-link:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

.home-link svg {
    width: 1em;
    height: 1em;
}

.links {
    margin: 2.25rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    justify-content: center;
}

.links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    color: var(--fg);
    text-decoration: none;
    border: 1px solid var(--rule);
    border-radius: 999px;
    transition:
        border-color 0.2s ease,
        color 0.2s ease;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
}

.links a:hover,
.links a:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.links a:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

.links svg {
    width: 1.05em;
    height: 1.05em;
    flex: none;
}

footer {
    flex-shrink: 0;
    text-align: center;
    padding: 1.5rem;
    color: var(--muted);
    font-size: 0.8125rem;
    border-top: 1px solid var(--rule);
}

footer a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

footer a:hover,
footer a:focus-visible {
    color: var(--accent);
}
