/*
 * CUPbearers — design v3. One stylesheet.
 * Calm and contemporary: serif headings, generous white space, the CUPbearers blue as the accent,
 * photography used as framed images and one dark section, never behind body text.
 */

@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
	/* Color */
	--ink: #16252E;        /* headings */
	--text: #34444D;       /* body text, 10:1 on white */
	--muted: #5B6A72;      /* secondary text, 5.7:1 */
	--blue: #8FB5C5;       /* CUPbearers blue */
	--blue-50: #F1F6F8;
	--blue-100: #DDE9EE;
	--blue-700: #2F5F72;   /* links and buttons, 7:1 */
	--blue-800: #234959;
	--night: #14232C;      /* dark section and footer */
	--line: #E3EAEE;
	--white: #FFFFFF;
	--ok: #2F6B4F;
	--error: #9B3B2E;

	/* Type */
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--fs-h1: clamp(3.25rem, 8vw, 6rem);
	--fs-h2: clamp(2rem, 3.6vw, 2.75rem);
	--fs-h3: 1.375rem;
	--fs-quote: clamp(1.45rem, 2.4vw, 1.875rem);
	--fs-body: 1.0625rem;
	--fs-small: 0.875rem;

	/* Space */
	--wide: 1180px;
	--measure: 64ch;
	--gutter: clamp(20px, 5vw, 48px);
	--section: clamp(4.5rem, 9vw, 7.5rem);
	--radius: 18px;
	--shadow: 0 1px 2px rgba(20, 35, 44, 0.06), 0 12px 32px -12px rgba(20, 35, 44, 0.18);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 var(--fs-body)/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--blue-800); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; text-wrap: balance; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 1.5rem; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.005em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
blockquote { margin: 0; }
figure { margin: 0; }

.container { max-width: var(--wide); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.narrow { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.stack { display: grid; gap: 1.25rem; align-content: start; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--night); color: #fff; padding: 0.6rem 1rem; z-index: 100; border-radius: 8px; }
.skip-link:focus { top: 8px; color: #fff; }
.icon { flex: none; }

/* ---------- Buttons ---------- */
.button, button.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 48px; padding: 0.7rem 1.5rem;
	border: 1.5px solid var(--blue-700); border-radius: 999px;
	background: transparent; color: var(--blue-700);
	font: 600 0.95rem/1.1 var(--sans); letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.button:hover { background: var(--blue-50); color: var(--blue-800); }
.button--solid, button.button--solid { background: var(--blue-700); color: #fff; }
.button--solid:hover, button.button--solid:hover { background: var(--blue-800); border-color: var(--blue-800); color: #fff; }
.button--light { background: #fff; border-color: #fff; color: var(--ink); }
.button--light:hover { background: var(--blue-50); border-color: var(--blue-50); color: var(--ink); }
.button--outline-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.button--outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.button--small { min-height: 40px; padding: 0.45rem 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- Header (sits over the photo at the top of every page) ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; color: #fff; background: linear-gradient(180deg, rgba(10, 18, 24, 0.55), rgba(10, 18, 24, 0)); padding-top: env(safe-area-inset-top, 0px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand__logo { width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.5); }
.brand__name { font: 600 1.35rem/1 var(--serif); letter-spacing: 0.005em; }

.menu-button { display: none; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.45rem 1rem; border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: 999px; background: transparent; color: #fff; font: 600 0.95rem var(--sans); cursor: pointer; }
.site-nav { display: block; position: static; inset: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; width: auto; height: auto; overflow: visible; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem 2rem; }
.nav-link { color: rgba(255, 255, 255, 0.92); text-decoration: none; font: 500 0.98rem var(--sans); padding-block: 0.5rem; border-bottom: 1.5px solid transparent; }
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; border-bottom-color: var(--blue); }
.donate-form { margin: 0; }
.site-header .nav-donate .button { min-height: 42px; padding: 0.5rem 1.15rem; background: #fff; border: 1.5px solid #fff; border-radius: 999px; color: var(--ink); font: 600 0.95rem/1.1 var(--sans); }
.site-header .nav-donate .button:hover { background: var(--blue-50); border-color: var(--blue-50); color: var(--ink); }
.nav-donate .icon { color: var(--blue-700); }

@media (max-width: 820px) {
	.menu-button { display: inline-flex; }
	.brand__name { display: none; }
	.site-nav { display: none; }
	.site-nav:popover-open {
		display: block; position: fixed; inset: 0 0 auto auto; width: min(320px, 100vw); height: 100dvh;
		margin: 0; padding: calc(5.5rem + env(safe-area-inset-top, 0px)) 1.75rem 2rem; background: var(--white); color: var(--text);
		box-shadow: -16px 0 48px -16px rgba(0, 0, 0, 0.45);
	}
	.site-nav:popover-open::backdrop { background: rgba(10, 18, 24, 0.45); }
	.site-nav:popover-open ul { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav:popover-open .nav-link { display: block; padding: 0.9rem 0; color: var(--ink); font: 600 1.35rem var(--serif); border-bottom: 1px solid var(--line); }
	.site-nav:popover-open .nav-donate { margin-top: 1.5rem; }
	.site-header .site-nav:popover-open .nav-donate .button { width: 100%; background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
	.site-nav:popover-open .nav-donate .icon { color: #fff; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(480px, 72vh, 720px); color: #fff; }
@media (max-width: 760px) { .hero { min-height: clamp(400px, 58svh, 520px); } .hero__inner { padding-block: 6rem 2.75rem; gap: 1rem; } }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 18, 24, 0) 35%, rgba(10, 18, 24, 0.25) 60%, rgba(10, 18, 24, 0.72) 100%); }
.hero__inner { width: 100%; padding-block: 8rem clamp(3.5rem, 8vw, 6rem); display: grid; gap: 1.25rem; justify-items: start; }
.hero__title { font: 600 var(--fs-h1)/0.95 var(--serif); letter-spacing: -0.025em; color: #fff; }
.hero__tagline { font: 400 clamp(1.15rem, 2vw, 1.4rem)/1.45 var(--serif); font-style: italic; color: rgba(255, 255, 255, 0.92); margin: 0 0 0.75rem; max-width: 34ch; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section); }
.section--tint { background: var(--blue-50); }
.section--dark { background: var(--night); color: rgba(255, 255, 255, 0.82); isolation: isolate; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.28; filter: saturate(0.6); }
.section--dark::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 35, 44, 0.65), rgba(20, 35, 44, 0.92)); }

/* Image beside text */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.split__body { max-width: 60ch; }
.split__body > p { font-size: 1.0625rem; }
.split__body .actions { margin-top: 1.75rem; }
.media-frame { position: relative; }
.media-frame::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; background: var(--blue-100); border-radius: calc(var(--radius) + 4px); z-index: -1; }
.media-frame--right::before { inset: 1.25rem 1.25rem -1.25rem -1.25rem; }
.media-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.section .split, .section .faith { position: relative; z-index: 0; }
@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; }
	.media-frame { max-width: 380px; }
}

/* Scripture pull quote */
.pull { margin: 0 0 1.75rem; padding-left: 1.25rem; border-left: 3px solid var(--blue); }
.pull p { font: italic 400 var(--fs-quote)/1.35 var(--serif); color: var(--ink); margin: 0; }
.pull cite { display: block; margin-top: 0.75rem; font: 600 0.78rem/1 var(--sans); font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-700); }

/* ---------- Statement of Faith ---------- */
.faith { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.faith__intro { position: sticky; top: 2rem; }
.faith__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-top: 0.5rem; }
.faith__list { list-style: none; margin: 0; padding: 0; counter-reset: faith; }
.faith__list li { counter-increment: faith; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.75rem; padding-block: 1.25rem; border-top: 1px solid var(--blue-100); color: var(--text); }
.faith__list li:last-child { border-bottom: 1px solid var(--blue-100); }
.faith__list li::before { content: counter(faith, decimal-leading-zero); font: 600 0.85rem/1.9 var(--sans); letter-spacing: 0.06em; color: var(--blue-700); }
@media (max-width: 900px) { .faith { grid-template-columns: 1fr; } .faith__intro { position: static; } .faith__img { display: none; } }

/* ---------- Our Policies ---------- */
.policies h2 { margin-bottom: clamp(2rem, 4vw, 3rem); }
/* Personal Discipling has about twice the text of the other two, so it gets the large card
   and the two shorter ones stack beside it. */
.policy-grid {
	display: grid; gap: clamp(1rem, 2.2vw, 1.5rem);
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	grid-template-areas: "discipling copyright" "discipling orders";
}
.policy-card:nth-child(1) { grid-area: copyright; }
.policy-card:nth-child(2) { grid-area: discipling; }
.policy-card:nth-child(3) { grid-area: orders; }
.policy-card {
	display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.9rem; row-gap: 1rem; align-content: start; align-items: center;
	padding: clamp(1.4rem, 2.6vw, 2rem); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.policy-card__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(143, 181, 197, 0.18); color: var(--blue); }
.policy-card p { grid-column: 1 / -1; font-size: 0.97rem; line-height: 1.7; color: rgba(255, 255, 255, 0.8); }
.policy-card:nth-child(2) { background: rgba(143, 181, 197, 0.12); border-color: rgba(143, 181, 197, 0.3); }
.policy-card:nth-child(2) p { font-size: 1.06rem; line-height: 1.8; color: rgba(255, 255, 255, 0.88); }
@media (max-width: 860px) {
	.policy-grid { grid-template-columns: 1fr; grid-template-areas: "copyright" "discipling" "orders"; }
	.policy-card:nth-child(2) p { font-size: 0.97rem; line-height: 1.7; }
}


/* ---------- Founder and Team ---------- */
.split--founder { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--founder .media-frame { order: 2; }
.split--founder .split__body { order: 1; }
@media (max-width: 900px) { .split--founder .media-frame { order: 0; } }
.team { margin-top: clamp(4.5rem, 9vw, 7rem); }
.team__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); align-items: stretch; }
.team-card { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--blue-50); border-radius: var(--radius); }
.team-card blockquote { position: relative; padding-top: 2.25rem; }
.team-card blockquote::before { content: "“"; position: absolute; top: -0.4rem; left: -0.1rem; font: 600 4rem/1 var(--serif); color: var(--blue); }
.team-card blockquote p { font-size: 1rem; line-height: 1.75; color: var(--text); margin: 0 0 0.9em; }
.team-card blockquote p:last-child { margin: 0; }
.team-card figcaption { display: flex; align-items: center; gap: 0.9rem; padding-top: 1.25rem; border-top: 1px solid var(--blue-100); }
.team-card figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.team-card figcaption span { display: grid; line-height: 1.3; }
.team-card figcaption b { font: 600 1.1rem var(--serif); color: var(--ink); }
.team-card figcaption small { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 820px) { .team__grid { grid-template-columns: 1fr; } }

/* ---------- Daily Devotional ---------- */
.devotional { max-width: calc(780px + 2 * var(--gutter)); text-align: center; }
.devotional__card { margin-top: 0.5rem; padding: clamp(1.75rem, 5vw, 3.25rem); background: var(--white); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); text-align: left; display: grid; gap: 1.25rem; }
.devotional__card h3 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
.devotional__card h3 a { color: var(--ink); text-decoration: none; }
.devotional__card h3 a:hover { color: var(--blue-700); }
.devotional__text { font: 400 1.2rem/1.75 var(--serif); color: var(--ink); }
.devotional__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); margin: 0; }
.ref { font-style: normal; color: var(--blue-700); white-space: nowrap; }
.ref::before { content: "("; }
.ref::after { content: ")"; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, 0.78); }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 5rem); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.site-footer__grid--one { grid-template-columns: minmax(0, 1fr); max-width: calc(640px + 2 * var(--gutter)); }
.footer-col { display: grid; gap: 1.1rem; align-content: start; }
.footer-col h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 0; }
.footer-col p { max-width: 52ch; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.contact-list li { display: flex; gap: 0.7rem; align-items: center; }
.contact-list .icon { color: var(--blue); }
.site-footer__base { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer__base-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem; padding-block: 1.35rem calc(1.35rem + env(safe-area-inset-bottom, 0px)); }
.site-footer__base p { margin: 0; font-size: var(--fs-small); color: rgba(255, 255, 255, 0.6); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; font-size: var(--fs-small); }
.footer-links a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.footer-social:hover { background: var(--blue-700); }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 0.4rem; }
label { font-weight: 500; font-size: 0.9rem; color: var(--ink); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"], textarea, select {
	width: 100%; min-height: 48px; padding: 0.65rem 0.9rem;
	border: 1px solid #C3D0D6; border-radius: 12px; background: var(--white); color: var(--ink);
	font: 400 1rem/1.4 var(--sans);
}
textarea { min-height: 7.5rem; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--blue-700); outline: 3px solid rgba(143, 181, 197, 0.5); outline-offset: 0; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.contact-form .field { grid-column: 1 / -1; }
.contact-form .field--half { grid-column: auto; }
.contact-form button { grid-column: 1 / -1; justify-self: start; }
.contact-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 480px) { .contact-form .field--half { grid-column: 1 / -1; } }
.form-note { padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid; }
.form-note--ok { color: var(--ok); background: #EEF6F1; }
.form-note--error { color: var(--error); background: #FBEFED; }

.site-footer label { color: rgba(255, 255, 255, 0.85); }
.site-footer input[type="text"], .site-footer input[type="email"], .site-footer textarea { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.site-footer input::placeholder { color: rgba(255, 255, 255, 0.55); }
.site-footer .button--solid { background: var(--blue); border-color: var(--blue); color: var(--night); }
.site-footer .button--solid:hover { background: #A9C8D5; border-color: #A9C8D5; color: var(--night); }

.tnp.tnp-subscription-minimal { margin: 0; max-width: 30rem; }
.tnp.tnp-subscription-minimal form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; }
.tnp.tnp-subscription-minimal input.tnp-email { flex: 1 1 14rem; width: auto; min-height: 48px; padding: 0.65rem 1.1rem; border: 1px solid #C3D0D6; border-radius: 999px; background: var(--white); color: var(--ink); font: 400 1rem var(--sans); margin: 0; }
.tnp.tnp-subscription-minimal input.tnp-submit { flex: 0 0 auto; width: auto; min-height: 48px; padding: 0.65rem 1.5rem; border: 0; border-radius: 999px; background: var(--blue-700); color: #fff; font: 600 0.95rem var(--sans); cursor: pointer; margin: 0; }
.tnp.tnp-subscription-minimal input.tnp-submit:hover { background: var(--blue-800); }
.site-footer .tnp.tnp-subscription-minimal input.tnp-email { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.site-footer .tnp.tnp-subscription-minimal input.tnp-email::placeholder { color: rgba(255, 255, 255, 0.55); }
.site-footer .tnp.tnp-subscription-minimal input.tnp-submit { background: var(--blue); color: var(--night); }
.site-footer .tnp.tnp-subscription-minimal input.tnp-submit:hover { background: #A9C8D5; }

/* ---------- Inner pages: photo banner + content card ---------- */
.page-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(320px, 46vh, 460px); color: #fff; }
.page-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 18, 24, 0.35) 0%, rgba(10, 18, 24, 0.2) 45%, rgba(10, 18, 24, 0.7) 100%); }
.page-banner__content { width: 100%; padding-block: 7rem 7.5rem; display: grid; gap: 0.75rem; justify-items: start; }
.page-banner__title { font: 600 clamp(2.4rem, 5.5vw, 4rem)/1.05 var(--serif); letter-spacing: -0.02em; color: #fff; max-width: 22ch; }
.page-banner__sub { margin: 0; font: 600 0.78rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.page-banner__sub a { color: #fff; }
.overlap { position: relative; z-index: 2; }
.overlap--banner { margin-top: -4.5rem; margin-bottom: var(--section); }
.card { background: var(--white); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); padding: clamp(1.5rem, 5vw, 3.5rem); }
.card--reading, .card--narrow { max-width: 860px; margin-inline: auto; }
.card--narrow { max-width: 560px; }
.card--center { text-align: center; }
.card--center .books { text-align: left; margin-top: 2rem; }
.card--prose .prose { margin-inline: auto; }
.card--reading > * + * { margin-top: 1.75rem; }
.actions--center { justify-content: center; margin-top: 2rem; }
.lede-strong { font: 600 clamp(1.5rem, 3vw, 2rem)/1.25 var(--serif); color: var(--ink); margin-bottom: 0.75rem; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.card--center .lede { margin-inline: auto; }
.prose { max-width: var(--measure); font: 400 1.2rem/1.8 var(--serif); color: var(--ink); }
.prose h2, .prose h3 { margin: 1.6em 0 0.5em; }
.prose img { border-radius: var(--radius); }
.prose [style*="color"] { color: inherit !important; }
.prose strong { color: var(--ink); }
.heading-sep { color: var(--blue); }
.kicker { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font: 600 0.78rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.kicker > :first-child { color: var(--blue-700); }

.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.9rem; }
.book-card { display: grid; gap: 0.2rem; padding: 1.25rem 1.4rem; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 16px; text-decoration: none; color: var(--ink); transition: border-color 0.15s, background-color 0.15s; }
.book-card:hover { border-color: var(--blue); background: #fff; color: var(--ink); }
.book-card strong { font: 600 1.3rem var(--serif); }
.book-card span { color: var(--muted); font-size: var(--fs-small); }
.day-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 2.5rem; }
.day-list a { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.75rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.day-list a:hover b { color: var(--blue-700); }
.day-list__num { font: 600 1.25rem/1.3 var(--serif); color: var(--blue-700); }
.day-list__text { color: var(--muted); font-size: 0.95rem; }
.day-list__text b { display: block; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.progress { height: 4px; background: var(--blue-100); border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--blue-700); }
.day-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; font-weight: 600; }
.day-nav a { text-decoration: none; display: inline-flex; flex-direction: column; gap: 0.15rem; }
.day-nav a small { font-weight: 600; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; }
.day-nav__next { margin-left: auto; text-align: right; }
.day-nav--wide { margin-top: 1.75rem; }
.issue-list { list-style: none; margin: 0; padding: 0; }
.issue-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.issue-list a:hover .issue-list__title { color: var(--blue-700); }
.issue-list__title { font: 500 1.12rem var(--serif); }
.issue-list__meta { color: var(--muted); font-size: var(--fs-small); white-space: nowrap; }
.year-group { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0.5rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.year-group h2 { font-size: 1.6rem; color: var(--blue-700); margin: 0; }
@media (max-width: 600px) { .year-group { grid-template-columns: 1fr; } .issue-list a { flex-direction: column; gap: 0.15rem; } }
.pdf-embed { margin: 0; display: grid; gap: 1.25rem; }
.pdf-embed__frame { width: 100%; min-height: 75vh; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
@media (max-width: 700px) { .pdf-embed__frame { display: none; } }
.bob { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 3.5rem); align-items: start; }
.bob__img { width: 100%; border-radius: var(--radius); position: sticky; top: 2rem; }
.bob-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.bob-box { background: var(--blue-50); border-radius: var(--radius); padding: 1.75rem; display: grid; gap: 0.85rem; align-content: start; justify-items: start; }
.bob-box h2 { font-size: 1.6rem; margin: 0; }
.bob-box h3 { font: 600 0.78rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-700); }
@media (max-width: 760px) { .bob { grid-template-columns: 1fr; } .bob__img { position: static; max-width: 280px; } .bob-actions { grid-template-columns: 1fr; } }
.contact-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(1.75rem, 5vw, 3.5rem); align-items: start; }
.contact-list--light { color: var(--text); }
.contact-list--light .icon { color: var(--blue-700); }
@media (max-width: 760px) { .contact-page { grid-template-columns: 1fr; } }
.subscribe-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; display: grid; gap: 0.9rem; align-content: start; }
.product-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0.9rem; }
.product-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1rem; background: var(--white); border-radius: 16px; box-shadow: var(--shadow); }

/* Comments, search, pagination, login */
.comments { padding-top: 1.75rem; border-top: 1px solid var(--line); display: grid; gap: 1rem; }
.comments h2 { font-size: 1.5rem; margin: 0; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.comment-list .comment-body { background: var(--blue-50); border-radius: 14px; padding: 1.1rem; }
.comment-meta { font-size: var(--fs-small); color: var(--muted); margin-bottom: 0.5rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: 0.35rem; }
.comment-form .submit { min-height: 48px; padding: 0.7rem 1.5rem; border: 0; border-radius: 999px; background: var(--blue-700); color: #fff; font: 600 0.95rem var(--sans); cursor: pointer; }
.result-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.result-list li { padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.result-list h2 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.result-list p { color: var(--muted); }
.search-form { display: flex; gap: 0.6rem; max-width: 32rem; }
.search-form label { flex: 1; }
.card--center .search-form { margin-inline: auto; }
.pagination { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.75rem; }
.pagination .page-numbers { padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--blue-50); text-decoration: none; }
.pagination .current { background: var(--blue-700); color: #fff; }
#loginform p { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
#loginform .login-remember { display: flex; gap: 0.5rem; align-items: center; }
#loginform .button { min-height: 48px; padding: 0.7rem 1.5rem; border: 0; border-radius: 999px; background: var(--blue-700); color: #fff; font: 600 0.95rem var(--sans); cursor: pointer; }

/* ---------- WooCommerce ---------- */
.card--store .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
/* Product cards: same cover height, two-line titles, button pinned to the bottom. */
.woocommerce ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important;
	display: flex; flex-direction: column; text-align: center;
	background: var(--blue-50); border-radius: var(--radius); padding: 1.75rem 1.5rem 1.5rem;
}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link { flex: 1; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; }
.woocommerce ul.products li.product a img {
	display: block; height: 240px; width: auto; max-width: 100%; object-fit: contain;
	margin: 0 auto 1.4rem; border-radius: 4px; box-shadow: 0 2px 4px rgba(20, 35, 44, 0.08), 0 14px 28px -14px rgba(20, 35, 44, 0.35);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font: 600 1.15rem/1.3 var(--serif); color: var(--ink); padding: 0; margin: 0;
	min-height: 2.6em; display: flex; align-items: flex-start; justify-content: center; text-wrap: balance;
}
.woocommerce ul.products li.product .price { display: block; margin: 0.4rem 0 0; color: var(--blue-700); font: 600 1.05rem var(--sans); }
.woocommerce ul.products li.product .stock-note { display: inline-block; margin-top: 0.5rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: #fff; color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; }
.woocommerce ul.products li.product .button {
	display: flex; align-items: center; justify-content: center; width: 100%;
	margin: 1.25rem 0 0; text-align: center;
}
.woocommerce ul.products li.product.outofstock .button { background: transparent; color: var(--blue-700); border: 1.5px solid var(--blue-700); }
.woocommerce ul.products li.product.outofstock .button:hover { background: #fff; color: var(--blue-800); }
.woocommerce ul.products li.product.outofstock a img { opacity: 0.75; }
.woocommerce ul.products li.product .added_to_cart { display: none; }
@media (max-width: 560px) { .woocommerce ul.products li.product a img { height: 200px; } }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
	min-height: 48px; padding: 0.7rem 1.5rem; border-radius: 999px; background: var(--blue-700); color: #fff; font: 600 0.95rem/1.1 var(--sans); border: 0;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover { background: var(--blue-800); color: #fff; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 3.5rem); }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images img { max-width: 340px; border-radius: 8px; box-shadow: var(--shadow); }
.woocommerce div.product .product_title { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 0.5rem; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--blue-700); font-size: 1.35rem; font-weight: 600; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .up-sells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: none; }
.woocommerce div.product form.cart { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.woocommerce .quantity .qty { width: 4.5rem; min-height: 48px; }
@media (max-width: 700px) { .woocommerce div.product { grid-template-columns: 1fr; } }
.woocommerce-cart table.shop_table, .woocommerce-checkout table.shop_table { border-radius: 14px; border-color: var(--line); background: var(--white); }
.woocommerce-checkout .col2-set, .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { width: 100%; float: none; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { min-height: 48px; border-radius: 12px; border: 1px solid #C3D0D6; padding: 0.65rem 0.9rem; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--blue-700); background: var(--blue-50); border-radius: 0 0 12px 12px; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--blue-700); }

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