/* ============================================================
   RoboSpati — Base / Reset
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-medium);
    line-height: var(--lh-body);
    color: var(--body-color);
    background-color: var(--white);
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
    color: var(--heading-color);
    margin-top: 0;
}

p { margin-top: 0; }

a {
    color: var(--cta);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--navy-2); }

img,
video {
    max-width: 100%;
    height: auto;
}

figure { margin: 0; }

ul[class],
ol[class] { padding-left: 0; }

::selection {
    background: rgba(11, 143, 234, .18);
    color: var(--navy);
}

:focus-visible {
    outline: 3px solid rgba(11, 143, 234, .45);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Visually hidden utility */
.visually-hidden:not(:focus):not(:active) {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
