/*
 * Global base stylesheet — loaded on every request.
 *
 * Contains ONLY design tokens, @font-face declarations and a base element
 * reset carried over unchanged from the approved static build's site.css
 * (see assets/css/legacy/site.legacy.css for the untouched original).
 *
 * This file must NOT grow to contain page-specific or component-specific
 * rules — those belong in assets/css/pages/{slug}.css or
 * assets/css/components/{name}.css respectively, loaded conditionally via
 * inc/enqueue/styles.php.
 */

@font-face {
    font-family: "Noto Sans";
    src: url("../../fonts/noto-sans-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Noto Serif";
    src: url("../../fonts/noto-serif-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --navy: #081d33;
    --green: #5f9b85;
    --forest: #326b57;
    --blue: #2d6f9f;
    --ivory: #f7f4ee;
    --sage: #eaf2ee;
    --charcoal: #243039;
    --slate: #5d6a71;
    --stone: #d6e0db;
    --white: #fff;
    --serif: "Noto Serif", Georgia, "Times New Roman", serif;
    --sans: "Noto Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --shadow-sm: 0 12px 36px rgba(8, 29, 51, .08);
    --shadow-lg: 0 28px 80px rgba(8, 29, 51, .16);
    --radius: 28px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--charcoal);
    background: var(--ivory);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

.icon {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
}

.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;
}

a {
    color: inherit;
    text-decoration-thickness: .08em;
    text-underline-offset: .2em;
}

button, input, select, textarea {
    font: inherit;
}

h1, h2, h3 {
    margin: 0;
    color: var(--navy);
    font-family: var(--serif);
    line-height: 1.05;
    letter-spacing: -.035em;
}

h1 { font-size: clamp(3rem, 7.4vw, 6.75rem); }
h2 { font-size: clamp(2.25rem, 4.6vw, 4.3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.2; }
p { margin: 0; }

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

@media (max-width: 600px) {
    .container { width: min(100% - 28px, 1180px); }
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    transform: translateY(-160%);
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    font-weight: 700;
}

.skip-link:focus {
    transform: none;
}

/* Visually hidden but screen-reader accessible utility, used by WordPress
   core (e.g. "Skip to content", form labels) and available for template
   parts as they're built out. */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    word-wrap: normal !important;
}
