/* ==========================================================================
   ASI CONSTRUCT - Base Styles (Reset + Typography)
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text-secondary);
    background-color: var(--color-bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.2s ease, color 0.2s ease;
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: transparent;
}

/* Typography - Headlines */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tighter);
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--text-hero);
}

h2 {
    font-size: clamp(32px, 6vw, 64px);
}

h3 {
    font-size: clamp(24px, 4vw, 36px);
}

h4 {
    font-size: clamp(20px, 3vw, 28px);
}

/* Typography - Body */
p {
    font-family: var(--font-sans);
    line-height: var(--leading-relaxed);
}

/* Ensure paragraph text uses Inter throughout */
.module-description,
.case-card-excerpt,
.cta-subtitle,
.inverted-text,
.footer-tagline,
.faq-answer p {
    font-family: var(--font-sans);
}

strong {
    font-weight: 600;
}

/* Links with underline animation */
a.link-underline {
    position: relative;
    display: inline-block;
}

a.link-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width var(--duration-normal) var(--ease-out-expo);
}

a.link-underline:hover::after {
    width: 100%;
}

/* Labels - Editorial Style (Inter, 10px, 0.3em tracking, uppercase) */
.label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

/* Highlight/Mark */
mark, .highlight {
    background: transparent;
    color: var(--color-accent);
}

/* Selection */
::selection {
    background-color: var(--color-accent);
    color: var(--color-black);
}

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

/* Stroke Text - Brutalist Editorial (transparent fill, themed stroke) */
.text-stroke,
.stroke {
    -webkit-text-stroke: 2px var(--color-stroke);
    -webkit-text-fill-color: transparent;
}

.text-stroke-acid {
    -webkit-text-stroke: 2px var(--color-accent);
    -webkit-text-fill-color: transparent;
}

/* Filled Text - Acid accent */
.text-fill-acid,
.fill-acid {
    color: var(--color-accent);
    -webkit-text-stroke: 0;
    -webkit-text-fill-color: var(--color-accent);
}

/* Screen Reader Only */
.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;
}

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

/* Responsive Container Padding */
@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 12px;
    }
}
