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

/* Base */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--space-md));
}

body {
    background-color: var(--off-white);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.78;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--black);
    line-height: 1.1;
}

h1 {
    font-size: var(--fs-h1);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h2 {
    font-size: var(--fs-h2);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h3 {
    font-size: var(--fs-h3);
    font-weight: 700;
    line-height: 1.56;
}

h4 {
    font-size: 1rem;
    font-weight: 700;
}

h5 {
    font-size: 0.9rem;
    font-weight: 700;
}

h6 {
    font-size: 0.85rem;
    font-weight: 700;
}

/* Body text */
p, li, td {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.78;
    color: var(--color-black);
}

p + p {
    margin-top: var(--space-md);
}

/* Links */
a {
    color: var(--red);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--red-dark);
}

/* Lists */
ul, ol {
    list-style: none;
}

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

/* Selection */
::selection {
    background-color: var(--red);
    color: var(--white);
}

/* HR */
hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: var(--space-xl) 0;
}

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

/* Figcaption */
figcaption {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--color-black);
    margin-top: var(--space-xs);
}

/* Caption class */
.caption {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--color-black);
}

/* Screen reader only */
.sr-only,
.visually-hidden {
    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 */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    z-index: 9999;
    background: var(--red);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-weight: 500;
}

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

/* ── Typography utility classes ─────────────────────────────────────────── */

.display {
    font-family: var(--font-display);
    font-size: var(--fs-display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--black);
}

.h1, .hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-h1);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--black);
}

.h2, .section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-h2);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--black);
}

.h3, .card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-h3);
    line-height: 1.45;
    color: var(--black);
}

.body-text {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.78;
    color: var(--color-black);
}

/* ── WordPress admin bar offset ─────────────────────────────────────────── */

body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    body.admin-bar .site-nav {
        top: calc(var(--header-height) + 46px);
    }
}
