@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-var.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Space Grotesk";
    src: url("/assets/fonts/space-grotesk-var.woff2") format("woff2-variations");
    font-weight: 300 700;
    font-display: swap;
}

:root {
    --bg: #07070c;
    --bg-2: #0a0a12;
    --surface: #101019;
    --surface-2: #151522;
    --surface-3: #1b1b2b;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f3f1fb;
    --muted: #a7a3ba;
    --muted-2: #807c96;
    --violet: #7c2fd0;
    --violet-bright: #8b5cf6;
    --violet-soft: #c4b5fd;
    --orange: #f2661f;
    --green: #4ade80;
    --amber: #fbbf24;
    --red: #f87171;

    --status-moving: #22c55e;
    --status-stopped: #f59e0b;
    --status-offline: #94a3b8;
    --map-bg: #eef1f6;

    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.55);
    --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.35);
    --font-display: "Space Grotesk", "Arial Black", Arial, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 64px;
    --status-h: 38px;
    --aside-w: 392px;
}

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

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

h1, h2, h3, p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--violet-bright);
    outline-offset: 2px;
}

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

/* `hidden` debe ganar a los display de las clases de layout. */
[hidden] {
    display: none !important;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    background: var(--violet);
    color: #fff;
    text-decoration: none;
    transition: top 160ms var(--ease);
}

.skip-link:focus {
    top: 12px;
}

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