* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-ui);
    color: var(--color-text-primary);
    background: var(--background-page);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p,
h1,
h2,
h3,
a,
span,
dd {
    overflow-wrap: anywhere;
}
button, input, select, textarea { font: inherit; }

::selection {
    color: var(--color-selection-text);
    background: var(--color-selection-surface);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--color-text-primary);
    caret-color: var(--color-text-primary);
    box-shadow: 0 0 0 1000px var(--color-autofill-surface) inset;
    transition: background-color 0s 600000s;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.muted { color: var(--color-text-secondary); }
.site-glow {
    position: fixed;
    inset-block-start: 20%;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    pointer-events: none;
    background: var(--background-site-glow);
    filter: blur(10px);
    z-index: -1;
}
.site-glow-left { left: -16rem; }
.site-glow-right { right: -16rem; top: 55%; }

html.theme-transitioning body,
html.theme-transitioning .site-header,
html.theme-transitioning .mobile-menu,
html.theme-transitioning .site-footer,
html.theme-transitioning .premium-card,
html.theme-transitioning .btn,
html.theme-transitioning .theme-toggle,
html.theme-transitioning input,
html.theme-transitioning select,
html.theme-transitioning textarea {
    transition-duration: 200ms;
    transition-property: background-color, border-color, color, box-shadow, fill, stroke;
    transition-timing-function: ease;
}

@media (prefers-reduced-motion: reduce) {
    html.theme-transitioning body,
    html.theme-transitioning .site-header,
    html.theme-transitioning .mobile-menu,
    html.theme-transitioning .site-footer,
    html.theme-transitioning .premium-card,
    html.theme-transitioning .btn,
    html.theme-transitioning .theme-toggle,
    html.theme-transitioning input,
    html.theme-transitioning select,
    html.theme-transitioning textarea {
        transition-duration: 1ms;
    }
}
