/* Explain: Base reset and typography defaults for RTN Express, with accessibility improvements. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    color: var(--text-color);
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-feature-settings: "liga" 1, "kern" 1;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    filter: saturate(1.5) contrast(1.15);
}

a {
    text-decoration: none;
}

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

::selection {
    background: var(--accent-color);
    color: var(--night-color);
}

:focus-visible {
    outline: 3px solid var(--night-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(255, 90, 31, 0.55);
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 50%;
    z-index: 100;
    transform: translate(-50%, -200%);
    border-radius: 999px;
    background: var(--accent-color);
    color: var(--night-color);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
    transition: transform 220ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translate(-50%, 0);
}

@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;
    }
}