/* =========================================================================
   LAVACASCADE — css/base/reset.css
   A small modern reset plus page-wide defaults (background, selection,
   focus, scrollbars, reduced motion).
   ========================================================================= */

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

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    color-scheme: dark;
    /* anchor jumps land below the sticky header instead of under it */
    scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
}

ul[role="list"],
ol[role="list"] {
    padding: 0;
    list-style: none;
}

[hidden] {
    display: none !important;
}

/* =========================================
   PAGE
   ========================================= */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    font-weight: 400;
    color: var(--text);
    /* the panel theme's "top-of-page lava glow" */
    background: var(--glow-top) no-repeat, var(--night-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1 0 auto;
}

::selection {
    background: var(--lava-500);
    color: #FFFFFF;
}

/* =========================================
   FOCUS: always visible for keyboard users
   ========================================= */
:focus-visible {
    outline: 2px solid var(--lava-400);
    outline-offset: 3px;
    border-radius: 4px;
}

/* =========================================
   SCROLLBARS (slim, like the panel)
   ========================================= */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--night-600) transparent;
}

/* =========================================
   REDUCED MOTION: kill animation for people who asked
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================
   MAIN: focusable target for the skip link, without a visible ring
   ========================================= */
main:focus {
    outline: none;
}
