/* ============================================================
   blackgreen — custom overrides for the Source theme
   Palette from the original jonathansnet.com landing (2026):
   bg #07090c, accent #34d399, text #e8ecf1, muted #76828f
   ============================================================ */

:root {
    --bg: #07090c;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.055);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #e8ecf1;
    --text-2: #aab4c0;
    --muted: #76828f;
    --accent: #34d399;
    --accent-hi: #6ee7b7;
    --accent-dim: rgba(52, 211, 153, 0.12);
}

/* --- body backdrop: dot grid + top glow like the old landing --- */
body {
    background-color: var(--bg) !important;
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -8%, rgba(52, 211, 153, 0.06), transparent 65%),
        radial-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px) !important;
    background-size: 100% 100%, 28px 28px;
    background-attachment: fixed;
}

/* --- links & accent --- */
a {
    color: var(--text);
    text-decoration-color: rgba(52, 211, 153, 0.35);
    text-underline-offset: 3px;
}
a:hover { color: var(--accent-hi); }
.gh-navigation a, .gh-footer a { color: var(--text); }
.gh-navigation a:hover, .gh-footer a:hover { color: var(--accent-hi); }
.gh-card a { text-decoration: none; }
.gh-card a:hover h2, .gh-card a:hover h3 { color: var(--accent-hi); }
.gh-card a:hover { color: var(--accent-hi); }

/* --- navigation --- */
.gh-navigation {
    background: rgba(7, 9, 12, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.gh-navigation.is-left-logo .gh-navigation-logo,
.gh-navigation.is-middle-logo .gh-navigation-logo,
.gh-navigation.is-stacked .gh-navigation-logo {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.02em;
}
.gh-navigation-menu .nav {
    gap: 4px;
}
.gh-navigation-menu .nav li a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-2);
}
.gh-navigation-menu .nav li a:hover {
    color: var(--text);
    background: var(--surface-2);
}
.gh-navigation-menu .nav li.nav-current a {
    color: var(--accent);
    background: var(--accent-dim);
}
.gh-navigation-actions .gh-search, 
.gh-navigation-actions .gh-icon-button { color: var(--text-2); }

/* --- hero / header text on home --- */
.gh-header {
    border-bottom: none;
}
.gh-header-content {
    padding-top: clamp(56px, 12vh, 110px);
    padding-bottom: clamp(24px, 5vh, 48px);
}
.gh-header-eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
}
.gh-header-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
    animation: gh-pulse 2.6s ease-out infinite;
}
@keyframes gh-pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
    70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.gh-header-title {
    font-size: clamp(2.5rem, 8vw, 4.4rem);
    letter-spacing: -0.035em;
    line-height: 1.04;
    font-weight: 600;
    color: var(--text);
}
.gh-header-lede {
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
    color: var(--text-2);
    max-width: 56ch;
    margin: 18px 0 0;
}
.gh-header-inner { padding-top: 0; padding-bottom: 0; }

/* --- hero subscribe form --- */
.gh-header-signup {
    max-width: 440px;
    margin-top: 28px;
}
.gh-header-signup .gh-form {
    display: flex;
    gap: 10px;
}
.gh-header-signup .gh-form-input {
    flex: 1;
    font-size: 1.45rem;
    padding: 13px 20px;
}
.gh-header-signup .gh-button {
    white-space: nowrap;
}

/* --- footer signup --- */
.gh-footer-signup {
    text-align: left;
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
    margin-bottom: 24px;
}
.gh-footer-signup-header {
    font-size: 2.2rem;
    color: var(--text);
    letter-spacing: -0.02em;
}
.gh-footer-signup-subhead {
    color: var(--muted);
    max-width: 52ch;
}
.gh-footer-signup .gh-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
}

/* --- main container width: tighter than Source's 1320px --- */
.gh-container { max-width: 760px; }
.gh-container.is-sidebar { max-width: 1080px; }
.gh-container .gh-postfeed { }

/* --- post cards --- */
.gh-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    padding: 22px;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.gh-card:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
}
.gh-card-title {
    font-size: 1.9rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    font-weight: 600;
}
.gh-card-excerpt { color: var(--muted); font-size: 1.45rem; }
.gh-card-meta { color: var(--muted); font-size: 1.3rem; }
.gh-card-meta a { color: var(--muted); }
.gh-card-meta a:hover { color: var(--accent); }

/* --- section label (LATEST etc) --- */
.gh-postfeed-title, .gh-container-title {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 14px;
}
.gh-postfeed-title::after, .gh-container-title::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, var(--border), transparent);
}
.gh-postfeed-title .gh-postfeed-title-count, .gh-container-title .gh-postfeed-title-count {
    color: var(--accent);
}

/* --- footer --- */
.gh-footer {
    background: transparent;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 1.3rem;
}
.gh-footer .gh-footer-logo, .gh-footer-title { color: var(--text); font-weight: 600; }
.gh-footer a { color: var(--muted); }
.gh-footer a:hover { color: var(--accent-hi); }

/* --- buttons (accent green) --- */
.gh-button, .gh-form .gh-button, .gh-cta-button {
    background: var(--accent);
    color: #04120c;
    border-radius: 999px;
    font-weight: 600;
}
.gh-button:hover { background: var(--accent-hi); color: #04120c; }
.gh-form-input, input.gh-input {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 999px;
}

/* --- code / inline mono --- */
code, kbd, pre, samp {
    font-family: var(--font-mono);
}

/* --- article typography --- */
.gh-content {
    color: var(--text-2);
    font-size: 1.7rem;
}
.gh-content h1, .gh-content h2, .gh-content h3, .gh-content h4 {
    color: var(--text);
    letter-spacing: -0.02em;
}
.gh-content a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.gh-content blockquote { border-left-color: var(--accent); }
.gh-content hr { border-color: var(--border); }

/* --- callout cards (used on Games page) --- */
.kg-callout-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.kg-callout-card-accent { background: var(--accent-dim); border-color: rgba(52,211,153,.3); }
.kg-callout-card-accent .kg-callout-text { color: var(--text); }
.kg-callout-card code { background: rgba(255,255,255,.12); padding: .15em .4em; border-radius: 4px; }

/* --- misc surfaces Source might hardcode white --- */
.gh-search-lightbox, .gh-search-header, .gh-search-body, .gh-lightbox-content {
    background-color: var(--bg);
    color: var(--text);
}
.gh-navigation-members .gh-button { background: var(--accent); color: #04120c; }
