/* ===========================================
   RESET.CSS - Base Styles & Resets
   =========================================== */

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--fg);
    background-color: var(--bg);
    background-image: url('../img/bg-stars.png');
    background-attachment: fixed;
    font-family: var(--f-mono);
    font-size: 14px;
    line-height: 1.5;

    /* Custom scrollbar */
    scrollbar-color: var(--wired-cyan) #111;
    scrollbar-width: thin;
}

section,
.wired-box {
    scroll-margin-top: 80px;
}

/* Utility classes */
.muted {
    color: var(--fg-dim);
}

.icon {
    margin-right: 8px;
}

/* --- ACCESSIBILITY --- */

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--wired-cyan);
    color: #000;
    padding: 12px 24px;
    font-family: var(--f-pixel);
    font-size: 0.8rem;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s;
}

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

/* Visible focus indicators (keyboard only, not mouse clicks) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--wired-cyan);
    outline-offset: 2px;
}

/* Screen reader only (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;
}