/* ============================================================
   css/base.css — Reset, Typography, Base Elements
   ============================================================ */

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

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-base), color var(--transition-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

button {
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
    background: none;
    font-size: var(--font-size-base);
    color: inherit;
}

input, textarea {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
}

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

/* ----- Utility ----- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-muted {
    color: var(--color-text-muted);
}
.text-secondary {
    color: var(--color-text-secondary);
}

/* ----- Container ----- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
}

/* ----- Transitions for theme ----- */
body,
.site-header,
.site-footer,
.btn,
.prompt-card,
.feature-card,
.access-box,
.detail-container,
input,
.filter-btn {
    transition: background-color var(--transition-base), color var(--transition-base),
        border-color var(--transition-base), box-shadow var(--transition-base);
}