/* Oti Stories — warm ink, flame amber and paper cream, set entirely in Fraunces. */

:root {
	--ink: #211811;
	--ink-2: #2c2018;
	--ink-3: #3b2d22;
	--cream: #fbf6ec;
	--paper: #fffdf8;
	--sand: #f4ead8;
	--sand-2: #ecdfc8;
	--line: #e7dac4;
	--line-2: #d8c6a8;
	--text: #2a1d14;
	--muted: #6b5b4c;
	--soft: #8b7a68;
	--flame: #f8c13a;
	--flame-2: #f0aa1c;
	--amber: #8f5508;
	--on-dark: #fbf1df;
	--on-dark-muted: rgba(251, 241, 223, .72);
	--radius: 16px;
	--radius-sm: 10px;
	--radius-lg: 26px;
	--shadow: 0 1px 2px rgba(33, 24, 17, .06), 0 14px 34px -14px rgba(33, 24, 17, .22);
	--shadow-lg: 0 2px 6px rgba(33, 24, 17, .08), 0 30px 60px -24px rgba(33, 24, 17, .35);
	--font: 'Fraunces', Georgia, 'Times New Roman', serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--cream); color: var(--text); font-family: var(--font); font-optical-sizing: auto; font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-weight: 650; line-height: 1.12; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--flame-2); outline-offset: 2px; border-radius: 6px; }
.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: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; flex: none; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(720px + 2 * var(--gutter)); }
.container--wide { max-width: calc(1040px + 2 * var(--gutter)); }
.ot-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons, chips, labels ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .98rem; line-height: 1.1; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; white-space: nowrap; }
.btn .icon { width: 19px; height: 19px; }
.btn:active { transform: translateY(1px); }
.btn--flame { background: var(--flame); color: var(--ink); box-shadow: 0 8px 22px -10px rgba(240, 170, 28, .9); }
.btn--flame:hover { background: var(--flame-2); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--on-dark); }
.btn--ink:hover { background: var(--ink-3); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost-light { background: rgba(255, 255, 255, .04); color: var(--on-dark); border-color: rgba(251, 241, 223, .32); }
.btn--ghost-light:hover { border-color: var(--flame); color: #fff; }
.btn--lg { padding: 15px 26px; font-size: 1.04rem; }
.btn--sm { padding: 9px 16px; font-size: .92rem; }
.btn--block { width: 100%; }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--ink); transition: background-color .2s, border-color .2s; }
.iconbtn:hover { background: var(--sand); }
.iconbtn .icon { width: 22px; height: 22px; }
.linklike { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: inherit; text-align: left; }
.chip { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--sand); color: var(--amber); font-size: .78rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; line-height: 1.4; }
.chip:hover { background: var(--flame); color: var(--ink); }
.section--sand .chip, .phead .chip { background: var(--paper); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--amber); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-variation-settings: 'opsz' 14; }
.eyebrow .icon { width: 22px; height: 18px; color: var(--flame-2); }
.eyebrow--light { color: var(--flame); }
.eyebrow--light .icon { color: var(--flame); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--amber); text-decoration: none; white-space: nowrap; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover .icon { transform: translateX(3px); }
.meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--soft); font-size: .85rem; font-variation-settings: 'opsz' 14; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(251, 246, 236, .9); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(33, 24, 17, .35); }
.ot-is-preview .site-header { top: 0; }
.site-header__inner { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.logo { display: inline-flex; flex: none; }
.logo__img { width: auto; height: 46px; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__list > li { position: relative; }
.nav__link, .nav__list--wp > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border: 0; border-radius: 999px; background: none; color: var(--text); font-size: 1rem; font-weight: 500; text-decoration: none; }
.nav__link .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav__link:hover, .nav__list--wp > li > a:hover { background: var(--sand); color: var(--ink); }
.nav__item.is-current > .nav__link, .nav__list--wp > .current-menu-item > a { color: var(--ink); font-weight: 650; box-shadow: inset 0 -2px 0 var(--flame-2); border-radius: 0; }
.nav__menu { position: absolute; top: calc(100% + 8px); left: 50%; min-width: 280px; transform: translate(-50%, 6px); padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
.nav__menu ul { list-style: none; }
.nav__menu a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .98rem; }
.nav__menu a small { color: var(--soft); font-size: .78rem; }
.nav__menu a:hover { background: var(--sand); color: var(--ink); }
.nav__menu .nav__more { justify-content: flex-start; gap: 6px; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--amber); font-weight: 600; }
.nav__menu .nav__more .icon { width: 16px; height: 16px; }
.nav__item--has-menu.is-open .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__item--has-menu.is-open .nav__toggle .icon { transform: rotate(180deg); }
.nav__list--wp .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none; }
.nav__list--wp li:hover > .sub-menu, .nav__list--wp li:focus-within > .sub-menu { display: block; }
.nav__list--wp .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.nav__list--wp .sub-menu a:hover { background: var(--sand); }
.site-header__actions { display: flex; align-items: center; gap: 6px; }
.menu-toggle { display: none; }

/* Drawer (phones) */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer[hidden] { display: none; }
.drawer__backdrop, .modal__backdrop, .finder__backdrop { position: absolute; inset: 0; background: rgba(20, 13, 8, .55); opacity: 0; transition: opacity .25s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); display: flex; flex-direction: column; background: var(--cream); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; }
.drawer.is-open .drawer__backdrop, .modal.is-open .modal__backdrop, .finder.is-open .finder__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__head .logo__img { height: 38px; }
.mnav { list-style: none; padding: 12px; }
.mnav > li { border-bottom: 1px solid var(--line); }
.mnav__link, .mnav__group, .mnav--wp > li > a { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 10px; border: 0; background: none; color: var(--ink); font-size: 1.15rem; font-weight: 600; text-decoration: none; text-align: left; }
.mnav__group .icon { transition: transform .2s; }
.mnav__group[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mnav__sub, .mnav--wp .sub-menu { list-style: none; padding: 0 6px 12px; }
.mnav__sub a, .mnav--wp .sub-menu a { display: flex; justify-content: space-between; padding: 9px 10px; color: var(--text); text-decoration: none; border-radius: 8px; }
.mnav__sub a small { color: var(--soft); }
.mnav__sub a:hover { background: var(--sand); }
.drawer__foot { margin-top: auto; padding: 18px 20px 26px; display: grid; gap: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); isolation: isolate; }
.hero__glow { position: absolute; z-index: -1; left: -10%; top: -30%; width: 75%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(248, 193, 58, .26), rgba(248, 193, 58, .07) 55%, transparent 72%); pointer-events: none; }
.hero::after { content: ''; position: absolute; z-index: -1; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(248, 193, 58, .4), transparent); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.35rem); margin-bottom: 20px; font-variation-settings: 'opsz' 144; }
.hero__lead { max-width: 34em; color: var(--on-dark-muted); font-size: clamp(1.08rem, 1.5vw, 1.25rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero__count { margin: 0; color: var(--on-dark-muted); font-size: .95rem; }
.hero__count strong { color: var(--flame); font-weight: 700; }
.feature { overflow: hidden; border-radius: var(--radius-lg); background: var(--paper); color: var(--text); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); }
.feature__media { display: block; }
.feature__media .art { aspect-ratio: 16 / 10; border-radius: 0; }
.feature__body { padding: 22px 26px 24px; }
.feature__flag { display: inline-flex; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; background: var(--flame); color: var(--ink); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.feature__title { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: 10px; }
.feature__title a { color: inherit; text-decoration: none; }
.feature__title a:hover { color: var(--amber); }
.feature__text { color: var(--muted); font-size: 1rem; }
.feature__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding: 28px 0 0; }
.section--sand { background: var(--sand); }
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 3vw, 36px); }
.shead h2 { margin: 0; }

/* Picture areas (photo, or a warm drawn panel when a post has no picture) */
.art { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius); background: var(--sand-2); }
.art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.art--drawn { display: grid; place-items: center; color: var(--flame); }
.art--tone0 { background: radial-gradient(120% 90% at 20% 110%, rgba(248, 193, 58, .45), transparent 55%), linear-gradient(160deg, #2c2018, #1b130d); }
.art--tone1 { background: radial-gradient(110% 90% at 85% 115%, rgba(248, 193, 58, .5), transparent 55%), linear-gradient(160deg, #3b2a1b, #241910); }
.art--tone2 { background: radial-gradient(120% 90% at 50% 120%, rgba(248, 193, 58, .6), transparent 60%), linear-gradient(170deg, #4a3320, #2a1c12); }
.art__flame { position: absolute; right: -8%; bottom: -14%; width: 62%; height: auto; opacity: .16; }
.art--flip .art__flame { right: auto; left: -8%; transform: scaleX(-1); }
.art__mark { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(248, 193, 58, .45); background: rgba(33, 24, 17, .35); }
.art__mark .icon { width: 26px; height: 26px; color: var(--flame); }
.art__label { position: absolute; left: 16px; bottom: 14px; color: var(--on-dark); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; font-variation-settings: 'opsz' 14; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.card__media { display: block; border-radius: var(--radius); }
.card__media:hover .art img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.card__title { margin: 0; font-size: 1.28rem; line-height: 1.22; }
.card__title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--flame), var(--flame)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--ease); }
.card__title a:hover { background-size: 100% 2px; }
.card__text { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.card--row { flex-direction: row; align-items: center; gap: 16px; padding: 14px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.card--row:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.card--row .card__media { flex: none; width: 108px; }
.card--row .art { aspect-ratio: 1; border-radius: 12px; }
.card--row .art__mark { width: 40px; height: 40px; }
.card--row .art__mark .icon { width: 19px; height: 19px; }
.card--row .art__label { display: none; }
.card--row .card__title { font-size: 1.1rem; }
.rows { display: grid; gap: 12px; }

/* Prayer room */
.prayroom__lead { margin: 0 0 22px; max-width: 62ch; font-size: 1.12rem; color: var(--text); }
.sow__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 48px; }
.sow__copy { max-width: 660px; }
.sow__copy h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.sow__copy p { margin: 0; color: var(--muted); }
.prayroom { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.callout { padding: 28px; border-radius: var(--radius-lg); background: var(--ink); color: var(--on-dark); display: grid; gap: 12px; }
.callout h3 { color: #fff; margin: 0; font-size: 1.5rem; }
.callout p { margin: 0 0 6px; color: var(--on-dark-muted); }
.callout__icon { width: 34px; height: 34px; color: var(--flame); }
.callout .btn--ink { background: var(--flame); color: var(--ink); }
.callout .btn--ink:hover { background: var(--flame-2); }
.callout .btn--ghost { color: var(--on-dark); border-color: rgba(251, 241, 223, .3); }
.callout .btn--ghost:hover { border-color: var(--flame); color: #fff; }
.callout--soft { background: var(--sand); color: var(--text); }
.callout--soft h3 { color: var(--ink); font-size: 1.25rem; }
.callout--soft p { color: var(--muted); }

/* Topics */
.topics .filter { display: flex; align-items: center; gap: 10px; max-width: 420px; margin-bottom: 18px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); }
.topics .filter .icon { color: var(--soft); }
.topics .filter input { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: none; outline: none; }
.topics__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.topic { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.topic:hover { border-color: var(--flame-2); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.topic__name { font-size: 1.12rem; font-weight: 650; line-height: 1.2; }
.topic__count { grid-row: 2; color: var(--soft); font-size: .85rem; }
.topic .icon { grid-row: 1 / span 2; grid-column: 2; color: var(--amber); width: 18px; height: 18px; transition: transform .2s; }
.topic:hover .icon { transform: translateX(3px); }
.topics__list li[hidden] { display: none; }
.topics__none { color: var(--muted); }

/* Prayer-list band */
.join { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); padding: clamp(56px, 7vw, 96px) 0; isolation: isolate; }
.join::before { content: ''; position: absolute; z-index: -1; right: -12%; bottom: -60%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(248, 193, 58, .22), transparent 70%); }
.join__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.join h2 { color: #fff; }
.join__copy > p { color: var(--on-dark-muted); font-size: 1.1rem; }
.join__points { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.join__points li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-dark); }
.join__points .icon { color: var(--flame); margin-top: 3px; }
.join__card, .join-card { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--paper); color: var(--text); box-shadow: var(--shadow-lg); }
.join-card { margin-top: 28px; border: 1px solid var(--line); }

/* Forms */
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-bottom: 18px; }
.field { margin: 0; display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field .opt { color: var(--soft); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--flame-2); box-shadow: 0 0 0 4px rgba(248, 193, 58, .25); }
.form__note { margin: 12px 0 0; color: var(--soft); font-size: .86rem; text-align: center; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-size: .95rem; font-weight: 600; cursor: pointer; transition: background-color .2s, border-color .2s; }
.seg span .icon { width: 18px; height: 18px; color: var(--amber); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.seg input:checked + span .icon { color: var(--flame); }
.seg input:focus-visible + span { outline: 3px solid var(--flame-2); outline-offset: 2px; }
.notice { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; font-size: .98rem; }
.notice p { margin: 0; }
.notice .icon { margin-top: 2px; }
.notice--ok { background: #f1f6e8; color: #2f4a17; border: 1px solid #cfe0b4; }
.notice--error { background: #fbeee6; color: #7a2e10; border: 1px solid #efc9b4; }

/* ---------- Page and post headers ---------- */
.phead { background: var(--sand); padding: clamp(36px, 5vw, 64px) 0 clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.phead h1 { margin-bottom: 10px; max-width: 18em; }
.phead__intro { margin: 0; max-width: 40em; color: var(--muted); font-size: 1.12rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--soft); font-size: .88rem; font-variation-settings: 'opsz' 14; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--amber); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

.post__head { padding: clamp(36px, 5vw, 64px) 0 26px; }
.post__title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-variation-settings: 'opsz' 144; margin-bottom: 16px; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 20px; color: var(--soft); font-size: .92rem; }
.post__by { color: var(--muted); }
.post__hero { margin: 0 auto 36px; }
.post__hero img { width: 100%; border-radius: var(--radius-lg); }
.post__hero figcaption { margin-top: 8px; color: var(--soft); font-size: .85rem; text-align: center; }
.post__foot { margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 28px; }
.post__share { padding: 22px; border-radius: var(--radius); background: var(--sand); display: grid; gap: 12px; }
.post__share p { margin: 0; color: var(--ink); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.tags .icon { color: var(--soft); width: 18px; height: 18px; }
.tags a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.tags a:hover { color: var(--amber); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { color: var(--soft); font-size: .85rem; margin-right: 4px; }
.share__btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); transition: background-color .2s, color .2s, border-color .2s; }
.share__btn .icon { width: 18px; height: 18px; }
.share__btn:hover { background: var(--ink); border-color: var(--ink); color: var(--flame); }
.share__btn--whatsapp:hover { background: #1f9c55; border-color: #1f9c55; color: #fff; }
.share__copied { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .75rem; background: var(--ink); color: var(--on-dark); padding: 3px 8px; border-radius: 6px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.share__copied.is-on { opacity: 1; }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.prevnext__link { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.prevnext__link:hover { border-color: var(--flame-2); color: var(--ink); }
.prevnext__link--next { text-align: right; }
.prevnext__dir { display: inline-flex; align-items: center; gap: 6px; color: var(--amber); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.prevnext__link--next .prevnext__dir { justify-content: flex-end; }
.prevnext__dir .icon { width: 16px; height: 16px; }
.prevnext__title { font-weight: 600; line-height: 1.3; }

/* Reading text */
.prose { font-size: 1.12rem; line-height: 1.78; color: #2f2219; overflow-wrap: break-word; }
@media (min-width: 900px) { .prose { font-size: 1.2rem; } }
.prose > * + * { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose .embed, .prose table, .prose pre { margin: 0 0 1.3em; }
.prose h2 { font-size: 1.75rem; margin: 1.6em 0 .55em; }
.prose h3 { font-size: 1.4rem; margin: 1.5em 0 .5em; }
.prose h4 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--amber); }
.prose a { color: var(--amber); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose blockquote { position: relative; margin-left: 0; margin-right: 0; padding: 20px 24px 20px 28px; border-left: 4px solid var(--flame); border-radius: 0 var(--radius) var(--radius) 0; background: var(--sand); color: var(--ink); font-style: italic; font-size: 1.12em; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: .85em; color: var(--muted); }
.prose img { border-radius: var(--radius); }
.prose figure { max-width: 100%; }
.prose figcaption, .prose .wp-caption-text { color: var(--soft); font-size: .85rem; text-align: center; margin-top: 8px; }
.prose .wp-caption { max-width: 100% !important; }
.prose hr { border: 0; height: 22px; margin: 2em 0; background: center / 26px 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0aa1c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4'/%3E%3C/svg%3E"); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95em; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose iframe { border: 0; border-radius: var(--radius); }
.prose iframe[src*="youtube"], .prose iframe[src*="youtu.be"], .prose iframe[src*="vimeo"], .prose iframe[src*="facebook.com/plugins/video"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.embed { position: relative; }
.embed iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose .alignwide, .prose .alignfull { max-width: 100%; }
.prose--post > p.dropcap:first-child::first-letter { float: left; margin: .06em .1em 0 0; font-size: 3.6em; line-height: .82; font-weight: 700; color: var(--amber); font-variation-settings: 'opsz' 144; }
.prose--post::after { content: ''; display: table; clear: both; }
.prose--side { font-size: 1rem; }
/* Content made with the old page builder, shown in the new design */
.prose .lg-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.prose .btn { text-decoration: none; white-space: normal; text-align: center; max-width: 100%; }
.prose .lg-pdf { margin: 0 0 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.prose .lg-pdf iframe { display: block; width: 100%; height: min(78vh, 900px); border: 0; border-radius: 0; }
.prose .lg-linked a { display: block; color: inherit; text-decoration: none; }
.prose .btn--flame, .prose .btn--flame:hover { color: var(--ink); }
.prose .btn--ghost { color: var(--ink); }
.prose .lg-figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 640px; margin: 0 auto; }
.prose .lg-figure--person img { max-width: 220px; border-radius: 999px; aspect-ratio: 1; object-fit: cover; }
.lg-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 1.3em; }
.lg-gallery figure { margin: 0; }
.lg-gallery a { display: block; border-radius: 12px; overflow: hidden; }
.lg-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; transition: transform .3s var(--ease); }
.lg-gallery a:hover img { transform: scale(1.04); }
.lg-gallery--one { grid-template-columns: minmax(0, 1fr); }
.lg-gallery--one img { aspect-ratio: auto; object-fit: contain; max-height: 640px; width: auto; max-width: 100%; margin: 0 auto; }
.prose .lg-social { padding: 0; }
.prose .lg-social li { margin: 0; }
.prose .lg-social a { color: var(--ink); }
.prose .lg-social a:hover { color: var(--flame); }
.prose .lg-posts { margin: 0 0 18px; }
.prose .lg-posts .card__title { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.prose .lg-posts .card__title a { color: var(--ink); }
.prose .lg-posts .chip { color: var(--amber); font-size: .74rem; }
.prose .lg-posts .chip:hover { color: var(--ink); }
.prose .lg-posts .meta { font-size: .82rem; }
.prose .lg-media audio, .prose .lg-media video { display: block; width: 100%; }
.prose .lg-toggle { margin: 0 0 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.prose .lg-toggle summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.prose .lg-toggle[open] summary { margin-bottom: 10px; }
.prose .lg-toggle > :last-child { margin-bottom: 0; }
.prose .lg-note { margin: 0 0 1.3em; padding: 16px 20px; border-radius: var(--radius); background: var(--sand); }
.prose .lg-note > :last-child { margin-bottom: 0; }
.prose mark { padding: 0 .15em; background: rgba(240, 170, 28, .28); color: inherit; }
.builder { overflow-x: hidden; }

.pager { margin-top: 48px; }
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; }
.pager a:hover { border-color: var(--ink); }
.pager .current { background: var(--ink); border-color: var(--ink); color: var(--flame); }
.pager .dots { border: 0; background: none; }
.pager .icon { width: 18px; height: 18px; }
.pager--inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }

.empty { display: grid; justify-items: center; gap: 12px; padding: 40px 0; color: var(--muted); text-align: center; }
.empty .icon { width: 64px; height: 52px; color: var(--flame-2); }

.searchbar { display: flex; align-items: center; gap: 10px; max-width: 640px; padding: 6px 6px 6px 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); }
.searchbar .icon { color: var(--soft); }
.searchbar input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: none; outline: none; }

/* Contact page */
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__main { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact__main h2 { font-size: 1.6rem; }
.contact__side { display: grid; gap: 22px; }
.contact__list { list-style: none; display: grid; gap: 10px; }
.contact__list a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.contact__list .icon { color: var(--amber); }

/* Comments */
.comments__title { font-size: 1.5rem; }
.comments__list { list-style: none; display: grid; gap: 16px; margin-bottom: 36px; }
.comments__list .children { list-style: none; margin: 16px 0 0 24px; display: grid; gap: 16px; }
.comments__list .comment-body { padding: 16px 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.comments__list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.comments__list .comment-author img { border-radius: 50%; }
.comments__list .says { display: none; }
.comments__list .comment-metadata { font-size: .8rem; margin: 4px 0 10px; }
.comments__list .comment-metadata a { color: var(--soft); text-decoration: none; }
.comments__list .reply a { font-size: .88rem; font-weight: 600; }
.comment-form { display: grid; gap: 12px; }
.comment-form label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
.comment-form p { margin: 0; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }

/* 404 */
.notfound { text-align: center; }
.notfound__flame { width: 120px; height: 96px; color: var(--flame-2); margin: 0 auto 18px; }
.notfound .searchbar { margin: 26px auto 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: #1a120c; color: var(--on-dark-muted); padding: clamp(56px, 7vw, 88px) 0 28px; isolation: isolate; }
.footer__flame { position: absolute; z-index: -1; right: -60px; bottom: -70px; width: 360px; height: auto; color: var(--flame); opacity: .05; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.footer__brand .logo__img { height: 50px; }
.footer__brand p { margin: 18px 0; max-width: 26em; font-size: .98rem; }
.footer__col h2 { margin: 6px 0 14px; color: var(--flame); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-variation-settings: 'opsz' 14; }
.footer__col ul { list-style: none; display: grid; gap: 9px; }
.footer__col a, .footer__col .linklike { color: var(--on-dark); text-decoration: none; font-size: .98rem; }
.footer__col a:hover, .footer__col .linklike:hover { color: var(--flame); }
.footer__contact a, .footer__contact .linklike { display: inline-flex; align-items: center; gap: 10px; }
.footer__contact .icon { width: 18px; height: 18px; color: var(--flame); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(251, 241, 223, .12); font-size: .88rem; }
.footer__bottom p { margin: 0; }
.footer__bottom a { color: var(--on-dark); font-weight: 600; }
.footer__bottom a:hover { color: var(--flame); }
.social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); transition: background-color .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--ink); color: var(--flame); border-color: var(--ink); }
.social .icon { width: 18px; height: 18px; }
.social--footer a { border-color: rgba(251, 241, 223, .2); color: var(--on-dark); }
.social--footer a:hover { background: var(--flame); border-color: var(--flame); color: var(--ink); }

/* ---------- Overlays: prayer-list window, search ---------- */
.modal, .finder { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 16px; }
.modal[hidden], .finder[hidden] { display: none; }
.modal__panel { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); opacity: 0; transition: transform .25s var(--ease), opacity .25s; }
.modal.is-open .modal__panel, .finder.is-open .finder__panel { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 12px; right: 12px; }
.modal__head { text-align: center; margin-bottom: 20px; }
.modal__flame { width: 64px; height: 52px; color: var(--flame-2); margin: 0 auto 8px; }
.modal__head h2 { font-size: 1.8rem; margin-bottom: 8px; }
.modal__head p { margin: 0; color: var(--muted); font-size: 1rem; }
.finder { align-items: start; padding-top: min(12vh, 110px); }
.finder__panel { position: relative; width: min(680px, 100%); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(-12px); opacity: 0; transition: transform .25s var(--ease), opacity .25s; }
.finder__form { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--line); }
.finder__form > .icon { color: var(--soft); }
.finder__form input { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: none; outline: none; font-size: 1.2rem; }
.finder__results { list-style: none; max-height: min(56vh, 520px); overflow-y: auto; }
.finder__results a { display: grid; gap: 2px; padding: 12px 20px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.finder__results a:hover, .finder__results a.is-active { background: var(--sand); }
.finder__results strong { font-weight: 600; line-height: 1.3; }
.finder__results mark { background: rgba(248, 193, 58, .45); color: inherit; border-radius: 3px; }
.finder__results small { color: var(--soft); font-size: .8rem; }
.finder__results .finder__all { display: flex; align-items: center; gap: 8px; color: var(--amber); font-weight: 600; }
.finder__hint { margin: 0; padding: 14px 20px; color: var(--soft); font-size: .9rem; }

/* Reading progress */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--flame-2); }

/* Preview pill */
.preview-pill { position: fixed; left: 50%; bottom: 16px; z-index: 140; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--ink); color: var(--on-dark); font-size: .85rem; box-shadow: var(--shadow-lg); white-space: nowrap; }
.preview-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #5bd17a; }
.preview-pill a { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font-weight: 600; }

/* Gentle entrance */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

body.has-overlay { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.nav { display: none; }
	.menu-toggle { display: inline-grid; }
	.site-header__actions { margin-left: auto; }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	.hero__grid, .join__inner, .prayroom, .contact { grid-template-columns: minmax(0, 1fr); }
	.hero__copy { max-width: 640px; }
	.feature { max-width: 560px; }
	.prayroom__side { max-width: 520px; }
}
@media (max-width: 640px) {
	body { font-size: 1.03rem; }
	.site-header__inner { min-height: 64px; gap: 10px; }
	.logo__img { height: 38px; }
	.header-cta__label { display: none; }
	.header-cta { width: 44px; height: 44px; padding: 0; }
	.grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.shead { flex-direction: column; align-items: flex-start; gap: 10px; }
	.form__grid { grid-template-columns: minmax(0, 1fr); }
	.hero__actions .btn { flex: 1 1 100%; }
	.card--row { padding: 10px; gap: 12px; }
	.card--row .card__media { width: 84px; }
	.card--row .card__title { font-size: 1.02rem; }
	.prevnext { grid-template-columns: minmax(0, 1fr); }
	.prevnext__link--next { text-align: left; }
	.prevnext__link--next .prevnext__dir { justify-content: flex-start; }
	.footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.footer__bottom { flex-direction: column; }
	.topics__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.topic { padding: 13px 14px; }
	.topic .icon { display: none; }
	.topic__name { font-size: 1.02rem; }
	/* Phones: newest posts after the first become a compact list; shelves scroll sideways. */
	.grid--latest { gap: 14px; }
	.grid--latest .card:nth-child(n+2) { flex-direction: row; align-items: center; gap: 14px; }
	.grid--latest .card:nth-child(n+2) .card__media { flex: none; width: 96px; }
	.grid--latest .card:nth-child(n+2) .art { aspect-ratio: 1; border-radius: 12px; }
	.grid--latest .card:nth-child(n+2) .art__mark { width: 38px; height: 38px; }
	.grid--latest .card:nth-child(n+2) .art__mark .icon { width: 18px; height: 18px; }
	.grid--latest .card:nth-child(n+2) .art__label, .grid--latest .card:nth-child(n+2) .card__text { display: none; }
	.grid--latest .card:nth-child(n+2) .card__title { font-size: 1.05rem; }
	.grid--latest .card:first-child { margin-bottom: 10px; }
	.grid--shelf { display: flex; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.grid--shelf::-webkit-scrollbar { display: none; }
	.grid--shelf .card { flex: 0 0 80%; scroll-snap-align: start; }
	.prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin: 0 0 1.3em; }
	.preview-pill { bottom: 10px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
	[data-reveal] { opacity: 1; transform: none; }
}
@media print {
	.site-header, .site-footer, .join, .share, .prevnext, .preview-pill, .progress, .modal, .finder, .drawer { display: none !important; }
	body { background: #fff; }
}
