/**
 * Base layer — reset, document defaults, typography primitives and the layout
 * container. Depends on tokens.css (loaded before this file).
 */

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--weight-regular);
    line-height: var(--lh-body);
    color: var(--color-navy-mid);
    background: var(--color-page-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
    margin: 0;
    font-weight: var(--weight-regular);
    line-height: 1.1;
}

p {
    margin: 0 0 1em;
}

/* ---------- Layout container ----------
   .site-container = standard centered content wrapper.
   Modifiers narrow it for specific sections. */
.site-container {
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
    padding-inline: var(--side-padding);
}

.site-container--narrow {
    max-width: var(--content-narrow);
}

/* ---------- Section rhythm helpers ----------
   Apply to each <section> wrapper. Background classes drive the
   dark/light alternation defined in the spec. */
.section {
    padding-block: var(--section-padding-v);
}

.section--dark {
    background: var(--color-navy-deep);
    color: var(--color-off-white);
}

.section--dark-mid {
    background: var(--color-navy-mid);
    color: var(--color-off-white);
}

.section--light {
    background: var(--color-page-bg);
    color: var(--color-navy-mid);
}

/* ---------- Reusable type primitives ---------- */
.eyebrow {
    font-family: var(--font-body);
    font-size: var(--fs-label);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.04em;
    color: var(--color-gold);
    margin: 0 0 16px;
}

.display {
    font-family: var(--font-display);
}

/* Gold gradient applied to text (hero highlight, "Meet [Name]"). */
.text-gold-gradient {
    background: var(--gradient-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Screen-reader-only utility for accessible labels. */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}

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