/* =========================================================
   S. L. WRENFORD — SITE STYLES
   Clean consolidated stylesheet for:
   - index.html
   - books.html

   about.html currently has its own self-contained styles.
   ========================================================= */


/* =========================================================
   RESET / VARIABLES
   ========================================================= */

* {
    box-sizing: border-box;
}

:root {
    --navy: #082d45;
    --navy-light: #12455f;
    --paper: #fdfbf6;
    --cream: #f7f1e7;
    --ink: #172633;
    --muted: #59656d;
    --line: #d1c9bc;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Inter", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

.page-width {
    width: min(1240px, calc(100% - 32px));
    margin-inline: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    height: 82px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 251, 246, 0.98);
    border-bottom: 1px solid rgba(8, 45, 69, 0.08);
}

.header-content {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    flex-direction: column;
    color: var(--navy);
    text-decoration: none;
    line-height: 1;
}

.brand-name {
    font-family: var(--serif);
    font-size: 2.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.075em;
}

.brand-subtitle {
    margin-top: 6px;
    text-align: center;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

.nav {
    display: flex;
    gap: 34px;
    align-self: stretch;
    align-items: center;
}

    .nav a {
        height: 100%;
        display: flex;
        align-items: center;
        padding-top: 4px;
        color: var(--navy);
        font-family: var(--serif);
        font-size: 1.12rem;
        text-decoration: none;
        border-bottom: 2px solid transparent;
    }

        .nav a:hover,
        .nav a.active {
            border-bottom-color: var(--navy);
        }

.mobile-menu-button {
    display: none;
}


/* =========================================================
   SHARED HERO
   HOME / BOOKS
   ========================================================= */

.hero {
    height: 360px;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient( 90deg, rgba(8, 39, 58, 0.98) 0%, rgba(8, 39, 58, 0.92) 25%, rgba(8, 39, 58, 0.50) 39%, rgba(8, 39, 58, 0.04) 57% ), url("assets/hero-landscape.png");
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
    background-position: center, center bottom;
}

.hero-content {
    height: 360px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: 470px;
    position: relative;
    z-index: 3;
    color: white;
}

    .hero-copy h1 {
        margin: 0 0 12px;
        font-family: var(--serif);
        font-size: 4.35rem;
        font-weight: 600;
        line-height: 0.89;
        letter-spacing: -0.025em;
    }

    .hero-copy p {
        width: 445px;
        max-width: 100%;
        margin: 0;
        font-family: var(--serif);
        font-size: 1.12rem;
        line-height: 1.19;
    }

.hero-kink-note {
    margin-top: 12px !important;
    width: 445px;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem !important;
    font-style: italic;
    line-height: 1.2 !important;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    padding: 8px 20px;
    border: 1px solid var(--navy);
    text-decoration: none;
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.button-dark {
    color: white;
    background: var(--navy);
}

.button-light {
    color: var(--navy);
    background: rgba(255, 255, 255, 0.95);
}

.button-outline {
    color: var(--navy);
    background: rgba(255, 255, 255, 0.72);
}


/* =========================================================
   COMING SOON BADGE
   Shared by every Course Correction cover
   ========================================================= */

.coming-soon-wrap {
    position: relative;
}

.coming-soon-badge {
    position: absolute;
    top: 7px;
    right: -3px;
    z-index: 10;
    padding: 5px 9px;
    color: #fffdf8;
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.55);
    font-family: var(--sans);
    font-size: 0.48rem;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}


/* =========================================================
   HOME — FEATURED BOOK
   ========================================================= */

.featured {
    height: 244px;
    position: relative;
    overflow: visible;
    border-bottom: 1px solid var(--line);
    background-image: linear-gradient( 90deg, rgba(255, 253, 248, 0.82) 0%, rgba(255, 253, 248, 0.94) 27%, rgba(255, 253, 248, 0.96) 65%, rgba(255, 253, 248, 0.52) 100% ), url("assets/featured-landscape.png");
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
    background-position: center, center;
}

.featured-content {
    height: 244px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    column-gap: 18px;
    align-items: center;
}

.featured-book {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.featured-book-link {
    position: relative;
    display: block;
    transform: translateY(-38px);
}

.featured-cover {
    width: 265px;
    max-height: 360px;
    object-fit: contain;
    margin-bottom: -12px;
    transform: none;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.18));
}

.featured-book-link .coming-soon-badge {
    top: 16px;
    right: 7px;
}

/* Text and buttons deliberately positioned separately. */

.featured-copy {
    width: 100%;
    max-width: 690px;
    height: 218px;
    position: relative;
    align-self: center;
}

.featured-text {
    position: absolute;
    top: -36px;
    left: 0;
    right: 0;
}

.featured-label {
    margin-bottom: 2px;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.64rem;
    font-weight: 600;
}

.featured-title-row {
    display: block;
}

    .featured-copy h2,
    .featured-title-row h2 {
        margin: 0;
        color: var(--navy);
        font-family: var(--serif);
        font-size: 3.35rem;
        font-weight: 600;
        line-height: 0.9;
    }

.featured-copy p {
    margin: 3px 0;
    font-family: var(--serif);
    font-size: 0.87rem;
    line-height: 1.11;
}

.featured-copy .featured-lead {
    margin-top: 4px;
    color: var(--navy);
    font-size: 1.02rem;
    font-style: italic;
}

.featured-buttons {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    gap: 8px;
    margin: 0;
}


/* =========================================================
   HOME — BOOKS + ABOUT
   ========================================================= */

.main-info {
    background: rgba(255, 253, 248, 0.98);
    padding-top: 72px;
}

.main-info-grid {
    display: grid;
    grid-template-columns: 1.03fr 0.97fr;
}


/* ---- Books teaser ---- */

.books {
    padding: 12px 28px 10px 0;
    border-right: 1px solid var(--line);
}

.section-header {
    display: flex;
    align-items: center;
}

    .section-header h2 {
        margin: 0;
        color: var(--navy);
        font-family: var(--serif);
        font-size: 2.45rem;
        font-weight: 600;
        line-height: 1;
    }

.books-header {
    gap: 12px;
    margin-bottom: 10px;
}

.heading-line {
    width: 46px;
    height: 1px;
    background: #8b969d;
}

.books-header p {
    margin: 0;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 0.9rem;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.book {
    text-align: center;
}

.home-book-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

    .home-book-link:hover h3 {
        text-decoration: underline;
        text-underline-offset: 3px;
    }

.book img {
    width: 162px;
    max-width: 100%;
    height: 205px;
    object-fit: contain;
    margin: 0 auto 4px;
}

.book .coming-soon-wrap {
    width: 162px;
    max-width: 100%;
    margin: 0 auto 4px;
}

    .book .coming-soon-wrap img {
        margin: 0;
    }

.book .coming-soon-badge {
    top: 7px;
    right: -3px;
}

.book h3 {
    margin: 0;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 1.06rem;
    line-height: 1.05;
}

.book p {
    width: 182px;
    max-width: 100%;
    margin: 4px auto 3px;
    font-family: var(--serif);
    font-size: 0.79rem;
    line-height: 1.08;
}

.book-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 0.81rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}


/* ---- About teaser ---- */

.about {
    padding: 12px 0 10px 28px;
}

.about-line {
    display: block;
    width: 29px;
    height: 1px;
    margin: 8px 0 12px;
    background: #8b969d;
}

.about-content {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
}

.portrait {
    display: flex;
    justify-content: center;
}

    .portrait img {
        width: 145px;
        height: 145px;
        object-fit: cover;
        object-position: center;
        border-radius: 50%;
        display: block;
    }

.about-copy p {
    margin: 0 0 9px;
    font-family: var(--serif);
    font-size: 0.88rem;
    line-height: 1.16;
}

.about-home-button {
    margin-top: 6px;
    min-height: 31px;
    padding: 6px 14px;
    font-size: 0.84rem;
}

.learn-more {
    margin-top: 4px;
}


/* =========================================================
   NEWSLETTER
   ========================================================= */

.newsletter {
    height: 92px;
    min-height: 92px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: url("assets/newsletter-panorama-v4.png") center center / cover no-repeat;
}

    .newsletter::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 760px;
        transform: translateX(-50%);
        background: radial-gradient( ellipse at center, rgba(253, 251, 246, 0.72) 0%, rgba(253, 251, 246, 0.48) 38%, rgba(253, 251, 246, 0.16) 68%, rgba(253, 251, 246, 0) 100% );
        pointer-events: none;
    }

.newsletter-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--navy);
}

.newsletter h2 {
    margin: 0;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.65);
}

.newsletter p {
    margin: 2px 0 7px;
    padding: 0;
    color: var(--navy);
    background: none;
    border: 0;
    box-shadow: none;
    font-family: var(--serif);
    font-size: 0.91rem;
    font-weight: 600;
    line-height: 1.1;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    width: min(500px, 100%);
    margin: 0 auto;
    display: flex;
}

    .newsletter-form input {
        flex: 1;
        height: 30px;
        min-width: 0;
        padding: 0 10px;
        border: 1px solid rgba(8, 45, 69, 0.32);
        background: rgba(255, 255, 255, 0.92);
        color: var(--ink);
        font-size: 0.78rem;
    }

    .newsletter-form button {
        width: 130px;
        height: 30px;
        border: 0;
        background: var(--navy);
        color: white;
        font-family: var(--serif);
        font-size: 0.87rem;
        cursor: pointer;
    }

.form-note {
    min-height: 10px;
    margin-top: 2px;
    font-size: 0.67rem;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    min-height: 68px;
    display: flex;
    align-items: center;
    background: #082a40;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr auto;
    align-items: center;
    gap: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-name {
    font-family: var(--serif);
    font-size: 1.45rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
}

.footer-subtitle {
    margin-top: 4px;
    font-size: 0.50rem;
    text-transform: uppercase;
    letter-spacing: 0.20em;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
}

    .footer-links a {
        color: white;
        font-family: var(--serif);
        font-size: 0.82rem;
        text-decoration: none;
    }

    .footer-links span {
        width: 1px;
        height: 13px;
        background: rgba(255, 255, 255, 0.40);
    }

.copyright {
    text-align: right;
    font-family: var(--serif);
    font-size: 0.67rem;
    line-height: 1.2;
}


/* =========================================================
   MODAL
   ========================================================= */

.book-modal {
    width: min(700px, calc(100% - 30px));
    padding: 0;
    border: 0;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

    .book-modal::backdrop {
        background: rgba(4, 20, 31, 0.75);
    }

    .book-modal > div {
        padding: 40px;
    }

    .book-modal h2 {
        margin: 0 0 16px;
        color: var(--navy);
        font-family: var(--serif);
        font-size: 3rem;
    }

    .book-modal p {
        font-family: var(--serif);
        font-size: 1rem;
        line-height: 1.32;
    }

.modal-close {
    position: absolute;
    top: 7px;
    right: 12px;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 2rem;
    cursor: pointer;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================================================
   BOOKS PAGE — TOP SHOWCASE
   ========================================================= */

.books-showcase {
    padding: 18px 0 14px;
    background: rgba(255, 253, 248, 0.99);
}

.books-showcase-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 10px;
}

.books-small-heading {
    display: block;
    margin-bottom: 2px;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.17em;
    font-size: 0.59rem;
    font-weight: 600;
}

.books-showcase-heading h2 {
    margin: 0;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1;
}

.books-carousel-buttons {
    display: flex;
    gap: 6px;
}

.books-carousel-button {
    width: 31px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--navy);
    color: var(--navy);
    background: transparent;
    font-family: var(--serif);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

    .books-carousel-button:hover {
        color: white;
        background: var(--navy);
    }

.books-showcase-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 28px;
    align-items: stretch;
}


/* =========================================================
   BOOKS PAGE — HORIZONTAL CAROUSEL
   ========================================================= */

.books-carousel {
    display: flex;
    gap: 20px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 2px 8px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(8, 45, 69, 0.25) transparent;
}

    .books-carousel::-webkit-scrollbar {
        height: 5px;
    }

    .books-carousel::-webkit-scrollbar-track {
        background: transparent;
    }

    .books-carousel::-webkit-scrollbar-thumb {
        background: rgba(8, 45, 69, 0.24);
        border-radius: 999px;
    }

.books-carousel-card {
    flex: 0 0 190px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

    .books-carousel-card img {
        width: 150px;
        height: 205px;
        margin: 0 auto 3px;
        object-fit: contain;
        filter: drop-shadow(0 8px 9px rgba(0, 0, 0, 0.16));
        transition: transform 0.18s ease;
    }

    .books-carousel-card:hover img {
        transform: translateY(-3px);
    }

    .books-carousel-card h3 {
        margin: 0;
        color: var(--navy);
        font-family: var(--serif);
        font-size: 1.12rem;
        font-weight: 600;
        line-height: 1;
    }

    .books-carousel-card p {
        width: 178px;
        max-width: 100%;
        margin: 4px auto 0;
        color: #54616a;
        font-family: var(--serif);
        font-size: 0.74rem;
        line-height: 1.08;
    }

    .books-carousel-card .coming-soon-wrap {
        width: 150px;
        height: 205px;
        margin: 0 auto 3px;
    }

        .books-carousel-card .coming-soon-wrap img {
            margin: 0;
        }

    .books-carousel-card .coming-soon-badge {
        top: 7px;
        right: -3px;
    }


/* =========================================================
   BOOKS PAGE — RIGHT-HAND STATEMENT
   ========================================================= */

.books-showcase-statement {
    padding: 13px 0 8px 27px;
    border-left: 1px solid var(--line);
}

.books-statement-heading {
    display: block;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.17em;
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1.45;
}

.books-statement-line {
    display: block;
    width: 31px;
    height: 1px;
    margin: 12px 0;
    background: var(--navy);
}

.books-showcase-statement p {
    margin: 0 0 12px;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 0.93rem;
    line-height: 1.18;
}

.books-showcase-statement .books-statement-note {
    color: #65717a;
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.17;
}

.books-main-divider {
    width: 100%;
    height: 1px;
    background: var(--line);
}


/* =========================================================
   BOOKS PAGE — DETAIL SECTION
   ========================================================= */

.books-detail-section {
    padding: 16px 0 18px;
    background: var(--paper);
}

.books-detail-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 10px;
}

    .books-detail-heading h2 {
        margin: 0;
        color: var(--navy);
        font-family: var(--serif);
        font-size: 2.1rem;
        font-weight: 600;
        line-height: 0.95;
    }

    .books-detail-heading > p {
        width: 340px;
        max-width: 100%;
        margin: 0;
        color: #69747b;
        text-align: right;
        font-family: var(--serif);
        font-size: 0.78rem;
        line-height: 1.12;
    }


/* =========================================================
   BOOKS PAGE — VERTICAL SCROLLER
   ========================================================= */

.books-vertical-scroll {
    height: 540px;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    overscroll-behavior: contain;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    scrollbar-width: thin;
    scrollbar-color: rgba(8, 45, 69, 0.32) #eee9df;
}

    .books-vertical-scroll::-webkit-scrollbar {
        width: 7px;
    }

    .books-vertical-scroll::-webkit-scrollbar-track {
        background: #eee9df;
    }

    .books-vertical-scroll::-webkit-scrollbar-thumb {
        background: rgba(8, 45, 69, 0.32);
        border-radius: 999px;
    }

.books-detail-row {
    min-height: 260px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 260px;
    align-items: stretch;
    scroll-snap-align: start;
    background: rgba(255, 253, 248, 0.99);
    border-bottom: 1px solid var(--line);
}

    .books-detail-row:last-child {
        border-bottom: 0;
    }


/* ---- Artwork ---- */

.books-detail-art {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e6dfd4;
}

    .books-detail-art img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .books-detail-art.coming-soon-wrap .coming-soon-badge {
        top: 12px;
        right: 12px;
    }


/* ---- Main copy ---- */

.books-detail-copy {
    padding: 20px 27px 18px;
}

    .books-detail-copy h3 {
        margin: 0 0 4px;
        color: var(--navy);
        font-family: var(--serif);
        font-size: 1.8rem;
        font-weight: 600;
        line-height: 1;
    }

    .books-detail-copy p {
        max-width: 600px;
        margin: 0 0 5px;
        font-family: var(--serif);
        font-size: 0.82rem;
        line-height: 1.12;
    }

    .books-detail-copy .books-detail-lead {
        margin-bottom: 6px;
        color: var(--navy);
        font-size: 0.92rem;
        font-style: italic;
    }


/* ---- Tags ---- */

.books-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 9px;
}

    .books-tags span {
        padding: 4px 7px;
        color: var(--navy);
        background: #eef0ed;
        border: 1px solid #dce0dc;
        font-family: var(--serif);
        font-size: 0.66rem;
        line-height: 1;
    }


/* ---- Right-hand info ---- */

.books-detail-side {
    margin: 16px 0;
    padding: 10px 23px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--line);
}

.books-detail-quote {
    margin: 0;
    color: #5b6870;
    font-family: var(--serif);
    font-size: 0.83rem;
    font-style: italic;
    line-height: 1.14;
}

.books-detail-side-line {
    display: block;
    width: 31px;
    height: 1px;
    margin: 12px 0;
    background: #87949c;
}

.books-detail-dynamics,
.books-detail-kink {
    margin: 0;
    color: #52616b;
    font-family: var(--serif);
    font-size: 0.76rem;
    line-height: 1.2;
}

.books-detail-kink {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(8, 45, 69, 0.14);
}

    .books-detail-dynamics strong,
    .books-detail-kink strong {
        display: block;
        margin-bottom: 4px;
        color: var(--navy);
        font-family: var(--sans);
        font-size: 0.54rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.11em;
    }

.books-detail-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 13px;
}

    .books-detail-buttons .button {
        min-width: 91px;
        min-height: 30px;
        padding: 6px 11px;
        font-size: 0.78rem;
    }

.books-scroll-note {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
    color: #778289;
    font-family: var(--serif);
    font-size: 0.7rem;
    font-style: italic;
}


/* =========================================================
   TABLET — GENERAL
   ========================================================= */

@media (max-width: 1000px) {

    .books-showcase-layout {
        grid-template-columns: minmax(0, 1fr) 220px;
    }

    .books-detail-row {
        min-height: 300px;
        grid-template-columns: 245px minmax(0, 1fr);
    }

    .books-detail-art {
        height: auto;
        aspect-ratio: 1 / 1;
        grid-row: span 2;
    }

    .books-detail-side {
        grid-column: 2;
        margin: 0;
        padding: 0 27px 18px;
        border-left: 0;
    }
}


@media (max-width: 900px) {

    .main-info {
        padding-top: 48px;
    }

    .mobile-menu-button {
        display: block;
        border: 1px solid var(--navy);
        background: transparent;
        color: var(--navy);
        padding: 7px 12px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 82px;
        right: 22px;
        height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        padding: 14px 18px;
        background: var(--paper);
        border: 1px solid var(--line);
    }

        .nav.open {
            display: flex;
        }

        .nav a {
            height: auto;
            padding: 6px 0;
        }

    .hero-copy {
        width: 75%;
    }

    .featured {
        height: auto;
        min-height: 270px;
    }

    .featured-content {
        height: auto;
        min-height: 270px;
        grid-template-columns: 230px 1fr;
    }

    .featured-book-link {
        transform: translateY(-18px);
    }

    .featured-cover {
        width: 185px;
    }

    .main-info-grid {
        grid-template-columns: 1fr;
    }

    .books {
        padding-right: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .about {
        padding-left: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
        padding: 14px 0;
        text-align: center;
    }

    .copyright {
        text-align: center;
    }
}


/* =========================================================
   BOOKS PAGE — MOBILE / NARROW TABLET
   ========================================================= */

@media (max-width: 700px) {

    .books-showcase-top {
        align-items: center;
    }

    .books-showcase-heading h2 {
        font-size: 1.35rem;
    }

    .books-showcase-layout {
        grid-template-columns: 1fr;
    }

    .books-showcase-statement {
        padding: 17px 0 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .books-carousel-card {
        flex-basis: 160px;
    }

        .books-carousel-card img {
            width: 135px;
            height: 190px;
        }

        .books-carousel-card .coming-soon-wrap {
            width: 135px;
            height: 190px;
        }

    .books-detail-heading {
        display: block;
    }

        .books-detail-heading > p {
            width: auto;
            margin-top: 5px;
            text-align: left;
        }

    /* Avoid a nested vertical scrollbar on mobile. */
    .books-vertical-scroll {
        height: auto;
        overflow: visible;
        scroll-snap-type: none;
    }

    .books-detail-row {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .books-detail-art {
        height: auto;
        aspect-ratio: 1 / 1;
        grid-row: auto;
    }

    .books-detail-copy {
        padding: 21px 18px 15px;
    }

        .books-detail-copy h3 {
            font-size: 1.7rem;
        }

    .books-detail-side {
        grid-column: auto;
        margin: 0;
        padding: 14px 18px 20px;
        border-top: 1px solid var(--line);
    }

    .books-scroll-note {
        display: none;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .page-width {
        width: min(100% - 24px, 1240px);
    }

    .site-header,
    .header-content {
        height: 72px;
    }

    .brand-name {
        font-size: 1.45rem;
    }

    .brand-subtitle {
        font-size: 0.48rem;
    }

    .nav {
        top: 72px;
    }

    .hero {
        height: 420px;
        background-image: linear-gradient( 90deg, rgba(8, 39, 58, 0.98) 0%, rgba(8, 39, 58, 0.97) 70%, rgba(8, 39, 58, 0.95) 88%, rgba(8, 39, 58, 0.88) 95%, rgba(8, 39, 58, 0.68) 100% ), url("assets/hero-landscape.png");
        background-repeat: no-repeat, no-repeat;
        background-size: cover, cover;
        background-position: center, 68% bottom;
    }

    .hero-content {
        height: 420px;
    }

    .hero-copy {
        width: 100%;
    }

        .hero-copy h1 {
            font-size: 3.35rem;
        }

    .featured-content {
        grid-template-columns: 1fr;
        padding: 25px 0;
    }

    .featured-book {
        align-items: center;
    }

    .featured-book-link {
        transform: none;
    }

    .featured-cover {
        width: 170px;
        margin-bottom: 0;
    }

    .featured-copy {
        height: auto;
        padding-top: 10px;
    }

    .featured-text {
        position: static;
    }

    .featured-buttons {
        position: static;
        margin-top: 10px;
    }

    .main-info {
        padding-top: 34px;
    }

    .books-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .book {
        display: grid;
        grid-template-columns: 115px 1fr;
        column-gap: 18px;
        text-align: left;
        align-items: start;
        margin-bottom: 18px;
    }

    .home-book-link {
        display: contents;
    }

    .book > .home-book-link > img,
    .book .coming-soon-wrap {
        grid-row: span 4;
        width: 115px;
        height: auto;
        margin: 0;
    }

        .book .coming-soon-wrap img {
            width: 115px;
            height: auto;
            margin: 0;
        }

    .book h3 {
        grid-column: 2;
    }

    .book p {
        grid-column: 2;
        width: auto;
        margin-left: 0;
    }

    .book-link {
        grid-column: 2;
        justify-self: start;
    }

    .about-content {
        grid-template-columns: 130px minmax(0, 1fr);
        column-gap: 16px;
    }

    .portrait {
        justify-content: flex-start;
    }

        .portrait img {
            width: 120px;
            height: 120px;
        }

    .newsletter {
        height: auto;
        min-height: 150px;
        padding: 16px 0;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 5px;
    }

        .newsletter-form button {
            width: 100%;
        }
}
