/*
Theme Name: North Chapel
Theme URI: https://github.com/writerP-777/equippingsaints-theme
Author: Don Pucik
Author URI: https://equippingsaints.com
Description: A contemplative, sidebar-less block theme for long-form devotional writing. Light Merriweather on near-white paper with a single liturgical wine accent; Scripture speaks in its own quiet voice. Built for EquippingSaints.com.
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.1
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: north-chapel
Tags: blog, one-column, block-patterns, full-site-editing, custom-colors, editor-style, translation-ready
*/

/* North Chapel — design-spec.md is the authoritative reference for every value here. */

:root {
	color-scheme: light dark;
}

/* ---------- Links: soft underline, never harsh ---------- */
a {
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* ---------- Masthead ---------- */
.nc-masthead {
	text-align: center;
	padding-top: var(--wp--preset--spacing--l);
	padding-bottom: var(--wp--preset--spacing--xl);
	border-bottom: 1px solid var(--wp--preset--color--hairline);
	margin-bottom: var(--wp--preset--spacing--m);
}
.nc-site-title {
	font-weight: 400;
	letter-spacing: -0.01em;
	padding-top: var(--wp--preset--spacing--m);
}
.nc-site-title a {
	text-decoration: none;
	color: inherit;
}
/* Below the 360px fluid-scale floor the display size (30px) overflows
   the column; step the title down so the full name always fits. */
@media (max-width: 359px) {
	.nc-site-title {
		/* !important because the preset class (has-display-font-size)
		   applies its size with !important */
		font-size: 26px !important;
	}
}
.nc-epigraph {
	font-style: italic;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
	margin-top: var(--wp--preset--spacing--2xs);
}
.nc-nav {
	margin-top: var(--wp--preset--spacing--l);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.nc-nav a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}
.nc-nav a:hover,
.nc-nav .current-menu-item a,
.nc-nav a[aria-current="page"] {
	color: var(--wp--preset--color--accent);
}

/* ---------- Apparatus text (dates, kickers, meta) ---------- */
.nc-meta,
.nc-meta a {
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}
.nc-kicker,
.nc-kicker a {
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

/* ---------- Stream entries (homepage, archives, search) ---------- */
.nc-entry {
	padding-top: var(--wp--preset--spacing--l);
	padding-bottom: var(--wp--preset--spacing--l);
	border-bottom: 1px solid var(--wp--preset--color--hairline);
}
.nc-entry .wp-block-post-title {
	font-weight: 400;
	line-height: 1.3;
	margin-top: var(--wp--preset--spacing--2xs);
	margin-bottom: var(--wp--preset--spacing--xs);
	text-wrap: balance;
}
.nc-entry .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}
.nc-entry .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}
.nc-entry .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: var(--wp--preset--spacing--xs);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}
.nc-pagination {
	padding-top: var(--wp--preset--spacing--l);
	padding-bottom: var(--wp--preset--spacing--m);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.nc-pagination a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}
.nc-pagination a:hover {
	color: var(--wp--preset--color--accent);
}

/* ---------- Page/post opening: rule + kicker (D14 vocabulary) ---------- */
.nc-post-header {
	border-top: 2px solid var(--wp--preset--color--accent);
	padding-top: var(--wp--preset--spacing--l);
	margin-top: var(--wp--preset--spacing--m);
	margin-bottom: var(--wp--preset--spacing--l);
}
.nc-post-header .wp-block-post-title {
	font-weight: 400;
	line-height: 1.25;
	margin-top: var(--wp--preset--spacing--xs);
	margin-bottom: var(--wp--preset--spacing--xs);
	text-wrap: balance;
}

/* ---------- Scripture treatment (D9, signature element) ----------
   Applies to every blockquote in post content — reaching all 151
   legacy classic-editor posts as well as block-editor quotes. */
.wp-block-post-content blockquote,
.wp-block-quote {
	margin: 2.2em 0;
	padding: 0.2em 0 0.2em 1.55em;
	border-left: 2px solid var(--wp--preset--color--accent);
	border-right: none;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 300;
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.6;
	font-style: normal;
}
.wp-block-post-content blockquote p,
.wp-block-quote p {
	margin: 0 0 0.6em;
	font-size: inherit;
	line-height: inherit;
}
.wp-block-post-content blockquote p:last-child,
.wp-block-quote p:last-child {
	margin-bottom: 0;
}
.wp-block-post-content blockquote cite,
.wp-block-quote cite {
	display: block;
	margin-top: 1em;
	font-family: var(--wp--preset--font-family--sans);
	font-style: normal;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

/* ---------- Post content niceties ---------- */
.wp-block-post-content p {
	margin-block-start: 0;
	margin-block-end: 1.2em;
}
.wp-block-post-content img {
	max-width: 100%;
	height: auto;
}
/* Classic-editor [caption] markup — same caption voice as theme.json's
   elements.caption gives block images (reaches 9 legacy posts). */
.wp-block-post-content .wp-caption {
	max-width: 100%;
}
.wp-block-post-content .wp-caption-text {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
	margin: 0.4em 0 0;
}

/* ---------- Image discipline (Phase 6 items 2–4) ----------
   functions.php tags display-time violations with .nc-img-center:
   post-opening images, images lifted out of blockquotes, and floats
   wider than 30% of the reading column (204px). !important is needed
   to beat legacy inline float/margin styles in classic-editor posts. */
.wp-block-post-content .nc-img-center,
.wp-block-post-content .nc-img-center img {
	float: none !important;
}
.wp-block-post-content .nc-img-center {
	display: block;
	clear: both;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-bottom: 1.2em;
}
.wp-block-post-content .nc-img-center img {
	display: block;
	margin-left: auto !important;
	margin-right: auto !important;
}
/* Phones: no wraps at all — every image centers below 600px (Don,
   sub-decision a: 204px would still be ~58% of a phone column). */
@media (max-width: 599px) {
	.wp-block-post-content img:not(.wp-smiley):not(.emoji),
	.wp-block-post-content .wp-caption,
	.wp-block-post-content figure.wp-block-image {
		float: none !important;
		display: block;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

/* ---------- End-of-post stack (D15) ---------- */
.nc-author-card {
	border-top: 1px solid var(--wp--preset--color--hairline);
	margin-top: var(--wp--preset--spacing--xl);
	padding-top: var(--wp--preset--spacing--m);
	gap: var(--wp--preset--spacing--m);
}
/* flex-shrink guard: without it the no-wrap author-card row squeezes the
   photo on narrow screens into a tall oval (the iPhone "cat-eye"). */
.nc-author-card .nc-avatar {
	flex-shrink: 0;
}
.nc-avatar img {
	border-radius: 50%;
	aspect-ratio: 1;
	object-fit: cover;
	/* face crop; lives here because core/image's save() has no
	   object-position attribute — inline it and the editor flags the
	   block as invalid */
	object-position: 50% 18%;
}
.nc-author-name {
	font-weight: 400;
	font-size: var(--wp--preset--font-size--body);
	margin: 0 0 0.2em;
}
.nc-author-bio {
	color: var(--wp--preset--color--muted);
	margin: 0;
}
.nc-author-bio a {
	color: var(--wp--preset--color--accent);
	font-weight: 600;
	text-decoration: none;
}
.nc-share {
	border-top: 1px solid var(--wp--preset--color--hairline);
	margin-top: var(--wp--preset--spacing--m);
	padding-top: var(--wp--preset--spacing--m);
}
.nc-related {
	border-top: 1px solid var(--wp--preset--color--hairline);
	margin-top: var(--wp--preset--spacing--m);
	padding-top: var(--wp--preset--spacing--m);
}
/* If Jetpack Related Posts has nothing to render (module off, staging
   offline), hide the "Keep reading" header rather than show it above
   an empty section. */
.nc-related:has(> .nc-meta:only-child) {
	display: none;
}
.nc-related .jp-related-posts-i2__post-heading a,
.nc-related .jp-relatedposts-post-title a {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 400;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
/* Contact-page intro copy borrows this voice; the subscribe block itself
   lives only on the Subscribe page (D15 revision 2026-07-09). */
.nc-subscribe-line {
	font-style: italic;
	margin-bottom: var(--wp--preset--spacing--s);
}
.nc-post-copyright {
	gap: 0.4em;
	padding-top: var(--wp--preset--spacing--m);
}
.nc-post-copyright p,
.nc-post-copyright .wp-block-post-date {
	color: var(--wp--preset--color--muted);
	letter-spacing: 0.03em;
	margin: 0;
}

/* ---------- Contact form (Jetpack Forms, item 11) ----------
   Same voice as the subscribe form: hairline fields, sans apparatus,
   wine button (button color comes from theme.json's button element). */
.wp-block-jetpack-contact-form .grunion-field-wrap {
	margin-bottom: var(--wp--preset--spacing--s);
}
.wp-block-jetpack-contact-form .grunion-field-label {
	display: block;
	margin-bottom: 0.35em;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.wp-block-jetpack-contact-form .grunion-label-required {
	margin-left: 0.5em;
	font-weight: 300;
	letter-spacing: 0.02em;
	text-transform: none;
}
.wp-block-jetpack-contact-form .grunion-field {
	width: 100%;
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: 2px;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 15px;
	padding: 0.55em 0.7em;
}
.wp-block-jetpack-contact-form textarea.grunion-field {
	/* explicit height: the block renders rows="20", far too tall */
	height: 11em;
	min-height: 11em;
	resize: vertical;
	line-height: 1.5;
}

/* ---------- Prev / next ---------- */
.nc-prevnext {
	border-top: 1px solid var(--wp--preset--color--hairline);
	padding-top: var(--wp--preset--spacing--m);
	margin-top: var(--wp--preset--spacing--xl);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 13.5px;
	font-weight: 600;
}
.nc-prevnext a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

/* Dormant commerce slot (D24): the cart icon and Shop nav item mount here
   when commerce activates. Nothing renders until then. */
.nc-commerce-slot {
	display: none;
}

/* ---------- Footer ---------- */
.nc-footer {
	border-top: 1px solid var(--wp--preset--color--hairline);
	margin-top: var(--wp--preset--spacing--2xl);
	padding-top: var(--wp--preset--spacing--m);
	padding-bottom: var(--wp--preset--spacing--l);
}
.nc-copyright {
	font-family: var(--wp--preset--font-family--sans);
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--muted);
}

/* ---------- Archive page: the Library (D16) ---------- */
.nc-sec-head {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	border-top: 1px solid var(--wp--preset--color--hairline);
	padding-top: var(--wp--preset--spacing--l);
	margin-top: var(--wp--preset--spacing--l);
	margin-bottom: var(--wp--preset--spacing--s);
}
.nc-recent-item {
	border-bottom: 1px dotted var(--wp--preset--color--hairline);
	padding-bottom: var(--wp--preset--spacing--xs);
	margin-bottom: var(--wp--preset--spacing--xs);
}
.nc-recent-item .wp-block-post-title {
	font-size: var(--wp--preset--font-size--body);
	font-weight: 400;
	margin: 0;
}
.nc-recent-item .wp-block-post-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.nc-recent-item .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}
.nc-recent-item .wp-block-post-date {
	color: var(--wp--preset--color--muted);
	white-space: nowrap;
}
.nc-year-grid {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--sans);
}
.nc-year-grid li {
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: 3px;
	padding: 0.3rem 0.6rem;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}
.nc-year-grid li a {
	font-weight: 600;
	font-size: 13.5px;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}
.nc-topic-pills {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.5rem;
	margin: 0 0 var(--wp--preset--spacing--m);
	padding: 0;
	font-family: var(--wp--preset--font-family--sans);
}
.nc-topic-pills li {
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: 16px;
	padding: 0.32rem 0.85rem;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}
.nc-topic-pills li a {
	font-weight: 600;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}
.nc-az-list ul {
	list-style: none;
	columns: 2;
	column-gap: 2.5rem;
	margin: 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 14px;
	line-height: 1.9;
	color: var(--wp--preset--color--muted);
}
.nc-az-list li {
	break-inside: avoid;
}
.nc-az-list li a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}
.nc-az-list li a:hover {
	text-decoration: underline;
}
@media (max-width: 480px) {
	.nc-az-list ul {
		columns: 1;
	}
}

/* ---------- Skip link ---------- */
.skip-link.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus {
	clip-path: none;
	display: block;
	height: auto;
	left: 5px;
	top: 5px;
	width: auto;
	z-index: 100000;
	padding: 12px 18px;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 600;
}
