:root {
    --bg-color: #F7F4EB;
    --text-color: #2C241B;
    --accent-color: #8A6B4E;
    --light-accent: #E8E1D3;
    --font-ui: 'Inter', sans-serif;
    --font-poem: 'Lora', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-ui);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-family: var(--font-poem);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}

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

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent-color); }

/* Main Content */
main {
    flex: 1;
    width: 100%;
    animation: fadeIn 0.6s ease forwards;
}

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

/* Home View */
.hero {
    text-align: center;
    padding: 8rem 2rem 6rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-poem);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.hero-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-ui);
}

.hero-btn:hover { background-color: var(--accent-color); }

/* Poems Index */
.poems-index {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 8rem;
}

.poems-index h2 {
    font-family: var(--font-poem);
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
}

.poem-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.poem-item {
    border-top: 1px solid var(--light-accent);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: padding 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.poem-item:last-child { border-bottom: 1px solid var(--light-accent); }
.poem-item:hover { padding-left: 1rem; padding-right: 1rem; }
.poem-item-content { flex: 1; }

.poem-item-title {
    font-family: var(--font-poem);
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.poem-item:hover .poem-item-title { color: var(--accent-color); }

.poem-item-excerpt {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-style: italic;
    max-width: 400px;
}

.poem-item-arrow {
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.poem-item:hover .poem-item-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Individual Poem */
.poem-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem 8rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--accent-color);
    text-decoration: none;
    margin-bottom: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.poem-page-title {
    font-family: var(--font-poem);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.poem-page-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--accent-color);
    margin: 1.5rem auto 0;
}

.poem-body {
    font-family: var(--font-poem);
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-color);
}

.stanza { margin-bottom: 2.5rem; }

.stanza sup.fn {
    font-family: var(--font-ui);
    font-size: 0.65em;
    color: var(--accent-color);
    margin-left: 1px;
}

.stanza.notes {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    line-height: 1.9;
    color: var(--accent-color);
    font-style: normal;
    border-top: 1px solid var(--light-accent);
    padding-top: 1.5rem;
}

/* About */
.about-page {
    max-width: 650px;
    margin: 0 auto;
    padding: 4rem 2rem 8rem;
}

.about-page h2 {
    font-family: var(--font-poem);
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2.5rem;
}

.about-page p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: #4A3F31;
}

.about-page p:first-of-type::first-letter {
    font-family: var(--font-poem);
    font-size: 3rem;
    float: left;
    line-height: 1;
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    color: var(--accent-color);
}

/* Newsletter */
.newsletter {
    background-color: var(--light-accent);
    padding: 5rem 2rem;
    text-align: center;
    margin-top: auto;
}

.newsletter h2 {
    font-family: var(--font-poem);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.newsletter p {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.subscribe-form {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid var(--accent-color);
    border-radius: 2px;
    overflow: hidden;
    background: var(--bg-color);
}

.subscribe-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    background: transparent;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text-color);
    outline: none;
}

.subscribe-form input[type="email"]::placeholder { color: #A89F91; }

.subscribe-form button {
    padding: 1rem 1.5rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-form button:hover { background-color: var(--accent-color); }

.form-message {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-style: italic;
    min-height: 1.2em;
}

footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: #A89F91;
    letter-spacing: 0.05em;
    background-color: var(--bg-color);
}

/* Mobile */
@media (max-width: 768px) {
    nav {
        padding: 1.5rem 2rem;
        flex-direction: column;
        gap: 1.5rem;
    }
    .nav-links { gap: 1.5rem; }
    .hero { padding: 4rem 1.5rem 3rem; }
    .poems-index, .poem-page, .about-page { padding: 3rem 1.5rem 6rem; }
    .poem-body { font-size: 1.05rem; line-height: 1.9; }
    .poem-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .poem-item-arrow { display: none; }
    .subscribe-form {
        flex-direction: column;
        border: none;
        background: transparent;
        gap: 1rem;
    }
    .subscribe-form input[type="email"] {
        border: 1px solid var(--accent-color);
        border-radius: 2px;
        width: 100%;
    }
    .subscribe-form button { width: 100%; border-radius: 2px; }
}
