/* Site layer of the new design: shell (header, footer) and the pieces shared by all pages.
   Tokens and components live in design-system.css. Page styles live in their own file (e.g. home.css). */

:root {
    /* accent wash over the photos: 1 shows it, 0 removes it */
    --duotone-opacity: 0;
}

html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-900); }
.btn, .btn:hover { text-decoration: none; }
.btn-primary, .btn-primary:hover { color: var(--color-bg); }
.btn-secondary, .btn-secondary:hover { color: var(--color-text); }
.btn-ghost, .btn-ghost:hover { color: var(--color-accent-700); }

.duotone::after { opacity: var(--duotone-opacity); }
.duotone > img,
.duotone > a > img { width: 100%; height: 100%; object-fit: cover; }

/* — layout helpers — */
.site-inner { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
.site-main { flex: 1; width: 100%; padding: 0 0 64px; }
.site-main--flush { padding-bottom: 0; }

.section-link {
    font-family: var(--font-heading); font-weight: var(--font-heading-weight);
    font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em;
    text-decoration: none;
}

/* — staging notice — */
.site-notice {
    margin: 0; padding: 10px 24px; text-align: center;
    background: var(--color-accent-700); color: var(--color-bg);
    font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
}

/* — header — */
.site-header {
    position: sticky; top: 0; z-index: 5;
    background: var(--color-accent-900); color: var(--color-bg);
    border-bottom: 1px solid var(--color-accent-700);
}
.site-header__inner {
    max-width: 1240px; margin: 0 auto; padding: 10px 24px;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.site-brand {
    display: flex; flex-direction: column; align-items: flex-start; line-height: 1; margin-right: auto;
    color: inherit; text-decoration: none;
}
.site-brand:hover { color: inherit; }
.site-brand__logo { height: 48px; width: auto; }
.site-brand__name {
    font-family: var(--font-heading); font-weight: var(--font-heading-weight);
    font-size: 22px; letter-spacing: 0.02em;
}
.site-brand__sub {
    font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--color-accent-300); margin-top: 6px; white-space: nowrap;
}
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
    font-family: var(--font-heading); font-weight: var(--font-heading-weight);
    font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 6px 10px; color: inherit; text-decoration: none;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--color-accent-300); }
.site-nav a[aria-current='page'] { border-bottom-color: var(--color-accent-300); }

/* — footer — */
.site-footer { background: var(--color-accent-900); color: var(--color-accent-300); }
.site-footer__inner {
    max-width: 1240px; margin: 0 auto; padding: 28px 24px;
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: 13px;
}
.site-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--color-bg); }

/* — page title block (inner pages) — */
.page-title { max-width: 1240px; margin: 0 auto; padding: 32px 24px 0; }
.page-title h6 { color: var(--color-accent-700); }
.page-title h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; margin: 0; }
.page-title__lede { font-size: 16px; opacity: 0.7; max-width: 60ch; margin: 12px 0 0; }

.empty-line { font-size: 14px; opacity: 0.7; }

/* hidden on screen, still read by screen readers */
.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* back to top */
.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 50;
    width: 44px; height: 44px; font-size: 18px; box-shadow: var(--shadow-md);
}
.to-top[hidden] { display: none; }
