/* ==========================================================================
   Choo Thomas - "Heaven Is So Real"  |  Stylesheet v2  ("Ascent")
   --------------------------------------------------------------------------
   MAP   1 Tokens & themes   2 Base   3 Header & nav   4 Tools panel   5 Hero & page band
         6 Article & prose   7 Components (cards, buttons, testimonials, resources, faq, order, timeline)
         8 Home sections     9 Footer    10 Floating UI (audio, verse popover, back-to-top)
         11 Motion & reveal  12 Korean   13 Responsive   14 Print
   RULES - Never hard-code a colour outside section 1: use the tokens, so every theme keeps working.
         - Theme ids here MUST match get_themes() in includes/functions.php.
         - Every text/background pair is contrast-tested by tests/test_contrast.py (WCAG AA, 4.5:1).
   ========================================================================== */

/* ============================== 1. TOKENS & THEMES ============================== */
:root {
    --font-scale: 1;
    --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
    --font-body: 'Lora', Georgia, 'Times New Roman', serif;
    --font-ui: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --header-h: 68px;
    --measure: 68ch;
    --email-ratio: 11.230;        /* width/height of assets/images/email-robert.png (Make_Email_Image.py --patch-css) */
    --page-w: 1120px;

    --art-dawn: url('../images/art/hero_dawn-1584.webp');
    --art-night: url('../images/art/hero_night-1584.webp');
    --art-garden: url('../images/art/garden-1584.webp');
    --art-gates: url('../images/art/gates-1584.webp');
    --art-urgent: url('../images/art/urgent-1584.webp');
}

@media (max-width: 900px) {
    :root {
        --art-dawn: url('../images/art/hero_dawn-1024.webp');
        --art-night: url('../images/art/hero_night-1024.webp');
        --art-garden: url('../images/art/garden-1024.webp');
        --art-gates: url('../images/art/gates-1024.webp');
        --art-urgent: url('../images/art/urgent-1024.webp');
    }
}

@media (max-width: 560px) {
    :root {
        --art-dawn: url('../images/art/hero_dawn-640.webp');
        --art-night: url('../images/art/hero_night-640.webp');
        --art-garden: url('../images/art/garden-640.webp');
        --art-gates: url('../images/art/gates-640.webp');
        --art-urgent: url('../images/art/urgent-640.webp');
    }
}

/* ---- Theme 1: Dawn of Glory (default light): ivory, gold, morning sky ---- */
:root,
[data-theme="dawn-of-glory"] {
    color-scheme: light;
    --bg: #FBF8F1;
    --bg-alt: #F3ECDB;
    --surface: #FFFFFF;
    --surface-2: #FAF5E8;
    --ink: #2B2A33;
    --ink-soft: #5B5764;
    --line: #E6DCC4;
    --heading: #1F2A44;
    --link: #2D5A94;
    --link-hover: #1B3F70;
    --accent: #8A5E0C;            /* gold used as TEXT: dark enough for AA on ivory */
    --gold: #D4A22B;              /* gold used for decoration / fills */
    --gold-2: #F0CE72;
    --on-gold: #2B1B00;
    --focus: #2D5A94;
    --glass: rgba(251, 248, 241, .84);
    --shadow: 31, 42, 68;         /* rgb triplet for shadows */
    --hero-art: var(--art-dawn);
    --hero-filter: none;
    --hero-veil: linear-gradient(180deg, rgba(251,248,241,.80) 0%, rgba(251,248,241,.40) 34%, rgba(251,248,241,0) 62%, var(--bg) 100%);
    --hero-ink: #1F2A44;
    --hero-ink-soft: #2E3A5A;
    --band-veil: linear-gradient(180deg, rgba(251,248,241,.25), rgba(251,248,241,0) 40%, var(--bg) 100%);
    --paper: none;
    --hero-shadow: 0 1px 18px rgba(255,255,255,.35);
}

/* ---- Theme 2: Gates of Pearl: pearl white and amethyst ---- */
[data-theme="gates-of-pearl"] {
    color-scheme: light;
    --bg: #F8F6FB; --bg-alt: #EFEAF6; --surface: #FFFFFF; --surface-2: #F5F1FA;
    --ink: #2A2540; --ink-soft: #5D5775; --line: #DDD3EB;
    --heading: #2E2150; --link: #5B3FA0; --link-hover: #3F2878;
    --accent: #6A45A5; --gold: #C9A6E4; --gold-2: #E4D0F3; --on-gold: #240F40; --focus: #5B3FA0;
    --glass: rgba(248, 246, 251, .86); --shadow: 46, 33, 80;
    --hero-art: var(--art-gates); --hero-filter: none;
    --hero-veil: linear-gradient(180deg, rgba(248,246,251,.74) 0%, rgba(248,246,251,.34) 36%, rgba(248,246,251,0) 64%, var(--bg) 100%);
    --hero-ink: #2E2150; --hero-ink-soft: #3E2F66;
    --band-veil: linear-gradient(180deg, rgba(248,246,251,.25), rgba(248,246,251,0) 40%, var(--bg) 100%);
}

/* ---- Theme 3: Paradise Garden: living green ---- */
[data-theme="paradise-garden"] {
    --hero-shadow: 0 1px 3px rgba(0,0,0,.7), 0 0 26px rgba(0,0,0,.65);
    color-scheme: light;
    --bg: #F4F8F0; --bg-alt: #E8F0E1; --surface: #FFFFFF; --surface-2: #F0F6EA;
    --ink: #1F3326; --ink-soft: #4B6354; --line: #D3E2CA;
    --heading: #17452A; --link: #25683B; --link-hover: #174A28;
    --accent: #2B6E3F; --gold: #6BBF7A; --gold-2: #A8DDB0; --on-gold: #0C2616; --focus: #25683B;
    --glass: rgba(244, 248, 240, .86); --shadow: 23, 69, 42;
    --hero-art: var(--art-garden); --hero-filter: none;
    --hero-veil: linear-gradient(180deg, rgba(8,40,20,.62) 0%, rgba(8,40,20,.38) 45%, rgba(244,248,240,.0) 72%, var(--bg) 100%);
    --hero-ink: #FFFFFF; --hero-ink-soft: #EEF7EA;
    --band-veil: linear-gradient(180deg, rgba(8,40,20,.18), rgba(244,248,240,0) 45%, var(--bg) 100%);
}

/* ---- Theme 4: Living Scroll: warm parchment for long reading ---- */
[data-theme="living-scroll"] {
    color-scheme: light;
    --bg: #F1E6CC; --bg-alt: #E8DAB8; --surface: #F8F0DB; --surface-2: #F3E8CB;
    --ink: #3A2A14; --ink-soft: #66502F; --line: #D6C298;
    --heading: #5B2A0A; --link: #7A3510; --link-hover: #55230A;
    --accent: #7A4A12; --gold: #B9822F; --gold-2: #DDB566; --on-gold: #2A1500; --focus: #7A3510;
    --glass: rgba(241, 230, 204, .88); --shadow: 91, 42, 10;
    --hero-art: var(--art-dawn); --hero-filter: sepia(.85) saturate(.9) brightness(.97);
    --hero-veil: linear-gradient(180deg, rgba(241,230,204,.78) 0%, rgba(241,230,204,.36) 36%, rgba(241,230,204,0) 62%, var(--bg) 100%);
    --hero-ink: #4A1F06; --hero-ink-soft: #5B3414;
    --band-veil: linear-gradient(180deg, rgba(241,230,204,.25), rgba(241,230,204,0) 40%, var(--bg) 100%);
    --paper: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .22  0 0 0 0 .08  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.35'/></svg>");
}

/* ---- Theme 5: Throne Room (default dark): indigo night and gold ---- */
[data-theme="throne-room"] {
    --hero-shadow: 0 1px 3px rgba(0,0,0,.7), 0 0 26px rgba(0,0,0,.65);
    color-scheme: dark;
    --bg: #0B1020; --bg-alt: #0F1630; --surface: #141B38; --surface-2: #192245;
    --ink: #EDEAF5; --ink-soft: #B4B1CB; --line: #2A3358;
    --heading: #F5E6B8; --link: #F0CB6E; --link-hover: #FFE2A0;
    --accent: #E5B94E; --gold: #E5B94E; --gold-2: #F6DB91; --on-gold: #1A1300; --focus: #F0CB6E;
    --glass: rgba(11, 16, 32, .82); --shadow: 0, 0, 0;
    --hero-art: var(--art-night); --hero-filter: none;
    --hero-veil: linear-gradient(180deg, rgba(11,16,32,.55) 0%, rgba(11,16,32,.10) 42%, rgba(11,16,32,0) 62%, var(--bg) 100%);
    --hero-ink: #FFFFFF; --hero-ink-soft: #E7E4F2;
    --band-veil: linear-gradient(180deg, rgba(11,16,32,.35), rgba(11,16,32,.05) 40%, var(--bg) 100%);
}

/* ---- Theme 6: Midnight Watch: charcoal and ember, easy on the eyes at night ---- */
[data-theme="midnight-watch"] {
    --hero-shadow: 0 1px 3px rgba(0,0,0,.7), 0 0 26px rgba(0,0,0,.65);
    color-scheme: dark;
    --bg: #0E0F12; --bg-alt: #131519; --surface: #181B21; --surface-2: #1E222A;
    --ink: #F2EFEA; --ink-soft: #B8B3AB; --line: #2B3038;
    --heading: #FFD9B0; --link: #F6A765; --link-hover: #FFC594;
    --accent: #F29A4A; --gold: #F29A4A; --gold-2: #FFC48A; --on-gold: #1C0E00; --focus: #F6A765;
    --glass: rgba(14, 15, 18, .84); --shadow: 0, 0, 0;
    --hero-art: var(--art-urgent); --hero-filter: none;
    --hero-veil: linear-gradient(180deg, rgba(14,15,18,.55) 0%, rgba(14,15,18,.18) 42%, rgba(14,15,18,0) 62%, var(--bg) 100%);
    --hero-ink: #FFFFFF; --hero-ink-soft: #ECE7DF;
    --band-veil: linear-gradient(180deg, rgba(14,15,18,.35), rgba(14,15,18,.05) 40%, var(--bg) 100%);
}

/* ================================== 2. BASE ================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
    font-size: calc(112.5% * var(--font-scale));   /* 18px at 100% */
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
    transition: background-color .45s var(--ease), color .45s var(--ease);
}
body::before {                      /* paper grain over EVERYTHING (so band and page match); only Living Scroll sets --paper */
    content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background-image: var(--paper); opacity: .5; mix-blend-mode: multiply;
}

img, video, svg { max-width: 100%; height: auto; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.icon--sm { width: 1rem; height: 1rem; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--link-hover); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--heading); line-height: 1.15; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 3.9rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 3rem 0 1.1rem; }
h3 { font-size: clamp(1.45rem, 3vw, 1.8rem); margin: 2.2rem 0 .7rem; }
h4 { font-size: 1.25rem; margin: 1.6rem 0 .5rem; }
p { margin: 0 0 1.35rem; }
strong, b { font-weight: 700; }
hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 2.5rem 0; }
::selection { background: var(--gold-2); color: #1b1300; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 3000; background: var(--gold); color: var(--on-gold); padding: .7rem 1.1rem; border-radius: var(--radius-sm); font: 700 .9rem var(--font-ui); text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 1rem; }

/* ================================ 3. HEADER & NAV ================================ */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2100; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); background: linear-gradient(90deg, var(--gold), var(--gold-2)); }

.site-header {
    font-size: 18px;               /* fixed: header sizes are in em so they do NOT scale with the text-size control */
    position: sticky; top: 0; z-index: 2000;
    background: var(--glass);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    transition: box-shadow .3s, background-color .45s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(var(--shadow), .12); }
.site-header__inner { max-width: 1280px; margin: 0 auto; padding: 0 1.25em; min-height: var(--header-h); display: flex; align-items: center; gap: 1.25em; }

.brand { display: flex; align-items: center; gap: .65em; text-decoration: none; color: var(--heading); flex: none; }
.brand:hover { color: var(--heading); }
.brand__mark { width: 2em; height: 2em; color: var(--gold); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--gold) 55%, transparent)); transition: transform .8s var(--ease); }
.brand:hover .brand__mark { transform: rotate(45deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.45em; letter-spacing: .01em; }
.brand__tag { font-family: var(--font-ui); font-size: .62em; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }

.site-nav { display: flex; align-items: center; gap: 1em; margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: .15em; list-style: none; margin: 0; padding: 0; }
.site-nav__list a, .sub-toggle {
    display: inline-flex; align-items: center; gap: .3em; padding: .55em .8em; border-radius: 999px;
    font: 700 .74em var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none;
    background: none; border: 0; cursor: pointer; white-space: nowrap; transition: color .2s, background-color .2s;
}
.site-nav__list a:hover, .sub-toggle:hover { color: var(--accent); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.site-nav__list a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.has-sub { position: relative; }
.sub-toggle .icon { transition: transform .25s var(--ease); }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub-menu {
    position: absolute; top: calc(100% + .4em); right: 0; min-width: 14em; list-style: none; margin: 0; padding: .45em;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 18px 50px rgba(var(--shadow), .2);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.sub-toggle[aria-expanded="true"] + .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: flex; width: 100%; border-radius: var(--radius-sm); padding: .65em .85em; }

.site-tools { display: flex; align-items: center; gap: .35em; flex: none; margin-left: .25em; }
.icon-btn.nav-toggle { display: none; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .35em; min-width: 2.6em; height: 2.6em; padding: 0 .55em;
    border-radius: 999px; border: 1px solid transparent; background: none; color: var(--ink); cursor: pointer;
    font: 700 .74em var(--font-ui); letter-spacing: .06em; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.icon-btn:hover { background: color-mix(in srgb, var(--gold) 16%, transparent); border-color: color-mix(in srgb, var(--gold) 50%, transparent); color: var(--accent); }
.icon-btn[aria-expanded="true"] { background: color-mix(in srgb, var(--gold) 22%, transparent); border-color: var(--gold); }
.icon-btn--primary { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.icon-btn--primary:hover { background: var(--gold-2); color: var(--on-gold); }
.icon-btn--sm { min-width: 2em; height: 2em; padding: 0; }
.lang-link { text-decoration: none; }

.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--surface); padding: .75em 1.25em 1.5em; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-menu ul { list-style: none; margin: 0 0 1em; padding: 0; }
.mobile-menu li a { display: block; padding: .95em .25em; border-bottom: 1px solid var(--line); font: 700 .88em var(--font-ui); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.mobile-menu li a[aria-current="page"] { color: var(--accent); }
.mobile-menu .btn { width: 100%; }


/* .btn and .icon-btn inside the fixed-size header use em so a large text setting cannot break the bar */
.site-header .btn { font-size: .8em; padding: .95em 1.7em; }
.site-header .btn--sm { font-size: .72em; padding: .62em 1.15em; }
.site-header .icon { width: 1.25em; height: 1.25em; }
.site-header .icon--sm { width: 1em; height: 1em; }

/* =============================== 4. TOOLS PANEL =============================== */
.tools-panel {
    position: absolute; right: max(1em, calc((100vw - 1280px) / 2 + 1em)); top: calc(100% + .5em); width: min(23em, calc(100vw - 2em));
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.1em 1.1em .9em;
    box-shadow: 0 24px 70px rgba(var(--shadow), .28); animation: pop-in .22s var(--ease);
}
.tools-panel__section { padding-bottom: .9em; margin-bottom: .9em; border-bottom: 1px solid var(--line); }
.tools-panel__section:last-child { border: 0; margin: 0; padding-bottom: 0; }
.tools-panel__label { font: 700 .68em var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .6em; }
.theme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5em; }
.theme-chip { display: flex; align-items: center; gap: .6em; padding: .5em .6em; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; font: 700 .76em var(--font-ui); text-align: left; transition: border-color .2s, transform .2s; }
.theme-chip:hover { border-color: var(--gold); transform: translateY(-1px); }
.theme-chip[aria-checked="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 35%, transparent); }
.theme-chip__swatch { position: relative; width: 2em; height: 2em; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); flex: none; overflow: hidden; }
.theme-chip__swatch i { position: absolute; left: 50%; top: 50%; width: .45em; height: .45em; margin: -.225em 0 0 -.225em; border-radius: 50%; }
.size-control { display: flex; align-items: center; justify-content: space-between; gap: .75em; }
.size-control output { font: 700 .95em var(--font-ui); min-width: 3.5em; text-align: center; }
.tools-panel__actions { display: flex; flex-direction: column; align-items: stretch; gap: .5em; }
.switch { display: flex; align-items: center; gap: .6em; font: 700 .8em var(--font-ui); cursor: pointer; padding-top: .3em; }
.switch input { width: 1.15em; height: 1.15em; accent-color: var(--gold); }

/* ================================ 5. HERO & PAGE BAND ================================ */
.hero { position: relative; isolation: isolate; min-height: clamp(30rem, 86vh, 50rem); display: grid; place-items: center; text-align: center; overflow: hidden; }
.hero__art, .page-band__art { position: absolute; inset: 0; background-size: cover; background-position: center 40%; filter: var(--hero-filter); will-change: transform; }
.hero__art { background-image: var(--hero-art); z-index: -3; }
.hero__rays {
    position: absolute; inset: -40% -20% auto; height: 180%; z-index: -2; pointer-events: none; transform-origin: 50% 62%;
    background: repeating-conic-gradient(from 0deg at 50% 62%, rgba(255,246,214,0) 0 6deg, rgba(255,246,214,.16) 6deg 9deg, rgba(255,246,214,0) 9deg 14deg);
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 62%, #000 0, transparent 72%); mask-image: radial-gradient(ellipse 60% 55% at 50% 62%, #000 0, transparent 72%);
    mix-blend-mode: soft-light; opacity: .9; animation: rays-spin 220s linear infinite;
}
.hero__veil { position: absolute; inset: 0; z-index: -1; background: var(--hero-veil); }
.hero__inner { max-width: 60rem; padding: clamp(3rem, 8vh, 6rem) 1.5rem clamp(5rem, 12vh, 8rem); }
.hero__eyebrow { font: 700 .78rem var(--font-ui); letter-spacing: .34em; text-transform: uppercase; color: var(--hero-ink-soft); margin: 0 0 1.25rem; text-shadow: var(--hero-shadow); }
.hero__title {
    font-size: clamp(3.1rem, 10.5vw, 8rem); line-height: .95; margin: 0 0 1.4rem; color: var(--hero-ink); font-weight: 600; letter-spacing: -.005em;
    text-shadow: var(--hero-shadow);
}
.hero__bang { color: var(--gold); font-style: italic; margin-left: .04em; }
.hero__sub { font-size: clamp(1.1rem, 2.3vw, 1.4rem); font-style: italic; color: var(--hero-ink-soft); max-width: 40rem; margin: 0 auto 2.2rem; text-shadow: var(--hero-shadow); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }
.hero__scroll { position: absolute; left: 50%; bottom: 1.5rem; translate: -50% 0; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; color: var(--hero-ink); border: 1px solid color-mix(in srgb, var(--hero-ink) 40%, transparent); background: color-mix(in srgb, var(--bg) 22%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: bob 2.6s ease-in-out infinite; }
.hero__scroll:hover { color: var(--hero-ink); border-color: var(--gold); }

.page-band { position: relative; isolation: isolate; height: clamp(11rem, 26vw, 19rem); overflow: hidden; }
.page-band__art { z-index: -2; background-image: var(--art-dawn); }
.art-gates .page-band__art { background-image: var(--art-gates); }
.art-garden .page-band__art { background-image: var(--art-garden); }
.art-urgent .page-band__art { background-image: var(--art-urgent); }
.art-night .page-band__art { background-image: var(--art-night); }
.page-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--band-veil); }
[data-theme="living-scroll"] .page-band__art { filter: sepia(.85) saturate(.9) brightness(.97); }

/* ============================== 6. ARTICLE & PROSE ============================== */
.site-main { max-width: var(--page-w); margin: 0 auto; padding: 0 1.25rem 4rem; position: relative; }
.hero-page .site-main { margin-top: clamp(-7rem, -12vw, -3.5rem); }
.hero-home .site-main { padding-top: 1rem; }

.content-article {
    position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px -20px rgba(var(--shadow), .22), 0 2px 0 color-mix(in srgb, var(--gold) 55%, transparent) inset;
    padding: clamp(1.6rem, 5.5vw, 4.25rem); max-width: 56rem; margin: 0 auto;
}
.article-header { text-align: center; margin-bottom: 2.4rem; padding-bottom: 2rem; position: relative; }
.article-header::after { content: ''; position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: min(14rem, 60%); height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.article-header::before { content: ''; position: absolute; left: 50%; bottom: -5px; translate: -50% 0; width: 10px; height: 10px; rotate: 45deg; background: var(--gold); box-shadow: 0 0 0 4px var(--surface); z-index: 1; }
.article-header h1 { margin-bottom: .75rem; }
.article-intro { font-size: clamp(1.1rem, 2.2vw, 1.3rem); font-style: italic; color: var(--ink-soft); margin: 0 auto; max-width: 38rem; }
.article-date { font: 700 .72rem var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin: 1rem 0 0; }
.article-content { max-width: var(--measure); margin-inline: auto; }
.article-content > h2:first-child { margin-top: 0; }

.article-content h2 { position: relative; padding-bottom: .55rem; }
.article-content h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 3.5rem; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.lead-text { font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.5; color: var(--heading); font-weight: 500; }
.about-intro .lead-text::first-letter, .drop-cap::first-letter { font-family: var(--font-display); font-size: 4.2em; float: left; line-height: .78; padding: .08em .1em 0 0; color: var(--gold); font-weight: 700; }

.article-content ul, .article-content ol { padding-left: 0; list-style: none; margin: 0 0 1.5rem; }
.article-content ul li, .article-content ol li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.article-content ul li::before { content: ''; position: absolute; left: .35rem; top: .72em; width: .5rem; height: .5rem; rotate: 45deg; background: var(--gold); }
.article-content ol { counter-reset: n; }
.article-content ol li { counter-increment: n; padding-left: 2.4rem; }
.article-content ol li::before { content: counter(n); position: absolute; left: 0; top: .1em; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--accent); font: 700 .8rem/1.7rem var(--font-ui); text-align: center; }

blockquote, .scripture, .message-quote, .choo-quote, .prayer-text {
    position: relative; margin: 2.2rem 0; padding: 1.6rem 1.8rem 1.6rem 2.2rem; border-left: 3px solid var(--gold);
    background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 12%, transparent), transparent 85%);
    border-radius: 0 var(--radius-md) var(--radius-md) 0; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.55; font-style: italic; color: var(--heading);
}
blockquote p:last-child, .scripture p:last-child, .prayer-text p:last-child { margin-bottom: 0; }
blockquote::before { content: '\201C'; position: absolute; left: .45rem; top: -.15rem; font-size: 4rem; line-height: 1; color: var(--gold); opacity: .55; font-family: var(--font-display); }
blockquote cite, .scripture cite, .scripture span { display: block; margin-top: .6rem; font: 700 .74rem var(--font-ui); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.bible-ref { text-decoration: none; border-bottom: 1px dotted var(--accent); color: var(--accent); white-space: nowrap; }
.bible-ref b { font-weight: 700; }
.bible-ref:hover { color: var(--link-hover); border-bottom-style: solid; background: color-mix(in srgb, var(--gold) 18%, transparent); }

.featured-img, .featured-image-container img { display: block; margin: 1.5rem auto; border-radius: var(--radius-md); box-shadow: 0 20px 50px -12px rgba(var(--shadow), .35); max-width: min(100%, 22rem); }
table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: .95rem; }
th, td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; }
th { font: 700 .72rem var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* ============================== 7. COMPONENTS ============================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .95rem 1.7rem; border-radius: 999px; border: 1.5px solid transparent;
    font: 700 .8rem var(--font-ui); letter-spacing: .13em; text-transform: uppercase; text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .62rem 1.15rem; font-size: .72rem; }
.btn--gold, .btn-primary { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%); color: var(--on-gold); box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--gold) 70%, transparent); }
.btn--gold:hover, .btn-primary:hover { color: var(--on-gold); box-shadow: 0 14px 34px -6px color-mix(in srgb, var(--gold) 85%, transparent); }
.btn--ghost { background: color-mix(in srgb, var(--surface) 55%, transparent); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { color: var(--accent); border-color: var(--gold); }
.btn--hero { background: color-mix(in srgb, var(--hero-ink) 8%, transparent); color: var(--hero-ink); border-color: color-mix(in srgb, var(--hero-ink) 55%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--hero:hover { color: var(--hero-ink); border-color: var(--gold); background: color-mix(in srgb, var(--hero-ink) 14%, transparent); }
.site-nav__cta { margin-left: .25rem; flex: none; }
.book-promo .content-article { padding: 1.75rem 2.25rem; }

/* Cards shared by features, resources, products, testimonials */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 3rem 0; }
.feature-card {
    position: relative; display: block; padding: 2rem 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.feature-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 60%); opacity: 0; transition: opacity .4s; }
.feature-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 26px 60px -18px rgba(var(--shadow), .35); color: var(--ink); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { position: relative; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; margin-bottom: 1.1rem; color: var(--on-gold); background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--gold) 70%, transparent); }
.feature-icon .icon { width: 1.6rem; height: 1.6rem; }
.feature-card h3 { position: relative; margin: 0 0 .5rem; font-size: 1.7rem; }
.feature-card p { position: relative; margin: 0; font-size: .96rem; color: var(--ink-soft); line-height: 1.65; }
.feature-card__more { position: relative; display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font: 700 .72rem var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.feature-card__more .icon { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.feature-card:hover .feature-card__more .icon { transform: translateX(5px); }

/* Testimonials: two flowing columns on wide screens */
.testimonials-container { column-count: 2; column-gap: 1.5rem; }
.testimonial { break-inside: avoid; position: relative; margin: 0 0 1.5rem; padding: 2.4rem 1.7rem 1.5rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.testimonial::before { content: '\201C'; position: absolute; left: 1.2rem; top: .2rem; font: 700 3.8rem/1 var(--font-display); color: var(--gold); opacity: .6; }
.testimonial:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 18px 40px -16px rgba(var(--shadow), .3); }
.testimonial blockquote { margin: 0; padding: 0; border: 0; background: none; font-family: var(--font-body); font-style: normal; font-size: .98rem; line-height: 1.7; color: var(--ink); border-radius: 0; }
.testimonial blockquote::before { display: none; }
.testimonial p { font-size: .98rem; line-height: 1.7; }
.testimonial p:last-of-type { margin-bottom: 0; }
.testimonial-author { margin: 1.1rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); font: 700 .72rem var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); text-align: right; }
.testimonial-call-to-action, .closing-message, .highlight-box, .action-box, .urgent-intro, .welcome-message, .related-links, .related-resources, .sharing-section {
    margin: 2.5rem 0; padding: 1.75rem 2rem; border-radius: var(--radius-md); border: 1px solid var(--line);
    background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 13%, var(--surface-2)), var(--surface-2));
}
.urgent-intro { border-left: 4px solid var(--gold); }
.action-box h3, .highlight-box h3, .related-links h2, .related-resources h2 { margin-top: 0; }

/* Resources and products */
.resource-section, .product-section { margin: 3rem 0; }
.resource-item, .product-item, .resource-card { padding: 1.6rem 1.75rem; margin: 1.1rem 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); transition: border-color .3s, box-shadow .3s; }
.resource-item:hover, .product-item:hover { border-color: var(--gold); box-shadow: 0 16px 40px -18px rgba(var(--shadow), .3); }
.resource-item h3, .product-item h3 { margin-top: 0; font-size: 1.55rem; }
.resource-item p:last-child, .product-item p:last-child { margin-bottom: 0; }
.resource-link, .download-link, .resource-btn {
    display: inline-flex; align-items: center; gap: .5rem; margin: .3rem .5rem .3rem 0; padding: .6rem 1.15rem; border-radius: 999px;
    border: 1.5px solid color-mix(in srgb, var(--gold) 70%, transparent); background: color-mix(in srgb, var(--gold) 12%, transparent);
    font: 700 .74rem var(--font-ui); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--accent); transition: all .25s var(--ease);
}
.resource-link:hover, .download-link:hover, .resource-btn:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); transform: translateY(-2px); }
.video-container { margin: 1.25rem 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 24px 60px -20px rgba(var(--shadow), .5); background: #000; }
.video-container video { display: block; width: 100%; border-radius: 0 !important; box-shadow: none !important; }
.purchase-options ul { display: flex; flex-wrap: wrap; gap: .6rem; margin: .6rem 0 0; }
.purchase-options li { padding: 0; margin: 0; }
.purchase-options li::before { display: none; }
.purchase-options li a { display: inline-block; padding: .55rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; font: 700 .76rem var(--font-ui); letter-spacing: .08em; text-decoration: none; }
.purchase-options li a:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }

/* "On this page" list (built by script.js for long articles) */
.toc { max-width: var(--measure); margin: 0 auto 2.5rem; padding: 1.1rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-2); }
.toc__label { margin: 0 0 .6rem; font: 700 .68rem var(--font-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.toc li { margin: 0; padding: 0; }
.toc li::before { display: none; }
.toc a { display: inline-block; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 700 .72rem var(--font-ui); letter-spacing: .04em; text-decoration: none; color: var(--ink); transition: all .2s; }
.toc a:hover { border-color: var(--gold); color: var(--accent); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); }

/* Email address shown as a picture (colour comes from the text colour, so it follows every theme) */
.email-img { display: inline-block; vertical-align: -.35em; line-height: 1; text-decoration: none; border-radius: 4px; }
.email-img__glyph { display: block; height: 1.45em; width: calc(1.45em * var(--email-ratio)); background-color: currentColor;
    -webkit-mask: url('../images/email-robert.png') no-repeat left center / contain; mask: url('../images/email-robert.png') no-repeat left center / contain; }
.email-img:hover { color: var(--link-hover); }

/* Video with several versions to play or download */
.video-versions { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.video-version { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .75rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: border-color .25s, box-shadow .25s; }
.video-version.is-active { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.video-version__text { display: flex; flex-direction: column; line-height: 1.35; }
.video-version__text span { font: .8rem var(--font-ui); color: var(--ink-soft); }
.video-version__actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.video-version__actions .resource-link { margin: 0; }
.article-content .video-versions li { padding-left: 1rem; }
.article-content .video-versions li::before { display: none; }

/* FAQ */
.faq-item { margin: 0 0 2.5rem; }
.faq-item > h2 { margin-top: 2.5rem; }
.faq-item h3 { font-size: 1.4rem; margin: 1.6rem 0 .45rem; padding-left: 1.7rem; position: relative; color: var(--heading); }
.faq-item h3::before { content: '?'; position: absolute; left: 0; top: .08em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--gold); color: var(--on-gold); font: 700 .75rem/1.2rem var(--font-ui); text-align: center; }
.faq-item h3 + p { padding-left: 1.7rem; }

/* Timeline */
.timeline { position: relative; margin: 2.5rem 0; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: .45rem; top: .3rem; bottom: .3rem; width: 2px; background: linear-gradient(var(--gold), color-mix(in srgb, var(--gold) 15%, transparent)); }
.timeline-item { position: relative; margin-bottom: 1.75rem; }
.timeline-item::before { content: ''; position: absolute; left: -1.95rem; top: .45rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--surface), 0 0 14px var(--gold); }
.timeline-item h4 { margin: 0 0 .25rem; color: var(--accent); }
.timeline-item p { margin: 0; }
.transcript-container { font-size: 1.02rem; }
.transcript-container h2 { font: 700 .78rem var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 1.6rem 0 .35rem; padding: 0; }
.transcript-container h2::after { display: none; }

/* ============================== 8. HOME SECTIONS ============================== */
.home-section { margin: clamp(3rem, 8vw, 6rem) 0; }
.section-eyebrow { display: block; text-align: center; font: 700 .74rem var(--font-ui); letter-spacing: .32em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.section-title { text-align: center; margin: 0 0 .75rem; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.section-subtitle { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; color: var(--ink-soft); font-style: italic; font-size: 1.1rem; }

.memorial-note { text-align: center; max-width: 46rem; margin: -3.5rem auto 0; position: relative; z-index: 2; padding: 2.2rem 2.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 30px 70px -24px rgba(var(--shadow), .35), 0 2px 0 var(--gold) inset; }
.memorial-note h2 { margin: 0 0 .6rem; font-size: 1.9rem; }
.memorial-note h2::after { display: none; }
.memorial-note p { margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.5; color: var(--ink); }

.book-spotlight { display: grid; grid-template-columns: minmax(0, 16rem) 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.book-spotlight__cover { position: relative; justify-self: center; perspective: 1200px; }
.book-spotlight__cover img { display: block; width: min(100%, 14rem); height: auto; border-radius: 4px 10px 10px 4px; box-shadow: -10px 18px 40px -8px rgba(var(--shadow), .55), 0 0 0 1px rgba(0,0,0,.08); transform: rotateY(-14deg) rotateX(2deg); transition: transform .7s var(--ease); }
.book-spotlight__cover:hover img { transform: rotateY(-4deg) rotateX(0deg) translateY(-4px); }
.book-spotlight__cover::after { content: ''; position: absolute; inset: 10% -12% -8%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 45%, transparent), transparent); filter: blur(24px); }
.book-spotlight__text .lead-text { margin-top: 0; }
.book-spotlight__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }

.scripture-band { position: relative; isolation: isolate; margin: clamp(3rem, 8vw, 6rem) calc(50% - 50vw); padding: clamp(4rem, 12vw, 8rem) 1.5rem; text-align: center; overflow: hidden; color: #fff; }
.scripture-band::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--art-gates) center / cover; }
.scripture-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,14,30,.62), rgba(10,14,30,.78)); }
.scripture-band blockquote { max-width: 46rem; margin: 0 auto; padding: 0; border: 0; background: none; color: #fff; font-size: clamp(1.5rem, 3.6vw, 2.3rem); text-shadow: 0 2px 20px rgba(0,0,0,.45); }
.scripture-band blockquote::before { position: static; display: block; font-size: 4.5rem; color: var(--gold-2); opacity: .9; height: 2.6rem; }
.scripture-band cite { color: var(--gold-2); }

.final-cta { text-align: center; padding: clamp(2.5rem, 7vw, 4.5rem) 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%), var(--surface); box-shadow: 0 30px 70px -30px rgba(var(--shadow), .3); }
.final-cta h2 { margin: 0 0 .7rem; font-size: clamp(2rem, 5vw, 3rem); }
.final-cta p { max-width: 38rem; margin: 0 auto 1.8rem; color: var(--ink-soft); }
.book-promo { margin-top: 3rem; }

/* ================================== 9. FOOTER ================================== */
.site-footer { margin-top: 2rem; padding: 3.5rem 1.25rem 2rem; background: var(--bg-alt); border-top: 1px solid var(--line); }
.site-footer__inner { max-width: var(--page-w); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.site-footer__name { font: 700 1.7rem var(--font-display); color: var(--heading); margin: 0 0 .75rem; }
.site-footer__name em { color: var(--accent); font-weight: 500; }
.site-footer__verse { font-style: italic; color: var(--ink-soft); max-width: 34rem; margin: 0 0 .8rem; font-size: .98rem; }
.site-footer__verse span { display: block; margin-top: .3rem; font: 700 .7rem var(--font-ui); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.site-footer__memorial { margin: 0; font: 700 .7rem var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.site-footer__nav li { margin-bottom: .55rem; }
.site-footer__nav a { font: 700 .76rem var(--font-ui); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__contact { max-width: var(--page-w); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); text-align: center; font: .9rem var(--font-ui); color: var(--ink-soft); }

/* ============================== 10. FLOATING UI ============================== */
.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1500; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent); background: var(--surface); color: var(--accent); cursor: pointer; box-shadow: 0 12px 30px rgba(var(--shadow), .25); transition: transform .25s var(--ease), background-color .25s; }
.back-to-top:hover { background: var(--gold); color: var(--on-gold); transform: translateY(-3px); }
body.has-player .back-to-top { bottom: 6.5rem; }

.audio-player {
    font-size: 18px;
    position: fixed; left: 50%; bottom: 1rem; translate: -50% 0; z-index: 1600; width: min(42rem, calc(100vw - 2rem));
    display: flex; align-items: center; gap: 1rem; padding: .8rem 1.1rem; border-radius: var(--radius-lg);
    background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(var(--shadow), .38); animation: pop-in .3s var(--ease);
}
.audio-player__info { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: .3rem .75rem; align-items: center; }
.audio-player__title { grid-column: 1 / -1; font: 700 .82rem var(--font-ui); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--heading); }
.audio-player__bar { height: 6px; border-radius: 3px; background: var(--line); cursor: pointer; position: relative; }
.audio-player__bar:focus-visible { outline-offset: 6px; }
.audio-player__fill { height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.audio-player__time { font: 700 .72rem var(--font-ui); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.audio-player__controls { display: flex; align-items: center; gap: .2rem; flex: none; }
#audio-play-pause .icon--pause, #audio-play-pause.is-playing .icon--play { display: none; }
#audio-play-pause.is-playing .icon--pause { display: block; }
#audio-mute .icon--muted, #audio-mute.is-muted .icon--vol { display: none; }
#audio-mute.is-muted .icon--muted { display: block; }

.verse-pop { position: absolute; z-index: 2500; width: min(24rem, calc(100vw - 1.5rem)); padding: 1rem 1.15rem 1rem; background: var(--surface); color: var(--ink); border: 1px solid var(--gold); border-radius: var(--radius-md); box-shadow: 0 24px 60px rgba(var(--shadow), .4); animation: pop-in .18s var(--ease); }
.verse-pop__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font: 700 .76rem var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }
.verse-pop__body { font-size: .98rem; font-style: italic; line-height: 1.6; margin: 0 0 .7rem; }
.verse-pop__link { font: 700 .72rem var(--font-ui); letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .35rem; }

/* ============================== 11. MOTION & REVEAL ============================== */
@keyframes rays-spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes hero-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero__inner > * { animation: hero-in 1.1s var(--ease) both; }
.hero__inner > *:nth-child(2) { animation-delay: .12s; }
.hero__inner > *:nth-child(3) { animation-delay: .26s; }
.hero__inner > *:nth-child(4) { animation-delay: .4s; }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@supports (animation-timeline: scroll()) {
    @keyframes hero-parallax { to { transform: translateY(18%) scale(1.08); } }
    .hero__art { animation: hero-parallax linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ================================= 12. KOREAN ================================= */
:lang(ko) body, body:lang(ko) { font-family: 'Noto Sans KR', 'Pretendard', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; line-height: 1.95; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) h4, :lang(ko) .brand__name, :lang(ko) .lead-text, :lang(ko) blockquote, :lang(ko) .scripture {
    font-family: 'Noto Serif KR', 'Batang', 'Cormorant Garamond', serif; font-weight: 700; letter-spacing: 0;
}
:lang(ko) p, :lang(ko) li { word-break: keep-all; overflow-wrap: break-word; }
:lang(ko) .hero__title { font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: 1.12; }
:lang(ko) .site-nav__list a, :lang(ko) .sub-toggle { letter-spacing: .02em; text-transform: none; font-size: .86rem; }

/* ================================ 13. RESPONSIVE ================================ */
@media (max-width: 1100px) {
    .site-nav__list a, .sub-toggle { padding: .5rem .55rem; letter-spacing: .06em; }
    .brand__tag { display: none; }
}
@media (max-width: 960px) {
    .site-nav { display: none; }
    .icon-btn.nav-toggle { display: inline-flex; }
    .site-tools { margin-left: auto; }
    .mobile-menu:not([hidden]) { display: block; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 760px) {
    .testimonials-container { column-count: 1; }
    .book-spotlight { grid-template-columns: 1fr; text-align: center; }
    .book-spotlight__actions { justify-content: center; }
    .memorial-note { margin-top: -2.5rem; padding: 1.6rem 1.25rem; }
    .content-article { border-radius: var(--radius-md); }
    .scripture-band { padding-inline: 1.25rem; }
    .audio-player { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 560px) {
    html { font-size: calc(106.25% * var(--font-scale)); }
    .site-main { padding-inline: .6rem; }
    .content-article { padding: 1.5rem 1.1rem; }
    .testimonial { padding: 2.2rem 1.1rem 1.1rem; }
    .resource-item, .product-item, .resource-card { padding: 1.2rem 1rem; }
    .testimonial-call-to-action, .closing-message, .highlight-box, .action-box, .urgent-intro, .welcome-message, .related-links, .related-resources, .sharing-section { padding: 1.25rem 1rem; }
    .resource-link, .download-link, .resource-btn { white-space: normal; text-align: center; }
    .feature-grid { grid-template-columns: 1fr; }
    .site-header__inner { padding: 0 .85rem; gap: .5rem; }
    .brand__name { font-size: 1.25rem; }
    .lang-link span { display: none; }
    .site-footer__nav ul { columns: 1; }
    blockquote, .scripture, .prayer-text { padding: 1.25rem 1rem 1.25rem 1.5rem; font-size: 1.25rem; }
    .hero__actions .btn { width: 100%; }
}

/* ================================== 14. PRINT ================================== */
@media print {
    .site-header, .site-footer, .hero, .page-band, .back-to-top, .audio-player, .verse-pop, .reading-progress, .skip-link { display: none !important; }
    html { font-size: 12pt; }
    body { background: #fff !important; color: #000 !important; }
    .site-main { margin: 0 !important; padding: 0 !important; max-width: none; }
    .content-article { box-shadow: none; border: 0; padding: 0; background: #fff; max-width: none; }
    .js .reveal { opacity: 1 !important; transform: none !important; }
    a { color: #000; text-decoration: underline; }
    .article-content a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: .8em; word-break: break-all; }
    h1, h2, h3 { color: #000; break-after: avoid; }
    .testimonial, .resource-item, .product-item { break-inside: avoid; }
}
