/* base.css — Reset, typography, layout utilities */

h1, h2, h3,
.section-title-sm,
.brand-name,
.editorial-title,
.editorial-service-title,
.headline,
.cascade-title {
    font-family: var(--font-title);
}

html {
    scroll-behavior: smooth;
}

/* Skip Link — visible only on focus for keyboard users */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    padding: 12px 20px;
    background: var(--charcoal);
    color: var(--bone);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: top 150ms ease;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid var(--persimmon);
}

/* Responsive visibility utilities */
.mobile-only { display: none; }
.desktop-only { display: inline; }

@media (max-width: 768px) {
    .mobile-only { display: inline; }
    .desktop-only { display: none; }
}

/* Client View */
body.client-view .page-content {
    margin-top: 0;
    padding-top: 0;
}

:where(body.client-view) {
    --section-scroll-offset: 96px;
}

:where(body.client-view) #header-section > header {
    top: 0;
}

/* Page Content — main content wrapper */
.page-content {
    min-height: 100vh;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    isolation: isolate;
}

.page-content > .section {
    position: relative;
    z-index: 1;
}

/* Header & Hero */
#header-section {
    position: relative;
    min-height: 0;
    height: 0;
    z-index: 950;
    background: transparent !important;
}

#header-section::before,
#header-section::after {
    display: none !important;
}

#header-section > header {
    position: fixed;
    top: var(--header-top-offset, 0);
    left: 0;
    right: 0;
    z-index: 951;
}

#hero-section {
    padding: 0;
    margin: 0;
}

#hero-section .hero-a,
#hero-section .hero-c,
#hero-section .hero-d {
    margin: 0;
}

/* Prevent horizontal overflow */
.page-content,
.page-content > .section {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Photo Credit */
.site-footer {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--bone);
    text-align: center;
    padding: 20px 16px 24px;
    margin: 0;
    background: var(--charcoal);
    display: flex;
    justify-content: center;
    gap: 8px;
}

.site-footer .photo-credit,
.site-footer .site-credit {
    display: inline;
}

.site-footer .photo-credit::after {
    content: "·";
    margin-left: 8px;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 24px 16px 32px;
        font-size: 9px;
        flex-direction: column;
        gap: 6px;
    }
    .site-footer .photo-credit::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 20px 12px 28px;
    }
}
