/* ============================================
   MODERN CSS RESET — Neovation Custom Learning
   ============================================
   A sensible, modern reset that removes
   browser defaults and sets up a clean
   foundation for the design system.
   ============================================ */


/* ----------------------------------------
   BOX SIZING
   ----------------------------------------
   Use border-box everywhere so padding and
   border are included in element widths.
   ---------------------------------------- */

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


/* ----------------------------------------
   ROOT & DOCUMENT
   ----------------------------------------
   Set base font size (16px), smooth
   scrolling, and prevent text inflation
   on mobile devices.
   ---------------------------------------- */

html {
    font-size: 100%;                       /* 16px base */
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    tab-size: 4;
}


/* ----------------------------------------
   BODY
   ----------------------------------------
   Full viewport height, system font stack
   from variables, smooth font rendering,
   and default text color.
   ---------------------------------------- */

body {
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    color: var(--color-text-secondary);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


/* ----------------------------------------
   HEADINGS
   ----------------------------------------
   Use the heading font stack, primary text
   color, tight line-height, and balanced
   text wrapping for nicer line breaks.
   ---------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    line-height: var(--leading-tight);
    overflow-wrap: break-word;
}


/* ----------------------------------------
   MEDIA ELEMENTS
   ----------------------------------------
   Responsive images, video, and canvas by
   default. Block display removes the inline
   gap below images.
   ---------------------------------------- */

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


/* ----------------------------------------
   LINKS
   ----------------------------------------
   Inherit color from parent (styled via
   components). Remove default underline.
   ---------------------------------------- */

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


/* ----------------------------------------
   LISTS
   ----------------------------------------
   Remove default bullets/numbers. Specific
   list styles are applied via components.
   ---------------------------------------- */

ul,
ol {
    list-style: none;
}


/* ----------------------------------------
   FORM ELEMENTS
   ----------------------------------------
   Inherit font properties from parent so
   form elements match the rest of the UI.
   Remove default appearance on text inputs.
   ---------------------------------------- */

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

textarea {
    resize: vertical;
}


/* ----------------------------------------
   BUTTONS
   ----------------------------------------
   Remove default browser button styling.
   Set pointer cursor and inherit font.
   ---------------------------------------- */

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


/* ----------------------------------------
   TABLES
   ----------------------------------------
   Collapse borders for cleaner table styling.
   ---------------------------------------- */

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


/* ----------------------------------------
   PLACEHOLDER TEXT
   ----------------------------------------
   Consistent placeholder color using
   the muted text token.
   ---------------------------------------- */

::placeholder {
    color: var(--color-text-muted);
    opacity: 1;
}


/* ----------------------------------------
   FOCUS STYLES
   ----------------------------------------
   Remove default outline and add a
   consistent focus-visible ring using
   the accent color.
   ---------------------------------------- */

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 2px;
}


/* ----------------------------------------
   REDUCED MOTION
   ----------------------------------------
   Respect user preference for reduced motion.
   Disable transitions and animations when
   the prefers-reduced-motion media query
   is active.
   ---------------------------------------- */

@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;
    }
}


/* ----------------------------------------
   SCREEN READER ONLY
   ----------------------------------------
   Visually hidden but accessible to
   screen readers. Use .sr-only on elements
   that need to be announced but not seen.
   ---------------------------------------- */

.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;
}
