/* Color and Style Variables */
:root {
    --accent:        #2F4858;   /* primary accent */
    --accent-mid:    #2D527A;   /* hover states  */
    --accent-bg:     #EBF0F7;   /* section tints */
    --decorative:    #B8813A;   /* decorative   */
    --text:          #1A1A1A;
    --muted:         #5A5A5A;
    --border:        #D6D6D6;
    --white:         #FFFFFF;
    --hdr-h:         64px;
    --max-w:         1100px;
    --sec-pad:       88px;
    --h-pad:         2rem;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--hdr-h);   /* offset all anchor jumps */
    font-size: 17px;
}

body {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-size: 17px;
    line-height: 1.78;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a   { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p + p   { margin-top: 1.1em; }

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.18;
    color: var(--accent);
}
h1 { font-size: clamp(2rem,   3.8vw, 3rem);   font-weight: 700; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem,  1.7vw, 1.4rem);  font-weight: 700; }

/* Layout */
.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--h-pad);
}

/* Headings */
.sec-hd               { text-align: center; margin-bottom: 52px; }
.sec-hd h2            { margin-bottom: 12px; }
.sec-hd .rule         { width: 44px; height: 2px; background: var(--decorative); margin: 0 auto; }

/* Sticky Header */
#site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--hdr-h);
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
#site-header .wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hdr-wordmark {
    font-family: 'Playfair Display', serif;
    /*font-style: italic;*/
    font-weight: bold;
    font-size: 1rem;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
}
.site-nav             { display: flex; list-style: none; gap: 0; }
.site-nav a {
    display: block;
    padding: 0 1.1rem;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    transition: color 0.2s;
}
.site-nav a:hover     { color: var(--accent); text-decoration: none; }

/* The Book Section */
#book { padding: var(--sec-pad) 0; }

.book-hero {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 64px;
    align-items: start;
}

/* Left column */
.book-left            { display: flex; flex-direction: column; align-items: flex-start; }

.cover-img {
    width: 100%;
    box-shadow: 6px 10px 30px rgba(0,0,0,.22);
    border-radius: 2px;
}

.retailer-stack {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.btn-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border: 1.5px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-family: 'Source Serif 4', serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
}
.btn-order:hover     { background: var(--accent); color: var(--white); text-decoration: none; }
.btn-order.filled    { background: var(--accent); color: var(--white); }
.btn-order.filled:hover { background: var(--accent-mid); border-color: var(--accent-mid); }

/* Right column */
.book-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--decorative);
    margin-bottom: 10px;
}
.book-title           { margin-bottom: 6px; }
.book-subtitle {
    font-family: 'Playfair Display', serif;
    /*font-style: italic;*/
    font-size: clamp(.9rem, 1.3vw, 1.1rem);
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 10px;
}
.book-byline {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 26px;
}
.book-pull {
    border-left: 3px solid var(--decorative);
    padding-left: 18px;
    margin-bottom: 26px;
}
.book-pull p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--accent);
    line-height: 1.6;
}
.book-body p {
    font-size: 0.96rem;
    color: var(--text);
    line-height: 1.85;
}

/* Callout Banner */

#sign-up {
    background: var(--accent-bg);
    padding: calc(var(--sec-pad) / 3) 0;
    border: 1px inset black;
}

#sign-up .sec-hd {
    margin-bottom: 24px;
}

.sign-up-body p {
    font-size: 0.96rem;
    color: var(--text);
    line-height: 1.85;
    text-align: center;
    font-weight: bold;
}

.sign-up-body a {
    color: var(--decorative);
}

/* Book Contents Section */

#contents {
    padding-bottom: var(--sec-pad);
}

.contents-body h3 {
    padding: 2.5rem 0 1rem 0;
}

.contents-body p {
    font-size: 0.96rem;
    color: var(--text);
    line-height: 1.85;
}

/* Praise Section */
#praise {
    background: var(--accent-bg);
    padding: var(--sec-pad) 0;
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.quote-card {
    background: var(--white);
    border-top: 3px solid var(--accent);
    padding: 28px 26px 30px;
}
.quote-mark {
    font-family: 'Playfair Display', serif;
    font-size: 3.6rem;
    line-height: 0.5;
    color: var(--decorative);
    display: block;
    margin-bottom: 16px;
}
.quote-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 18px;
}
.quote-attr {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--accent);
}
.quote-affil {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.11em;
    color: var(--muted);
}

/* Events Section */
#events {
    background: var(--white);
    padding: var(--sec-pad) 0;
}

.events-blurb {
    max-width: 640px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 0.97rem;
    color: var(--muted);
    line-height: 1.82;
}
.events-blurb a {
    color: var(--accent);
    font-weight: 600;
    border-bottom: 1px solid var(--decorative);
    text-decoration: none;
}
.events-blurb a:hover { color: var(--decorative); }

/* Calendar Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 20px;
}

.event-card {
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    padding: 22px 22px 24px;
    transition: box-shadow 0.18s;
}
.event-card:hover { box-shadow: 0 4px 22px rgba(0,0,0,.08); }

.ev-date {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--decorative);
    margin-bottom: 7px;
}
.ev-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.3;
    margin-bottom: 8px;
}
.ev-location {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 0.83rem;
    color: var(--muted);
    line-height: 1.45;
    margin-bottom: 14px;
}
.ev-location svg { flex-shrink: 0; margin-top: 2px; }
.ev-link {
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    transition: color 0.18s, border-color 0.18s;
    text-decoration: none;
}
.ev-link:hover { color: var(--decorative); border-color: var(--decorative); }

.events-empty {
    color: var(--muted);
    font-style: italic;
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

/* Authors Section */
#authors {
    background: var(--accent-bg);
    padding: var(--sec-pad) 0;
}

.author-row {
    display: grid;
    grid-template-columns: 255px 1fr;
    gap: 52px;
    align-items: start;
}
.author-row + .author-row {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
}

.author-photo {
    width: 100%;
    border-radius: 2px;
    box-shadow: 4px 6px 24px rgba(0,0,0,.13);
}

.author-name       { margin-bottom: 5px; }
.author-credential {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--decorative);
    margin-bottom: 20px;
}
.author-bio p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.85;
}

/* Footer */
#site-footer {
    background: var(--accent);
    padding: 36px 0;
}
#site-footer .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,.6);
}
.social-links         { display: flex; gap: 12px; align-items: center; }
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    transition: background 0.18s, border-color 0.18s;
}
.social-links a:hover {
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.65);
    text-decoration: none;
}
.social-links svg { fill: currentColor; }

/* Responsive Design Elements */
@media (max-width: 880px) {
    :root { --sec-pad: 64px; }

    .book-hero {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .book-left  { align-items: center; }
    .cover-img  { max-width: 250px; }
    .retailer-stack { max-width: 250px; }

    .quotes-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .author-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .author-photo { max-width: 210px; margin: 0 auto; }
}

@media (max-width: 560px) {
    :root { --sec-pad: 48px; --h-pad: 1.2rem; }
    .hdr-wordmark          { display: none; }
    .site-nav a            { padding: 0 .65rem; font-size: 0.68rem; }
}