/* ============================================
   BASE STYLES - Reset & Foundations
   ============================================ */

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

/* Reset margins and paddings */
* {
    margin: 0;
    padding: 0;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
}

/* Body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
    font-family: var(--font-family);
    font-size: var(--text-body);
    font-weight: var(--font-regular);
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Remove built-in form typography styles */
input,
button,
textarea,
select {
    font: inherit;
}

/* Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* Headings */
h1,
.h1 {
    font-size: var(--text-h1);
    font-weight: var(--font-bold);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2,
.h2 {
    font-size: var(--text-h2);
    font-weight: var(--font-bold);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h3,
.h3 {
    font-size: var(--text-h3);
    font-weight: var(--font-semibold);
    line-height: 1.2;
}

h4,
.h4 {
    font-size: var(--text-h4);
    font-weight: var(--font-semibold);
    line-height: 1.25;
}

/* Links */
a {
    color: var(--primary-300);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-200);
}

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

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

/* Section spacing */
.section {
    padding-top: var(--space-14);
    padding-bottom: var(--space-14);
}

@media (max-width: 768px) {
    .section {
        padding-top: var(--space-11);
        padding-bottom: var(--space-11);
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-300);
}

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

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

.text-light {
    color: var(--neutral-50);
}

.bg-primary {
    background-color: var(--primary-300);
}

.bg-dark {
    background-color: var(--primary-500);
}

.bg-light {
    background-color: var(--neutral-100);
}

/* Visually hidden (for accessibility) */
.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;
}