/* Future Node V2 — Base
   Reset, document defaults, typography, containers, focus and motion accessibility.
*/

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

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--fn-bg);
    color: var(--fn-text);
    font-family: var(--fn-font);
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: -10%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 25% 25%, rgba(29, 113, 184, 0.13), transparent 48%),
        radial-gradient(circle at 76% 72%, rgba(149, 27, 129, 0.13), transparent 50%);
    animation: fnBackgroundDrift 22s linear infinite;
}

@keyframes fnBackgroundDrift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-3%, -3%, 0); }
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--fn-text);
    line-height: 1.12;
}

p {
    color: var(--fn-text-muted);
}

a {
    color: inherit;
}

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

img {
    height: auto;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--fn-focus);
    outline-offset: 3px;
}

::selection {
    background: rgba(29, 113, 184, 0.35);
    color: var(--fn-text);
}

.container {
    width: min(100% - 40px, var(--fn-container));
    margin-inline: auto;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 32px, var(--fn-container));
    }
}

@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;
        scroll-behavior: auto !important;
    }
}
