/* Books by Miquette McMahon (/book). Rebuilt November 19, 2026 from Kristie's gift mockup. */

:root {
    --th-book-blue: #003349;
    --th-book-deep: #062531;
    --th-book-mid: #005b8f;
    --th-book-orange: #f18721;
    --th-book-gold: #f6c343;
    --th-book-ice: #e7f3f8;
    --th-book-sand: #f5f0e9;
    --th-book-ink: #24495a;
}

.th-book-page {
    overflow: clip;
    background: #fff;
    color: var(--th-book-blue);
    font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.th-book-page * {
    box-sizing: border-box;
}

.th-book-container {
    width: min(1160px, 92vw);
    margin: 0 auto;
}

.th-book-gift h1,
.th-book-gift h2 {
    margin: 0;
    font-family: "Mr Eaves Mod OT", "Avenir Next", sans-serif;
    font-weight: 700;
    line-height: 1.05;
    padding: 0;
}

.th-book-gift p {
    padding: 0;
}

.thg-eyebrow {
    margin: 0 0 14px;
    color: var(--th-book-mid);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.thg-eyebrow--gold {
    color: var(--th-book-gold);
}

/* Buttons */

.thg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.thg-actions + .thg-actions {
    margin-top: 14px;
}

.thg-actions--center {
    justify-content: center;
}

.thg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: 3px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.thg-button:hover,
.thg-button:focus-visible {
    transform: translateY(-2px);
}

.thg-button--orange {
    background: var(--th-book-orange);
    color: var(--th-book-blue);
}

.thg-button--orange:hover,
.thg-button--orange:focus-visible {
    background: #ff9a3a;
    color: var(--th-book-blue);
}

.thg-button--blue {
    background: var(--th-book-mid);
    color: #fff;
}

.thg-button--blue:hover,
.thg-button--blue:focus-visible {
    background: var(--th-book-blue);
    color: #fff;
}

.thg-button--outline {
    border-color: var(--th-book-mid);
    color: var(--th-book-mid);
}

.thg-button--outline:hover,
.thg-button--outline:focus-visible {
    background: var(--th-book-mid);
    color: #fff;
}

.thg-button--outline-light {
    border-color: #fff;
    color: #fff;
}

.thg-button--outline-light:hover,
.thg-button--outline-light:focus-visible {
    background: #fff;
    color: var(--th-book-blue);
}

/* Hero */

.thg-hero {
    padding: clamp(56px, 7vw, 96px) 0;
    background: var(--th-book-blue);
    color: #fff;
}

.thg-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.thg-hero h1 {
    color: #fff;
    font-size: clamp(44px, 6vw, 72px);
}

.thg-hero__lead {
    max-width: 540px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(19px, 1.8vw, 23px);
    line-height: 1.45;
}

.thg-hero__note {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
}

.thg-hero__covers {
    position: relative;
    width: min(100%, 440px);
    aspect-ratio: 1.25;
    margin: 0 auto;
}

.thg-hero__cover {
    position: absolute;
    top: 6%;
    width: 52%;
    display: block;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

.thg-hero__cover img {
    display: block;
    width: 100%;
    height: auto;
}

.thg-hero__cover--kids {
    left: 2%;
    transform: rotate(-3deg);
    z-index: 1;
}

.thg-hero__cover--memoir {
    right: 2%;
    transform: rotate(3deg);
    z-index: 2;
}

.thg-hero__cover--kids:hover,
.thg-hero__cover--kids:focus-visible {
    transform: rotate(-3deg) translateY(-6px);
    z-index: 3;
}

.thg-hero__cover--memoir:hover,
.thg-hero__cover--memoir:focus-visible {
    transform: rotate(3deg) translateY(-6px);
}

/* Gift band */

.thg-gift {
    padding: clamp(40px, 5vw, 60px) 0;
    background: var(--th-book-ice);
}

.thg-gift__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: clamp(24px, 5vw, 60px);
    align-items: center;
    max-width: 1040px;
}

.thg-gift h2 {
    color: var(--th-book-blue);
    font-size: clamp(32px, 3.6vw, 44px);
}

.thg-gift p:not(.thg-eyebrow) {
    max-width: 600px;
    margin: 14px 0 0;
    color: var(--th-book-ink);
    font-size: 18px;
    line-height: 1.6;
}

.thg-gift__actions {
    margin-top: 0;
}

/* Book sections */

.thg-book {
    padding: clamp(56px, 7vw, 96px) 0;
}

.thg-book--memoir {
    background: var(--th-book-sand);
}

.thg-book__layout {
    display: grid;
    grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 84px);
    align-items: center;
    max-width: 1080px;
}

.thg-book__layout--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 300px);
}

.thg-book__cover {
    margin: 0;
}

.thg-book__cover img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 20px 40px rgba(0, 51, 73, 0.22);
}

.thg-book__copy h2 {
    color: var(--th-book-blue);
    font-size: clamp(36px, 4.4vw, 54px);
}

.thg-book__subtitle {
    margin: 14px 0 0;
    color: var(--th-book-mid);
    font-size: 21px;
    font-weight: 800;
}

.thg-book__lead {
    margin: 18px 0 0;
    color: var(--th-book-ink);
    font-size: 19px;
    line-height: 1.6;
}

.thg-book__quote {
    margin: 24px 0 0;
    padding: 4px 0 4px 22px;
    border-left: 4px solid var(--th-book-orange);
    color: var(--th-book-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.55;
}

.thg-book__quote p {
    margin: 0;
}

.thg-book__quote p + p {
    margin-top: 8px;
}

.thg-book__meta {
    margin: 22px 0 0;
    color: var(--th-book-ink);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Author */

.thg-author {
    padding: clamp(48px, 6vw, 80px) 0;
    background: #fff;
}

.thg-author__layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 44px);
    align-items: center;
    max-width: 900px;
}

.thg-author__photo {
    margin: 0;
}

.thg-author__photo img {
    display: block;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
}

.thg-author h2 {
    color: var(--th-book-blue);
    font-size: clamp(30px, 3vw, 38px);
}

.thg-author p:not(.thg-eyebrow) {
    margin: 12px 0 0;
    color: var(--th-book-ink);
    font-size: 18px;
    line-height: 1.6;
}

/* Closing */

.thg-closing {
    padding: clamp(56px, 7vw, 88px) 0;
    background: var(--th-book-blue);
    color: #fff;
    text-align: center;
}

.thg-closing__inner {
    max-width: 780px;
}

.thg-closing h2 {
    color: #fff;
    font-size: clamp(36px, 4.4vw, 52px);
}

.thg-closing p {
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.6;
}

/* Tablet */

@media (max-width: 980px) {
    .thg-hero__layout {
        grid-template-columns: 1fr;
    }

    .thg-hero__covers {
        width: min(100%, 380px);
    }

    .thg-gift__layout {
        grid-template-columns: 1fr;
    }

    .thg-book__layout,
    .thg-book__layout--reverse {
        grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    }

    .thg-book__layout--reverse .thg-book__cover {
        order: -1;
    }
}

/* Phone */

@media (max-width: 640px) {
    .thg-hero__covers {
        width: min(100%, 300px);
    }

    .thg-book__layout,
    .thg-book__layout--reverse {
        grid-template-columns: 1fr;
    }

    .thg-book__cover {
        width: min(180px, 55vw);
        margin: 0 auto;
    }

    .thg-author__layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .thg-author__photo img {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }

    .thg-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .thg-button {
        width: 100%;
    }
}
