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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    height: 100vh;
}

.container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Header */
h1 {
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    font-weight: normal;
    margin: 0;
    text-align: left;
}

/* Main content */
main {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-section {
    text-align: center;
}

.profile-image {
    max-width: 75%;
    height: auto;
    margin: 0 auto 1.5rem auto;
    display: block;
}

.text-nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.separator {
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    color: #000;
}

.intro {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* About page specific styles */
.about-content {
    text-align: center;
    max-width: 500px;
}

.about-content p {
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-content a {
    color: #0000EE;
    text-decoration: underline;
}

.about-nav {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.about-nav a {
    font-family: "Times New Roman", Times, serif;
    color: #000;
    text-decoration: none;
    font-size: 1rem;
}

.about-nav a:hover {
    text-decoration: underline;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav a {
    font-family: "Times New Roman", Times, serif;
    color: #000;
    text-decoration: none;
    font-size: 1rem;
}

nav a:hover {
    text-decoration: underline;
}

/* Page content styles */
.page-content {
    margin-bottom: 2rem;
}

.page-content h2 {
    font-size: 1.25rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.page-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.page-content li:before {
    content: "—";
    margin-right: 0.5rem;
    margin-left: -1rem;
}

/* Essays and Library specific styles */
.essay-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.essay-item:last-child {
    border-bottom: none;
}

.essay-title, .book-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.essay-date, .book-author {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.essay-excerpt, .book-description {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Back navigation */
.back-nav {
    margin-top: 2rem;
    padding-top: 2rem;
}

.back-nav a {
    color: #000;
    text-decoration: none;
    font-size: 1rem;
}

.back-nav a:hover {
    text-decoration: underline;
}

/* Essays page specific styles */
.essays-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding-top: 4rem;
    text-align: center;
}

.essay-link {
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    color: #000;
    text-decoration: underline;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    transition: opacity 0.2s ease;
}

.essay-link:hover {
    opacity: 0.7;
}

.essay-link:last-child {
    margin-bottom: 0;
}

/* Reading page specific styles */
.reading-simple-content {
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding-top: 3rem;
}

.book-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
}

.book-item {
    text-align: center;
    max-width: 120px;
}

.book-item img {
    width: 105px !important;
    height: 158px; /* 2:3 ratio to match typical book cover */
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.book-item img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.book-item .book-title {
    margin-top: 0.3rem;
    font-family: "Times New Roman", Times, serif;
    font-size: 0.8rem;
    color: #333;
    line-height: 1.2;
}

.book-placeholder {
    min-height: 200px;
    width: 100%;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
}

.book-placeholder::after {
    content: "Book covers coming soon";
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
        font-size: 15px;
    }
    
    .text-nav-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }
} 