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

:root {
    --color-bg: #faf9f7;
    --color-surface: #ffffff;
    --color-text: #2c2c2c;
    --color-text-muted: #5a5a5a;
    --color-accent: #4a6741;
    --color-accent-light: #e8f0e6;
    --color-gold: #b8860b;
    --color-border: #e5e2dd;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-amharic: 'Noto Serif Ethiopic', serif;
}

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

header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 1rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

nav a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

nav a:hover {
    color: var(--color-accent);
    background: var(--color-accent-light);
}

nav a.active {
    color: var(--color-accent);
    background: var(--color-accent-light);
    font-weight: 600;
}

nav .amharic {
    font-family: var(--font-amharic);
    font-size: 0.85rem;
    opacity: 0.7;
    order: -1;
}

main {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* Homepage */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
}

.portrait-container {
    margin-bottom: 2rem;
}

.portrait-img {
    width: 200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--color-surface);
    outline: 1px solid var(--color-border);
}

.hero-text {
    margin-top: 1rem;
}

.dates {
    font-size: 1.3rem;
    color: var(--color-gold);
    font-weight: 500;
    letter-spacing: 0.1em;
}

.dates-amharic {
    font-family: var(--font-amharic);
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.purpose {
    padding: 2.5rem 0;
    border-top: 1px solid var(--color-border);
}

.purpose + .purpose {
    border-top: none;
    padding-top: 0;
}

.content-block {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.content-block .english {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text);
}

.content-block .amharic-text {
    font-family: var(--font-amharic);
    font-size: 1.05rem;
    line-height: 2;
    color: var(--color-text-muted);
}

/* Page header */
.page-header {
    text-align: center;
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2.5rem;
}

.page-header .page-subtitle {
    font-family: var(--font-amharic);
    font-size: 2.2rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.05em;
}

/* Biography */
.biography-content {
    max-width: 750px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.bio-heading {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.bio-heading strong {
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.bio-section {
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.bio-section p {
    color: var(--color-text);
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.bio-section .amharic-text {
    font-family: var(--font-amharic);
    line-height: 2.2;
    color: var(--color-text);
}

.bio-img-right {
    float: right;
    width: 200px;
    height: auto;
    margin: 0 0 1.5rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bio-img-left {
    float: left;
    width: 180px;
    height: auto;
    margin: 0 1.5rem 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.works-list {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style-type: square;
}

.works-list li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--color-text);
}

.bio-amharic {
    border-top: 1px solid var(--color-border);
    padding-top: 2.5rem;
    clear: both;
}

/* Memoirs */
.memoirs-content {
    max-width: 750px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.memoirs-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.memoirs-list li {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    line-height: 1.7;
    transition: background 0.2s ease;
}

.memoirs-list li:first-child {
    border-top: 1px solid var(--color-border);
}

.memoirs-list li:hover {
    background: var(--color-accent-light);
}

.memoirs-list a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

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

.lang-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gold);
    background: #fdf6e3;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.memoirs-note {
    background: var(--color-accent-light);
    border-radius: 10px;
    padding: 1.75rem;
    text-align: center;
    line-height: 1.8;
}

.memoirs-note a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.memoirs-note a:hover {
    text-decoration: underline;
}

/* Upcoming */
.upcoming-content {
    max-width: 750px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.upcoming-text {
    margin-bottom: 2.5rem;
}

.upcoming-text p {
    margin-bottom: 1.25rem;
    line-height: 1.9;
}

.upcoming-text .amharic-text {
    font-family: var(--font-amharic);
    color: var(--color-text);
}

.book-projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.book-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.book-card a {
    text-decoration: none;
    color: var(--color-accent);
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.book-card a:hover {
    color: var(--color-gold);
}

.book-cover {
    width: 120px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.book-card .amharic-text {
    font-family: var(--font-amharic);
    font-size: 0.9rem;
}

/* Global amharic-text */
.amharic-text {
    font-family: var(--font-amharic);
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.photo-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.photo-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 80%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
}

/* Footer */
footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-content a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
        gap: 0.25rem;
        padding: 0.75rem 1rem;
    }

    nav a {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
        flex-direction: column;
        gap: 0.1rem;
    }

    main {
        padding: 1rem;
    }

    .hero {
        padding: 2rem 0 1.5rem;
    }

    .portrait-img {
        width: 160px;
    }

    .bio-img-right,
    .bio-img-left {
        float: none;
        display: block;
        margin: 1.5rem auto;
        width: 60%;
    }

    .book-projects {
        grid-template-columns: 1fr;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .photo-item img {
        height: 160px;
    }
}
