/* ========================================
   ARDMT — Theme Stylesheet
   Custom theme for Ghost
   ======================================== */

:root {
    --bg: #050505;
    --bg-soft: #0c0c0c;
    --gold: #c9a961;
    --gold-bright: #e6c886;
    --text: #e8e0d0;
    --text-muted: #8a8275;
    --rule: #1d1b16;

    /* Ghost custom font variables — fall back to our chosen typefaces */
    --gh-font-heading: 'Cinzel', serif;
    --gh-font-body: 'Cormorant Garamond', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--gh-font-body, 'Cormorant Garamond', serif);
    line-height: 1.65;
    font-size: 1.22rem;
    -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   HOMEPAGE — clickable graphic with hotspots over the 5 icons
   ============================================================ */

/* Homepage allows normal scrolling; the splash-style full-viewport
   layout has been replaced with a hero + content structure. */
body.home-template {
    /* normal scrolling; no flex centering, no overflow lock */
}

/* COSMIC BACKGROUND VIDEO — fixed, fills viewport, sits behind everything */
.home-bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    opacity: 0.35;
    transform: scale(1.05);
    pointer-events: none;
    user-select: none;
}

body.home-template::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201, 169, 97, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1; /* sits between background video and content */
}

.home-main {
    position: relative;
    z-index: 2; /* content always above the bg video and the gold-glow overlay */
}

/* Header on the homepage needs to sit above the background video too */
body.home-template .site-header {
    position: relative;
    z-index: 3;
}

/* HERO — the video graphic, roughly two-thirds viewport tall */
.home-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 66vh;
    padding: 2vh 2vw 1vh;
}

.home-stage {
    position: relative;
    width: 100%;
    max-width: min(62vh, 92vw);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    animation: emerge 1.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.home-graphic {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none; /* clicks pass through to hotspot links beneath */
    background: var(--bg);
}

/* ============================================================
   HOMEPAGE — INTRO / NEWSLETTER / LATEST SECTIONS
   ============================================================ */

.home-intro {
    max-width: 940px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    text-align: center;
    animation: fade 0.9s ease-out 0.4s both;
}

.home-intro h1 {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-weight: 500;
    font-size: clamp(2rem, 4.2vw, 2.8rem);
    letter-spacing: 0.04em;
    line-height: 1.18;
    margin-bottom: 0.9rem;
}

.home-tagline {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.home-blurb {
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--text);
    max-width: 820px;
    margin: 0 auto;
}

.home-blurb a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 169, 97, 0.35);
    transition: border-color 0.3s ease;
}
.home-blurb a:hover { border-bottom-color: var(--gold); }

/* NEWSLETTER */
.home-newsletter {
    max-width: 580px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.home-newsletter h2 {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-weight: 500;
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
    color: var(--gold-bright);
}

.newsletter-blurb {
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
}

.newsletter-form {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    background: var(--bg-soft);
    border: 1px solid var(--rule);
    color: var(--text);
    font-family: var(--gh-font-body, 'Cormorant Garamond', serif);
    font-size: 1.1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.3s ease;
}
.newsletter-form input[type="email"]:focus { border-color: var(--gold); }
.newsletter-form input[type="email"]::placeholder { color: var(--text-muted); }

.newsletter-form button {
    background: var(--gold);
    color: var(--bg);
    border: 1px solid var(--gold);
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    padding: 0 1.6rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}
.newsletter-form button:hover {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
}

.newsletter-meta {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin: 0;
}

/* LATEST POSTS — Featured + 3 smaller in grid */
.home-latest {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem 5rem;
}

.section-header {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.4em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 2rem;
    text-align: center;
}

/* FEATURED CARD (the latest post) */
.featured-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.4rem;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    padding: 0;
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--rule);
    transition: opacity 0.3s ease;
}
.featured-card:hover { opacity: 0.95; }

.featured-card-image {
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--rule);
    background: var(--bg-soft);
    aspect-ratio: 16 / 10;
}
.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.featured-card:hover .featured-card-image img { transform: scale(1.04); }

.featured-card-content { padding: 0.5rem 0; }

.featured-card-eyebrow {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.featured-card-title {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-weight: 500;
    font-size: clamp(1.55rem, 2.6vw, 2.1rem);
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}
.featured-card:hover .featured-card-title { color: var(--gold-bright); }

.featured-card-excerpt {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    line-height: 1.55;
}

.featured-card-meta {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin: 0;
}

/* RECENT GRID — 3 smaller post cards */
.recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.recent-card {
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}
.recent-card:hover { opacity: 0.95; }

.recent-card-image {
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--rule);
    background: var(--bg-soft);
    aspect-ratio: 16 / 10;
    margin-bottom: 1.1rem;
}
.recent-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.recent-card:hover .recent-card-image img { transform: scale(1.04); }

.recent-card-eyebrow {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.recent-card-title {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-weight: 500;
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
    margin-bottom: 0.7rem;
    transition: color 0.3s ease;
}
.recent-card:hover .recent-card-title { color: var(--gold-bright); }

.recent-card-meta {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin: 0;
    margin-top: auto;
    padding-top: 0.5rem;
}

.see-more-link {
    display: block;
    text-align: center;
    margin-top: 2.5rem;
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
    padding-bottom: 4px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.see-more-link:hover { border-bottom-color: var(--gold); }

/*
    HOTSPOTS — invisible until hovered. Positioned as % so they scale.
    Adjust top/height here for vertical alignment, left per-class for horizontal.
*/
.hotspot {
    position: absolute;
    top: 80%;
    height: 14%;
    width: 14%;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.45s ease, box-shadow 0.45s ease, transform 0.45s ease;
}

.hotspot:hover, .hotspot:focus-visible {
    background: radial-gradient(circle at center, rgba(201, 169, 97, 0.18) 0%, rgba(201, 169, 97, 0.04) 50%, transparent 75%);
    box-shadow:
        inset 0 0 0 1px rgba(201, 169, 97, 0.45),
        0 0 32px rgba(201, 169, 97, 0.12);
    transform: translateY(-2px);
    outline: none;
}

.hotspot.research      { left: 10%; }
.hotspot.understanding { left: 26%; }
.hotspot.exploration   { left: 43%; }
.hotspot.ethics        { left: 61%; }
.hotspot.books         { left: 78%; }

/* Subtle pulse on first load to hint interactivity */
.hotspot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(201, 169, 97, 0);
    animation: pulse 2.4s ease-in-out 2.2s 2;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { box-shadow: inset 0 0 0 1px rgba(201, 169, 97, 0); }
    50%      { box-shadow: inset 0 0 0 1px rgba(201, 169, 97, 0.35); }
}

@keyframes emerge {
    from { opacity: 0; transform: translateY(12px) scale(0.99); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   SITE HEADER (used on inner pages)
   ============================================================ */

.site-header {
    border-bottom: 1px solid var(--rule);
    padding: 1.4rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.brand {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    letter-spacing: 0.32em;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
}
.brand .accent { color: var(--gold); }

.site-nav {
    display: flex;
    gap: 2.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.site-nav a {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a.active { color: var(--gold); }
.site-nav a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -8px;
    height: 1px;
    background: var(--gold);
}

.site-nav .cta {
    border: 1px solid var(--gold);
    color: var(--gold) !important;
    padding: 0.55rem 1.2rem;
    transition: background 0.3s ease, color 0.3s ease;
}
.site-nav .cta:hover {
    background: var(--gold);
    color: var(--bg) !important;
}
.site-nav .cta::after { display: none; }

/* ============================================================
   ARTICLE / POST PAGE
   ============================================================ */

.post {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem 6rem;
    animation: fade 0.9s ease-out;
}

@keyframes fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.post h1 {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: clamp(2.1rem, 5vw, 3.1rem);
    line-height: 1.18;
    letter-spacing: 0.015em;
    margin-bottom: 1.4rem;
}

.post .meta {
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--rule);
}

.post .meta .byline-author {
    color: var(--gold);
    text-decoration: none;
    font-style: normal;
    border-bottom: 1px solid rgba(201, 169, 97, 0.3);
    transition: border-color 0.3s ease, color 0.3s ease;
}
.post .meta .byline-author:hover {
    color: var(--gold-bright);
    border-bottom-color: var(--gold);
}

/* Author bio card at the foot of each post */
.post-author-card {
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
    margin-top: 4rem;
    padding: 2rem 0 0;
    border-top: 1px solid var(--rule);
}

.post-author-image-link { flex-shrink: 0; }

.post-author-image {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--rule);
    transition: border-color 0.3s ease;
}
.post-author-image-link:hover .post-author-image { border-color: var(--gold); }

.post-author-info { flex: 1; }

.post-author-label {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.post-author-name {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.7rem;
    line-height: 1.2;
}
.post-author-name a {
    color: var(--gold-bright);
    text-decoration: none;
    transition: color 0.3s ease;
}
.post-author-name a:hover { color: var(--gold); }

.post-author-bio {
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.55;
    margin-bottom: 0.9rem;
}

.post-author-more {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}
.post-author-more:hover { border-bottom-color: var(--gold); }

.post-feature-image {
    margin: 0 auto 3rem;
    border-radius: 4px;
    overflow: hidden;
    width: 90%;        /* 10% smaller than full column width */
    max-width: 90%;
}

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

.post-content { font-size: 1.22rem; }
.post-content p { margin-bottom: 1.55rem; }

/* Drop cap on first paragraph */
.post-content > p:first-of-type::first-letter,
.post-content > .kg-card + p:first-of-type::first-letter {
    font-family: 'Cinzel', serif;
    font-size: 4.3rem;
    float: left;
    line-height: 0.85;
    margin: 0.25rem 0.55rem 0 0;
    color: var(--gold);
    font-weight: 500;
}

.post-content h2 {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    margin: 3rem 0 1.1rem;
    color: var(--gold-bright);
}

.post-content h3 {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: 1.18rem;
    letter-spacing: 0.04em;
    margin: 2.5rem 0 1rem;
    color: var(--gold-bright);
}

.post-content blockquote {
    border-left: 2px solid var(--gold);
    padding: 0.4rem 0 0.4rem 1.8rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.32rem;
}

.post-content a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(201, 169, 97, 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}
.post-content a:hover { text-decoration-color: var(--gold); }

.post-content ul, .post-content ol {
    margin: 1.5rem 0 1.5rem 1.5rem;
}
.post-content li { margin-bottom: 0.4rem; }

.post-content code {
    background: var(--bg-soft);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.95em;
    font-family: 'JetBrains Mono', Menlo, monospace;
}

.post-content pre {
    background: var(--bg-soft);
    border: 1px solid var(--rule);
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content hr {
    border: 0;
    border-top: 1px solid var(--rule);
    margin: 3rem 0;
}

.post-content figure { margin: 2rem 0; }
.post-content figcaption {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Ghost Koenig editor cards */
.kg-card { margin: 2rem 0; }
.kg-image-card img { border-radius: 4px; }
.kg-bookmark-card {
    border: 1px solid var(--rule);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-soft);
}
.kg-bookmark-container {
    display: flex;
    text-decoration: none !important;
    color: var(--text) !important;
}
.kg-bookmark-content { padding: 1.5rem; flex: 1; }
.kg-bookmark-title {
    font-family: 'Cinzel', serif;
    color: var(--gold-bright);
    margin-bottom: 0.5rem;
}

/* Wide and full-width cards (images, embeds) */
.kg-width-wide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.kg-width-full { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }

/* Members paywall (Ghost auto-injects this) */
.gh-post-upgrade-cta-content,
.kg-card-callout-card-paid,
.gh-post-upgrade-cta {
    margin: 3rem 0 !important;
    padding: 2.4rem 2rem !important;
    background: var(--bg-soft) !important;
    border: 1px solid var(--rule) !important;
    border-radius: 4px !important;
    text-align: center !important;
}

.back-link {
    display: inline-block;
    margin-top: 4rem;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}
.back-link:hover { border-color: var(--gold); }

/* ============================================================
   ARCHIVE / TAG / AUTHOR PAGE — listing of posts
   ============================================================ */

.archive {
    max-width: 1040px;
    margin: 0 auto;
    padding: 5rem 2rem 6rem;
    animation: fade 0.9s ease-out;
}

.archive-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--rule);
}

.archive-header h1 {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.author-portrait {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.6rem;
    border: 1px solid var(--rule);
}

.archive-description {
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.15rem;
    max-width: 500px;
    margin: 0 auto;
}

.post-list { display: flex; flex-direction: column; }

.post-card {
    display: flex;
    gap: 1.8rem;
    align-items: flex-start;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
    color: var(--text);
    transition: padding-left 0.3s ease, border-color 0.3s ease;
}
.post-card:hover {
    padding-left: 1rem;
    border-bottom-color: var(--gold);
}

/* Thumbnail beside each card */
.post-card-image {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-soft);
    border: 1px solid var(--rule);
}
.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.post-card:hover .post-card-image img {
    transform: scale(1.04);
}
/* Placeholder image (the emblem) — slightly dimmer so real feature images stand out more */
.post-card-image img.post-card-placeholder {
    opacity: 0.6;
}
.post-card:hover .post-card-image img.post-card-placeholder {
    opacity: 0.85;
}

.post-card-content {
    flex: 1;
    min-width: 0; /* prevent flex overflow on long titles */
}

.post-card-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.post-card-title {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 0.8rem;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}
.post-card:hover .post-card-title { color: var(--gold-bright); }

.post-card-excerpt {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.post-card-meta {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.paid-tag { color: var(--gold); }

.empty {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 4rem 0;
    font-size: 1.2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
}
.pagination a {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
}
.pagination .page-number {
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--rule);
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ============================================================
   ERROR PAGE
   ============================================================ */

.error-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 8rem 2rem;
    text-align: center;
}
.error-page h1 {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* ============================================================
   PILLAR ESSAYS — homepage block and Understanding archive
   ============================================================ */

.home-pillars {
    max-width: 880px;
    margin: 0 auto;
    padding: 4rem 2rem 4.5rem;
    border-top: 1px solid var(--rule);
}

.pillar-eyebrow {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--gold);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 0.6rem;
}

.pillar-section-header {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-weight: 500;
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    letter-spacing: 0.04em;
    color: var(--gold-bright);
    text-align: center;
    margin-bottom: 1rem;
}

.pillar-intro {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.08rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.55;
}

.pillar-list {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    margin-bottom: 2.5rem;
}

.pillar-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.2rem;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    padding: 2rem;
    background: rgba(12, 12, 12, 0.5);
    border: 1px solid var(--rule);
    border-radius: 4px;
    transition: border-color 0.35s ease, transform 0.35s ease;
}
.pillar-card:hover {
    border-color: rgba(201, 169, 97, 0.45);
    transform: translateY(-2px);
}

.pillar-card-image {
    overflow: hidden;
    border-radius: 3px;
    border: 1px solid var(--rule);
    background: var(--bg-soft);
    aspect-ratio: 4 / 3;
}
.pillar-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.pillar-card:hover .pillar-card-image img { transform: scale(1.04); }

.pillar-card-eyebrow {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.pillar-card-title {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-weight: 500;
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    line-height: 1.22;
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}
.pillar-card:hover .pillar-card-title { color: var(--gold-bright); }

.pillar-card-excerpt {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.pillar-card-meta {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.pillar-card-cta {
    display: inline-block;
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(201, 169, 97, 0.4);
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
}
.pillar-card:hover .pillar-card-cta { border-bottom-color: var(--gold); }

/* Featured pillar — needs spacing below it before the secondary row */
.pillar-card-featured { margin-bottom: 2rem; }

/* SECONDARY PILLARS — two smaller cards in a row beneath the featured one */
.pillar-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    margin-bottom: 2.5rem;
}

.pillar-card-secondary {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
    padding: 1.4rem;
    background: rgba(12, 12, 12, 0.5);
    border: 1px solid var(--rule);
    border-radius: 4px;
    transition: border-color 0.35s ease, transform 0.35s ease;
}
.pillar-card-secondary:hover {
    border-color: rgba(201, 169, 97, 0.35);
    transform: translateY(-2px);
}

.pillar-card-secondary .pillar-card-image {
    aspect-ratio: 16 / 10;
    margin-bottom: 1.2rem;
}

.pillar-secondary-content { display: flex; flex-direction: column; }

.pillar-secondary-title {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
    margin-bottom: 0.7rem;
    transition: color 0.3s ease;
}
.pillar-card-secondary:hover .pillar-secondary-title { color: var(--gold-bright); }

.pillar-secondary-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0.9rem;
    flex: 1;
}

/* On the Understanding archive page, give pillar list more breathing room */
.archive-pillars { max-width: 880px; }
.pillar-archive-list { gap: 3rem; }

/* ============================================================
   UNDERSTANDING — two-column reader's path
   Left: Start Here (numbered Foundations)
   Right: Pillar Essays
   ============================================================ */

.archive-understanding {
    max-width: 1120px;
}

.understanding-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.understanding-column {
    /* Each column is its own counter context for numbering */
    display: block;
}

.understanding-column-header {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    color: var(--gold-bright);
    text-align: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--rule);
}

.understanding-column-intro {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.understanding-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--rule);
    background: rgba(12, 12, 12, 0.5);
    border-radius: 4px;
    padding: 1.2rem;
    margin-bottom: 1.6rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.understanding-card:hover {
    border-color: rgba(201, 169, 97, 0.45);
    transform: translateY(-2px);
}

.understanding-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 3px;
    border: 1px solid var(--rule);
    background: var(--bg-soft);
    margin-bottom: 1rem;
}
.understanding-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.understanding-card:hover .understanding-card-image img {
    transform: scale(1.04);
}

.understanding-card-title {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-weight: 500;
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    transition: color 0.3s ease;
}
.understanding-card:hover .understanding-card-title { color: var(--gold-bright); }

.understanding-card-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
}

.understanding-card-meta {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-size: 0.6rem;
    letter-spacing: 0.28em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin: 0;
}

/* NUMBERED BADGES — only on the Foundations column */
.understanding-column-foundations { counter-reset: foundation-step; }
.understanding-column-foundations .understanding-card { counter-increment: foundation-step; }
.understanding-column-foundations .understanding-card::before {
    content: counter(foundation-step);
    position: absolute;
    top: -14px;
    left: -14px;
    width: 36px;
    height: 36px;
    background: var(--gold);
    color: var(--bg);
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--bg);
    z-index: 2;
    transition: background 0.3s ease;
}
.understanding-column-foundations .understanding-card:hover::before {
    background: var(--gold-bright);
}

/* ============================================================
   CITATIONS BLOCK — paste at end of pillar essays via HTML card
   ============================================================ */

.citations-block {
    margin: 3.5rem 0 0;
    padding: 2rem 2.2rem;
    background: var(--bg-soft);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
    font-size: 1rem;
}

.citations-block h3 {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.35em;
    color: var(--gold);
    text-transform: uppercase;
    margin: 0 0 1.2rem;
}

.citations-block .citation-text {
    font-family: var(--gh-font-body, 'Cormorant Garamond', serif);
    font-size: 1.12rem;
    line-height: 1.6;
    margin: 0 0 1.6rem;
    color: var(--text);
    font-style: italic;
}
.citations-block .citation-text em,
.citations-block .citation-text i {
    color: var(--gold-bright);
    font-style: italic;
}

.citations-block dl.citation-meta {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.6rem 1.4rem;
    margin: 0;
}

.citations-block dl.citation-meta dt {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
    align-self: center;
}

.citations-block dl.citation-meta dd {
    margin: 0;
    font-family: var(--gh-font-body, 'Cormorant Garamond', serif);
    font-size: 1rem;
    color: var(--text);
    align-self: center;
}

.citations-block dl.citation-meta dd a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(201, 169, 97, 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s ease;
    word-break: break-word;
}
.citations-block dl.citation-meta dd a:hover {
    text-decoration-color: var(--gold);
}

/* ============================================================
   TAG HERO IMAGE — large banner on tag/section pages
   when the tag has a feature_image set in Ghost admin
   ============================================================ */

.tag-hero {
    display: block;
    width: min(86vw, 1080px);    /* 10% smaller than the previous 95vw / 1200px */
    max-width: 86vw;
    height: auto;
    margin: 1rem auto 2rem;
    border-radius: 4px;
}

.tag-description-wide {
    width: min(86vw, 1000px);
    max-width: 86vw;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.55;
}

/* Visually hide while keeping accessible for screen readers and SEO.
   Used on H1 elements when a tag-hero banner replaces them visually. */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ============================================================
   PLAIN ENGLISH BLOCKS — for academic essays
   .plain-english-intro: paste near the top of a long essay,
   .plain-english-inline: paste mid-essay alongside dense passages.
   See PASTE-TEMPLATES.md for ready-to-copy HTML.
   ============================================================ */

.plain-english-intro {
    background: rgba(212, 175, 55, 0.06);
    border-left: 3px solid rgba(212, 175, 55, 0.5);
    padding: 1.5em 2em;
    margin: 2em 0 3em;
}

.plain-english-intro .pe-label,
.plain-english-inline .pe-label {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-size: 0.75em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.9);
    margin: 0 0 0.8em;
}

.plain-english-intro p { line-height: 1.65; }

.plain-english-intro .pe-orientation {
    font-style: italic;
    opacity: 0.75;
    margin-top: 1em;
}

.plain-english-inline {
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid rgba(212, 175, 55, 0.4);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    font-size: 0.95em;
}

/* ============================================================
   READING PATHWAY BLOCK — paste at the foot of essays to
   suggest "what to read before" and "what to read next".
   ============================================================ */

.reading-pathway {
    display: flex;
    gap: 3em;
    flex-wrap: wrap;
    padding-top: 2em;
    margin: 3em 0 2em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reading-pathway .rp-column {
    flex: 1;
    min-width: 240px;
}

.reading-pathway h4 {
    font-family: var(--gh-font-heading, 'Cinzel', serif);
    font-size: 0.85em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.9);
    margin: 0 0 0.8em;
}

.reading-pathway ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reading-pathway li {
    margin: 0.5em 0;
    line-height: 1.5;
}

.reading-pathway em {
    opacity: 0.5;
    font-size: 0.85em;
}


@media (max-width: 760px) {
    /* Homepage: shrink hero so the intro is visible immediately on phones */
    .home-hero {
        min-height: 55vh;
        padding: 1vh 1vw 0;
    }
    .home-stage {
        max-width: 88vw;
    }
    .home-intro { padding: 2rem 1.4rem 2.5rem; }
    .home-intro h1 { font-size: 1.8rem; }
    .home-blurb { font-size: 1.1rem; }
    .home-newsletter { padding: 2.4rem 1.4rem; }
    .home-newsletter h2 { font-size: 1.35rem; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form button { padding: 0.85rem; }
    .home-latest { padding: 3rem 1.4rem 4rem; }

    /* Featured card stacks vertically on phones */
    .featured-card {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }
    .featured-card-title { font-size: 1.45rem; }

    /* Recent grid collapses to a single column */
    .recent-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .recent-card-title { font-size: 1.1rem; }

    .site-header { padding: 1rem 1.2rem; flex-wrap: wrap; gap: 0.8rem; }
    .site-nav { gap: 1rem; }
    .site-nav a { font-size: 0.6rem; letter-spacing: 0.22em; }
    .site-nav .cta { padding: 0.45rem 0.9rem; }

    .post, .archive { padding: 3rem 1.4rem 4rem; }
    .post-content { font-size: 1.15rem; }
    .post-content > p:first-of-type::first-letter { font-size: 3.5rem; }

    .post-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.2rem;
    }

    /* Pillar cards: stack image above content on phones */
    .home-pillars { padding: 3rem 1.4rem; }
    .pillar-card {
        grid-template-columns: 1fr;
        gap: 1.4rem;
        padding: 1.4rem;
    }
    .pillar-card-image { aspect-ratio: 16 / 10; }
    .pillar-card-title { font-size: 1.25rem; }
    .pillar-card-excerpt { font-size: 1rem; }
    .pillar-archive-list { gap: 2rem; }

    /* Secondary pillars: collapse to a single column on phones */
    .pillar-secondary-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    /* Understanding two columns: stack vertically on phones, Foundations first */
    .understanding-columns {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2rem;
    }
    .understanding-column-header { font-size: 1.3rem; }
    .understanding-card { padding: 1rem; }
    /* Numbered badges sit slightly inset on phones so they don't get clipped */
    .understanding-column-foundations .understanding-card::before {
        top: -10px;
        left: -10px;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    /* Citations block: simpler on small screens */
    .citations-block {
        padding: 1.4rem 1.4rem;
    }
    .citations-block dl.citation-meta {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .citations-block dl.citation-meta dt {
        margin-top: 0.7rem;
    }

    /* On phones: keep thumbnail beside the title but smaller */
    .post-card { gap: 1rem; }
    .post-card-image {
        width: 90px;
        height: 90px;
    }
    .post-card-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
    .post-card-excerpt { font-size: 1rem; margin-bottom: 0.7rem; }
}
