/*
Theme Name: Watchman
Theme URI: https://endtimebegins.com
Author: Endtime Begins
Description: A wide, fast news theme for Christian end-times reporting. Lead-story home page, news ticker, verse of the day, source and scripture boxes on every story, light and dark modes, and full Customizer control. No page builder or plugin needed.
Version: 1.1.0
Requires at least: 6.0
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: watchman
Tags: news, blog, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, block-styles, accessibility-ready, left-sidebar, right-sidebar, one-column, two-columns
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--accent: #E59A1B;
	--ink: #0E1B2C;
	--alarm: #B42318;
	--container: 1320px;
	--fs-base: 15px;

	--bg: #F4F6F9;
	--surface: #FFFFFF;
	--text: #16202E;
	--muted: #55627A;
	--line: #D9DFE8;
	--link: #0B4A86;
	--kicker: color-mix(in srgb, var(--accent) 58%, #000);
	--topbar-bg: var(--ink);
	--nav-bg: var(--ink);
	--nav-text: var(--on-ink);
	--footer-bg: var(--ink);
	--footer-text: var(--on-ink-muted);
	--logo-h: 84px;
	--sidebar-w: 340px;
	--fs-read: 17px;
	--header-pad: 22px;
	--header-overlay: 0.8;
	--landing-h: 400px;
	--landing-overlay: 0.72;
	--on-ink: #E8EDF5;
	--on-ink-muted: #AEBBCD;

	--radius: 5px;
	--gap: 1.5rem;
	--font-head: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Times New Roman", serif;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-read: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Times New Roman", serif;
}

:root[data-theme="dark"] {
	--bg: #0A111B;
	--surface: #111B2A;
	--text: #E5EAF1;
	--muted: #9AA8BC;
	--line: #243449;
	--link: #86BDF5;
	--kicker: var(--accent);
	--topbar-bg: #060B12;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--bg: #0A111B;
		--surface: #111B2A;
		--text: #E5EAF1;
		--muted: #9AA8BC;
		--line: #243449;
		--link: #86BDF5;
		--kicker: var(--accent);
		--topbar-bg: #060B12;
	}
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: var(--fs-base); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; text-decoration-color: var(--accent); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; }
p { margin: 0 0 1.1em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--surface); clip: auto; clip-path: none; color: var(--text);
	display: block; height: auto; left: 8px; padding: 0.8rem 1.2rem; top: 8px; width: auto; z-index: 100000;
}
.skip-link:focus { box-shadow: 0 0 0 3px var(--accent); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.icon { flex: none; vertical-align: -0.2em; }

/* ==========================================================================
   3. Buttons and forms
   ========================================================================== */
.btn, .comment-form .submit, .wp-block-button__link, button.wp-element-button {
	display: inline-flex; align-items: center; gap: 0.4rem;
	padding: 0.6rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--surface); color: var(--text); font: inherit; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--text); text-decoration: none; }
.btn--small { padding: 0.35rem 0.75rem; font-size: 0.85rem; }
.btn--accent, .comment-form .submit { background: var(--accent); border-color: var(--accent); color: #101820; }
.btn--accent:hover, .comment-form .submit:hover { filter: brightness(0.95); border-color: var(--accent); }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea, select {
	width: 100%; padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--surface); color: var(--text); font: inherit;
}
textarea { min-height: 9rem; }

.search-form { display: flex; gap: 0.5rem; }
.search-form__field { flex: 1; min-width: 0; }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
	border: 0; border-radius: var(--radius); background: transparent; color: inherit; cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); }

/* ==========================================================================
   4. Header
   ========================================================================== */
.topbar { background: var(--topbar-bg); color: var(--on-ink-muted); font-size: 0.85rem; }
.topbar a { color: var(--on-ink); }
.topbar__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 42px; }
.topbar__date { white-space: nowrap; }
.topbar__verse { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-head); font-style: italic; color: var(--on-ink); }
.topbar__ref { margin-left: 0.5rem; font-family: var(--font-body); font-style: normal; font-size: 0.8rem; color: var(--accent); }
.topbar__nav { margin-left: auto; }
.topbar__menu { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.topbar__tools { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; color: var(--on-ink); }
.topbar__verse + .topbar__nav, .topbar__verse ~ .topbar__tools { margin-left: 0; }

#theme-toggle .icon--sun { display: none; }
:root[data-theme="dark"] #theme-toggle .icon--sun { display: inline-block; }
:root[data-theme="dark"] #theme-toggle .icon--moon { display: none; }

.header-search { background: var(--surface); border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.header-search[hidden] { display: none; }

.masthead { background: var(--surface); border-bottom: 4px solid var(--accent); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: var(--header-pad); }
.branding { min-width: 0; }
.branding__link { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--text); text-decoration: none; }
.branding__link:hover { text-decoration: none; }
.branding__link .mark { color: var(--accent); }
.branding__title { margin: 0; font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1; }
.branding__tagline { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.95rem; }
.branding__logo img { max-height: 80px; width: auto; }
.logo { width: auto; height: min(var(--logo-h), 18vw); }
.logo--dark { display: none; }
:root[data-theme="dark"] .logo--light { display: none; }
:root[data-theme="dark"] .logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) .logo--light { display: none; }
	:root:not([data-theme]) .logo--dark { display: block; }
}
.footer-logo { width: auto; height: 84px; }
.masthead__banner { flex: 0 1 728px; min-width: 0; }
.masthead__banner .widget { margin: 0; }

.nav-bar { background: var(--nav-bg); color: var(--nav-text); z-index: 60; }
.has-sticky-nav .nav-bar { position: sticky; top: 0; }
.admin-bar.has-sticky-nav .nav-bar { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-sticky-nav .nav-bar { top: 46px; } }
@media (max-width: 600px) { .admin-bar.has-sticky-nav .nav-bar { top: 0; } }

.nav-bar__inner { position: relative; }
.nav-toggle { display: none; align-items: center; gap: 0.6rem; width: 100%; padding: 0.85rem 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }

.primary-nav .menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav a { display: block; padding: 0.95rem 1.05rem; color: var(--nav-text); font-weight: 600; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-cat > a, .primary-nav .current-menu-ancestor > a { background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 -3px 0 var(--accent); }

.primary-nav .sub-menu, .primary-nav .children {
	position: absolute; left: 0; top: 100%; z-index: 70; min-width: 220px; margin: 0; padding: 0.4rem 0; list-style: none;
	background: var(--ink); border-top: 3px solid var(--accent); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu,
.primary-nav li:hover > .children, .primary-nav li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a, .primary-nav .children a { padding: 0.6rem 1.1rem; font-weight: 500; }
.submenu-toggle { display: none; }

@media (max-width: 900px) {
	.nav-toggle { display: flex; }
	.primary-nav { display: none; padding-bottom: 0.75rem; }
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { display: block; }
	.primary-nav .menu > li { display: flex; flex-wrap: wrap; align-items: stretch; border-top: 1px solid rgba(255, 255, 255, 0.1); }
	.primary-nav .menu > li > a { flex: 1; }
	.submenu-toggle { display: flex; align-items: center; justify-content: center; width: 48px; border: 0; background: none; color: inherit; cursor: pointer; }
	.submenu-toggle .icon { transition: transform 0.15s; }
	.is-open > .submenu-toggle .icon { transform: rotate(180deg); }
	.primary-nav .sub-menu, .primary-nav .children { position: static; display: none; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; background: rgba(255, 255, 255, 0.05); }
	.primary-nav li.is-open > .sub-menu, .primary-nav li.is-open > .children { display: block; }
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { transform: none; }
	.topbar__date { display: none; }
	.topbar__nav { display: none; }
	.masthead__banner { display: none; }
}

/* Ticker */
.ticker { color: #101820; }
.ticker--latest { background: var(--accent); }
.ticker--breaking { background: var(--alarm); color: #fff; }
.ticker__inner { display: flex; align-items: stretch; gap: 1rem; }
.ticker__label { display: flex; align-items: center; padding: 0.5rem 1rem; margin-left: -1.25rem; background: rgba(0, 0, 0, 0.82); color: #fff; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.ticker__track { display: flex; width: max-content; animation: ticker var(--ticker-duration, 60s) linear infinite; }
.ticker__list { display: flex; flex: none; gap: 2.5rem; margin: 0; padding: 0 1.25rem; list-style: none; }
.ticker__list a { display: inline-block; padding: 0.55rem 0; color: inherit; font-weight: 600; font-size: 0.92rem; text-decoration: none; white-space: nowrap; }
.ticker__list a:hover { text-decoration: underline; }
.ticker__list li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 2.5rem; border-radius: 50%; background: currentColor; opacity: 0.55; vertical-align: middle; }
.ticker__list li { display: flex; align-items: center; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track, .ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__toggle { display: flex; align-items: center; padding: 0 0.6rem; border: 0; background: rgba(0, 0, 0, 0.12); color: inherit; cursor: pointer; }
.ticker.is-paused .icon--pause, .ticker:not(.is-paused) .icon--play { display: none; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.ticker__track { animation: none; }
	.ticker__viewport { overflow-x: auto; }
	.ticker__list[aria-hidden="true"], .ticker__toggle { display: none; }
}

/* ==========================================================================
   5. Layout
   ========================================================================== */
.site { padding-bottom: 3rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-w); gap: 3rem; margin-top: 2rem; }
.layout--left { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.layout--left .sidebar { order: -1; }
.layout--none { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1000px) {
	.layout, .layout--left { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.layout--left .sidebar { order: 0; }
}

.section-title { display: inline-block; margin: 0 0 1.25rem; padding-bottom: 0.35rem; border-bottom: 4px solid var(--accent); font-size: 1.3rem; }
.section-title a { color: inherit; text-decoration: none; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.section-head .section-title { margin: 0 0 -1px; }
.section-head__more { font-size: 0.9rem; font-weight: 600; }
.category-section { margin-top: 3rem; }

.archive-header { margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.archive-title { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.archive-description { margin-top: 0.6rem; color: var(--muted); max-width: 70ch; }
.archive-description p:last-child { margin-bottom: 0; }

/* ==========================================================================
   6. Home hero
   ========================================================================== */
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap); margin-top: 2rem; }
.lead { position: relative; min-height: 540px; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: #fff; }
.lead__media { position: absolute; inset: 0; display: block; }
.lead__media img, .lead__media .thumb-placeholder { width: 100%; height: 100%; object-fit: cover; }
.lead__body { position: absolute; inset: auto 0 0 0; padding: 4rem 2rem 2rem; background: linear-gradient(to top, rgba(6, 11, 18, 0.94) 10%, rgba(6, 11, 18, 0.72) 55%, rgba(6, 11, 18, 0)); }
.lead .kicker { color: var(--accent); }
.lead__title { margin: 0.35rem 0 0.7rem; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.1; letter-spacing: -0.012em; max-width: 22ch; }
.lead__title a { color: #fff; text-decoration: none; }
.lead__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.lead__excerpt { max-width: 60ch; margin-bottom: 0.9rem; color: #D8E0EC; font-size: 1rem; }
.lead .meta { color: #B9C5D6; }
.lead .meta a { color: inherit; }

.hero__side { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hero__side .compact { flex: 1; padding: 1rem 1.1rem; }
.hero__side .compact + .compact { border-top: 1px solid var(--line); }

@media (max-width: 900px) {
	.hero { grid-template-columns: minmax(0, 1fr); }
	.lead { min-height: 420px; }
	.lead__body { padding: 3rem 1.25rem 1.25rem; }
}

/* ==========================================================================
   7. Cards
   ========================================================================== */
.kicker { display: inline-block; margin-bottom: 0.3rem; color: var(--kicker); font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.kicker:hover { text-decoration: underline; }

.meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0; color: var(--muted); font-size: 0.82rem; }
.meta a { color: inherit; }
.meta__item { display: inline-flex; align-items: center; gap: 0.3rem; padding-right: 0.75rem; margin-right: 0.75rem; border-right: 1px solid currentColor; line-height: 1; }
.meta__item:last-child { padding-right: 0; margin-right: 0; border-right: 0; }

.thumb-placeholder { display: grid; place-items: center; width: 100%; height: 100%; aspect-ratio: 16 / 10; background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 88%, var(--accent)) 0%, var(--ink) 100%); color: var(--accent); }

.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card__media { display: block; overflow: hidden; background: var(--ink); aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.15rem 1.1rem; }
.card__body .meta { margin-top: auto; padding-top: 0.5rem; }
.card__title { margin: 0 0 0.5rem; font-size: 1.1rem; line-height: 1.22; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.card__excerpt { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.95rem; }
.sticky .card__title::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.45em; border-radius: 50%; background: var(--accent); vertical-align: 0.1em; }

.card--row { flex-direction: row; }
.card--row .card__media { flex: 0 0 300px; aspect-ratio: auto; min-height: 100%; }
.card--row .card__title { font-size: 1.25rem; }
.card-list { display: grid; gap: var(--gap); }

.card-grid { display: grid; gap: var(--gap); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.card-grid--4, .card-grid--3, .card-grid--2 { grid-template-columns: minmax(0, 1fr); }
	.card--row { flex-direction: column; }
	.card--row .card__media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
}

.compact { display: flex; gap: 0.9rem; align-items: flex-start; }
.compact__media { flex: 0 0 88px; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.compact__media img { width: 100%; height: 100%; object-fit: cover; }
.compact__media .thumb-placeholder { aspect-ratio: 1; }
.compact__media .mark { width: 36px; height: 36px; }
.compact__title { margin: 0 0 0.35rem; font-size: 0.98rem; line-height: 1.25; }
.compact__title a { color: var(--text); text-decoration: none; }
.compact__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* ==========================================================================
   8. Pagination
   ========================================================================== */
.pagination { margin-top: 2.25rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.page-numbers { display: inline-flex; align-items: center; min-width: 2.5rem; justify-content: center; padding: 0.55rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; }
a.page-numbers:hover { border-color: var(--text); }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
:root[data-theme="dark"] .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #101820; }
.page-numbers.dots { border: 0; background: none; }

/* ==========================================================================
   9. Single story
   ========================================================================== */
.story { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 3rem); }
.story__header { margin-bottom: 1.5rem; }
.story__title { margin: 0.2rem 0 0.8rem; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; letter-spacing: -0.015em; }
.story__standfirst { margin: 0 0 1rem; color: var(--muted); font-family: var(--font-head); font-size: 1.15rem; line-height: 1.45; }
.story__figure { margin: 0 0 2rem; }
.story__figure img { width: 100%; border-radius: var(--radius); }
.story__figure figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.85rem; }

.entry-header { margin-bottom: 1.5rem; }
.entry-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -0.012em; }
.entry-figure { margin: 0 0 2rem; }
.entry-figure img { width: 100%; border-radius: var(--radius); }

.entry-content { max-width: 44rem; font-family: var(--font-read); font-size: var(--fs-read); line-height: 1.75; }
.entry-content > * { margin-top: 0; margin-bottom: 1.4em; }
.entry-content h2 { margin-top: 2.2em; font-size: 1.5rem; }
.entry-content h3 { margin-top: 1.9em; font-size: 1.25rem; }
.entry-content h4 { margin-top: 1.6em; font-size: 1.15rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content a { color: var(--link); text-decoration-thickness: 1px; }
.entry-content blockquote, .wp-block-quote { margin-inline: 0; padding: 0.2rem 0 0.2rem 1.4rem; border-left: 5px solid var(--accent); font-style: italic; }
.entry-content blockquote cite { display: block; margin-top: 0.5rem; font-size: 0.9rem; font-style: normal; color: var(--muted); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .wp-caption-text { margin-top: 0.4rem; color: var(--muted); font-family: var(--font-body); font-size: 0.85rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: 0.95rem; }
.entry-content th, .entry-content td { padding: 0.6rem 0.8rem; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--bg); }
.entry-content pre { overflow-x: auto; padding: 1rem; border-radius: var(--radius); background: var(--ink); color: #E8EDF5; font-size: 0.9rem; }
.entry-content code { font-size: 0.9em; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.entry-content .alignwide { max-width: none; }
.entry-content .alignfull { max-width: none; }
.entry-content--full { max-width: none; font-family: var(--font-body); font-size: 1rem; line-height: 1.6; }
.entry-content iframe, .entry-content .wp-block-embed__wrapper { max-width: 100%; }
.wp-block-embed.is-type-video .wp-block-embed__wrapper, .entry-content .is-type-video iframe { aspect-ratio: 16 / 9; width: 100%; height: auto; }

.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.page-links { margin-top: 1.5rem; font-family: var(--font-body); font-weight: 600; }

.story-box { max-width: 44rem; margin-top: 1.75rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); background: var(--bg); }
.story-box__title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.4rem; font-family: var(--font-body); font-size: 0.95rem; }
.story-box p { margin: 0; }
.story-box ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.story-box--scripture { border-left-color: var(--kicker); }

.story__footer { max-width: 44rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 1rem; }
.tags__label { margin-right: 0.3rem; color: var(--muted); font-size: 0.85rem; }
.tags a { padding: 0.2rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 0.85rem; text-decoration: none; }
.tags a:hover { border-color: var(--accent); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.share__label { margin-right: 0.3rem; color: var(--muted); font-size: 0.85rem; }

.author-box { display: flex; gap: 1.25rem; margin-top: 1.5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.author-box__avatar { border-radius: 50%; flex: none; }
.author-box__name { margin: 0 0 0.25rem; font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; }
.author-box__name a { color: var(--text); text-decoration: none; }
.author-box__bio { margin: 0; color: var(--muted); }

.post-navigation { margin-top: 1.5rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.post-navigation a { display: block; height: 100%; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.post-navigation a:hover { border-color: var(--accent); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.nav-sub { display: block; margin-bottom: 0.25rem; color: var(--muted); font-size: 0.8rem; }
.nav-title { display: block; font-family: var(--font-head); font-weight: 700; line-height: 1.25; }
@media (max-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { grid-column: auto; } }

.related { margin-top: 2.5rem; }

/* Pages */
.page-main { margin-top: 2rem; }
.page-article { max-width: 60rem; margin-inline: auto; padding: clamp(1.25rem, 4vw, 3rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fullwidth-main { margin-top: 0; }
.fullwidth-main .entry-content { margin: 0; }
.not-found { margin-top: 2.5rem; }
.not-found .search-form { max-width: 560px; margin-block: 1.25rem 2.5rem; }
.no-results { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.no-results .search-form { max-width: 520px; }

/* ==========================================================================
   10. Comments
   ========================================================================== */
.comments { margin-top: 2.5rem; padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.comment-list, .comment-list ol { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: clamp(0.75rem, 4vw, 2.5rem); padding-left: 1rem; border-left: 2px solid var(--line); }
.comment-body { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; font-size: 0.88rem; color: var(--muted); }
.comment-author { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--text); }
.comment-author img { border-radius: 50%; }
.comment-metadata a { color: var(--muted); }
.comment-content p:last-child { margin-bottom: 0; }
.reply a { font-size: 0.85rem; font-weight: 600; }
.bypostauthor > .comment-body { border-left: 4px solid var(--accent); padding-left: 1rem; }
.comment-form label { display: block; margin-bottom: 0.3rem; font-weight: 600; font-size: 0.9rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 0.5rem; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-form-cookies-consent input { width: auto; }
#reply-title { font-size: 1.4rem; }

/* ==========================================================================
   11. Widgets and sidebar
   ========================================================================== */
.sidebar .widget, .footer-col .widget { margin-bottom: 2rem; }
.sidebar .widget { padding: 1.25rem 1.35rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.widget__title { margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 3px solid var(--accent); font-size: 1.15rem; display: inline-block; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 0.45rem 0; border-top: 1px solid var(--line); }
.widget li:first-child { border-top: 0; padding-top: 0; }
.widget li a { color: var(--text); text-decoration: none; }
.widget li a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.widget .children, .widget .sub-menu { margin-top: 0.4rem; margin-left: 1rem; }
.widget_categories li, .widget_archive li { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.widget_categories li > ul { flex-basis: 100%; }
.widget .tagcloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.widget .tagcloud a { padding: 0.2rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem !important; color: var(--text); text-decoration: none; }

.popular-list { counter-reset: pop; }
.popular-list__item { display: flex; gap: 0.8rem; counter-increment: pop; }
.popular-list__item::before { content: counter(pop); flex: none; width: 1.5rem; color: var(--kicker); font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.popular-list__item a { font-family: var(--font-head); font-weight: 700; line-height: 1.3; }

.verse { margin: 0; }
.verse blockquote { margin: 0; padding: 0; border: 0; }
.verse p { margin: 0 0 0.6rem; font-family: var(--font-head); font-size: 1.15rem; font-style: italic; line-height: 1.5; }
.verse figcaption { color: var(--kicker); font-weight: 700; font-size: 0.9rem; }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer { background: var(--footer-bg); color: var(--footer-text); border-top: 4px solid var(--accent); }

.site-footer a { color: inherit; }
.footer-top { display: flex; flex-wrap: wrap; gap: 2.5rem; padding-block: 3rem 2rem; }
.footer-top > * { flex: 1 1 200px; min-width: 0; }
.footer-top > .footer-about { flex: 1.5 1 280px; }

.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; }
.footer-brand .mark { color: var(--accent); }
.footer-about__text { max-width: 46ch; }
.site-footer .widget__title { color: #fff; }
.site-footer .widget li { border-color: rgba(255, 255, 255, 0.12); }
.site-footer .widget li a { color: var(--on-ink); }
.social-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.social-links a { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.8rem; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; font-size: 0.85rem; text-decoration: none; }
.social-links a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.88rem; }
.footer-copy { margin: 0; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.footer-disclaimer { margin: 0; padding-bottom: 2rem; max-width: 80ch; font-size: 0.82rem; opacity: 0.85; }


/* ==========================================================================
   13. Utilities: progress, back to top
   ========================================================================== */
.read-progress { position: fixed; top: 0; left: 0; z-index: 9999; width: 0; height: 4px; background: var(--accent); }
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 80; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--accent); color: #101820; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); cursor: pointer; }
.to-top[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Options: announcement, header image, layout variants
   ========================================================================== */
.announce { color: #101820; font-size: 0.92rem; font-weight: 600; text-align: center; }
.announce a { color: inherit; }
.announce__inner { padding-block: 0.55rem; }
.announce--accent { background: var(--accent); }
.announce--alarm { background: var(--alarm); color: #fff; }
.announce--ink { background: var(--ink); color: #fff; }

.masthead--image { position: relative; background-size: cover; background-position: center; isolation: isolate; }
.masthead--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface); opacity: var(--header-overlay); }

.header-center .masthead__inner { flex-direction: column; text-align: center; }
.header-center .branding { display: flex; flex-direction: column; align-items: center; }
.nav-align-center .primary-nav .menu { justify-content: center; }
.nav-align-right .primary-nav .menu { justify-content: flex-end; }
@media (max-width: 900px) { .nav-align-center .primary-nav .menu, .nav-align-right .primary-nav .menu { justify-content: flex-start; } }

.sub-nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.sub-nav__menu { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0.55rem 0; list-style: none; font-size: 0.9rem; font-weight: 600; }
.sub-nav__menu a { color: var(--text); text-decoration: none; }
.sub-nav__menu a:hover { color: var(--link); text-decoration: underline; }

.layout-boxed .site-header, .layout-boxed .nav-bar, .layout-boxed .site, .layout-boxed .site-footer, .layout-boxed .sub-nav, .layout-boxed .ticker, .layout-boxed .announce { max-width: calc(var(--container) + 3rem); margin-inline: auto; }
.layout-boxed .site { background: var(--bg); padding-inline: 1.5rem; }
.layout-boxed .landing-hero, .layout-boxed .verse-band, .layout-boxed .cta-band { margin-inline: -1.5rem; }
body.layout-boxed { box-shadow: none; }

.card-style-shadow .card, .card-style-shadow .story, .card-style-shadow .sidebar .widget { border-color: transparent; box-shadow: 0 2px 14px rgba(10, 20, 40, 0.12); }
.card-style-flat .card { border: 0; background: transparent; border-radius: 0; }
.card-style-flat .card__body { padding-inline: 0; }
.card-style-flat .card__media { border-radius: var(--radius); }
.hero--single { grid-template-columns: minmax(0, 1fr); }
.home-widgets { margin-top: 2rem; }
.home-widgets .widget { margin-bottom: 1.5rem; }
.story-end { margin-top: 2rem; }
.story-end .widget { padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sub-nav + .ticker, .nav-bar + .ticker { margin-top: 0; }

/* ==========================================================================
   Static home page
   ========================================================================== */
.landing-hero { position: relative; display: flex; align-items: center; min-height: var(--landing-h); background: linear-gradient(160deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 80%, var(--accent)) 100%) center / cover no-repeat; color: #fff; border-bottom: 6px solid var(--accent); isolation: isolate; }
.landing-hero__shade { position: absolute; inset: 0; z-index: -1; background: var(--ink); opacity: var(--landing-overlay); }
.landing-hero__inner { padding-block: 3rem; }
.landing-hero__title { max-width: 18ch; margin: 0 0 1rem; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; color: #fff; }
.landing-hero__intro { max-width: 52ch; margin: 0 0 1.75rem; color: #D8E0EC; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; }
.landing-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.landing-hero .btn { padding: 0.7rem 1.25rem; font-size: 0.95rem; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.landing-hero--center { text-align: center; }
.landing-hero--center .landing-hero__title, .landing-hero--center .landing-hero__intro { margin-inline: auto; }
.landing-hero--center .landing-hero__actions { justify-content: center; }

.landing-section { margin-top: 3.5rem; }
.entry-content--landing { max-width: 56rem; margin-inline: auto; }

.verse-band { margin-top: 3.5rem; padding-block: 3rem; background: var(--accent); color: #101820; }
.verse-band__figure { max-width: 52rem; margin: 0 auto; text-align: center; }
.verse-band blockquote { margin: 0; padding: 0; border: 0; }
.verse-band p { margin: 0 0 0.75rem; font-family: var(--font-head); font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-style: italic; line-height: 1.4; }
.verse-band figcaption { font-weight: 700; }

.topic-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.topic-tile { display: flex; flex-direction: column; gap: 0.25rem; height: 100%; padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.topic-tile:hover { border-color: var(--accent); }
.topic-tile__name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.topic-tile__count { color: var(--muted); font-size: 0.88rem; }

.principles { margin-top: 3.5rem; padding-block: 3.5rem; background: var(--surface); border-block: 1px solid var(--line); }
.principles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.principle__title { margin: 0 0 0.5rem; font-size: 1.3rem; }
.principle p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .principles__grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; } }

.cta-band { margin-top: 3.5rem; padding-block: 3.5rem; background: var(--ink); color: var(--on-ink); border-top: 6px solid var(--accent); text-align: center; }
.cta-band__title { margin: 0 0 0.6rem; color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band p { max-width: 52ch; margin-inline: auto; color: var(--on-ink-muted); }
.cta-band .social-links { justify-content: center; }
.cta-band .social-links a { color: var(--on-ink); }
.is-landing .site { padding-bottom: 0; }

@media print {
	.topbar, .nav-bar, .ticker, .sidebar, .site-footer, .share, .to-top, .read-progress, .comments, .related, .post-navigation, .header-search { display: none !important; }
	body { background: #fff; color: #000; }
	.story { border: 0; padding: 0; }
	.entry-content { max-width: none; font-size: 12pt; }
}
