/*
Theme Name: Faith Over Fear
Theme URI: https://www.fofministry.com/
Author: Faith over fear Ministry
Description: A warm, hopeful, Christ-centered theme for Faith over fear Ministry. Includes a built-in prayer request form (with a private admin inbox), a contact form, a designed home page, blog, and inner page layouts.
Version: 2.2.3
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fof
*/

/* Layout: parchment page, navy "night" bands that dawn into gold; text set like a printed Bible — inscriptional caps for headings, a reading serif for the Word. */
:root {
  --parchment: #f8f2e4;
  --parchment-2: #f1e8d3;
  --paper: #fffcf5;
  --ink: #1d2436;
  --muted: #615c4f;
  --rule: #e2d6bb;
  --gold: #a8781f;
  --gold-bright: #e0b558;
  --navy: #13203a;
  --navy-deep: #0c1528;
  --on-navy: #f6efdf;
  --on-navy-muted: #b9b4a6;
  --focus: #2f6fd6;

  --font-display: "Marcellus", "Trajan Pro", Georgia, serif;
  --font-read: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-ui: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(1.05rem, 1rem + 0.25vw, 1.18rem);
  --step-1: clamp(1.3rem, 1.2rem + 0.5vw, 1.55rem);
  --step-2: clamp(1.7rem, 1.45rem + 1.1vw, 2.3rem);
  --step-3: clamp(2.2rem, 1.7rem + 2.2vw, 3.4rem);
  --step-4: clamp(2.6rem, 1.8rem + 3.8vw, 4.9rem);

  --radius: 6px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-read);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
.screen-reader-text, .sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: var(--radius);
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-bright); color: var(--navy-deep); }
.btn-gold:hover { background: #ecc672; color: var(--navy-deep); }
.btn-ghost { border-color: rgba(246,239,223,.45); color: var(--on-navy); }
.btn-ghost:hover { border-color: var(--on-navy); color: var(--on-navy); background: rgba(246,239,223,.08); }
.btn-ink { background: var(--navy); color: var(--on-navy); }
.btn-ink:hover { background: var(--navy-deep); color: var(--on-navy); }
.btn svg { width: 16px; height: 16px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--parchment) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img, .brand .custom-logo { max-height: 54px; width: auto; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.04em; }
.brand-name em { font-family: var(--font-read); font-style: italic; font-size: 1.15rem; letter-spacing: 0; color: var(--gold); }
.brand-sub { font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  font-family: var(--font-ui); font-size: 0.92rem; font-weight: 500; color: var(--ink);
  text-decoration: none; padding: 8px 12px; border-radius: 999px; display: block;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a, .primary-nav a[aria-current="page"] {
  background: var(--parchment-2); color: var(--ink);
}
.primary-nav .nav-cta a { background: var(--navy); color: var(--on-navy); margin-left: 8px; padding-inline: 18px; }
.primary-nav .nav-cta a:hover { background: var(--navy-deep); color: var(--on-navy); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--rule); border-radius: 999px;
  padding: 9px 16px; font-family: var(--font-ui); font-weight: 600; color: var(--ink); cursor: pointer;
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 12px var(--gutter) 20px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; }
  .primary-nav a { padding: 12px 14px; border-radius: var(--radius); }
  .primary-nav .nav-cta a { margin: 8px 0 0; text-align: center; }
}

/* Hero: dawn breaking over night */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-deep); color: var(--on-navy);
  padding-block: clamp(80px, 12vw, 150px) clamp(90px, 13vw, 160px);
}
.hero::before {
  content: ""; position: absolute; z-index: -2; left: 50%; bottom: -60%;
  width: 180%; aspect-ratio: 1; transform: translateX(-50%);
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(224,181,88,.11) 0deg 2.5deg, transparent 2.5deg 9deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 28%, transparent 52%);
          mask-image: radial-gradient(circle at 50% 50%, #000 0 28%, transparent 52%);
  animation: rays 90s linear infinite;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 118%, rgba(240,196,110,.9), rgba(214,140,60,.38) 45%, transparent 75%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 60%, #2a2c45 100%);
  mix-blend-mode: normal;
}
@keyframes rays { to { transform: translateX(-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } html { scroll-behavior: auto; } }

.hero-inner { text-align: center; display: grid; justify-items: center; gap: 26px; }
.hero .eyebrow { color: var(--gold-bright); }
.hero .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { font-size: var(--step-4); max-width: 20ch; }
.hero h1 .line2 { display: block; color: var(--gold-bright); }
.hero-lede { font-size: var(--step-1); line-height: 1.5; max-width: 40ch; color: var(--on-navy); opacity: .9; font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 6px; }

/* Anchor verse */
.verse-band { padding-block: var(--section); background: var(--paper); border-bottom: 1px solid var(--rule); }
.verse { display: grid; justify-items: center; text-align: center; gap: 22px; }
.verse-ref { font-family: var(--font-display); font-size: var(--step-1); letter-spacing: 0.12em; color: var(--gold); display: flex; align-items: baseline; gap: 14px; }
.verse-ref span { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.22em; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px; }
.verse blockquote { margin: 0; font-size: var(--step-3); line-height: 1.22; font-style: italic; font-weight: 300; max-width: 24ch; text-wrap: balance; }
.verse blockquote sup { font-family: var(--font-display); font-style: normal; font-size: 0.4em; color: var(--gold); vertical-align: 0.9em; margin-right: 6px; }

/* Sections */
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: var(--step-3); }
.section-head.center { justify-items: center; text-align: center; }
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split > * { min-width: 0; }
.split h2 { font-size: var(--step-3); margin-block: 16px 22px; }
.split p + p { margin-top: 1em; }
.split .lead { font-size: var(--step-1); line-height: 1.5; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.source-list { border-left: 1px solid var(--gold); padding-left: clamp(22px, 3vw, 36px); display: grid; gap: 6px; }
.source-list p { font-family: var(--font-ui); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.source-list span { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.1; }
.source-list span:nth-child(odd) { color: var(--gold); }

/* Focus */
.focus { background: var(--parchment-2); }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.focus-item { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(26px, 3vw, 38px); display: grid; gap: 14px; align-content: start; }
.focus-item svg { width: 40px; height: 40px; color: var(--gold); }
.focus-item h3 { font-size: var(--step-2); }
.focus-item .ref { font-family: var(--font-ui); font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 4px; }
@media (max-width: 860px) { .focus-grid { grid-template-columns: 1fr; } }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.post-card { display: grid; gap: 12px; align-content: start; border-top: 2px solid var(--ink); padding-top: 20px; min-width: 0; }
.post-card .thumb { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; background: var(--parchment-2); max-width: 100%; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { font-family: var(--font-ui); font-size: var(--step--1); color: var(--muted); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.post-no { font-family: var(--font-display); color: var(--gold); letter-spacing: .08em; font-size: 1rem; }
.post-card h3 { font-size: var(--step-1); line-height: 1.25; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--gold); }
.post-card p { color: var(--muted); font-size: 1rem; }
.read-more { font-family: var(--font-ui); font-weight: 600; font-size: .9rem; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.read-more::after { content: "→"; transition: transform .2s; }
.read-more:hover::after { transform: translateX(3px); }
.section-foot { margin-top: clamp(36px, 5vw, 56px); display: flex; justify-content: center; }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.post-featured { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-bottom: clamp(40px, 6vw, 72px); margin-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
.post-featured > * { min-width: 0; }
.post-featured .art { aspect-ratio: 4/3; border-radius: var(--radius); background: var(--navy); overflow: hidden; position: relative; max-width: 100%; }
.post-featured .art img { width: 100%; height: 100%; object-fit: cover; }
.post-featured h2 { font-size: var(--step-3); margin-block: 12px 16px; }
.post-featured h2 a { color: var(--ink); text-decoration: none; }
@media (max-width: 860px) { .post-featured { grid-template-columns: 1fr; } }

/* Placeholder art used when a post has no featured image */
.art-dawn { position: relative; width: 100%; height: 100%; min-height: 100%; background: linear-gradient(180deg, var(--navy-deep), var(--navy) 55%, #3a3550); display: grid; place-items: center; overflow: hidden; }
.art-dawn::before { content: ""; position: absolute; left: 50%; bottom: -55%; width: 140%; aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(circle, rgba(240,196,110,.85), rgba(214,140,60,.3) 35%, transparent 60%); }
.art-dawn span { position: relative; font-family: var(--font-display); color: var(--on-navy); font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: .06em; }

/* Prayer CTA */
.cta-prayer { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; isolation: isolate; }
.cta-prayer::after { content: ""; position: absolute; z-index: -1; right: -10%; top: 50%; width: 60%; aspect-ratio: 1; transform: translateY(-50%); background: radial-gradient(circle, rgba(224,181,88,.32), transparent 62%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: clamp(56px, 8vw, 96px); }
.cta-inner > div { min-width: 0; max-width: 34rem; display: grid; gap: 14px; }
.cta-inner h2 { font-size: var(--step-3); }
.cta-inner p { color: var(--on-navy); opacity: .85; font-size: var(--step-1); font-style: italic; line-height: 1.45; }
.cta-prayer .eyebrow { color: var(--gold-bright); }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); font-family: var(--font-ui); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 72px 48px; }
.footer-grid > * { min-width: 0; }
.site-footer h4 { font-family: var(--font-ui); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 16px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer .brand, .site-footer .brand:hover { color: var(--on-navy); margin-bottom: 18px; }
.site-footer .brand-sub { color: var(--on-navy-muted); }
.footer-verse { font-family: var(--font-read); font-style: italic; font-size: 1.1rem; color: var(--on-navy); line-height: 1.5; }
.footer-verse cite { display: block; font-style: normal; font-family: var(--font-ui); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); margin-top: 10px; }
.footer-bottom { border-top: 1px solid rgba(246,239,223,.12); padding-block: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Inner page header */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, var(--paper), var(--parchment)); }
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero h1 { font-size: var(--step-4); }
.page-hero .intro { font-size: var(--step-1); font-style: italic; color: var(--muted); max-width: 42ch; line-height: 1.5; }

/* Long-form reading */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote, .wp-block-quote, .wp-block-pullquote {
  margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--gold);
  font-size: var(--step-1); font-style: italic; line-height: 1.45;
}
.prose blockquote cite, .wp-block-quote cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--font-ui); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.prose img, .prose figure { border-radius: var(--radius); }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-family: var(--font-ui); font-size: .85rem; color: var(--muted); margin-top: 8px; }
.prose hr { border: 0; text-align: center; margin: 2.4em 0; }
.prose hr::before { content: "✦  ✦  ✦"; color: var(--gold); letter-spacing: .4em; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 10px; text-align: left; }
.dropcap > p:first-of-type::first-letter { font-family: var(--font-display); float: left; font-size: 4.2em; line-height: .85; padding: 6px 12px 0 0; color: var(--gold); }
.alignwide { max-width: 980px; }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: .4em 1.4em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.4em; }

/* Single article */
.article-head { padding-block: clamp(56px, 8vw, 96px) clamp(28px, 4vw, 44px); display: grid; gap: 18px; justify-items: center; text-align: center; }
.article-head h1 { font-size: var(--step-3); max-width: 22ch; }
.article-head .post-meta { justify-content: center; }
.article-feature { max-width: 980px; margin: 0 auto clamp(32px, 5vw, 56px); aspect-ratio: 21/9; border-radius: var(--radius); overflow: hidden; }
.article-feature img { width: 100%; height: 100%; object-fit: cover; }
.article-body { display: flex; justify-content: center; padding-bottom: var(--section); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--rule); padding-top: 28px; margin-top: 56px; font-family: var(--font-ui); }
.post-nav a { text-decoration: none; color: var(--ink); display: grid; gap: 4px; }
.post-nav small { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
.post-nav .next { text-align: right; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tags a { font-family: var(--font-ui); font-size: .82rem; border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px; text-decoration: none; color: var(--muted); }

/* Forms */
.form-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.form-layout > * { min-width: 0; }
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(24px, 4vw, 44px); display: grid; gap: 20px; }
.form-card h2 { font-size: var(--step-2); }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label, .field .label { font-family: var(--font-ui); font-size: .88rem; font-weight: 600; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--parchment); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 14px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.check { display: flex; gap: 12px; align-items: flex-start; font-family: var(--font-ui); font-size: .92rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-family: var(--font-ui); font-size: .85rem; color: var(--muted); }
.notice { font-family: var(--font-ui); border-radius: var(--radius); padding: 14px 18px; font-size: .95rem; }
.notice-ok { background: #e6efe2; color: #23452a; border: 1px solid #b9d0b2; }
.notice-err { background: #f6e3df; color: #6a2318; border: 1px solid #e3b9b0; }

.aside-stack { display: grid; gap: 28px; }
.aside-stack h3 { font-size: var(--step-1); margin-bottom: 8px; }
.aside-stack p { color: var(--muted); }
.promise { border-left: 2px solid var(--gold); padding-left: 20px; font-style: italic; }
.promise cite { display: block; font-style: normal; font-family: var(--font-ui); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.contact-line { font-family: var(--font-ui); display: grid; gap: 2px; }
.contact-line small { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
.contact-line span { font-size: 1.05rem; user-select: all; }

/* Resources */
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.resource { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; }
.resource .kind { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.resource h3 { font-size: var(--step-1); }
.resource p { color: var(--muted); font-size: 1rem; }
@media (max-width: 720px) { .resource-grid { grid-template-columns: 1fr; } }

/* Music placeholder */
.coming { text-align: center; display: grid; justify-items: center; gap: 18px; padding-block: var(--section); }
.coming .staff { width: min(420px, 100%); height: 64px; color: var(--gold); }
.coming h2 { font-size: var(--step-3); }
.coming p { max-width: 46ch; color: var(--muted); }

/* Pagination, misc */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; font-family: var(--font-ui); flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.comments-area { max-width: 68ch; margin: 0 auto; padding-bottom: var(--section); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border-top: 1px solid var(--rule); padding-block: 20px; }
.search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.search-form input[type="search"] { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); }
.wp-caption-text { font-family: var(--font-ui); font-size: .85rem; color: var(--muted); }
.sticky, .bypostauthor, .gallery-caption { }

/* Page content area: reading width for text, full width for grids */
.page-content > * + * { margin-top: 1.1em; }
.page-content > :not(.focus-grid):not(.resource-grid):not(.alignwide):not(.alignfull) { max-width: 68ch; }
.page-content > .focus-grid, .page-content > .resource-grid { margin-block: 2em; }
.page-content .focus-item > *, .page-content .resource > * { margin: 0; }
.page-content > .wp-block-quote { max-width: 40ch; font-size: var(--step-2); }
.alignfull { max-width: none; }
.comment-form { display: grid; gap: 14px; font-family: var(--font-ui); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.widget { margin-top: 32px; }

/* Ministry logo (lighthouse badge, transparent background) */
.site-header .header-inner { min-height: 92px; }
.site-header .brand .custom-logo { height: 78px; max-height: none; width: auto; filter: drop-shadow(0 2px 6px rgba(12,21,40,.18)); }
.brand-on-dark .custom-logo { height: 150px; max-height: none; width: auto; }
@media (max-width: 640px) { .site-header .brand .custom-logo { height: 58px; } .site-header .header-inner { min-height: 72px; } }

/* ==========================================================================
   v2 — "Light in the storm"
   The page opens in the storm of the logo and resolves into calm light.
   Display type matches the logo's inscriptional capitals.
   ========================================================================== */
:root {
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --storm: #0a1224;
  --storm-2: #142446;
  --gold-metal: linear-gradient(180deg, #fff1c4 0%, #edc767 34%, #c08f2c 60%, #f0cf7a 100%);
  --glow: rgba(240, 200, 110, .55);
}

h1, h2 { font-weight: 600; letter-spacing: .02em; }
.post-card h3, .article-head h1, .prose h2, .prose h3, .post-featured h2, .resource h3 { font-family: var(--font-read); font-weight: 500; letter-spacing: 0; }
.gold-text { background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header: dark, cinematic, sits over the storm */
.site-header { background: color-mix(in srgb, var(--storm) 88%, transparent); border-bottom: 1px solid rgba(224,181,88,.22); }
.primary-nav a { color: var(--on-navy); }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a, .primary-nav a[aria-current="page"] { background: rgba(224,181,88,.14); color: var(--gold-bright); }
.primary-nav .nav-cta a { background: var(--gold-bright); color: var(--navy-deep); }
.primary-nav .nav-cta a:hover { background: #f0cf7e; color: var(--navy-deep); }
.menu-toggle { color: var(--on-navy); border-color: rgba(224,181,88,.4); }
@media (max-width: 960px) { .primary-nav { background: var(--storm); border-bottom-color: rgba(224,181,88,.22); } }

/* Storm hero */
.storm { position: relative; overflow: hidden; isolation: isolate; background: var(--storm); color: var(--on-navy); padding-block: clamp(40px, 6vw, 72px) clamp(96px, 11vw, 140px); }
.storm::before, .storm::after { content: none; }
.storm-sky { position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse 60% 45% at 50% 30%, rgba(255,226,150,.30), transparent 70%),
    radial-gradient(ellipse 40% 30% at 15% 25%, rgba(120,140,190,.28), transparent 70%),
    radial-gradient(ellipse 45% 32% at 88% 20%, rgba(120,140,190,.24), transparent 70%),
    linear-gradient(180deg, #070d1c 0%, var(--storm-2) 55%, #1d2c4f 100%); }
.storm-clouds { position: absolute; inset: -10% -20%; z-index: -2; opacity: .7;
  background:
    radial-gradient(closest-side, rgba(170,185,220,.22), transparent) 6% 18% / 38% 30% no-repeat,
    radial-gradient(closest-side, rgba(150,165,205,.20), transparent) 92% 12% / 42% 34% no-repeat,
    radial-gradient(closest-side, rgba(130,150,195,.18), transparent) 30% 55% / 50% 26% no-repeat,
    radial-gradient(closest-side, rgba(130,150,195,.16), transparent) 78% 60% / 46% 28% no-repeat;
  animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(6%); } }
.storm-beam { position: absolute; left: 50%; top: clamp(150px, 18vw, 210px); width: 260vmax; height: 260vmax; z-index: -2; transform: translate(-50%, -50%); pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255,228,160,.20) 8deg, rgba(255,236,190,.05) 18deg, transparent 26deg, transparent 180deg, rgba(255,228,160,.14) 188deg, rgba(255,236,190,.04) 198deg, transparent 206deg);
  -webkit-mask-image: radial-gradient(circle, #000 0 18%, transparent 46%); mask-image: radial-gradient(circle, #000 0 18%, transparent 46%);
  animation: sweep 14s linear infinite; }
@keyframes sweep { to { transform: translate(-50%, -50%) rotate(360deg); } }
.storm canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.storm-sea { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 0; height: clamp(70px, 9vw, 120px); width: 100%; display: block; }
.storm .hero-inner { position: relative; z-index: 1; }
.hero-logo { width: clamp(180px, 24vw, 280px); height: auto; filter: drop-shadow(0 0 40px var(--glow)) drop-shadow(0 18px 30px rgba(0,0,0,.5)); animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { transform: translateY(14px) scale(.97); } to { transform: none; } }
.storm h1 { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 5.4rem); line-height: 1.02; max-width: none; letter-spacing: .04em; }
.storm h1 .l1 { display: block; color: var(--on-navy); text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.storm h1 .l2 { display: block; font-family: var(--font-read); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: .58em; margin-top: .25em; }
.storm .hero-lede { color: #e9e2d0; }

/* "Peace, be still" — the verse that calms the storm */
.calm { background: linear-gradient(180deg, #121c36 0%, #2a3557 30%, #5a4a52 66%, #b7865a 88%, #efdcb4 100%); color: var(--on-navy); padding-block: clamp(70px, 10vw, 130px) clamp(80px, 11vw, 140px); text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.calm::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -40%; width: 120%; aspect-ratio: 2/1; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 100%, rgba(255,214,140,.65), transparent 62%); }
.calm .verse-ref { color: var(--gold-bright); justify-content: center; font-family: var(--font-display); }
.calm .verse-ref span { color: var(--on-navy); border-color: rgba(246,239,223,.35); }
.calm blockquote { margin: 22px auto 0; font-size: clamp(1.7rem, 1.2rem + 2.4vw, 3.3rem); line-height: 1.25; font-style: italic; font-weight: 300; max-width: 26ch; text-wrap: balance; }
.calm blockquote em { font-style: italic; color: var(--gold-bright); }
.gifts { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(18px, 4vw, 56px); margin-top: clamp(36px, 5vw, 56px); }
.gift { display: grid; gap: 6px; justify-items: center; }
.gift b { font-family: var(--font-display); font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); font-weight: 600; letter-spacing: .08em; }
.gift small { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #f6ecd6; }
.calm .gifts { padding-bottom: clamp(10px, 3vw, 30px); }

/* When fear speaks — interactive scripture */
.answers { background: var(--parchment); }
.answers-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.answers-grid > * { min-width: 0; }
.answers h2 { font-size: var(--step-3); margin-block: 14px 14px; }
.answers .sub { color: var(--muted); max-width: 40ch; }
.fears { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.fear { font-family: var(--font-ui); font-size: .95rem; font-weight: 500; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; transition: all .2s ease; }
.fear:hover { border-color: var(--gold); }
.fear[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); border-color: var(--navy); box-shadow: 0 6px 18px rgba(19,32,58,.25); }
.word-card { position: relative; overflow: hidden; isolation: isolate; background: var(--storm); color: var(--on-navy); border-radius: 14px; padding: clamp(28px, 4vw, 48px); min-height: 360px; display: grid; align-content: space-between; gap: 26px; box-shadow: 0 30px 60px -30px rgba(10,18,36,.6); }
.word-card::before { content: ""; position: absolute; z-index: -1; right: -30%; top: -40%; width: 90%; aspect-ratio: 1; background: radial-gradient(circle, rgba(240,200,110,.35), transparent 60%); }
.word-card .says { font-family: var(--font-ui); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-bright); }
.word-card .fear-line { font-family: var(--font-read); font-style: italic; color: var(--on-navy-muted); font-size: 1.05rem; margin-top: 8px; text-decoration: line-through; text-decoration-color: rgba(224,181,88,.6); }
.word-card blockquote { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.35; font-weight: 400; }
.word-card cite { display: block; margin-top: 14px; font-style: normal; font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; color: var(--gold-bright); }
.word-card .prayer-line { border-top: 1px solid rgba(246,239,223,.16); padding-top: 18px; font-size: 1rem; color: #ded7c6; }
.word-card .prayer-line strong { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-bright); display: block; margin-bottom: 6px; font-weight: 600; }
.word-card.swap > * { animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .answers-grid { grid-template-columns: 1fr; } .word-card { min-height: 0; } }

/* Arch window motif (mission image) */
.arch { position: relative; aspect-ratio: 4/5; max-width: 420px; width: 100%; justify-self: center; border-radius: 999px 999px 14px 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(168,120,31,.5), 0 0 0 10px var(--parchment), 0 0 0 11px rgba(168,120,31,.45), 0 40px 70px -30px rgba(10,18,36,.55); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 22px; text-align: center; background: linear-gradient(180deg, transparent, rgba(7,13,28,.9)); color: var(--on-navy); font-family: var(--font-display); letter-spacing: .14em; font-size: .9rem; }
.mission-words { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); letter-spacing: .08em; }
.mission-words span:nth-child(odd) { color: var(--gold); }
.mission-words span + span::before { content: "✦"; color: var(--gold); font-size: .55em; margin-right: 18px; vertical-align: .3em; }

/* Ministry focus on the night sky with arch-topped panels */
.focus.night { background: radial-gradient(ellipse 80% 60% at 50% 0%, #1f3160, var(--storm) 70%); color: var(--on-navy); }
.focus.night .eyebrow { color: var(--gold-bright); }
.focus.night .focus-item { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid rgba(224,181,88,.28); border-radius: 200px 200px 12px 12px; padding-top: clamp(48px, 5vw, 64px); text-align: center; justify-items: center; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.focus.night .focus-item:hover { transform: translateY(-4px); border-color: rgba(224,181,88,.7); box-shadow: 0 0 50px -10px rgba(224,181,88,.35); }
.focus.night .focus-item svg { width: 72px; height: 72px; color: var(--gold-bright); filter: drop-shadow(0 0 12px rgba(224,181,88,.5)); }
.focus.night .focus-item h3 { font-weight: 600; }
.focus.night .focus-item p { color: #d7d0bf; }
.focus.night .focus-item .ref { color: var(--gold-bright); border-top-color: rgba(224,181,88,.25); width: 100%; }

/* Cinematic post cards */
.post-card { border-top: 0; padding-top: 0; }
.post-card .thumb { display: block; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; position: relative; }
.post-card .thumb img, .post-card .thumb .art-dawn { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.post-card:hover .thumb img, .post-card:hover .thumb .art-dawn { transform: scale(1.05); }
.art-dawn span { font-weight: 600; }
.art-dawn::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M100 20v160M40 70h120' stroke='%23e0b558' stroke-opacity='.10' stroke-width='3'/%3E%3C/svg%3E") center / 60% no-repeat; }

/* Prayer CTA with candlelight */
.cta-prayer { background: radial-gradient(ellipse 60% 120% at 85% 50%, #2a3a66, var(--storm) 70%); }
.cta-prayer::after { background: radial-gradient(circle, rgba(255,205,120,.45), rgba(224,150,60,.12) 35%, transparent 62%); animation: flicker 5s ease-in-out infinite; }
@keyframes flicker { 0%,100% { opacity: .9; } 45% { opacity: 1; } 55% { opacity: .78; } 70% { opacity: .95; } }
.cta-inner h2 { font-weight: 600; }

/* Inner pages: a quieter storm band */
.page-hero { background: radial-gradient(ellipse 70% 90% at 50% 120%, rgba(240,196,110,.35), transparent 60%), linear-gradient(180deg, #070d1c, var(--storm-2)); color: var(--on-navy); border-bottom: 1px solid rgba(224,181,88,.25); }
.page-hero .eyebrow { color: var(--gold-bright); }
.page-hero h1 { background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .intro { color: #ddd5c3; }

@media (prefers-reduced-motion: reduce) {
  .storm-beam, .storm-clouds, .hero-logo, .cta-prayer::after, .word-card.swap > * { animation: none; }
}
@media (max-width: 520px) { .hero .eyebrow::before, .hero .eyebrow::after { display: none; } }
/* Focus icons sit in a glowing gold medallion */
.focus.night .focus-item svg { width: 104px; height: 104px; padding: 18px; border-radius: 50%; border: 1px solid rgba(224,181,88,.45); background: radial-gradient(circle at 50% 40%, rgba(224,181,88,.18), rgba(224,181,88,.02) 70%); box-shadow: 0 0 0 6px rgba(224,181,88,.06), 0 0 40px -6px rgba(224,181,88,.35); filter: none; transition: box-shadow .3s ease, transform .3s ease; }
.focus.night .focus-item:hover svg { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(224,181,88,.12), 0 0 56px -4px rgba(224,181,88,.55); }
.footer-email { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(246,239,223,.12); word-break: break-word; }
.contact-line a { font-size: 1.05rem; color: var(--ink); }

/* ==========================================================================
   Music: band logo, song tiles, player sheet and mini player
   ========================================================================== */
.music-hero .wrap { justify-items: center; text-align: center; }
.music-hero .intro { margin-inline: auto; }
.band-logo { width: auto; max-width: min(380px, 78vw); max-height: 280px; object-fit: contain; filter: drop-shadow(0 0 36px rgba(240,200,110,.35)) drop-shadow(0 14px 24px rgba(0,0,0,.45)); margin-bottom: 6px; }

.songs-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.songs-head h2 { font-size: var(--step-3); margin-top: 12px; }
.songs-head .count { font-family: var(--font-ui); font-size: .85rem; color: var(--muted); }
.song-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 30px); }
@media (max-width: 1000px) { .song-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.song-tile { display: grid; gap: 10px; align-content: start; min-width: 0; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.song-cover { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--storm); box-shadow: 0 18px 36px -22px rgba(10,18,36,.7); max-width: 100%; }
.song-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.song-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,13,28,.55)); opacity: 0; transition: opacity .3s ease; }
.song-play { position: absolute; z-index: 1; right: 12px; bottom: 12px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-bright); color: var(--navy-deep); box-shadow: 0 8px 20px rgba(0,0,0,.35); transform: translateY(6px); opacity: 0; transition: all .25s ease; }
.song-play svg { width: 20px; height: 20px; }
.song-tile:hover .song-cover img, .song-tile:focus-visible .song-cover img { transform: scale(1.05); }
.song-tile:hover .song-cover::after, .song-tile:focus-visible .song-cover::after, .song-tile.is-current .song-cover::after { opacity: 1; }
.song-tile:hover .song-play, .song-tile:focus-visible .song-play, .song-tile.is-current .song-play { opacity: 1; transform: none; }
@media (hover: none) { .song-play { opacity: 1; transform: none; width: 42px; height: 42px; } }
.song-title { font-family: var(--font-read); font-weight: 500; font-size: 1.12rem; line-height: 1.3; color: var(--ink); }
.song-artist { font-family: var(--font-ui); font-size: .85rem; color: var(--muted); margin-top: -6px; }
.song-badge { position: absolute; z-index: 1; left: 12px; top: 12px; display: none; align-items: center; gap: 8px; font-family: var(--font-ui); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-deep); background: var(--gold-bright); border-radius: 999px; padding: 5px 10px; }
.song-tile.is-current .song-badge { display: inline-flex; }
.eq { display: inline-flex; gap: 2px; align-items: end; height: 11px; }
.eq i { width: 3px; background: currentColor; border-radius: 1px; height: 40%; }
.is-playing .eq i { animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.4s; } .eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes eq { 0%,100% { height: 30%; } 50% { height: 100%; } }

/* Player sheet */
.player-sheet { width: min(980px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 1px solid rgba(224,181,88,.3); border-radius: 16px; padding: 0; background: var(--storm); color: var(--on-navy); box-shadow: 0 40px 100px -20px rgba(0,0,0,.7); overflow: auto; }
.player-sheet::backdrop { background: rgba(5,9,20,.72); backdrop-filter: blur(4px); }
.ps-inner { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(22px, 4vw, 44px); padding: clamp(20px, 4vw, 40px); isolation: isolate; }
.ps-inner::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse 60% 60% at 20% 30%, rgba(224,181,88,.16), transparent 70%); }
.ps-cover { aspect-ratio: 1; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0,0,0,.8); align-self: start; max-width: 100%; }
.ps-cover img { width: 100%; height: 100%; object-fit: cover; }
.ps-body { display: grid; gap: 16px; align-content: start; min-width: 0; }
.ps-body .eyebrow { color: var(--gold-bright); }
.ps-body h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.1; }
.ps-meta { font-family: var(--font-ui); color: var(--on-navy-muted); margin-top: -6px; }
.ps-meta b { color: var(--on-navy); font-weight: 600; }
.ps-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(246,239,223,.25); background: rgba(10,18,36,.6); color: var(--on-navy); cursor: pointer; display: grid; place-items: center; }
.ps-close:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.ps-close svg { width: 18px; height: 18px; }
.ps-controls { display: flex; align-items: center; gap: 14px; }
.pc-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(246,239,223,.22); background: transparent; color: var(--on-navy); display: grid; place-items: center; cursor: pointer; }
.pc-btn:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.pc-btn svg { width: 18px; height: 18px; }
.pc-play { width: 62px; height: 62px; border: 0; background: var(--gold-bright); color: var(--navy-deep); box-shadow: 0 0 0 6px rgba(224,181,88,.15), 0 10px 26px rgba(0,0,0,.4); }
.pc-play:hover { background: #f0cf7e; color: var(--navy-deep); }
.pc-play svg { width: 24px; height: 24px; }
.ps-progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; font-family: var(--font-ui); font-size: .8rem; color: var(--on-navy-muted); font-variant-numeric: tabular-nums; }
.seek { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--gold-bright) var(--p, 0%), rgba(246,239,223,.18) var(--p, 0%)); cursor: pointer; }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff3d1; box-shadow: 0 0 0 4px rgba(224,181,88,.35); }
.seek::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff3d1; }
.ps-details { color: #ddd5c3; font-size: 1.02rem; line-height: 1.6; }
.ps-details > * + * { margin-top: .8em; }
.ps-details a { color: var(--gold-bright); }
.ps-lyrics { border: 1px solid rgba(224,181,88,.3); border-radius: 10px; background: rgba(255,255,255,.03); }
.ps-lyrics summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-ui); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--gold-bright); }
.ps-lyrics summary::-webkit-details-marker { display: none; }
.ps-lyrics summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.ps-lyrics[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.ps-lyrics .lyrics-text { padding: 4px 18px 20px; white-space: pre-line; font-family: var(--font-read); font-size: 1.08rem; line-height: 1.75; color: var(--on-navy); max-height: 46vh; overflow: auto; }
.ps-listen { display: inline-flex; gap: 8px; align-items: center; font-family: var(--font-ui); font-weight: 600; font-size: .9rem; color: var(--gold-bright); text-decoration: none; }
@media (max-width: 760px) { .ps-inner { grid-template-columns: 1fr; } .ps-cover { width: min(320px, 100%); justify-self: center; } }

/* Mini player bar */
.mini-player { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; background: rgba(8,14,30,.96); backdrop-filter: blur(10px); border-top: 1px solid rgba(224,181,88,.3); color: var(--on-navy); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); }
.mini-inner { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.mini-inner img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; }
.mini-text { flex: 1; min-width: 0; display: grid; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.mini-text b { font-family: var(--font-read); font-weight: 500; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-text span { font-family: var(--font-ui); font-size: .8rem; color: var(--on-navy-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-player .pc-play { width: 46px; height: 46px; box-shadow: none; }
.mini-player .pc-play svg { width: 18px; height: 18px; }
.mini-bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, var(--gold-bright) var(--p, 0%), transparent var(--p, 0%)); }
body.has-mini-player { padding-bottom: 76px; }
@media (max-width: 560px) { .mini-player .pc-prev { display: none; } }

/* Single song page */
.song-single { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.song-single > * { min-width: 0; }
.song-single .ps-cover { box-shadow: 0 30px 60px -28px rgba(10,18,36,.7); }
.song-single audio { width: 100%; margin-block: 8px; }
.song-single .ps-lyrics { border-color: var(--rule); background: var(--paper); }
.song-single .ps-lyrics summary { color: var(--gold); }
.song-single .ps-lyrics .lyrics-text { color: var(--ink); }
@media (max-width: 760px) { .song-single { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .is-playing .eq i { animation: none; height: 70%; } }
.lyric-label { display: block; font-family: var(--font-ui); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-bright); margin-top: 6px; }
.song-single .lyric-label { color: var(--gold); }
/* Resource card links: any link inside a card gets the gold "Read more" look */
.resource a { font-family: var(--font-ui); font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--gold); }
.resource a::after { content: " →"; transition: margin .2s ease; }
.resource a:hover { color: var(--ink); }
.resource a:hover::after { margin-left: 3px; }
.resource .wp-block-buttons, .resource p:last-child { margin-top: auto; }

/* ==========================================================================
   Mission & Resources pages: tiles built from WordPress blocks
   WordPress wraps each group's contents in .wp-block-group__inner-container
   and adds spacing between blocks; these rules undo both so the tiles sit
   side by side, and center the page's reading column.
   ========================================================================== */
.page-content > * { margin-inline: auto; }
.page-content .focus-grid > .wp-block-group__inner-container,
.page-content .resource-grid > .wp-block-group__inner-container,
.page-content .focus-item > .wp-block-group__inner-container,
.page-content .resource > .wp-block-group__inner-container { display: contents; }
.page-content .focus-grid, .page-content .resource-grid { max-width: none; width: 100%; margin-block: clamp(8px, 2vw, 24px) clamp(40px, 6vw, 64px); }
.page-content .focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); align-items: stretch; }
.page-content .resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 28px); max-width: 980px; }
.page-content .focus-grid .focus-item,
.page-content .resource-grid .resource { margin: 0; min-width: 0; }
.page-content .focus-item h3, .page-content .focus-item p,
.page-content .resource h3, .page-content .resource p { margin: 0; }

/* Mission tiles: centered, arch-topped like the home page */
.page-content .focus-item { text-align: center; justify-items: center; align-content: start; border-radius: 200px 200px 14px 14px; padding: clamp(46px, 5vw, 64px) clamp(22px, 3vw, 34px) clamp(26px, 3vw, 34px); gap: 14px; box-shadow: 0 24px 50px -36px rgba(10,18,36,.45); }
.page-content .focus-item::before { content: "✦"; color: var(--gold); font-size: 1.1rem; line-height: 1; }
.page-content .focus-item h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); }
.page-content .focus-item p { color: var(--muted); font-size: 1.02rem; }
.page-content .focus-item .ref { width: 100%; margin-top: auto; }

/* Resource cards: centered */
.page-content .resource { text-align: center; justify-items: center; padding: clamp(26px, 3vw, 36px); gap: 12px; }
.page-content .resource .kind { letter-spacing: .18em; }
.page-content .resource p:last-child { margin-top: 6px; }

/* Closing statement under the tiles */
.page-content > .wp-block-quote, .page-content > blockquote { max-width: 30ch; text-align: center; border-left: 0; padding: 0; margin-block: clamp(16px, 3vw, 32px) 0; font-size: var(--step-2); line-height: 1.35; }
.page-content > .wp-block-quote::before, .page-content > blockquote::before { content: "✦  ✦  ✦"; display: block; color: var(--gold); font-size: .9rem; letter-spacing: .4em; font-style: normal; margin-bottom: 18px; }
.page-content > .wp-block-quote p { margin: 0; }

@media (max-width: 900px) { .page-content .focus-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
@media (max-width: 680px) { .page-content .resource-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Books: 3D covers, spotlight, bookshelf, single book page
   ========================================================================== */
.btn-ghost-ink { border-color: var(--rule); color: var(--ink); background: var(--paper); }
.btn-ghost-ink:hover { border-color: var(--gold); color: var(--ink); }

.book-3d { display: block; perspective: 1400px; max-width: 100%; }
.book-cover { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 3px 8px 8px 3px; overflow: hidden; background: var(--storm); transform: rotateY(-14deg); transform-origin: left center; transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease; box-shadow: 1px 1px 0 rgba(255,255,255,.05) inset, 18px 24px 40px -14px rgba(10,18,36,.55), 6px 6px 14px -6px rgba(10,18,36,.4); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 7%; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.12) 45%, rgba(0,0,0,.08) 70%, transparent); pointer-events: none; }
.book-cover::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 35%); pointer-events: none; }
a:hover .book-cover, a:focus-visible .book-cover, .book-hero-cover:hover .book-cover { transform: rotateY(-4deg) translateY(-4px); box-shadow: 1px 1px 0 rgba(255,255,255,.05) inset, 24px 34px 50px -16px rgba(10,18,36,.6), 6px 6px 14px -6px rgba(10,18,36,.4); }
.book-cover-fallback { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 14%; text-align: center; background: radial-gradient(ellipse at 50% 30%, rgba(224,181,88,.3), transparent 60%), linear-gradient(180deg, #0d1630, #1d2c4f); color: var(--on-navy); border: 1px solid rgba(224,181,88,.3); }
.bcf-mark { color: var(--gold-bright); font-size: 1.4rem; }
.bcf-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, .8rem + 1vw, 1.5rem); line-height: 1.15; letter-spacing: .04em; color: var(--gold-bright); }
.bcf-author { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-navy-muted); }

.book-status { display: inline-flex; align-items: center; font-family: var(--font-ui); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-radius: 999px; padding: 5px 11px; background: var(--gold-bright); color: var(--navy-deep); }
.book-status.status-preorder { background: #f3dfa9; }
.book-status.status-coming { background: var(--navy); color: var(--gold-bright); box-shadow: inset 0 0 0 1px rgba(224,181,88,.5); }
.book-status.status-writing { background: var(--paper); color: var(--muted); box-shadow: inset 0 0 0 1px var(--rule); }
.book-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.book-date { font-family: var(--font-ui); font-size: .85rem; color: var(--muted); }
.book-subtitle { font-family: var(--font-read); font-style: italic; color: var(--muted); font-size: var(--step-1); line-height: 1.35; }
.book-author { font-family: var(--font-ui); font-weight: 600; letter-spacing: .04em; }
.book-short { color: var(--ink); }
.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.book-verse { margin: 0; padding-left: 20px; border-left: 2px solid var(--gold); font-style: italic; font-size: 1.1rem; line-height: 1.5; color: var(--ink); }
.book-verse cite { display: block; margin-top: 6px; font-style: normal; font-family: var(--font-ui); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* Spotlight */
.book-spotlight { background: radial-gradient(ellipse 60% 70% at 25% 50%, rgba(224,181,88,.16), transparent 70%), var(--parchment); }
.spotlight-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.spotlight-cover { display: block; width: min(360px, 100%); justify-self: center; }
.spotlight-body { display: grid; gap: 14px; align-content: start; min-width: 0; }
.spotlight-body h2 { font-size: var(--step-3); }
.spotlight-body h2 a { color: var(--ink); text-decoration: none; }
.spotlight-body h2 a:hover { color: var(--gold); }
@media (max-width: 820px) { .spotlight-grid { grid-template-columns: 1fr; } .spotlight-cover { width: min(260px, 70%); } }

/* Bookshelf */
.bookshelf { border-top: 1px solid var(--rule); }
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px); }
@media (max-width: 1000px) { .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; } }
.book-tile { display: grid; gap: 8px; align-content: start; min-width: 0; }
.book-tile-cover { position: relative; display: block; margin-bottom: 4px; text-decoration: none; }
.book-tile-cover .book-status { position: static; margin-top: 16px; }
.book-series { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.book-tile h3 { font-family: var(--font-read); font-weight: 500; font-size: 1.2rem; line-height: 1.25; }
.book-tile h3 a { color: var(--ink); text-decoration: none; }
.book-tile h3 a:hover { color: var(--gold); }
.book-tile .book-subtitle { font-size: .98rem; }
.book-tile .book-short { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Single book */
.book-hero { background: radial-gradient(ellipse 70% 90% at 25% 60%, rgba(240,196,110,.28), transparent 60%), linear-gradient(180deg, #070d1c, var(--storm-2)); color: var(--on-navy); padding-block: clamp(48px, 7vw, 96px); border-bottom: 1px solid rgba(224,181,88,.25); }
.book-hero-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.book-hero-cover { width: min(340px, 100%); justify-self: center; }
.book-hero-body { display: grid; gap: 14px; align-content: start; min-width: 0; }
.book-hero h1 { font-size: var(--step-4); line-height: 1.05; background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.book-hero .eyebrow { color: var(--gold-bright); }
.book-hero .book-subtitle { color: #ddd5c3; }
.book-hero .book-author { color: var(--on-navy); }
.book-hero .book-short { color: #e9e2d0; max-width: 54ch; }
.book-hero .book-date, .book-hero .book-formats { color: var(--on-navy-muted); font-family: var(--font-ui); font-size: .88rem; }
.book-hero .btn-ghost-ink { background: transparent; color: var(--on-navy); border-color: rgba(246,239,223,.4); }
.book-hero .btn-ghost-ink:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
@media (max-width: 820px) { .book-hero-grid { grid-template-columns: 1fr; } .book-hero-cover { width: min(240px, 66%); } }

.book-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.book-main { display: grid; gap: 28px; min-width: 0; }
.book-h2 { font-size: var(--step-2); margin-bottom: 14px; }
.book-verse-lg { font-size: var(--step-1); }
.book-sample { border-color: var(--rule); background: var(--paper); }
.book-sample summary { color: var(--gold); }
.book-sample .lyrics-text { white-space: normal; color: var(--ink); max-height: 60vh; padding-top: 6px; }
.book-details { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: clamp(22px, 3vw, 30px); position: sticky; top: calc(env(safe-area-inset-top, 0px) + 110px); }
.book-details dl { margin: 0; display: grid; }
.book-details dl > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding-block: 10px; border-top: 1px solid var(--rule); font-family: var(--font-ui); font-size: .9rem; }
.book-details dt { color: var(--muted); }
.book-details dd { margin: 0; overflow-wrap: anywhere; }
.book-actions-stack { margin-top: 18px; }
.book-actions-stack .btn { width: 100%; justify-content: center; }
@media (max-width: 900px) { .book-body { grid-template-columns: 1fr; } .book-details { position: static; } }
.more-books { background: var(--parchment-2); }
@media (prefers-reduced-motion: reduce) { .book-cover { transition: none; } }
