:root {
    --plum-900: #2c1b3d;
    --plum-700: #4a2d5f;
    --plum-500: #6b4a86;
    --lavender: #a98fc4;
    --lilac-50: #f6f1fb;
    --lilac-100: #ece2f5;
    --gold: #c0a05f;
    --ink: #2b2535;
    --muted: #6f6580;

    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--lilac-50);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--lavender);
    margin-bottom: 1.2rem;
}
.eyebrow--dark { color: var(--plum-500); }

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 0.95rem 2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn--primary {
    background: var(--plum-700);
    color: #fff;
    box-shadow: 0 12px 30px -10px rgba(74, 45, 95, 0.6);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -12px rgba(74, 45, 95, 0.7);
    background: var(--plum-500);
}
.btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--lg { padding: 1.1rem 3rem; font-size: 1.05rem; }
.btn:disabled { opacity: 0.65; cursor: progress; transform: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(217, 198, 238, 0.35), transparent 60%),
        linear-gradient(150deg, #503372 0%, #3a2453 45%, #271637 100%);
    overflow: hidden;
    padding: 6rem 2rem;
}
.hero__inner {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}
.hero__text { max-width: 30rem; }
.hero h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.01em;
    margin-bottom: 1.6rem;
}
.hero__sub {
    font-style: italic;
    font-weight: 500;
    font-size: 0.62em;
    color: #e3d3f4;
}
.lede {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2.4rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Book */
.hero__cover { display: flex; justify-content: center; perspective: 1600px; }
.book {
    position: relative;
    width: 300px;
    max-width: 72vw;
    transform: rotateY(-16deg) rotateX(4deg);
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45));
}
.book:hover { transform: rotateY(-6deg) rotateX(2deg); }
.book__face {
    border-radius: 4px 10px 10px 4px;
    overflow: hidden;
    aspect-ratio: 300 / 420;
}
.cover-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.book__spine {
    position: absolute;
    top: 0; left: -1px;
    width: 14px; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.35), rgba(255,255,255,0.12));
    transform: translateZ(-6px) rotateY(90deg);
    transform-origin: left;
    border-radius: 4px 0 0 4px;
}

.scroll-hint {
    position: absolute;
    bottom: 1.6rem; left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.3rem;
    animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Quote ---------- */
.quote {
    background: var(--lilac-100);
    text-align: center;
    padding: 5.5rem 2rem;
}
.quote p {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.5rem, 3.4vw, 2.4rem);
    line-height: 1.4;
    color: var(--plum-700);
    max-width: 40rem;
    margin: 0 auto;
}

/* ---------- About ---------- */
.about { padding: 6.5rem 2rem; }
.about__inner { max-width: 820px; margin: 0 auto; }
.about h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 600;
    color: var(--plum-700);
    text-align: center;
    margin-bottom: 2.8rem;
}
.about__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem;
}
.about__cols p { font-size: 1.05rem; color: var(--muted); }
.about__cols em { color: var(--plum-500); font-style: italic; }

.themes {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 3rem;
}
.themes li {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--plum-500);
    background: var(--lilac-100);
    border: 1px solid var(--lilac-100);
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
}

/* ---------- Buy ---------- */
.buy {
    padding: 6.5rem 2rem 7rem;
    background:
        radial-gradient(900px 500px at 50% 120%, rgba(192, 160, 95, 0.12), transparent 60%),
        linear-gradient(160deg, #4a2d5f 0%, #2c1b3d 100%);
}
.buy__card {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    padding: 3.2rem 2.4rem;
    text-align: center;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.buy__card h2 {
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 0.3rem;
}
.buy__author {
    font-style: italic;
    color: var(--muted);
    margin-bottom: 1.6rem;
}
.price {
    font-family: var(--serif);
    color: var(--plum-700);
    margin-bottom: 1.8rem;
}
.price span { font-size: 3.4rem; font-weight: 600; }
.buy__note {
    margin-top: 1.4rem;
    font-size: 0.82rem;
    color: var(--muted);
}

/* ---------- Tacksida ---------- */
.thanks {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(1000px 500px at 50% -10%, rgba(217, 198, 238, 0.35), transparent 60%),
        linear-gradient(150deg, #503372 0%, #3a2453 45%, #271637 100%);
}
.thanks__card {
    max-width: 520px;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 22px;
    padding: 3.5rem 2.6rem;
    text-align: center;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
}
.thanks__mark { width: 72px; margin: 0 auto 1.6rem; }
.thanks__mark svg { width: 100%; height: 100%; }
.thanks h1 {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 7vw, 3.4rem);
    font-weight: 600;
    color: var(--plum-700);
    line-height: 1.05;
    margin-bottom: 1.2rem;
}
.thanks__lede {
    font-size: 1.08rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}
.thanks__lede em { color: var(--plum-500); font-style: italic; }
.thanks__note {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 1.4rem 0 1.8rem;
}
.thanks__back {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--plum-500);
    text-decoration: none;
    border-bottom: 1px solid rgba(107, 74, 134, 0.4);
    padding-bottom: 1px;
}
.thanks__back:hover { color: var(--plum-700); }
.spinner {
    width: 44px;
    height: 44px;
    margin: 0.5rem auto 1.6rem;
    border: 3px solid rgba(107, 74, 134, 0.18);
    border-top-color: var(--plum-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
footer {
    background: var(--plum-900);
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    padding: 2.2rem;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero__text { max-width: 34rem; margin: 0 auto; }
    .hero__actions { justify-content: center; }
    .hero__cover { order: -1; }
    .about__cols { grid-template-columns: 1fr; gap: 1.4rem; }
}

@media (max-width: 480px) {
    .hero { padding: 4.5rem 1.4rem; }
    .btn--lg { width: 100%; }
    .buy__card { padding: 2.4rem 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-hint { animation: none; }
    .spinner { animation: none; }
    .book, .btn { transition: none; }
    html { scroll-behavior: auto; }
}
