/* =========================================
   1. GENERAL RESET & LAYOUT
========================================= */
body {
    margin: 0;
    padding: 0;
    font-family: 'Crimson Pro', serif;
    background-color: #fdfbf7; /* Paper white */
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* =========================================
   2. WELCOME BAR (Dismissible)
========================================= */
.welcome-bar {
    background-color: #e3e8e5;
    color: #444;
    padding: 15px 20px;
    margin-bottom: 40px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    animation: fadeIn 0.5s ease;
}

.welcome-message { flex-grow: 1; }

.welcome-link {
    display: inline-block;
    margin-left: 10px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #222;
}

.welcome-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0 0 0 15px;
}
.welcome-close:hover { color: #000; }

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

/* =========================================
   3. HEADER STYLING
========================================= */
.main-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
}

.profile-photo {
    width: 100px;
    height: 130px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden; 
}

.identity h1 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
    color: #222;
}

.mini-menu a {
    text-decoration: none;
    color: #666;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin-right: 15px;
    transition: color 0.3s;
}
.mini-menu a:hover { color: #000; }

/* Footer Nudge */
.story-footer {
    text-align: center;
    margin-bottom: 80px;
}

.story-footer p {
    font-family: 'Lato', sans-serif;
    color: #888;
    margin-bottom: 20px;
}

.next-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.action-btn {
    text-decoration: none;
    border: 1px solid #ddd;
    padding: 10px 20px;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: #555;
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: #000;
    color: #000;
}

/* =========================================
   4. INTRO STATEMENT
========================================= */
.intro-statement {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.ornament {
    font-size: 4rem;
    line-height: 1;
    color: #ccc;
    font-weight: 300;
}

.statement-text p {
    font-size: 1.2rem;
    margin-top: 10px;
    color: #444;
}

.statement-text p a {
    font-size: 1.2rem;
    margin-top: 10px;
    font-weight: 600;
    color: #444;
    text-decoration: underline;
}

/* =========================================
   5. UPDATES STREAM (Interactive List)
========================================= */
.divider {
    border: 0;
    border-top: 1px solid #eaeaea;
    margin-bottom: 30px;
}

.stream-item {
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
}

.item-row {
    display: flex;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}
.item-row:hover { background-color: #fafafa; }

.item-badge {
    width: 80px;
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.badge-song { color: #999; }
.badge-story { color: #555; }
.badge-journal { color: #bbb; }

.item-title {
    flex-grow: 1;
    font-family: 'Crimson Pro', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
}

.title-text {
    transition: all 0.2s;
    border-bottom: 1px solid transparent;
}
.item-row:hover .title-text { border-bottom: 1px solid #333; }

.title-icon {
    margin-left: 10px;
    color: #ddd;
    display: inline-flex;
    align-items: center;
    opacity: 0.8;
}
.title-icon svg { vertical-align: middle; }

.item-action {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: #ccc;
    transition: color 0.2s;
}
.item-row:hover .expand-icon { color: #333; }

.expand-icon {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.4rem;
    line-height: 1;
    display: inline-block;
    width: 20px;
    text-align: center;
}

/* Centered Archive Buttons on Homepage */
.archive-buttons-centered {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    padding-top: 20px;
}

.btn-archive-prominent {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1px solid #ccc;
    padding: 12px 30px;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #555;
    letter-spacing: 1px;
    transition: all 0.3s;
    min-width: 150px;
    justify-content: center;
}
.btn-archive-prominent:hover {
    border-color: #000;
    color: #000;
    background-color: #fff;
}

/* =========================================
   6. ACCORDION DETAILS & AUDIO PLAYER
========================================= */
.item-details {
    display: none;
    padding: 20px 0 30px 80px;
    background-color: #fafafa;
}

/* --- SONG PLAYER STYLING --- */
.song-preview-container {
    padding-right: 20px;
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    gap: 15px;
}

.custom-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    overflow: hidden;
}
.custom-play-btn:hover {
    border-color: #333;
    background: #fafafa;
}
.custom-play-btn svg {
    width: 14px;
    height: 14px;
    fill: #555;
    display: block;
}

.waveform-wrapper {
    flex-grow: 1;
    height: 60px;
    position: relative;
    cursor: pointer; 
    background-color: #eee;
    border-radius: 4px;
}

.waveform-bg {
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6; 
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none; /* Allows click through */
}

.waveform-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: rgba(212, 175, 55, 0.4);
    border-right: 2px solid #d4af37;
    z-index: 2;
    pointer-events: none; 
    transition: width 0.1s linear;
}

.hidden-audio { display: none; }

.meta-description {
    font-size: 0.9rem;
    color: #666;
    margin: 10px 0 0 0;
    font-style: italic;
    width: 100%;
}

.time-display {
    position: absolute;
    top: 5px;
    right: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 0.65rem;
    color: #555;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 2px 4px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 5;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* --- STORY PREVIEW IN ACCORDION --- */
.story-preview-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-right: 20px;
}

.story-preview-cover {
    flex-shrink: 0;
    width: 80px;
    height: 120px;
    background-color: #333;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.cover-placeholder {
    color: white;
    font-size: 0.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-family: 'Lato', sans-serif;
    letter-spacing: 1px;
}

.story-preview-text { flex-grow: 1; }

.teaser-text {
    font-size: 1rem;
    font-family: 'Crimson Pro', serif;
    color: #555;
    margin-top: 0;
    line-height: 1.5;
}

.read-more-btn {
    display: inline-block;
    margin-top: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
}

/* =========================================
   7. PROMINENT NEWSLETTER
========================================= */
.newsletter-prominent {
    margin-top: 20px;
    margin-bottom: 60px;
    padding: 0 10px;
}

.newsletter-box {
    background-color: #f4f1ea;
    border: 1px solid #e0e0e0;
    padding: 40px;
    text-align: center;
}

.newsletter-box h4 {
    font-family: 'Lato', sans-serif;
    letter-spacing: 2px;
    margin-top: 0;
    color: #333;
}

.newsletter-box p {
    font-family: 'Crimson Pro', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #666;
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-form input {
    padding: 12px;
    width: 60%;
    border: 1px solid #ccc;
    font-family: 'Lato', sans-serif;
    background: #fff;
}

.newsletter-form button {
    padding: 12px 20px;
    background-color: #222;
    color: #fff;
    border: none;
    font-family: 'Lato', sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}
.newsletter-form button:hover { background-color: #000; }

.spam-notice {
    font-size: 0.7rem;
    color: #999;
    font-family: 'Lato', sans-serif;
    display: block;
}

/* =========================================
   8. FEATURED BOOKS (Side-by-Side Boxes)
========================================= */
.section-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #999;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    line-height: 0.1em;
}
.section-label span { 
    background: #fdfbf7;
    padding: 0 10px; 
}

/* Featured Card Grid */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.featured-card {
    border: 1px solid #e0e0e0;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    background-color: transparent;
    transition: border-color 0.3s, transform 0.3s;
}
.featured-card:hover {
    border-color: #bbb;
    transform: translateY(-2px);
}

.featured-cover {
    width: 100px;
    height: 150px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.featured-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-quote {
    font-family: 'Crimson Pro', serif;
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.4;
    color: #222;
    margin: 0 0 15px 0;
}

.featured-link {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #999;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.featured-card:hover .featured-link { color: #000; }

/* =========================================
   9. SONGS TABLE
========================================= */
.songs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.songs-table tr { border-bottom: 1px solid #f0f0f0; }
.songs-table td { padding: 15px 10px; font-size: 0.95rem; }

.play-cell { color: #888; cursor: pointer; width: 30px; }
.song-name { font-family: 'Crimson Pro', serif; font-weight: 600; color: #333; }
.song-vibe { font-family: 'Lato', sans-serif; font-size: 0.75rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.song-time { font-family: 'Lato', sans-serif; font-size: 0.8rem; color: #bbb; text-align: right; }

.center-link { text-align: center; }
.text-link { font-family: 'Lato'; font-size: 0.8rem; color: #666; text-decoration: none; border-bottom: 1px solid #ccc; }

/* =========================================
   10. EXTENDED BIO & FOOTER
========================================= */
.bio-footer { margin-top: 80px; }

.bio-container {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.photo-rect-large {
    width: 150px;
    height: 200px;
    background-color: #ddd;
    border-radius: 2px;
}

.bio-text p { font-size: 1.1rem; color: #444; }

.footer-quote {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: #888;
}

footer {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    padding: 40px 0;
    font-family: 'Lato', sans-serif;
    border-top: 1px solid #eee;
}

/* =========================================
   PAGE: SINGLE STORY & BIO (Shared Layout)
========================================= */
.story-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: #999;
}

.back-link {
    text-decoration: none;
    color: #999;
    transition: color 0.3s;
}
.back-link:hover { color: #000; }

.story-brand { letter-spacing: 2px; font-weight: 700; color: #ccc; }

.bio-page-layout {
    display: flex;
    gap: 60px;
    margin-top: 40px;
    margin-bottom: 80px;
}

.bio-left { flex-basis: 35%; flex-shrink: 0; }
.bio-right { flex-basis: 65%; }

.bio-portrait-large {
    width: 100%;
    height: 350px;
    background-color: #ddd;
    margin-bottom: 30px;
    box-shadow: 10px 10px 0px #eee;
}

.bio-badge {
    margin-bottom: 20px;
    font-family: 'Lato', sans-serif;
}

.badge-label {
    display: block;
    font-size: 0.65rem;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.badge-text {
    font-size: 1rem;
    color: #333;
    font-weight: 700;
}

.bio-title {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    margin-top: 0;
    line-height: 1.1;
    margin-bottom: 30px;
}

.professional-contact {
    background-color: #fafafa;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #eee;
}
.professional-contact h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
    margin-top: 0;
}
/* Add these styles to your existing CSS file */

/* Pre-order button (green, solid) */
.action-btn-preorder {
    display: inline-block;
    font-size: 0.9em;
    padding: 12px 24px;
    background-color: #10b981; /* Green */
    color: white;
    text-decoration: none;
        text-transform: uppercase;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #10b981;
    text-align: center;
}

.action-btn-preorder:hover {
    background-color: #059669;
    border-color: #059669;
    transform: translateY(-2px);
}

/* Coming soon button (outline only, non-clickable) */
.action-btn-coming-soon {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    color: #6b7280; /* Gray text */
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid #d1d5db; /* Gray border */
    text-align: center;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Update existing action-btn-solid for released books if needed */
.action-btn-solid {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2563eb; /* Blue - adjust to your brand color */
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #2563eb;
    text-align: center;
}

.action-btn-solid:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
}
/* =========================================
   STORY CONTENT (Right Column)
========================================= */
.story-content-tight {
    font-family: 'Crimson Pro', serif;
    font-size: 1.25rem;
    line-height: 1.5;
    color: #222;
    margin-bottom: 60px;
}

.story-content-tight p {
    margin-bottom: 25px;
}

/* FIX 1: THE DROP CAP */
/* We add the '>' symbol. This restricts the effect to ONLY the immediate first paragraph. */
/* It will no longer affect lists, blockquotes, or nested items. */
.story-content-tight > p:first-of-type::first-letter {
    font-size: 3.2rem;
    float: left;
    margin-top: -2px;
    margin-right: 8px;
    line-height: 0.8;
    color: #000;
}

/* FIX 2: UGLY BLUE LINKS IN LISTS */
/* This forces the links inside your bullet points to look like the rest of the site */
.story-content-tight ul, 
.story-content-tight ol {
    margin-bottom: 30px;
    padding-left: 20px;
    font-family: 'Crimson Pro', serif; /* Ensure font matches */
    font-size: 1.2rem;
    color: #444;
}

.story-content-tight li {
    margin-bottom: 10px;
}

.story-content-tight li a {
    color: #333; /* Dark Grey (Not Blue) */
    text-decoration: underline;
    text-decoration-color: #ccc; /* Subtle underline */
    text-underline-offset: 3px;
    transition: all 0.2s;
    font-weight: 600;
}

.story-content-tight li a:hover {
    color: #000;
    text-decoration-color: #d4af37; /* Gold shine on hover */
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky; 
    top: 40px; 
    align-self: flex-start; 
}

/* Meta Row (Date/Time Side-by-Side) */
.meta-row {
    display: flex;
    gap: 20px; 
    margin-bottom: 20px; 
}
.meta-row .bio-badge { margin-bottom: 0; }

/* Solid Action Button */
.action-btn-solid {
    display: inline-block;
    background-color: #222;
    color: #fff;
    padding: 10px 20px;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.action-btn-solid:hover { background-color: #444; }

.action-btn-small {
    text-decoration: none;
    font-size: 0.8rem;
    color: #555;
    border: 1px solid #ccc;
    padding: 5px 10px;
    display: inline-block;
    margin-top: 5px;
    transition: all 0.2s;
}
.action-btn-small:hover { border-color: #000; color: #000; }

/* =========================================
   3D REALISTIC BOOK (Matte/Gentle)
========================================= */
.story-cover-display {
    width: 100%;
    perspective: 1500px; 
    margin-bottom: 40px;
    display: flex;
    justify-content: center; 
}

.book-realistic {
    width: 200px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-5deg) rotateX(5deg); 
    transition: transform 0.4s ease;
}

.book-realistic:hover {
    transform: rotateY(-25deg) rotateX(0deg) translateY(-10px);
}

.book-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    background-size: cover;
    background-position: center;
    border-radius: 2px 4px 4px 2px;
    box-shadow: inset 4px 0 10px rgba(0,0,0,0.1); 
    z-index: 2;
}

.book-realistic::before {
    content: '';
    position: absolute;
    top: 3px;
    right: -15px;
    width: 15px;
    height: calc(100% - 6px);
    background: #fff;
    background-image: linear-gradient(to right, #e3e3e3 0%, #fdfbf7 100%);
    transform: rotateY(90deg);
    transform-origin: left;
    z-index: 1;
}

.book-realistic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    transform: translateZ(-20px) translateX(5px) translateY(8px);
    filter: blur(15px);
    z-index: 0;
    opacity: 0.5;
    transition: all 0.4s;
}

.book-realistic:hover::after {
    transform: translateZ(-50px) translateX(20px) translateY(30px);
    opacity: 0.3;
}

.cover-placeholder-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Lato', sans-serif;
    letter-spacing: 3px;
    background-color: #333;
}

/* THICKNESS VARIANTS */
.book-thin::before { width: 14px; right: -14px; }
.book-medium::before { width: 28px; right: -28px; }
.book-thick::before { width: 55px; right: -55px; }
.book-thick::after { transform: translateZ(-20px) translateX(10px) translateY(8px); }

/* =========================================
   ARCHIVE: THE MIXED RHYTHM GRID
========================================= */

.mixed-grid {
    display: grid;
    /* 4 Equal columns */
    grid-template-columns: repeat(4, 1fr);
    /* Tighter gap (10px) because the books are now sized correctly */
    gap: 10px; 
    margin-top: 50px;
    align-items: start;
}

/* --- TYPE A: THE 3D BOOK (Takes 1 Column) --- */
.grid-item-book {
    grid-column: span 1;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1000px;
    width: 100%;
}

/* FIX 1: Set the EXACT size of the container (No scaling) */
.grid-item-book .story-cover-display {
    margin-bottom: 0;
    
    /* We set the physical size here (Standard 1:1.5 ratio) */
    width: 140px; 
    height: 210px; 
    
    margin: 0 auto; /* Center in grid cell */
    display: block; /* Remove flex complications */
}

/* FIX 2: Make the book fit the container 100% */
.grid-item-book .book-realistic {
    width: 100%;
    height: 100%;
    
    /* NO SCALE - Just the rotation */
    transform: rotateY(-5deg) rotateX(5deg); 
    transition: transform 0.4s ease;
}

.grid-item-book:hover .book-realistic {
    /* Lift up effect */
    transform: translateY(-10px) rotateY(0deg) rotateX(0deg);
}

/* FIX 3: Ensure images cover the book face without distortion */
.grid-item-book .book-front {
    background-size: cover; /* Crops image to fit perfectly */
    background-position: center top; /* Focuses on top/center of cover */
}

.grid-book-title {
    font-family: 'Crimson Pro', serif;
    font-size: 0.95rem;
    text-align: center;
    color: #444;
    line-height: 1.2;
    margin-top: 15px; /* Clear spacing from book bottom */
    max-width: 140px; /* Match book width */
    margin-left: auto;
    margin-right: auto;
}

/* --- TYPE B: THE FEATURED BOX (Takes 2 Columns) --- */
.grid-item-featured {
    grid-column: span 2;
    border: 1px solid #e0e0e0;
    padding: 20px; 
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    height: 100%;
    box-sizing: border-box;
    background-color: transparent;
}

.grid-item-featured:hover {
    border-color: #999;
    background-color: #fafafa;
}

.grid-feat-cover {
    width: 80px; 
    height: 120px;
    background-size: cover;
    background-position: center;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.grid-feat-text {
    display: flex;
    flex-direction: column;
}

.grid-feat-quote {
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    font-style: italic;
    color: #222;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.grid-feat-link {
    font-family: 'Lato', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    text-decoration: none;
}

/* --- MOBILE: STACK EVERYTHING --- */
@media (max-width: 900px) {
    .mixed-grid {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 40px;
    }
    
    .grid-item-book, .grid-item-featured {
        grid-column: span 1;
    }
    
    /* On mobile, make books larger again */
    .grid-item-book .story-cover-display {
        width: 180px;
        height: 270px;
    }
}
/* =========================================
   SHORTCODE: HERO STORY
========================================= */
.hero-story-box {
    border: 1px solid #e0e0e0;
    padding: 60px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 80px;
    background-color: transparent;
}

.hero-text { flex: 1; }

.hero-quote {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    font-style: italic;
    color: #222;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
}

.hero-quote::before {
    content: '“';
    position: absolute;
    left: -40px;
    top: -20px;
    font-size: 5rem;
    color: #f0f0f0;
    z-index: -1;
    font-family: 'Times New Roman', serif;
}

.hero-description {
    font-family: 'Lato', sans-serif;
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
}

.hero-link {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #222;
    text-decoration: none;
    border-bottom: 2px solid #ddd;
    padding-bottom: 2px;
}

/* =========================================
   PAGE: SINGLE SONG & LYRICS
========================================= */
.song-sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #fdfbf7;
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 60px;
}

.song-sticky-title {
    text-align: center;
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    margin: 0 0 10px 0;
    background: linear-gradient(to right, #111 0%, #111 40%, #d4af37 50%, #111 60%, #111 100%);
    background-size: 200% auto;
    color: #111;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 6s linear infinite;
}

.song-hero-player {
    background-color: transparent;
    padding: 0;
    border: none;
}

.song-tech-meta {
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    color: #999;
    margin-top: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.song-tech-meta .sep { margin: 0 8px; color: #ddd; }

.song-liner-notes {
    max-width: 500px;
    margin: 0 auto 80px auto;
    font-family: 'Crimson Pro', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
}
.song-liner-notes p { margin-bottom: 10px; }

/* LYRICS */
.song-liner-notes blockquote {
    background: transparent;
    border: none;
    margin: 40px auto; 
    padding: 0;
    text-align: center;
    font-style: italic;
    font-weight: 500;
    font-size: 1.4rem;
    color: #222;
}
.song-liner-notes blockquote p {
    margin-top: 0;
    margin-bottom: 30px; 
    line-height: 1.5;
    white-space: pre-line; 
}
.song-liner-notes blockquote p:last-child { margin-bottom: 0; }

/* SHINE ANIMATION */
@keyframes textShine {
    to { background-position: -200% center; }
}

/* =========================================
   PAGE: SINGLE JOURNAL ENTRY
========================================= */
.journal-header {
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
}

.journal-date-large {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 5px;
}

.journal-year {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 20px;
}

.journal-title {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    color: #333;
    margin: 0;
}

.journal-title a {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.journal-content {
    max-width: 580px;
    margin: 0 auto 80px auto;
    font-family: 'Crimson Pro', serif;
    font-size: 1.25rem;
    line-height: 1.7;
    color: #444;
}

.journal-content p:first-of-type::first-letter {
    font-size: 1.35rem;
    font-weight: bold;
    float: none;
    margin: 0;
}

/* =========================================
   INLINE STEM PLAYER
========================================= */
.stem-player-box {
    background-color: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin: 30px 0;
    max-width: 100%;
}

.stem-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    margin-bottom: 8px;
}

.stem-audio-element { width: 100%; height: 30px; outline: none; }

.stem-download-link {
    display: block;
    text-align: right;
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    color: #999;
    text-decoration: none;
    margin-top: 5px;
}
.stem-download-link:hover { color: #333; text-decoration: underline; }

/* =========================================
   POST IMAGE STYLING (The Toolkit)
========================================= */
.post-img {
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: auto;
    display: block;
}

.img-small { width: 150px; max-width: 100%; }
.img-medium { width: 250px; max-width: 100%; }
.img-full { width: 100%; }

.align-center { margin: 40px auto; display: block; }
.align-left { float: left; margin-right: 30px; margin-bottom: 20px; margin-top: 10px; }
.align-right { float: right; margin-left: 30px; margin-bottom: 20px; margin-top: 10px; }

.clearfix::after { content: ""; clear: both; display: table; }

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */
@media (max-width: 900px) {
    /* Stack Mixed Grid */
    .mixed-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .grid-item-book, .grid-item-featured {
        grid-column: span 1;
    }
    .grid-item-book .story-cover-display {
        height: 280px; 
    }
    .grid-item-book .book-realistic {
        transform: scale(0.9) rotateY(-5deg) rotateX(5deg);
    }
}

@media (max-width: 600px) {
    .main-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .bio-page-layout { flex-direction: column; }
    .bio-left { width: 100%; margin-bottom: 20px; }
    .book-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 20px;
        padding-left: 20px;
    }
    .song-preview-container { padding-right: 0; }
    .archive-buttons-centered { flex-direction: column; gap: 15px; }
    /* Hero Story Mobile */
    .hero-story-box {
        flex-direction: column-reverse;
        padding: 30px;
        text-align: center;
    }
    .hero-quote::before { display: none; }
    .hero-description { margin: 0 auto 30px auto; }
}

/* =========================================
   INLINE NEWSLETTER (For Footers)
========================================= */

.newsletter-inline {
    text-align: center;
    max-width: 400px; /* Keep it narrow and elegant */
    margin: 60px auto 40px auto;
    padding: 0 20px;
}

.divider-short {
    width: 50px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 0 auto 30px auto;
}

.newsletter-inline-title {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 10px;
}

.newsletter-inline-text {
    font-family: 'Crimson Pro', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #444;
    margin-bottom: 20px;
}

.newsletter-form-inline {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #ccc; /* Underline style only */
    padding-bottom: 5px;
    width: 80%;
    margin: 0 auto 10px auto;
}

.newsletter-form-inline input {
    border: none;
    background: transparent;
    font-family: 'Lato', sans-serif;
    color: #333;
    flex-grow: 1;
    outline: none;
    padding: 5px;
}

.newsletter-form-inline button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    padding: 0 10px;
    transition: transform 0.2s;
}

.newsletter-form-inline button:hover {
    transform: translateX(3px); /* Subtle arrow movement */
}

/* =========================================
   IN-POST LINK STYLING
========================================= */

/* Targets links inside Stories, Songs, Journals, and Intro */
.entry-content a,
.journal-content a,
.song-liner-notes a,
.statement-text p a {
    color: #333; /* Dark grey, not blue */
    text-decoration: underline;
    text-decoration-color: #d4af37; /* Light grey underline */
    text-underline-offset: 3px; /* Puts space between letters and line */
    transition: all 0.2s;
    font-weight: 500;
}

/* Hover Effect */
.entry-content a:hover,
.journal-content a:hover,
.song-liner-notes a:hover,
.statement-text p a:hover {
    color: #000; /* Pitch black */
    font-weight: 400;
    text-decoration-color: #8c6c05; /* The Gold accent color */
}
/* =========================================
   JOURNAL ARCHIVE: SWISS LAYOUT
========================================= */

.journal-swiss-layout {
    max-width: 100%;
    margin-top: 20px;
}

.journal-row {
    display: flex;
    gap: 40px; 
    padding: 35px 0;
    border-bottom: 1px solid #eee; /* Subtle separator */
    align-items: baseline; /* Aligns text tops perfectly */
}

/* LEFT COLUMN: The Date Gutter */
.journal-date-col {
    flex-basis: 15%; /* Takes up roughly 15% of width */
    flex-shrink: 0;  /* Prevents shrinking */
    text-align: right;
    font-family: 'Lato', sans-serif;
    color: #999;
}

.date-dm {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #444; /* Darker grey for readability */
    margin-bottom: 2px;
}

.date-y {
    font-size: 0.75rem;
    color: #ccc;
}

/* RIGHT COLUMN: The Content */
.journal-content-col {
    flex-basis: 85%;
}

.journal-swiss-title {
    margin: 0 0 12px 0;
    font-family: 'Crimson Pro', serif;
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: 600;
}

/* Title Link Styling (Clean, No Underline) */
.journal-swiss-title a {
    text-decoration: none;
    color: #222;
    transition: color 0.2s;
    background-image: linear-gradient(to right, #222 0%, #222 100%);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: left bottom;
    padding-bottom: 2px;
    transition: background-size 0.3s, color 0.3s;
}

.journal-swiss-title a:hover {
    color: #000;
    background-size: 100% 1px; /* Animate underline on hover */
}

.journal-swiss-excerpt {
    font-family: 'Crimson Pro', serif;
    font-size: 1.15rem;
    color: #666; /* Lighter grey to separate from title */
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.journal-read-link {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.journal-read-link:hover {
    color: #333;
}

/* MOBILE: Stack them vertically */
@media (max-width: 600px) {
    .journal-row {
        flex-direction: column;
        gap: 10px;
        padding: 30px 0;
    }
    
    .journal-date-col {
        text-align: left;
        display: flex;
        gap: 10px;
        align-items: baseline;
    }
    
    .date-dm { margin-bottom: 0; color: #999; }
    
    .journal-swiss-title { font-size: 1.4rem; }
}
/* =========================================
   CONTACT FORM: CLASSIC & READABLE
========================================= */
.contact-stationery {
    margin-top: 40px;
    max-width: 100%;
}

.input-group {
    margin-bottom: 30px;
    position: relative;
}

/* 1. LABELS: Bold and Dark */
.contact-stationery label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 800; /* Bolder */
    letter-spacing: 1px;
    color: #333; /* Dark Grey, not light */
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* 2. THE BOXES: Clear, White, Defined */
.contact-stationery input,
.contact-stationery textarea {
    width: 100%;
    background-color: #fff; /* Pure white background */
    border: 1px solid #999; /* clearly visible border */
    font-family: 'Crimson Pro', serif;
    font-size: 1.1rem;
    color: #000; /* Pitch black text */
    padding: 15px; /* Large internal spacing for ease of use */
    outline: none;
    border-radius: 4px; /* Slight rounded corner */
    box-sizing: border-box; /* Ensures padding doesn't break layout */
    transition: all 0.2s ease;
}

/* 3. FOCUS STATE: Highlights when clicked */
.contact-stationery input:focus,
.contact-stationery textarea:focus {
    border-color: #000; /* Black border when active */
    background-color: #fff;
    box-shadow: 0 0 0 1px #000; /* subtle glow */
}

/* 4. PLACEHOLDERS: Actually Readable */
.contact-stationery ::placeholder {
    color: #666; /* Darker grey */
    font-style: normal; /* Easier to read */
    opacity: 1; /* Fix for Firefox fading */
}

/* 5. BUTTON: Solid and Obvious */
.form-footer button {
    background-color: #222;
    color: #fff;
    border: 1px solid #222;
    padding: 15px 30px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
}

.form-footer button:hover {
    background-color: #fdfbf7;
    color: #000;
}

/* Success/Error Message Styling */
#form-status {
    margin-top: 15px;
    padding: 10px 0;
    font-weight: 700;
}