html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 1.5rem;
}

body {
    min-height: 100vh;
    color: var(--app-text);
    background: var(--app-bg);
    font-family: var(--app-font-sans);
    font-size: 0.9375rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-6 {
    color: var(--app-text-strong);
    font-family: var(--app-font-display);
    font-weight: 650;
    letter-spacing: -0.018em;
}

.display-6 {
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.h3, h1.h3 {
    font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.85rem);
    letter-spacing: -0.025em;
}

.h4 { font-size: 1.25rem; }
.h5 { font-size: 1.0625rem; }
.h6 { font-size: 0.9375rem; }

.lead {
    color: var(--app-muted);
    font-size: 1rem;
    font-weight: 400;
}

small, .small {
    font-size: 0.8125rem;
}

a {
    color: var(--app-primary-text);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--bs-link-hover-color);
}

code, kbd, pre, samp {
    font-family: var(--app-font-mono);
}

code {
    font-size: 0.85em;
}

hr {
    border-color: var(--app-border);
    opacity: 1;
}

::selection {
    color: var(--app-text-strong);
    background: var(--app-primary-soft);
}

:focus-visible {
    outline: 2px solid var(--app-primary);
    outline-offset: 2px;
}

.text-body-secondary,
.link-secondary {
    color: var(--app-muted) !important;
}

.link-secondary:hover {
    color: var(--app-text-strong) !important;
}

.visually-hidden-focusable:focus {
    z-index: 2000;
}

table, .app-tabular {
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
