/*
 * The Nourish Group house style for site pages.
 *
 * Tokens come from the design system (https://claude.ai/artifact/CMnRcmFjYUhMDkA1TP2oDn,
 * project/tokens.json). Every rule is scoped to an nr- class, so pages that don't use
 * them (the Spectra pages, LearnPress) are untouched. Loaded by
 * src/mu-plugins/nourish-site-style.php, on the front end and in the block editor.
 */

:root {
	--nr-surface: #ffffff;
	--nr-sage: #eef0ec;
	--nr-mist: #f2f5f8;
	--nr-navy: #19253d;
	--nr-heading: #19253d;
	--nr-ink: #233454;
	--nr-muted: #5c6577;
	--nr-gold: #be844d;
	--nr-gold-light: #d6a06a;
	--nr-gold-text: #8a5a2b;
	--nr-gold-deep: #9a6633;
	--nr-teal: #077884;
	--nr-hairline: #e3e6e1;
	--nr-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
	--nr-sans: Poppins, "Helvetica Neue", Arial, sans-serif;
	--nr-gutter: clamp(16px, 4vw, 40px);
}

/* ---- Sections ---- */

.nr-section {
	color: var(--nr-ink);
	font-family: var(--nr-sans);
	font-size: 16px;
	line-height: 1.7;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Full-width bands reach the window edges whatever padding the theme puts round the content. */
.entry-content > .nr-section.alignfull,
.entry-content > .nr-hero.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}
.nr-section.nr-sage { background: var(--nr-sage); }
.nr-section.nr-navy { background: var(--nr-navy); color: #ffffff; }

.nr-wrap {
	max-width: 1200px;
	margin: 0 auto !important;
	box-sizing: border-box;
	padding: 56px var(--nr-gutter);
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.nr-wrap.nr-tight { padding-top: 0; }
.nr-wrap.nr-roomy { padding-top: 72px; padding-bottom: 72px; }

.nr-section p,
.nr-section h1,
.nr-section h2,
.nr-section h3 { margin: 0; }

.nr-intro {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 64ch;
}

/* ---- Type ---- */

.nr-section h1,
.nr-section h2,
.nr-section h3 {
	font-family: var(--nr-display);
	font-weight: 700;
	color: var(--nr-heading);
	line-height: 1.25;
}
.nr-section h2 { font-size: 32px; }
.nr-section h3 { font-size: 21px; }
.nr-navy h2,
.nr-navy h3 { color: #ffffff; }

.nr-eyebrow {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--nr-gold-text);
}
.nr-lede { font-size: 17px; max-width: 52ch; }
.nr-muted { color: var(--nr-muted); }
.nr-navy .nr-muted { color: var(--nr-sage); }
.nr-small { font-size: 13px; color: var(--nr-muted); }

.nr-section a:not(.wp-element-button) { color: var(--nr-teal); }
.nr-section a:not(.wp-element-button):hover { color: var(--nr-navy); }

/* ---- Hero ---- */

.nr-hero.wp-block-cover {
	min-height: 560px;
	padding: 0;
	align-items: flex-end;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.nr-hero .wp-block-cover__inner-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 80px var(--nr-gutter) clamp(48px, 6vw, 80px);
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: #ffffff;
}
.nr-hero .wp-block-cover__inner-container::before {
	content: "";
	width: 64px;
	height: 3px;
	background: var(--nr-gold);
}
.nr-hero h1 {
	margin: 0;
	max-width: 20ch;
	font-family: var(--nr-display);
	font-weight: 700;
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.15;
	color: #ffffff;
}
/* WordPress gives paragraphs their own text color; the hero's must stay white. */
.nr-hero .wp-block-cover__inner-container p {
	margin: 0;
	max-width: 52ch;
	font-family: var(--nr-sans);
	font-size: 17px;
	font-weight: 500;
	color: #ffffff !important;
}
.nr-hero .wp-block-buttons { margin-top: 8px; }

/* ---- Buttons ---- */

.nr-section .wp-block-buttons,
.nr-hero .wp-block-buttons { gap: 12px; }

.nr-btn .wp-element-button,
.nr-btn-outline .wp-element-button,
.nr-btn-outline-teal .wp-element-button {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	box-sizing: border-box;
	padding: 12px 28px;
	border-radius: 100px;
	font-family: var(--nr-sans);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: none;
	text-decoration: none;
}
.nr-btn .wp-element-button {
	background: var(--nr-gold-deep);
	border: 0;
	color: #ffffff;
}
.nr-btn .wp-element-button:hover { background: var(--nr-gold-text); color: #ffffff; }
.nr-btn-outline .wp-element-button {
	background: transparent;
	border: 2px solid var(--nr-gold-light);
	color: #ffffff;
}
.nr-btn-outline .wp-element-button:hover { background: rgba(255, 255, 255, .08); color: #ffffff; }
.nr-btn-outline-teal .wp-element-button {
	background: transparent;
	border: 2px solid var(--nr-teal);
	color: var(--nr-navy);
}
.nr-btn-outline-teal .wp-element-button:hover { background: var(--nr-mist); color: var(--nr-navy); }

.nr-section .wp-element-button:focus-visible,
.nr-hero .wp-element-button:focus-visible,
.nr-section a:focus-visible {
	outline: 2px solid var(--nr-teal);
	outline-offset: 2px;
}

/* ---- Cards ---- */

.nr-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}
.nr-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .nr-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .nr-grid-4 { grid-template-columns: 1fr; } }

.nr-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
	border-radius: 6px;
	border: 1px solid var(--nr-hairline);
	margin: 0 !important;
}
.nr-card > * { margin: 0 !important; }
.nr-card p { font-size: 15px; }
.nr-card.nr-dark { background: var(--nr-navy); border-color: var(--nr-navy); color: #ffffff; }
.nr-card.nr-dark h3,
.nr-section .nr-card.nr-dark h3 a { color: #ffffff; }
.nr-card.nr-dark p { color: var(--nr-sage); }
.nr-card.nr-soft { background: var(--nr-sage); border-color: var(--nr-sage); }
.nr-card.nr-teal-edge { border: 2px solid var(--nr-teal); }
.nr-card .nr-push { margin-top: auto !important; }

/* The heading link stretches over the whole card so the card is one target. */
.nr-section .nr-card h3 a {
	color: var(--nr-heading);
	text-decoration: none;
}
.nr-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 6px;
}
.nr-card:hover { box-shadow: 0 2px 10px rgba(25, 37, 61, .08); }
.nr-card h3 a:focus-visible { outline: none; }
.nr-card:has(h3 a:focus-visible) { outline: 2px solid var(--nr-teal); outline-offset: 2px; }

.nr-card .nr-label {
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--nr-gold-text);
}
.nr-card.nr-dark .nr-label { color: var(--nr-gold-light); }
.nr-card .nr-strong { font-weight: 600; color: var(--nr-heading); }
.nr-card.nr-dark .nr-strong { color: #ffffff; }
.nr-card .nr-teal-text { font-weight: 600; color: var(--nr-teal); }
.nr-card .nr-more { font-weight: 500; color: var(--nr-teal); }
.nr-card.nr-dark .nr-more { color: #ffffff; text-decoration: underline; }
.nr-card.nr-big h3 { font-size: 24px; line-height: 1.2; }

/* Line icons for the "Where do you want to grow" cards. */
.nr-card[class*="nr-ico-"]::before {
	content: "";
	width: 26px;
	height: 26px;
	background: var(--nr-teal);
	-webkit-mask: var(--nr-ico) center / contain no-repeat;
	mask: var(--nr-ico) center / contain no-repeat;
}
.nr-card.nr-dark[class*="nr-ico-"]::before { background: var(--nr-gold-light); }
.nr-card.nr-soft[class*="nr-ico-"]::before { background: var(--nr-muted); }
.nr-ico-freedom { --nr-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 11V7a5 5 0 0 1 9.6-2'/%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3C/svg%3E"); }
.nr-ico-men { --nr-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M3 20c.8-3.5 3.2-5 6-5s5.2 1.5 6 5'/%3E%3Cpath d='M15 15.5c2.6 0 4.6 1.2 5.5 4'/%3E%3C/svg%3E"); }
.nr-ico-women { --nr-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 21c1-4 3.8-6 7-6s6 2 7 6'/%3E%3C/svg%3E"); }
.nr-ico-holiness { --nr-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c2 3 5 5 5 9a5 5 0 0 1-10 0c0-4 3-6 5-9z'/%3E%3C/svg%3E"); }
.nr-ico-study { --nr-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2z'/%3E%3Cpath d='M4 21V5'/%3E%3C/svg%3E"); }
.nr-ico-leaders { --nr-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2'/%3E%3C/svg%3E"); }
.nr-ico-marriage { --nr-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='12' r='5'/%3E%3Ccircle cx='15' cy='12' r='5'/%3E%3C/svg%3E"); }
.nr-ico-church { --nr-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v6'/%3E%3Cpath d='M9 5h6'/%3E%3Cpath d='M5 22V12l7-4 7 4v10'/%3E%3Cpath d='M10 22v-5h4v5'/%3E%3C/svg%3E"); }

/* ---- Callouts ---- */

.nr-callout {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding: clamp(20px, 3vw, 32px);
	border-radius: 6px;
	border: 1px solid var(--nr-hairline);
}
.nr-callout.nr-mist { background: var(--nr-mist); border: 0; border-left: 4px solid var(--nr-gold); }
.nr-callout > .nr-callout-text {
	flex: 1 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.nr-callout h2 { font-size: 26px; }
.nr-callout > .wp-block-buttons { margin: 0; }

.nr-split {
	display: flex !important;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
}
.nr-split > * { flex: 1 1 380px; min-width: 0; }
.nr-split .nr-intro { gap: 14px; }
.nr-split h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.2; }
.nr-navy .nr-split { align-items: center; justify-content: space-between; gap: 24px; }
.nr-navy .nr-split > .wp-block-buttons { flex: 0 0 auto; }
.nr-navy h2 { font-size: 28px; }

/* Stand-in boxes: visible on purpose until the real thing exists. */
.nr-placeholder {
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	padding: 28px;
	border: 1px dashed var(--nr-muted);
	border-radius: 6px;
	background: var(--nr-surface);
	color: var(--nr-muted);
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-align: center;
}
.nr-tile {
	aspect-ratio: 1;
	min-height: 0;
	background: var(--nr-mist);
	border-style: solid;
	border-color: var(--nr-hairline);
}

/* ---- Scripture band ---- */

.nr-scripture .nr-wrap {
	padding-top: 112px;
	padding-bottom: 112px;
	align-items: center;
	text-align: center;
	gap: 14px;
}
.nr-scripture .wp-block-quote {
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	max-width: 30ch;
	text-align: center;
}
.nr-scripture .wp-block-quote p {
	font-family: var(--nr-display);
	font-size: 32px;
	font-style: normal;
	line-height: 1.35;
	color: var(--nr-heading);
	text-wrap: balance;
}
.nr-scripture .wp-block-quote cite {
	display: block;
	margin-top: 14px;
	font-style: normal;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--nr-gold-text);
}

/* ---- Story ---- */

.nr-story .nr-split { align-items: center; gap: 32px; }
.nr-story .nr-placeholder { flex: 0 1 380px; aspect-ratio: 4 / 3; min-height: 0; }
.nr-story h2 {
	font-weight: 400;
	font-style: italic;
	font-size: 24px;
	line-height: 1.4;
}

.nr-head-row {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}
.nr-head-row h2 { font-size: 26px; }
.nr-head-row p { font-weight: 500; }

/* ---- Motion ----
 * nourish-site.js adds nr-motion to <html> on the front end only, when the visitor has
 * not asked for reduced motion. Without it (no script, the editor, reduced motion)
 * everything is simply shown.
 */

@keyframes nr-rise {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

.nr-motion .nr-hero .wp-block-cover__inner-container > * {
	animation: nr-rise .8s cubic-bezier(.2, .7, .2, 1) both;
}
.nr-motion .nr-hero .wp-block-cover__inner-container > :nth-child(2) { animation-delay: .12s; }
.nr-motion .nr-hero .wp-block-cover__inner-container > :nth-child(3) { animation-delay: .24s; }
.nr-motion .nr-hero .wp-block-cover__inner-container::before { animation: nr-rise .8s both; }

.nr-motion .nr-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
	transition-delay: var(--nr-delay, 0s);
}
.nr-motion .nr-reveal.nr-in {
	opacity: 1;
	transform: none;
}
