body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    background: var(--color-background);
    color: var(--color-text);
    overflow-x: clip;
}

body.menu-open {
    overflow: hidden;
}

main {
    display: block;
}

h1,
h2,
h3 {
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-tight);
    margin-bottom: var(--space-md);
    text-wrap: balance;
}

p {
    margin-bottom: var(--space-md);
    max-width: 65ch;
}

::selection {
    background: var(--color-accent);
    color: #ffffff;
}

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

.site-main {
    padding-top: 0;
    padding-bottom: 0;
}

/* Section shells — light / dark rhythm */

.section {
    padding-top: var(--space-mega);
    padding-bottom: var(--space-mega);
}

.section-dark {
    background: var(--color-abyss);
    color: var(--color-dark-text);
}

.section-dark .section-title {
    color: #ffffff;
}

.section-dark .section-lead {
    color: var(--color-dark-muted);
}

.section-title {
    font-size: var(--font-size-section);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--space-sm);
}

.section-lead {
    color: var(--color-muted);
    font-size: var(--font-size-lg);
    margin-bottom: 0;
}

.section-head {
    max-width: 780px;
    margin-bottom: var(--space-xxl);
}

.section-head.split {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-md);
    max-width: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.78rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent-ink);
    margin-bottom: var(--space-md);
}

.eyebrow::before {
    content: "";
    width: 2rem;
    height: 2px;
    background: currentColor;
    flex: none;
}

.eyebrow-light {
    color: var(--color-mint);
}

.skip-link {
    position: absolute;
    left: var(--space-md);
    top: -100px;
    z-index: var(--z-skip);
    background: var(--color-primary);
    color: var(--color-background);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-sm);
}

/* Anchored headings clear the fixed header */

[id] {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

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