/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent-teal: #2d7d7d;
    --accent-teal-hover: #1f6b6b;
    --accent-teal-light: #4a9999;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Crimson Text', serif;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    z-index: 1000;
    padding: 1rem 0;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-brand h1 {
    font-size: 1.8rem;
    margin: 0;
    color: #2c2c2c;
}

.nav-brand h1 .last-name {
    color: var(--accent-teal);
}

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

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-teal);
    background-color: #f8f8f8;
}

/* Main content */
.main-content {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tab-content.active {
    display: block;
}

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

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

/* Hero section */
.hero-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

/* Typing animation */
.typing-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    position: relative;
    padding: 2rem;
}

.typing-text {
    font-family: 'Crimson Text', serif;
    font-size: 1.8rem;
    line-height: 1.8;
    max-width: 800px;
    text-align: center;
    font-style: normal;
    color: #2c2c2c;
    transition: all 0.3s ease;
}

.cursor {
    font-size: 1.8rem;
    animation: blink 1s infinite;
    color: #2c2c2c;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Character dialogue styling */
.character-dialogue {
    color: #2c2c2c;
    font-style: normal;
}

.awaz-dialogue {
    color: #555;
    font-style: italic;
    font-weight: 400;
}

.single {
    color: #2c2c2c;
    font-style: normal;
    text-align: center;
}

.dialogue-break {
    margin: 1rem 0;
}

/* Prominent Newsletter Section */
.prominent-newsletter {
    text-align: center;
    padding: 1rem 2rem;
    margin-bottom: 3rem;
}

.prominent-newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2c2c2c;
    font-weight: 600;
}

.author-name {
    font-family: 'Crimson Text', serif;
    font-size: 1.4rem;
    color: #444;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.newsletter-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--accent-teal);
    background: white;
    box-shadow: 0 0 0 3px rgba(45, 125, 125, 0.1);
}

.subscribe-btn {
    padding: 1rem 2rem;
    background: #2c2c2c;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.subscribe-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}

/* Navigation Buttons */
.nav-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-button {
    background: white;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-button:hover {
    border-color: var(--accent-teal);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(45, 125, 125, 0.15);
}

.nav-button:active {
    transform: translateY(-2px);
    transition: transform 0.1s ease;
}

.nav-button-title {
    display: block;
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-teal);
    margin-bottom: 0.5rem;
}

.nav-button-desc {
    display: block;
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
}

/* Social links */
.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent-teal);
    border-color: var(--accent-teal);
    transform: translateY(-2px);
}

/* Bio section */
.bio-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.bio-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.author-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px !important;
    height: 150px !important;
    margin: 0 auto;
    overflow: hidden;
}

.author-photo {
    width: 150px !important;
    height: 150px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 3px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block !important;
}

.author-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Blog section */
.blog-posts {
    space-y: 2rem;
}

.blog-post {
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

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

.post-date {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
    display: block;
}

.blog-post p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.blog-placeholder {
    text-align: center;
    color: #888;
    font-style: italic;
    margin-top: 2rem;
}

.blog-placeholder a {
    color: var(--accent-teal);
    text-decoration: underline;
}

.loading-message {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.substack-post {
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

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

.substack-post h3 {
    margin-bottom: 0.5rem;
}

.substack-post h3 a {
    color: #2c2c2c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.substack-post h3 a:hover {
    color: var(--accent-teal);
}

.substack-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.substack-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

.read-more-link {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: var(--accent-teal-hover);
}

/* Honeypot field (hidden from users) */
.honeypot {
    display: none;
}

/* Contact section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    margin-bottom: 3rem;
    text-align: center;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c2c2c;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 2px rgba(45, 125, 125, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 1rem 2rem;
    background: #2c2c2c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #1a1a1a;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .main-content {
        margin-top: 120px;
    }
    
    .typing-text {
        font-size: 1.4rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .bio-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .content-container {
        padding: 2rem 1rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .nav-buttons {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .prominent-newsletter {
        padding: 3rem 1rem;
    }
    
    .prominent-newsletter h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .typing-text {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .newsletter-section {
        padding: 2rem 1rem;
    }
}
