/* Palette and type lifted from the app's own theme so the two read as one product.
   Source: jukebox/client/src/styles/theme.css */
:root {
    --canvas: #0f0a06;
    --subtle: #3a2410;
    --divider: #6b4a30;
    --ink: #f5e6c8;
    --ink-dim: #c4906a;
    --gold: #f4a100;

    --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
    --display: "Bebas Neue", "Impact", ui-sans-serif, sans-serif;
}

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

body {
    margin: 0;
    background-color: var(--canvas);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 3rem 1.25rem;
    text-align: center;
}

/* ─── Decorative note field, matching the app's welcome screen ─── */
.notes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.notes span {
    position: absolute;
    color: var(--gold);
    font-family: var(--display);
    line-height: 1;
    opacity: var(--o);
    transform: rotate(var(--r));
    animation: twinkle var(--t) ease-in-out var(--d) infinite;
    will-change: opacity, transform;
}

/* Rotation is re-stated in every frame because animating transform would
   otherwise discard the note's resting angle. */
@keyframes twinkle {
    0%,
    100% {
        opacity: calc(var(--o) * 0.5);
        transform: rotate(var(--r)) scale(0.96);
    }
    50% {
        opacity: calc(var(--o) * 1.7);
        transform: rotate(var(--r)) scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .notes span {
        animation: none;
        will-change: auto;
    }
}

/* ─── Hero ─── */
.pill {
    display: inline-block;
    margin: 0 0 1.5rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--divider);
    border-radius: 999px;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 0.25rem;
    color: var(--gold);
    font-family: var(--display);
    font-size: clamp(3.75rem, 18vw, 6rem);
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: 1;
}

.tagline {
    margin: 0 0 2rem;
    color: var(--ink-dim);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.lead {
    max-width: 34rem;
    margin: 0;
    font-size: 1.075rem;
}

/* ─── Footer ─── */
footer {
    margin-top: 3.5rem;
}

.footer-link {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-link a {
    color: var(--ink-dim);
    text-decoration: none;
    border-bottom: 1px solid var(--subtle);
    padding-bottom: 2px;
}

.footer-link a:hover,
.footer-link a:focus-visible {
    color: var(--gold);
    border-bottom-color: var(--gold);
}
