:root {
    --primary-color: #8B4513;
    --primary-dark: #5D2F0D;
    --accent-color: #D4A574;
    --text-dark: #2C1810;
    --text-medium: #5C4A42;
    --text-light: #8A7968;
    --bg-cream: #FDF8F3;
    --bg-white: #FFFFFF;
    --border-color: #E5D5C3;
    --shadow-subtle: rgba(139, 69, 19, 0.08);
    --shadow-medium: rgba(139, 69, 19, 0.15);
}

/* Dark mode colors */
[data-theme="dark"] {
    --primary-color: #D4A574;
    --primary-dark: #E5C4A8;
    --accent-color: #8B4513;
    --text-dark: #F5EDE6;
    --text-medium: #D4C8BC;
    --text-light: #A89888;
    --bg-cream: #1A1512;
    --bg-white: #2C241E;
    --border-color: #4A3F35;
    --shadow-subtle: rgba(0, 0, 0, 0.2);
    --shadow-medium: rgba(0, 0, 0, 0.3);
}

/* Font families */
.font-garamond {
    font-family: Garamond, 'EB Garamond', 'Times New Roman', serif;
}

.font-palatino {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
}

.font-century {
    font-family: 'Century Schoolbook', 'Century', Georgia, serif;
}

/* Controls bar */
.controls-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.font-select {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-cream);
    color: var(--text-dark);
    font-size: 0.85rem;
    cursor: pointer;
}

.font-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-cream);
    color: var(--text-dark);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

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

body {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    font-size: 1.125rem;
    color: var(--text-dark);
    background: var(--bg-cream);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
.nav-container {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .nav-container {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="dark"] .nav-container {
    background: rgba(44, 36, 30, 0.98);
}

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

.logo {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

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

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

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Main Container */
.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0 5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.philosophy-text {
    font-style: italic;
    color: var(--text-light);
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.philosophy-line {
    display: block;
}

.hero-links {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-links a {
    color: var(--text-dark);
    text-decoration: none;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
    font-size: 0.95rem;
}

.hero-links a:hover {
    border-bottom-color: var(--primary-color);
}

/* Hero Image */
.hero-image {
    position: relative;
    margin-top: 2rem;
}

.image-frame {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-subtle);
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.footer {
    background: var(--bg-cream);
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-contact {
    text-align: center;
}

.footer-contact h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer-email {
    color: var(--text-medium);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-social a {
    color: var(--text-medium);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

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

.footer-copyright {
    color: var(--text-light);
    font-size: 0.85rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .nav-links {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-links {
        flex-direction: column;
        gap: 1rem;
    }
}
