@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.6;
    color: #333;
    background-color: #F2EBE1;
    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='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1' fill='%23d5cec4' opacity='0.3'/%3E%3Ccircle cx='20' cy='30' r='0.5' fill='%23c9c2b8' opacity='0.4'/%3E%3Ccircle cx='80' cy='70' r='0.8' fill='%23d0c9bf' opacity='0.3'/%3E%3Ccircle cx='10' cy='80' r='0.6' fill='%23ccc5bb' opacity='0.35'/%3E%3Ccircle cx='90' cy='20' r='0.4' fill='%23d3ccc2' opacity='0.4'/%3E%3C/svg%3E");
    background-blend-mode: overlay, normal;
    background-size: 100px, 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 2rem 1rem 1rem;
    background-color: transparent;
}

.logo {
    max-width: 150px;
    height: auto;
}

.logo-link {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #222;
    text-align: center;
    flex: 1;
}

.header-spacer {
    width: 150px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: #222;
}

.tagline {
    font-style: italic;
    color: #777;
    font-size: 1.1rem;
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 10rem;
    width: 100%;
}

/* Tab Navigation (Mobile) */
.tab-navigation {
    display: none;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ccc;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-btn.active {
    color: #222;
    border-bottom-color: #222;
}

.tab-btn:hover {
    color: #333;
}

/* Content Wrapper - Two Column Layout */
.content-wrapper {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #222;
    letter-spacing: 0.02em;
}

.desktop-only {
    display: block;
}

/* Reviews Section */
.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-bottom: 5rem;
}

.review-card {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.stars {
    color: #d4a017;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    color: #444;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.reviewer-name {
    color: #666;
    font-size: 0.85rem;
    text-align: right;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tab-navigation {
        display: flex;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .content-section {
        display: none;
    }
    
    .content-section.active {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
}

.pieces-grid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 5rem;
}

.month-section {
    margin-bottom: 0.5rem;
}

.month-header {
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    padding: 0.75rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.2s ease;
}

.month-header:hover {
    color: #666;
}

.month-title {
    transition: letter-spacing 0.2s ease;
}

.month-header:hover .month-title {
    letter-spacing: 0.05em;
}

.toggle-icon {
    font-size: 1rem;
    color: #999;
    font-weight: 400;
}

.month-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}


.month-separator {
    border: none;
    border-top: 1px solid #ccc;
    margin: 0.5rem auto;
    width: 40px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-top-color: #888;
    border-radius: 50%;
    margin: 2rem auto;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.piece-card {
    padding: 1rem 0;
    text-align: center;
}

.piece-card h2,
.piece-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.piece-card h2 a,
.piece-card h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.piece-card h2 a:hover,
.piece-card h3 a:hover {
    color: #666;
    letter-spacing: 0.05em;
}

.piece-card h2 a.coming-soon,
.piece-card h3 a.coming-soon {
    cursor: default;
    color: #555;
}

.description {
    color: #555;
    font-size: 0.85rem;
    font-style: normal;
    margin: 0.5rem 0 0 0;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.separator {
    border: none;
    border-top: 1px solid #ccc;
    margin: 0.75rem auto;
    width: 40px;
    position: relative;
}

.status {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    background: #f5f5f5;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

footer {
    text-align: center;
    padding: 1rem 2rem;
    color: #999;
    font-size: 0.85rem;
    background: #F2EBE1;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.subscribe-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stick-figure-svg {
    width: 20px;
    height: 24px;
}

.stick-figure-svg .left-arm-wave {
    transform-origin: 12px 12px;
    animation: wave-left 0.6s ease-in-out infinite;
}

.stick-figure-svg .right-arm-wave {
    transform-origin: 12px 12px;
    animation: wave-right 0.6s ease-in-out infinite;
}

@keyframes wave-left {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

@keyframes wave-right {
    0%, 100% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
}

.subscribe-container:hover .stick-figure-svg .left-arm-wave {
    animation: wave-left 0.3s ease-in-out infinite;
}

.subscribe-container:hover .stick-figure-svg .right-arm-wave {
    animation: wave-right 0.3s ease-in-out infinite;
}

.subscribe-link {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.subscribe-link:hover {
    color: #333;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.x-logo-link {
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.x-logo-link:hover {
    opacity: 0.7;
}

.x-logo {
    width: 18px;
    height: 18px;
}

.footer-divider {
    color: #999;
    font-size: 0.9rem;
}

.footer-email {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: #333;
}

/* Volume page styles */
.volume-content {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 1rem;
}

.volume-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.25rem;
    color: #222;
}

.volume-date {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.volume-body {
    line-height: 1.8;
}

.volume-body p {
    margin-bottom: 1.25rem;
    text-align: justify;
    font-size: 1rem;
}

.volume-body .signature {
    margin-top: 2rem;
    font-style: italic;
}

.volume-body .postscript {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.5rem;
}

.back-link {
    display: inline-block;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.back-link:hover {
    color: #333;
    letter-spacing: 0.05em;
}

/* Make logo clickable */
header a {
    display: inline-block;
}

@media (max-width: 600px) {
    header {
        padding: 3rem 1.5rem 2rem;
    }

    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 2rem 1.5rem;
    }

    .pieces-grid {
        gap: 1.5rem;
    }

    .piece-card {
        padding: 1.5rem;
    }

    .volume-content {
        padding: 0 0.5rem;
    }

    .volume-title {
        font-size: 1.6rem;
    }

    .volume-body p {
        font-size: 0.95rem;
    }
}
