/* ==========================================================================
   gloryofthecross.com — the book's landing page
   Palette sampled from the cover: leather brown #4C2918 and foil gold
   #E2A811, with the workbook's parchment for reading sections. Type matches
   the study app (self-hosted, /fonts/fonts.css).
   ========================================================================== */

:root {
    --leather: #4C2918;
    --leather-deep: #2F190E;
    --leather-soft: #5E3520;
    --gold: #E2A811;
    --gold-soft: #F0C866;
    --gold-dim: rgba(226, 168, 17, 0.55);
    --parchment: #F7F3E9;
    --parchment-deep: #EFE7D4;
    --ink: #1E1B15;
    --ink-soft: #4A433A;
    --ink-faint: #847C6D;
    --display: 'Cormorant Garamond', Georgia, serif;
    --serif: Spectral, Georgia, serif;
    --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--parchment);
    color: var(--ink);
    font: 400 1.0625rem/1.7 var(--serif);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 46rem; }

.kicker {
    font: 600 0.75rem/1 var(--sans);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #9A6B12;
    margin-bottom: 0.9rem;
}
.h2 {
    font: 700 clamp(2rem, 4.2vw, 2.9rem)/1.08 var(--display);
    letter-spacing: 0.01em;
    color: var(--ink);
}
.section-head { max-width: 40rem; margin: 0 auto 3rem; text-align: center; }
.section-head p:not(.kicker) { margin-top: 0.9rem; color: var(--ink-soft); }
.section-head.on-dark .kicker { color: var(--gold); }
.section-head.on-dark .h2 { color: var(--parchment); }
.section-head.on-dark p:not(.kicker) { color: rgba(247, 243, 233, 0.75); }

/* The cover's dotted rule: a gold line riding on a row of dots, curled ends. */
.dotrule {
    height: 9px;
    width: min(100%, 26rem);
    border-top: 2px solid var(--gold);
    background: radial-gradient(circle, var(--gold) 1.3px, transparent 1.8px) 0 5px / 7px 7px repeat-x;
    position: relative;
}
.dotrule::before, .dotrule::after {
    content: ''; position: absolute; top: -6px; width: 6px; height: 12px;
    border: 2px solid var(--gold); border-radius: 50%;
}
.dotrule::before { left: -5px; border-right-color: transparent; }
.dotrule::after { right: -5px; border-left-color: transparent; }

/* The cover's segmented gold border, drawn around leather sections. */
.frame {
    position: absolute; inset: 1rem; pointer-events: none;
    border: 3px solid var(--gold-dim);
    outline: 1px solid rgba(226, 168, 17, 0.25);
    outline-offset: 6px;
    border-radius: 2px;
}
.frame::before {
    content: ''; position: absolute; inset: 6px;
    border: 5px solid transparent;
    border-image: repeating-linear-gradient(90deg, var(--gold-dim) 0 18px, transparent 18px 30px) 5;
    opacity: 0.55;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.95rem 1.7rem;
    border-radius: 999px;
    font: 600 0.85rem/1 var(--sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; }
.btn-gold { background: var(--gold); color: var(--leather-deep); box-shadow: 0 6px 18px -6px rgba(226, 168, 17, 0.6); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { color: var(--parchment); border: 1.5px solid rgba(240, 200, 102, 0.6); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn-leather { background: var(--leather); color: var(--gold-soft); }
.btn-leather:hover { background: var(--leather-soft); }
.btn-sm { padding: 0.65rem 1.1rem; font-size: 0.72rem; }

/* ---------- Header ---------- */
.top {
    position: sticky; top: 0; z-index: 20;
    background: rgba(47, 25, 14, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 168, 17, 0.25);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4rem; }
.top-mark img { height: 2.6rem; width: auto; }
.top-nav { display: flex; gap: 1.75rem; }
.top-nav a {
    font: 500 0.78rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(247, 243, 233, 0.78); text-decoration: none;
}
.top-nav a:hover { color: var(--gold-soft); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(ellipse 70% 60% at 72% 45%, rgba(226, 168, 17, 0.14), transparent 70%),
        radial-gradient(ellipse 120% 90% at 50% 40%, var(--leather) 40%, var(--leather-deep) 100%);
    color: var(--parchment);
    padding: 5rem 0 5.5rem;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero-title img { width: min(100%, 28.75rem); }
.hero-copy .dotrule { margin: 1.6rem 0; }
.hero-sub {
    font: 500 clamp(1.05rem, 2vw, 1.3rem)/1.35 var(--sans);
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.hero-author { font: 600 1.6rem/1 var(--display); color: var(--gold-soft); letter-spacing: 0.02em; }
.hero-lede { margin-top: 1.6rem; max-width: 31rem; font-size: 1.15rem; color: rgba(247, 243, 233, 0.86); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-note { margin-top: 1rem; font: 500 0.72rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(247, 243, 233, 0.5); }
.hero-book { display: flex; justify-content: center; }
.hero-book img {
    width: min(100%, 27rem);
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
    animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Refrain ---------- */
.refrain { padding: 6rem 0; text-align: center; background: var(--parchment); }
.refrain-quote p {
    font: italic 500 clamp(1.7rem, 3.6vw, 2.5rem)/1.3 var(--display);
    color: var(--leather);
}
.refrain-body { margin-top: 1.6rem; color: var(--ink-soft); font-size: 1.1rem; }
.refrain .kicker::after {
    content: ''; display: block; width: 3rem; height: 2px; margin: 0.9rem auto 0; background: var(--gold);
}

/* ---------- About the book ---------- */
.book { padding: 6rem 0; background: var(--parchment-deep); border-top: 1px solid rgba(76, 41, 24, 0.08); }
.book-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: center; }
.book-cover img {
    border-radius: 3px 8px 8px 3px;
    box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 25px 45px -18px rgba(47, 25, 14, 0.55), 0 8px 16px -8px rgba(47, 25, 14, 0.4);
}
.book-copy .h2 { margin-bottom: 1.3rem; }
.book-copy > p { color: var(--ink-soft); margin-bottom: 1rem; }
.book-points { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 0.75rem; }
.book-points li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); }
.book-points li::before {
    content: ''; position: absolute; left: 0; top: 0.62em; width: 0.55rem; height: 0.55rem;
    background: var(--gold); transform: rotate(45deg);
}
.book-points b { color: var(--ink); font-weight: 600; }

/* ---------- Contents ---------- */
.journey { position: relative; overflow: hidden; padding: 6rem 0; background: var(--leather-deep); color: var(--parchment); }
.journey-map {
    position: absolute; right: -6%; top: -4%; bottom: -4%; width: 55%;
    background: url('/img/map-gold.webp') center / contain no-repeat;
    opacity: 0.09;
}
.parts { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.part {
    background: rgba(76, 41, 24, 0.72);
    border: 1px solid rgba(226, 168, 17, 0.28);
    border-radius: 6px;
    padding: 1.6rem 1.5rem 1.4rem;
}
.part-n { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.part-t { margin: 0.55rem 0 1rem; font: 700 1.45rem/1.15 var(--display); color: var(--parchment); }
.part-list { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.part-list li { display: grid; grid-template-columns: 1.7rem 1fr; gap: 0.4rem; align-items: baseline; }
.ch-n { font: 600 0.8rem/1 var(--sans); color: var(--gold); text-align: right; padding-right: 0.3rem; }
.ch-t { font-size: 0.98rem; line-height: 1.35; color: rgba(247, 243, 233, 0.92); }
.ch-t em { display: block; font: italic 400 0.85rem/1.3 var(--serif); color: rgba(240, 200, 102, 0.75); margin-top: 0.15rem; }

/* ---------- Praise ---------- */
.praise { padding: 6rem 0; background: var(--parchment); }
.praise .h2 { font-style: italic; font-weight: 600; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.quote {
    position: relative;
    background: #FFFDF7;
    border: 1px solid rgba(76, 41, 24, 0.12);
    border-radius: 8px;
    padding: 3.1rem 2rem 1.8rem;
    box-shadow: 0 14px 30px -22px rgba(47, 25, 14, 0.45);
}
.quote::before {
    content: '“'; position: absolute; top: 0.35rem; left: 1.6rem;
    font: 700 4.5rem/1 var(--display); color: var(--gold);
}
.quote-wide { grid-column: 1 / -1; }
.quote blockquote p { color: var(--ink-soft); font-size: 1.02rem; }
.quote-wide blockquote p { font-size: 1.12rem; }
.quote figcaption {
    margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid rgba(76, 41, 24, 0.12);
    font: 400 0.82rem/1.5 var(--sans); color: var(--ink-faint);
}
.quote figcaption b { display: block; font: 600 1.15rem/1.3 var(--display); color: var(--leather); margin-bottom: 0.15rem; }

/* ---------- Study ---------- */
.study {
    padding: 6rem 0; color: var(--parchment);
    background: radial-gradient(ellipse 90% 80% at 20% 30%, var(--leather-soft), var(--leather) 45%, var(--leather-deep) 100%);
}
.study-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; }
.study .kicker { color: var(--gold); }
.study .h2 { color: var(--parchment); margin-bottom: 1.2rem; }
.study-copy > p { color: rgba(247, 243, 233, 0.82); }
.study-points { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.7rem; }
.study-points li { position: relative; padding-left: 1.6rem; color: rgba(247, 243, 233, 0.88); }
.study-points li::before {
    content: ''; position: absolute; left: 0; top: 0.62em; width: 0.55rem; height: 0.55rem;
    border: 1.5px solid var(--gold); transform: rotate(45deg);
}
.study-shots { position: relative; padding-bottom: 2.5rem; }
.shot-wide {
    border-radius: 10px; border: 1px solid rgba(226, 168, 17, 0.3);
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.6);
}
.shot-phone {
    position: absolute; right: -0.5rem; bottom: 0; width: 30%;
    border-radius: 18px; border: 5px solid #1a0f08;
    box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.7);
}

/* ---------- Author ---------- */
.author { padding: 6rem 0; background: var(--parchment-deep); }
.author-in { display: grid; grid-template-columns: auto 1fr; gap: 3.5rem; align-items: center; max-width: 58rem; }
.author-photo { position: relative; width: 15rem; }
.author-photo img {
    width: 15rem; height: 15rem; object-fit: cover; object-position: 50% 20%;
    border-radius: 50%;
    border: 4px solid var(--parchment);
    box-shadow: 0 0 0 2px var(--gold), 0 20px 40px -18px rgba(47, 25, 14, 0.6);
}
/* the cover's dotted ring, echoed around the portrait */
.author-photo::after {
    content: ''; position: absolute; inset: -14px; border-radius: 50%;
    border: 3px dotted rgba(226, 168, 17, 0.7);
    pointer-events: none;
}
.author .h2 { margin-bottom: 1.3rem; }
.author-copy p:not(.kicker) { color: var(--ink-soft); margin-bottom: 1rem; }

/* ---------- Closing ---------- */
.closing { position: relative; overflow: hidden; padding: 5.5rem 0; background: var(--leather); color: var(--parchment); }
.closing-in { position: relative; display: grid; grid-template-columns: 14rem 1fr; gap: 3rem; align-items: center; max-width: 52rem; }
.closing-book { filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.5)); }
.closing-title { font: 700 clamp(2.4rem, 5vw, 3.4rem)/1 var(--display); color: var(--gold); }
.closing-body { margin-top: 0.9rem; font-size: 1.15rem; color: rgba(247, 243, 233, 0.85); }

/* ---------- Footer ---------- */
.foot { background: #1A0F08; color: rgba(247, 243, 233, 0.6); padding: 2.5rem 0; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.foot-press img { width: 5.5rem; filter: invert(1) sepia(0.4) brightness(0.95); opacity: 0.8; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot-nav a { font: 500 0.78rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.foot-nav a:hover { color: var(--gold-soft); }
.foot-legal { width: 100%; font: 400 0.78rem/1.5 var(--sans); color: rgba(247, 243, 233, 0.4); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .top-nav { display: none; }
    .hero { padding: 3rem 0 4rem; }
    .hero-in { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-title img, .hero-copy .dotrule, .hero-lede { margin-left: auto; margin-right: auto; }
    .hero-ctas { justify-content: center; }
    .hero-book { order: -1; }
    .hero-book img { width: min(62%, 17rem); }
    .book-in, .study-in { grid-template-columns: 1fr; gap: 2.5rem; }
    .book-cover { max-width: 17rem; margin: 0 auto; }
    .parts { grid-template-columns: 1fr 1fr; }
    .quotes { grid-template-columns: 1fr; }
    .closing-in { grid-template-columns: 1fr; text-align: center; }
    .author-in { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 2.5rem; }
    .closing-book { width: 10rem; margin: 0 auto; }
    .closing .hero-ctas { justify-content: center; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .parts { grid-template-columns: 1fr; }
    .refrain, .book, .journey, .praise, .study, .author { padding: 4.5rem 0; }
    .frame { inset: 0.6rem; }
    .btn { width: 100%; }
    .top .btn { width: auto; }
    .quote { padding: 2.8rem 1.4rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-book img { animation: none; }
}
