:root {
    color-scheme: light dark;
    font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
}

body {
    margin: 0;
    font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
    background: linear-gradient(180deg, #f9fbff 0%, #eef2ff 45%, #ffffff 100%);
    color: #0f172a;
}

a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

main {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.masthead {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, .25);
}

.masthead__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: .85rem clamp(1.5rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.masthead__logo {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #1d4ed8;
}

.masthead__nav {
    display: flex;
    gap: 1.4rem;
}

.masthead__nav a {
    color: #475569;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
}

.masthead__nav a:hover {
    color: #1d4ed8;
}

.site-footer {
    padding: 2rem clamp(1.5rem, 4vw, 5rem);
    text-align: center;
    color: #475569;
    font-size: .85rem;
    border-top: 1px solid rgba(148, 163, 184, .3);
    background: rgba(255, 255, 255, .9);
}

@media (max-width: 720px) {
    .masthead__nav {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: radial-gradient(circle at top, #0f172a 0%, #020617 55%, #000 100%);
        color: #e2e8f0;
    }

    .masthead {
        background: rgba(15, 23, 42, .92);
        border-bottom: 1px solid rgba(148, 163, 184, .18);
    }

    .masthead__logo {
        color: #60a5fa;
    }

    .masthead__nav a {
        color: #94a3b8;
    }

    .masthead__nav a:hover {
        color: #60a5fa;
    }

    .site-footer {
        background: rgba(15, 23, 42, .9);
        color: #94a3b8;
        border-top-color: rgba(148, 163, 184, .25);
    }

    a {
        color: #60a5fa;
    }
}

#app {
    min-height: 100vh;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #1d4ed8;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    animation: loading-progress-spin 1s linear infinite;
}

@media (prefers-color-scheme: dark) {
    .loading-progress circle {
        stroke: #60a5fa;
    }
}

@keyframes loading-progress-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
