/* ============================================
   PROTEAU SOVEREIGN — Ghost Theme CSS
   Navy & Gold · Editorial · Senior · Souverain
   ============================================ */

/* ── CSS Variables ────────────────────────── */
:root {
    /* Color system */
    --color-accent: #C5A55A;
    --color-accent-dim: rgba(197, 165, 90, 0.15);
    --color-accent-glow: rgba(197, 165, 90, 0.06);

    /* Dark theme (default) */
    --color-bg: #0B1426;
    --color-bg-elevated: #142038;
    --color-bg-card: #1A2A45;
    --color-text: #E8E4DC;
    --color-text-dim: #9B978F;
    --color-text-muted: #6B6860;
    --color-border: rgba(197, 165, 90, 0.18);
    --color-border-light: rgba(197, 165, 90, 0.08);

    /* Typography — using var() with Ghost custom font fallback */
    --font-heading: var(--gh-font-heading, 'DM Serif Display', Georgia, serif);
    --font-body: var(--gh-font-body, 'DM Sans', -apple-system, sans-serif);
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    /* Spacing */
    --gap: 24px;
    --content-width: 720px;
    --wide-width: 1080px;
    --full-width: 1200px;

    /* Transitions */
    --transition: 0.2s cubic-bezier(0, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0, 0, 0.2, 1);

    /* Header */
    --color-header-bg: rgba(11, 20, 38, 0.92);
}

/* ── Light Theme Override ─────────────────── */
.theme-light {
    --color-bg: #F5F2EC;
    --color-bg-elevated: #FFFFFF;
    --color-bg-card: #FFFFFF;
    --color-text: #1A2535;
    --color-text-dim: #5A5750;
    --color-text-muted: #8A8680;
    --color-border: rgba(26, 37, 53, 0.12);
    --color-border-light: rgba(26, 37, 53, 0.06);
    --color-header-bg: rgba(245, 242, 236, 0.92);
}

/* ── Reset & Base ─────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
}

h1, h2 { line-height: 1.1; }
h3      { line-height: 1.15; }

::selection {
    background: rgba(197, 165, 90, 0.25);
    color: var(--color-text);
}

::-webkit-scrollbar               { width: 4px; }
::-webkit-scrollbar-track         { background: var(--color-bg); }
::-webkit-scrollbar-thumb         { background: rgba(197, 165, 90, 0.2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover   { background: rgba(197, 165, 90, 0.4); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}


/* ── HEADER ───────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    transition: box-shadow var(--transition);
}

.site-header.has-shadow {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.site-header-inner {
    max-width: var(--full-width);
    margin: 0 auto;
    padding: 0 var(--gap);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    height: 28px;
    width: auto;
}

.site-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    background: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-logo-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

.site-logo-text:hover { opacity: 1; }
.site-logo:hover { opacity: 1; }

/* Navigation */
.site-nav { display: flex; align-items: center; gap: 32px; }

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}

.site-nav li a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-dim);
    letter-spacing: 0.02em;
    transition: color var(--transition);
}

.site-nav li a:hover,
.site-nav li a.nav-current {
    color: var(--color-accent);
    opacity: 1;
}

/* Burger */
.nav-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    transition: transform var(--transition), opacity var(--transition);
    border-radius: 1px;
}

.nav-burger.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.is-active span:nth-child(2) { opacity: 0; }
.nav-burger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile overlay */
.nav-overlay {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: var(--color-bg);
    z-index: 99;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 48px var(--gap);
}

.nav-overlay.is-open { display: flex; }

.nav-overlay-inner ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.nav-overlay-inner li a {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-text);
}

.nav-overlay-inner li a:hover { color: var(--color-accent); }

@media (max-width: 768px) {
    .site-nav { display: none; }
    .nav-burger { display: flex; }
}


/* ── HERO ─────────────────────────────────── */
.hero-section {
    padding: 80px var(--gap) 64px;
    text-align: center;
    border-bottom: 1px solid var(--color-border-light);
}

.hero-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
}

@media (max-width: 640px) {
    .hero-section { padding: 48px var(--gap) 40px; }
}


/* ── POST FEED ────────────────────────────── */
.post-feed-container {
    max-width: var(--full-width);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.post-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--gap);
    padding: 48px 0;
}

@media (max-width: 700px) {
    .post-feed { grid-template-columns: 1fr; }
}


/* ── POST CARD ────────────────────────────── */
.post-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}

.post-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.post-card-image-link { display: block; overflow: hidden; }

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-image { transform: scale(1.03); }

.post-card-content { padding: 20px 24px 24px; }

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.post-card-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-accent);
}

.post-card-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-muted);
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 10px;
}

.post-card-title a { color: var(--color-text); }
.post-card-title a:hover { color: var(--color-accent); opacity: 1; }

.post-card-excerpt {
    font-size: 14px;
    color: var(--color-text-dim);
    line-height: 1.6;
    margin: 0 0 12px;
}

.post-card-footer {
    padding-top: 12px;
    border-top: 1px solid var(--color-border-light);
}

.post-card-reading-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-muted);
}


/* ── ARCHIVE HEADERS ──────────────────────── */
.archive-header {
    text-align: center;
    padding: 64px var(--gap) 0;
}

.archive-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.archive-title {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 8px;
}

.archive-description {
    font-size: 15px;
    color: var(--color-text-dim);
    max-width: 500px;
    margin: 0 auto;
}

.author-header-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 2px solid var(--color-accent);
}


/* ── PAGINATION ───────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 32px 0 64px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
}

.pagination a {
    color: var(--color-accent);
    padding: 6px 16px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: background var(--transition);
}

.pagination a:hover {
    background: var(--color-accent-dim);
    opacity: 1;
}


/* ── SINGLE POST ──────────────────────────── */
.single-post,
.single-page {
    max-width: var(--full-width);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.post-header,
.page-header {
    text-align: center;
    padding: 64px 0 40px;
}

.post-header-inner,
.page-header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.post-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    background: var(--color-accent-dim);
    padding: 4px 12px;
    border-radius: 4px;
}

.post-tag:hover { opacity: 1; background: rgba(197, 165, 90, 0.25); }

.post-date,
.post-reading-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-muted);
}

.post-title,
.page-title {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.15;
    margin: 0 0 16px;
}

.post-excerpt,
.page-excerpt {
    font-size: 18px;
    color: var(--color-text-dim);
    font-weight: 300;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Feature image */
.post-feature-image,
.page-feature-image {
    max-width: var(--wide-width);
    margin: 0 auto 48px;
}

.post-feature-image img,
.page-feature-image img {
    width: 100%;
    border-radius: 8px;
}

.post-feature-image figcaption {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 10px;
    font-style: italic;
}


/* ── GHOST CONTENT ────────────────────────── */
.gh-content {
    max-width: var(--content-width);
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text-dim);
}

/* Pages with custom HTML layouts need more room than blog posts */
.single-page .gh-content {
    max-width: var(--wide-width);
}

.gh-content > * + * { margin-top: 1.5em; }

.gh-content h2 {
    font-size: 28px;
    margin-top: 2.5em;
    color: var(--color-text);
}

.gh-content h3 {
    font-size: 22px;
    margin-top: 2em;
    color: var(--color-text);
}

.gh-content h4 {
    font-size: 18px;
    margin-top: 1.8em;
    color: var(--color-text);
}

.gh-content a { text-decoration: underline; text-underline-offset: 2px; }

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

.gh-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 20px;
    margin-left: 0;
    font-style: italic;
    color: var(--color-text);
}

.gh-content blockquote.kg-blockquote-alt {
    border-left: none;
    text-align: center;
    font-size: 22px;
    padding: 0;
    font-style: italic;
}

.gh-content pre {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 20px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
}

.gh-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--color-accent-dim);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--color-accent);
}

.gh-content pre code {
    background: none;
    padding: 0;
    color: var(--color-text);
}

.gh-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 3em 0;
}

.gh-content ul,
.gh-content ol {
    padding-left: 1.5em;
}

.gh-content li + li { margin-top: 0.5em; }

/* Ghost image cards */
.gh-content .kg-image-card {
    margin: 2em 0;
}

.gh-content .kg-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.gh-content .kg-width-wide {
    max-width: var(--wide-width);
    margin-left: calc(50% - min(50vw, var(--wide-width) / 2));
    width: min(100vw, var(--wide-width));
}

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

.gh-content .kg-width-wide img,
.gh-content .kg-width-full img {
    width: 100%;
}

.gh-content figcaption {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 10px;
}

/* Gallery */
.kg-gallery-container { display: flex; flex-direction: column; gap: 4px; }
.kg-gallery-row { display: flex; gap: 4px; }
.kg-gallery-image { flex: 1; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

/* Bookmark */
.kg-bookmark-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
}

.kg-bookmark-container {
    display: flex;
    color: var(--color-text);
}

.kg-bookmark-content { flex: 1; padding: 20px; }
.kg-bookmark-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--color-text); }
.kg-bookmark-description { font-size: 13px; color: var(--color-text-dim); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.kg-bookmark-icon { width: 20px; height: 20px; border-radius: 3px; }
.kg-bookmark-author, .kg-bookmark-publisher { font-size: 12px; color: var(--color-text-muted); }
.kg-bookmark-thumbnail { width: 200px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 640px) {
    .kg-bookmark-container { flex-direction: column-reverse; }
    .kg-bookmark-thumbnail { width: 100%; height: 180px; }
}

/* Embed */
.kg-embed-card { margin: 2em 0; }

.fluid-width-video-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
}

.fluid-width-video-wrapper iframe,
.fluid-width-video-wrapper object,
.fluid-width-video-wrapper embed {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}


/* ── POST FOOTER ──────────────────────────── */
.post-footer {
    max-width: var(--content-width);
    margin: 48px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.post-author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent-dim);
}

.post-author-name {
    display: block;
    font-weight: 600;
    font-size: 15px;
}

.post-author-bio {
    display: block;
    font-size: 13px;
    color: var(--color-text-dim);
    margin-top: 2px;
}


/* ── POST NAVIGATION ──────────────────────── */
.post-nav {
    max-width: var(--content-width);
    margin: 48px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.post-nav-item {
    padding: 20px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: border-color var(--transition);
}

.post-nav-item:hover { border-color: var(--color-accent); opacity: 1; }

.post-nav-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 6px;
}

.post-nav-title {
    display: block;
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.4;
}

.post-nav-next { text-align: right; }

@media (max-width: 640px) {
    .post-nav { grid-template-columns: 1fr; }
}


/* ── CTA SECTION ──────────────────────────── */
.cta-section {
    padding: 64px 0;
    border-top: 1px solid var(--color-border);
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.cta-heading {
    font-size: clamp(22px, 3.5vw, 30px);
    margin-bottom: 12px;
}

.cta-text {
    font-size: 15px;
    color: var(--color-text-dim);
    margin-bottom: 24px;
}

.cta-button {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.03em;
    color: var(--color-bg);
    background: var(--color-accent);
    padding: 12px 32px;
    border-radius: 6px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.cta-button:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(197, 165, 90, 0.18), 0 6px 20px rgba(0, 0, 0, 0.3);
}


/* ── NEWSLETTER CTA ───────────────────────── */
.newsletter-cta {
    max-width: var(--content-width);
    margin: 48px auto 64px;
    padding: 40px;
    background: var(--color-accent-glow);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
}

.newsletter-heading {
    font-size: 22px;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}

.newsletter-input:focus { border-color: var(--color-accent); }
.newsletter-input::placeholder { color: var(--color-text-muted); }

.newsletter-button {
    padding: 10px 24px;
    background: var(--color-accent);
    color: var(--color-bg);
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform var(--transition);
}

.newsletter-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(197, 165, 90, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 480px) {
    .newsletter-form { flex-direction: column; }
    .newsletter-cta { padding: 28px 20px; }
}


/* ── FOOTER ───────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 48px 0;
    margin-top: 64px;
}

.site-footer-inner {
    max-width: var(--full-width);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.site-footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo img { height: 24px; width: auto; }

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-text);
}

.footer-tagline {
    font-size: 13px;
    color: var(--color-text-dim);
    margin-top: 8px;
    max-width: 360px;
}

.site-footer-nav {
    display: flex;
    gap: 48px;
}

.footer-nav-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
    display: block;
}

.site-footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-nav li { margin-bottom: 8px; }

.site-footer-nav a,
.footer-social a {
    font-size: 14px;
    color: var(--color-text-dim);
}

.site-footer-nav a:hover,
.footer-social a:hover {
    color: var(--color-accent);
    opacity: 1;
}

.footer-social { list-style: none; margin: 0; padding: 0; }
.footer-social li { margin-bottom: 8px; }

.site-footer-newsletter {
    padding: 28px 0;
    border-top: 1px solid var(--color-border-light);
    text-align: center;
}

.footer-newsletter-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent, #C5A55A);
    margin-bottom: 14px;
}

.footer-newsletter-form {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-newsletter-input {
    padding: 10px 16px;
    background: rgba(20, 32, 56, 0.5);
    border: 1px solid rgba(197, 165, 90, 0.25);
    border-radius: 6px;
    color: #E8E4DC;
    font-size: 14px;
    width: 260px;
    outline: none;
}

.footer-newsletter-input::placeholder { color: #6B6860; }
.footer-newsletter-input:focus { border-color: rgba(197, 165, 90, 0.6); }

.footer-newsletter-btn {
    padding: 10px 20px;
    background: #C5A55A;
    color: #0B1426;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.footer-newsletter-btn:hover { background: #d4b46b; }
.footer-newsletter-btn:disabled { opacity: 0.6; cursor: default; }

.footer-newsletter-msg {
    font-size: 13px;
    margin-top: 8px;
}

.site-footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--color-border-light);
    font-size: 13px;
    color: var(--color-text-muted);
}

.footer-sep { margin: 0 8px; }

.footer-powered a { color: var(--color-text-muted); }

@media (max-width: 768px) {
    .site-footer-top { flex-direction: column; gap: 32px; }
    .site-footer-nav { gap: 32px; }
}


/* ── ERROR PAGE ───────────────────────────── */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 48px var(--gap);
}

.error-code {
    font-family: var(--font-heading);
    font-size: 80px;
    color: var(--color-accent);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.error-title {
    font-size: 24px;
    margin-bottom: 12px;
}

.error-description {
    font-size: 15px;
    color: var(--color-text-dim);
    margin-bottom: 24px;
}

.error-link {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 8px 24px;
    border-radius: 4px;
    transition: background var(--transition);
}

.error-link:hover {
    background: var(--color-accent-dim);
    opacity: 1;
}


/* ── MEMBERS / PORTAL ─────────────────────── */
.gh-portal-triggerbtn-iframe {
    color-scheme: auto;
}

/* ── SUBSCRIBER PAYWALL (gh-post-upgrade-cta) ─ */
/* Override Ghost's default pink accent with theme palette */
.gh-post-upgrade-cta {
    background: var(--color-bg-card) !important;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 48px 32px;
    text-align: center;
}

.gh-post-upgrade-cta-content {
    background: transparent !important;
}

.gh-post-upgrade-cta h2 {
    color: var(--color-text) !important;
}

.gh-post-upgrade-cta p {
    color: var(--color-text-dim) !important;
}

.gh-post-upgrade-cta a {
    background: var(--color-accent) !important;
    color: var(--color-bg) !important;
    border-color: var(--color-accent) !important;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: transform var(--transition), box-shadow var(--transition);
}

.gh-post-upgrade-cta a:hover {
    opacity: 1 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(197, 165, 90, 0.3);
}

/* Infinite scroll — séparateur entre pages enchaînées */
.page-chain-sep {
    height: 1px;
    background: rgba(197, 165, 90, 0.18);
    margin: 72px 0;
    position: relative;
}

.page-chain-sep::after {
    content: '◆';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-accent);
    font-size: 10px;
    background: var(--color-bg);
    padding: 0 20px;
    letter-spacing: 0.1em;
}

/* ── NAV CTA ──────────────────────────────── */
.nav-cta {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-bg);
    background: var(--color-accent);
    padding: 8px 20px;
    border-radius: 5px;
    white-space: nowrap;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(197, 165, 90, 0.2), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-light .nav-cta { color: var(--color-bg); }

@media (max-width: 768px) { .nav-cta { display: none; } }

/* ── SCROLL REVEAL ────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── PAGE CONTENT TYPOGRAPHY ─────────────────
   Classes pour les pages Ghost avec HTML inline.
   Modifier ici = change partout (home/about/services/contact).
   ─────────────────────────────────────────── */

/* Label or — "Ligne 1", "Ce que je fais", "Appel stratégique", etc. */
.page-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 12px;
}

/* Titre de section — h2 principal dans chaque bloc de service */
.page-heading {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 16px;
}

/* Titre de CTA — h2 dans les blocs d'appel à l'action */
.page-cta-heading {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 12px;
}

/* Titre de carte — h3 dans les grilles de cartes */
.page-card-heading {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 12px;
}

/* ── READING PROGRESS ─────────────────────── */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-accent);
    z-index: 200;
    transition: width 0.1s linear;
    pointer-events: none;
    opacity: 0.8;
}


/* ╔══════════════════════════════════════════╗
   ║  PREMIUM VISUAL SYSTEM                   ║
   ║  Depth · Gold glows · Gradient cards     ║
   ╚══════════════════════════════════════════╝ */

/* Body — radial gold aurora at page top */
body {
    background-image: radial-gradient(ellipse 80% 45% at 50% -5%, rgba(197,165,90,0.09) 0%, transparent 70%);
}

/* Header — gradient border replaces solid line */
.site-header {
    border-bottom: none;
}
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(197,165,90,0.32) 50%, transparent 100%);
    pointer-events: none;
}

/* Page sections — alternating depth zones */
.single-page .gh-content > section:nth-child(even) {
    background: linear-gradient(180deg, rgba(13,23,43,0.55) 0%, rgba(11,20,38,0.15) 100%);
    border-radius: 4px;
}
.single-page .gh-content > section:first-child {
    background: radial-gradient(ellipse 80% 60% at 25% 50%, rgba(197,165,90,0.04) 0%, transparent 65%);
}

/* Infinite scroll separator — gradient line */
.page-chain-sep {
    background: linear-gradient(90deg, transparent 0%, rgba(197,165,90,0.38) 30%, rgba(197,165,90,0.38) 70%, transparent 100%);
}

/* Blog post cards — subtle gradient depth */
.post-card {
    background: linear-gradient(160deg, var(--color-bg-elevated) 0%, #0e1928 100%);
}

/* Footer — gradient top border */
.site-footer {
    position: relative;
    border-top: none;
    padding-top: 49px;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(197,165,90,0.22) 50%, transparent 100%);
}

/* ── PREMIUM CARD ────────────────────────────
   Remplace les divs avec background:rgba(20,32,56,0.8)
   Variante sm : .page-card.page-card-sm (padding 16px)
   ─────────────────────────────────────────── */
.page-card {
    background: linear-gradient(140deg, #142038 0%, #0d1828 100%);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 2px 16px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(197, 165, 90, 0.07);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

/* Gold shimmer line at top edge of each card */
.page-card::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(197,165,90,0.48) 50%, transparent 100%);
    pointer-events: none;
}

.page-card:hover {
    border-color: rgba(197, 165, 90, 0.32);
    box-shadow:
        0 6px 32px rgba(0, 0, 0, 0.32),
        0 0 20px rgba(197, 165, 90, 0.05),
        inset 0 1px 0 rgba(197, 165, 90, 0.12);
    transform: translateY(-2px);
}

.page-card-sm,
.page-card.page-card-sm {
    padding: 16px;
}
