/*
 * ============================================================
 * Flux Web Studio — Global Stylesheet
 * ============================================================
 * Import order:
 *   1. tokens.css   — Design tokens (variables)
 *   2. global.css   — Reset + base rules (this file)
 * ============================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import './tokens.css';

/* --------------------------------------------------
 * BOX MODEL RESET
 * -------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --------------------------------------------------
 * ROOT / HTML
 * -------------------------------------------------- */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* --------------------------------------------------
 * BODY
 * -------------------------------------------------- */
body {
    font-family: var(--font-primary);
    font-size: var(--text-body);
    font-weight: var(--font-weight-regular);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-base);
    min-height: 100vh;
}

/* --------------------------------------------------
 * TYPOGRAPHY — Base Elements
 * -------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
}

p {
    color: var(--color-text-muted);
    line-height: var(--leading-normal);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-glow-400);
}

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

/* --------------------------------------------------
 * IMAGES & MEDIA
 * -------------------------------------------------- */
img,
video,
svg {
    display: block;
    max-width: 100%;
}

/* --------------------------------------------------
 * BUTTONS — Base Reset
 * -------------------------------------------------- */
button {
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    background: none;
}

/* --------------------------------------------------
 * INPUTS — Base Reset
 * -------------------------------------------------- */
input,
textarea,
select {
    font-family: var(--font-primary);
    font-size: var(--text-body);
    border: none;
    outline: none;
    background: none;
    color: inherit;
}

/* --------------------------------------------------
 * SECTION UTILITY
 * -------------------------------------------------- */
.section {
    padding-block: var(--section-spacing-md);
}

.section--lg {
    padding-block: var(--section-spacing-lg);
}

.section--sm {
    padding-block: var(--section-spacing-sm);
}

/* --------------------------------------------------
 * FOCUS VISIBLE
 * -------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--color-glow-400);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* --------------------------------------------------
 * SKIP LINK — keyboard accessibility
 * -------------------------------------------------- */
.skip-link {
    position: fixed;
    top: -100%;
    left: var(--space-4);
    z-index: 9999;
    padding: var(--space-3) var(--space-6);
    background: var(--color-glow-400);
    color: var(--color-bg-base);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: var(--space-4);
    outline: 2px solid #fff;
    outline-offset: 2px;
}