/* ============================================
   Serve & Lead - Main Stylesheet
   A minimalist, typography-focused design
   ============================================ */

/* CSS Variables */
:root {
    /* Colors - Warm golden tones */
    --color-primary: #d89b4c;
    --color-primary-light: #e6b46e;
    --color-primary-dark: #b47d32;
    --color-accent: #8b5a2b;
    --color-accent-light: #a67c52;
    
    --color-bg: #faf8f5;
    --color-bg-alt: #f0ebe3;
    --color-bg-card: #ffffff;
    
    --color-text: #2c2c2c;
    --color-text-light: #5a5a5a;
    --color-text-muted: #888888;
    
    --color-border: #e5e0d8;
    --color-border-light: #f0ebe3;
    
    /* Typography */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Crimson Pro', Georgia, serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 800px;
    --header-height: 80px;
    
    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--space-md);
}

/* ============================================
   Layout
   ============================================ */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-header {
    margin-bottom: var(--space-2xl);
}

.section-header-spread {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-md);
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-light);
    z-index: 1000;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header.hidden {
    transform: translateY(-100%);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-menu a {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-bg-card);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

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

.btn-outline:hover {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: white;
}

.btn-text {
    color: var(--color-primary);
    padding: 0;
    font-weight: 500;
}

.btn-text:hover {
    color: var(--color-primary-dark);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    padding-top: calc(var(--header-height) + var(--space-4xl));
    padding-bottom: var(--space-4xl);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-title {
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-2xl);
    max-width: 520px;
}

.hero-form {
    max-width: 480px;
}

.hero-cta-group {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.hero-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    border-radius: var(--radius-xl);
    opacity: 0.1;
    z-index: -1;
}

.hero-quote-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero-quote-card blockquote {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: var(--space-lg);
}

.hero-quote-card cite {
    font-family: var(--font-display);
    font-style: normal;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.8;
}

/* ============================================
   Form Styles
   ============================================ */

.form-group {
    display: flex;
    gap: var(--space-sm);
}

.form-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-card);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
    margin-bottom: 0;
}

/* ============================================
   Featured Section
   ============================================ */

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.featured-card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid var(--color-border-light);
}

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

.featured-main {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-card) 100%);
    padding: var(--space-2xl);
}

.featured-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-md);
}

.featured-excerpt {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.article-category {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.card-excerpt {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.card-link {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

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

/* ============================================
   Newsletter Preview
   ============================================ */

.newsletter-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.newsletter-preview-text {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.newsletter-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.sample-issue {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.sample-issue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-primary);
}

.sample-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.sample-date {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.sample-badge {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    background-color: var(--color-accent);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.sample-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.sample-excerpt {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

/* ============================================
   Articles Grid
   ============================================ */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.article-card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--color-border-light);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
}

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

.article-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.article-excerpt {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.article-meta {
    display: flex;
    gap: var(--space-md);
    font-family: var(--font-display);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ============================================
   Book Section
   ============================================ */

.book-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.book-image {
    display: flex;
    justify-content: center;
}

.book-cover {
    position: relative;
    width: 280px;
    height: 400px;
    perspective: 1000px;
}

.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    transform: rotateY(-90deg) translateX(-15px);
    transform-origin: right;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.book-front {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
    transform: rotateY(-10deg);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.book-cover:hover .book-front {
    transform: rotateY(-5deg);
}

.book-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.8;
    margin-bottom: var(--space-sm);
}

.book-title-display {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.book-author-display {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
}

.book-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.book-highlights {
    margin-bottom: var(--space-xl);
}

.book-highlights li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.book-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

.book-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ============================================
   Media Section (YouTube & Substack)
   ============================================ */

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4xl);
}

.media-column {
    display: flex;
    flex-direction: column;
}

.media-description {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.youtube-player-wrapper {
    margin-bottom: var(--space-lg);
}

.youtube-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: #000;
    box-shadow: var(--shadow-md);
}

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

.youtube-player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.youtube-player-placeholder svg {
    opacity: 0.3;
}

.youtube-player-placeholder span {
    font-family: var(--font-display);
    font-size: 0.875rem;
}

.youtube-videos {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.youtube-video-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 2px solid var(--color-border-light);
    text-decoration: none;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.youtube-video-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.youtube-video-item.active {
    border-color: var(--color-primary);
    background-color: var(--color-bg-alt);
}

.youtube-video-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.youtube-video-item:hover .play-icon {
    opacity: 1;
}

.youtube-video-thumb-wrapper {
    position: relative;
    flex-shrink: 0;
}

.youtube-video-thumb {
    width: 120px;
    height: 68px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background-color: var(--color-bg-alt);
    display: block;
}

.youtube-video-info {
    flex: 1;
    min-width: 0;
}

.youtube-video-title {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.youtube-video-date {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.youtube-fallback {
    text-align: center;
    padding: var(--space-xl);
    color: var(--color-text-muted);
    font-family: var(--font-display);
}

.substack-feed {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    padding: var(--space-md);
    margin-bottom: var(--space-xl);
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.substack-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--color-text-muted);
    font-family: var(--font-display);
    font-size: 0.875rem;
    gap: var(--space-md);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.substack-post {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
    transition: background-color var(--transition-fast);
}

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

.substack-post:hover {
    background-color: var(--color-bg-alt);
}

.substack-post-date {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.substack-post-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.substack-post-title a {
    color: inherit;
    text-decoration: none;
}

.substack-post-title a:hover {
    color: var(--color-primary);
}

.substack-post-excerpt {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.substack-error {
    text-align: center;
    padding: var(--space-xl);
    color: var(--color-text-muted);
}

.substack-error a {
    color: var(--color-primary);
    font-weight: 500;
}

.media-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    align-self: flex-start;
}

.btn-icon {
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .media-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
}

/* ============================================
   Quote Section
   ============================================ */

.quote-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    text-align: center;
}

.quote-figure {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

.quote-text {
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: var(--space-xl);
}

.quote-author {
    font-family: var(--font-display);
    font-style: normal;
    font-size: 1rem;
    opacity: 0.8;
}

/* ============================================
   Final CTA
   ============================================ */

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

.final-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.final-cta-title {
    margin-bottom: var(--space-md);
}

.final-cta-text {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.final-cta-form .form-group {
    justify-content: center;
}

.final-cta-form .form-input {
    max-width: 300px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--color-bg-alt);
    padding: var(--space-4xl) 0 var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-4xl);
    margin-bottom: var(--space-3xl);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    display: inline-block;
    margin-bottom: var(--space-md);
}

.footer-tagline {
    color: var(--color-text-light);
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.footer-column ul li {
    margin-bottom: var(--space-sm);
}

.footer-column a {
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 0.9375rem;
}

.footer-column a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-legal {
    display: flex;
    gap: var(--space-xl);
}

.footer-legal a:hover {
    color: var(--color-text);
}

/* Simplified Footer */
.footer-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-simple p {
    margin: 0;
}

.footer-social {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    margin-bottom: var(--space-md);
}

.footer-social a {
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--color-primary);
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

.btn-donate {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    padding: 12px 28px;
    background-color: #d89b4c !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 30px;
    text-decoration: none !important;
    transition: all var(--transition-fast);
    margin-bottom: var(--space-md);
    line-height: 1;
}

.btn-donate:hover {
    background-color: #c48a3d !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 155, 76, 0.3);
}

.btn-donate svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-block;
}

.footer-simple {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 600px) {
    .footer-simple {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* ============================================
   Toast Notification
   ============================================ */

.toast {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    background-color: var(--color-primary);
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transform: translateY(150%);
    opacity: 0;
    transition: transform var(--transition-base), opacity var(--transition-base);
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-message {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ============================================
   Page Header (for inner pages)
   ============================================ */

.page-header {
    padding-top: calc(var(--header-height) + var(--space-4xl));
    padding-bottom: var(--space-3xl);
    background-color: var(--color-bg-alt);
    text-align: center;
}

.page-header .section-tag {
    display: block;
    margin-bottom: var(--space-sm);
}

.page-title {
    margin-bottom: var(--space-md);
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Article List (for articles page)
   ============================================ */

.article-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.article-list-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.article-list-meta {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.article-list-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.article-list-excerpt {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

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

.about-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.about-image {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
}

.about-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.about-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.about-content h2 {
    font-size: 1.75rem;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    color: var(--color-text-light);
}

/* ============================================
   Newsletter Archive
   ============================================ */

.newsletter-archive {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.newsletter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.newsletter-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.newsletter-item-content {
    flex: 1;
}

.newsletter-item-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.newsletter-item-title {
    font-size: 1.125rem;
    margin-bottom: 0;
}

.newsletter-item-date {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ============================================
   Animation Classes
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.fade-in:nth-child(1) { transition-delay: 0ms; }
.fade-in:nth-child(2) { transition-delay: 100ms; }
.fade-in:nth-child(3) { transition-delay: 200ms; }
.fade-in:nth-child(4) { transition-delay: 300ms; }
.fade-in:nth-child(5) { transition-delay: 400ms; }
.fade-in:nth-child(6) { transition-delay: 500ms; }

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-image-wrapper {
        max-width: 350px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-main {
        grid-row: auto;
    }
    
    .newsletter-preview-grid,
    .book-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .book-image {
        order: -1;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        position: static;
        max-width: 300px;
        margin: 0 auto var(--space-2xl);
    }
}

@media (max-width: 768px) {
    :root {
        --space-4xl: 4rem;
    }
    
    /* Mobile Navigation - Complete Rewrite */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 8px;
        cursor: pointer;
        z-index: 9999;
    }
    
    .nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #2c2c2c;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #faf8f5;
        flex-direction: column;
        padding: 24px 32px 32px;
        gap: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e5e0d8;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0ebe3;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        font-size: 1.125rem;
        display: block;
        padding: 16px 0;
        color: #2c2c2c;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .header {
        background-color: #faf8f5;
    }
    
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + var(--space-2xl));
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .article-list-item {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .book-cover {
        width: 220px;
        height: 320px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .newsletter-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
}

