/* Werkbank brand layer on top of Casper (loaded after built/screen.css, no build step needed).
   Colours and type from SSOT assets/design-system: navy #0B1F3A, cobalt #2558E8 (rationed), ink #111827.
   Headings Mona Sans (OFL), body Inter (OFL); both self-hosted, no font CDN. */
@font-face {
    font-family: "Mona Sans";
    src: url("../fonts/mona-sans-vf.woff2") format("woff2");
    font-weight: 200 900;
    font-stretch: 75% 125%;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-opsz.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --wb-navy: #0B1F3A;
    --wb-cobalt: #2558E8;
    --wb-ink: #111827;
    --wb-grey: #5F6774;
    --wb-hairline: #E3E7EE;
    --wb-shell: #F4F6F9;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: "Mona Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --color-darkgrey: var(--wb-ink);
    --color-midgrey: var(--wb-grey);
    --color-border: var(--wb-hairline);
    --color-wash: var(--wb-shell);
}

body {
    color: var(--wb-ink);
    font-family: var(--gh-font-body, var(--font-sans));
    font-feature-settings: "tnum" 1;
}

.site-title,
.article-title,
.post-card-title,
.gh-content > h1, .gh-content > h2, .gh-content > h3, .gh-content > h4,
.footer-cta-title,
.author-profile-title {
    font-family: var(--gh-font-heading, var(--font-heading));
    color: var(--wb-navy);
    letter-spacing: -0.02em;
}

/* Header and footer carry the navy; cobalt stays the accent (links, buttons) via --ghost-accent-color. */
.gh-head {
    background: var(--wb-navy);
    color: #fff;
}
.gh-head a,
.gh-head .gh-head-logo,
.gh-head-menu .nav a { color: #fff; }
.site-footer { background: var(--wb-navy); }

.gh-content a { color: var(--ghost-accent-color, var(--wb-cobalt)); }
.gh-content a:hover { color: #1E48BE; }

/* Dark mode keeps navy as the ground, never pure black. */
html.dark-mode body { background: #0B1F3A; color: #E3E7EE; }
html.dark-mode .article-title,
html.dark-mode .post-card-title,
html.dark-mode .gh-content > h2,
html.dark-mode .gh-content > h3 { color: #fff; }
@media (prefers-color-scheme: dark) {
    html.auto-color body { background: #0B1F3A; color: #E3E7EE; }
    html.auto-color .article-title,
    html.auto-color .post-card-title,
    html.auto-color .gh-content > h2,
    html.auto-color .gh-content > h3 { color: #fff; }
}
