/* SurfOS base layout. Tokens only. */
*, *::before, *::after { box-sizing: border-box; }

body.surfos {
    margin: 0;
    background: var(--sos-sand);
    color: var(--sos-ink);
    font-family: var(--sos-font);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: var(--sos-primary); }
a:hover { color: var(--sos-primary-hover); }

/* Two-tone focus ring: visible on the navy header and on light surfaces alike. */
:focus-visible {
    outline: 3px solid var(--sos-sun);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--sos-navy);
}

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: var(--sos-gap);
    top: var(--sos-gap);
    padding: .5rem 1rem;
    background: var(--sos-sun);
    color: var(--sos-navy);
    font-weight: 700;
    z-index: 1000;
}

.sos-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.sos-wrap {
    max-width: var(--sos-max);
    margin: 0 auto;
    padding: 0 var(--sos-gap);
}

/* Header */
.site-header {
    background: var(--sos-navy);
    color: #ffffff;
    border-bottom: 4px solid var(--sos-sun);
}
.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.25rem;
    padding-top: .75rem;
    padding-bottom: .75rem;
}
.site-title {
    color: var(--sos-sun);
    text-decoration: none;
    font-family: var(--sos-font-display);
    font-size: 1.75rem;
    font-style: italic;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #0b2233;
}
.site-title:hover { color: var(--sos-sun-hover); }
.site-title small {
    display: block;
    margin-top: .25rem;
    color: #ffffff;
    font-family: var(--sos-font);
    font-size: .75rem;
    font-style: normal;
    letter-spacing: .08em;
    text-shadow: none;
}
.site-header a:not(.sos-btn):not(.site-title) { color: #ffffff; }

.site-main { padding: 0 0 3rem; }

.site-footer {
    background: var(--sos-navy);
    color: #ffffff;
    padding: 1.5rem 0;
    font-size: .9rem;
}
.site-footer a { color: var(--sos-sun); }
.site-footer p { margin: .25rem 0; }

/* Plain WordPress content (fallback pages) */
.entry { max-width: 50rem; margin: 2rem auto; padding: 0 var(--sos-gap); }
