@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

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

body {
    font-family: 'Playfair Display', serif;
    color: #000;
}

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 40%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.site-header {
    position: relative;
    z-index: 2;
    padding: 1.5rem 3rem;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.25rem;
    color: #000;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #000;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1rem;
    color: #000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

.hero-tagline {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 3rem;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1.25rem;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.section-transition {
    position: relative;
    z-index: 3;
    height: 0;
}

.section-transition-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    transform: translateY(-50%);
    pointer-events: none;
}

.reference {
    min-height: 30vh;
    background-color: #6b5d80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.reference-content {
    max-width: 60ch;
    margin: 0;
    border: none;
}

.reference-quote {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1.25rem;
    color: #ffffff;
    text-align: center;
}

.reference-source {
    display: block;
    margin-top: 1rem;
    text-align: center;
    font-style: normal;
}

.reference-logo {
    display: inline-block;
    height: 2.5rem;
    width: auto;
}

.site-header--page {
    background-color: #ffffff;
}

.about {
    padding: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 3rem;
    align-items: start;
}

.about-portrait {
    margin: 0;
}

.about-portrait-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content em {
    font-style: italic;
}

.books {
    padding: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.books-portrait {
    margin: 0 auto 3rem;
    max-width: 480px;
}

.books-portrait-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.books-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
}

.books-list {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.book {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 2rem;
    align-items: start;
}

.book-cover {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.book-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.book-year {
    font-weight: 400;
}

.book-synopsis {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.75;
}

.book-synopsis em {
    font-style: italic;
}

@media (max-width: 768px) {
    .site-header {
        padding: 1rem 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: -1.5rem;
        right: -1.5rem;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem 1.5rem;
        background-color: #ffffff;
    }

    .site-nav.nav-open .nav-links {
        display: flex;
    }

    .site-nav.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-nav.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-nav.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-tagline {
        padding: 2rem 1.5rem;
        font-size: 1.1rem;
    }

    .reference {
        padding: 2rem 1.5rem;
    }

    .reference-quote {
        font-size: 1.1rem;
    }

    .reference-logo {
        height: 2rem;
    }

    .about {
        padding: 2rem 1.5rem;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-portrait {
        max-width: 320px;
        margin: 0 auto;
    }

    .about-title {
        font-size: 1.75rem;
        text-align: center;
    }

    .about-content p {
        font-size: 1rem;
    }

    .books {
        padding: 2rem 1.5rem;
    }

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

    .books-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .books-list {
        gap: 2.5rem;
    }

    .book {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .book-cover {
        max-width: 220px;
        margin: 0 auto;
    }

    .book-title {
        font-size: 1.25rem;
        text-align: center;
    }

    .book-synopsis {
        font-size: 1rem;
    }
}
