/**
 * Photo backdrop (BOOKS-style image) with a deeper, warmer veil for readability.
 */
body {
    background-color: #2c181c !important;
    background-image:
        linear-gradient(to bottom, rgba(18, 10, 12, 0.68), rgba(12, 6, 8, 0.78)),
        linear-gradient(to bottom, rgba(140, 75, 68, 0.42), rgba(95, 48, 52, 0.35)),
        url("https://images.unsplash.com/photo-1529255484355-cb73c33c04bb?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80") !important;
    background-repeat: no-repeat, no-repeat, no-repeat !important;
    background-position: center center, center center, center center !important;
    background-size: cover, cover, cover !important;
}

/**
 * Contrast & legibility on bright photo backgrounds (Sovereign Audit + index).
 */
body {
    color: #fff9f4 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.article-wrapper,
.wrap {
    color: #fff9f4;
}

h1 {
    color: #ffffff !important;
    text-shadow:
        0 0 24px rgba(0, 0, 0, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.75);
}

h2,
h3 {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.article-wrapper p,
.article-wrapper li,
.content-body,
.content-body p,
section.content-body {
    color: #fff5ea !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.content-body {
    opacity: 1 !important;
}

.lead {
    opacity: 1 !important;
    color: #fff3c4 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.chapter-label {
    color: #ffe9a0 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

footer {
    opacity: 1 !important;
    color: #f8ecc8 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

b,
strong {
    color: #ffe9a8 !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.insight-card,
[class*="insight-card"] {
    background: rgba(12, 6, 8, 0.52) !important;
    border-color: rgba(255, 248, 238, 0.28) !important;
}

.insight-card p,
.insight-card h2,
.insight-card li {
    color: #fffaf3 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.rule-box,
[class*="rule-box"] {
    background: rgba(12, 6, 8, 0.38) !important;
    border-color: rgba(255, 248, 238, 0.22) !important;
}

.rule-box p,
.rule-box b {
    color: #fff6ea !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* Directory (energy_index.html) */
.wrap h1 {
    color: #ffffff !important;
}

.sub {
    color: rgba(255, 252, 247, 0.96) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.eyebrow {
    color: #ffe9a0 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.home a,
.home a:visited {
    color: #ffe9a8 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

ol li a,
ol li a .title {
    color: #fffaf4 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

ol li a:hover {
    color: #fff3c4 !important;
}

.num {
    color: #ffe9a8 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    font-size: 0.82rem !important;
}

/**
 * Larger type (articles + directory).
 */
body {
    font-size: 1.08rem !important;
    line-height: 1.85 !important;
}

.article-wrapper,
.wrap {
    font-size: 1.08rem;
}

h1 {
    font-size: clamp(2.35rem, 4.5vw, 3.15rem) !important;
}

h2,
h3 {
    font-size: 1.55rem !important;
}

.lead {
    font-size: 1.38rem !important;
    line-height: 1.55 !important;
}

.chapter-label {
    font-size: 0.78rem !important;
}

.content-body,
.content-body p,
.article-wrapper p {
    font-size: 1.2rem !important;
    line-height: 1.82 !important;
}

footer {
    font-size: 0.78rem !important;
    letter-spacing: 0.22em !important;
}

.wrap .sub {
    font-size: 1.12rem !important;
}

.wrap .title,
ol li a .title {
    font-size: 1.1rem !important;
}

.home {
    font-size: 0.95rem !important;
}

/**
 * Prev / next + index (chapter pages).
 */
.tarot-series-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.55rem;
    margin: 0.5rem 0 1.35rem;
    padding: 0.7rem 1rem;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f5e6c8;
    border: 1px solid rgba(255, 248, 238, 0.24);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.32);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tarot-series-nav--footer {
    margin-top: 2.75rem;
    margin-bottom: 0.35rem;
}

.tarot-series-nav--index {
    margin-top: 0.25rem;
    margin-bottom: 1.75rem;
}

.tarot-nav-sep {
    opacity: 0.42;
    user-select: none;
}

.tarot-nav-link {
    color: #ffe9a8 !important;
    text-decoration: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.tarot-nav-link:hover {
    color: #fffef5 !important;
    text-decoration: underline !important;
}

.tarot-nav-link--muted {
    opacity: 0.38;
    cursor: default;
    pointer-events: none;
}
