:root {
    --bg-color: #0a0a0a;
    --surface-color: #121212;
    --surface-hover: #1a1a1a;
    --text-primary: #ededed;
    --text-secondary: #a1a1aa;
    --accent: #d4af37;
    --accent-hover: #fcd34d;
    --border-color: #27272a;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Subtle noise texture for a more organic, editorial feel */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

/* Header */
.site-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.author-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.author-link:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 2rem;
    min-height: 85vh;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.875rem;
    background: rgba(212, 175, 55, 0.08);
    color: var(--accent);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.title {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.title span {
    font-style: italic;
    color: var(--text-secondary);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.hero-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 500px;
}

.hero-text p {
    margin-bottom: 1.25rem;
}

.hero-text em {
    color: var(--text-primary);
    font-style: italic;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background-color: var(--surface-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1200px;
}

.book-wrapper {
    position: relative;
    transform-style: preserve-3d;
}

.book-cover {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 4px 8px 8px 4px;
    box-shadow: 
        -2px 0 5px rgba(0,0,0,0.5),
        15px 25px 50px rgba(0,0,0,0.8),
        inset 4px 0 10px rgba(255,255,255,0.1);
    transform: rotateY(-12deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.book-wrapper:hover .book-cover {
    transform: rotateY(-4deg) scale(1.03);
}

/* Chapters Section */
.chapters-section {
    background-color: var(--surface-color);
    padding: 8rem 0;
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

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

.chapter-card {
    background: var(--bg-color);
    padding: 3rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chapter-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.chapter-number {
    display: block;
    font-family: var(--font-serif);
    color: var(--accent);
    font-size: 1.75rem;
    font-style: italic;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.chapter-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    font-weight: 400;
    line-height: 1.3;
}

.chapter-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-top: auto;
}

/* Support Section */
.support-section {
    padding: 8rem 0;
}

.support-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--surface-color);
    padding: 5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.support-content h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.support-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 420px;
    line-height: 1.8;
}

.support-visual {
    display: flex;
    justify-content: flex-end;
}

.coffee-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--bg-color);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    filter: grayscale(15%) contrast(110%);
}

/* Footer */
.site-footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background-color: var(--surface-color);
}

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

.site-footer p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.footer-note {
    font-family: var(--font-serif);
    font-style: italic;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
        padding-top: 6rem;
    }
    
    .hero-text {
        margin: 0 auto 3.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .support-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 4rem 2rem;
    }
    
    .support-content p {
        margin: 0 auto 3rem;
    }
    
    .support-visual {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 3.25rem;
    }
    
    .chapters-grid {
        grid-template-columns: 1fr;
    }
    
    .book-cover {
        max-width: 320px;
    }
    
    .coffee-img {
        width: 200px;
        height: 200px;
    }
    
    .section-header h2, .support-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
