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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: #f5f1e8;
    color: #3d3226;
    line-height: 1.7;
    padding: 2rem 1rem;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    overflow: visible;
}

header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    position: relative;
    overflow: visible;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 280px;
    height: 1px;
    background-color: #c9b89a;
}

.header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

.header-text {
    flex: 1;
    z-index: 1;
}

.headshot {
    width: 380px;
    height: 480px;
    object-fit: cover;
    border-radius: 2px;
    filter: sepia(15%) saturate(80%);
    position: absolute;
    right: -140px;
    top: 0;
    z-index: 2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 400;
    color: #5a4a3a;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-top: -0.15em;
}

.subtitle {
    font-size: 1rem;
    color: #8b7355;
    font-style: italic;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h2 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #5a4a3a;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #3d3226;
    margin-bottom: 0.5rem;
}

h3 a {
    color: #3d3226;
    text-decoration: none;
    transition: color 0.2s;
}

h3 a:hover {
    color: #8b7355;
}

section {
    margin-bottom: 2rem;
    position: relative;
}

.bio {
    padding-right: 280px;
    min-height: 400px;
    margin-bottom: 0;
}

.bio p {
    font-size: 1.05rem;
    color: #4a4034;
}

/* Contact section */
.contact {
    background-color: #ebe5d8;
    padding: .75rem 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    text-align: center;
    clear: both;
}

.contact h2 {
    display: inline-block;
    margin-right: 1.5rem;
    margin-bottom: 0;
    vertical-align: middle;
}

.contact-links {
    display: inline-flex;
    gap: 2rem;
    align-items: center;
    vertical-align: middle;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a4034;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.contact-link:hover {
    color: #8b7355;
}

.contact-icon {
    font-size: 1.2rem;
    width: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    display: block;
}

.books ul {
    list-style: none;
}

.books li {
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.book-cover {
    flex-shrink: 0;
    width: 120px;
}

.book-cover img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    filter: sepia(10%) saturate(85%);
}

.book-cover .buy-link-detail {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
}

.book-info {
    flex: 1;
    padding-left: 1.5rem;
    border-left: 3px solid #a89074;
}

.books p {
    color: #6b5d4f;
    font-size: 0.95rem;
}

footer {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid #c9b89a;
    color: #8b7355;
    font-size: 0.9rem;
}

/* Book detail pages */
.breadcrumb {
    margin-bottom: 3rem;
}

.breadcrumb a {
    color: #8b7355;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #5a4a3a;
}

.book-detail {
    margin-bottom: 4rem;
}

.book-detail-header {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.book-detail-cover {
    flex-shrink: 0;
    width: 300px;
}

.book-detail-cover img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    filter: sepia(10%) saturate(85%);
}

.book-detail-meta {
    flex: 1;
}

.book-detail-meta h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.author-name {
    font-style: italic;
    color: #8b7355;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.buy-link-detail {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #a89074;
    color: #f5f1e8;
    text-decoration: none;
    border-radius: 2px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.buy-link-detail:hover {
    background-color: #8b7355;
}

.book-detail-description p {
    font-size: 1.05rem;
    color: #4a4034;
    line-height: 1.8;
}

/* Reviews section */
.reviews {
    margin-bottom: 4rem;
}

.reviews ul {
    list-style: none;
}

.reviews li {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid #a89074;
}

.reviews h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #3d3226;
    margin-bottom: 0.3rem;
}

.reviewer {
    font-style: normal;
    font-weight: bold;
    color: #3d3226;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.reviews p {
    color: #6b5d4f;
    font-size: 0.95rem;
    font-style: italic;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    body {
        padding: 1.5rem 1rem;
    }

    .header-content {
        flex-direction: column-reverse;
        align-items: center;
        gap: 2rem;
    }

    .headshot {
        width: 100%;
        height: auto;
        position: static;
        right: auto;
        top: auto;
    }

    .header-text {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header-text h1 {
        margin-top: 0;
    }

    header {
        min-height: auto;
    }

    header::after {
        right: 0;
    }

    .bio {
        padding-right: 0;
    }

    .contact {
        padding: 1.5rem 1rem;
    }

    .bio {
        min-height: auto;
    }

    .contact h2 {
        display: block;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .contact-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .book-detail-header {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }

    .book-detail-cover {
        width: 100%;
        max-width: 250px;
    }
}
