/* ============================================================
   UNHURRIED THEME — styles.css
   A sanctuary for the over-optimized.
   Three modes: dark-human, light-human, agent
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Space+Mono:wght@400;700&display=swap');

/* ── CSS Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================
   MODE VARIABLES
   ============================================================ */

/* Dark-Human (default) */
html,
html.dark-mode {
    --bg-primary: #111315;
    --bg-secondary: #1a1d20;
    --bg-surface: rgba(255, 255, 255, 0.04);
    --bg-surface-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #f0ece4;
    --text-secondary: rgba(240, 236, 228, 0.65);
    --text-muted: rgba(240, 236, 228, 0.4);
    --accent: #c8a87c;
    --accent-glow: rgba(200, 168, 124, 0.15);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --font-heading: 'Poppins', -apple-system, sans-serif;
    --font-body: 'Poppins', -apple-system, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;
    --bg-image: url('../images/human_dark_bg.png');
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.6);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light-Human */
html.light-mode {
    --bg-primary: #f5f0e8;
    --bg-secondary: #ebe4d8;
    --bg-surface: rgba(0, 0, 0, 0.03);
    --bg-surface-hover: rgba(0, 0, 0, 0.06);
    --text-primary: #2b2520;
    --text-secondary: rgba(43, 37, 32, 0.65);
    --text-muted: rgba(43, 37, 32, 0.4);
    --accent: #8b6e4e;
    --accent-glow: rgba(139, 110, 78, 0.12);
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --font-heading: 'Poppins', -apple-system, sans-serif;
    --font-body: 'Poppins', -apple-system, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;
    --bg-image: url('../images/human_bg.png');
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.12);
}

/* Agent Mode — readable by humans, styled for machines */
html.agent-mode {
    --bg-primary: #050705;
    --bg-secondary: #0a0f0a;
    --bg-surface: rgba(74, 246, 38, 0.04);
    --bg-surface-hover: rgba(74, 246, 38, 0.08);
    --text-primary: #b8e6b0;
    --text-secondary: rgba(184, 230, 176, 0.6);
    --text-muted: rgba(184, 230, 176, 0.35);
    --accent: #4AF626;
    --accent-glow: rgba(74, 246, 38, 0.12);
    --border: rgba(74, 246, 38, 0.12);
    --border-hover: rgba(74, 246, 38, 0.25);
    --font-heading: 'Space Mono', 'Courier New', monospace;
    --font-body: 'Poppins', -apple-system, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;
    --bg-image: url('../images/agent_bg.png');
    --shadow: 0 0 30px rgba(74, 246, 38, 0.08);
    --shadow-lg: 0 0 60px rgba(74, 246, 38, 0.12);
}

/* ============================================================
   BASE & BODY
   ============================================================ */

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    transition: background-color var(--transition), color var(--transition);
    position: relative;
}

/* Background image layer */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    transition: opacity var(--transition), background-image 0.6s ease;
}

html.agent-mode body::before {
    opacity: 0.4;
}

html.light-mode body::before {
    opacity: 0.45;
}

/* Page load fade-in */
body {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ── Remove Ghost default backgrounds ── */
.site-header-content,
.outer,
.inner,
.site-wrapper,
.gh-head,
.gh-outer,
.gh-viewport {
    background: transparent !important;
    background-image: none !important;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    transition: color var(--transition);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

p,
li,
td,
th {
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: color var(--transition);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition), opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* Agent-mode cursor blink — only on main hero tagline */
html.agent-mode .site-tagline::after {
    content: '█';
    animation: blink 1s step-end infinite;
    margin-left: 4px;
    font-weight: 400;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Agent-mode: headings use mono, body stays readable */
html.agent-mode .post-card-title {
    font-family: var(--font-mono);
}

html.agent-mode .post-card-excerpt {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.7;
}

html.agent-mode .feed-title {
    font-family: var(--font-mono);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-content-wide {
    max-width: 1100px;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(17, 19, 21, 0.8);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), border-color var(--transition);
}

html.light-mode .site-header {
    background: rgba(245, 240, 232, 0.85);
}

html.agent-mode .site-header {
    background: rgba(3, 3, 3, 0.9);
    border-bottom-color: rgba(74, 246, 38, 0.15);
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.site-logo img {
    height: 32px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-nav a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--transition);
}

.site-nav a:hover {
    color: var(--text-primary);
    opacity: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ============================================================
   MODE TOGGLE (Header-integrated)
   ============================================================ */

.mode-toggle {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 3px;
    gap: 2px;
    transition: all var(--transition);
}

.mode-toggle-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 100px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.mode-toggle-btn:hover {
    color: var(--text-primary);
}

.mode-toggle-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 2px 12px var(--accent-glow);
}

html.agent-mode .mode-toggle-btn.active {
    box-shadow: 0 0 20px rgba(74, 246, 38, 0.3);
    text-shadow: 0 0 8px rgba(74, 246, 38, 0.5);
}

/* Theme sub-toggle (light/dark) */
.theme-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--bg-surface);
    font-size: 14px;
    transition: all var(--transition);
    margin-right: 8px;
}

.theme-toggle:hover {
    border-color: var(--border-hover);
    background: var(--bg-surface-hover);
}

html.agent-mode .theme-toggle {
    display: none;
}

/* ============================================================
   PORTAL SPLASH (First-visit)
   ============================================================ */

.portal-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    opacity: 1;
}

/* Hide the main site behind portal until dismissed */
body.portal-active .site-wrapper {
    visibility: hidden;
    opacity: 0;
}

body.portal-active {
    overflow: hidden;
}

@keyframes portalFadeIn {
    to {
        opacity: 1;
    }
}

.portal-splash.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.portal-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-half::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.portal-half:hover::before {
    transform: scale(1.05);
}

.portal-half:hover {
    flex: 1.15;
}

/* Human side */
.portal-human {
    background: #111315;
}

.portal-human::before {
    background:
        linear-gradient(135deg, rgba(17, 19, 21, 0.7), rgba(17, 19, 21, 0.4)),
        url('../images/human_dark_bg.png');
    background-size: cover;
    background-position: center;
}

/* Agent side */
.portal-agent {
    background: #030303;
}

.portal-agent::before {
    background:
        linear-gradient(135deg, rgba(3, 3, 3, 0.6), rgba(3, 3, 3, 0.3)),
        url('../images/agent_bg.png');
    background-size: cover;
    background-position: center;
}

.portal-divider {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(200, 168, 124, 0.4) 30%,
            rgba(74, 246, 38, 0.4) 70%,
            transparent);
    z-index: 2;
    transition: opacity 0.4s ease;
}

.portal-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 360px;
}

.portal-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    opacity: 0;
    animation: portalSlideUp 0.8s ease 0.4s forwards;
}

.portal-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 0;
    animation: portalSlideUp 0.8s ease 0.6s forwards;
}

.portal-human .portal-title {
    font-family: 'Poppins', sans-serif;
    color: #f0ece4;
}

.portal-agent .portal-title {
    font-family: 'Space Mono', monospace;
    color: #4AF626;
}

.portal-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 32px;
    opacity: 0;
    animation: portalSlideUp 0.8s ease 0.8s forwards;
}

.portal-human .portal-desc {
    font-family: 'Poppins', sans-serif;
    color: rgba(240, 236, 228, 0.65);
}

.portal-agent .portal-desc {
    font-family: 'Space Mono', monospace;
    color: rgba(74, 246, 38, 0.6);
}

.portal-enter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border: 1px solid;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s ease;
    opacity: 0;
    animation: portalSlideUp 0.8s ease 1s forwards;
}

.portal-human .portal-enter-btn {
    font-family: 'Poppins', sans-serif;
    color: #c8a87c;
    border-color: rgba(200, 168, 124, 0.4);
}

.portal-human .portal-enter-btn:hover {
    background: rgba(200, 168, 124, 0.1);
    border-color: #c8a87c;
    box-shadow: 0 0 30px rgba(200, 168, 124, 0.15);
}

.portal-agent .portal-enter-btn {
    font-family: 'Space Mono', monospace;
    color: #4AF626;
    border-color: rgba(74, 246, 38, 0.3);
}

.portal-agent .portal-enter-btn:hover {
    background: rgba(74, 246, 38, 0.08);
    border-color: #4AF626;
    box-shadow: 0 0 30px rgba(74, 246, 38, 0.2);
    text-shadow: 0 0 10px rgba(74, 246, 38, 0.5);
}

.portal-hint {
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    z-index: 100000;
    text-align: center;
    padding: 12px 24px;
    opacity: 0;
    animation: portalSlideUp 0.8s ease 1.3s forwards;
    pointer-events: none;
}

.portal-hint span {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.06em;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 100px;
}

@keyframes portalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Agent-side scanline effect */
.portal-agent::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.08) 2px,
            rgba(0, 0, 0, 0.08) 4px);
    pointer-events: none;
    z-index: 1;
}

/* Portal responsive */
@media (max-width: 768px) {
    .portal-splash {
        flex-direction: column;
    }

    .portal-divider {
        left: 0;
        right: 0;
        top: 50%;
        bottom: auto;
        width: 100%;
        height: 1px;
        background: linear-gradient(to right,
                transparent,
                rgba(200, 168, 124, 0.4) 30%,
                rgba(74, 246, 38, 0.4) 70%,
                transparent);
    }

    .portal-title {
        font-size: 1.3rem;
    }

    .portal-desc {
        font-size: 0.85rem;
    }

    .portal-hint {
        bottom: 12px;
        padding: 8px 16px;
    }

    .portal-hint span {
        font-size: 0.65rem;
    }
}

/* ============================================================
   HERO SECTION (Homepage)
   ============================================================ */

.site-hero {
    text-align: center;
    padding: 100px 24px 60px;
}

.site-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.site-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Subscribe form */
.subscribe-form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    gap: 0;
}

.subscribe-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition);
}

.subscribe-form input[type="email"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.subscribe-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.subscribe-form button {
    padding: 14px 28px;
    border: 1px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--accent);
    color: var(--bg-primary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    opacity: 0.9;
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* ============================================================
   POST FEED
   ============================================================ */

.post-feed {
    padding: 40px 0 80px;
}

.feed-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

html.agent-mode .feed-title {
    font-family: var(--font-mono);
}

.post-card {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.post-card:hover {
    padding-left: 8px;
}

html.agent-mode .post-card:hover {
    background: var(--bg-surface);
    border-color: var(--border-hover);
}

.post-card-image {
    width: 160px;
    height: 110px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color var(--transition);
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

html.agent-mode .post-card-meta::before {
    content: '// ';
}

/* Responsive post card */
@media (max-width: 600px) {
    .post-card {
        flex-direction: column;
        gap: 16px;
    }

    .post-card-image {
        width: 100%;
        height: 180px;
    }
}

/* ============================================================
   SINGLE POST / PAGE
   ============================================================ */

.post-full {
    padding: 80px 0 60px;
}

.post-full-header {
    text-align: center;
    margin-bottom: 48px;
}

.post-full-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
}

.post-full-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.post-full-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 48px;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.85;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content h2 {
    margin-top: 2.5em;
    margin-bottom: 0.8em;
}

.post-content h3 {
    margin-top: 2em;
    margin-bottom: 0.6em;
}

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 24px;
    margin: 2em 0;
    font-style: italic;
    color: var(--text-secondary);
}

html.agent-mode .post-content blockquote {
    border-color: var(--accent);
    font-style: normal;
    font-family: var(--font-mono);
    background: var(--bg-surface);
    padding: 16px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-surface);
    padding: 2px 6px;
    border-radius: 4px;
}

.post-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content img {
    max-width: 100%;
    border-radius: var(--radius);
}

/* ============================================================
   DUAL CONTENT (Human/Agent)
   ============================================================ */

.agent-content {
    display: none;
}

html.agent-mode .human-content {
    display: none;
}

html.agent-mode .agent-content {
    display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    padding: 40px 32px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: border-color var(--transition);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

html.agent-mode .footer-copy {
    font-family: var(--font-mono);
}

/* ============================================================
   SUBSCRIBE BUTTON
   ============================================================ */

.btn-subscribe {
    padding: 8px 20px;
    border: 1px solid var(--accent);
    border-radius: 100px;
    background: transparent;
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 40px 0;
}

.pagination a {
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .site-header {
        padding: 12px 16px;
    }

    .site-nav {
        display: none;
        /* Collapse into hamburger in a future iteration */
    }

    .site-hero {
        padding: 60px 16px 40px;
    }

    .site-content {
        padding: 0 16px;
    }

    .site-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .mode-toggle-btn {
        padding: 5px 12px;
        font-size: 0.65rem;
    }
}

/* ============================================================
   UTILITY
   ============================================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ghost-specific overrides — kill defaults */
.kg-card,
.kg-image-card,
.kg-width-wide,
.kg-width-full {
    max-width: 100%;
}

.kg-image-card img {
    max-width: 100%;
    height: auto;
}