:root {
    --font-body: "DM Sans", "Aptos", "Segoe UI", sans-serif;
    --font-heading: "DM Serif Display", Georgia, serif;
    --color-text: #0e1520;
    --color-text-muted: #4a5568;
    --color-text-subtle: #8a9ab0;
    --color-bg: #f5f7fa;
    --color-bg-muted: #eaeff5;
    --color-accent: #1a3a5c;
    --color-accent-mid: #2563a8;
    --color-accent-soft: #e4edf7;
    --color-white: #ffffff;
    --color-border: rgba(26, 58, 92, 0.12);
}

html {
    background: var(--color-bg);
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0;
}

h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    max-width: 14ch;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
}

h3 {
    font-size: 1.25rem;
}

p,
li {
    font-size: 1rem;
    line-height: 1.75;
}

.site-shell {
}

.site-main {
    min-height: 60vh;
}

.section-shell {
    margin: 0 auto;
    width: min(1160px, calc(100% - 3rem));
}

html.js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 600ms ease,
        transform 600ms ease;
    transition-delay: var(--reveal-delay, 0ms);
}

html.js [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 760px) {
    .section-shell {
        width: min(100% - 2rem, 1160px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
