body {
    background-color: #e8d7b5;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        radial-gradient(rgba(80, 50, 20, 0.04) 1px, transparent 1px);
    background-size: 4px 4px, 7px 7px;
    color: black;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-position: center;
    margin: 0;
}

.author_landing {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 90px);
    margin-top: 90px;
    padding: 60px 24px;
}

.author_landing h1 {
    margin: 0 0 16px;
    font-size: clamp(2.4rem, 7vw, 4rem);
}

.author_landing h2 {
    margin: 0 0 16px;
}

.author_landing .testimonial {
    position: static;
    transform: none;
    width: 100%;
    box-sizing: border-box;
    margin: 40px 0 0;
    padding: 16px 20px;
}

.books_page {
    box-sizing: border-box;
    width: 100%;
    max-width: 1100px;
    margin: 90px auto 0;
    padding: 48px 24px 80px;
}

.books_page .page_title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: clamp(2.4rem, 7vw, 4rem);
}

.books_page > .title_divider {
    margin: 0 auto 12px;
}

.books_page > p {
    margin-top: 0;
}

.books_page .book_info {
    margin-top: 36px;
    padding: clamp(24px, 4vw, 48px);
    gap: clamp(28px, 5vw, 56px);
    border: 1px solid #b08a3e;
    border-radius: 20px;
    background: linear-gradient(135deg, #f5ead5, #e2cba3);
    box-shadow: 0 18px 45px rgba(59, 48, 33, 0.14);
    text-align: left;
}

.book_cover_spotlight {
    position: relative;
    flex: 0 1 300px;
    min-width: 0;
    max-width: 100%;
    isolation: isolate;
}

.book_cover_spotlight::before {
    content: "";
    position: absolute;
    inset: -24px;
    z-index: -1;
    background: radial-gradient(ellipse, rgba(201, 154, 62, 0.55), transparent 70%);
    pointer-events: none;
}

.books_page .book_cover {
    max-width: 100%;
    height: auto;
    border-radius: 3px 8px 8px 3px;
    box-shadow: 10px 16px 24px rgba(59, 48, 33, 0.3);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.book_cover_toggle {
    -webkit-tap-highlight-color: transparent;
    display: block;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

.book_cover_toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 6px;
}

@media (min-width: 769px) {
    .books_page .book_cover:hover {
        transform: translateY(-6px) rotate(-1deg);
        box-shadow: 12px 22px 30px rgba(59, 48, 33, 0.35);
    }
}

.books_page .book_details {
    flex: 1;
    min-width: 0;
    color: #3b3021;
}

.books_page .book_title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 24px;
}

.books_page .book_description {
    max-width: none;
    margin: 0;
}

.books_page .book_characters {
    padding-left: 18px;
    border-left: 3px solid #b08a3e;
    font-weight: 600;
    line-height: 1.8;
}

.books_page .book_synopsis {
    margin-top: 24px;
    font-style: normal;
    line-height: 1.75;
}

.book_hook {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(143, 107, 47, 0.35);
}

.book_hook p {
    margin: 0;
    line-height: 1.5;
}

.book_hook p:first-child {
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    font-weight: bold;
    color: #644717;
}

.book_hook p + p {
    margin-top: 8px;
    font-size: 1.05rem;
}

.books_page .buy_button {
    padding: 14px 26px;
    border: 1px solid #8f6b2f;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(59, 48, 33, 0.12);
    transition: transform 180ms ease, background-color 180ms ease;
}

.books_page .buy_button:hover {
    background-color: #deb65f;
    transform: translateY(-2px);
}

.books_page .buy_button:focus-visible {
    outline: 3px solid #644717;
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .book_cover_toggle {
        cursor: pointer;
    }

    .books_page .book_cover_toggle[aria-pressed="true"] .book_cover {
        transform: translateY(-6px) rotate(-1deg);
        box-shadow: 12px 22px 30px rgba(59, 48, 33, 0.35);
    }

    .books_page .book_info {
        flex-direction: column;
        align-items: center;
    }

    .book_cover_spotlight {
        flex-basis: auto;
        width: 250px;
    }

    .books_page .book_details {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .books_page .book_cover,
    .books_page .buy_button {
        transition: none;
    }

    .books_page .book_cover:hover,
    .books_page .book_cover_toggle[aria-pressed="true"] .book_cover,
    .books_page .buy_button:hover {
        transform: none;
    }
}

/* Shared contact footer */
.site_footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 36px 24px;
    color: #f5ead5;
    background-color: #3b3021;
    border-top: 3px solid #8f6b2f;
    text-align: left;
}

.footer_content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    max-width: 1100px;
    margin-inline: auto;
}

.footer_intro h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.footer_intro p {
    margin: 0;
    color: #d8c8ac;
    font-size: 0.95rem;
    font-style: normal;
    line-height: 1.6;
}

.footer_links {
    min-width: 0;
}

.site_footer a {
    color: #ebd18a;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.site_footer a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site_footer a:focus-visible {
    outline: 2px solid #ebd18a;
    outline-offset: 4px;
}

.footer_socials {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 12px;
}

@media (max-width: 700px) {
    .footer_content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

nav {
    position: absolute;
    top: 0;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 0.9rem;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.book_title {
    font-size: 1.5rem;
    margin-top: 0;
}

p {
    font-size: 1.2rem;
    font-style: italic;
}

.book_cover {
    width: 300px;
    display: block;
    margin: 0;
}

.book_description {
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: left;
    font-size: 1.1rem;
}

.book_info {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: flex-start;
}

.book_details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page_title {
    margin-top: 100px;
}

.title_divider {
    width: 180px;
    height: 1px;
    background-color: #b08a3e;
    margin: 10px auto 20px;
    position: relative;
}

.title_divider::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #8f6b2f;
    transform: rotate(45deg);
    top: -4px;
    left: 50%;
    margin-left: -4px;
}

.buy_button {
    display: block;
    padding: 12px 30px;
    background-color: #c99a3e;
    color: black;
    text-decoration: none;
    width: fit-content;
    margin: 30px 0 0;
    border-radius: 4px;
}

.social_link {
    display: block;
    color: #ebd18a;
    text-decoration: none;
    margin: 15px auto;
    font-size: 1.1rem;
    background-color: #8f6b2f;
    width: fit-content;
    padding: 10px 20px;
}

.site_logo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.site_logo {
    position: absolute;
    left: 20px;
    top: 10px;
}

.email_address {
    color: #8f6b2f;
}

.testimonial {
    max-width: 450px;
    line-height: 1.6;
    font-size: 1.1rem;
    font-style: italic;
    text-align: left;
    position: absolute;
    left: 20px;
    bottom: 20px;
    border-left: 3px solid #8f6b2f;
    padding-left: 20px;
    background-color: rgba(143, 107, 47, 0.08);
    text-shadow: 1px 1px 2px rgba(143, 107, 47, 0.3);
}

.testimonial-mobile {
    display: none;
}

.nav_logout_form {
    margin: 0;
}

.nav_logout_button {
    background: none;
    border: none;
    color: white;
    margin: 0 15px;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
}

.site_nav_links {
    display: flex;
    align-items: center;
    justify-content: center;
}

.account_menu {
    position: absolute;
    top: 23px;
    right: 20px;
    margin: 0;
    z-index: 1000;
}

.account_menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #3b3021;
    background-color: #f6efe2;
    border: 1px solid #8f6b2f;
    border-radius: 50%;
    cursor: pointer;
    list-style: none;
}

.account_menu summary::-webkit-details-marker {
    display: none;
}

.account_menu summary:focus-visible {
    outline: 3px solid #8f6b2f;
    outline-offset: 3px;
}

.account_dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1000;
    width: 190px;
    padding: 8px;
    background-color: #fffdf8;
    border: 1px solid #e2d5bd;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgb(59 48 33 / 15%);
    text-align: left;
}

nav .account_dropdown a,
nav .account_dropdown button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px;
    color: #3b3021;
    background: transparent;
    border: none;
    border-radius: 6px;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.account_dropdown form {
    margin: 0;
    box-sizing: border-box;
}

nav .account_dropdown a:hover,
nav .account_dropdown button:hover {
    background-color: #f6efe2;
    box-sizing: border-box;
    text-transform: none;
    letter-spacing: normal;
}

nav .account_dropdown a,
nav .account_dropdown a:hover,
nav .account_dropdown a:focus,
nav .account_dropdown button,
nav .account_dropdown button:hover,
nav .account_dropdown button:focus {
    font-family: inherit;
    font-size: 1rem;
    font-weight: normal;
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
}

@media (max-width: 700px) {
    .site_nav_links {
        box-sizing: border-box;
        width: 100%;
        padding: 0 80px 0 110px;
        flex-wrap: wrap;
        gap: 10px 0;
    }

    .site_nav_links a {
        margin: 0 8px;
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .site_nav_links {
        padding: 0 70px 0 10px;
    }

    .account_menu {
        right: 12px;
    }
}

@media (max-width: 600px) {
    .buy_button {
        margin: 30px auto 0;
    }

    .site_logo{
        display: none;
    }

    .book_info {
        flex-direction: column;
        align-items: center;
    }

    .book_details {
        width: 90%;
        margin: 0 auto;
    }

    .book_description {
        font-size: 1rem;
        line-height: 1.5;
    }

    .testimonial-desktop {
    display: none;
    }
    
    .testimonial-mobile {
    display: block;
    width: 80%;
    left: 40%;
    transform: none;
    box-sizing: border-box;
    position: static;
    margin: 40px auto 20px;
    }
}
