/* Hope & Healing Path — palette sampled from logo gradient */

:root {
    --color-primary: #7b2cbf;
    --color-primary-dark: #4a148c;
    --color-primary-light: #f3e8fa;
    --color-accent: #d81b60;
    --color-accent-warm: #f9a825;
    --color-cream: #fff9fc;
    --color-warm: #fdf0f8;
    --color-text: #2a1a33;
    --color-text-muted: #5e4a66;
    --color-border: #e6d6ee;
    /* legacy aliases used throughout stylesheet */
    --color-sage: var(--color-primary);
    --color-sage-dark: var(--color-primary-dark);
    --color-sage-light: var(--color-primary-light);
    --font-sans: "Source Sans 3", system-ui, sans-serif;
    --font-size-body: 1.125rem;
    --font-size-ui: 1rem;
    --font-size-small: 0.875rem;
    --font-size-caption: 0.8125rem;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-cream);
}

a {
    color: var(--color-sage-dark);
}

a:hover {
    color: var(--color-sage);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 1rem 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-sage-dark);
    min-width: 0;
}

.site-brand-logo,
.site-footer-logo {
    display: block;
    height: 2.5rem;
    width: auto;
    max-width: 10rem;
    object-fit: contain;
}

.site-brand-name {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-sage-dark);
}

.brand {
    color: var(--color-sage-dark);
}

@media (min-width: 640px) {
    .site-brand-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .site-brand-name {
        font-size: 1.0625rem;
        max-width: 10rem;
    }
}

.site-nav-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-primary-dark);
    cursor: pointer;
}

.site-nav-toggle:hover,
.site-nav-toggle:focus-visible {
    background: var(--color-primary-light);
    outline: none;
}

.site-nav-toggle-bars,
.site-nav-toggle-bars::before,
.site-nav-toggle-bars::after {
    display: block;
    width: 1.15rem;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav-toggle-bars {
    position: relative;
}

.site-nav-toggle-bars::before,
.site-nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.site-nav-toggle-bars::before {
    top: -6px;
}

.site-nav-toggle-bars::after {
    top: 6px;
}

.site-nav-checkbox:checked + .site-nav-toggle .site-nav-toggle-bars {
    background: transparent;
}

.site-nav-checkbox:checked + .site-nav-toggle .site-nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.site-nav-checkbox:checked + .site-nav-toggle .site-nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.site-nav-panel {
    display: block;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-ui);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--color-sage-dark);
}

.site-nav-social {
    display: flex;
    align-items: center;
    margin-left: -0.35rem;
}

.site-nav-social .social-links {
    margin: 0;
}

@media (max-width: 767px) {
    .site-nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav-panel {
        display: none;
        flex: 1 1 100%;
        width: 100%;
        order: 3;
        margin: 0.25rem -1.25rem -1rem;
        padding: 0.5rem 1.25rem 1rem;
        border-top: 1px solid var(--color-border);
        background: #fff;
    }

    .site-nav-checkbox:checked ~ .site-nav-panel {
        display: block;
    }

    .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav > li > a {
        display: block;
        padding: 0.85rem 0.15rem;
    }

    .site-nav-social {
        margin: 0.35rem 0 0;
        padding: 0.65rem 0.15rem 0.25rem;
        border-top: 1px solid var(--color-border);
    }
}

@media (min-width: 768px) {
    .site-nav-toggle {
        display: none;
    }

    .site-nav-panel {
        display: block;
        width: auto;
        flex: 0 0 auto;
        order: unset;
        margin: 0;
        padding: 0;
        border-top: none;
        background: transparent;
    }
}

/* Hero */
.hero {
    text-align: center;
}

.hero-banner {
    padding: 2.5rem 1.25rem 2.75rem;
    background: linear-gradient(
        180deg,
        #f4c4a0 0%,
        #ee8f58 18%,
        #e24d6a 38%,
        #c2347a 55%,
        #9a3aad 72%,
        #7b2cbf 88%,
        #5e1fa0 100%
    );
    color: #fff;
}

.hero-body {
    padding: 2rem 1.25rem 1.75rem;
    text-align: left;
    background: linear-gradient(
        180deg,
        #fff5ee 0%,
        #fff7f2 55%,
        #fff6f0 100%
    );
}

@media (max-width: 480px) {
    .hero-banner {
        padding: 1.25rem 1.25rem 2.25rem;
    }

    .hero-body {
        padding: 1.5rem 1.25rem 1.5rem;
    }
}

.hero-title {
    font-size: 2.15rem;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
    margin: 0 auto;
    max-width: 38rem;
}

.hero-title-part {
    display: block;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }
}

.hero-subhead {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.94);
    margin: 0.85rem auto 0;
    max-width: 32rem;
    font-style: italic;
}

.hero-summary {
    max-width: 70rem;
    margin: 0 auto 1rem;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    line-height: 1.6;
    text-align: left;
}

.hero-summary:last-of-type {
    margin-bottom: 0;
}

.hero-belief {
    display: block;
    max-width: 60rem;
    margin: 1.5rem auto 0;
    padding: 0;
    font-style: italic;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.35;
    color: var(--color-sage-dark);
    text-align: center;
}

.hero-belief span {
    display: block;
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

#books,
#reflections {
    scroll-margin-top: 4.5rem;
}

/* Sections */
.section {
    padding: 2.75rem 0;
}

.section-alt {
    background: #fff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

/* Homepage atmospheric tones — light heart-palette washes, no hard blocks */
.section-tone {
    border: none;
    background: transparent;
}

.section-tone-grief {
    background: linear-gradient(
        180deg,
        #fff3e0 0%,
        #ffedd4 38%,
        #ffe6cc 72%,
        #ffdfc8 100%
    );
}

.section-tone-truths {
    background: linear-gradient(
        180deg,
        #fff0f0 0%,
        #f9eef5 48%,
        #f3eef9 100%
    );
}

.section-tone-recovery {
    background: linear-gradient(
        180deg,
        #e6dff2 0%,
        #e4e8f4 48%,
        #e2eaf4 100%
    );
}

.section-tone-stories {
    background: linear-gradient(
        180deg,
        #f4f0f8 0%,
        #fff0ee 40%,
        #ffe9e4 72%,
        #fff5ee 100%
    );
}

.section-tone-reflections {
    background: linear-gradient(
        180deg,
        #fff5ee 0%,
        #fff8f6 45%,
        #fff9fc 100%
    );
}

.section-tone-default {
    background: linear-gradient(
        180deg,
        #fff9fc 0%,
        #fff5f8 100%
    );
}

.section-title {
    font-size: 1.625rem;
    font-weight: 600;
    color: var(--color-sage-dark);
    margin: 0 0 0.35rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    margin: 0 0 2rem;
    font-size: inherit;
}

/* Product cards */
.product-line {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(230, 214, 238, 0.4);
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .product-line {
        grid-template-columns: 220px 1fr;
        align-items: start;
    }
}

.cover-zoom {
    display: block;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    text-align: left;
    width: 100%;
    max-width: 220px;
}

.cover-zoom-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
}

.cover-zoom:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 6px;
}

.product-cover {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.book-cover {
    display: block;
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 0;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.book-detail .cover-zoom {
    max-width: 300px;
    margin-bottom: 1.5rem;
}

.cover-lightbox {
    border: none;
    padding: 0;
    margin: auto;
    max-width: min(92vw, 640px);
    width: 100%;
    background: transparent;
    overflow: visible;
    position: relative;
}

.cover-lightbox::backdrop {
    background: rgba(42, 26, 51, 0.88);
}

.cover-lightbox-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.cover-lightbox-close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.cover-lightbox-close:hover {
    background: #fff;
}

.product-line:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--color-text);
}

.product-subtitle {
    font-size: inherit;
    color: var(--color-text-muted);
    margin: 0 0 1rem;
    font-style: italic;
}

.product-tagline {
    font-size: var(--font-size-ui);
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.85rem 1.25rem;
    margin-top: 0.35rem;
}

.product-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.product-action-meta {
    margin: 0;
    font-size: var(--font-size-small);
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.01em;
}

.product-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.65rem;
    padding: 0.65rem 1.15rem;
    border-radius: 12px;
    font-size: var(--font-size-ui);
    font-weight: 600;
    line-height: 1.2;
}

.btn-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}

.btn-product-secondary {
    background: #ebe0f6;
    border-color: #ebe0f6;
    color: var(--color-primary-dark);
}

.btn-product-secondary:hover {
    background: #e0d0f0;
    border-color: #e0d0f0;
    color: var(--color-primary-dark);
}

.btn-product-primary {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
}

.btn-product-primary:hover {
    background: #3a1070;
    border-color: #3a1070;
    color: #fff;
}

.offer-label {
    font-size: var(--font-size-caption);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.offer-price {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-sage-dark);
    margin: 0.5rem 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: var(--font-size-ui);
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
}

.btn-secondary,
.btn-outline {
    background: #fff;
    color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-secondary:hover,
.btn-outline:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

/* Book detail */
.book-detail {
    padding: 2.5rem 0 4rem;
}

.book-detail h1 {
    font-size: 1.875rem;
    color: var(--color-sage-dark);
    margin: 0 0 0.35rem;
}

.book-detail .subtitle {
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.book-detail .tagline {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.book-body p {
    margin-bottom: 1rem;
}

.book-note {
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
    background: var(--color-warm);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1.5rem;
}

.related-link {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

/* Resources */
.resource-group {
    margin-bottom: 2rem;
}

.resource-group h3 {
    font-size: 1.2rem;
    color: var(--color-sage-dark);
    margin-bottom: 0.75rem;
}

.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-list li {
    margin-bottom: 0.35rem;
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, var(--color-primary-dark) 0%, #311b92 100%);
    color: #f3e5f5;
    padding: 2rem 1.25rem;
    margin-top: 3rem;
    font-size: var(--font-size-small);
}

.site-footer a {
    color: #f8bbd0;
}

.site-footer .inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.site-footer-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
    color: #f3e5f5;
}

.site-footer-name {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.site-footer-nav {
    margin: 1.25rem 0 1.5rem;
}

.site-footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-nav a {
    text-decoration: none;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.social-icon {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
}

.social-links-footer {
    margin: 1.25rem 0 0;
}

.social-links-footer .social-link {
    color: #f3e5f5;
    background: rgba(255, 255, 255, 0.12);
}

.social-links-footer .social-link:hover,
.social-links-footer .social-link:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.social-links-contact {
    justify-content: flex-start;
    margin: 0.75rem 0 0;
}

.social-links-contact .social-link {
    color: var(--color-primary-dark);
    background: color-mix(in srgb, var(--color-primary) 14%, transparent);
}

.social-links-contact .social-link:hover,
.social-links-contact .social-link:focus-visible {
    color: #ffffff;
    background: var(--color-primary);
}

.social-links-nav {
    justify-content: flex-start;
    gap: 0.5rem;
}

.social-links-nav .social-link {
    width: 2.15rem;
    height: 2.15rem;
    color: var(--color-primary-dark);
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
}

.social-links-nav .social-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.social-links-nav .social-link:hover,
.social-links-nav .social-link:focus-visible {
    color: #ffffff;
    background: var(--color-primary);
    transform: translateY(-1px);
}

.contact-social {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.contact-social-heading {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.page-intro {
    padding: 2.5rem 0 1rem;
}

.page-intro h1 {
    font-size: 1.875rem;
    color: var(--color-sage-dark);
    margin: 0 0 1rem;
}

.prose p {
    margin-bottom: 1rem;
}

.prose h2 {
    font-size: 1.3rem;
    color: var(--color-sage-dark);
    margin: 2rem 0 0.75rem;
}

.prose ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

/* Checkout result (success / cancel) */
.checkout-result {
    padding: 2.5rem 0 3rem;
    text-align: center;
}

.checkout-result .container {
    max-width: 40rem;
}

.checkout-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-size: 1.75rem;
    font-weight: 700;
}

.checkout-result h1 {
    font-size: 1.875rem;
    color: var(--color-sage-dark);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.checkout-result-lead {
    font-size: inherit;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.checkout-result-note {
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
    margin: 0;
}

.checkout-result-actions {
    margin-top: 1.75rem;
}

/* Preview login */
.preview-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: linear-gradient(
        165deg,
        #fff8e1 0%,
        var(--color-warm) 45%,
        var(--color-cream) 100%
    );
}

.preview-login-card {
    width: 100%;
    max-width: 24rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.preview-login-logo {
    display: block;
    height: 3rem;
    width: auto;
    margin: 0 auto 1rem;
}

.preview-login h1 {
    font-size: 1.35rem;
    color: var(--color-sage-dark);
    margin: 0 0 0.5rem;
}

.preview-login-lead {
    color: var(--color-text-muted);
    margin: 0 0 1.5rem;
    font-size: inherit;
}

.preview-login-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.preview-login-form label {
    font-weight: 600;
    font-size: var(--font-size-ui);
}

.preview-login-form input {
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: var(--font-size-ui);
}

.purchase-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.purchase-box h2 {
    font-size: 1.25rem;
    color: var(--color-sage-dark);
    margin: 0 0 0.5rem;
}

.purchase-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    max-width: 24rem;
}

.purchase-form label {
    font-weight: 600;
    font-size: var(--font-size-ui);
}

.purchase-form input,
.purchase-form select,
.purchase-form textarea {
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: var(--font-size-ui);
}

.testimonial-share-form {
    max-width: 36rem;
}

.purchase-note {
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
    margin: 0.5rem 0 0;
}

.sampler-box {
    margin-top: 2rem;
    max-width: 34rem;
    padding: 0;
    background: #fff;
    border: 1px solid rgba(230, 214, 238, 0.9);
    border-radius: 14px;
    overflow: hidden;
    color: var(--color-text);
}

.sampler-box-preview {
    padding: 1.4rem 1.4rem 1.25rem;
}

.sampler-box h2 {
    margin: 0 0 0.45rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.sampler-box-preview > p {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
    font-size: var(--font-size-ui);
    line-height: 1.5;
}

.sampler-box-form {
    padding: 1.25rem 1.4rem 1.4rem;
    border-top: 1px solid rgba(230, 214, 238, 0.85);
}

.sampler-form {
    margin-top: 0;
    max-width: none;
}

.sampler-form label {
    color: var(--color-text);
    font-weight: 600;
}

.sampler-form input {
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.sampler-form input::placeholder {
    color: #9a8aa6;
}

.sampler-form input:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
    border-color: transparent;
}

.sampler-form .validation-summary,
.sampler-form .field-error {
    color: #b42318;
}

.btn-sampler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 1.15rem;
    border-radius: 12px;
    border: 1px solid #7e57c2;
    background: #7e57c2;
    color: #fff;
    font-weight: 600;
}

.btn-sampler:hover {
    background: #6a45b0;
    border-color: #6a45b0;
    color: #fff;
}

.btn-sampler-full {
    width: 100%;
    margin-top: 0.35rem;
}

.field-error,
.validation-summary {
    color: #b42318;
    font-size: var(--font-size-small);
}

.contact-email {
    font-size: 1.15rem;
    font-weight: 600;
}

.error-page {
    max-width: 36rem;
    padding-bottom: 2rem;
}

.error-page h1 {
    color: var(--color-sage-dark);
}

.error-page-lead {
    font-size: 1.125rem;
    color: var(--color-text);
}

.error-page-ref {
    margin-top: 1.25rem;
    color: var(--color-text-muted);
    font-size: var(--font-size-small);
}

.error-page-ref code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
    word-break: break-all;
}

.error-page-actions {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.grant-book-list {
    display: inline-block;
    text-align: left;
    margin: 1rem auto 1.5rem;
    padding-left: 1.25rem;
    color: var(--color-text);
}

.grant-book-list li {
    margin: 0.35rem 0;
}

.grant-redeem-form {
    margin-top: 1.5rem;
}

.admin-dashboard {
    padding: 2.5rem 0 4rem;
}

.admin-dashboard h1 {
    color: var(--color-sage-dark);
    margin: 0 0 0.75rem;
}

.admin-dashboard-lead {
    color: var(--color-text-muted);
    max-width: 42rem;
    margin: 0 0 1.5rem;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 1.75rem;
    border-bottom: 1px solid var(--color-border);
}

.admin-tab {
    display: inline-block;
    padding: 0.7rem 1rem;
    margin-bottom: -1px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-ui);
    border-bottom: 2px solid transparent;
}

.admin-tab:hover {
    color: var(--color-sage-dark);
}

.admin-tab.active {
    color: var(--color-sage-dark);
    border-bottom-color: var(--color-sage-dark);
}

.admin-panel-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: var(--color-sage-dark);
}

.admin-panel-lead {
    color: var(--color-text-muted);
    max-width: 42rem;
    margin: 0 0 1.5rem;
}

.admin-grants {
    padding: 2.5rem 0 4rem;
}

.admin-grants h1 {
    color: var(--color-sage-dark);
    margin: 0 0 0.75rem;
}

.admin-grants-lead {
    color: var(--color-text-muted);
    max-width: 42rem;
    margin: 0 0 2rem;
}

.admin-grants-created {
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: #f4fbf6;
    border: 1px solid #b8e0c4;
    border-radius: 8px;
}

.admin-grants-created h2,
.admin-grants-created h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--color-sage-dark);
}

.admin-grants-url {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
}

.admin-grants-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    align-items: start;
}

.admin-grants-form-card,
.admin-grants-list-card {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.admin-grants-form-card h2,
.admin-grants-form-card h3,
.admin-grants-list-card h2,
.admin-grants-list-card h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--color-sage-dark);
}

.admin-grants-books {
    border: none;
    margin: 0 0 1rem;
    padding: 0;
}

.admin-grants-books legend {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.admin-grants-book-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-weight: 400;
}

.admin-grants-books-actions {
    margin-bottom: 0.65rem;
}

.admin-grants-select-all {
    padding: 0.35rem 0.75rem;
    font-size: var(--font-size-small);
}

.admin-grants-form-card select {
    display: block;
    width: 100%;
    margin: 0.35rem 0 1rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font: inherit;
    background: #fff;
}

.admin-grants-form-card label:not(.admin-grants-book-option) {
    display: block;
    font-weight: 600;
    font-size: var(--font-size-ui);
    margin-top: 0.75rem;
}

.admin-grants-form-card input[type="number"],
.admin-grants-form-card input[type="text"],
.admin-grants-form-card textarea {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: var(--font-size-ui);
}

.admin-grants-form-card textarea {
    resize: vertical;
    min-height: 4.5rem;
}

.admin-grants-field-help {
    margin: 0.35rem 0 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-small);
}

.admin-grants-form-card .btn {
    margin-top: 1.25rem;
}

.admin-grants-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-grants-list > li {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.admin-grants-list > li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.admin-grants-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.admin-grants-status {
    font-size: var(--font-size-caption);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.admin-grants-status-active {
    background: #e8f5ec;
    color: #1d6b3a;
}

.admin-grants-status-used,
.admin-grants-status-expired {
    background: #f5f0f0;
    color: #6b4a4a;
}

.admin-grants-redeemers {
    margin-top: 0.75rem;
}

.admin-grants-redeemers-label {
    margin: 0 0 0.35rem;
    font-size: var(--font-size-caption);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-grants-redeemers-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-grants-redeemers-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    padding: 0;
    border: none;
    font-size: var(--font-size-small);
}

.admin-grants-redeemer-email {
    color: var(--color-text);
    word-break: break-word;
}

.admin-grants-redeemer-date,
.admin-grants-redeemers-empty {
    color: var(--color-text-muted);
    font-size: var(--font-size-small);
}

.admin-grants-redeemers-empty {
    margin: 0.5rem 0 0;
}

.admin-grants-revoke-form {
  margin-top: 0.75rem;
}

.admin-grants-revoke-form .btn {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
}

.admin-grants-books-list {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
    list-style: disc;
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
}

.admin-grants-books-list li {
    margin: 0.15rem 0;
    padding: 0;
    border: none;
}

.admin-grants-meta,
.admin-grants-books-summary,
.admin-grants-note {
    margin: 0.35rem 0 0;
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
}

.admin-sampler-views {
    margin-top: 0;
}

.admin-sampler-views-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    font-size: var(--font-size-small);
}

.admin-sampler-views-table th,
.admin-sampler-views-table td {
    padding: 0.55rem 0.4rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.admin-sampler-views-table th {
    font-weight: 600;
    color: var(--color-text-muted);
}

.admin-sampler-views-table th:nth-child(2),
.admin-sampler-views-table th:nth-child(3),
.admin-sampler-views-table td:nth-child(2),
.admin-sampler-views-table td:nth-child(3) {
    text-align: right;
    white-space: nowrap;
    width: 7rem;
}

.admin-purchases-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-small);
}

.admin-purchases-table th,
.admin-purchases-table td {
    padding: 0.65rem 0.4rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.admin-purchases-table th {
    font-weight: 600;
    color: var(--color-text-muted);
}

.admin-purchase-email {
    color: var(--color-text);
    word-break: break-word;
}

.admin-purchase-name,
.admin-purchase-date {
    color: var(--color-text-muted);
    margin-top: 0.2rem;
}

.admin-purchase-amount,
.admin-purchase-date {
    white-space: nowrap;
}

.admin-purchases-table th:nth-child(3),
.admin-purchases-table td:nth-child(3),
.admin-purchases-table th:nth-child(4),
.admin-purchases-table td:nth-child(4) {
    text-align: right;
}

.admin-prices-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-small);
}

.admin-prices-table th,
.admin-prices-table td {
    padding: 0.75rem 0.4rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.admin-prices-table th {
    font-weight: 600;
    color: var(--color-text-muted);
}

.admin-prices-table th:nth-child(2),
.admin-prices-table td:nth-child(2) {
    width: 10rem;
}

.admin-price-title {
    color: var(--color-text);
    font-weight: 600;
}

.admin-price-slug {
    margin-top: 0.2rem;
    color: var(--color-text-muted);
}

.admin-price-input-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-price-currency {
    color: var(--color-text-muted);
    font-weight: 600;
}

.admin-price-input-row input[type="number"] {
    width: 6.5rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: var(--font-size-ui);
}

.admin-prices-save {
    margin-top: 1.25rem;
}

.admin-crud-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 960px) {
    .admin-crud-layout {
        grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
        align-items: start;
    }
}

.admin-crud-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-small);
}

.admin-crud-table th,
.admin-crud-table td {
    padding: 0.75rem 0.4rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.admin-crud-table th {
    font-weight: 600;
    color: var(--color-text-muted);
}

.admin-crud-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.admin-crud-row-actions form {
    margin: 0;
}

.admin-link-button {
    border: 0;
    padding: 0;
    background: none;
    color: var(--color-accent);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.admin-crud-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.5rem;
}

.admin-crud-actions .btn {
    margin-top: 0.75rem;
}

.testimonial-list {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (min-width: 720px) {
    .testimonial-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.testimonial-card {
    margin: 0;
    padding: 1.25rem 1.35rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(230, 214, 238, 0.55);
    border-radius: 8px;
}

.testimonial-body {
    margin: 0;
    font-size: var(--font-size-ui);
    line-height: 1.55;
    color: var(--color-text);
}

.testimonial-meta {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
}

.testimonial-meta cite {
    font-style: normal;
    font-weight: 600;
    color: var(--color-sage-dark);
}

.testimonial-share {
    max-width: 36rem;
}

.testimonial-share h1 {
    color: var(--color-sage-dark);
    margin: 0 0 0.75rem;
}

.testimonial-share-lead {
    color: var(--color-text-muted);
    margin: 0 0 1.5rem;
}

.testimonial-share-form textarea,
.testimonial-share-form select {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: var(--font-size-ui);
}

.testimonial-share-thanks {
    padding: 1.25rem 1.5rem;
    background: #f4fbf6;
    border: 1px solid #b8e0c4;
    border-radius: 8px;
}

.testimonial-share-thanks h2 {
    margin: 0 0 0.5rem;
    color: var(--color-sage-dark);
}

.admin-testimonial-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-testimonial-item {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.admin-testimonial-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.admin-testimonial-body {
    margin: 0.75rem 0 0;
    padding: 0.75rem 0.9rem;
    background: #faf8f6;
    border-left: 3px solid var(--color-accent);
    border-radius: 0 6px 6px 0;
    font-size: var(--font-size-small);
    line-height: 1.5;
}

.admin-testimonial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.admin-testimonial-status-pending {
    background: #fff6e5;
    color: #8a5a00;
}

.admin-testimonial-status-approved {
    background: #e8f5ec;
    color: #1d6b3a;
}

.admin-testimonial-status-rejected {
    background: #f5f0f0;
    color: #6b4a4a;
}

/* Personal story submissions */
.story-submit {
    max-width: 40rem;
}

.story-submit-cover {
    display: block;
    max-width: 220px;
    margin: 0 auto 1.75rem;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
}

.story-submit-cover .book-cover {
    max-width: 100%;
    margin: 0 auto;
}

.story-submit-eyebrow {
    margin: 0 0 0.35rem;
    font-size: var(--font-size-caption);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.story-submit-tagline {
    margin: -0.35rem 0 1.5rem;
    font-size: 1.125rem;
    color: var(--color-sage-dark);
    font-style: italic;
}

.story-submit-lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-sage-dark);
}

.story-submit-intro {
    margin-bottom: 2rem;
}

.story-submit-section-title {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.15rem;
    color: var(--color-sage-dark);
}

.story-submit-form .story-submit-section-title:first-of-type {
    margin-top: 0;
}

.story-agreement {
    max-height: 16rem;
    overflow: auto;
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    font-size: var(--font-size-small);
    line-height: 1.55;
    color: var(--color-text);
}

.story-agreement h3 {
    margin-top: 0;
    font-size: 1rem;
}

.story-agreement ol {
    padding-left: 1.25rem;
}

.story-agreement li {
    margin-bottom: 0.65rem;
}

.story-agreement-version {
    margin: 1rem 0 0;
    font-size: var(--font-size-caption);
    color: var(--color-text-muted);
}

.story-agreement-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0 0 1rem;
    font-size: var(--font-size-small);
    line-height: 1.5;
    cursor: pointer;
}

.story-agreement-check input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.admin-story-meta-block {
    margin: 0.5rem 0 0;
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
}

.admin-testimonial-status-accepted {
    background: #e8f5ec;
    color: #1d6b3a;
}

.admin-testimonial-status-declined {
    background: #f5f0f0;
    color: #6b4a4a;
}
