/* ============================================
   DataLink Tech Portal v01 — Reset & Base
   ============================================ */

/* Fonts vendored locally (static/fonts/) — LAN-reliable, no Google round-trip.
   DM Sans + Fira Code are variable-weight woff2; Outfit is a 700 instance. */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/static/fonts/dm-sans.woff2') format('woff2');
}

@font-face {
    font-family: 'Fira Code';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('/static/fonts/fira-code.woff2') format('woff2');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/static/fonts/outfit-700.woff2') format('woff2');
}

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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: var(--bg-base);
    overflow-x: hidden;
    min-height: 100dvh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-display);
    color: var(--text-primary);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-bright);
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

code, kbd, pre {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}

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

/* Scrollbar — 8px with an inset look (2px transparent border around the
   thumb). Firefox gets the standard properties. */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-default) transparent;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Utility: visually hidden but accessible */
.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;
}

/* Mono text utility */
.mono {
    font-family: var(--font-mono);
}
