/* KDC Light
   Photo-led and calm. Fraunces (a soft serif) for headings, Atkinson Hyperlegible for reading.
   Palette: white and mist, deep navy ink, royal blue, a quieter metallic gold. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
	--ink: #101935;
	--blue: #1E2A78;
	--blue-deep: #101935;
	--stone: #EEF1F6;
	--line: #DADFEA;
	--muted: #5A6280;
	--accent: #C8A24B;
	--on-accent: #101935;
	--display: "Fraunces", Georgia, "Times New Roman", serif;
	--radius: 1rem;
	--section: clamp(4rem, 9vw, 7rem);
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.01em; font-variation-settings: "opsz" 72; }
h2 { font-weight: 600; }

.btn { font-family: var(--body); font-weight: 700; letter-spacing: 0.01em; }
.btn-accent:hover { background: var(--ink); color: #fff; }
.link-more { font-family: var(--body); }
.link-more::after { content: ""; }

/* ---------- Header ---------- */

.site-header { border-bottom-color: transparent; box-shadow: 0 1px 0 var(--line); }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
.menu a { font-family: var(--body); font-weight: 700; }
.nav-toggle { font-family: var(--body); }

/* Over the homepage photo the header is see-through, then turns white on scroll. */
.has-photo-hero .site-header {
	position: fixed; left: 0; right: 0;
	background: transparent; box-shadow: none;
	transition: background-color 0.25s, box-shadow 0.25s;
}
.admin-bar.has-photo-hero .site-header { top: 32px; }
.has-photo-hero:not(.is-scrolled):not(.nav-open) .site-header,
.has-photo-hero:not(.is-scrolled):not(.nav-open) .site-header a:not(.btn),
.has-photo-hero:not(.is-scrolled):not(.nav-open) .brand-name { color: #fff; }
.has-photo-hero:not(.is-scrolled):not(.nav-open) .nav-toggle { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.has-photo-hero.is-scrolled .site-header,
.has-photo-hero.nav-open .site-header { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.has-photo-hero .site-main { padding-top: 0; }

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

.kl-hero {
	position: relative; min-height: min(100vh, 56rem);
	display: flex; align-items: center;
	color: #fff; text-align: center;
	background:
		linear-gradient(180deg, rgba(16, 25, 53, 0.55) 0%, rgba(16, 25, 53, 0.35) 40%, rgba(16, 25, 53, 0.8) 100%),
		var(--hero-image, radial-gradient(120% 90% at 50% 10%, #2B3A96 0%, #1E2A78 45%, #101935 100%));
	background-size: cover; background-position: center;
	padding-block: 8rem 6rem;
}
.kl-hero-inner { display: flex; flex-direction: column; align-items: center; }
.kl-hero-welcome { font-weight: 700; color: rgba(255, 255, 255, 0.85); margin-bottom: 1.5rem; }
.kl-hero-title { margin: 0 0 1.75rem; display: flex; flex-direction: column; gap: 0.35rem; line-height: 1.02; }
.kl-hero-lead { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 400; font-style: normal; color: var(--accent); letter-spacing: 0; }
.kl-hero-main { font-size: clamp(2.9rem, 8.5vw, 6.5rem); font-weight: 600; letter-spacing: -0.025em; font-variation-settings: "opsz" 144; max-width: 14ch; margin-inline: auto; }
.kl-hero-when { font-size: 1.1875rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 0; }
.kl-hero-actions { justify-content: center; }
.kl-hero-scroll {
	position: absolute; left: 50%; bottom: 1.75rem; width: 2.75rem; height: 2.75rem; margin-left: -1.375rem;
	border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 50%;
}
.kl-hero-scroll::after {
	content: ""; position: absolute; left: 50%; top: 42%; width: 0.6rem; height: 0.6rem; margin-left: -0.3rem;
	border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-50%) rotate(45deg);
}
@media (prefers-reduced-motion: no-preference) {
	.kl-hero-inner > * { animation: kl-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.kl-hero-inner > *:nth-child(2) { animation-delay: 0.1s; }
	.kl-hero-inner > *:nth-child(3) { animation-delay: 0.2s; }
	.kl-hero-inner > *:nth-child(4) { animation-delay: 0.3s; }
	@keyframes kl-rise { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
}

/* ---------- Shared ---------- */

.kl-section { padding-block: var(--section); }
.kl-center { text-align: center; }
.kl-narrow { max-width: 50rem; }
.kl-kicker { font-weight: 700; color: var(--accent); margin-bottom: 0.6rem; filter: brightness(0.85); }
.kl-heading { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; margin-bottom: 0.9rem; }
.kl-heading a { color: inherit; text-decoration: none; }
.kl-heading a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.kl-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 2rem; margin-bottom: 2rem; }
.kl-head-row .kl-heading { margin: 0; }
.kl-split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 56em) {
	.kl-split { grid-template-columns: 1.1fr 1fr; }
	.kl-split--reverse > :first-child { order: 2; }
}

/* ---------- Welcome ---------- */

.kl-statement { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.2; font-weight: 500; margin-bottom: 3rem; }
.kl-mission { display: grid; gap: 2rem; text-align: center; margin-bottom: 2.5rem; }
@media (min-width: 48em) { .kl-mission { grid-template-columns: repeat(3, 1fr); } }
.kl-mission h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.kl-mission h3::after { content: ""; display: block; width: 2.25rem; height: 2px; background: var(--accent); margin: 0.7rem auto 0; }
.kl-mission p { color: var(--muted); margin: 0; }

/* ---------- Next steps ---------- */

.kl-steps { background: var(--stone); }
.kl-steps .kl-heading { margin-bottom: 2.5rem; }
.kl-tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.kl-tile {
	position: relative; display: block; overflow: hidden; border-radius: var(--radius);
	aspect-ratio: 3 / 4; background: linear-gradient(160deg, #2B3A96, #101935);
	color: #fff; text-decoration: none;
}
.kl-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.kl-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 25, 53, 0) 40%, rgba(16, 25, 53, 0.85) 100%); }
.kl-tile-text { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; z-index: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.kl-tile-title { font-family: var(--display); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.kl-tile-sub { color: rgba(255, 255, 255, 0.85); font-size: 1rem; }
.kl-tile:hover .kl-tile-img { transform: scale(1.04); }
.kl-tile:focus-visible { outline-offset: 4px; }

/* ---------- Latest message ---------- */

.kl-message-media { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--blue); position: relative; }
.kl-message-media .thumb-img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Events ---------- */

.kl-events { background: var(--stone); }
.kl-event-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.kl-event {
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 1.1rem; row-gap: 0.15rem;
	padding: 1.4rem; border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none;
	border: 1px solid var(--line);
}
.kl-event:hover { border-color: var(--accent); }
.kl-event-date {
	grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 4.25rem; height: 4.25rem; border-radius: 0.75rem; background: var(--ink); color: var(--accent);
	font-weight: 700; font-size: 0.9375rem;
}
.kl-event-date span { font-family: var(--display); font-size: 1.75rem; line-height: 1; color: #fff; }
.kl-event-title { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.15; }
.kl-event-when, .kl-event-where { color: var(--muted); font-size: 1rem; }

/* ---------- Leaders ---------- */

.kl-leader-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.kl-leader-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.kl-leader-photos .kl-leader-img:nth-child(2) { margin-top: 2.5rem; }
.kl-leader-photos:empty { display: none; }

/* ---------- Royal Diadem feature ---------- */

.kl-feature {
	background: radial-gradient(90% 120% at 50% 0%, #2B3A96 0%, #1E2A78 40%, #101935 100%);
	color: #fff; text-align: center; padding-block: var(--section);
}
.kl-feature-inner { max-width: 44rem; }
.kl-feature-title { font-size: clamp(2.75rem, 7vw, 5rem); font-weight: 600; margin-bottom: 1rem; }
.kl-feature-quote { font-family: var(--display); font-style: italic; font-size: 1.4rem; color: var(--accent); margin: 0 0 1.25rem; }
.kl-feature-quote cite { display: block; font-family: var(--body); font-style: normal; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.75); margin-top: 0.4rem; }
.kl-feature p { color: rgba(255, 255, 255, 0.9); font-size: 1.1875rem; }
.kl-feature .btn { margin-top: 1rem; }
.kl-feature .kl-kicker { filter: none; }

/* ---------- Visit + give ---------- */

.kl-visit .address { margin: 1.25rem 0 1.5rem; }
.kl-give { background: var(--stone); padding-block: var(--section); }
.kl-give p { font-size: 1.1875rem; margin-bottom: 1.75rem; }

/* ---------- Inner pages ---------- */

.page-hero { background: var(--ink); text-align: center; padding-block: clamp(4rem, 9vw, 6.5rem); }
.page-title { border-left: 0; padding-left: 0; margin-inline: auto; font-weight: 600; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; }
.page-title::after { content: ""; display: block; width: 3rem; height: 3px; background: var(--accent); margin: 1.1rem auto 0; }
.page-sub { margin-inline: auto; }

.give-band { background: var(--stone); color: var(--ink); }
.give-band .btn-outline { color: var(--ink); }
.hero { background: var(--ink); }
.hero-time { border-left-color: var(--accent); }

.event-date { background: var(--ink); }
.team-card { border-top-color: var(--ink); }
.ministry-item { border-top-color: var(--line); }
.mission-list li { font-family: var(--display); font-weight: 500; }
.wp-block-details summary { font-weight: 600; }
.wp-block-details summary::after { color: var(--accent); }
.prose blockquote { font-family: var(--display); font-style: italic; }

.site-footer { background: var(--ink); }
.footer-name { font-weight: 600; }
.footer-tagline { font-family: var(--display); font-style: italic; font-weight: 400; }
