/* =========================================================
ALONE AT THE ALTAR

BOOK PAGE

Author: Bradley Hobbs

========================================================= */


:root {

    --navy:
        #102033;

    --navy-deep:
        #081421;

    --gold:
        #a97932;

    --gold-light:
        #d0a966;

    --cream:
        #f7f3ea;

    --ivory:
        #fffdf8;

    --warm-white:
        #fdfaf4;

    --ink:
        #243344;

    --muted:
        #6e6b66;

    --line:
        rgba(16, 32, 51, 0.15);

    --shadow:
        0 30px 80px
        rgba(16, 32, 51, 0.18);

}


* {

    box-sizing:
        border-box;

}


html {

    scroll-behavior:
        smooth;

}


body {

    margin:
        0;

    background:
        var(--ivory);

    color:
        var(--ink);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

}


img {

    display:
        block;

    max-width:
        100%;

}


a {

    color:
        inherit;

    text-decoration:
        none;

}


.section-shell {

    width:
        min(1400px, calc(100% - 48px));

    margin:
        0 auto;

}


.eyebrow {

    display:
        block;

    margin-bottom:
        18px;

    color:
        var(--gold);

    font-family:
        "DM Sans",
        sans-serif;

    font-size:
        0.7rem;

    font-weight:
        700;

    letter-spacing:
        0.22em;

    text-transform:
        uppercase;

}


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

.button {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        54px;

    padding:
        0 30px;

    font-family:
        "DM Sans",
        sans-serif;

    font-size:
        0.75rem;

    font-weight:
        700;

    transition:
        transform 0.25s ease,
        background 0.25s ease;

}


.button:hover {

    transform:
        translateY(-3px);

}


.button-gold {

    background:
        var(--gold);

    color:
        #ffffff;

}


.button-outline {

    border:
        1px solid
        rgba(16, 32, 51, 0.35);

    color:
        var(--navy);

}


.button-light {

    background:
        var(--ivory);

    color:
        var(--navy);

}


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

.site-header {

    position:
        sticky;

    top:
        0;

    z-index:
        1000;

    background:
        rgba(253, 250, 244, 0.97);

    border-bottom:
        1px solid
        rgba(16, 32, 51, 0.08);

    backdrop-filter:
        blur(12px);

}


.header-inner {

    width:
        min(1500px, calc(100% - 48px));

    min-height:
        88px;

    margin:
        0 auto;

    display:
        flex;

    align-items:
        center;

    gap:
        28px;

}


.site-brand {

    display:
        flex;

    flex-direction:
        column;

    flex-shrink:
        0;

}


.brand-title {

    color:
        var(--navy);

    font-family:
        "Playfair Display",
        serif;

    font-size:
        1.75rem;

    font-weight:
        600;

    line-height:
        1;

}


.brand-title small {

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        0.9rem;

}


.brand-title strong {

    color:
        var(--gold);

}


.brand-subtitle {

    margin-top:
        5px;

    color:
        var(--muted);

    font-family:
        "DM Sans",
        sans-serif;

    font-size:
        0.45rem;

    font-weight:
        700;

    letter-spacing:
        0.14em;

    text-transform:
        uppercase;

}


.site-navigation {

    display:
        flex;

    gap:
        24px;

    margin-left:
        auto;

}


.site-navigation a {

    position:
        relative;

    padding:
        8px 0;

    font-family:
        "DM Sans",
        sans-serif;

    font-size:
        0.78rem;

}


.site-navigation a::after {

    position:
        absolute;

    right:
        0;

    bottom:
        0;

    left:
        0;

    height:
        1px;

    background:
        var(--gold);

    content:
        "";

    transform:
        scaleX(0);

    transition:
        transform 0.25s ease;

}


.site-navigation a.active::after,
.site-navigation a:hover::after {

    transform:
        scaleX(1);

}


.header-button {

    padding:
        13px 22px;

    background:
        var(--gold);

    color:
        #ffffff;

    font-family:
        "DM Sans",
        sans-serif;

    font-size:
        0.7rem;

    font-weight:
        700;

}


.mobile-menu-button {

    display:
        none;

}


/* =========================================================
BOOK HERO
========================================================= */

.book-hero {

    overflow:
        hidden;

    padding:
        100px 24px;

    background:
        linear-gradient(
            135deg,
            #eee5d7,
            #fffdf8 55%,
            #e9dece
        );

}


.book-hero-inner {

    width:
        min(1250px, 100%);

    margin:
        0 auto;

    display:
        grid;

    grid-template-columns:
        minmax(300px, 0.8fr)
        minmax(400px, 1.2fr);

    align-items:
        center;

    gap:
        clamp(50px, 8vw, 120px);

}


.book-cover-wrap {

    position:
        relative;

    display:
        flex;

    justify-content:
        center;

}


.book-cover-shadow {

    position:
        absolute;

    width:
        65%;

    height:
        85%;

    top:
        10%;

    background:
        rgba(16, 32, 51, 0.18);

    filter:
        blur(35px);

    transform:
        translateY(30px);

}


.book-cover {

    position:
        relative;

    width:
        min(100%, 430px);

    box-shadow:
        var(--shadow);

}


.book-hero-content {

    max-width:
        680px;

}


.book-hero-content h1 {

    margin:
        0;

    color:
        var(--navy);

    font-size:
        clamp(4rem, 8vw, 7.5rem);

    font-weight:
        500;

    line-height:
        0.82;

}


.book-hero-content h1 small {

    display:
        block;

    margin:
        8px 0;

    color:
        var(--gold);

    font-size:
        0.28em;

    font-style:
        italic;

    line-height:
        1;

}


.title-line {

    margin:
        32px 0;

}


.title-line span {

    display:
        block;

    width:
        110px;

    height:
        1px;

    background:
        var(--gold);

}


.book-hero-content h2 {

    margin:
        0;

    color:
        var(--ink);

    font-size:
        clamp(1.6rem, 3vw, 2.5rem);

    font-weight:
        500;

    line-height:
        1.15;

}


.book-tagline {

    max-width:
        560px;

    margin:
        26px 0 0;

    color:
        var(--muted);

    font-size:
        1.35rem;

    font-style:
        italic;

    line-height:
        1.4;

}


.book-actions {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        14px;

    margin-top:
        35px;

}


/* =========================================================
BOOK INTRODUCTION
========================================================= */

.book-introduction {

    padding:
        120px 0;

    background:
        var(--ivory);

}


.book-introduction-grid {

    display:
        grid;

    grid-template-columns:
        0.9fr
        1.1fr;

    gap:
        100px;

}


.book-introduction-title h2 {

    margin:
        0;

    color:
        var(--navy);

    font-size:
        clamp(3.2rem, 6vw, 5.8rem);

    font-weight:
        500;

    line-height:
        0.9;

}


.book-introduction-content {

    max-width:
        650px;

}


.book-introduction-content p {

    margin:
        0 0 24px;

    font-size:
        1.45rem;

    line-height:
        1.55;

}


/* =========================================================
THEMES
========================================================= */

.book-is-section {

    padding:
        120px 0;

    background:
        var(--cream);

}


.section-heading {

    margin-bottom:
        60px;

}


.section-heading.centered {

    max-width:
        850px;

    margin-right:
        auto;

    margin-bottom:
        70px;

    margin-left:
        auto;

    text-align:
        center;

}


.section-heading h2 {

    margin:
        0;

    color:
        var(--navy);

    font-size:
        clamp(3rem, 6vw, 5.5rem);

    font-weight:
        500;

    line-height:
        0.92;

}


.theme-grid {

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        20px;

}


.theme-card {

    min-height:
        310px;

    padding:
        38px;

    background:
        var(--ivory);

    border:
        1px solid
        rgba(16, 32, 51, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

}


.theme-card:hover {

    transform:
        translateY(-6px);

    box-shadow:
        var(--shadow);

}


.theme-number {

    color:
        var(--gold);

    font-family:
        "DM Sans",
        sans-serif;

    font-size:
        0.7rem;

    font-weight:
        700;

    letter-spacing:
        0.12em;

}


.theme-card h3 {

    margin:
        32px 0 14px;

    color:
        var(--navy);

    font-size:
        2.2rem;

    font-weight:
        500;

}


.theme-card p {

    margin:
        0;

    color:
        var(--muted);

    font-size:
        1.2rem;

    line-height:
        1.5;

}


/* =========================================================
AUTHOR MESSAGE
========================================================= */

.author-message {

    min-height:
        700px;

    display:
        flex;

    align-items:
        center;

    background:
        linear-gradient(
            rgba(8, 20, 33, 0.74),
            rgba(8, 20, 33, 0.88)
        ),
        url("images/book-message.jpg")
        center / cover
        no-repeat;

}


.author-message-overlay {

    width:
        100%;

    padding:
        100px 24px;

}


.author-message-content {

    width:
        min(850px, 100%);

    margin:
        0 auto;

    color:
        #ffffff;

    text-align:
        center;

}


.author-message-content h2 {

    margin:
        0 0 30px;

    font-size:
        clamp(3.5rem, 7vw, 6.5rem);

    font-weight:
        500;

    line-height:
        0.9;

}


.author-message-content p {

    max-width:
        650px;

    margin:
        0 auto 18px;

    color:
        rgba(255, 255, 255, 0.85);

    font-size:
        1.45rem;

    line-height:
        1.5;

}


/* =========================================================
READING JOURNEY
========================================================= */

.reading-journey {

    padding:
        120px 0;

    background:
        var(--warm-white);

}


.journey-path {

    display:
        flex;

    align-items:
        stretch;

    justify-content:
        center;

}


.journey-step {

    flex:
        1;

    display:
        flex;

    gap:
        20px;

    padding:
        30px;

    border-top:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);

}


.journey-number {

    color:
        var(--gold);

    font-family:
        "DM Sans",
        sans-serif;

    font-size:
        0.7rem;

    font-weight:
        700;

}


.journey-step div {

    display:
        flex;

    flex-direction:
        column;

    gap:
        6px;

}


.journey-step small {

    color:
        var(--muted);

    font-family:
        "DM Sans",
        sans-serif;

    font-size:
        0.58rem;

    font-weight:
        700;

    letter-spacing:
        0.14em;

    text-transform:
        uppercase;

}


.journey-step strong {

    color:
        var(--navy);

    font-size:
        1.7rem;

    font-weight:
        500;

}


.journey-step div span {

    color:
        var(--muted);

    font-size:
        1rem;

    font-style:
        italic;

}


.journey-line {

    width:
        1px;

    background:
        var(--gold);

}


.journey-button-wrap {

    display:
        flex;

    justify-content:
        center;

    margin-top:
        50px;

}


/* =========================================================
CLOSING
========================================================= */

.book-closing {

    padding:
        130px 24px;

    background:
        var(--navy);

    color:
        #ffffff;

    text-align:
        center;

}


.book-closing-inner {

    width:
        min(900px, 100%);

    margin:
        0 auto;

}


.book-closing h2 {

    margin:
        0;

    font-size:
        clamp(3rem, 6vw, 6rem);

    font-weight:
        500;

    line-height:
        0.92;

}


.book-closing p {

    max-width:
        650px;

    margin:
        30px auto;

    color:
        rgba(255, 255, 255, 0.78);

    font-size:
        1.5rem;

    font-style:
        italic;

    line-height:
        1.4;

}


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

.site-footer {

    background:
        var(--navy-deep);

    color:
        #ffffff;

}


.footer-main {

    display:
        grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items:
        center;

    gap:
        40px;

    padding-top:
        52px;

    padding-bottom:
        52px;

}


.footer-title {

    display:
        block;

    font-family:
        "Playfair Display",
        serif;

    font-size:
        2rem;

}


.footer-title small {

    font-size:
        1rem;

}


.footer-brand p {

    margin:
        8px 0 0;

    color:
        rgba(255, 255, 255, 0.6);

    font-family:
        "DM Sans",
        sans-serif;

    font-size:
        0.58rem;

    letter-spacing:
        0.12em;

    text-transform:
        uppercase;

}


.footer-navigation {

    display:
        flex;

    flex-wrap:
        wrap;

    justify-content:
        center;

    gap:
        18px;

}


.footer-navigation a {

    color:
        rgba(255, 255, 255, 0.78);

    font-family:
        "DM Sans",
        sans-serif;

    font-size:
        0.72rem;

}


.footer-scripture {

    text-align:
        right;

}


.footer-scripture p {

    margin:
        0;

    color:
        rgba(255, 255, 255, 0.8);

    font-style:
        italic;

}


.footer-scripture span {

    color:
        var(--gold-light);

    font-family:
        "DM Sans",
        sans-serif;

    font-size:
        0.65rem;

}


.footer-bottom {

    border-top:
        1px solid
        rgba(255, 255, 255, 0.1);

}


.footer-bottom-inner {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    min-height:
        68px;

}


.footer-bottom p,
.legal-links a {

    color:
        rgba(255, 255, 255, 0.58);

    font-family:
        "DM Sans",
        sans-serif;

    font-size:
        0.65rem;

}


.legal-links {

    display:
        flex;

    gap:
        18px;

}


/* =========================================================
TABLET
========================================================= */

@media (max-width: 1000px) {


    .book-hero-inner {

        grid-template-columns:
            1fr;

        text-align:
            center;

    }


    .title-line {

        display:
            flex;

        justify-content:
            center;

    }


    .book-actions {

        justify-content:
            center;

    }


    .book-introduction-grid {

        grid-template-columns:
            1fr;

        gap:
            45px;

    }


    .theme-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .journey-path {

        flex-direction:
            column;

    }


    .journey-line {

        width:
            100%;

        height:
            1px;

    }


    .footer-main {

        grid-template-columns:
            1fr;

        text-align:
            center;

    }


    .footer-scripture {

        text-align:
            center;

    }

}


/* =========================================================
IPAD / TABLET PORTRAIT
========================================================= */

@media (min-width: 801px) and (max-width: 1000px) {

    /*
       iPad portrait needs the mobile-style navigation because
       the full desktop navigation becomes cramped at this width.
       The page content itself remains in the tablet layout.
    */

    .header-inner {

        width:
            min(100% - 30px, 1500px);

        min-height:
            78px;

    }


    .header-button {

        display:
            none;

    }


    .mobile-menu-button {

        display:
            block;

        width:
            44px;

        height:
            44px;

        margin-left:
            auto;

        padding:
            0;

        border:
            0;

        background:
            transparent;

        cursor:
            pointer;

    }


    .mobile-menu-button span {

        display:
            block;

        width:
            24px;

        height:
            2px;

        margin:
            5px auto;

        background:
            var(--navy);

    }


    .mobile-menu-button.open span:nth-child(1) {

        transform:
            translateY(7px)
            rotate(45deg);

    }


    .mobile-menu-button.open span:nth-child(2) {

        opacity:
            0;

    }


    .mobile-menu-button.open span:nth-child(3) {

        transform:
            translateY(-7px)
            rotate(-45deg);

    }


    .site-navigation {

        position:
            absolute;

        top:
            100%;

        right:
            0;

        left:
            0;

        display:
            none;

        flex-direction:
            column;

        gap:
            0;

        padding:
            18px;

        background:
            var(--ivory);

        box-shadow:
            var(--shadow);

    }


    .site-navigation.open {

        display:
            flex;

    }


    .site-navigation a {

        padding:
            14px;

    }


    .site-navigation a::after {

        display:
            none;

    }


    .book-hero {

        padding:
            82px 28px;

    }


    .book-hero-inner {

        gap:
            55px;

    }


    .book-cover {

        width:
            min(100%, 340px);

    }


    .book-hero-content {

        max-width:
            720px;

        margin:
            0 auto;

    }


    .book-hero-content h1 {

        font-size:
            clamp(4rem, 9vw, 6.5rem);

    }


    .book-tagline {

        max-width:
            620px;

        margin-right:
            auto;

        margin-left:
            auto;

    }


    .book-actions {

        justify-content:
            center;

    }


    .book-introduction {

        padding:
            95px 0;

    }


    .book-introduction-grid {

        gap:
            45px;

    }


    .book-introduction-title h2 {

        max-width:
            700px;

    }


    .book-introduction-content {

        max-width:
            720px;

    }


    .book-is-section,
    .reading-journey {

        padding:
            95px 0;

    }


    /* Keep the reading journey horizontal on iPad portrait
       so it matches the desktop layout. */

    .journey-path {

        flex-direction:
            row;

    }


    .journey-line {

        width:
            1px;

        height:
            auto;

    }


    .journey-step {

        min-width:
            0;

        padding:
            30px 24px;

    }


    .theme-card {

        min-height:
            285px;

        padding:
            32px;

    }


    .author-message-overlay {

        padding:
            90px 28px;

    }


    .journey-button-wrap {

        margin-top:
            42px;

    }

}

 
/* =========================================================
IPAD PORTRAIT READING JOURNEY
========================================================= */

@media (min-width: 600px) and (max-width: 800px) {

    /*
       Keep the reading journey horizontal on iPad portrait.
       This matches the wider tablet presentation instead of
       stacking the three reading choices vertically.
    */

    .reading-journey {
        padding: 95px 0;
    }

    .journey-path {
        flex-direction: row;
        align-items: stretch;
    }

    .journey-step {
        min-width: 0;
        padding: 30px 18px;
        gap: 14px;
    }

    .journey-step strong {
        font-size: 1.55rem;
    }

    .journey-step div span {
        font-size: 0.95rem;
    }

    .journey-line {
        width: 1px;
        height: auto;
        flex: 0 0 1px;
    }

    .journey-button-wrap {
        margin-top: 42px;
    }

}


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

@media (max-width: 800px) {


    .section-shell {

        width:
            min(100% - 30px, 1400px);

    }


    .header-inner {

        width:
            min(100% - 30px, 1500px);

        min-height:
            74px;

    }


    .header-button {

        display:
            none;

    }


    .mobile-menu-button {

        display:
            block;

        width:
            44px;

        height:
            44px;

        padding:
            0;

        border:
            0;

        background:
            transparent;

    }


    .mobile-menu-button span {

        display:
            block;

        width:
            24px;

        height:
            2px;

        margin:
            5px auto;

        background:
            var(--navy);

    }


    .site-navigation {

        position:
            absolute;

        top:
            100%;

        right:
            0;

        left:
            0;

        display:
            none;

        flex-direction:
            column;

        gap:
            0;

        padding:
            18px;

        background:
            var(--ivory);

        box-shadow:
            var(--shadow);

    }


    .site-navigation.open {

        display:
            flex;

    }


    .site-navigation a {

        padding:
            14px;

    }


    .site-navigation a::after {

        display:
            none;

    }


    .book-hero {

        padding:
            70px 20px;

    }


    .book-introduction,
    .book-is-section,
    .reading-journey {

        padding:
            80px 0;

    }


    .theme-grid {

        grid-template-columns:
            1fr;

    }


    .author-message {

        min-height:
            auto;

    }


    .author-message-overlay {

        padding:
            85px 20px;

    }


    .book-actions {

        flex-direction:
            column;

    }


    .book-actions .button {

        width:
            100%;

    }


    .footer-bottom-inner {

        flex-direction:
            column;

        justify-content:
            center;

        padding:
            18px 0;

        text-align:
            center;

    }

}