/* Base Reset & Variables */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #8B4513;
    --color-secondary: #D2691E;
    --color-accent: #CD853F;
    --color-bg: #FDF5E6;
    --color-bg-alt: #FAF0E6;
    --color-text: #3E2723;
    --color-text-light: #5D4037;
    --color-border: #DEB887;
    --color-white: #FFFAF0;
    --font-main: 'Georgia', 'Times New Roman', serif;
    --font-heading: 'Trebuchet MS', 'Lucida Sans', sans-serif;
    --max-width: 1100px;
    --spacing: 1.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; margin-top: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--color-white);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--color-bg);
    text-decoration: none;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--color-white);
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.2);
    text-decoration: none;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.social-icons a:hover {
    background: rgba(255,255,255,0.4);
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, var(--color-bg-alt), var(--color-bg));
    padding: 4rem 0;
    text-align: center;
    border-bottom: 3px solid var(--color-border);
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.hero-intro {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Main Content */
main {
    padding: 3rem 0;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

/* Article Styling */
article {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

article ul, article ol {
    margin: 1rem 0 1.5rem 2rem;
}

article li {
    margin-bottom: 0.5rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card h3 {
    margin-top: 0;
    color: var(--color-secondary);
}

/* FAQ Section */
.faq-section {
    margin: 3rem 0;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.5rem;
    background: var(--color-bg-alt);
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-secondary);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item .faq-answer {
    padding: 1.5rem;
    background: var(--color-white);
}

/* Author Bio */
.author-bio {
    background: linear-gradient(135deg, var(--color-bg-alt), var(--color-white));
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid var(--color-border);
    margin-top: 3rem;
}

.author-bio h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.author-bio p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.author-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.author-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-secondary);
    color: var(--color-white);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.author-links a:hover {
    background: var(--color-primary);
    text-decoration: none;
}

/* Footer */
.site-footer {
    background: var(--color-primary);
    color: var(--color-bg);
    padding: 2.5rem 0;
    margin-top: 3rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-bg);
    opacity: 0.9;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--color-white);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--color-white);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: var(--color-primary);
}

/* Reading Guide */
.reading-guide {
    background: var(--color-bg-alt);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.reading-guide ol {
    margin-left: 1.5rem;
}

.reading-guide li {
    margin-bottom: 0.75rem;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    color: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.highlight-box h3 {
    color: var(--color-white);
    margin-top: 0;
}

.highlight-box a {
    color: var(--color-bg);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .header-inner {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    article {
        padding: 1.5rem;
    }

    .author-bio {
        padding: 1.5rem;
    }

    .footer-inner {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-nav ul {
        gap: 0.75rem;
    }

    .main-nav a {
        font-size: 0.9rem;
        padding: 0.25rem 0.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .author-links {
        flex-direction: column;
    }

    .author-links a {
        text-align: center;
    }
}
