:root {
    --moss-ink: #1f2d24;
    --linen-paper: #f4ecdc;
    --forest-depth: #1d3a2e;
    --sand-glow: #e2d2b2;
    --leaf-sage: #7d9a6e;
    --bark-umber: #5b4330;
    --grove-radius: 18px;
    --grove-shadow: 0 18px 40px rgba(29, 58, 46, 0.28);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.grove-body {
    margin: 0;
    font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.125rem, 1.6vw, 1.4rem);
    line-height: 1.6;
    color: var(--moss-ink);
    background: var(--linen-paper);
    overflow-x: hidden;
}

.grove-main {
    width: 100%;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
.cover-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 0.6em;
    color: var(--forest-depth);
}

h1 {
    font-size: clamp(2.6rem, 6vw, 5.5rem);
}

h2 {
    font-size: clamp(2rem, 4.2vw, 3.6rem);
}

h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

p {
    margin: 0 0 1em;
    max-width: 38rem;
}

a {
    color: var(--bark-umber);
}

a:focus-visible,
input:focus-visible,
button:focus-visible,
.grove-cta:focus-visible {
    outline: 3px solid var(--leaf-sage);
    outline-offset: 3px;
}

/* ---------- Shared pieces ---------- */

.grove-eyebrow {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bark-umber);
    font-weight: 600;
}

.grove-cta {
    display: inline-block;
    min-height: 3.5rem;
    line-height: 3.5rem;
    padding: 0 2.2rem;
    border-radius: 999px;
    background: var(--forest-depth);
    color: var(--linen-paper);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--grove-shadow);
    transition: background 0.25s ease, transform 0.25s ease;
}

.grove-cta:hover {
    background: var(--bark-umber);
    transform: translateY(-2px);
}

.arch-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 999px 999px 0 0;
    box-shadow: var(--grove-shadow);
}

/* Organic texture of the cover, drawn with gradients only */
.cover-book {
    position: relative;
    width: min(70vw, 260px);
    aspect-ratio: 2 / 3;
    margin: 0 auto;
    padding: 2rem 1.6rem 1.6rem 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 6px var(--grove-radius) var(--grove-radius) 6px;
    background:
        radial-gradient(circle at 80% 20%, rgba(226, 210, 178, 0.25), transparent 55%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 9px),
        linear-gradient(160deg, #2c5a46 0%, var(--forest-depth) 60%, #142a21 100%);
    box-shadow: 14px 22px 40px rgba(20, 42, 33, 0.45), inset 6px 0 0 rgba(0, 0, 0, 0.25);
    color: var(--linen-paper);
    text-align: left;
}

.cover-book::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 14px;
    background: linear-gradient(90deg, #0f1f18, #2a4a3c 60%, #15291f);
    border-radius: 6px 0 0 6px;
}

.cover-book::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(226, 210, 178, 0.45);
    border-radius: 4px;
    pointer-events: none;
}

.cover-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sand-glow);
}

.cover-title {
    display: block;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    color: var(--linen-paper);
    margin: 0.2em 0 0.3em;
}

.cover-sub {
    display: block;
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--sand-glow);
}

.cover-author {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    color: var(--linen-paper);
    border-top: 1px solid rgba(226, 210, 178, 0.45);
    padding-top: 0.6rem;
}

.cover-small {
    width: min(55vw, 200px);
}

.cover-small .cover-title {
    font-size: 1.8rem;
}

/* ---------- Screen 1: hero ---------- */

.reader-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 15% 10%, rgba(125, 154, 110, 0.35), transparent 50%),
        var(--forest-depth);
}

.reader-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.reader-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(29, 58, 46, 0.55), rgba(29, 58, 46, 0.85));
    z-index: -1;
}

.reader-hero-panel {
    margin: 0 auto;
    padding: 2.5rem 1.4rem;
    width: 100%;
    max-width: 62rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
    background: rgba(244, 236, 220, 0.12);
    border: 1px solid rgba(226, 210, 178, 0.35);
    border-radius: var(--grove-radius);
    backdrop-filter: blur(4px);
    margin-inline: 1rem;
}

.reader-hero-text {
    color: var(--linen-paper);
    text-align: center;
}

.reader-hero-text h1 {
    color: var(--linen-paper);
}

.reader-hero-text .grove-eyebrow {
    color: var(--sand-glow);
}

.reader-hero-lead {
    margin: 0 auto 2rem;
    color: var(--linen-paper);
}

/* ---------- Screen 2: quote + about ---------- */

.quote-grove {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 4rem 1.2rem;
    background-color: var(--sand-glow);
    background-image:
        linear-gradient(180deg, rgba(244, 236, 220, 0.2), rgba(29, 58, 46, 0.55)),
        url("img/bg2.webp");
    background-size: cover;
    background-position: center;
}

.quote-veil {
    width: 100%;
    max-width: 62rem;
    margin: 0 auto;
    display: grid;
    gap: 2.4rem;
}

.grove-quote {
    margin: 0 auto;
    padding: 2rem 1.8rem;
    max-width: 38rem;
    text-align: center;
    background: rgba(244, 236, 220, 0.9);
    border-radius: var(--grove-radius);
    border-left: 6px solid var(--leaf-sage);
    box-shadow: var(--grove-shadow);
}

.grove-quote p {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.35;
    color: var(--forest-depth);
    margin: 0 0 0.8em;
    max-width: none;
}

.grove-quote footer {
    font-size: 0.95rem;
    color: var(--bark-umber);
}

.about-plate {
    display: grid;
    gap: 1.8rem;
    padding: 2rem 1.4rem;
    background: rgba(244, 236, 220, 0.88);
    border-radius: var(--grove-radius);
    backdrop-filter: blur(6px);
}

.about-text h2 {
    color: var(--forest-depth);
}

/* ---------- Screen 3: features + audience ---------- */

.features-trail {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding: 4rem 1.2rem;
    overflow: hidden;
    isolation: isolate;
    background: var(--linen-paper);
}

.trail-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.features-trail::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(244, 236, 220, 0.9), rgba(226, 210, 178, 0.82));
    z-index: -1;
}

.trail-veil {
    width: 100%;
    max-width: 62rem;
    margin: 0 auto;
    padding: 2rem 1.4rem;
    background: rgba(244, 236, 220, 0.75);
    border: 1px solid rgba(91, 67, 48, 0.25);
    border-radius: var(--grove-radius);
    backdrop-filter: blur(6px);
}

.trail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.6rem;
}

.trail-list li {
    padding-left: 1.4rem;
    border-left: 3px solid var(--leaf-sage);
}

.trail-list h3 {
    margin-bottom: 0.3em;
}

.trail-list p {
    margin: 0;
}

.audience-nook {
    width: 100%;
    max-width: 62rem;
    margin: 0 auto;
    display: grid;
    gap: 1.8rem;
    align-items: center;
}

.audience-text {
    padding: 1.6rem 1.4rem;
    background: rgba(29, 58, 46, 0.88);
    color: var(--linen-paper);
    border-radius: var(--grove-radius);
}

.audience-text h2 {
    color: var(--linen-paper);
}

/* ---------- Screen 4: order ---------- */

.order-glade {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 4rem 1.2rem;
    background-color: var(--forest-depth);
    background-image:
        linear-gradient(180deg, rgba(29, 58, 46, 0.9), rgba(20, 42, 33, 0.95)),
        url("img/bg6.webp");
    background-size: cover;
    background-position: center;
    color: var(--linen-paper);
}

.order-plate {
    width: 100%;
    max-width: 62rem;
    margin: 0 auto;
    display: grid;
    gap: 2.4rem;
    padding: 2.4rem 1.4rem;
    border: 1px solid rgba(226, 210, 178, 0.35);
    border-radius: var(--grove-radius);
    background: rgba(20, 42, 33, 0.6);
    backdrop-filter: blur(6px);
}

.order-intro h2 {
    color: var(--linen-paper);
}

.order-intro p {
    color: var(--linen-paper);
}

.order-facts {
    padding-left: 1.2rem;
    margin: 0 0 1.6rem;
    color: var(--sand-glow);
}

.order-cover-wrap {
    display: flex;
    justify-content: center;
}

.order-form {
    display: grid;
    gap: 0.6rem;
}

.order-form label {
    font-weight: 600;
    color: var(--sand-glow);
    margin-top: 0.6rem;
}

.order-form input {
    width: 100%;
    min-height: 3.5rem;
    padding: 0.7rem 1rem;
    font: inherit;
    font-size: 1.125rem;
    color: var(--moss-ink);
    background: var(--linen-paper);
    border: 2px solid transparent;
    border-radius: 12px;
}

.order-form input::placeholder {
    color: #6d6456;
}

.order-form input:focus-visible {
    border-color: var(--leaf-sage);
}

.order-form button {
    margin-top: 1rem;
    min-height: 3.5rem;
    font: inherit;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--forest-depth);
    background: var(--sand-glow);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.order-form button:hover {
    background: #f4ecdc;
}

.order-consent {
    font-size: 0.95rem;
    color: var(--sand-glow);
    margin-top: 0.6rem;
}

.order-consent a {
    color: var(--linen-paper);
}

/* ---------- Footer ---------- */

.grove-footer {
    padding: 2.4rem 1.2rem 2.8rem;
    text-align: center;
    background: #142a21;
    color: var(--sand-glow);
    font-size: 0.98rem;
}

.grove-footer p {
    margin: 0.4em auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.8rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--linen-paper);
}

.footer-note {
    font-size: 0.88rem;
    opacity: 0.85;
}

/* ---------- Legal pages ---------- */

.legal-page {
    min-height: 100svh;
    background: var(--linen-paper);
    padding: 3rem 1.2rem;
}

.legal-wrap {
    max-width: 46rem;
    margin: 0 auto;
    padding: 2.4rem 1.6rem;
    background: #fbf7ee;
    border: 1px solid rgba(91, 67, 48, 0.25);
    border-radius: var(--grove-radius);
    box-shadow: var(--grove-shadow);
}

.legal-wrap h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.legal-section {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(91, 67, 48, 0.2);
}

.legal-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.legal-section p {
    font-size: 1.05rem;
}

.legal-back {
    display: inline-block;
    margin-bottom: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--forest-depth);
}

.legal-back:hover {
    text-decoration: underline;
}

/* ---------- Tablet and desktop ---------- */

@media (min-width: 720px) {
    .reader-hero-panel {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 3rem 2.8rem;
    }

    .reader-hero-text {
        text-align: left;
    }

    .reader-hero-lead {
        margin-left: 0;
    }

    .about-plate {
        grid-template-columns: 1fr 1.2fr;
        align-items: center;
    }

    .trail-list {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 2.4rem;
    }

    .audience-nook {
        grid-template-columns: 1fr 1.2fr;
    }

    .order-plate {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        padding: 3rem 2.8rem;
    }

    .cover-book {
        width: 240px;
    }
}

@media (min-width: 1200px) {
    .quote-veil {
        gap: 3rem;
    }

    .features-trail {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .grove-cta,
    .order-form button {
        transition: none;
    }
}