/* ==========================================================
ALPHASTRIKE OS
Design Engine

File        : 02_reset.css
Version     : 1.0.0
Created     : 12 August 2026
Maintainer  : ALPHASTRIKE
Description : Modern CSS reset. Runs before typography/layout so
              every browser starts from the same baseline.
Copyright (c) 2026 ALPHASTRIKE
    All Rights Reserved.
============================================================*/

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

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

body {
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

#root,
#__next {
    isolation: isolate;
}

/* =========================================================
   HIDDEN ATTRIBUTE
   Every component that toggles visibility via the native
   `hidden` attribute (modal, mobile nav, loader) depends on
   this. Browsers already default [hidden] to display:none in
   their UA stylesheet, but several components set an
   unconditional `display: flex/block` on the same class with
   equal specificity - author CSS beats a non-!important UA
   rule, so without this explicit override those components
   never actually visually hide once JS sets `hidden`.
   ========================================================= */

[hidden] {
    display: none !important;
}

/* =========================================================
   RESPONSIVE / SIZING FOUNDATION
   ========================================================= */

html,
body {
    overflow-x: hidden;
}

button,
input,
textarea,
select {
    max-width: 100%;
}

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