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

body {
    font-family: Georgia, serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
    background-image: url('karoline-leavitt-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(247, 250, 252, 0.85);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #c53030, #e53e3e);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
}

main {
    padding: 2rem 0;
}

section {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #c53030;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #fed7d7;
    padding-bottom: 0.5rem;
    text-align: center;
}

h3 {
    color: #4a5568;
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.3rem;
}

.hero p {
    font-size: 1.1rem;
    color: #718096;
    text-align: center;
}

.daily-poem {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    border: 2px solid #fc8181;
}

.poem-intro {
    color: #718096;
    font-style: italic;
    margin-bottom: 1.5rem;
    text-align: center;
}

.poems-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.poem-entry {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #c53030;
    margin: 0;
}

.poem-entry.today-poem {
    border-left-color: #c53030;
    border-left-width: 6px;
    box-shadow: 0 4px 15px rgba(197, 48, 48, 0.1);
}

.poem-entry.previous-poem {
    border-left-color: #fc8181;
    opacity: 0.9;
}

.poem-date-bottom {
    text-align: right;
    color: #a0aec0;
    font-size: 0.9rem;
    margin-top: 1rem;
    font-style: italic;
}

.poem-entry.today-poem .poem-date-bottom {
    color: #c53030;
    font-weight: bold;
}

.poem-entry.previous-poem .poem-date-bottom {
    color: #a0aec0;
}

.poem-text {
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    color: #4a5568;
    text-align: center;
    margin: 0;
}

.previous-poems-section {
    margin-top: 1.5rem;
}

.previous-poems-toggle {
    background: #feb2b2;
    color: #c53030;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    display: block;
    transition: background 0.3s ease;
}

.previous-poems-toggle:hover {
    background: #fc8181;
}

.previous-poems-toggle::before {
    content: '▶ ';
    display: inline-block;
    transition: transform 0.3s ease;
}

details[open] .previous-poems-toggle::before {
    transform: rotate(90deg);
}

.previous-poems-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #fed7d7;
    position: relative;
    padding-left: 1.5rem;
}

li:before {
    content: "★";
    color: #c53030;
    position: absolute;
    left: 0;
}

li:last-child {
    border-bottom: none;
}

footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}