/* ==========================================================================
   Base Styles
   Reset and foundational styles
   ========================================================================== */

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

/* -------------------------
   Root Element
   ------------------------- */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* -------------------------
   Typography
   ------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
}

p {
    color: var(--color-text-secondary);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-light);
}

strong {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

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

/* -------------------------
   Images
   ------------------------- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* -------------------------
   Buttons
   ------------------------- */
button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* -------------------------
   Focus Styles
   ------------------------- */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
