/* =============================================================================
   base.css — Global reset, typography & base element styles
   ============================================================================= */

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

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--fw-regular);
    line-height: var(--leading-relaxed);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Skip Link --------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--brand-gold);
    color: var(--brand-navy);
    font-weight: var(--fw-bold);
    font-size: var(--text-sm);
    text-decoration: none;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: top var(--t-fast);
}
.skip-link:focus {
    top: 0;
}

/* --- Headings --------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: var(--fw-bold);
    line-height: var(--leading-snug);
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

h1 { font-size: var(--text-4xl); letter-spacing: var(--tracking-tight); }
h2 { font-size: var(--text-3xl); letter-spacing: var(--tracking-snug); font-weight: var(--fw-semibold); }
h3 { font-size: var(--text-2xl); font-weight: var(--fw-semibold); }
h4 { font-size: var(--text-xl);  font-weight: var(--fw-semibold); }
h5 { font-size: var(--text-lg);  font-weight: var(--fw-semibold); }
h6 { font-size: var(--text-base);font-weight: var(--fw-semibold); }

/* --- Body text -------------------------------------------------------------- */
p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-text);
}

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

.lead {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-text-muted);
}

/* --- Links ------------------------------------------------------------------ */
a {
    color: var(--color-primary);
    text-decoration-color: transparent;
    transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
a:hover {
    color: var(--color-accent);
    text-decoration-color: currentColor;
}
a:focus-visible {
    outline: 2px solid var(--brand-gold);
    outline-offset: 3px;
    border-radius: 2px;
}

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

/* --- Lists ------------------------------------------------------------------ */
ul, ol {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
li { margin-bottom: 0.25rem; }

/* Unstyled helper */
.list-unstyled {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

/* --- Tables ----------------------------------------------------------------- */
table { border-collapse: collapse; width: 100%; }

/* --- Horizontal rule ------------------------------------------------------- */
hr {
    border: none;
    border-top: 1px solid var(--color-border-light);
    margin: var(--space-xl) 0;
}

/* --- Selection ------------------------------------------------------------- */
::selection {
    background: var(--brand-gold);
    color: var(--brand-navy);
}

/* --- Focus ring (global) --------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--brand-gold);
    outline-offset: 3px;
}

/* --- Label / meta text ----------------------------------------------------- */
.text-label {
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-wide);
    line-height: 1;
    text-transform: uppercase;
}

.text-eyebrow {
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    line-height: 1;
}

/* --- Blockquote / editorial quote ----------------------------------------- */
.quote-editorial {
    font-size: var(--text-2xl);
    font-weight: var(--fw-light);
    line-height: var(--leading-normal);
    font-style: italic;
    color: inherit;
}

.quote-editorial--large {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

/* --- Divider line ---------------------------------------------------------- */
.divider-gold {
    display: block;
    width: 3.5rem;
    height: 3px;
    background-color: var(--brand-gold);
    border: none;
    margin-bottom: var(--space-lg);
}

.divider-gold--center {
    margin-left: auto;
    margin-right: auto;
}

/* --- Demo banner ----------------------------------------------------------- */
.demo-banner {
    background: #FFF8E1;
    border: 1px solid var(--brand-gold);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: var(--text-sm);
    color: var(--brand-charcoal);
    margin-bottom: var(--space-lg);
}

.demo-banner strong { color: var(--brand-navy); }
