/* ═══════════════════════════════════════════════════════════
   MARKED — The Divine Council of Twelve
   Premium Author Website · Book Theme Stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ---------- 1. TOKENS ---------- */
:root {
    /* Palette drawn from the book cover */
    --rose:        #dca8a8;
    --rose-soft:   #f0d6d3;
    --blush:       #f9ece8;
    --cream:       #fdf7f0;
    --paper:       #fffdf9;
    --gold:        #b8860b;
    --gold-bright: #d9a521;
    --gold-deep:   #8c5e10;
    --plum:        #3a2438;
    --ink:         #4a3550;
    --ink-soft:    #7a6584;

    --font-display: 'Playfair Display', serif;
    --font-body:    'EB Garamond', serif;
    --font-accent:  'Cormorant Garamond', serif;

    --shadow-soft:  0 18px 50px rgba(58, 36, 56, .12);
    --shadow-lift:  0 30px 70px rgba(58, 36, 56, .22);
    --radius:       14px;

    --ease-out:     cubic-bezier(.22, 1, .36, 1);
    --container:    1180px;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    font-size: 1.135rem;
    line-height: 1.75;
    color: var(--ink);
    background:
        radial-gradient(1200px 800px at 85% -10%, rgba(217, 165, 33, .10), transparent 60%),
        radial-gradient(1000px 700px at -10% 30%, rgba(220, 168, 168, .18), transparent 55%),
        linear-gradient(var(--cream), var(--blush) 60%, var(--cream));
    background-attachment: fixed;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(var(--container), 92%); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); color: var(--plum); line-height: 1.18; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
h2 em { font-style: italic; color: var(--gold-deep); }

::selection { background: var(--gold-bright); color: #fff; }

/* Subtle paper grain over everything */
body::after {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- 3. PRELOADER ---------- */
.preloader {
    position: fixed; inset: 0;
    z-index: 9999;
    display: grid; place-items: center;
    background:
        radial-gradient(700px 500px at 50% 20%, rgba(217, 165, 33, .22), transparent 65%),
        linear-gradient(160deg, #f6dfd9, #efc9c4 55%, #e7b8b4);
    transition: opacity .8s var(--ease-out), visibility .8s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-inner { text-align: center; }

.preloader-star {
    font-size: 2.6rem;
    color: var(--gold-bright);
    filter: drop-shadow(0 0 18px rgba(217, 165, 33, .8));
    animation: starPulse 1.6s ease-in-out infinite;
}
@keyframes starPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: .85; }
    50%      { transform: scale(1.25) rotate(45deg); opacity: 1; }
}

.preloader-book {
    position: relative;
    width: 74px; height: 52px;
    margin: 26px auto 18px;
    perspective: 500px;
}
.preloader-book .page {
    position: absolute; inset: 0;
    background: var(--paper);
    border: 1px solid rgba(140, 94, 16, .35);
    border-radius: 3px 6px 6px 3px;
    transform-origin: left center;
    animation: pageFlip 1.8s var(--ease-out) infinite;
}
.preloader-book .page:nth-child(2) { animation-delay: .25s; }
.preloader-book .page:nth-child(3) { animation-delay: .5s; }
@keyframes pageFlip {
    0%             { transform: rotateY(0deg);    opacity: 1; }
    45%, 100%      { transform: rotateY(-160deg); opacity: .15; }
}

.preloader-text {
    font-family: var(--font-display);
    font-size: 1.9rem;
    letter-spacing: .35em;
    color: var(--plum);
    text-indent: .35em;
}
.preloader-sub {
    font-family: var(--font-accent);
    font-size: .95rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold-deep);
    text-indent: .3em;
}

/* ---------- 4. PARTICLES ---------- */
#particle-canvas {
    position: fixed; inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ---------- 5. BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    padding: .85em 1.9em;
    font-family: var(--font-accent);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 50px;
    border: 1.5px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s, color .35s;
}
.btn::after { /* sheen sweep */
    content: "";
    position: absolute; top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-20deg);
    transition: left .6s var(--ease-out);
}
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-3px); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
    color: #fff;
    box-shadow: 0 10px 26px rgba(184, 134, 11, .35);
}
.btn-gold:hover { box-shadow: 0 16px 36px rgba(184, 134, 11, .45); }

.btn-outline {
    border-color: var(--gold);
    color: var(--gold-deep);
    background: rgba(255, 253, 249, .5);
    backdrop-filter: blur(4px);
}
.btn-outline:hover { background: var(--gold); color: #fff; }

.btn-full { width: 100%; justify-content: center; }

/* ---------- 6. HEADER ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: padding .4s var(--ease-out), background .4s, box-shadow .4s;
}
.site-header.scrolled {
    padding: 8px 0;
    background: rgba(253, 247, 240, .88);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(58, 36, 56, .10);
    border-bottom: 1px solid rgba(184, 134, 11, .18);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--gold-bright), var(--gold-deep));
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 6px 18px rgba(184, 134, 11, .4);
    animation: starGlow 4s ease-in-out infinite;
}
@keyframes starGlow {
    0%, 100% { box-shadow: 0 6px 18px rgba(184,134,11,.35); }
    50%      { box-shadow: 0 6px 28px rgba(217,165,33,.75); }
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .14em; color: var(--plum); }
.brand-text small  { font-family: var(--font-accent); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }

.main-nav ul { display: flex; gap: 34px; }
.nav-link {
    font-family: var(--font-accent);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--ink);
    position: relative;
    padding: 6px 0;
    transition: color .3s;
}
.nav-link::after {
    content: "";
    position: absolute; left: 50%; bottom: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
    transition: width .35s var(--ease-out), left .35s var(--ease-out);
    border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--gold-deep); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; left: 0; }

.nav-cta { white-space: nowrap; }

/* Hamburger */
.nav-toggle {
    display: none;
    background: none; border: none;
    width: 42px; height: 36px;
    position: relative;
    cursor: pointer;
}
.nav-toggle span {
    position: absolute; left: 8px; right: 8px;
    height: 2px;
    background: var(--plum);
    border-radius: 2px;
    transition: transform .35s var(--ease-out), opacity .25s;
}
.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 17px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(253, 247, 240, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(184, 134, 11, .25);
    box-shadow: var(--shadow-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s var(--ease-out);
}
.mobile-nav.open { max-height: 520px; }
.mobile-nav ul { padding: 18px 6% 26px; }
.mobile-nav li { border-bottom: 1px dashed rgba(184, 134, 11, .25); }
.mobile-nav li:last-child { border: none; padding-top: 16px; }
.mobile-nav a {
    display: block;
    padding: 13px 4px;
    font-family: var(--font-accent);
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--plum);
}
/* Keep the pill button shape inside the menu (don't stretch as a block) */
.mobile-cta .btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
}

/* ---------- 7. HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh; /* keep fixed height on mobile URL-bar shrink/grow */
    display: flex;
    align-items: center;
    padding: 150px 0 90px;
    overflow: hidden;
    z-index: 2;
}
.hero-glow {
    position: absolute;
    top: -20%; right: -10%;
    width: 70vw; height: 70vw;
    background: radial-gradient(circle, rgba(217,165,33,.20), rgba(220,168,168,.25) 45%, transparent 70%);
    border-radius: 50%;
    animation: glowDrift 14s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes glowDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-6vw, 5vh) scale(1.12); }
}
.hero-rays {
    position: absolute;
    top: -30%; left: 50%;
    width: 240vmax; height: 140vh;
    transform: translateX(-50%);
    background: repeating-conic-gradient(from 0deg at 50% 0%,
        rgba(255, 244, 214, .0) 0deg 8deg,
        rgba(255, 240, 200, .35) 8deg 10deg);
    opacity: .25;
    mask-image: linear-gradient(#000, transparent 65%);
    -webkit-mask-image: linear-gradient(#000, transparent 65%);
    animation: raysSway 24s linear infinite;
    pointer-events: none;
}
@keyframes raysSway {
    from { transform: translateX(-50%) rotate(-3deg); }
    to   { transform: translateX(-50%) rotate(3deg); }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    font-family: var(--font-accent);
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 18px;
}
.eyebrow i { animation: starPulse 3.5s ease-in-out infinite; }

.hero-title { margin-bottom: 8px; }
.hero-title .line-1 {
    display: block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(3.4rem, 9vw, 6.4rem);
    letter-spacing: .06em;
    line-height: 1;
    background: linear-gradient(115deg, var(--gold-deep) 5%, var(--gold-bright) 40%, #f0c454 50%, var(--gold-bright) 60%, var(--gold-deep) 95%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: goldShimmer 5s ease-in-out infinite;
    filter: drop-shadow(0 4px 14px rgba(184, 134, 11, .25));
}
@keyframes goldShimmer {
    0%, 100% { background-position: 0% 0; }
    50%      { background-position: 100% 0; }
}
.hero-title .line-2 {
    display: block;
    font-family: var(--font-accent);
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.15rem, 2.4vw, 1.7rem);
    letter-spacing: .22em;
    color: var(--plum);
    margin-top: 12px;
}

.hero-author {
    font-family: var(--font-accent);
    font-size: 1.15rem;
    letter-spacing: .12em;
    color: var(--ink-soft);
    margin: 10px 0 18px;
}
.hero-author strong { color: var(--gold-deep); }

.hero-text { max-width: 54ch; margin-bottom: 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

.hero-meta { display: flex; gap: 44px; }
.hero-meta > div { display: flex; flex-direction: column; }
.meta-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-deep);
    line-height: 1.1;
}
.meta-label {
    font-family: var(--font-accent);
    font-size: .85rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* Floating book */
.hero-visual { position: relative; display: grid; place-items: center; }
.book-float {
    position: relative;
    width: min(380px, 78%);
    animation: bookFloat 6s ease-in-out infinite;
    will-change: transform;
}
@keyframes bookFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%      { transform: translateY(-24px) rotate(1.2deg); }
}
.book-halo {
    position: absolute; inset: -14%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 236, 190, .85), rgba(217, 165, 33, .25) 45%, transparent 70%);
    animation: haloPulse 5s ease-in-out infinite;
    z-index: -1;
}
@keyframes haloPulse {
    0%, 100% { transform: scale(1); opacity: .8; }
    50%      { transform: scale(1.08); opacity: 1; }
}
.book-3d {
    position: relative;
    border-radius: 6px 14px 14px 6px;
    transform-style: preserve-3d;
    transition: transform .2s ease-out;
    box-shadow: var(--shadow-lift);
}
.book-3d img {
    border-radius: 6px 14px 14px 6px;
    box-shadow: inset 8px 0 18px rgba(255,255,255,.28);
}
.book-spine {
    position: absolute;
    top: 1.5%; bottom: 1.5%; left: 0;
    width: 12px;
    border-radius: 6px 0 0 6px;
    background: linear-gradient(90deg, rgba(58,36,56,.5), rgba(255,255,255,.15));
    mix-blend-mode: multiply;
    opacity: .55;
}
.book-shadow {
    width: 78%;
    height: 26px;
    margin: 34px auto 0;
    background: radial-gradient(ellipse at center, rgba(58,36,56,.35), transparent 70%);
    border-radius: 50%;
    animation: shadowBreath 6s ease-in-out infinite;
}
@keyframes shadowBreath {
    0%, 100% { transform: scaleX(1); opacity: .8; }
    50%      { transform: scaleX(.75); opacity: .45; }
}

.ornament {
    position: absolute;
    color: var(--gold-bright);
    filter: drop-shadow(0 0 10px rgba(217,165,33,.7));
    animation: ornamentFloat 7s ease-in-out infinite;
}
.star-1 { top: 4%;  right: 10%; font-size: 1.6rem; animation-delay: 0s; }
.star-2 { bottom: 16%; left: 4%;  font-size: 1.1rem; animation-delay: 1.4s; }
.star-3 { top: 40%; right: -2%; font-size: .85rem; animation-delay: 2.6s; }
@keyframes ornamentFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: .75; }
    50%      { transform: translateY(-16px) rotate(60deg); opacity: 1; }
}

.scroll-hint {
    position: absolute;
    bottom: 26px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: var(--gold-deep);
    font-family: var(--font-accent);
    font-size: .85rem;
    letter-spacing: .25em;
    opacity: .85;
}
.scroll-hint .quill {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    animation: quillBounce 2.4s ease-in-out infinite;
}
@keyframes quillBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(9px); }
}

/* ---------- 8. SECTIONS (shared) ---------- */
.section { position: relative; padding: 110px 0; z-index: 2; }

.section-ornament {
    display: flex; align-items: center; justify-content: center;
    gap: 18px;
    margin-bottom: 60px;
    color: var(--gold);
    font-size: .95rem;
}
.section-ornament span {
    height: 1px; width: min(140px, 22vw);
    background: linear-gradient(90deg, transparent, var(--gold));
}
.section-ornament span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-head .eyebrow { justify-content: center; }
.section-sub { color: var(--ink-soft); margin-top: 14px; font-size: 1.1rem; }

/* ---------- 9. ABOUT THE BOOK ---------- */
.about-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 70px;
    align-items: center;
}

.paper-frame {
    position: relative;
    background: var(--paper);
    padding: 22px;
    border-radius: 8px;
    box-shadow: var(--shadow-lift);
    border: 1px solid rgba(184, 134, 11, .2);
    transform-style: preserve-3d;
    transition: transform .25s ease-out;
}
/* taped corner flourish */
.paper-frame::before {
    content: "";
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    width: 110px; height: 26px;
    background: rgba(217, 165, 33, .18);
    border-left: 1px dashed rgba(184,134,11,.3);
    border-right: 1px dashed rgba(184,134,11,.3);
}
.about-visual { position: relative; }
.ribbon-badge {
    position: absolute;
    bottom: -22px; right: -14px;
    width: 106px; height: 106px;
    display: grid; place-content: center;
    gap: 2px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--gold-bright), var(--gold-deep));
    color: #fff;
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 14px 30px rgba(140, 94, 16, .45);
    animation: badgeSpinPulse 8s linear infinite;
}
@keyframes badgeSpinPulse {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    50%      { transform: rotate(-8deg) scale(1.07); }
}

.drop-cap::first-letter {
    float: left;
    font-family: var(--font-display);
    font-size: 4.4em;
    font-weight: 800;
    line-height: .82;
    padding: 6px 12px 0 0;
    color: var(--gold-deep);
}

.lead { font-size: 1.22rem; color: var(--plum); }

.feature-list { margin: 26px 0 34px; display: grid; gap: 12px; }
.feature-list li {
    display: flex; gap: 12px; align-items: baseline;
    font-family: var(--font-accent);
    font-size: 1.1rem;
    font-weight: 500;
}
.feature-list i { color: var(--gold); }

.book-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding-top: 26px;
    border-top: 1px dashed rgba(184, 134, 11, .4);
}
.fact h5 {
    font-family: var(--font-accent);
    font-size: .82rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 4px;
}
.fact p { font-size: .98rem; line-height: 1.5; }
.fact a { color: var(--gold-deep); border-bottom: 1px solid rgba(184,134,11,.4); transition: color .3s; }
.fact a:hover { color: var(--plum); }

/* ---------- 10. QUOTE BAND ---------- */
.quote-band {
    position: relative;
    padding: 90px 0;
    text-align: center;
    background:
        linear-gradient(rgba(58, 36, 56, .82), rgba(58, 36, 56, .88)),
        url("../images/e-book-01.jpg") center 30% / cover no-repeat fixed;
    z-index: 2;
}
.quote-band .quote-icon { font-size: 2rem; color: var(--gold-bright); margin-bottom: 20px; }
.quote-band blockquote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    line-height: 1.5;
    color: var(--cream);
    max-width: 820px;
    margin: 0 auto 18px;
}
.quote-band cite {
    font-family: var(--font-accent);
    font-style: normal;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-size: .88rem;
    color: var(--gold-bright);
}

/* ---------- 11. ABOUT THE AUTHOR ---------- */
.author-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: center;
}

.author-signature {
    margin-top: 30px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 2rem;
    color: var(--gold-deep);
    transform: rotate(-3deg);
    opacity: .9;
    position: relative;
    display: inline-block;
}
.author-signature::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.author-portrait {
    position: relative;
    width: min(380px, 80%);
    margin-inline: auto;
}
.portrait-ring {
    position: absolute; inset: -18px;
    border: 1.5px dashed rgba(184, 134, 11, .55);
    border-radius: 240px 240px 34px 34px;
    pointer-events: none;
    animation: ringBreath 7s ease-in-out infinite;
}
@keyframes ringBreath {
    0%, 100% { transform: scale(1);    opacity: .8; }
    50%      { transform: scale(1.025); opacity: 1; }
}

.author-portrait img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 16%;
    border: 7px solid var(--paper);
    outline: 1.5px solid rgba(184, 134, 11, .45);
    outline-offset: -1px;
    border-radius: 230px 230px 26px 26px;
    box-shadow: var(--shadow-lift), 0 0 0 1px rgba(184, 134, 11, .12);
    animation: bookFloat 7s ease-in-out infinite;
}
.portrait-caption {
    position: absolute;
    bottom: -24px; left: 50%;
    transform: translateX(-50%);
    background: var(--paper);
    border: 1px solid rgba(184, 134, 11, .3);
    border-radius: 50px;
    padding: 10px 28px;
    text-align: center;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
}
.portrait-caption span {
    font-family: var(--font-accent);
    font-size: .72rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.portrait-caption strong {
    font-family: var(--font-display);
    letter-spacing: .18em;
    color: var(--gold-deep);
}

/* ---------- 12. REVIEWS ---------- */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}
.review-card {
    background: var(--paper);
    border: 1px solid rgba(184, 134, 11, .18);
    border-radius: var(--radius);
    padding: 36px 30px 30px;
    box-shadow: var(--shadow-soft);
    position: relative;
    display: flex; flex-direction: column; gap: 18px;
    transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.review-card::before {
    content: "”";
    position: absolute;
    top: 8px; right: 22px;
    font-family: var(--font-display);
    font-size: 5.4rem;
    line-height: 1;
    color: rgba(217, 165, 33, .18);
}
.review-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lift); }
.review-card.featured {
    background: linear-gradient(160deg, #fffdf9, #fbf1e2);
    border-color: rgba(184, 134, 11, .45);
    transform: scale(1.03);
}
.review-card.featured:hover { transform: scale(1.03) translateY(-10px); }

.stars { color: var(--gold-bright); letter-spacing: 3px; font-size: .95rem; }
.review-card blockquote {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.14rem;
    line-height: 1.65;
    color: var(--plum);
    flex: 1;
}
.review-card figcaption { display: flex; align-items: center; gap: 14px; }
.reviewer-mark {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--rose-soft);
    color: var(--gold-deep);
    border: 1px solid rgba(184,134,11,.3);
}
.review-card figcaption strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--plum); }
.review-card figcaption em { font-style: normal; font-size: .88rem; color: var(--ink-soft); letter-spacing: .06em; }

/* ---------- 13. GET A BOOK ---------- */
.get-book {
    background:
        radial-gradient(900px 500px at 50% 0%, rgba(217, 165, 33, .10), transparent 60%);
}
.format-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.format-card {
    background: var(--paper);
    border: 1px solid rgba(184, 134, 11, .18);
    border-radius: var(--radius);
    padding: 46px 30px 38px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s;
}
.format-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(184, 134, 11, .5);
}
.format-icon {
    width: 82px; height: 82px;
    margin: 0 auto 22px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: 1.9rem;
    color: var(--gold-deep);
    background: radial-gradient(circle at 30% 25%, #fff6e3, var(--rose-soft));
    border: 1px solid rgba(184, 134, 11, .3);
    box-shadow: inset 0 -6px 14px rgba(184,134,11,.12), 0 10px 24px rgba(184,134,11,.15);
    animation: iconBob 5s ease-in-out infinite;
}
@keyframes iconBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.format-card h3 { font-size: 1.5rem; margin-bottom: 10px; letter-spacing: .04em; }
.format-desc { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 26px; }

.popular-tag {
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: #fff;
    font-family: var(--font-accent);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 7px 20px;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(140, 94, 16, .4);
    white-space: nowrap;
}
.format-card.popular { border-color: rgba(184, 134, 11, .5); }

/* ---------- 14. CONTACT ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
    align-items: start;
}

.contact-lines { margin-top: 34px; display: grid; gap: 22px; }
.contact-lines li { display: flex; gap: 16px; align-items: flex-start; }
.contact-lines li > span {
    flex: 0 0 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid rgba(184, 134, 11, .35);
    color: var(--gold-deep);
    font-size: 1.05rem;
    box-shadow: var(--shadow-soft);
}
.contact-lines strong { display: block; font-family: var(--font-display); font-size: 1.06rem; color: var(--plum); }
.contact-lines a, .contact-lines div { color: var(--ink-soft); font-size: 1.02rem; }
.contact-lines a:hover { color: var(--gold-deep); }

.contact-form-wrap {
    background: var(--paper);
    border: 1px solid rgba(184, 134, 11, .22);
    border-radius: var(--radius);
    padding: 44px 40px;
    box-shadow: var(--shadow-lift);
    position: relative;
}
/* bookmark ribbon on the form "book" */
.contact-form-wrap::before {
    content: "";
    position: absolute;
    top: -8px; right: 36px;
    width: 26px; height: 62px;
    background: linear-gradient(var(--gold-bright), var(--gold-deep));
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
    box-shadow: 0 6px 14px rgba(140, 94, 16, .35);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 20px; }
.form-field label {
    display: block;
    font-family: var(--font-accent);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid rgba(184, 134, 11, .25);
    border-radius: 8px;
    padding: 13px 16px;
    transition: border-color .3s, box-shadow .3s, background .3s;
    appearance: none;
}
.form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238c5e10' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(217, 165, 33, .15);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #b9a8c2; }

.form-status {
    margin-top: 14px;
    text-align: center;
    font-family: var(--font-accent);
    font-weight: 600;
    letter-spacing: .05em;
    min-height: 1.4em;
}
.form-status.ok  { color: #2e7d32; }
.form-status.err { color: #b3402f; }

/* ---------- 15. FOOTER ---------- */
.site-footer {
    position: relative;
    z-index: 2;
    background:
        radial-gradient(800px 400px at 80% 0%, rgba(217,165,33,.12), transparent 60%),
        linear-gradient(170deg, #34202f, #241522);
    color: #d9c8d6;
    padding: 0 0 30px;
}
.footer-ornament {
    display: flex; align-items: center; justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    color: var(--gold-bright);
}
.footer-ornament .line { height: 1px; width: min(220px, 30vw); background: linear-gradient(90deg, transparent, rgba(217,165,33,.7)); }
.footer-ornament .line:last-child { background: linear-gradient(90deg, rgba(217,165,33,.7), transparent); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr 1fr;
    gap: 44px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(217, 165, 33, .2);
}
.site-footer .brand-text strong { color: var(--cream); }
.footer-blurb {
    margin-top: 18px;
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.05rem;
    color: #c5aec2;
    max-width: 34ch;
}
.footer-col h4 {
    font-family: var(--font-accent);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { transition: color .3s, padding-left .3s; }
.footer-col ul a:hover { color: var(--gold-bright); padding-left: 6px; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact i { color: var(--gold-bright); }

.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(217, 165, 33, .4);
    color: var(--gold-bright);
    transition: background .35s, color .35s, transform .35s var(--ease-out);
}
.socials a:hover {
    background: linear-gradient(140deg, var(--gold-bright), var(--gold-deep));
    color: #fff;
    transform: translateY(-4px) rotate(8deg);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 26px;
    font-family: var(--font-accent);
    font-size: .92rem;
    letter-spacing: .1em;
    color: #a58fa3;
}
.footer-book-title { color: var(--gold-bright); }

/* Back to top */
#backToTop {
    position: fixed;
    right: 26px; bottom: 26px;
    z-index: 900;
    width: 50px; height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--gold-bright), var(--gold-deep));
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 12px 28px rgba(140, 94, 16, .45);
    opacity: 0;
    transform: translateY(24px) scale(.8);
    pointer-events: none;
    transition: opacity .4s, transform .4s var(--ease-out);
}
#backToTop.visible { opacity: 1; transform: none; pointer-events: auto; }
#backToTop:hover { transform: translateY(-4px); }

/* ---------- 16. REVEAL ANIMATIONS ---------- */
[data-reveal] {
    opacity: 0;
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
    will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translateY(46px); }
[data-reveal="left"]  { transform: translateX(-52px); }
[data-reveal="right"] { transform: translateX(52px); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- 17. RESPONSIVE ---------- */
@media (min-width: 1025px) {
    .nav-toggle { display: none; } /* hamburger only on mobile/tablet */
}

@media (max-width: 1024px) {
    .nav-cta { display: none; }
    .main-nav { display: none; }
    .nav-toggle { display: block; }

    /* Fixed backgrounds shift/jump the page on smaller screens */
    body { background-attachment: scroll; }
    .quote-band { background-attachment: scroll; }

    .hero-inner, .about-grid, .author-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
    .hero { padding-top: 130px; text-align: center; }
    .hero-content { order: 2; }
    .hero-visual { order: 1; }
    .hero-text { margin-inline: auto; }
    .hero-actions, .hero-meta { justify-content: center; }
    .hero-actions { display: flex; justify-content: center; }
    .book-float { width: min(320px, 70%); }
    .about-content .feature-list li { justify-content: flex-start; }

    .review-grid, .format-grid { grid-template-columns: 1fr 1fr; }
    .review-card.featured { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .section { padding: 80px 0; }
    h2 { font-size: 1.75rem; }

    .hero { padding: 120px 0 70px; }
    .review-grid, .format-grid { grid-template-columns: 1fr; }
    .book-facts { grid-template-columns: 1fr; gap: 14px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .footer-bottom { justify-content: center; text-align: center; }

    .hero-meta { gap: 26px; flex-wrap: wrap; justify-content: center; }
    .contact-form-wrap { padding: 34px 22px; }
    .brand-text small { display: none; }
    .scroll-hint { display: none; }
    .popular-tag { font-size: .72rem; padding: 6px 16px; }
}

/* Short landscape phones / small viewports — don't force full-screen hero */
@media (max-height: 640px) {
    .hero { min-height: auto; padding: 120px 0 60px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}
