/* Reset and base styles */
/* Plus Jakarta Sans - self-hosted for performance */

/* Recoleta font */
@font-face {
    font-family: 'Recoleta';
    src: url('/fonts/Recoleta-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Recoleta';
    src: url('/fonts/Recoleta-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Recoleta';
    src: url('/fonts/Recoleta-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Recoleta';
    src: url('/fonts/Recoleta-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

:root {
    /* ===== FULL COLOR PALETTE ===== */
    /* Pink */
    --color-pink-500: #FF699D;
    --color-pink-300: #FF94BD;
    --color-pink-100: #FFD1DD;

    /* Peach */
    --color-peach-500: #FAA55A;
    --color-peach-300: #FFCB8F;
    --color-peach-100: #FFE3CC;

    /* Aloha (Pink > Peach gradient) */
    --color-aloha-500: #FFA07A;
    --color-aloha-300: #FFB899;
    --color-aloha-100: #FFD4C4;

    /* Pebble (Warm neutrals) */
    --color-pebble-700: #3D322C;
    --color-pebble-600: #665B54;
    --color-pebble-500: #99948D;
    --color-pebble-400: #D1CAC0;
    --color-pebble-300: #E5DDD3;
    --color-pebble-200: #F4ECE0;
    --color-pebble-100: #FCFAF5;
    --color-pebble-50: #FCFAF5;

    /* Stone (Cool neutrals) */
    --color-stone-800: #15231F;
    --color-stone-700: #464D4B;
    --color-stone-600: #737977;
    --color-stone-500: #999F9D;
    --color-stone-400: #D7DBDA;
    --color-stone-300: #E3E8E7;
    --color-stone-200: #EFF1F0;
    --color-stone-100: #F7F8F8;

    /* Forest */
    --color-forest: #435E35;

    /* Lime */
    --color-lime-500: #B8C24A;
    --color-lime-300: #DBD676;
    --color-lime-100: #E3EBB2;

    /* Moss */
    --color-moss-500: #699963;
    --color-moss-100: #D9EBD8;

    /* Ocean */
    --color-ocean-500: #467CA3;
    --color-ocean-100: #D7EBF5;

    /* Lavender */
    --color-lavender-500: #9E8BC7;
    --color-lavender-100: #E9E4F7;

    /* Sun */
    --color-sun-500: #EBC959;
    --color-sun-300: #FCDDB0;
    --color-sun-100: #F7EECB;

    /* Terracotta */
    --color-terracotta-500: #E07C58;
    --color-terracotta-100: #F7E0D0;

    /* Raspberry */
    --color-raspberry-500: #BD6286;
    --color-raspberry-100: #FADCE5;

    /* Brick */
    --color-brick-500: #B85C5C;
    --color-brick-100: #FADCD7;

    /* ===== SEMANTIC COLORS ===== */
    --color-text: #2d3436;
    --color-text-light: #636e72;
    --color-heading: var(--color-forest);
    --color-heading-hover: #3D5530;
    --color-link: #8e2a5e;
    --color-link-hover: #6b1f47;
    --color-bg: var(--color-pebble-50);
    --color-bg-warm: var(--color-pebble-200);
    --color-border: var(--color-pebble-300);
    --color-tag: var(--color-moss-500);
    --color-sunshine: var(--color-sun-100);
    --color-accent: var(--color-forest);

    /* Gradient colors */
    --color-aloha-start: var(--color-peach-500);
    --color-aloha-end: var(--color-pink-500);

    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: 'Recoleta', Georgia, serif;
    --max-width: 680px;

    --shadow-soft: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.1);
}

html {
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--color-bg);
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    padding: 3rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Wide layout for Library detail page */
body:has(.library-detail-page) {
    max-width: 1100px;
}

@media (min-width: 1400px) {
    body:has(.library-detail-page) {
        max-width: 1300px;
    }
}

/* Wide layout for Journal page */
body:has(.journal-page) {
    max-width: 1000px;
}

/* Journal Page Grid */
.journal-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    margin-top: 2rem;
}

.journal-main {
    min-width: 0;
}

.journal-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.archive-month {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.archive-month:first-child {
    margin-top: 0;
}

.archive-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-posts li {
    margin-bottom: 0.5rem;
}

.archive-posts a {
    font-size: 0.9rem;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.archive-posts a:hover {
    color: var(--color-link);
}

/* Journal page post images */
.journal-page .post-image {
    width: 220px;
    flex-shrink: 0;
}

.journal-page .post-image img {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    aspect-ratio: 1;
    object-fit: cover;
}

.journal-page .post.has-image {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .journal-grid {
        grid-template-columns: 1fr;
    }

    .journal-sidebar {
        position: static;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid var(--color-border);
    }

    .journal-page .post.has-image {
        grid-template-columns: 1fr;
    }

    .journal-page .post-image {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-heading);
}

a {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-link-hover);
}

/* Header */
header {
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-border);
}


.site-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.site-title a {
    text-decoration: none;
    color: var(--color-heading);
}

.site-title a:hover {
    color: var(--color-heading-hover);
}

header nav {
    display: flex;
    gap: 2rem;
}

header nav a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

header nav a:hover {
    color: var(--color-heading-hover);
}

/* Posts */
main {
    margin-bottom: 3rem;
}

.post {
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--color-border);
}

.post.has-image {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 2rem;
    align-items: start;
}

.post.has-image .post-content {
    order: 1;
}

/* Post preview image on home page - polaroid style */
.post-image {
    order: 2;
    width: 220px;
    margin-top: 1.6rem; /* Align with H1, not date */
    background: white;
    border-radius: 10px;
    padding: 0.5rem;
    padding-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    filter: brightness(1.1) contrast(1.08) saturate(1.15) sepia(0.12);
}

.post:last-child {
    border-bottom: none;
}

.post h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    line-height: 1.15;
}

.post h2 a {
    text-decoration: none;
    color: var(--color-heading);
}

.post h2 a:hover {
    color: var(--color-heading-hover);
}

.post .post-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.post time {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post .post-excerpt {
    color: var(--color-text);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post .read-more {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-link);
    text-decoration: none;
}

.post .read-more:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

.word-count {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* Tags */
.tags {
    margin-bottom: 0.75rem;
}

.tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--color-tag);
    text-decoration: none;
    background: rgba(107, 154, 155, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
}

.tag:hover {
    background: rgba(107, 154, 155, 0.2);
    color: var(--color-heading-hover);
}

/* Quote posts */
.post.quote blockquote {
    font-style: italic;
    font-size: 1.15rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--color-heading);
    color: var(--color-text);
}

.post.quote cite {
    display: block;
    margin-top: 0.75rem;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Link posts */
.post.links ul {
    list-style: none;
    margin-top: 1rem;
}

.post.links li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.post.links li::before {
    content: "🍍";
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    background: var(--color-heading);
    padding: 4rem 8rem 4rem 2rem;
    margin-top: 4rem;
    margin-bottom: -3rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
}

.footer-left {
    padding-left: 2rem;
}

.footer-left h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
    margin-bottom: 1rem;
}

.rss-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: transparent;
    color: white;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rss-button:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.rss-button svg {
    color: white;
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav {
    display: flex;
    gap: 4rem;
}

.footer-nav-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.footer-nav a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2.5rem;
        align-items: flex-start;
    }

    .footer-left {
        padding-left: 0;
    }

    .footer-nav {
        gap: 3rem;
    }
}

.pagination {
    margin-bottom: 1rem;
}

.pagination a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

/* Images - Polaroid style (default for page content) */
.page-content img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    margin: 2rem auto 0.75rem;
    border-radius: 4px;
    background: white;
    padding: 8px 8px 32px 8px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    max-width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-content img:hover {
    transform: rotate(-1deg) scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Override: Full-width images inside articles (blog posts) */
.page-content article img {
    width: 100vw;
    max-width: none;
    max-height: 50vh;
    object-fit: cover;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    aspect-ratio: unset;
    border-radius: 0;
    background: none;
    padding: 0;
    box-shadow: none;
    border: none;
    margin-top: 2rem;
    margin-bottom: 2rem;
    transition: none;
}

.page-content article img:hover {
    transform: none;
    box-shadow: none;
}

/* Image captions - use *caption text* right after image */
.page-content p img {
    display: block;
    margin-bottom: 0.5rem;
}

.page-content p img + em,
.page-content p img + br + em {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-style: italic;
    color: #aaa;
    margin-top: -0.25rem;
    margin-bottom: 1.5rem;
}

/* Full-width captioned image */
.captioned-image {
    margin: 2.5rem 0;
}

.captioned-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.captioned-image figcaption {
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Screenshot style - smaller, centered, maintains aspect ratio */
.screenshot {
    margin: 2.5rem auto;
    max-width: 600px;
    text-align: center;
}

.screenshot img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.75rem;
}

.screenshot figcaption {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-text-light);
    line-height: 1.5;
}


/* Blog Post Polaroid Images */
.captioned-image.polaroid-style img,
.screenshot.polaroid-style img {
    width: auto !important;
    max-width: 400px !important;
    height: auto;
    margin: 2rem auto 0.75rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
    border-radius: 4px;
    background: white;
    padding: 8px 8px 32px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    /* Amaro filter */
    filter: brightness(1.1) contrast(1.08) saturate(1.15) sepia(0.12);
}

.captioned-image.polaroid-style img:hover,
.screenshot.polaroid-style img:hover {
    transform: translateY(-4px) rotate(0deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}


/* Blog Post Image Modal */
.blog-image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.blog-image-modal.open {
    opacity: 1;
    visibility: visible;
}

.blog-image-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1001;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.blog-image-modal-close:hover {
    opacity: 1;
}

.blog-image-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    padding: 12px 12px 48px 12px;
    border-radius: 6px;
}

.blog-image-modal-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    /* Amaro filter */
    filter: brightness(1.1) contrast(1.08) saturate(1.15) sepia(0.12);
}

@media (max-width: 768px) {
    .captioned-image.polaroid-style img,
    .screenshot.polaroid-style img {
        max-width: 280px !important;
    }
}

/* Page content (about, etc.) */
.page-content {
    line-height: 1.8;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-heading);
}

/* Override for section headers in page content */
.page-content .section-header-row .section-header {
    margin-top: 0 !important;
    margin-bottom: 0.25rem !important;
}

/* Newsletter form */
.newsletter-form {
    margin-top: 2rem;
}

.newsletter-form input[type="email"] {
    font-family: var(--font-body);
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-heading);
}

.newsletter-form button {
    font-family: var(--font-heading);
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    background: var(--color-heading);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-form button:hover {
    background: var(--color-heading-hover);
}

.subscribe-button,
.page-content .subscribe-button {
    display: inline-block;
    font-family: var(--font-heading);
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    background: var(--color-accent);
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.subscribe-button:hover,
.page-content .subscribe-button:hover {
    background: #2d4225;
    color: white !important;
}

/* Draft indicator */
.draft-badge {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    background: var(--color-sunshine);
    color: #6c5300;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

/* Article page styling (Maggie Appleton inspired) */
.page-content article {
    position: relative;
}


.post-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.post-header .subtitle {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-text-light);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.5;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    margin-bottom: 2.5rem;
    border: none;
}

.post-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border: none;
    border-bottom: none;
}

/* Featured image on blog detail page - full width */
.featured-image {
    margin: 2rem 0;
    width: 100vw;
    max-width: none;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.featured-image img {
    width: 100%;
    height: auto;
}

/* Full-width inline images in blog post content */
article p img.post-image {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: block;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 0;
    height: auto;
    aspect-ratio: unset;
    filter: none;
    background: none;
    padding: 0;
    box-shadow: none;
}

.post-tags {
    display: flex;
    gap: 1rem;
}

.meta-tag {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
}

.meta-tag::before {
    content: "#";
}

.post-meta time {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Subheadings in articles */
.page-content h3 {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Blockquotes - white box style */
.page-content blockquote {
    background: var(--color-bg-warm);
    border: none;
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
}

.page-content blockquote p {
    margin-bottom: 0;
}

.page-content blockquote p + p {
    margin-top: 1rem;
}

.page-content blockquote cite,
.page-content blockquote footer {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: normal;
}

.page-content blockquote cite::before,
.page-content blockquote footer::before {
    content: "— ";
}

/* Exhibit blockquotes - styled quote cards */
.page-content blockquote.exhibit {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem 2.25rem;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-soft);
}

.page-content blockquote.exhibit .exhibit-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.page-content blockquote.exhibit p {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 0;
}

.page-content blockquote.exhibit footer {
    margin-top: 1.25rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.page-content blockquote.exhibit footer::before {
    content: "";
}

/* Sidenotes / Footnotes */
.page-content {
    position: relative;
}

.page-content sup {
    font-size: 0.75rem;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    top: -0.4em;
}

.page-content sup a {
    color: var(--color-link);
    text-decoration: none;
    font-weight: 700;
}

/* Footnotes section - hidden on wide screens when sidenotes work */
.page-content .footnotes-sep {
    display: none;
}

.page-content .footnotes {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.page-content .footnotes ol {
    padding-left: 1.25rem;
    list-style: none;
}

.page-content .footnotes li {
    margin-bottom: 0.75rem;
    position: relative;
}

/* Sidenote number - extracted via JS */
.page-content .footnotes li {
    counter-increment: sidenote;
}

.page-content .footnotes li::before {
    content: counter(sidenote);
    color: var(--color-link);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Wide screen: sidenotes in margin */
@media (min-width: 1100px) {
    .page-content .footnotes {
        position: absolute;
        top: 0;
        right: -300px;
        width: 250px;
        margin: 0;
        padding: 0;
        border: none;
    }

    .page-content .footnotes ol {
        padding: 0;
    }

    .page-content .footnotes li {
        position: absolute;
        width: 250px;
        font-size: 0.8rem;
        line-height: 1.5;
        padding-left: 1rem;
        border-left: 2px solid var(--color-border);
        height: auto;
    }

    .page-content .footnotes li p {
        margin: 0;
    }

    .page-content .footnotes li::before {
        position: absolute;
        left: -1.5rem;
        top: 0;
    }

    /* Hide back links on wide screens */
    .page-content .footnotes .footnote-backref {
        display: none;
    }
}

/* Bold text in articles */
.page-content strong {
    font-weight: 600;
    color: var(--color-text);
}

/* Article links */
.page-content a {
    color: var(--color-link);
    text-decoration-color: var(--color-link);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.page-content a:hover {
    color: var(--color-link-hover);
    text-decoration-color: var(--color-link-hover);
}

/* Back arrow for post pages */
.back-arrow {
    margin-bottom: 2rem;
}

.back-arrow a {
    font-size: 1.5rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-arrow a:hover {
    color: var(--color-heading);
}

a.back-arrow {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 0.75rem;
}

a.back-arrow:hover {
    filter: sepia(1) saturate(5) hue-rotate(-10deg) brightness(1.1);
}

/* Page header with inline arrow (legacy - now using section-header-row) */
.page-header-row {
    display: flex;
    align-items: baseline;
    gap: 0;
    margin-bottom: 0.25rem;
    margin-top: 0;
}

.page-header-row h2 {
    margin: 0 !important;
    display: inline;
}

.page-header-row .back-arrow {
    vertical-align: baseline;
}

/* Responsive */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    body {
        padding: 2rem 1rem;
    }

    .post.has-image {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-image {
        order: 1;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        height: auto;
    }

    .post.has-image .post-content {
        order: 2;
    }

    .post h2 {
        font-size: 1.6rem;
    }

    .page-content img {
        max-width: 100%;
        padding: 6px 6px 24px 6px;
    }

    header nav {
        gap: 1.25rem;
    }
}

/* ==========================================
   Landing Page Styles
   ========================================== */

.landing-page {
    max-width: 1100px;
    padding: 1rem 3rem;
}

.landing-page .landing-header {
    padding-bottom: 0.75rem;
    margin-bottom: 3rem;
}

/* Landing Header */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.site-logo {
    font-size: 2.625rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.site-logo:hover {
    transform: scale(1.1);
}

.landing-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.landing-name a {
    color: var(--color-heading);
    text-decoration: none;
}

.landing-name a:hover {
    color: var(--color-heading-hover);
}

/* Landing page name in accent color */
.landing-page .landing-name a {
    color: var(--color-accent);
}

.landing-page .landing-name a:hover {
    color: #2d4225;
}

.landing-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.landing-nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.landing-nav a:hover {
    color: var(--color-heading);
}

.landing-nav .nav-cta {
    background: var(--color-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.landing-nav .nav-cta:hover {
    background: #2d4225;
    color: white;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-bio {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
}

.hero-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* Logos Section */
.logos {
    margin-bottom: 5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.logos-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.logos-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.logos-grid img {
    height: auto;
    width: auto;
    object-fit: contain;
    transition: filter 0.3s ease;
}

/* HBR - tall shield logo */
.logos-grid img:nth-child(1) {
    height: 70px;
}

/* YC - wider horizontal logo */
.logos-grid img:nth-child(2) {
    height: 40px;
}

/* Project Syndicate - wide text logo */
.logos-grid img:nth-child(3) {
    height: 34px;
}

/* Quartz - text logo */
.logos-grid img:nth-child(4) {
    height: 28px;
}

/* In Her Ellement - tall cover */
.logos-grid img:nth-child(5) {
    height: 85px;
}

.logos-grid img:hover {
    filter: brightness(0.7);
}

/* Section Titles */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-aloha-500), var(--color-pink-500));
    border-radius: 2px;
}

/* About Cards Section */
.about-cards {
    margin-bottom: 5rem;
}

.about-cards .section-header,
.thinking-about .section-header,
.logos .section-header {
    margin-bottom: 2.5rem;
}

.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
    gap: 1.5rem 1.5rem;
}

.about-card {
    background: var(--color-bg-warm);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.about-card-header {
    text-align: center;
}

.about-card-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-heading);
    margin: 0;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.5;
    margin: 0;
    padding-top: 0.375rem;
}

.about-card-links {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--color-border);
    padding-top: 0.75rem;
    margin-top: 1rem;
}

.about-card-links li {
    margin-bottom: 0.4rem;
}

.about-card-links a {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.about-card-links a:hover {
    color: var(--color-aloha-500);
}

/* Things I'm Thinking About Section */
.thinking-about {
    margin-bottom: 5rem;
}

.thinking-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.thinking-carousel::-webkit-scrollbar {
    height: 6px;
}

.thinking-carousel::-webkit-scrollbar-track {
    background: var(--color-pebble-100);
    border-radius: 3px;
}

.thinking-carousel::-webkit-scrollbar-thumb {
    background: var(--color-pebble-300);
    border-radius: 3px;
}

.thinking-card {
    flex: 0 0 280px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.thinking-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-pebble-300);
}

.thinking-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    background: var(--color-pebble-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.thinking-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.thinking-card p {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.5;
    margin: 0;
}

/* Videos Section */
.videos {
    margin-bottom: 5rem;
}

.videos .section-title {
    margin-bottom: 2rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.video-card {
    display: flex;
    flex-direction: column;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.video-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 800px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.feature-card {
    padding: 1.5rem;
    background: var(--color-bg-warm);
    border-radius: 8px;
}

.feature-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0;
}

/* Testimonial Section */
.testimonial {
    margin-bottom: 5rem;
    padding: 2.5rem 3rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-align: left;
    box-shadow: var(--shadow-soft);
}

.testimonial blockquote {
    margin: 0;
    padding: 0;
    background: none;
}

.testimonial-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.testimonial-source {
    font-style: italic;
    font-weight: 400;
    text-transform: none;
}

.testimonial-source a {
    color: var(--color-text-light);
    text-decoration: none;
}

.testimonial-source a:hover {
    color: var(--color-link);
    text-decoration: underline;
}

.testimonial blockquote p {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-text);
    line-height: 1.45;
    margin-bottom: 1.5rem;
}

.testimonial blockquote footer {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.testimonial blockquote footer .dot {
    margin: 0 0.5rem;
    color: var(--color-border);
}

.testimonial blockquote footer::before {
    content: "";
}

/* Essays Section */
.essays {
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
}

.essays-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.essay-card {
    display: block;
    padding: 1.5rem;
    background: var(--color-bg-warm);
    border-radius: 8px;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.essay-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.essay-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.essay-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.5;
}

/* Landing Footer */
.landing-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* ==========================================
   Blog Page - Garden Layout
   ========================================== */

.blog-page {
    max-width: 1100px;
    padding: 1rem 3rem;
}

.blog-page .landing-header {
    padding-bottom: 0.75rem;
    margin-bottom: 3rem;
}

.garden-main {
    width: 100%;
}

/* Blog Hero Intro */
.blog-hero {
    margin-bottom: 4rem;
    padding: 3rem 0;
    padding-right: 3rem;
}

.hero-intro {
    text-align: right;
    margin: 0;
    line-height: 1.1;
}

.hero-welcome {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.hero-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--color-accent);
    cursor: default;
    transition: all 0.6s ease;
}

.hero-title:hover,
.hero-title.gradient-active {
    background: linear-gradient(90deg, var(--color-aloha-start) 0%, var(--color-aloha-start) 40%, var(--color-aloha-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Link Chyron */
.chyron-container {
    overflow: hidden;
    margin: 0;
    padding: 0.75rem 0;
    background: linear-gradient(90deg, #FDD4A8, #FFB8CF);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    left: 0;
}

.site-footer {
    margin-top: 0 !important;
}

.chyron-track {
    display: flex;
    width: max-content;
    animation: chyron-scroll 25s linear infinite;
}

.chyron-track:hover {
    animation-play-state: paused;
}

.chyron-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-right: 1.5rem;
    white-space: nowrap;
}

.chyron-content a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.chyron-content a:hover {
    opacity: 0.8;
}

.chyron-emoji {
    font-size: 1rem;
}

@keyframes chyron-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-25%);
    }
}

/* Questions Sandbox */
.questions-sandbox {
    margin-top: 3rem;
    margin-bottom: 0;
}

.questions-sandbox .section-header {
    margin-bottom: 1rem;
}

.sandbox {
    position: relative;
    height: 380px;
    background: linear-gradient(
        135deg,
        #FAA55A 0%,
        #FB8C6A 40%,
        #F97B8D 70%,
        #FF699D 100%
    );
    border-radius: 16px;
    overflow: hidden;
}

/* Semi-transparent overlay to mute the gradient */
.sandbox::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    z-index: 1;
}

/* Fine grain noise texture */
.sandbox::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.25;
    pointer-events: none;
    z-index: 2;
}

.stone {
    position: absolute;
    left: var(--x, 20%);
    top: var(--y, 30%);
    transform: rotate(var(--rotate, 0deg));
    cursor: grab;
    perspective: 600px;
    z-index: 1;
    transition: z-index 0s;
    /* Idle floating animation */
    animation: float var(--float-duration, 4s) ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

/* Gentle floating keyframes - each stone gets slightly different timing */
@keyframes float {
    0%, 100% {
        transform: rotate(var(--rotate, 0deg)) translateY(0px);
    }
    50% {
        transform: rotate(var(--rotate, 0deg)) translateY(-4px);
    }
}

/* Stagger the animations for each stone */
.stone:nth-child(1) { --float-duration: 4.2s; --float-delay: 0s; }
.stone:nth-child(2) { --float-duration: 3.8s; --float-delay: 0.5s; }
.stone:nth-child(3) { --float-duration: 4.5s; --float-delay: 1.2s; }
.stone:nth-child(4) { --float-duration: 3.6s; --float-delay: 0.8s; }
.stone:nth-child(5) { --float-duration: 4.0s; --float-delay: 1.5s; }

/* Pause animation when dragging or moving */
.stone.dragging,
.stone.moving {
    animation-play-state: paused;
}


.stone.dragging {
    cursor: grabbing;
    z-index: 10;
}

.stone-inner {
    position: relative;
    width: 240px;
    height: 150px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.stone.flipped .stone-inner {
    transform: rotateY(180deg);
}

.stone-front,
.stone-back {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 30px 35px;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Use pebble mask - default to shape 1 */
    -webkit-mask-image: url('/images/Pebble/1.png');
    mask-image: url('/images/Pebble/1.png');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    /* 3D shading effect */
    box-shadow:
        inset 0 -8px 20px rgba(0,0,0,0.08),
        inset 0 8px 20px rgba(255,255,255,0.6),
        inset -5px 0 15px rgba(0,0,0,0.03),
        inset 5px 0 15px rgba(255,255,255,0.3);
}

/* Drop shadow on the stone container - offset for 3D perspective */
.stone-inner::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 8%;
    right: 8%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(4px);
}

.stone-front {
    background: linear-gradient(160deg, #F0E8DE 0%, #E5DDD3 40%, #D8D0C6 100%);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    line-height: 1.35;
    text-align: center;
}

.stone-back {
    background: linear-gradient(160deg, #FAF5EE 0%, #F4ECE0 40%, #E8E0D4 100%);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.55rem;
    line-height: 1.3;
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    text-align: left;
    align-items: center;
    justify-content: center;
    padding: 15px 30px 15px 35px;
    /* Smaller mask to create more safe zone */
    -webkit-mask-size: 88% 88%;
    mask-size: 88% 88%;
}

/* Ensure back stays correct when flipped */
.stone.flipped .stone-back {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.stone-back ul {
    margin: 0;
    padding-left: 1.2em;
    list-style-type: disc;
    max-width: 85%;
}

.stone-back li {
    margin-bottom: 0.25em;
}

.stone-back li::marker {
    color: var(--color-text-light);
}

/* Alternate stone colors - mix of the two tones */
.stone:nth-child(2) .stone-front {
    background: linear-gradient(160deg, #FAF5EE 0%, #F4ECE0 40%, #E8E0D4 100%);
}

.stone:nth-child(3) .stone-front {
    background: linear-gradient(160deg, #F5EDE3 0%, #EBE3D8 40%, #DED6CC 100%);
}

.stone:nth-child(4) .stone-front {
    background: linear-gradient(160deg, #FAF5EE 0%, #F4ECE0 40%, #E8E0D4 100%);
}

.stone:nth-child(5) .stone-front {
    background: linear-gradient(160deg, #F0E8DE 0%, #E5DDD3 40%, #D8D0C6 100%);
}


/* Pebble shapes by data attribute */
.stone[data-pebble="1"] .stone-front,
.stone[data-pebble="1"] .stone-back {
    -webkit-mask-image: url('/images/Pebble/1.png');
    mask-image: url('/images/Pebble/1.png');
}

.stone[data-pebble="2"] .stone-front,
.stone[data-pebble="2"] .stone-back {
    -webkit-mask-image: url('/images/Pebble/2.png');
    mask-image: url('/images/Pebble/2.png');
}

.stone[data-pebble="3"] .stone-front,
.stone[data-pebble="3"] .stone-back {
    -webkit-mask-image: url('/images/Pebble/3.png');
    mask-image: url('/images/Pebble/3.png');
}

.stone[data-pebble="4"] .stone-front,
.stone[data-pebble="4"] .stone-back {
    -webkit-mask-image: url('/images/Pebble/4.png');
    mask-image: url('/images/Pebble/4.png');
}

.stone[data-pebble="5"] .stone-front,
.stone[data-pebble="5"] .stone-back {
    -webkit-mask-image: url('/images/Pebble/5.png');
    mask-image: url('/images/Pebble/5.png');
}

.stone[data-pebble="6"] .stone-front,
.stone[data-pebble="6"] .stone-back {
    -webkit-mask-image: url('/images/Pebble/6.png');
    mask-image: url('/images/Pebble/6.png');
}

.stone[data-pebble="7"] .stone-front,
.stone[data-pebble="7"] .stone-back {
    -webkit-mask-image: url('/images/Pebble/7.png');
    mask-image: url('/images/Pebble/7.png');
}

/* Garden Grid Layout */
.garden-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    align-items: start;
}

.garden-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.garden-main-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Section Headers */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

/* Back arrow in section header row (detail pages) */
.section-header-row .back-arrow {
    margin-bottom: 0;
    margin-right: 0.5rem;
}

/* Keep section header inline so underline matches text width */
.section-header-row > .section-header {
    flex: 0 0 auto;
}

.section-header-link {
    text-decoration: none;
}

.section-header-link:hover .section-header {
    background: linear-gradient(90deg, var(--color-aloha-start) 0%, var(--color-aloha-start) 40%, var(--color-aloha-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-heading);
    margin-bottom: 0.25rem;
    font-weight: 600;
    transition: all 0.4s ease;
    position: relative;
    display: inline-block;
}

.section-header::after {
    content: '';
    position: absolute;
    left: -10%;
    bottom: -22px;
    width: 120%;
    height: 40px;
    background-image: url('/images/scribble2.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.section-header:hover,
.section-header-link:hover .section-header {
    background: linear-gradient(90deg, var(--color-aloha-start) 0%, var(--color-aloha-start) 40%, var(--color-aloha-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: default;
}

.section-header:hover::after,
.section-header-link:hover .section-header::after {
    opacity: 0.7;
    filter: sepia(1) saturate(5) hue-rotate(-10deg) brightness(1.1);
}

.section-arrow {
    font-size: 1.25rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.section-arrow:hover {
    color: var(--color-aloha-start);
    background: var(--color-bg-warm);
}

.section-description {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
}

/* Essays Section */
.essays-section {
    margin-bottom: 0;
}

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

.essays-list .post {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
}

.essays-list .post:last-child {
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.see-more-posts {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.see-more-link {
    display: inline-block;
    font-size: 1rem;
    color: var(--color-text);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.see-more-link:hover {
    background: var(--color-pebble-50);
    border-color: var(--color-pebble-300);
}

/* Idle Musings / Voice Notes */
.musings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.musing-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem;
    background: var(--color-bg-warm);
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.musing-item:hover {
    box-shadow: var(--shadow-soft);
}

.play-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-heading);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.play-button:hover {
    background: var(--color-heading-hover);
    transform: scale(1.05);
}

.play-button svg {
    width: 14px;
    height: 14px;
    color: white;
    margin-left: 2px;
}

.play-button.playing svg {
    display: none;
}

.play-button.playing::before {
    content: "❚❚";
    color: white;
    font-size: 10px;
    letter-spacing: 1px;
}

.musing-content {
    flex: 1;
    min-width: 0;
}

.musing-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-heading);
    text-decoration: none;
    display: block;
    margin-bottom: 0.2rem;
}

.musing-title:hover {
    color: var(--color-heading-hover);
}

.musing-description-wrapper {
    position: relative;
    cursor: pointer;
}

.musing-description {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}

.musing-description-wrapper.expanded {
    cursor: pointer;
}

.musing-description-wrapper.expanded .musing-description {
    -webkit-line-clamp: unset;
    display: block;
}

.musing-expand-btn {
    display: none;
}

.musing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.35rem;
}

.musing-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.musing-meta time {
    font-size: 0.7rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.musing-duration {
    font-size: 0.7rem;
    color: var(--color-text-light);
}

.musing-detail-link {
    font-size: 1rem;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.musing-detail-link:hover {
    color: var(--color-link);
}

/* Library Section */
.library-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.library-item {
    display: block;
    padding: 1rem;
    background: var(--color-bg-warm);
    border-radius: 8px;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.library-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.library-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-link);
    display: block;
    margin-bottom: 0.35rem;
}

.library-item h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-heading);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.library-item:hover h4 {
    color: var(--color-heading-hover);
}

.library-item p {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.4;
}

.library-source {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--color-text-light);
    margin-top: 0.35rem;
    display: block;
}

/* Photo Roll Section */
.photoroll-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.polaroid {
    perspective: 1000px;
    transition: z-index 0s 0.3s;
    cursor: pointer;
}

.polaroid.flipped {
    z-index: 100;
    transition: z-index 0s 0s;
}

.polaroid-inner {
    position: relative;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.polaroid.flipped .polaroid-inner {
    transform: rotateY(180deg);
}

.polaroid-front,
.polaroid-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.polaroid-front {
    background: white;
    border-radius: 10px;
    padding: 0.35rem;
    padding-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.polaroid-back {
    position: absolute;
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    /* Expand to fill full grid area */
    top: 0;
    left: 0;
    width: calc(200% + 1rem);
    min-height: calc(200% + 1rem);
}

/* Position adjustment for right-column polaroids */
.polaroid:nth-child(2n) .polaroid-back {
    left: auto;
    right: 0;
}

/* Position adjustment for bottom-row polaroids */
.polaroid:nth-child(n+3) .polaroid-back {
    top: auto;
    bottom: 0;
}

.polaroid-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 2px;
    background: var(--color-bg-warm);
}

/* Amaro-style filter overlay */
.polaroid-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    background: linear-gradient(
        to bottom,
        rgba(255, 230, 200, 0.25) 0%,
        rgba(255, 200, 150, 0.15) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.polaroid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Amaro filter: warm, slightly boosted, vintage feel */
    filter: brightness(1.1) contrast(1.08) saturate(1.15) sepia(0.12);
}

.polaroid-caption {
    padding: 0.5rem 0.25rem;
    min-height: 2.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.25rem;
}

.polaroid-caption p {
    font-size: 0.75rem;
    color: var(--color-text);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.polaroid-flip-btn {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.polaroid-flip-btn:hover {
    color: var(--color-aloha-start);
}

.polaroid-flip-btn.back {
    align-self: flex-end;
    margin-top: auto;
    padding: 0.5rem;
    font-size: 1.1rem;
}

.polaroid-back-content {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
    flex: 1;
}

.polaroid-back-content p {
    margin: 0 0 1rem;
}

.polaroid-back-content p:last-child {
    margin-bottom: 0;
}

/* Empty section placeholder */
.empty-section {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
    padding: 1rem;
    background: var(--color-bg-warm);
    border-radius: 8px;
    text-align: center;
}

/* Voice Note Page Styles */
.voice-note-player {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-bg-warm);
    border-radius: 8px;
}

.voice-note-player audio {
    width: 100%;
}

.voice-note-player .audio-duration {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.voice-note-content {
    margin-top: 2rem;
}

.transcript-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

/* Collection Pages */
.musings-page-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.musing-page-item {
    display: block;
    padding: 1.5rem;
    background: var(--color-bg-warm);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.musing-page-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.musing-page-item .musing-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.musing-page-item .musing-duration {
    font-weight: 500;
}

.musing-page-item h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.musing-page-item p {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* Library Page */
.library-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.library-page-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--color-bg-warm);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.library-page-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.library-page-item .library-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-aloha-start);
    margin-bottom: 0.5rem;
}

.library-page-item h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.library-page-item p {
    font-size: 0.85rem;
    color: var(--color-text);
    line-height: 1.5;
    flex: 1;
}

.library-page-item .library-source {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.75rem;
}

.library-page-item time {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

/* Library Categories with Horizontal Scroll */
.library-category {
    margin-bottom: 2.5rem;
}

.library-category-title,
.page-content .library-category-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-heading);
    margin-bottom: 1rem;
    margin-top: 0;
    font-weight: 400;
    transition: all 0.4s ease;
    display: inline-block;
}

.library-category-title:hover {
    background: linear-gradient(90deg, var(--color-aloha-start) 0%, var(--color-aloha-start) 40%, var(--color-aloha-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: default;
}

.library-scroll-container {
    overflow-x: auto;
    margin: 0 -1.5rem;
    padding: 0 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.library-scroll-container::-webkit-scrollbar {
    display: none;
}

.library-scroll-track {
    display: flex;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.library-card {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: var(--color-bg-warm);
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.library-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.library-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.library-card p {
    font-size: 0.8rem;
    color: var(--color-text);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 0.75rem;
}

.library-card .library-source {
    font-size: 0.7rem;
    color: var(--color-text-light);
    margin-top: auto;
}

/* Library category-specific card colors */
.library-writers .library-card {
    background: var(--color-sun-100);
}

.library-podcasters .library-card {
    background: var(--color-moss-100);
}

.library-researchers .library-card {
    background: var(--color-lavender-100);
}

.library-builders .library-card {
    background: var(--color-ocean-100);
}

/* Photos Page - IG Style Grid */
.photos-ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-top: 2rem;
}

.photos-ig-item {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: block;
}

/* Override page-content img styles for IG grid */
.photos-ig-grid .photos-ig-item img,
.page-content .photos-ig-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    background: none;
    max-width: none;
    aspect-ratio: auto;
}

.photos-ig-grid .photos-ig-item img:hover,
.page-content .photos-ig-grid img:hover {
    transform: none;
    box-shadow: none;
}

/* Photo Modal */
.photo-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.photo-modal.open {
    opacity: 1;
    visibility: visible;
}

.photo-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1001;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.photo-modal-close:hover {
    opacity: 1;
}

.photo-modal-content {
    display: flex;
    max-width: 1100px;
    max-height: 90vh;
    background: white;
    border-radius: 0;
    overflow: hidden;
}

.photo-modal-image {
    width: 480px;
    flex-shrink: 0;
    background: #000;
    aspect-ratio: 4 / 5;
}

.photo-modal-image img,
.page-content .photo-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    background: none;
    max-width: none;
    /* Amaro filter: warm, slightly boosted, vintage feel */
    filter: brightness(1.1) contrast(1.08) saturate(1.15) sepia(0.12);
}

.photo-modal-image img:hover,
.page-content .photo-modal-image img:hover {
    transform: none;
    box-shadow: none;
}

.photo-modal-details {
    width: 340px;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.photo-modal-details h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.photo-modal-details time {
    font-size: 0.75rem;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-bg-warm);
}

.photo-modal-text {
    font-size: 0.8rem;
    color: var(--color-text);
    line-height: 1.6;
}

.photo-modal-text p {
    margin-bottom: 0.875rem;
}

@media (max-width: 900px) {
    .photo-modal-content {
        flex-direction: column;
        max-height: 90vh;
    }

    .photo-modal-image {
        width: 100%;
        max-height: 60vh;
    }

    .photo-modal-details {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .photos-ig-grid {
        gap: 1px;
    }
}

/* Garden Responsive */
@media (max-width: 900px) {
    .blog-page {
        padding: 1.5rem;
    }

    .blog-hero {
        padding-right: 1.5rem;
    }

    .hero-welcome {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3.25rem;
    }

    .garden-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }


    .sandbox {
        height: 420px;
    }

    .stone-inner {
        width: 200px;
        height: 125px;
    }

    .stone-front {
        font-size: 0.7rem;
        padding: 25px 30px;
    }

    .stone-back {
        font-size: 0.6rem;
        padding: 16px 32px 16px 36px;
    }
}

@media (max-width: 600px) {
    .blog-hero {
        margin-bottom: 2.5rem;
        padding: 2rem 0;
        padding-right: 1rem;
    }

    .hero-welcome {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }


    .sandbox {
        height: 500px;
    }

    .stone-inner {
        width: 170px;
        height: 105px;
    }

    .stone-front {
        font-size: 0.6rem;
        padding: 20px 24px;
    }

    .stone-back {
        font-size: 0.5rem;
        padding: 14px 24px 14px 30px;
    }
}

/* Ambient Sound Toggle */
.ambient-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-bg-warm);
    border: 1px solid var(--color-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: var(--shadow-soft);
}

.ambient-toggle:hover {
    background: white;
    box-shadow: var(--shadow-hover);
    transform: scale(1.05);
}

.ambient-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-light);
    transition: color 0.2s ease;
}

.ambient-toggle:hover svg {
    color: var(--color-heading);
}

/* Show sound-off by default, sound-on when playing */
.ambient-toggle .sound-on {
    display: none;
}

.ambient-toggle.playing .sound-off {
    display: none;
}

.ambient-toggle.playing .sound-on {
    display: block;
    color: var(--color-heading);
}

/* Subtle pulse when was playing (hint to user) */
.ambient-toggle.was-playing {
    animation: subtle-pulse 2s ease-in-out 1;
}

@keyframes subtle-pulse {
    0%, 100% { box-shadow: var(--shadow-soft); }
    50% { box-shadow: 0 0 0 4px rgba(107, 154, 155, 0.2), var(--shadow-soft); }
}

/* Newsletter Page */
body:has(.newsletter-page) {
    padding-bottom: 0;
}

.newsletter-page {
    min-height: 50vh;
    padding-bottom: 2rem;
}

.newsletter-page .newsletter-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 500px;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    max-width: 450px;
}

.newsletter-form input[type="email"],
.newsletter-form button {
    height: 48px;
    font-size: 1rem;
    font-family: inherit;
    border-radius: 8px;
    box-sizing: border-box;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0 1rem;
    border: 1px solid var(--color-pebble-400);
    background: white;
    color: var(--color-heading);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--color-text-light);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-ocean-500);
    box-shadow: 0 0 0 3px rgba(70, 124, 163, 0.1);
}

.newsletter-form button {
    padding: 0 1.5rem;
    font-weight: 500;
    background: var(--color-forest);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, var(--color-aloha-500), var(--color-pink-500));
}

@media (max-width: 500px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* Newsletter Thank You Page */
.newsletter-thanks {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-thanks h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-heading);
    margin-bottom: 1rem;
}

.newsletter-thanks p {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.back-home-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-home-link:hover {
    color: var(--color-aloha-500);
}

/* Idle Musings Episodes Page */
.episodes-page {
    max-width: 1000px;
    margin: 0 auto;
}

.episodes-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
}

.episodes-search {
    margin-bottom: 2.5rem;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 0.75rem 1rem;
    padding-left: 2.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg-warm);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    background-size: 20px;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-ocean-500);
}

.latest-episode-section {
    margin-bottom: 3rem;
}

.latest-episode-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.latest-episode-label svg {
    color: var(--color-text-muted);
}

.latest-episode-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    transition: none !important;
}

.latest-episode-card:hover {
    border-color: var(--color-border);
    box-shadow: none;
    transform: none;
}

.episode-thumbnail {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-pebble-100);
    display: block;
}

.episode-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.latest-episode-content {
    flex: 1;
}

.latest-episode-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.latest-episode-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.latest-episode-description {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

.all-episodes-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.episode-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 0.25rem 1.25rem 0.25rem 1.25rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: none !important;
}

.episode-list-item:hover {
    color: inherit;
    border-color: var(--color-border);
    box-shadow: none;
    transform: none;
}

.episode-thumbnail-small {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    line-height: 0;
    margin-top: 2rem;
}

.episode-thumbnail-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

.episode-info {
    flex: 1;
}

.episode-title-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-heading);
    margin: -0.25rem 0 0.5rem 0;
    line-height: 1.3;
}

.episode-metadata {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.episode-preview {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.5;
    margin: 0;
}

/* Episode Detail Page */
.episode-detail-page {
    max-width: 900px;
    margin: 0 auto;
}

.episode-back-arrow {
    margin-bottom: 2rem;
}

.episode-back-arrow a {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.episode-back-arrow a:hover {
    color: var(--color-aloha-500);
}

.episode-detail-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.episode-detail-thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-pebble-100);
    border: 1px solid var(--color-border);
    padding: 0;
    line-height: 0;
}

.episode-detail-thumbnail img {
    width: 100%;
    height: 100%;
    max-height: 250px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

.episode-number-badge {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-heading);
}

.episode-detail-info {
    flex: 1;
}

.episode-detail-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.episode-detail-meta {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

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

.episode-player audio {
    width: 100%;
    height: 60px;
    border-radius: 8px;
}

.episode-detail-description {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

.episode-transcript {
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.episode-transcript p {
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.episode-back-link {
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.episode-back-link a {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.episode-back-link a:hover {
    color: var(--color-aloha-500);
}

@media (max-width: 700px) {
    .episode-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .episode-detail-thumbnail {
        width: 200px;
        height: 200px;
    }

    .latest-episode-card,
    .episode-list-item {
        flex-direction: column;
    }

    .episode-thumbnail,
    .episode-thumbnail-small {
        width: 100%;
        max-width: 200px;
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto;
    }
}

/* Landing Responsive */
@media (max-width: 800px) {
    .landing-page {
        padding: 1.5rem;
    }

    .landing-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .landing-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 200px;
        margin: 0 auto;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .essays-grid {
        grid-template-columns: 1fr;
    }

    .testimonial {
        padding: 2rem 1.5rem;
    }

    .testimonial blockquote p {
        font-size: 1.25rem;
    }

    .about-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .thinking-card {
        flex: 0 0 250px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 500px) {
    .about-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   About Page
   ======================================== */

.about-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* About Hero */
.about-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-name {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.about-tagline {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin: 0;
}

.about-hero-image img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* About Intro */
.about-intro {
    margin-bottom: 4rem;
}

.about-intro h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
}

.about-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.25rem;
}

/* Journey Timeline Section */
.about-journey {
    margin-bottom: 4rem;
}

.about-journey h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.journey-intro {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.journey-timeline {
    position: relative;
    padding: 2rem 0;
    margin-bottom: 1.5rem;
}

.timeline-path {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 120px;
    transform: translateY(-50%);
    pointer-events: none;
}

.timeline-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.timeline-node:hover {
    transform: translateY(-3px);
}

.node-marker {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--node-color, var(--color-pebble-400));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-node:hover .node-marker,
.timeline-node.active .node-marker {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.node-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
    max-width: 80px;
}

.timeline-node.active .node-label {
    color: var(--color-heading);
    font-weight: 600;
}

/* Timeline Details (Accordion) */
.timeline-details {
    min-height: 0;
}

.pitstop-detail {
    display: none;
    background: var(--color-bg-warm);
    border-radius: 12px;
    padding: 2rem;
    animation: slideDown 0.3s ease;
}

.pitstop-detail.active {
    display: block;
}

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

.pitstop-detail h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.pitstop-summary {
    font-size: 1.1rem;
    color: var(--color-text);
    font-style: italic;
    margin-bottom: 1rem;
}

.pitstop-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.pitstop-credentials {
    font-size: 0.9rem;
    color: var(--color-text-light);
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-pebble-200);
}

/* Expertise Section */
.about-expertise {
    margin-bottom: 4rem;
}

.about-expertise h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.expertise-card {
    background: var(--color-bg-warm);
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.expertise-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.expertise-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-heading);
    margin-bottom: 0.75rem;
}

.expertise-card p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

/* Speaking Section */
.about-speaking {
    margin-bottom: 4rem;
}

.about-speaking h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-heading);
    margin-bottom: 1rem;
}

.speaking-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.speaking-video {
    margin-bottom: 2rem;
}

.speaking-video .video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
}

.speaking-video .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.speaking-cta {
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--color-forest);
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--color-aloha-500), var(--color-pink-500));
    transform: translateY(-2px);
}

/* About Page Responsive */
@media (max-width: 700px) {
    .about-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .about-hero-image {
        order: -1;
    }

    .about-hero-image img {
        width: 140px;
        height: 140px;
    }

    .about-name {
        font-size: 2.25rem;
    }

    .journey-timeline {
        padding: 1rem 0;
    }

    .timeline-path {
        display: none;
    }

    .timeline-nodes {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .timeline-node {
        flex-direction: row;
        gap: 1rem;
    }

    .node-marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .node-label {
        max-width: none;
        text-align: left;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .pitstop-detail {
        padding: 1.5rem;
    }
}
