/* ==========================================================================
   Base CSS — Reset & Typography
   --------------------------------------------------------------------------
   Purpose:
   - Global reset
   - Typography defaults
   - Accessibility-safe focus handling
   - Stable layout behavior
   NOTE:
   - This file provides BASE defaults only.

   ========================================================================== */

/* --------------------------------------------------------------------------
   Root Defaults (Strict Font Enforcement)
   -------------------------------------------------------------------------- */
:root {
    /* Font family: bundled fonts only, no system fallbacks */
    --font-family: 'OpenSans';

    /* Neutral fallbacks */
    --bg-color: #000000;
    --text-color: #ffffff;

    /* Focus & accessibility defaults */
    --focus-outline-width: 2px;
    --focus-outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Global Box Model Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --------------------------------------------------------------------------
   Root Document Defaults
   -------------------------------------------------------------------------- */
html {
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* --------------------------------------------------------------------------
   Body Typography & Rendering
   -------------------------------------------------------------------------- */
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);

    line-height: 1.6;
    font-size: 16px;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Text Elements — Safe Defaults
   -------------------------------------------------------------------------- */
p,
li,
dd,
dt {
    line-height: 1.6;
}

/* Prevent headings from inheriting odd margins later */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: inherit;
    line-height: 1.25;
}

/* --------------------------------------------------------------------------
   Links (Visual styling handled elsewhere)
   -------------------------------------------------------------------------- */
a {
    color: inherit;
    text-decoration: none;
}

/* Keyboard-accessible focus (never remove) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: var(--focus-outline-width) solid currentColor;
    outline-offset: var(--focus-outline-offset);
}

/* --------------------------------------------------------------------------
   Images & Media
   -------------------------------------------------------------------------- */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Form Elements — Neutral Reset
   -------------------------------------------------------------------------- */
button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
    background: transparent;
    border: none;
}

/* Remove default button styles without harming accessibility */
button {
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */
ul,
ol {
    list-style: none;
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* --------------------------------------------------------------------------
   Hidden Content (Accessibility Safe)
   -------------------------------------------------------------------------- */
[hidden] {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Motion Safety
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}