/* ============================================
   Age of Balance — Flowing Stream Design
   ============================================ */

:root {
    /* Earth & Water palette */
    --stone: #1a1a1a;
    --earth: #2a2318;
    --moss: #2a3d2a;
    --sage: #3d5c3d;
    --stream: #2d7d6a;
    --mist: #c4d8d0;
    --cloud: #e8efe9;
    --parchment: #f5f2ed;
    --cream: #faf9f6;
    --warm-white: #fdfcfa;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    /* Spacing */
    --section-pad: clamp(4rem, 10vw, 8rem);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--stone);
    background: var(--cream);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('forest-bg.jpg') center/cover no-repeat fixed;
    opacity: 0.45;
    z-index: -2;
    pointer-events: none;
}

/* ---- Stream Background ---- */
.stream-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.stream-svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.stream-path {
    opacity: 0.4;
    stroke-linecap: round;
}

.light-dapple {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(ellipse 300px 200px at 20% 30%, rgba(200, 220, 200, 0.15), transparent),
        radial-gradient(ellipse 250px 250px at 70% 60%, rgba(180, 210, 195, 0.1), transparent),
        radial-gradient(ellipse 200px 300px at 50% 80%, rgba(190, 215, 200, 0.08), transparent);
    animation: dapple 15s ease-in-out infinite alternate;
}

@keyframes dapple {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* Floating particles */
.particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Fog layers */
.fog-layer {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%; height: 40%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(to top, rgba(250, 249, 246, 0.6), transparent);
}

.fog-layer-top {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 25%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(250, 249, 246, 0.3), transparent);
}

/* Cursor glow */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 181, 160, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s;
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 3rem;
    z-index: 100;
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(122, 145, 122, 0.1);
    transition: all 0.4s ease;
}

.nav.scrolled {
    padding: 0.8rem 3rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--earth);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--moss);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--stream);
    transition: width 0.3s;
}

.nav-links a:hover { color: var(--stream); }
.nav-links a:hover::after { width: 100%; }

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

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

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 2;
}

.hero-content {
    animation: fadeUp 1.2s ease-out;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    color: var(--earth);
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--stream), transparent);
    margin: 0 auto 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--moss);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.hero-author {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--moss);
    font-style: italic;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    animation: fadeUp 1.2s ease-out 0.5s both;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--moss);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 1.5px solid var(--moss);
    border-bottom: 1.5px solid var(--moss);
    transform: rotate(45deg);
    animation: bobDown 2s ease-in-out infinite;
}

@keyframes bobDown {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

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

/* ---- Sections ---- */
.section {
    position: relative;
    padding: var(--section-pad) 2rem;
    z-index: 2;
}

.section-alt {
    background: rgba(232, 239, 233, 0.4);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: var(--earth);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.section-title-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--stream), transparent);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.section-intro {
    font-size: 1.1rem;
    color: #2e1f0f;
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.lead {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--moss);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ---- About ---- */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.about-photo {
    flex-shrink: 0;
}

.headshot {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(74, 93, 74, 0.12);
}

.about-text p {
    margin-bottom: 1.2rem;
    max-width: 700px;
    color: #1b5e3b;
    font-weight: 600;
}
.about-text .lead {
    color: #1b5e3b;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }
    .headshot {
        width: 200px;
        height: 240px;
    }
}

/* Climate Hero */
.climate-hero {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.climate-hero-img {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(74, 93, 74, 0.15);
    flex-shrink: 0;
}

.climate-hero-text .section-intro {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .climate-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .climate-hero-img {
        width: 200px;
        height: 240px;
    }
}

/* ---- Cards ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(253, 252, 250, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(122, 145, 122, 0.12);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(74, 93, 74, 0.08);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--earth);
    margin-bottom: 0.8rem;
}

.card p {
    color: var(--stone);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.card-link {
    font-size: 0.9rem;
    color: var(--stream);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

.card-link:hover { color: var(--moss); }

/* ---- Book Feature ---- */
.book-feature {
    background: rgba(253, 252, 250, 0.8);
    border: 1px solid rgba(122, 145, 122, 0.12);
    border-radius: 12px;
    padding: 3rem;
}

.book-feature {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.book-cover {
    flex-shrink: 0;
}

.book-cover-img {
    width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(74, 93, 74, 0.2);
}

@media (max-width: 768px) {
    .book-feature {
        flex-direction: column;
        align-items: center;
    }
    .book-cover-img {
        width: 180px;
    }
}

.book-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(144, 185, 173, 0.15), rgba(122, 145, 122, 0.1));
    border: 1px solid rgba(144, 185, 173, 0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--moss);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.book-info p {
    max-width: 700px;
    margin-bottom: 1.2rem;
    color: #2e1f0f;
}

.book-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--moss);
    color: var(--cream);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--stream);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 93, 74, 0.15);
}

/* ---- Podcast ---- */
/* Breadcrumbs Hero */
.breadcrumbs-hero {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.breadcrumbs-art {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(74, 93, 74, 0.15);
    flex-shrink: 0;
}

.breadcrumbs-hero-text .section-title {
    margin-bottom: 0.5rem;
}

.breadcrumbs-hero-text .section-intro {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .breadcrumbs-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .breadcrumbs-art {
        width: 180px;
        height: 180px;
    }
}

.podcast-header { 
    margin-bottom: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Breadcrumb Bites */
.bites-title {
    text-align: center;
    color: var(--moss);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 0.3rem;
}
.bites-subtitle {
    text-align: center;
    color: var(--sage);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.bites-row {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.bite-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 160px;
    transition: transform 0.3s ease;
}
.bite-card:hover {
    transform: translateY(-4px);
}
.bite-thumbnail {
    position: relative;
    width: 140px;
    height: 248px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.bite-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bite-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.bite-card:hover .bite-play {
    opacity: 1;
}
.bite-label {
    color: var(--moss);
    font-size: 0.8rem;
    text-align: center;
    margin-top: 0.5rem;
    line-height: 1.3;
}
@media (max-width: 600px) {
    .bites-row {
        gap: 0.8rem;
    }
    .bite-card { width: 140px; }
    .bite-thumbnail { width: 120px; height: 213px; }
}

/* Patreon Support Card */
.patreon-card {
    background: rgba(253, 252, 250, 0.8);
    border: 1px solid rgba(122, 145, 122, 0.12);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.patreon-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, #f96854, transparent);
}

.patreon-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--earth);
    margin-bottom: 0.8rem;
}

.patreon-card > p {
    color: var(--moss);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.patreon-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.patreon-tier {
    background: rgba(232, 239, 233, 0.4);
    border-radius: 10px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tier-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--earth);
}

.tier-price {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--stream);
    font-weight: 500;
}

.patreon-note {
    font-size: 0.82rem;
    color: var(--moss);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.episode-card {
    background: rgba(253, 252, 250, 0.8);
    border: 1px solid rgba(122, 145, 122, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.episode-card:hover {
    border-color: var(--stream);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(74, 93, 74, 0.1);
}

.episode-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--cloud);
}

.episode-info {
    padding: 1.2rem;
}

.episode-number {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stream);
}

.episode-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--earth);
    margin-top: 0.4rem;
    line-height: 1.4;
}

/* ---- Writing ---- */
.writing-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.writing-item {
    background: rgba(253, 252, 250, 0.8);
    border: 1px solid rgba(122, 145, 122, 0.1);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s;
}

.writing-item:hover {
    border-color: var(--stream);
    box-shadow: 0 6px 20px rgba(74, 93, 74, 0.06);
}

.writing-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.writing-pub {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stream);
}

.writing-item h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--earth);
    margin: 0.4rem 0;
}

.writing-meta {
    font-size: 0.85rem;
    color: var(--moss);
}

/* ---- Quote Interlude ---- */
.interlude {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    z-index: 2;
    overflow: hidden;
}

.interlude::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(250, 249, 246, 0.9),
        rgba(232, 239, 233, 0.5),
        rgba(250, 249, 246, 0.9));
    pointer-events: none;
}

.interlude-quote {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 300;
    font-style: italic;
    color: var(--earth);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

.interlude-quote::before {
    content: '\201C';
    font-size: 5rem;
    position: absolute;
    top: -2.5rem;
    left: -1rem;
    color: rgba(144, 185, 173, 0.3);
    font-style: normal;
    line-height: 1;
}

/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 2;
    background: var(--earth);
    color: var(--mist);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(196, 216, 208, 0.15);
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--cloud);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--mist);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-links a:hover { opacity: 1; }

.footer-bottom {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav { padding: 1rem 1.5rem; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        background: rgba(250, 249, 246, 0.95);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(122, 145, 122, 0.1);
    }
    
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    
    .section { padding: var(--section-pad) 1.5rem; }
    
    .card-grid { grid-template-columns: 1fr; }
    .episode-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    
    .footer-content { flex-direction: column; gap: 2rem; }
    .book-feature { padding: 2rem 1.5rem; }
}

/* ---- Scroll Animations ---- */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Breadcrumbs Reference List
   ============================================ */

.references-section {
    border-top: 2px solid var(--mist);
    padding-top: 2rem;
}

.ref-episode {
    margin-bottom: 1.5rem;
}

.ref-ep-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--moss);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.ref-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.ref-list li {
    padding: 0.25rem 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.ref-list li::before {
    content: "→ ";
    color: var(--stream);
    font-weight: 600;
}

.ref-list a {
    color: var(--sage);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ref-list a:hover {
    color: var(--stream);
    text-decoration: underline;
}
