/* ==========================================================================
   Biblical Theme — Screen.css
   A warm, parchment-inspired theme for "The Daily Gift"
   Colors evoke ancient manuscripts, illuminated texts, and the Holy Land
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* --- CSS Custom Properties --- */
:root {
    /* Parchment & Earth Tones */
    --parchment:          #f5e6d3;
    --parchment-dark:     #e8d5b7;
    --parchment-light:    #fdf5ee;
    --parchment-deep:     #d4c4a8;
    
    /* Browns */
    --brown-deep:         #2c1810;
    --brown-dark:         #4a3520;
    --brown:              #5c3a21;
    --brown-warm:         #8b6914;
    --brown-light:        #a0855b;
    
    /* Golds */
    --gold:               #c9a84c;
    --gold-dark:          #a0842d;
    --gold-light:         #e0c87a;
    --gold-pale:          #f0e0a0;
    
    /* Sky & Water */
    --sky:                #8cb5c9;
    --sky-light:          #b0d0e0;
    --sky-deep:           #6a9bb5;
    --water:              #7a9baa;
    
    /* Greens (olive, hill) */
    --olive:              #6b8e23;
    --olive-dark:         #556b2f;
    --olive-light:        #8aad3a;
    
    /* UI Colors */
    --text-primary:       #2c1810;
    --text-secondary:     #5c3a21;
    --text-muted:         #8b7355;
    --text-on-dark:       #f5e6d3;
    --white:              #ffffff;
    --shadow:             rgba(44, 24, 16, 0.08);
    --shadow-strong:      rgba(44, 24, 16, 0.15);
    
    /* Typography */
    --font-heading:       'Cinzel', serif;
    --font-body:          'Lora', Georgia, 'Times New Roman', serif;
    --font-size-base:     18px;
    --line-height-base:   1.8;
    
    /* Layout */
    --content-width:      720px;
    --content-wide:       960px;
    --content-full:       1200px;
    --spacing:            20px;
}


/* ==========================================================================
   1. Reset & Base
   ========================================================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--parchment);
    color: var(--text-primary);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--gold);
    color: var(--white);
}

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

a {
    color: var(--brown);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gold-dark);
}


/* ==========================================================================
   2. Navigation
   ========================================================================== */

.site-nav {
    background: var(--brown-deep);
    padding: 0;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 8px var(--shadow-strong);
}

.nav-inner {
    max-width: var(--content-full);
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: flex;
    align-items: center;
    height: 60px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold) !important;
    letter-spacing: 1px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-logo:hover {
    color: var(--gold-light) !important;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-on-dark);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.nav-current::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--gold-light) !important;
}

/* Navigation from Ghost */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu ul li {
    margin: 0;
}

.nav-menu ul li a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-on-dark);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    margin: 3px 0;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}


/* ==========================================================================
   3. Hero Header — Sermon on the Mount artwork
   ========================================================================== */

.hero-header {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-artwork {
    width: 100%;
    height: 300px;
    display: block;
    background-image: url('../images/sermon-on-the-mount.jpg');
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

/* Desktop+: landscape crop focused on Jesus and mount, taller hero */
@media (min-width: 769px) {
    .hero-artwork {
        background-image: url('../images/sermon-on-the-mount-desktop.jpg');
        background-position: center center;
        height: 400px;
    }
}

/* Subtle dark gradient overlay for text readability */
.hero-artwork::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    text-align: center;
    padding: 20px;
    pointer-events: auto;
    max-width: var(--content-wide);
}

.site-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.site-title a {
    color: var(--gold-light) !important;
    text-decoration: none;
    letter-spacing: 3px;
    text-shadow:
        0 0 12px rgba(201, 168, 76, 0.5),
        0 0 30px rgba(201, 168, 76, 0.25),
        2px 2px 10px rgba(0, 0, 0, 0.6);
}

.site-title a:hover {
    color: var(--gold) !important;
}

.site-description {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--gold-light);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 15px;
}

.hero-verse {
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: italic;
    color: var(--gold-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    margin-top: 10px;
}


/* ==========================================================================
   4. Main Content Area
   ========================================================================== */

.site-main {
    min-height: 60vh;
}

.content-wrapper {
    max-width: var(--content-full);
    margin: 0 auto;
    padding: 40px var(--spacing);
}

.content-wrapper-narrow {
    max-width: var(--content-wide);
}


/* ==========================================================================
   5. Post Cards (Home page feed)
   ========================================================================== */

.post-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.post-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--parchment-deep);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px var(--shadow-strong);
    border-color: var(--gold);
}

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

.post-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.post-card-image-placeholder svg {
    width: 100%;
    height: 100%;
}

.post-card-content {
    padding: 25px;
}

.post-card-header {
    margin-bottom: 12px;
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    transition: color 0.2s ease;
}

.post-card:hover .post-card-title {
    color: var(--gold-dark);
}

.post-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-card-tag {
    background: var(--gold);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.post-card-meta > a {
    background: #c9a84c;
    color: #fff;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.2s;
}

.post-card-meta > a:hover {
    background: #a0842d;
}

.post-card-series-badge {
    background: #2c1810;
    color: #e0c87a;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid #a0842d;
    cursor: pointer;
    transition: background 0.2s;
}

.post-card-series-badge:hover {
    background: #3d2210;
}


/* ==========================================================================
   6. Single Post
   ========================================================================== */

.post-single,
.page-single {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--parchment-deep);
    max-width: var(--content-wide);
    margin: 0 auto 40px;
}

.post-header {
    text-align: center;
    padding: 50px 40px 30px;
}

.page-single .post-header {
    padding: 60px 40px 30px;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.post-meta {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Scripture Drop Cap — illuminated initial on first paragraph */
.post-body > p:first-of-type::first-letter {
    font-family: var(--font-heading);
    font-size: 3.8em;
    font-weight: 700;
    color: var(--gold-dark);
    float: left;
    line-height: 0.85;
    padding-right: 10px;
    margin-top: 6px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
    .post-body > p:first-of-type::first-letter {
        font-size: 2.8em;
    }
}

.post-tags a {
    color: var(--brown);
    font-style: normal;
    font-weight: 600;
}

.post-tags a:hover {
    color: var(--gold-dark);
}

.post-feature-image {
    margin: 0;
    overflow: hidden;
}

.post-feature-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.post-feature-image figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 10px 20px;
}

/* Audio / TTS Controls */
.audio-controls {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}
.btn-listen {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--gold-dark);
    border-radius: 6px;
    background: var(--parchment-light);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-listen:hover {
    background: var(--gold);
    color: #2c1810;
    border-color: var(--gold);
}
.audio-player {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--parchment-light);
    border-radius: 6px;
    border: 1px solid var(--gold-dark);
}
.audio-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}
.btn-audio-pause, .btn-audio-stop {
    background: none;
    border: 1px solid var(--gold-dark);
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    color: var(--text-secondary);
    transition: all 0.2s;
}
.btn-audio-pause:hover, .btn-audio-stop:hover {
    background: var(--gold);
    color: #2c1810;
    border-color: var(--gold);
}

.post-body {
    padding: 40px;
    font-size: 1.05rem;
    line-height: 2;
    max-width: var(--content-width);
    margin: 0 auto;
}

.post-body p {
    margin-bottom: 1.5em;
}

.post-body h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 40px 0 15px;
    letter-spacing: 0.5px;
}

.post-body h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 30px 0 12px;
}

.post-body blockquote {
    border-left: 4px solid var(--gold);
    padding: 20px 30px;
    margin: 25px 0;
    font-style: italic;
    color: var(--text-secondary);
    background: var(--parchment-light);
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
}

.post-body blockquote p {
    margin-bottom: 0;
}

.post-body blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body hr {
    border: none;
    border-top: 2px solid var(--parchment-deep);
    margin: 40px auto;
    width: 80px;
}

/* Series sign — church marquee style */
.series-sign {
    margin: 40px auto;
    max-width: 460px;
}

.series-sign-border {
    background: var(--brown-deep);
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 4px 20px var(--shadow-strong);
}

.series-sign-inner {
    border: 2px solid var(--gold-dark);
    border-radius: 9px;
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--brown-deep);
}

.series-sign-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-dark);
    opacity: 0.9;
}

.series-sign-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1px;
    line-height: 1.2;
    text-transform: uppercase;
}

.series-sign-link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.5px;
    margin-top: 4px;
    transition: color 0.2s;
}

.series-sign-link:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.post-body a {
    color: var(--brown);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.post-body a:hover {
    color: var(--gold-dark);
}

.post-body pre {
    background: var(--brown-deep);
    color: var(--text-on-dark);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
    margin: 20px 0;
    line-height: 1.5;
}

.post-body code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
}

.post-body p code {
    background: var(--parchment);
    padding: 2px 6px;
    border-radius: 3px;
}

.post-body img {
    border-radius: 8px;
    margin: 30px auto;
}

/* Ghost CMS content styles */
.kg-canvas {
    width: 100%;
}

.kg-width-wide {
    max-width: var(--content-wide);
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    max-width: 100%;
}

.kg-bookmark-card {
    margin: 30px 0;
}

.kg-bookmark-container {
    display: flex;
    border-radius: 8px;
    border: 1px solid var(--parchment-deep);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.kg-bookmark-container:hover {
    box-shadow: 0 4px 12px var(--shadow);
}

.kg-bookmark-content {
    padding: 20px;
    flex: 1;
}

.kg-bookmark-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.kg-bookmark-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.kg-bookmark-thumbnail img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    margin: 0;
}

/* Post Footer */
.post-footer {
    padding: 30px 40px 50px;
    border-top: 1px solid var(--parchment-deep);
    max-width: var(--content-width);
    margin: 0 auto;
}

/* Author */
.post-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--parchment-light);
    border-radius: 8px;
    margin-bottom: 25px;
}

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

.author-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
}

.author-info a {
    color: var(--text-primary);
}

.author-info a:hover {
    color: var(--gold-dark);
}

/* Tags list */
.post-tags-section {
    margin: 30px 0 20px;
    padding: 20px 0;
    border-top: 1px solid var(--parchment-deep);
    border-bottom: 1px solid var(--parchment-deep);
}

.post-tags-heading {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px;
}

.post-tags-list {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.post-tags-list .post-tag-badge {
    display: inline-block;
    background: var(--parchment);
    padding: 5px 16px;
    border-radius: 20px;
    margin: 0 6px 8px 0;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    color: var(--brown);
    border: 1px solid var(--parchment-deep);
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.post-tags-list .post-tag-badge:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
    transform: translateY(-1px);
}

/* Share links */
.post-share {
    margin-bottom: 30px;
}

.post-share h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.share-links {
    display: flex;
    gap: 10px;
}

.share-link {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--gold-dark);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.share-link:hover {
    background: var(--gold);
    color: #2c1810 !important;
    border-color: var(--gold);
}

/* Reader Reflections */
.reflections-section {
    margin-bottom: 30px;
    padding: 0 20px;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}
.reflections-heading {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-align: center;
}
.reflections-list {
    margin-bottom: 20px;
}
.reflections-empty {
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
    padding: 20px;
}
.reflection-item {
    background: var(--parchment-light);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 10px;
    border: 1px solid var(--parchment-deep);
}
.reflection-item .ref-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-primary);
}
.reflection-item .ref-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 8px;
}
.reflection-item .ref-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.6;
}
.reflections-prompt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-style: italic;
}
.reflection-form {
    background: var(--parchment-light);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--parchment-deep);
}
.ref-input, .ref-textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 2px solid var(--parchment-deep);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.ref-input:focus, .ref-textarea:focus {
    border-color: var(--gold);
}
.ref-textarea {
    resize: vertical;
    min-height: 70px;
}
.ref-submit {
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: var(--gold);
    color: var(--white);
    transition: all 0.2s;
}
.ref-submit:hover {
    background: var(--gold-dark);
}
.reflection-signup-prompt {
    text-align: center;
    padding: 30px 20px;
    background: var(--parchment-light);
    border-radius: 8px;
    border: 1px solid var(--parchment-deep);
}
.reflection-signup-prompt p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.ref-signup-link {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gold);
    color: var(--white);
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
}
.ref-signup-link:hover {
    background: var(--gold-dark);
    color: var(--white);
}
.ref-signup-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 14px;
}
.ref-signup-note a {
    color: var(--gold-dark);
    text-decoration: underline;
}
.ref-submit:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}
.ref-submit:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}
.ref-status { margin-top: 10px; }
.ref-success { color: #2e7d32; font-size: 0.9rem; }
.ref-error { color: #c62828; font-size: 0.9rem; }

/* Post navigation */
.post-nav {
    margin-top: 20px;
}

.post-nav-link {
    display: block;
    padding: 15px 20px;
    background: var(--parchment-light);
    border-radius: 8px;
    border: 1px solid var(--parchment-deep);
    transition: all 0.3s ease;
}

.post-nav-link:hover {
    background: var(--parchment);
    border-color: var(--gold);
}

.post-nav-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.post-nav-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
}


/* ==========================================================================
   7. Tag & Author Archive Pages
   ========================================================================== */

.tag-header,
.author-header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--parchment-deep);
    box-shadow: 0 2px 8px var(--shadow);
}

.tag-name,
.author-name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.tag-description,
.author-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

.tag-image img {
    max-width: 400px;
    margin: 20px auto;
    border-radius: 8px;
}

.author-profile {
    max-width: 600px;
    margin: 0 auto;
}

.author-profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--gold);
}

.author-meta {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.author-website {
    color: var(--brown);
    text-decoration: underline;
}

.author-location::before {
    content: '\2022';
    margin: 0 10px;
}


/* ==========================================================================
   8. Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px 0 40px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 1px solid var(--parchment-deep);
    transition: all 0.3s ease;
}

.pagination a {
    color: var(--brown);
}

.pagination a:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.pagination .page-number {
    color: var(--text-muted);
    border: none;
    padding: 10px;
}


/* ==========================================================================
   9. Daily Verse Widget
   ========================================================================== */

.daily-verse-section {
    padding: 0 20px;
    margin: -20px auto 0;
    max-width: var(--content-width);
}

.daily-verse-card {
    background: #2c1810;
    border-radius: 12px;
    padding: 35px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(44,24,16,0.2);
    border: 1px solid var(--gold-dark);
    position: relative;
    overflow: hidden;
}

.daily-verse-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

.daily-verse-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    padding: 4px 16px;
    border: 1px solid var(--gold-dark);
    border-radius: 20px;
}

.daily-verse-text {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.9;
    color: #f5e6d3;
    font-style: italic;
    margin-bottom: 12px;
}

.daily-verse-ref {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #e0c87a;
    letter-spacing: 0.5px;
}

.daily-verse-click-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
    cursor: default;
    transition: color 0.2s;
}
.daily-verse-card:hover + .daily-verse-click-hint,
.daily-verse-click-hint:hover {
    color: var(--gold-dark);
}

#daily-verse-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#daily-verse-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(44,24,16,0.3);
}

@media (max-width: 600px) {
    .daily-verse-card {
        padding: 25px 20px;
    }
    .daily-verse-text {
        font-size: 1rem;
    }
}

/* ==========================================================================
   10. Footer
   ========================================================================== */

.site-footer {
    background: var(--brown-deep);
    color: var(--text-on-dark);
    text-align: center;
    padding: 50px 20px 40px;
    margin-top: 60px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gold);
}

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

.footer-verse {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 8px;
    display: inline-block;
    max-width: 500px;
}

.footer-verse p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.verse-ref {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 1px;
}

.footer-bottom {
    padding-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom p {
    margin-bottom: 5px;
}

.footer-bottom a {
    color: var(--gold);
}

.footer-bottom a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.footer-ai-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}


/* ==========================================================================
   10. Error Page
   ========================================================================== */

.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-code {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px var(--shadow-strong);
}

.error-message {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-link {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--white);
    transition: background 0.3s ease;
}

.error-link:hover {
    background: var(--gold-dark);
    color: var(--white) !important;
}


/* ==========================================================================
   11. Ghost-specific Overrides
   ========================================================================== */

/* Ghost navigation output */
.gh-navigation {
    display: none;
}

.gh-container {
    display: none;
}

.gh-footer {
    display: none;
}

/* Ghost content cards */
.kg-header-card {
    padding: 60px 20px;
    text-align: center;
}

.kg-header-card h2 {
    font-family: var(--font-heading);
}

/* Image gallery */
.kg-image-card {
    margin: 30px 0;
}

.kg-image-card figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 8px;
}

/* Callout card */
.kg-callout-card {
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

/* Toggle card */
.kg-toggle-card {
    border-radius: 8px;
    border: 1px solid var(--parchment-deep);
}

.kg-toggle-heading-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

/* Button card */
.kg-btn {
    font-family: var(--font-heading) !important;
    letter-spacing: 1px;
    padding: 12px 28px !important;
    border-radius: 6px !important;
}

/* ==========================================================================
   12. Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .site-title {
        font-size: 2.8rem;
    }
    
    .post-feed {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-base: 16px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--brown-deep);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-top: 1px solid rgba(201, 168, 76, 0.3);
    }
    
    .nav-menu.nav-open {
        display: flex;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .site-title {
        font-size: 2.2rem;
    }
    
    .site-title a {
        letter-spacing: 2px;
    }
    
    .site-description {
        font-size: 1rem;
    }

    .hero-content {
        padding: 20px;
    }
    
    .hero-verse {
        font-size: 0.85rem;
    }
    
    .post-feed {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-header {
        padding: 30px 20px 20px;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-body {
        padding: 20px;
    }
    
    .post-footer {
        padding: 20px;
    }
    
    .post-share .share-links {
        flex-wrap: wrap;
    }
    
    .post-single,
    .page-single {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .tag-name,
    .author-name {
        font-size: 1.8rem;
    }
    
    .hero-artwork {
        height: 350px;
    }
    
    .error-code {
        font-size: 5rem;
    }

    .kg-bookmark-container {
        flex-direction: column;
    }
    
    .kg-bookmark-thumbnail img {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.8rem;
    }
    
    .hero-artwork {
        height: 280px;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .post-card-title {
        font-size: 1.1rem;
    }
    
    .content-wrapper {
        padding: 20px 15px;
    }
}


/* ==========================================================================
   13. Animations
   ========================================================================== */

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

.post-card {
    opacity: 1; /* visible by default on slow connections */
}

.post-card.card-visible {
    animation: fadeIn 0.5s ease forwards;
}

.post-card.card-visible:nth-child(1) { animation-delay: 0.05s; }
.post-card.card-visible:nth-child(2) { animation-delay: 0.1s; }
.post-card.card-visible:nth-child(3) { animation-delay: 0.15s; }
.post-card.card-visible:nth-child(4) { animation-delay: 0.2s; }
.post-card.card-visible:nth-child(5) { animation-delay: 0.25s; }
.post-card.card-visible:nth-child(6) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: no-preference) {
    .post-card {
        opacity: 0;
    }
    .post-card.card-visible {
        animation: fadeIn 0.6s ease forwards;
    }
}

@media (prefers-reduced-motion: reduce) {
    .post-card {
        opacity: 1;
        animation: none;
    }
}