/* Import serif fonts similar to NYT */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Playfair+Display:wght@400;600;700&display=swap');

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

body {
    font-family: 'Crimson Text', serif;
    background-color: white;
    color: black;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

/* Content styling */
.content {
    text-align: center;
}

.content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.content h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-style: italic;
}

.content hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 3rem 0;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

/* Lists styling */
.content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: center;
}

.content li {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 0;
}

.content a {
    color: black;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.2s ease;
}

.content a:hover {
    border-bottom: 1px solid black;
}

.content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* Desktop: Side-by-side layout for the two lists */
.content h2:first-of-type {
    margin-top: 3rem;
}

.content h2:first-of-type + ul {
    display: inline-block;
    width: 45%;
    vertical-align: top;
    margin-right: 5%;
}

.content h2:last-of-type + ul {
    display: inline-block;
    width: 45%;
    vertical-align: top;
}

/* Mobile styles */
@media (max-width: 768px) {
    .content h1 {
        font-size: 2.5rem;
    }
    
    .content h2 {
        font-size: 2rem;
    }
    
    .content h3 {
        font-size: 1.5rem;
    }
    
    .content li {
        font-size: 1.1rem;
    }
    
    /* Stack lists vertically and center them on mobile */
    .content h2:first-of-type + ul,
    .content h2:last-of-type + ul {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .content h1 {
        font-size: 2rem;
    }
    
    .content h2 {
        font-size: 1.6rem;
    }
    
    .content h3 {
        font-size: 1.3rem;
    }
    
    .content li {
        font-size: 1rem;
    }
}
