:root {
    --bg: #f6f1ea;
    --bg-alt: #efe7dc;
    --surface: #fffaf4;
    --surface-2: #fffdf9;
    --text: #2a221d;
    --muted: #6b5f56;
    --dark: #1f1814;
    --dark-2: #342920;
    --accent: #b07a2a;
    --accent-dark: #8b5f1f;
    --border: #e3d3bc;
    --shadow-soft: 0 10px 30px rgba(31, 24, 20, 0.08);
    --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.28);
    --radius: 20px;
    --container: 1120px;
    --narrow: 780px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    font-size: 17px;
    line-height: 1.75;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(var(--container), 92%);
    margin: 0 auto;
}

.narrow {
    width: min(var(--narrow), 100%);
}

/* HERO */
.hero {
    background:
        linear-gradient(135deg, rgba(18, 14, 11, 0.95), rgba(49, 37, 28, 0.92)),
        radial-gradient(circle at top right, rgba(176, 122, 42, 0.18), transparent 35%);
    color: #ffffff;
    padding: 88px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 64px;
    align-items: center;
}

.hero-image-wrap {
    display: flex;
    justify-content: center;
}

.book-cover {
    width: 100%;
    max-width: 320px;
    border-radius: 18px;
    box-shadow: var(--shadow-strong);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.hero h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3rem, 6vw, 4.7rem);
    line-height: 0.95;
    font-weight: 700;
    margin-bottom: 14px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 22px;
}

.hero-text {
    max-width: 650px;
    font-size: 1.06rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-meta span {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.86);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--accent-dark);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: rgba(176, 122, 42, 0.08);
}

/* SECTIONS */
.section {
    padding: 84px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-heading {
    margin-bottom: 28px;
}

.section-label {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-heading h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1;
    font-weight: 700;
    color: var(--dark);
}

.section-subcopy {
    margin-top: 10px;
    color: var(--muted);
}

.center-heading {
    text-align: center;
}

/* CONTENT CARDS */
.content-card,
.reader-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow-soft);
}

.content-card p + p,
.reader-card p + p {
    margin-top: 18px;
}

.content-card em,
.reader-card em {
    font-style: italic;
}

.highlight-quote {
    margin: 26px 0;
    padding: 20px 22px;
    border-left: 4px solid var(--accent);
    background: var(--surface-2);
    border-radius: 12px;
    color: var(--dark);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
    line-height: 1.35;
}

.reader-intro {
    color: var(--muted);
    margin-bottom: 20px;
}

.reader-actions {
    margin-top: 18px;
}

/* BUY SECTION */
.buy-section {
    background: linear-gradient(180deg, #f7f0e6 0%, #efe4d3 100%);
}

.buy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 34px;
}

.buy-card {
    background: rgba(255, 250, 244, 0.9);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: var(--shadow-soft);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.buy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(31, 24, 20, 0.12);
    border-color: #d7bf97;
}

.buy-platform {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark);
}

.buy-action {
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.96rem;
}

/* REVIEW SECTION */
.review-card {
    max-width: 820px;
    margin: 48px auto 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.review-card p {
    color: var(--muted);
}

.review-card a {
    color: var(--accent-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.review-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

.review-actions a {
    text-decoration: none;
}

.goodreads-link {
    margin-top: 22px;
    font-size: 0.95rem;
    word-break: break-word;
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.72);
    padding: 26px 0;
}

.footer-inner {
    text-align: center;
    font-size: 0.95rem;
}

/* RESPONSIVE */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-actions,
    .hero-meta {
        justify-content: center;
    }

    .buy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    /* FIX: Increase container side padding on mobile so content never touches screen edges */
    .container {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        padding: 68px 0;
    }

    .section {
        padding: 64px 0;
    }

    .content-card,
    .reader-card,
    .review-card {
        padding: 24px;
    }

    .highlight-quote {
        font-size: 1.25rem;
        padding: 18px;
    }

    .btn {
        width: 100%;
    }

    .hero-actions,
    .review-actions {
        width: 100%;
    }

    .hero-actions .btn,
    .review-actions .btn {
        width: 100%;
    }

    .book-cover {
        max-width: 260px;
    }
}
