/* ==========================================================================
   simmons.systems Ghost Theme — screen.css
   Complete stylesheet for the custom Ghost blog theme.
   Design system mirrors simmons.systems main site.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Google Fonts
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --------------------------------------------------------------------------
   1. Custom Properties
   -------------------------------------------------------------------------- */
:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --accent-color: #10b981;
    --card-bg: #171717;
    --surface: rgba(12, 14, 22, 0.60);
    --surface-strong: rgba(8, 10, 16, 0.78);
    --surface-border: rgba(255,255,255,0.08);
    --nav-bg: rgba(10, 10, 10, 0.8);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    --fx-aurora-opacity: 0.85;
    --fx-grid-opacity: 0.38;
    --fx-scan-opacity: 0.36;
    --fx-signal-opacity: 0.22;
    --fx-vignette-opacity: 0.45;
    --nav-h: 80px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: #fff;
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.3);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #333 #0a0a0a;
}

/* --------------------------------------------------------------------------
   3. FX Layers
   -------------------------------------------------------------------------- */

/* Aurora glow */
.fx-aurora {
    position: fixed; inset: -25%; pointer-events: none; z-index: 0;
    opacity: var(--fx-aurora-opacity);
    filter: blur(60px) saturate(165%);
    background:
        radial-gradient(circle at 18% 22%, rgba(59, 130, 246, 0.65), transparent 52%),
        radial-gradient(circle at 82% 28%, rgba(139, 92, 246, 0.55), transparent 56%),
        radial-gradient(circle at 60% 85%, rgba(255, 255, 255, 0.10), transparent 55%);
    mix-blend-mode: screen;
    will-change: transform;
    animation: auroraDrift 14s ease-in-out infinite alternate;
}

@keyframes auroraDrift {
    0%   { transform: translate3d(-2%, -1%, 0) scale(1.02); }
    100% { transform: translate3d(2%,  1%, 0) scale(1.06); }
}

/* Tech grid */
.fx-grid {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    opacity: var(--fx-grid-opacity);
    background-image:
        linear-gradient(rgba(59,130,246,0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: gridDrift 10s linear infinite;
    mix-blend-mode: screen;
}

@keyframes gridDrift {
    0%   { background-position: 0 0; }
    100% { background-position: 320px 240px; }
}

/* Scanline */
.fx-scanline {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    opacity: var(--fx-scan-opacity);
    mix-blend-mode: screen;
}

.fx-scanline::before {
    content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 55%;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.18) 45%, rgba(59,130,246,0.10) 55%, transparent 100%);
    filter: blur(1px);
    animation: scanSweep 6.5s linear infinite;
}

.fx-scanline::after {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(255,255,255,0.05) 1px, transparent 1px, transparent 6px);
    opacity: 0.20;
}

@keyframes scanSweep {
    0%   { transform: translate3d(0, -30%, 0); }
    100% { transform: translate3d(0, 140%, 0); }
}

/* Vignette */
.fx-vignette {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    opacity: var(--fx-vignette-opacity);
    background: radial-gradient(circle at 50% 35%, transparent 0 45%, rgba(0,0,0,0.65) 78%, rgba(0,0,0,0.90) 100%);
}

/* Signal wave overlay */
.fx-signal {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    opacity: var(--fx-signal-opacity);
    mix-blend-mode: screen;
}

.fx-signal::before {
    content: ""; position: absolute; left: -18%; top: 38%; width: 136%; height: 62%;
    background-image: repeating-radial-gradient(circle at 50% 70%, rgba(59, 130, 246, 0) 0 26px, rgba(59, 130, 246, 0.06) 27px 28px, rgba(59, 130, 246, 0) 29px 54px);
    animation: signalDrift 12s linear infinite;
}

@keyframes signalDrift {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-54px); }
}

/* --------------------------------------------------------------------------
   4. Ghost Layout Containers
   -------------------------------------------------------------------------- */
.viewport {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

.outer {
    padding: 0 4vmin;
    position: relative;
    z-index: 1;
}

.inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.gh-main {
    flex: 1 0 auto;
    padding-top: calc(var(--nav-h) + 4vmin);
}

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
#gh-head.gh-head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 100;
    background: linear-gradient(to bottom, rgba(7, 10, 18, 0.78), rgba(7, 10, 18, 0.46));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gh-head-inner {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4vmin;
    gap: 2rem;
}

.gh-head-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.gh-head-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.gh-head-logo:hover {
    color: #fff;
    opacity: 0.9;
}

.gh-head-logo img {
    max-height: 36px;
    width: auto;
}

/* Nav signal bar */
.nav-signal {
    flex: 1 1 520px;
    max-width: 720px;
    min-width: 220px;
    height: 14px;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    padding: 3px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 0 0 1px rgba(59,130,246,0.10), 0 0 24px rgba(59,130,246,0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-signal::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.00) 55%, rgba(0,0,0,0.10));
    pointer-events: none;
}

.nav-signal-bar {
    width: 3px;
    border-radius: 2px 2px 0 0;
    flex-shrink: 0;
    background: linear-gradient(to top, rgba(59,130,246,0.70), rgba(139,92,246,0.55));
    transform-origin: bottom;
    animation: barPulse 2.2s ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * -78ms);
    min-height: 2px;
    height: calc(25% + 55% * sin(var(--i) * 0.45 + 1.2));
}

@keyframes barPulse {
    0%   { transform: scaleY(0.35); opacity: 0.50; }
    50%  { transform: scaleY(1.00); opacity: 1.00; }
    100% { transform: scaleY(0.55); opacity: 0.65; }
}

/* Nav links */
.gh-head-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    flex-shrink: 0;
}

.gh-head-menu .nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.gh-head-menu .nav li {
    list-style: none;
}

.gh-head-menu .nav a {
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 500;
    color: #ccc;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition);
}

.gh-head-menu .nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* Nav actions (search button, etc.) */
.gh-head-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.gh-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.gh-search:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
}

.gh-search svg {
    width: 18px;
    height: 18px;
}

/* Hamburger (mobile) */
.gh-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.gh-burger > div {
    width: 20px;
    height: 2px;
    background: #ccc;
    border-radius: 2px;
    transition: var(--transition);
}

/* --------------------------------------------------------------------------
   6. Post Feed / Card Grid
   -------------------------------------------------------------------------- */
.post-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

.post-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(12, 14, 22, 0.72), rgba(7, 9, 14, 0.56));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--surface-border);
    border-radius: 15px;
    padding: 0;
    transition: var(--transition);
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

/* Card shine on hover */
.post-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.04), transparent);
    transform: skewX(-15deg);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.post-card:hover::before {
    left: 125%;
}

.post-card-content-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
}

.post-card-content {
    padding: 2rem;
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.post-card-excerpt {
    font-size: 1.5rem;
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    color: #666;
}

.post-card-meta-date {
    color: #888;
}

.post-card-meta-length {
    color: #666;
}

.post-card-meta-date + .post-card-meta-length::before {
    content: "\2022";
    margin-right: 1rem;
    color: #444;
}

/* Tag/label badges on cards */
.post-card-tags {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

/* --------------------------------------------------------------------------
   7. Post Page / Article Content
   -------------------------------------------------------------------------- */
.article {
    position: relative;
    z-index: 1;
}

.article-header {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 0 2rem;
}

.article-tag {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.2rem;
}

.article-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.article-excerpt {
    font-size: 2rem;
    color: #a0a0a0;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 2rem;
}

.article-byline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.4rem;
    color: #666;
    flex-wrap: wrap;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--surface-border);
}

.author-name {
    color: #ccc;
    font-weight: 500;
}

.byline-meta-date {
    color: #666;
}

/* Feature image */
.article-image {
    max-width: 1000px;
    margin: 3rem auto;
    border-radius: 15px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------------------
   8. Post Content (gh-content)
   -------------------------------------------------------------------------- */
.gh-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
    font-size: 1.8rem;
    line-height: 1.8;
    color: var(--text-color);
}

.gh-content > * + * {
    margin-top: 2.4rem;
}

/* Headings */
.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4,
.gh-content h5,
.gh-content h6 {
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.3;
    margin-top: 3.6rem;
}

.gh-content h1 { font-size: 3.6rem; font-weight: 800; }
.gh-content h2 { font-size: 2.8rem; font-weight: 700; }
.gh-content h3 { font-size: 2.2rem; font-weight: 700; }
.gh-content h4 { font-size: 1.8rem; font-weight: 600; }

/* Paragraphs */
.gh-content p {
    color: var(--text-color);
}

/* Links */
.gh-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(59, 130, 246, 0.3);
    transition: var(--transition);
}

.gh-content a:hover {
    color: var(--secondary-color);
    text-decoration-color: var(--secondary-color);
}

/* Images in content */
.gh-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.gh-content .kg-image-card,
.gh-content .kg-gallery-card {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.gh-content .kg-image-card img {
    margin: 0 auto;
}

/* Wide and full-width images */
.gh-content .kg-width-wide {
    max-width: 1000px;
    margin-left: calc(50% - 500px);
    margin-right: calc(50% - 500px);
}

.gh-content .kg-width-full {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Image captions */
.gh-content figcaption {
    text-align: center;
    font-size: 1.4rem;
    color: #666;
    margin-top: 1rem;
}

/* Blockquotes */
.gh-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding: 0.4rem 0 0.4rem 2rem;
    color: #a0a0a0;
    font-style: italic;
    font-size: 1.9rem;
    line-height: 1.7;
}

.gh-content blockquote p {
    color: inherit;
}

/* Code — inline */
.gh-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.88em;
    background: var(--card-bg);
    padding: 0.2em 0.5em;
    border-radius: 5px;
    border: 1px solid var(--surface-border);
    color: #e0e0e0;
}

/* Code — blocks */
.gh-content pre {
    background: var(--card-bg);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 2rem;
    overflow-x: auto;
    font-size: 1.5rem;
    line-height: 1.7;
}

.gh-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
}

/* Lists */
.gh-content ul,
.gh-content ol {
    padding-left: 2.4rem;
}

.gh-content li {
    margin-bottom: 0.6rem;
}

.gh-content li::marker {
    color: var(--primary-color);
}

/* Horizontal rules */
.gh-content hr {
    border: none;
    border-top: 1px solid var(--surface-border);
    margin: 4rem 0;
}

/* Tables */
.gh-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
}

.gh-content th,
.gh-content td {
    padding: 1rem 1.4rem;
    border: 1px solid var(--surface-border);
    text-align: left;
}

.gh-content th {
    background: var(--card-bg);
    color: #fff;
    font-weight: 600;
}

.gh-content td {
    color: var(--text-color);
}

/* Ghost bookmark cards */
.gh-content .kg-bookmark-card {
    background: var(--card-bg);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.gh-content .kg-bookmark-card:hover {
    border-color: var(--primary-color);
}

.gh-content .kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.gh-content .kg-bookmark-content {
    flex: 1;
    padding: 2rem;
}

.gh-content .kg-bookmark-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.gh-content .kg-bookmark-description {
    font-size: 1.4rem;
    color: #a0a0a0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh-content .kg-bookmark-metadata {
    font-size: 1.3rem;
    color: #666;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gh-content .kg-bookmark-thumbnail {
    width: 200px;
    flex-shrink: 0;
}

.gh-content .kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Ghost callout cards */
.gh-content .kg-callout-card {
    background: var(--card-bg);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.gh-content .kg-callout-emoji {
    font-size: 2rem;
    flex-shrink: 0;
}

.gh-content .kg-callout-text {
    font-size: 1.6rem;
    color: var(--text-color);
}

/* Ghost toggle cards */
.gh-content .kg-toggle-card {
    background: var(--card-bg);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 2rem;
}

/* Ghost button cards */
.gh-content .kg-button-card {
    text-align: center;
}

.gh-content .kg-button-card a {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.gh-content .kg-button-card a:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   9. Page Header (tag / author pages)
   -------------------------------------------------------------------------- */
.gh-page-head {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 0 2rem;
}

.gh-page-head .gh-page-head-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.gh-page-head .gh-page-head-description {
    font-size: 1.8rem;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   10. Pagination
   -------------------------------------------------------------------------- */
.gh-pagination {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 0;
    font-size: 1.4rem;
}

.gh-pagination a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(180deg, rgba(12, 14, 22, 0.72), rgba(7, 9, 14, 0.56));
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: #ccc;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.gh-pagination a:hover {
    color: #fff;
    border-color: var(--primary-color);
}

.gh-pagination .gh-pagination-location {
    color: #666;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    z-index: 1;
    background: linear-gradient(to top, rgba(7, 10, 18, 0.82), rgba(7, 10, 18, 0.56));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.site-footer .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 4vmin;
    text-align: center;
}

.site-footer-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.site-footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
}

.site-footer-logo:hover {
    color: #fff;
    opacity: 0.9;
}

.site-footer-logo img {
    max-height: 32px;
    width: auto;
}

.site-footer-nav {
    display: none;
}

.site-footer .copyright {
    font-size: 1.3rem;
    color: #666;
}

.site-footer .copyright a {
    color: #666;
}

.site-footer .copyright a:hover {
    color: #ccc;
}

/* --------------------------------------------------------------------------
   12. Error Pages
   -------------------------------------------------------------------------- */
.gh-error {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem;
    min-height: 60vh;
}

.gh-error-code {
    font-family: var(--font-heading);
    font-size: 12rem;
    font-weight: 800;
    color: rgba(59, 130, 246, 0.2);
    line-height: 1;
}

.gh-error-description {
    font-size: 2rem;
    color: #a0a0a0;
    margin: 1rem 0 3rem;
}

.gh-error-link {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.gh-error-link:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* --------------------------------------------------------------------------
   13. Members / Subscribe (if enabled)
   -------------------------------------------------------------------------- */
.gh-subscribe {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 0;
}

.gh-subscribe-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.gh-subscribe-description {
    font-size: 1.6rem;
    color: #a0a0a0;
    margin-bottom: 2rem;
}

.gh-subscribe-input {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    gap: 1rem;
}

.gh-subscribe-input input[type="email"] {
    flex: 1;
    padding: 1.2rem 1.6rem;
    background: var(--card-bg);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1.5rem;
    font-family: var(--font-main);
    outline: none;
    transition: var(--transition);
}

.gh-subscribe-input input[type="email"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.gh-subscribe-input button,
.gh-subscribe-input input[type="submit"] {
    padding: 1.2rem 2.4rem;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.gh-subscribe-input button:hover,
.gh-subscribe-input input[type="submit"]:hover {
    background: var(--secondary-color);
}

/* --------------------------------------------------------------------------
   14. Ghost Portal / Search Overlays
   -------------------------------------------------------------------------- */

/* Ensure Ghost's built-in modals look right on dark bg */
.gh-portal-popup-container {
    font-family: var(--font-main);
}

/* --------------------------------------------------------------------------
   15. Responsive — Tablet (980px)
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
    .gh-head-inner {
        padding: 0 3vmin;
    }

    .nav-signal {
        min-width: 140px;
    }

    .inner {
        max-width: 100%;
    }

    .post-feed {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }

    .gh-content .kg-width-wide {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* --------------------------------------------------------------------------
   16. Responsive — Mobile (768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --nav-h: 64px;
        --fx-aurora-opacity: 0.42;
        --fx-grid-opacity: 0.19;
        --fx-scan-opacity: 0.18;
        --fx-signal-opacity: 0.11;
        --fx-vignette-opacity: 0.22;
    }

    .gh-burger {
        display: flex;
    }

    .gh-head-menu {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        background: linear-gradient(to bottom, rgba(7, 10, 18, 0.95), rgba(7, 10, 18, 0.90));
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 1rem 0;
    }

    .gh-head-menu.is-active {
        display: flex;
    }

    .gh-head-menu .nav {
        flex-direction: column;
        width: 100%;
    }

    .gh-head-menu .nav a {
        display: block;
        padding: 1.2rem 4vmin;
        font-size: 1.6rem;
        border-radius: 0;
    }

    .nav-signal {
        display: none;
    }

    .post-feed {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-title {
        font-size: clamp(2.4rem, 7vw, 3.6rem);
    }

    .article-excerpt {
        font-size: 1.7rem;
    }

    .gh-content {
        font-size: 1.7rem;
        padding: 1.5rem 0 3rem;
    }

    .gh-content h1 { font-size: 2.8rem; }
    .gh-content h2 { font-size: 2.2rem; }
    .gh-content h3 { font-size: 1.9rem; }

    .gh-content pre {
        padding: 1.4rem;
        font-size: 1.3rem;
        border-radius: 8px;
    }

    .gh-content blockquote {
        font-size: 1.7rem;
        padding-left: 1.5rem;
    }

    .gh-content .kg-bookmark-container {
        flex-direction: column;
    }

    .gh-content .kg-bookmark-thumbnail {
        width: 100%;
        height: 160px;
    }

    .gh-content .kg-width-wide,
    .gh-content .kg-width-full {
        max-width: 100vw;
        margin-left: -4vmin;
        margin-right: -4vmin;
    }

    .gh-subscribe-input {
        flex-direction: column;
    }

    .gh-pagination {
        flex-direction: column;
        gap: 1.5rem;
    }

    .gh-error-code {
        font-size: 8rem;
    }
}

/* --------------------------------------------------------------------------
   17. Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fx-aurora,
    .fx-grid,
    .fx-scanline,
    .fx-signal,
    .fx-vignette {
        display: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}
