@font-face {
    font-family: "Inter";
    src: url("../fonts/InterVariable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
    background: var(--nexta-page-bg, #f5f7fb);
}

body.nexta-theme {
    margin: 0;
    color: var(--nexta-text, #192439);
    background: var(--nexta-page-bg, #f5f7fb);
}

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

.nexta-site {
    min-height: 100vh;
    color: var(--nexta-text);
    background: var(--nexta-page-bg);
    font-family: "Inter", Arial, sans-serif;
    font-size: 15px;
    font-weight: 450;
    line-height: 1.55;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.nexta-site :where(h1, h2, h3, h4, p, ul, ol, figure) {
    margin-top: 0;
}

.nexta-site :where(h1, h2, h3, h4) {
    color: var(--nexta-text);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.nexta-site p {
    color: var(--nexta-text-muted);
}

.nexta-site a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.nexta-site button,
.nexta-site input,
.nexta-site select,
.nexta-site textarea {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

.nexta-site button,
.nexta-site select {
    cursor: pointer;
}

.nexta-site button {
    color: inherit;
}

.nexta-site :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--nexta-focus);
    outline-offset: 3px;
}

.nexta-site :where(a, button, input, select, textarea, summary, [tabindex]) {
    scroll-margin-block: 1rem;
}

.nexta-site img,
.nexta-site svg {
    max-width: 100%;
}

.nexta-site img {
    height: auto;
}

.nexta-site .skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 16px;
    padding: 12px 16px;
    color: var(--nexta-link);
    background: var(--nexta-surface-raised);
    border: 1px solid var(--nexta-border-strong);
    border-radius: 6px;
    box-shadow: 0 4px 18px rgb(0 0 0 / 16%);
    transform: translateY(-160%);
}

.nexta-site .skip-link:focus {
    transform: translateY(0);
}

.nexta-site ::selection {
    color: var(--nexta-selection-text);
    background: var(--nexta-selection-bg);
}

body.nexta-modal-open {
    overflow: hidden;
}

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

    .nexta-site *,
    .nexta-site *::before,
    .nexta-site *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Stronger boundaries when a user explicitly requests increased contrast. */
@media (prefers-contrast: more) {
    .nexta-site :where(input, select, textarea, button) {
        border-width: 2px;
    }

    .nexta-site :where(a, button, input, select, textarea, summary):focus-visible {
        outline-width: 3px;
        outline-offset: 3px;
    }
}

/* Keep native system colors available in Windows High Contrast / forced-colors. */
@media (forced-colors: active) {
    .nexta-site :where(a, button, input, select, textarea, summary):focus-visible {
        outline: 2px solid Highlight;
        outline-offset: 3px;
    }

    .nexta-site :where(input, select, textarea) {
        border: 1px solid ButtonText;
    }

    .nexta-site :where(.primary, .secondary, .nexta-dialog, .bottom-nav) {
        border: 1px solid ButtonText;
    }

    .nexta-site .skip-link {
        color: LinkText;
        background: Canvas;
        border-color: CanvasText;
    }
}


/* Shared visually-hidden utility for live status text and accessible labels. */
.nexta-site .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* The instant theme toggle needs JavaScript. Without it, the site still follows
   prefers-color-scheme and the nonfunctional control is not presented. */
html:not(.js) .nexta-site .theme-control {
    display: none;
}
