/* Base styles for every page. Colors and fonts come from brand/tokens.css. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

/* Soft sky gradient behind every page, as in the hub. */
body {
    min-height: 100vh;
    background-color: var(--bg);
    background-image: linear-gradient(180deg,
        color-mix(in srgb, var(--sky-1) 22%, var(--bg)) 0%,
        var(--bg) 45%,
        color-mix(in srgb, var(--sky-3) 20%, var(--bg)) 100%);
    color: var(--text);
    font-family: var(--font-title);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    font-family: var(--font-title);
    font-weight: 300;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--accent-1);
    outline-offset: 3px;
}

/* Square song cover (inline SVG), framed like the hub cards. Used by the catalog and the player. */
.mx-cover {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 5px 5px 0 var(--accent-2);
}

.mx-cover svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Error bar for interactive components. Blazor makes it visible. */
#blazor-error-ui {
    display: none;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1000;
    padding: 12px 18px;
    background: var(--accent-3);
    color: var(--ink);
    font-size: 12px;
    letter-spacing: .1em;
}

#blazor-error-ui .reload {
    margin-left: 12px;
    font-weight: 700;
}

#blazor-error-ui .dismiss {
    float: right;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
