/*
Theme Name: New Creation Ministry
Theme URI: https://floulexweb.com/
Author: Floulex Web
Author URI: https://floulexweb.com/
Description: Built from scratch for New Creation Ministry in Lake Charles, Louisiana.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: Proprietary
Text Domain: new-creation-ministry
*/

/*
 * THE PALETTE COMES FROM HIS LOGO AND NOWHERE ELSE.
 *
 * The logo is the poster "The Lion of the Tribe of Judah has triumphed": a black
 * field, white lettering, gold lettering and a gold rule. Measured off the file:
 *
 *   --ncm-black  #010101  the poster's own black field. Not a designer's soft
 *                         black: the page matches the poster to the digit so the
 *                         poster sits on the page with no visible edge.
 *   --ncm-white  #ffffff  the poster's white lettering, LION and TRIUMPHED.
 *   --ncm-gold   #d8a858  the poster's gold lettering, TRIBE OF JUDAH. On black
 *                         this measures 9.6:1.
 *
 * His flyers are royal blue. That blue is deliberately NOT here: flyers are
 * flyers, the logo sets the palette (Howard's rule, after the BOCIF purple).
 *
 * Everything else is derived, not chosen:
 *
 *   --ncm-gold-deep  the same gold at the same hue, walked down until it reads as
 *                    text on white (6.27:1) and on paper (5.71:1). The bright gold
 *                    fails on a light ground, so it never sets text there.
 *   --ncm-paper      white with a trace of that gold, for the one section that
 *                    has to read as a change of subject without a change of mood.
 *   --ncm-muted and --ncm-mist  quiet text for the light and the dark grounds.
 *                    A palette's muted tone is tuned for one ground only.
 *
 * Gold is spent on the rule, the times of the week and the one action on a dark
 * ground. It is never a background except the single invitation band.
 *
 * TYPE. Gloock is a heavy, high contrast display serif, the closest open licence
 * relative of the poster's own "LION". Hanken Grotesk stands in for the poster's
 * plain "TRIUMPHED", and body text sits at 18px for readers of every age.
 * Both are SIL Open Font License and self hosted, so nothing is owed per site.
 *
 * THE ONE SIGNATURE MOTION is the poster's own gold rule, with the small star
 * that sits beside HAS on the poster: a heading's rule draws in from the left
 * and the star lands at its end. It runs once per heading and stops.
 */

:root {
	--ncm-black: #010101;
	--ncm-raised: #14110b;
	--ncm-white: #ffffff;
	--ncm-gold: #d8a858;
	--ncm-gold-lift: #ecc988;
	--ncm-gold-deep: #7d5a1c;
	--ncm-paper: #f8f4ea;
	--ncm-muted: #55504a;
	--ncm-mist: #c9c3b6;
	--ncm-line: #e2d8c3;
	--ncm-line-dark: #3a3222;
	--ncm-gutter: clamp(1rem, 4vw, 2.5rem);
	--ncm-display: "Gloock", Georgia, "Times New Roman", serif;
	--ncm-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ncm-black); }

/* The html ground is the poster black, so a short page runs into the foot rather
   than ending in a white strip. The main column carries the white. */
body {
	margin: 0;
	color: var(--ncm-black);
	font-family: var(--ncm-body);
	font-size: 1.125rem;
	line-height: 1.6;
	overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
	font-family: var(--ncm-display);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0;
	text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 7.4vw, 5.75rem); }
h2 { font-size: clamp(2.05rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.18; }

p { margin: 0; }

a { color: var(--ncm-gold-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ncm-black); }

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

.ncm-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.ncm-skip {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 40;
	padding: 0.6rem 1rem;
	background: var(--ncm-gold);
	color: var(--ncm-black);
}
.ncm-skip:focus { top: 0.5rem; color: var(--ncm-black); }

/* The one wrapper. Content sits on the same left edge on every page. */
.ncm-wrap {
	width: min(74rem, 100% - 2 * var(--ncm-gutter));
	margin-inline: auto;
}

/* ---------------------------------------------------------------- the bar */

.ncm-sentinel { display: block; height: 1px; margin-bottom: -1px; }

.ncm-bar {
	background: var(--ncm-black);
	color: var(--ncm-white);
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s ease;
}
.ncm-bar.is-stuck { border-bottom-color: var(--ncm-line-dark); }

.ncm-bar-in {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "plate call" "nav nav";
	align-items: center;
	gap: 0.15rem 1rem;
	padding-block: 0.6rem 0.2rem;
}

.ncm-plate {
	grid-area: plate;
	font-family: var(--ncm-display);
	font-size: clamp(1.28rem, 4.2vw, 1.5rem);
	line-height: 1.15;
	color: var(--ncm-white);
	text-decoration: none;
	white-space: nowrap;
}
.ncm-plate:hover { color: var(--ncm-gold); }

.ncm-nav {
	grid-area: nav;
	display: flex;
	justify-content: space-between;
	gap: 0.25rem;
	font-size: 1rem;
	font-weight: 500;
}
.ncm-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: var(--ncm-white);
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
}
.ncm-nav a:hover { color: var(--ncm-gold); }
.ncm-nav a[aria-current] { border-bottom-color: var(--ncm-gold); }

.ncm-call {
	grid-area: call;
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	padding: 0 0.9rem;
	border: 1px solid var(--ncm-gold);
	color: var(--ncm-gold);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	white-space: pre;
	transition: background-color 0.18s ease, color 0.18s ease;
}
.ncm-call:hover { background: var(--ncm-gold); color: var(--ncm-black); }
.ncm-call-num { display: none; }

@media (min-width: 620px) {
	.ncm-call-num { display: inline; }
}

@media (min-width: 900px) {
	.ncm-bar {
		position: sticky;
		top: 0;
		z-index: 30;
	}
	.ncm-bar-in {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "plate nav call";
		gap: 1.5rem;
		padding-block: 0.7rem;
	}
	.ncm-nav { justify-content: flex-end; gap: clamp(1rem, 2vw, 1.75rem); }
}

/* --------------------------------------------------------- the grounds */

.ncm-sec { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.ncm-white { background: var(--ncm-white); color: var(--ncm-black); }
.ncm-paper { background: var(--ncm-paper); color: var(--ncm-black); }

.ncm-ink { background: var(--ncm-black); color: var(--ncm-white); }
.ncm-ink a:not(.ncm-btn) { color: var(--ncm-gold); }
.ncm-ink a:not(.ncm-btn):hover { color: var(--ncm-gold-lift); }

.ncm-lede {
	font-size: clamp(1.2rem, 2.1vw, 1.45rem);
	line-height: 1.45;
	max-width: 34rem;
}
.ncm-ink .ncm-lede { color: var(--ncm-mist); }
.ncm-lede + .ncm-lede, .ncm-address + p { margin-top: 0.85rem; }

.ncm-address {
	font-family: var(--ncm-display);
	font-size: clamp(1.6rem, 3.4vw, 2.2rem);
	line-height: 1.2;
}

.ncm-prose { max-width: 38rem; }
.ncm-prose > * + * { margin-top: 1rem; }

/* The rule off the poster, and the star beside it. */
.ncm-ruled {
	position: relative;
	padding-bottom: 0.62em;
	margin-bottom: 1.5rem;
}
.ncm-ruled::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: min(100%, 11rem);
	height: 3px;
	background: var(--ncm-gold);
	transform-origin: left center;
	transition: transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ncm-ruled::before {
	content: "";
	position: absolute;
	left: min(100%, 11rem);
	bottom: -0.56rem;
	width: 1.2rem;
	height: 1.2rem;
	margin-left: -0.6rem;
	background: var(--ncm-gold);
	clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%);
	transition: opacity 0.3s ease 0.7s, transform 0.5s ease 0.7s;
}

/* A heading that is only a label for the large statement under it. */
.ncm-ruled--label { font-size: clamp(1.45rem, 2.6vw, 1.85rem); }

.ncm-link {
	display: inline-block;
	margin-top: 1.5rem;
	font-weight: 600;
}

.ncm-acts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.ncm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	padding: 0.6rem 1.4rem;
	background: var(--ncm-black);
	border: 1px solid var(--ncm-black);
	color: var(--ncm-white);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.ncm-btn:hover { background: var(--ncm-gold-deep); border-color: var(--ncm-gold-deep); color: var(--ncm-white); }

.ncm-btn--gold { background: var(--ncm-gold); border-color: var(--ncm-gold); color: var(--ncm-black); }
.ncm-btn--gold:hover { background: var(--ncm-gold-lift); border-color: var(--ncm-gold-lift); color: var(--ncm-black); }

.ncm-btn--line { background: transparent; color: var(--ncm-black); }
.ncm-btn--line:hover { background: var(--ncm-black); border-color: var(--ncm-black); color: var(--ncm-white); }

.ncm-ink .ncm-btn--line { border-color: var(--ncm-gold); color: var(--ncm-gold); }
.ncm-ink .ncm-btn--line:hover { background: var(--ncm-gold); color: var(--ncm-black); }

/* ------------------------------------------------------------ the opening */

.ncm-hero { padding-block: clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem); }

.ncm-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.25rem;
	align-items: center;
}

.ncm-hero h1 { margin-bottom: 1.1rem; }

.ncm-hero-words {
	font-family: var(--ncm-display);
	font-size: clamp(1.35rem, 2.7vw, 1.95rem);
	line-height: 1.25;
	color: var(--ncm-gold);
	margin-bottom: 1.1rem;
}

.ncm-hero-when {
	margin-top: 0.85rem;
	font-weight: 600;
	color: var(--ncm-white);
}

/*
 * The poster is 503px wide and nothing is ever going to make it wider, so it is
 * capped well under that on a retina screen. It has no frame on purpose: the page
 * is the poster's own black, so the lion sits straight on the site.
 */
.ncm-poster { margin: 0; max-width: 19rem; }
.ncm-poster img { width: 100%; }
.ncm-poster--small { max-width: 16rem; }

@media (min-width: 900px) {
	.ncm-hero-grid { grid-template-columns: minmax(0, 1fr) 22rem; gap: 3rem; }
	.ncm-poster { max-width: 22rem; }
	.ncm-poster--small { max-width: 18rem; }
}

/* Every inner page opens the same way, and shorter than the home page. */
.ncm-open { padding-block: clamp(2.25rem, 6vw, 4.5rem); }
.ncm-open h1 { margin-bottom: 1rem; }

/* --------------------------------------------------------------- the week */

.ncm-week { list-style: none; margin: 0; padding: 0; }

.ncm-week-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.1rem;
	padding-block: 1.1rem;
	border-bottom: 1px solid var(--ncm-line);
}

.ncm-week-day { font-weight: 600; color: var(--ncm-muted); }

.ncm-week-time {
	font-family: var(--ncm-display);
	font-size: clamp(2.2rem, 5vw, 3.1rem);
	line-height: 1.1;
	letter-spacing: 0.02em;
	font-kerning: none;   /* Gloock kerns 11 until it reads as two bars */
	white-space: nowrap;
}

.ncm-week-what { font-size: 1.2rem; font-weight: 500; }

.ncm-week-how {
	display: block;
	margin-top: 0.15rem;
	font-size: 1.0625rem;
	font-weight: 600;
}

@media (min-width: 760px) {
	.ncm-week-row {
		grid-template-columns: 9rem 14rem minmax(0, 1fr);
		gap: 1.5rem;
		align-items: baseline;
		padding-block: 1.25rem;
	}
	.ncm-week-what { font-size: 1.3rem; }
}

/* ----------------------------------------------- side by side, then stacked */

.ncm-pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.25rem;
}

@media (min-width: 900px) {
	.ncm-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
	.ncm-pair--flyer { grid-template-columns: minmax(0, 1fr) 26rem; align-items: center; }
	.ncm-pair--narrow-first { grid-template-columns: 18rem minmax(0, 1fr); }
}

/* The facts a first-time visitor actually asks. */
.ncm-facts { margin: 0; padding: 0; }
.ncm-fact:first-child { padding-top: 0; }

.ncm-fact {
	padding-block: 1.05rem;
	border-bottom: 1px solid var(--ncm-line);
}
.ncm-fact h3 { margin-bottom: 0.3rem; }
.ncm-fact p { color: var(--ncm-muted); }

/* ---------------------------------------------------------- the prayer line */

.ncm-dial { margin-top: 1.75rem; max-width: 30rem; }

.ncm-dial-go { width: 100%; font-size: 1.25rem; min-height: 3.75rem; }

.ncm-dial-facts { margin: 1.25rem 0 0; border-top: 1px solid var(--ncm-line-dark); }
.ncm-dial-facts > div {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	gap: 0.75rem;
	align-items: baseline;
	padding-block: 0.7rem;
	border-bottom: 1px solid var(--ncm-line-dark);
}
.ncm-dial-facts dt { color: var(--ncm-mist); }
.ncm-dial-facts dd {
	margin: 0;
	font-family: var(--ncm-display);
	font-size: clamp(1.5rem, 3.6vw, 1.9rem);
	line-height: 1.2;
	letter-spacing: 0.03em;   /* a number somebody has to dial: air between the digits */
	font-kerning: none;
	color: var(--ncm-white);
	font-variant-numeric: lining-nums;
}
.ncm-ink .ncm-dial-facts dd a { color: var(--ncm-white); text-decoration: none; }

.ncm-steps { list-style: none; margin: 0; padding: 0; }
.ncm-steps li { padding-block: 1rem; border-top: 1px solid var(--ncm-line); }
.ncm-steps li:first-child { border-top: 0; padding-top: 0; }
.ncm-steps strong { display: block; font-size: 1.2rem; }

/* ------------------------------------------------- what they believe, large */

.ncm-creed {
	font-family: var(--ncm-display);
	font-size: clamp(2.1rem, 5.4vw, 4rem);
	line-height: 1.12;
	max-width: 22ch;
	text-wrap: balance;
}
.ncm-ink .ncm-creed { color: var(--ncm-gold); }

/* --------------------------------------------------------------- pictures */

.ncm-slot { margin: 0; }
.ncm-slot img { width: 100%; }

.ncm-flyer { margin: 0; max-width: 26rem; }
.ncm-flyer img { width: 100%; }

.ncm-map { margin: 1.75rem 0 0; border: 1px solid var(--ncm-line); background: var(--ncm-paper); }
.ncm-map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; }

@media (min-width: 900px) {
	.ncm-map { margin-top: 0; }
	.ncm-map iframe { aspect-ratio: 1 / 1; max-height: 34rem; }
}

/* --------------------------------------------------------------- giving */

.ncm-give { margin-top: 1.25rem; }

.ncm-give-tag {
	font-family: var(--ncm-display);
	font-size: clamp(2.5rem, 9.5vw, 6rem);
	line-height: 1.05;
	color: var(--ncm-gold);
	overflow-wrap: anywhere;
}

/* ------------------------------------------------------------- the invitation */

.ncm-invite { background: var(--ncm-gold); color: var(--ncm-black); padding-block: 1.75rem; }
.ncm-invite p {
	font-family: var(--ncm-display);
	font-size: clamp(1.5rem, 3.6vw, 2.35rem);
	line-height: 1.15;
}

/* --------------------------------------------------- a single post, the 404 */

.ncm-post-body { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
.ncm-post-body .wp-block-post-content { max-width: 38rem; }
.ncm-post-body .wp-block-post-content > * + * { margin-top: 1rem; }

/* ------------------------------------------------------- the Floulex credit */

.fx-credit-about {
	width: min(74rem, 100% - 2 * var(--ncm-gutter));
	margin: 0 auto;
	padding-block: 1.75rem;
	font-size: 1rem;
	color: var(--ncm-muted);
}

/* ---------------------------------------------------------------- the foot */

.ncm-foot { background: var(--ncm-black); color: var(--ncm-mist); padding-block: 3rem 1.25rem; font-size: 1.0625rem; }
.ncm-foot a { color: var(--ncm-white); }
.ncm-foot a:hover { color: var(--ncm-gold); }

.ncm-foot-in {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
}

.ncm-foot-name {
	font-family: var(--ncm-display);
	font-size: 1.6rem;
	line-height: 1.15;
	color: var(--ncm-white);
	margin-bottom: 0.6rem;
}
.ncm-foot-id p + p { margin-top: 0.4rem; }

.ncm-foot-label { font-weight: 600; color: var(--ncm-gold); margin-bottom: 0.45rem; }

.ncm-foot-times p + p { margin-top: 0.25rem; }
.ncm-foot-what { display: block; font-size: 1rem; }
.ncm-foot-times p.ncm-foot-label + p { margin-top: 0; }

.ncm-foot-nav ul { list-style: none; margin: 0; padding: 0; }
.ncm-foot-nav li + li { margin-top: 0.3rem; }
.ncm-foot-nav a { text-decoration: none; }

.ncm-foot-base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.25rem 1.5rem;
	margin-top: 2.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--ncm-line-dark);
	font-size: 0.9375rem;
}
.fx-credit { margin: 0; color: var(--ncm-mist); }

@media (min-width: 760px) {
	.ncm-foot-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
}

/* --------------------------------------------------------------- the reveal */

.ncm-rev.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
	.ncm-rev { transition: opacity 0.55s ease, transform 0.55s ease; }
	.js .ncm-rev:not(.is-in) { opacity: 0; transform: translateY(0.75rem); }
	.js .ncm-ruled:not(.is-in)::after { transform: scaleX(0); }
	.js .ncm-ruled:not(.is-in)::before { opacity: 0; transform: scale(0.3); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Structural wrappers: named so a stray block gap can never reach them. */
.ncm-main { background: var(--ncm-white); }
.ncm-first, .ncm-hero-copy { min-width: 0; }
.ncm-foot-copy { color: var(--ncm-mist); }
