/* Sanctified — The Study
 *
 * An old leather-bound study met a beautifully typeset literary journal.
 * Dark warmth. Lamplight. The feeling of sitting down with someone
 * who has something worth saying.
 */

/* ==========================================================================
   Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,300;1,6..72,400;1,6..72,500&display=swap');

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/cormorant-garamond-300.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/cormorant-garamond-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/cormorant-garamond-400-italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/cormorant-garamond-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('../fonts/space-mono-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('../fonts/space-mono-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* OpenDyslexic — opt-in via data-font="dyslexic" on the root element.
   Bottom-weighted letterforms reduce rotation/mirroring confusion for readers
   with dyslexia. Self-hosted to honor the no-CDN-runtime-dependency rule. */
@font-face {
    font-family: 'OpenDyslexic';
    src: url('../fonts/opendyslexic-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'OpenDyslexic';
    src: url('../fonts/opendyslexic-400-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'OpenDyslexic';
    src: url('../fonts/opendyslexic-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'OpenDyslexic';
    src: url('../fonts/opendyslexic-700-italic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ==========================================================================
   Design Tokens
   ==========================================================================
   Light is the default. Dark applies via [data-theme="dark"] (manual
   override) or via prefers-color-scheme when no manual override is set.
   Token names are stable across modes — every component reads from these.
*/
:root {
    /* Light mode — cream paper, sienna ink */
    --color-bg: #fafaf7;
    --color-bg-rgb: 250, 250, 247;
    --color-bg-warm: #f5f0e8;
    --color-bg-raised: #ffffff;
    --color-bg-panel: #fbf8f1;

    --color-text: #2a2622;
    --color-text-bright: #1a1614;
    --color-text-light: #c8c4bc;
    --color-text-dim: #4a4540;
    --color-text-muted: #7a7268;
    --color-text-faint: #b8b0a4;

    /* Sienna accent — warm brown that anchors the palette */
    --color-gold: #8b4513;
    --color-gold-bright: #5a2d0c;
    --color-gold-dim: #b8915c;
    --color-gold-glow: rgba(139, 69, 19, 0.12);
    --color-gold-ember: rgba(139, 69, 19, 0.05);

    /* Oxblood — secondary warmth */
    --color-oxblood: #8a3c30;
    --color-oxblood-dim: rgba(138, 60, 48, 0.18);

    /* Functional */
    --color-link: #8b4513;
    --color-link-hover: #5a2d0c;
    --color-border: rgba(139, 69, 19, 0.18);
    --color-border-strong: rgba(139, 69, 19, 0.40);

    /* Atmosphere — lamplight + grain belong to dark mode only */
    --atmosphere-opacity: 0;
    --grain-opacity: 0;
    --image-opacity: 1;

    /* Text shadows — glow effects that read as lamplight in dark, dirt in light */
    --drop-cap-shadow: none;
    --heading-glow: none;
    --quote-mark-opacity: 0.35;

    /* Legacy compat */
    --color-panel: transparent;
    --color-panel-border: var(--color-border);
    --color-panel-soft: transparent;
    --color-accent: var(--color-gold);
    --color-accent-light: var(--color-gold-bright);
    --color-accent-gold: var(--color-gold);
    --color-text-light-space: var(--color-text-dim);
    --color-text-space: var(--color-text);
    --color-stardust: var(--color-gold-dim);
    --panel-radius: 0;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Newsreader', Georgia, 'Times New Roman', serif;
    --font-heading: var(--font-display);
    --font-mono: 'Space Mono', 'Courier New', monospace;
    --font-small-caps: 'Newsreader', Georgia, serif;

    --text-base: 1.125rem;
    --text-sm: 0.9375rem;
    --text-xs: 0.8125rem;
    --text-lg: 1.3125rem;
    --text-xl: 1.625rem;
    --text-2xl: 2.125rem;
    --text-3xl: 2.875rem;
    --text-4xl: 3.75rem;
    --text-5xl: 5rem;
    --text-display: 7rem;

    --line-height: 1.85;
    --line-height-tight: 1.2;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Layout */
    --content-width: 720px;
    --wide-width: 960px;
    --max-width: 1100px;

    /* Effects */
    --transition-fast: 200ms ease;
    --transition-base: 400ms ease;
    --transition-slow: 800ms ease-out;
    --panel-shadow: none;
}

/* Dark mode overrides — warm charcoal, candlelight gold.
   Less leather-tavern than the original Study; closer to a modern dark
   reading mode that still feels warm. */
:root[data-theme="dark"] {
    --color-bg: #1a1817;
    --color-bg-rgb: 26, 24, 23;
    --color-bg-warm: #232220;
    --color-bg-raised: #2a2826;
    --color-bg-panel: #2f2c28;

    --color-text: #d8d4cc;
    --color-text-bright: #f0ece4;
    --color-text-light: #5a554e;
    --color-text-dim: #b0a898;
    --color-text-muted: #807868;
    --color-text-faint: #4a4540;

    --color-gold: #d4a245;
    --color-gold-bright: #e8b854;
    --color-gold-dim: #9a7430;
    --color-gold-glow: rgba(212, 162, 69, 0.20);
    --color-gold-ember: rgba(212, 162, 69, 0.06);

    --color-oxblood: #a85040;
    --color-oxblood-dim: rgba(168, 80, 64, 0.30);

    --color-link: #d4a245;
    --color-link-hover: #e8b854;
    --color-border: rgba(180, 150, 90, 0.15);
    --color-border-strong: rgba(180, 150, 90, 0.35);

    --atmosphere-opacity: 1;
    --grain-opacity: 0.06;
    --image-opacity: 0.88;

    --drop-cap-shadow: 0 0 40px var(--color-gold-glow);
    --heading-glow: 0 0 60px var(--color-gold-glow);
    --quote-mark-opacity: 0.5;
}

/* Reading-font preference — OpenDyslexic for readers who request it.
   Override both the body and display tokens; loosen line-height because
   the face is wider and benefits from breathing room. */
:root[data-font="dyslexic"] {
    --font-body: 'OpenDyslexic', system-ui, sans-serif;
    --font-display: 'OpenDyslexic', system-ui, sans-serif;
    --font-heading: 'OpenDyslexic', system-ui, sans-serif;
    --line-height: 1.95;
}

:root[data-font="dyslexic"] .post__content > p:first-of-type::first-letter,
:root[data-font="dyslexic"] .chapter__content > p:first-of-type::first-letter {
    font-size: 3em;
    line-height: 0.9;
}

:root[data-font="dyslexic"] blockquote {
    font-size: var(--text-base);
    line-height: 1.85;
}

/* When no manual theme is set, follow the system preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-bg: #1a1817;
        --color-bg-rgb: 26, 24, 23;
        --color-bg-warm: #232220;
        --color-bg-raised: #2a2826;
        --color-bg-panel: #2f2c28;

        --color-text: #d8d4cc;
        --color-text-bright: #f0ece4;
        --color-text-light: #5a554e;
        --color-text-dim: #b0a898;
        --color-text-muted: #807868;
        --color-text-faint: #4a4540;

        --color-gold: #d4a245;
        --color-gold-bright: #e8b854;
        --color-gold-dim: #9a7430;
        --color-gold-glow: rgba(212, 162, 69, 0.20);
        --color-gold-ember: rgba(212, 162, 69, 0.06);

        --color-oxblood: #a85040;
        --color-oxblood-dim: rgba(168, 80, 64, 0.30);

        --color-link: #d4a245;
        --color-link-hover: #e8b854;
        --color-border: rgba(180, 150, 90, 0.15);
        --color-border-strong: rgba(180, 150, 90, 0.35);

        --atmosphere-opacity: 1;
        --grain-opacity: 0.06;
        --image-opacity: 0.88;

        --drop-cap-shadow: 0 0 40px var(--color-gold-glow);
        --heading-glow: 0 0 60px var(--color-gold-glow);
        --quote-mark-opacity: 0.5;
    }
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: var(--line-height);
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    position: relative;
}

/* ==========================================================================
   Atmosphere — lamplight + grain
   ========================================================================== */

/* Warm center glow — pooled lamplight in dark mode, subtle paper warmth in light */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 15%, var(--color-gold-glow) 0%, transparent 100%),
        radial-gradient(ellipse 50% 70% at 50% 85%, var(--color-oxblood-dim) 0%, transparent 100%);
    opacity: var(--atmosphere-opacity);
    z-index: -2;
    pointer-events: none;
}

/* Film grain texture via SVG noise */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: var(--grain-opacity);
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

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

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-link-hover);
}

::selection {
    background: rgba(212, 162, 69, 0.30);
    color: var(--color-text-bright);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: var(--line-height-tight);
    color: var(--color-text-bright);
    margin-top: 0;
}

h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-8);
    letter-spacing: 0.01em;
}

h2 {
    font-size: var(--text-2xl);
    font-weight: 400;
    margin-top: var(--space-16);
    margin-bottom: var(--space-6);
    color: var(--color-text);
}

h3 {
    font-size: var(--text-xl);
    font-weight: 400;
    margin-top: var(--space-12);
    margin-bottom: var(--space-4);
}

h4 {
    font-size: var(--text-lg);
    font-weight: 500;
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
}

p {
    margin-top: 0;
    margin-bottom: var(--space-6);
}

strong, b {
    font-weight: 600;
    color: var(--color-text-bright);
}

em, i {
    font-style: italic;
}

/* Scripture and block quotes — set apart, reverent */
blockquote {
    margin: var(--space-12) 0;
    padding: var(--space-8) var(--space-8) var(--space-8) var(--space-12);
    border-left: 2px solid var(--color-gold-dim);
    background: var(--color-gold-ember);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-style: italic;
    font-weight: 300;
    line-height: 1.75;
    color: var(--color-text-dim);
    position: relative;
}

blockquote::before {
    content: '\201C';
    position: absolute;
    left: 1.25rem;
    top: 0.75rem;
    font-size: 4rem;
    font-family: var(--font-display);
    color: var(--color-gold-dim);
    line-height: 1;
    opacity: var(--quote-mark-opacity);
}

blockquote p:last-child {
    margin-bottom: 0;
}

blockquote cite,
blockquote p:last-child:not(:first-child) {
    font-size: var(--text-sm);
    font-style: normal;
    font-family: var(--font-body);
    color: var(--color-text-muted);
    letter-spacing: 0.03em;
}

/* Ornamental horizontal rule */
hr {
    border: none;
    height: auto;
    background: none;
    margin: var(--space-16) auto;
    text-align: center;
    overflow: visible;
    line-height: 1;
}

hr::after {
    content: '\2766';
    font-size: 1.25rem;
    color: var(--color-gold-dim);
    display: block;
    letter-spacing: 0.5em;
    opacity: 0.7;
}

ul, ol {
    margin: 0 0 var(--space-6) 0;
    padding-left: var(--space-8);
}

li {
    margin-bottom: var(--space-3);
}

li::marker {
    color: var(--color-gold-dim);
}

pre {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 300;
    line-height: var(--line-height);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: var(--space-12) 0;
    padding: var(--space-8) var(--space-12);
    background: var(--color-gold-ember);
    border-left: 2px solid var(--color-gold-dim);
    color: var(--color-text-dim);
    font-style: italic;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
    background: rgba(var(--color-bg-rgb), 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-strong);
    padding: var(--space-6) var(--space-8);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.site-nav__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-gold);
    text-decoration: none;
    letter-spacing: 0.2em;
    text-transform: lowercase;
}

.site-nav__logo:hover {
    color: var(--color-gold-bright);
}

.site-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--space-8);
}

.site-nav__menu li {
    margin: 0;
}

.site-nav__menu a {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-dim);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    padding: var(--space-1) 0;
    transition: color var(--transition-fast);
    border-bottom: none;
}

.site-nav__menu a:hover {
    color: var(--color-gold);
    border-bottom: none;
}

/* Theme toggle (sun / moon) — injected by theme.js into .site-nav */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1;
    padding: 0;
    transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: rotate(15deg);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.site-main {
    max-width: var(--content-width);
    margin: var(--space-16) auto;
    padding: 0 var(--space-6);
    animation: breatheIn 1.5s ease both;
}

/* No visible container — just words on dark */
.post,
.chapter,
article {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0;
    color: var(--color-text);
    position: relative;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ==========================================================================
   Post Styles
   ========================================================================== */
.post__header {
    margin-bottom: var(--space-12);
    text-align: center;
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-border);
}

.post__title {
    margin-bottom: var(--space-4);
    color: var(--color-text-bright);
    font-size: var(--text-4xl);
    font-weight: 300;
}

.post__meta {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    letter-spacing: 0.06em;
    text-transform: lowercase;
}

.post__author::before {
    content: none;
}

.post__category::before {
    content: "\2022";
    margin-right: var(--space-2);
}

.post__content {
    font-size: var(--text-base);
    line-height: var(--line-height);
}

.post__content > *:first-child {
    margin-top: 0;
}

.post__content > *:last-child {
    margin-bottom: 0;
}

/* Drop cap — the signature detail */
.post__content > p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 4.2em;
    float: left;
    line-height: 0.78;
    margin-right: 0.06em;
    margin-top: 0.06em;
    color: var(--color-gold);
    text-shadow: var(--drop-cap-shadow);
}

/* ==========================================================================
   Chapter Styles (Foundations course)
   ========================================================================== */
.chapter__header {
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.chapter__title {
    text-transform: capitalize;
    margin-bottom: var(--space-2);
    color: var(--color-text-bright);
    font-size: var(--text-3xl);
}

.chapter__content > *:first-child {
    margin-top: 0;
}

/* Drop cap in chapter content too */
.chapter__content > p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 4.2em;
    float: left;
    line-height: 0.78;
    margin-right: 0.06em;
    margin-top: 0.06em;
    color: var(--color-gold);
    text-shadow: var(--drop-cap-shadow);
}

/* Chapter navigation */
.chapter__nav {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-16);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: var(--text-sm);
}

.chapter__nav a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: var(--color-link);
}

.chapter__nav a:hover {
    color: var(--color-link-hover);
}

/* ==========================================================================
   Figures & Images
   ========================================================================== */
figure {
    margin: var(--space-12) 0;
}

figure img {
    border-radius: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    opacity: var(--image-opacity);
    transition: opacity var(--transition-slow);
}

figure:hover img {
    opacity: 1;
}

figcaption {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-align: center;
    font-style: italic;
}

/* Hero images in posts */
.chapter__content > div:first-child img,
.post__content > div:first-child img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: var(--space-12);
}

/* Bleed images wider in posts */
.post__content figure,
.chapter__content figure {
    margin-left: calc(-1 * var(--space-12));
    margin-right: calc(-1 * var(--space-12));
}

.post__content figure img,
.chapter__content figure img {
    width: 100%;
}

/* ==========================================================================
   Home Page — Hero (with background image)
   ========================================================================== */
.home-hero {
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
}

.home-hero__overlay {
    width: 100%;
    text-align: center;
    padding: var(--space-32) var(--space-8) var(--space-24);
    background: linear-gradient(
        to bottom,
        rgba(var(--color-bg-rgb), 0) 0%,
        rgba(var(--color-bg-rgb), 0.4) 20%,
        rgba(var(--color-bg-rgb), 0.85) 55%,
        rgba(var(--color-bg-rgb), 1) 100%
    );
}

.home-hero__tagline {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 300;
    line-height: 1.12;
    color: var(--color-text-bright);
    margin: 0 auto var(--space-8);
    max-width: 14ch;
    letter-spacing: 0.01em;
    animation: breatheIn 1.8s ease both;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.home-hero__subtitle {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 300;
    font-style: italic;
    color: var(--color-text-dim);
    margin-bottom: 0;
    animation: breatheIn 1.8s ease 0.3s both;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
}

.home-hero__rule {
    width: 40px;
    border: none;
    border-top: 1px solid var(--color-gold);
    margin: var(--space-12) auto 0;
    animation: breatheIn 1.8s ease 0.6s both;
}

.home-hero__rule::after {
    display: none;
}

/* ==========================================================================
   Home Page — Essays List (with thumbnails)
   ========================================================================== */
.home-essays {
    max-width: var(--wide-width);
    margin: 0 auto var(--space-24);
    padding: var(--space-16) var(--space-8) 0;
}

.home-essays__heading {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.essay-item {
    display: flex;
    gap: var(--space-8);
    align-items: flex-start;
    padding: var(--space-8) 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
}

.essay-item__thumb {
    width: 160px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 2px;
    opacity: var(--image-opacity);
    transition: opacity var(--transition-base), box-shadow var(--transition-base);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.essay-item:hover .essay-item__thumb {
    opacity: 1;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22), 0 0 0 1px var(--color-gold-dim);
}

.essay-item__body {
    flex: 1;
    min-width: 0;
}

.essay-item:hover .essay-item__title {
    color: var(--color-gold);
}

.essay-item__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 300;
    color: var(--color-text-bright);
    margin-bottom: var(--space-3);
    transition: color var(--transition-fast);
    line-height: 1.25;
}

.essay-item__excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-dim);
    line-height: 1.75;
    margin: 0;
}

.essay-item__meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-3);
    letter-spacing: 0.03em;
}

/* Staggered entrance */
.essay-item:nth-child(2) { animation: slideIn 0.9s ease 0.1s both; }
.essay-item:nth-child(3) { animation: slideIn 0.9s ease 0.18s both; }
.essay-item:nth-child(4) { animation: slideIn 0.9s ease 0.26s both; }
.essay-item:nth-child(5) { animation: slideIn 0.9s ease 0.34s both; }
.essay-item:nth-child(6) { animation: slideIn 0.9s ease 0.42s both; }
.essay-item:nth-child(7) { animation: slideIn 0.9s ease 0.50s both; }
.essay-item:nth-child(8) { animation: slideIn 0.9s ease 0.58s both; }

/* ==========================================================================
   Home Page — Foundations Callout (with background image)
   ========================================================================== */
.home-foundations {
    max-width: 100%;
    margin: 0 0 var(--space-24);
    padding: 0;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-foundations__overlay {
    padding: var(--space-32) var(--space-8);
    background: rgba(var(--color-bg-rgb), 0.82);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-top: 1px solid var(--color-border-strong);
    border-bottom: 1px solid var(--color-border-strong);
}

.home-foundations__title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 300;
    color: var(--color-text-bright);
    margin-bottom: var(--space-6);
    letter-spacing: 0.05em;
}

.home-foundations__desc {
    font-size: var(--text-base);
    color: var(--color-text-dim);
    margin-bottom: var(--space-12);
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.home-foundations__link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-bg);
    background: var(--color-gold);
    padding: var(--space-4) var(--space-8);
    display: inline-block;
    transition: all var(--transition-fast);
}

.home-foundations__link:hover {
    color: var(--color-bg);
    background: var(--color-gold-bright);
    box-shadow: 0 4px 20px rgba(212, 162, 69, 0.3);
}

/* ==========================================================================
   Blog Listing Page
   ========================================================================== */
.blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-list__item {
    margin: 0;
}

.blog-list__item a {
    display: block;
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    transition: padding var(--transition-base);
}

.blog-list__item a:hover {
    padding-left: var(--space-4);
}

.blog-list__item a:hover .blog-list__title {
    color: var(--color-gold);
}

.blog-list__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 300;
    color: var(--color-text-bright);
    margin-bottom: var(--space-2);
    transition: color var(--transition-fast);
}

.blog-list__excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-dim);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   About Page — Epigraph
   ========================================================================== */
.about-epigraph {
    text-align: center;
    padding: var(--space-24) 0 var(--space-16);
    margin-bottom: var(--space-12);
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.about-epigraph::after {
    content: '\2726';
    position: absolute;
    bottom: -0.6em;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg);
    padding: 0 var(--space-4);
    color: var(--color-gold-dim);
    font-size: var(--text-sm);
}

.about-epigraph__term {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 300;
    font-style: italic;
    color: var(--color-gold);
    margin-bottom: var(--space-8);
    text-shadow: var(--heading-glow);
}

.about-epigraph__def {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 300;
    color: var(--color-text-dim);
    line-height: 1.9;
    max-width: 52ch;
    margin: 0 auto;
}

/* ==========================================================================
   Legacy Home Page Compatibility
   ========================================================================== */
.inherit-container-width {
    text-align: center;
    margin-bottom: var(--space-12);
}

.inherit-container-width h1 {
    font-size: var(--text-4xl);
    font-weight: 300;
    color: var(--color-text-bright);
    letter-spacing: 0.02em;
}

.inherit-container-width p {
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    font-style: italic;
    font-family: var(--font-display);
}

.are-vertically-aligned-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin: var(--space-12) 0;
}

.are-vertically-aligned-top > div {
    text-align: center;
    padding: var(--space-8) var(--space-6);
    background: var(--color-gold-ember);
    border: 1px solid var(--color-border);
    transition: border-color var(--transition-base);
}

.are-vertically-aligned-top > div:hover {
    border-color: var(--color-border-strong);
    background: var(--color-gold-ember);
    transform: none;
}

.are-vertically-aligned-top figure {
    margin: 0 auto var(--space-4);
    opacity: 0.7;
}

.are-vertically-aligned-top h3 {
    font-size: var(--text-lg);
    font-weight: 400;
    margin: 0 0 var(--space-3);
    color: var(--color-text-bright);
}

.are-vertically-aligned-top p {
    font-size: var(--text-sm);
    color: var(--color-text-dim);
    margin: 0;
    line-height: 1.7;
}

/* Blog post grid — single column, text-only */
.columns-3 {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.columns-3 li {
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--color-border);
    margin: 0;
    background: transparent;
    border-radius: 0;
    transition: padding var(--transition-base);
}

.columns-3 li:hover {
    background: transparent;
    padding-left: var(--space-4);
}

/* Hide thumbnails — let the words speak */
.columns-3 li > div:first-child {
    display: none;
}

.columns-3 img.attachment-thumbnail,
.attachment-thumbnail {
    display: none;
}

.columns-3 li > a:nth-child(2) {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 300;
    color: var(--color-text-bright);
    display: block;
    margin-bottom: var(--space-2);
    transition: color var(--transition-fast);
}

.columns-3 li:hover > a:nth-child(2) {
    color: var(--color-gold);
}

.columns-3 li > div:last-child {
    font-size: var(--text-sm);
    color: var(--color-text-dim);
    line-height: 1.7;
}

.columns-3 li > div:last-child a {
    color: var(--color-gold);
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
}

/* Legacy sections — adapted to study aesthetic */
#services,
#biblestudy {
    margin-top: var(--space-16);
}

#services h3#biblestudy,
#biblestudy {
    text-align: left;
    font-size: var(--text-xs);
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

#services > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

#services > div > div {
    background: transparent;
    border-radius: 0;
    padding: var(--space-6) 0;
    border: none;
    border-bottom: 1px solid var(--color-border);
}

#services > div > div:hover {
    background: transparent;
}

#services figure {
    display: none;
}

#services h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 300;
    margin: 0 0 var(--space-2);
    color: var(--color-text-bright);
    text-align: left;
}

#services p {
    font-size: var(--text-sm);
    color: var(--color-text-dim);
    margin: 0;
}

#about {
    margin: var(--space-16) 0;
    display: block;
}

#about h2 {
    margin-top: 0;
}

#about figure {
    display: none;
}

#reviews {
    text-align: center;
    padding: var(--space-16) var(--space-8);
    background: transparent;
    border-radius: 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin: var(--space-16) 0;
    position: relative;
}

#reviews::before {
    content: '\201C';
    position: absolute;
    top: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--color-gold-dim);
    opacity: 0.3;
    line-height: 1;
}

#reviews figure {
    display: none;
}

#reviews p {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-style: italic;
    font-weight: 300;
    line-height: 1.65;
    margin-bottom: var(--space-4);
    color: var(--color-text-dim);
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
}

#reviews p:last-child {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-style: normal;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#whyus {
    margin: var(--space-16) 0;
}

#whyus h2 {
    text-align: left;
    margin-bottom: var(--space-8);
    font-size: var(--text-2xl);
    color: var(--color-text-bright);
}

#whyus > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

#whyus > div > div {
    text-align: left;
    padding: var(--space-8) 0;
    border-bottom: 1px solid var(--color-border);
}

#whyus figure {
    display: none;
}

#whyus h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-gold);
    margin: 0 0 var(--space-3);
}

#whyus p {
    font-size: var(--text-base);
    color: var(--color-text-dim);
    margin: 0;
    line-height: 1.8;
}

#contact {
    text-align: center;
    padding: var(--space-12) 0;
    background: transparent;
    border-radius: 0;
    margin-top: var(--space-12);
    border-top: 1px solid var(--color-border);
}

#contact h2 {
    margin: 0 0 var(--space-6);
    font-size: var(--text-2xl);
    color: var(--color-text-bright);
}

#contact a {
    display: inline-block;
    padding: 0;
    background: transparent;
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-bottom: 1px solid var(--color-gold-dim);
    border-radius: 0;
    text-decoration: none;
}

#contact a:hover {
    transform: none;
    box-shadow: none;
    color: var(--color-gold-bright);
    border-bottom-color: var(--color-gold-bright);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--color-bg-warm);
    border-top: 1px solid var(--color-border-strong);
    padding: var(--space-12) var(--space-6);
    margin-top: 0;
    text-align: center;
}

.site-footer p {
    max-width: var(--content-width);
    margin: 0 auto var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
}

.site-footer__nav a {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.site-footer__nav a:hover {
    color: var(--color-gold);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes breatheIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   Heading anchor links — small § in the gutter, copies a deep link
   ========================================================================== */
.post__content h2,
.post__content h3,
.chapter__content h2,
.chapter__content h3 {
    position: relative;
}

.heading-anchor {
    position: absolute;
    left: -1.25em;
    top: 0.15em;
    color: var(--color-gold-dim);
    opacity: 0;
    text-decoration: none;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 0.7em;
    line-height: 1;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.post__content h2:hover .heading-anchor,
.post__content h3:hover .heading-anchor,
.chapter__content h2:hover .heading-anchor,
.chapter__content h3:hover .heading-anchor,
.heading-anchor:focus-visible {
    opacity: 1;
}

.heading-anchor:hover {
    color: var(--color-gold);
}

/* Touch devices: keep the anchor faintly visible since :hover doesn't apply */
@media (hover: none) {
    .heading-anchor { opacity: 0.4; }
    .heading-anchor:active { opacity: 1; color: var(--color-gold); }
}

/* On narrow screens the gutter disappears — tuck the anchor inline */
@media (max-width: 480px) {
    .heading-anchor {
        position: static;
        display: inline-block;
        margin-left: 0.5em;
        opacity: 0.4;
    }
}

/* ==========================================================================
   Reduced motion — respect the OS-level preference
   ==========================================================================
   Kill animations and movement-based hover transforms for readers who have
   asked the system not to animate things (vestibular sensitivity, etc).
   Color/opacity transitions stay — they don't move pixels around. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
    }

    html { scroll-behavior: auto; }

    /* Hover affordances that move pixels — stop moving them */
    .theme-toggle:hover { transform: none; }
    .essay-item:hover,
    .blog-list__item a:hover,
    .sessions-list__item a:hover { padding-left: 0 !important; }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-text-muted);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   Reading Toggles — font + theme buttons in the nav
   ========================================================================== */
.reading-toggle {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    transition: color var(--transition-fast),
                border-color var(--transition-fast),
                background var(--transition-fast),
                transform var(--transition-fast);
}

.reading-toggle:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.reading-toggle:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.font-toggle {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: -0.02em;
}

.font-toggle[aria-pressed="true"] {
    background: var(--color-gold-ember);
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* The existing .theme-toggle rules above still apply; this just keeps the
   rotate-on-hover behavior the previous pass introduced. */
.theme-toggle {
    font-family: var(--font-body);
    font-size: 16px;
}

/* ==========================================================================
   Foundations — sessions map (foundations/index.html)
   ========================================================================== */
.foundations-page__header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.foundations-page__eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-6);
}

.foundations-page__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--text-5xl);
    color: var(--color-text-bright);
    margin: 0 0 var(--space-6);
    letter-spacing: 0.02em;
    line-height: 1;
}

.foundations-page__deck {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--text-lg);
    color: var(--color-text-dim);
    line-height: 1.65;
    max-width: 42ch;
    margin: 0 auto var(--space-12);
}

.sessions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--color-border);
}

.sessions-list__item {
    margin: 0;
    border-bottom: 1px solid var(--color-border);
    transition: border-color var(--transition-fast);
}

.sessions-list__item:hover {
    border-bottom-color: var(--color-gold-dim);
}

.sessions-list__item a {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    grid-template-areas:
        "numeral title"
        "numeral tagline";
    column-gap: var(--space-8);
    row-gap: var(--space-2);
    align-items: baseline;
    padding: var(--space-8) var(--space-2);
    text-decoration: none;
    color: inherit;
    transition: padding var(--transition-base);
}

.sessions-list__item a:hover {
    padding-left: var(--space-6);
}

.sessions-list__numeral {
    grid-area: numeral;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: var(--text-3xl);
    color: var(--color-gold-dim);
    line-height: 1;
    letter-spacing: 0.02em;
    align-self: start;
    transition: color var(--transition-fast);
    text-shadow: var(--heading-glow);
}

.sessions-list__item a:hover .sessions-list__numeral {
    color: var(--color-gold);
}

.sessions-list__title {
    grid-area: title;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--text-2xl);
    color: var(--color-text-bright);
    line-height: 1.2;
    transition: color var(--transition-fast);
}

.sessions-list__item a:hover .sessions-list__title {
    color: var(--color-gold);
}

.sessions-list__tagline {
    grid-area: tagline;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--color-text-dim);
    line-height: 1.7;
    margin: 0;
    max-width: 56ch;
}

/* ==========================================================================
   Session pages (foundations/session-N.html)
   ========================================================================== */
.session-page__eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-text-muted);
    text-align: center;
    margin: 0 0 var(--space-3);
}

.session-page__numeral {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: var(--text-display);
    color: var(--color-gold);
    text-align: center;
    line-height: 0.9;
    margin: 0 0 var(--space-6);
    letter-spacing: 0.02em;
    text-shadow: var(--heading-glow);
}

.session-page__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--text-3xl);
    color: var(--color-text-bright);
    text-align: center;
    margin: 0 auto var(--space-4);
    max-width: 18ch;
    line-height: 1.15;
}

.session-page__deck {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: var(--text-lg);
    color: var(--color-text-dim);
    text-align: center;
    max-width: 38ch;
    margin: 0 auto var(--space-16);
    line-height: 1.65;
}

.session-page__placeholder {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--text-base);
    color: var(--color-text-muted);
    text-align: center;
    padding: var(--space-16) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin: 0;
    position: relative;
}

.session-page__placeholder::before {
    content: '\2766';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    background: var(--color-bg);
    padding: 0 var(--space-3);
    color: var(--color-gold-dim);
    font-size: var(--text-base);
    line-height: 1;
    opacity: 0.7;
}

.session-page__pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-top: var(--space-16);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
}

.session-page__pager-link {
    display: block;
    padding: var(--space-3) 0;
    text-decoration: none;
    color: var(--color-text-dim);
    transition: color var(--transition-fast);
}

.session-page__pager-link:hover {
    color: var(--color-gold);
}

.session-page__pager-link--prev {
    text-align: left;
}

.session-page__pager-link--next {
    text-align: right;
    grid-column: 2;
}

.session-page__pager-eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: var(--space-2);
}

.session-page__pager-numeral {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--color-gold-dim);
    margin-right: var(--space-2);
    transition: color var(--transition-fast);
}

.session-page__pager-link:hover .session-page__pager-numeral {
    color: var(--color-gold);
}

.session-page__pager-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 300;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.session-page__pager-link:hover .session-page__pager-title {
    color: var(--color-gold);
}

/* ==========================================================================
   Homepage — Foundations editorial pull
   (Replaces .home-foundations gold-button block with a quieter editorial
   callout. The whole block is a single anchor; the Roman numerals show
   the scope of the study without a hand-holding CTA.)
   ========================================================================== */
.foundations-pull {
    display: block;
    max-width: var(--content-width);
    margin: var(--space-24) auto;
    padding: var(--space-16) var(--space-8);
    text-align: center;
    text-decoration: none;
    color: inherit;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    transition: border-color var(--transition-base);
}

.foundations-pull::before,
.foundations-pull::after {
    content: '\2766';
    position: absolute;
    left: 50%;
    color: var(--color-gold-dim);
    font-size: var(--text-base);
    line-height: 1;
    background: var(--color-bg);
    padding: 0 var(--space-4);
    transition: color var(--transition-base);
}

.foundations-pull::before {
    top: 0;
    transform: translate(-50%, -50%);
}

.foundations-pull::after {
    bottom: 0;
    transform: translate(-50%, 50%);
}

.foundations-pull:hover {
    border-color: var(--color-gold-dim);
    color: inherit;
}

.foundations-pull:hover::before,
.foundations-pull:hover::after {
    color: var(--color-gold);
}

.foundations-pull__eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-6);
}

.foundations-pull__title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--text-4xl);
    font-weight: 300;
    color: var(--color-gold);
    margin: 0 0 var(--space-6);
    line-height: 1;
    text-shadow: var(--heading-glow);
    transition: color var(--transition-fast);
}

.foundations-pull:hover .foundations-pull__title {
    color: var(--color-gold-bright);
}

.foundations-pull__deck {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-dim);
    line-height: 1.85;
    max-width: 50ch;
    margin: 0 auto var(--space-12);
}

.foundations-pull__numerals {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-6);
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--text-xl);
    color: var(--color-gold-dim);
    margin: 0;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
}

.foundations-pull__numerals span {
    line-height: 1;
}

.foundations-pull:hover .foundations-pull__numerals {
    color: var(--color-gold);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --text-base: 1.05rem;
        --text-4xl: 2.5rem;
        --text-5xl: 3.25rem;
        --text-3xl: 2rem;
        --text-2xl: 1.625rem;
        --text-display: 4rem;
    }

    .site-header {
        position: sticky;
        padding: var(--space-4) var(--space-4);
    }

    .site-nav {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-3);
    }

    .site-nav__logo {
        font-size: 1.125rem;
        margin-right: auto;
    }

    .site-nav__menu {
        gap: var(--space-5);
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .site-nav__menu a {
        font-size: var(--text-xs);
    }

    .reading-toggle {
        width: 32px;
        height: 32px;
    }

    .theme-toggle { font-size: 14px; }
    .font-toggle { font-size: 13px; }

    .sessions-list__item a {
        grid-template-columns: 3rem 1fr;
        column-gap: var(--space-5);
        padding: var(--space-6) 0;
    }

    .sessions-list__numeral {
        font-size: var(--text-2xl);
    }

    .sessions-list__title {
        font-size: var(--text-xl);
    }

    .session-page__numeral {
        font-size: var(--text-5xl);
    }

    .session-page__title {
        font-size: var(--text-2xl);
    }

    .foundations-pull {
        margin: var(--space-16) var(--space-4);
        padding: var(--space-12) var(--space-4);
    }

    .foundations-pull__title {
        font-size: var(--text-3xl);
    }

    .foundations-pull__numerals {
        gap: var(--space-4);
        font-size: var(--text-lg);
    }

    .site-main {
        padding: 0 var(--space-4);
        margin: var(--space-8) auto;
    }

    .post,
    .chapter,
    article {
        padding: 0;
    }

    .home-hero {
        min-height: 50vh;
    }

    .home-hero__overlay {
        padding: var(--space-16) var(--space-4) var(--space-12);
    }

    .essay-item {
        flex-direction: column;
        gap: var(--space-4);
    }

    .essay-item__thumb {
        width: 100%;
        height: 180px;
    }

    .post__content figure,
    .chapter__content figure {
        margin-left: 0;
        margin-right: 0;
    }

    blockquote {
        padding-left: var(--space-8);
        margin-left: 0;
        margin-right: 0;
    }

    #about {
        grid-template-columns: 1fr;
    }

    #about figure {
        order: -1;
    }

    .about-epigraph {
        padding: var(--space-12) 0 var(--space-8);
    }

    .home-foundations__overlay {
        padding: var(--space-16) var(--space-4);
    }
}

@media (max-width: 480px) {
    :root {
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
    }

    .site-nav__menu {
        gap: var(--space-4);
    }

    .are-vertically-aligned-top {
        grid-template-columns: 1fr 1fr;
    }

    .essay-item__thumb {
        height: 140px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    body::before,
    body::after {
        display: none;
    }

    .site-header,
    .site-footer,
    .chapter__nav {
        display: none;
    }

    body {
        font-size: 11pt;
        line-height: 1.5;
        color: #1a1a1a;
        background: #fff;
    }

    .post,
    .chapter,
    article {
        background: none;
        box-shadow: none;
        padding: 0;
    }

    a {
        color: #1a1a1a;
        text-decoration: underline;
    }

    .site-main {
        max-width: 100%;
        padding: 0;
        margin: 0;
        animation: none;
    }

    blockquote {
        border-left-color: #999;
        color: #333;
        background: transparent;
    }

    .post__content > p:first-of-type::first-letter,
    .chapter__content > p:first-of-type::first-letter {
        color: #1a1a1a;
        text-shadow: none;
    }

    .home-hero {
        min-height: auto;
        background: none !important;
    }

    .home-foundations {
        background: none !important;
    }

    .essay-item__thumb {
        display: none;
    }
}
