/* ============================================================
   base.css — Reset, Typography, Global Element Styles
   Fatigue Answers
   ============================================================ */

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

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

body {
    background-color: var(--color-bg);
    color: var(--color-secondary);
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul,
ol {
    list-style: none;
}

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

/* --- Typography --- */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--color-secondary);
    line-height: 1.2;
}

h1 {
    font-size: clamp(36px, 5vw + 1rem, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(28px, 3vw + 1rem, 42px);
    font-weight: 700;
}

h3 {
    font-size: clamp(20px, 1.5vw + 0.5rem, 24px);
    font-weight: 700;
    line-height: 1.3;
}

h4 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
}

p {
    max-width: 65ch;
    line-height: 1.6;
    margin-bottom: 1.1em;
}

p:last-child {
    margin-bottom: 0;
}

/* --- Links --- */

a {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity var(--duration-slow) var(--ease-therapeutic);
}

a:hover {
    opacity: 0.7;
}

/* --- Labels / data tags --- */
/* Use for condition tags, article categories, section metadata */

.label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* --- Eyebrow / kicker --- */
/* Italic serif. 1–3 words MAX above an H2. Never for mission-critical info. */

.eyebrow {
    display: block;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.3;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.eyebrow--teal {
    color: var(--color-cta);
}

/* --- Horizontal rule --- */

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 48px 0;
}

/* --- Focus styles (accessibility) --- */

:focus-visible {
    outline: 2px solid var(--color-cta);
    outline-offset: 3px;
    border-radius: 4px;
}
