/* =============================================================================
   BASE — reset, accessibility utilities, layout primitives, type helpers
============================================================================= */

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

html  { scroll-behavior: smooth; }

body  {
    font-family: var(--font-body);
    color: var(--slate);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img    { display: block; max-width: 100%; height: auto; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }
input,
select,
textarea { font-family: var(--font-body); }
address  { font-style: normal; }

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

/* ── 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;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section       { padding: 4.5rem 0; }
.section--alt  { background: var(--cream); }

/* ── Section typography helpers ───────────────────────────────────────────── */
.section-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.15;
}
.section-heading--light { color: var(--white); }

.section-sub {
    font-size: 1rem;
    color: var(--muted);
    margin-top: 0.6rem;
    max-width: 520px;
    line-height: 1.7;
}
.section-sub--light { color: rgba(255,255,255,0.65); }

.section-header         { margin-bottom: 3rem; }
.section-header--center { text-align: center; }
.section-header--center .section-sub {
    margin-left: auto;
    margin-right: auto;
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── CR: fysh-a11y-skiplink-2026-07-18 ────────────────────────────────────
   Skip-to-main-content link.
   Emitted once by partials/head.php as the first focusable body element.
   WCAG 2.4.1 / 2.4.7: visually hidden until focused, then anchors to the
   top-left with high contrast and a gold ring. z-index sits above the
   sticky header so the ring isn't clipped when it reveals. */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus,
.skip-link:focus-visible {
    position: fixed;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    padding: 12px 20px;
    margin: 0;
    overflow: visible;
    clip: auto;
    z-index: 10000;
    background: #0F2340;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    outline: 3px solid #C9A84C;
    outline-offset: 2px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
