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

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    padding: 80px 20px 40px;
}

.container {
    max-width: 650px;
    margin: 0 auto;
}

/* Site name */
.site-name {
    font-family: 'Times New Roman', Times, serif;
    font-size: 42px;
    font-weight: normal;
    margin-bottom: 30px;
    color: #333;
}

/* Header and Navigation */
header {
    margin-bottom: 40px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ddd;
}

nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
}

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

/* Main content */
main {
    margin-bottom: 60px;
}

.bio p {
    margin-bottom: 1.2em;
}

.bio a {
    color: #333;
    text-decoration: underline;
}

.bio a:hover {
    color: #666;
}

/* Page titles */
.page-title {
    font-size: 24px;
    font-weight: normal;
    font-style: italic;
    margin-bottom: 30px;
    color: #666;
}

/* Writing page */
.writing-list {
    list-style: none;
}

.writing-list li {
    margin-bottom: 12px;
}

.writing-list .date {
    color: #666;
    font-size: 14px;
    margin-right: 10px;
}

.writing-list .separator {
    color: #999;
    margin-right: 10px;
}

.writing-list a {
    color: #333;
    text-decoration: none;
}

.writing-list a:hover {
    text-decoration: underline;
}

/* Arts page */
.section-title {
    font-size: 18px;
    font-weight: normal;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.section-title:first-of-type {
    margin-top: 0;
}

.arts-list {
    list-style: none;
    margin-bottom: 20px;
}

.arts-list li {
    margin-bottom: 12px;
}

.arts-list .year {
    color: #666;
    font-size: 14px;
    margin-right: 10px;
}

.arts-list .separator {
    color: #999;
    margin-right: 10px;
}

.arts-list a {
    color: #333;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.arts-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #333;
    transition: width 0.3s ease;
}

.arts-list a:hover::after {
    width: 100%;
}

.role {
    display: block;
    font-size: 15px;
    font-style: italic;
    color: rgba(0, 0, 0, 0.6);
    margin-left: 70px;
    margin-top: 2px;
}

.awards-list {
    margin-left: 70px;
    margin-top: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}

.arts-list li:hover .awards-list {
    max-height: 200px;
    opacity: 1;
}

.awards-list div {
    margin-bottom: 4px;
    transform: translateX(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.arts-list li:hover .awards-list div {
    transform: translateX(0);
    opacity: 1;
}

.arts-list li:hover .awards-list div:nth-child(1) { transition-delay: 0.05s; }
.arts-list li:hover .awards-list div:nth-child(2) { transition-delay: 0.1s; }
.arts-list li:hover .awards-list div:nth-child(3) { transition-delay: 0.15s; }
.arts-list li:hover .awards-list div:nth-child(4) { transition-delay: 0.2s; }

/* Photography page */
.photography-list {
    list-style: none;
}

.photography-list li {
    margin-bottom: 12px;
}

.photography-list .year {
    color: #666;
    font-size: 14px;
    margin-right: 10px;
}

.photography-list .separator {
    color: #999;
    margin-right: 10px;
}

.photography-list a {
    color: #333;
    text-decoration: none;
}

.photography-list a:hover {
    text-decoration: underline;
}

/* Blog post */
.blog-post {
    max-width: 100%;
}

.post-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 8px;
    color: #333;
}

.post-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.post-content p {
    margin-bottom: 1.4em;
    text-align: justify;
}

/* Gallery */
.gallery-subtitle {
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
    font-style: italic;
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

.gallery-item figcaption {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.gallery-item-horizontal {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
}

.gallery-item-horizontal img {
    max-width: 280px;
    height: auto;
    display: block;
}

.artwork-info {
    padding-top: 10px;
}

.artwork-title {
    font-style: italic;
    margin-bottom: 4px;
}

.artwork-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 2px;
}

/* Paintings grid */
.paintings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.painting-item {
    margin: 0;
    position: relative;
    cursor: pointer;
}

.painting-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.painting-item:hover img {
    opacity: 0.4;
}

.painting-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #666;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.overlay-title {
    font-size: 15px;
    font-style: italic;
    margin-bottom: 4px;
    color: #666;
}

.overlay-details {
    font-size: 15px;
    font-style: italic;
    color: #666;
}

.painting-item:hover .painting-overlay {
    opacity: 1;
}

@media (max-width: 500px) {
    .paintings-grid {
        grid-template-columns: 1fr;
    }
}

.back-link {
    margin-top: 30px;
}

.back-link a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

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

/* Footer */
footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    color: #999;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 500px) {
    .profile-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    nav {
        gap: 15px;
    }
}
