/* ==========================================================================
   Kuyltje – main stylesheet
   ========================================================================== */

/* Fonts (self-hosted, SIL Open Font License) */
@font-face {
	font-family: "Vollkorn";
	src: url("../fonts/Vollkorn-VariableFont_wght.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Vollkorn";
	src: url("../fonts/Vollkorn-Italic-VariableFont_wght.woff2") format("woff2");
	font-weight: 400 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Instrument Sans";
	src: url("../fonts/InstrumentSans-VariableFont.woff2") format("woff2");
	font-weight: 400 700;
	font-stretch: 75% 100%;
	font-style: normal;
	font-display: swap;
}

/* Tokens */
:root {
	--c-bg: #f6f1e8;
	--c-paper: #fbf8f2;
	--c-tint: #efe6d8;
	--c-ink: #1d2540;
	--c-ink-2: #4b5168;
	--c-ink-3: #7a7d8c;
	--c-line: rgba(29, 37, 64, 0.14);
	--c-accent: #b0532c;
	--c-accent-ink: #8f3f1d;
	--c-wheat: #d6ae55;
	--c-navy: #1d2540;
	--c-on-navy: #f3ecdf;

	--f-display: "Vollkorn", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--f-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--w-max: 1240px;
	--w-narrow: 720px;
	--gutter: clamp(20px, 4vw, 40px);
	--space-section: clamp(72px, 10vw, 132px);
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 1px 2px rgba(29, 37, 64, 0.06), 0 12px 32px -12px rgba(29, 37, 64, 0.18);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Reset-ish */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--c-accent); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-display);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.012em;
	margin: 0 0 0.5em;
	color: var(--c-ink);
	text-wrap: balance;
}
p { margin: 0 0 1.1em; }
::selection { background: var(--c-wheat); color: var(--c-ink); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--c-ink); color: var(--c-on-navy);
	padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--c-on-navy); }

/* Layout */
.container { width: 100%; max-width: var(--w-max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--w-narrow) + var(--gutter) * 2); }
.section { padding-block: var(--space-section); }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--c-tint); }

/* Type helpers */
.eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--c-accent); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-title { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 0.35em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--c-ink-2); max-width: 60ch; }
.ornament { width: 120px; color: var(--c-wheat); margin: 0 auto 26px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	font: 600 15px/1 var(--f-body); letter-spacing: 0.02em;
	text-decoration: none; cursor: pointer; border: 0;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn--primary {
	background: var(--c-ink); color: var(--c-on-navy);
	padding: 17px 26px; border-radius: 999px;
}
.btn--primary:hover { background: var(--c-accent); color: #fff; transform: translateY(-1px); }
.btn--link { color: var(--c-ink); padding: 6px 0; border-bottom: 1px solid var(--c-line); border-radius: 0; }
.btn--link:hover { color: var(--c-accent); border-color: currentColor; }
.btn span[aria-hidden] { transition: transform 0.25s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(246, 241, 232, 0.86);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-color: var(--c-line); box-shadow: 0 8px 24px -18px rgba(29, 37, 64, 0.35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--c-ink); }
.brand:hover { color: var(--c-ink); }
.brand__logo { width: 54px; height: 54px; object-fit: contain; transition: transform 0.4s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-4deg) scale(1.03); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: 0.01em; }
.brand__tag { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-ink-3); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
	position: relative; display: block; padding: 8px 0;
	font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
	text-decoration: none; color: var(--c-ink);
}
.nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
	background: var(--c-accent); transform: scaleX(0); transform-origin: left;
	transition: transform 0.35s var(--ease);
}
.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current-menu-ancestor > a,
.nav__list .current-post-ancestor > a { color: var(--c-accent); }
.nav__list a:hover::after,
.nav__list .current-menu-item > a::after,
.nav__list .current-post-ancestor > a::after { transform: scaleX(1); }
.nav__list .sub-menu { display: none; }
.nav__search {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--c-line); color: var(--c-ink);
	transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.nav__search:hover { background: var(--c-ink); color: var(--c-on-navy); border-color: var(--c-ink); }

.nav-toggle { display: none; }

.search-panel { border-top: 1px solid var(--c-line); padding-block: 18px; background: var(--c-paper); }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 560px; margin-inline: auto; }
.search-form__input {
	flex: 1; min-width: 0; font: 16px var(--f-body); color: var(--c-ink);
	padding: 14px 20px; border-radius: 999px;
	background: var(--c-paper); border: 1px solid var(--c-line);
}
.search-form__input:focus { outline: none; border-color: var(--c-ink); }
.search-form__btn {
	font: 600 14px var(--f-body); letter-spacing: 0.04em;
	padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--c-ink); color: var(--c-on-navy);
}
.search-form__btn:hover { background: var(--c-accent); }

@media (max-width: 860px) {
	.site-header__inner { min-height: 72px; }
	.brand__logo { width: 46px; height: 46px; }
	.brand__name { font-size: 20px; }
	.nav-toggle {
		display: grid; place-items: center; width: 44px; height: 44px;
		background: transparent; border: 1px solid var(--c-line); border-radius: 50%; cursor: pointer; color: var(--c-ink);
		position: relative; z-index: 60;
	}
	.nav-toggle__bars,
	.nav-toggle__bars::before,
	.nav-toggle__bars::after {
		display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px;
		transition: transform 0.3s var(--ease), opacity 0.2s;
	}
	.nav-toggle__bars { position: relative; }
	.nav-toggle__bars::before,
	.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -6px; }
	.nav-toggle__bars::after { top: 6px; }
	.nav-open .nav-toggle__bars { background: transparent; }
	.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
	.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

	.nav {
		position: fixed; inset: 0; z-index: 55;
		flex-direction: column; justify-content: center; gap: 36px;
		background: var(--c-bg);
		opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
	}
	.nav-open .nav { opacity: 1; visibility: visible; }
	/* backdrop-filter would trap the fixed overlay inside the header */
	.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--c-bg); }
	.nav-open .brand { position: relative; z-index: 60; }
	.nav-open { overflow: hidden; }
	.nav__list { flex-direction: column; align-items: center; gap: 18px; }
	.nav__list a { font-family: var(--f-display); font-size: 34px; font-weight: 500; letter-spacing: 0; text-transform: none; }
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes kuyltje-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes kuyltje-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
.rise { animation: kuyltje-rise 0.9s var(--ease) both; }
.rise--late { animation-delay: 0.12s; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.rise, .hero__arch img { animation: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 120px); position: relative; }
.hero::before {
	content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
	background: linear-gradient(to bottom, transparent, rgba(239, 230, 216, 0.6));
	pointer-events: none;
}
.hero__inner {
	position: relative;
	display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(40px, 6vw, 96px);
}
.hero__title {
	font-size: clamp(46px, 7.4vw, 96px); font-weight: 450; line-height: 0.98; letter-spacing: -0.025em;
	margin-bottom: 28px;
}
.hero__title::first-line { font-style: normal; }
.hero__text { font-size: clamp(17px, 1.5vw, 20px); color: var(--c-ink-2); max-width: 46ch; margin-bottom: 38px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; }

.hero__media { position: relative; margin: 0; }
.hero__arch {
	aspect-ratio: 4 / 5; overflow: hidden;
	border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
	background: var(--c-tint);
	box-shadow: var(--shadow);
}
.hero__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 70%; animation: kuyltje-settle 1.8s var(--ease) both; }
.hero__badge {
	position: absolute; left: -28px; bottom: 44px;
	width: 124px; height: 124px; border-radius: 50%;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: var(--c-navy); color: var(--c-on-navy);
	box-shadow: 0 18px 40px -18px rgba(29, 37, 64, 0.7);
	text-align: center; line-height: 1.05;
}
.hero__badge::before {
	content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px dashed rgba(214, 174, 85, 0.6);
}
.hero__badge-top,
.hero__badge-bot { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-wheat); }
.hero__badge-mid { font-family: var(--f-display); font-style: italic; font-size: 34px; margin: 2px 0; }

@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__media { max-width: 460px; width: 100%; margin-inline: auto; order: -1; }
	.hero__arch { aspect-ratio: 1 / 1.05; }
	.hero__badge { left: auto; right: -6px; bottom: 18px; width: 104px; height: 104px; }
	.hero__badge-mid { font-size: 28px; }
	.hero__copy { text-align: left; }
}

/* ==========================================================================
   Intro / values
   ========================================================================== */
.intro__head,
.friends__head { text-align: center; max-width: 760px; margin: 0 auto clamp(48px, 6vw, 80px); }
.intro__head .lead,
.friends__head .lead { margin-inline: auto; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--c-line); }
.value { padding: 40px clamp(20px, 3vw, 44px) 8px; border-right: 1px solid var(--c-line); }
.value:first-child { padding-left: 0; }
.value:last-child { border-right: 0; padding-right: 0; }
.value:nth-child(2) { transition-delay: 0.1s; }
.value:nth-child(3) { transition-delay: 0.2s; }
.value__num { display: block; font-family: var(--f-display); font-style: italic; font-size: 20px; color: var(--c-accent); margin-bottom: 18px; }
.value__title { font-size: 28px; margin-bottom: 10px; }
.value__text { color: var(--c-ink-2); margin: 0; }
@media (max-width: 780px) {
	.values { grid-template-columns: 1fr; }
	.value { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--c-line); }
	.value:last-child { border-bottom: 0; }
}

/* ==========================================================================
   Journal / cards
   ========================================================================== */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .section-title { margin: 0; }

.journal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.5vw, 36px); }
.journal__grid--three { grid-template-columns: repeat(3, 1fr); }

.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--c-tint); margin-bottom: 22px; }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__img { transform: scale(1.045); }
.card__title { font-size: 24px; line-height: 1.2; margin: 10px 0 12px; }
.card__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease), color 0.2s; }
.card__title a:hover { background-size: 100% 1px; color: var(--c-ink); }
.card__excerpt { color: var(--c-ink-2); font-size: 16px; margin-bottom: 18px; }
.card__more { margin-top: auto; align-self: flex-start; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; color: var(--c-accent); }
.card__more:hover { color: var(--c-accent-ink); }

.card--featured {
	grid-column: 1 / -1;
	display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center;
	padding-bottom: clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--c-line);
}
.card--featured .card__media { aspect-ratio: 16 / 11; margin: 0; border-radius: var(--radius-lg); }
.card--featured .card__title { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; }
.card--featured .card__excerpt { font-size: 17px; }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--c-ink-3); letter-spacing: 0.02em; }
.post-meta__cat { color: var(--c-accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; text-decoration: none; }
.post-meta__dot { opacity: 0.5; }

@media (max-width: 980px) {
	.journal__grid, .journal__grid--three { grid-template-columns: repeat(2, 1fr); }
	.card--featured { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
	.journal__grid, .journal__grid--three { grid-template-columns: 1fr; }
	.section-head { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Quote band
   ========================================================================== */
.quote-band { position: relative; min-height: clamp(420px, 56vw, 620px); display: grid; align-items: center; overflow: hidden; background: var(--c-navy); }
.quote-band__media { position: absolute; inset: 0; background-size: cover; background-position: center 40%; opacity: 0.42; filter: saturate(0.85); }
.quote-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(29, 37, 64, 0.2), rgba(29, 37, 64, 0.85)); }
.quote-band__inner { position: relative; z-index: 1; }
.quote-band__quote { margin: 0; max-width: 900px; color: var(--c-on-navy); }
.quote-band__quote p {
	font-family: var(--f-display); font-style: italic; font-weight: 400;
	font-size: clamp(32px, 4.8vw, 62px); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 26px;
}
.quote-band__quote p::before { content: "“"; color: var(--c-wheat); margin-left: -0.45em; }
.quote-band__quote p::after { content: "”"; color: var(--c-wheat); }
.quote-band__quote cite { font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-wheat); }
@media (max-width: 620px) { .quote-band__quote p::before { margin-left: 0; } }

/* ==========================================================================
   Friends
   ========================================================================== */
.friends__cols {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 64px);
	background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
	padding: clamp(28px, 4vw, 56px);
}
.friends__list { list-style: none; margin: 0; padding: 0; }
.friends__list li { border-bottom: 1px solid var(--c-line); }
.friends__list li:last-child { border-bottom: 0; }
.friends__list a {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	padding: 13px 0; text-decoration: none; color: var(--c-ink); font-size: 16px;
	transition: color 0.2s, padding 0.3s var(--ease);
}
.friends__list a::after { content: "↗"; font-size: 13px; color: var(--c-ink-3); transition: transform 0.3s var(--ease), color 0.2s; }
.friends__list a:hover { color: var(--c-accent); padding-left: 6px; }
.friends__list a:hover::after { color: var(--c-accent); transform: translate(2px, -2px); }
@media (max-width: 860px) {
	.friends__cols { grid-template-columns: 1fr; }
	.friends__list li:last-child { border-bottom: 1px solid var(--c-line); }
	.friends__list:last-child li:last-child { border-bottom: 0; }
}

/* ==========================================================================
   Page hero (archives, pages, search, 404)
   ========================================================================== */
.page-hero { padding-block: clamp(56px, 8vw, 110px) clamp(40px, 6vw, 72px); }
.page-hero--center { text-align: center; }
.page-hero--center .eyebrow { justify-content: center; }
.page-hero--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.page-hero__title { font-size: clamp(42px, 6.4vw, 80px); font-weight: 450; letter-spacing: -0.02em; line-height: 1.02; }
.page-hero__text { font-size: clamp(17px, 1.5vw, 20px); color: var(--c-ink-2); max-width: 56ch; margin: 0 auto 30px; }
.page-hero__text p:last-child { margin: 0; }
.page-hero__search { margin: 10px auto 34px; }
.page-hero .ornament { margin-top: 28px; margin-bottom: 0; }
.notfound .btn { margin-top: 8px; }

.journal__grid--archive { margin-top: 12px; }
.empty { text-align: center; padding: 40px 0 80px; color: var(--c-ink-2); }

/* Pagination */
.pagination { margin-top: clamp(48px, 6vw, 80px); }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	min-width: 46px; height: 46px; padding: 0 16px; display: inline-grid; place-items: center;
	border-radius: 999px; border: 1px solid var(--c-line); text-decoration: none; font-weight: 600; font-size: 14px;
}
.pagination .page-numbers.current { background: var(--c-ink); color: var(--c-on-navy); border-color: var(--c-ink); }
.pagination a.page-numbers:hover { border-color: var(--c-ink); color: var(--c-ink); }

/* ==========================================================================
   Single article
   ========================================================================== */
.article__head { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 52px); text-align: center; }
.article__head .post-meta { justify-content: center; margin-bottom: 22px; }
.article__title { font-size: clamp(36px, 5.4vw, 66px); font-weight: 450; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.article__lead { font-size: 20px; color: var(--c-ink-2); margin: 24px auto 0; max-width: 56ch; }
.article__cover { margin: 0 auto clamp(40px, 6vw, 72px); }
.article__cover img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius-lg); }

.article__foot { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--c-line); }
.author-note { text-align: center; color: var(--c-ink-3); font-family: var(--f-display); font-style: italic; font-size: 19px; }
.author-note .ornament { margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; justify-content: center; }
.tags a { font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--c-line); text-decoration: none; }
.related .card__title { font-size: 22px; }
.article + .related, .article ~ .related { margin-top: clamp(56px, 8vw, 100px); }

/* Prose – content written in the block editor */
.prose { font-size: 18.5px; line-height: 1.78; color: #2a3049; }
.prose > * { margin-block: 0 1.25em; }
.prose > p:first-of-type::first-letter {
	float: left; font-family: var(--f-display); font-size: 4.6em; line-height: 0.84; font-weight: 500;
	padding: 0.06em 0.12em 0 0; color: var(--c-accent);
}
.prose h2 { font-size: clamp(28px, 3vw, 36px); margin: 2em 0 0.6em; }
.prose h3 { font-size: clamp(23px, 2.4vw, 27px); margin: 1.8em 0 0.5em; }
.prose h4 { font-size: 21px; margin: 1.6em 0 0.5em; }
.prose a { color: var(--c-accent-ink); text-decoration-color: rgba(176, 83, 44, 0.4); }
.prose a:hover { color: var(--c-accent); text-decoration-color: currentColor; }
.prose strong { color: var(--c-ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--c-accent); }
.prose figure { margin: 2.2em 0; }
.prose img { border-radius: var(--radius); }
.prose figcaption, .prose .wp-element-caption { font-size: 14px; color: var(--c-ink-3); text-align: center; margin-top: 12px; }
.prose blockquote, .prose .wp-block-quote {
	margin: 2.2em 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--c-wheat);
	font-family: var(--f-display); font-style: italic; font-size: 1.3em; line-height: 1.45; color: var(--c-ink);
}
.prose blockquote cite { display: block; margin-top: 10px; font-family: var(--f-body); font-style: normal; font-size: 14px; color: var(--c-ink-3); }
.prose hr { border: 0; height: 1px; background: var(--c-line); margin: 3em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--c-line); text-align: left; }
.prose th { font-weight: 650; }
.prose .alignwide { margin-inline: calc((var(--w-narrow) - min(1000px, 92vw)) / 2); max-width: none; }
.prose .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.prose .alignfull img { border-radius: 0; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignleft { float: left; margin: 0.3em 1.6em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: 0.3em 0 1em 1.6em; max-width: 50%; }
.prose .wp-block-button__link { background: var(--c-ink); color: var(--c-on-navy); border-radius: 999px; padding: 15px 26px; text-decoration: none; font-weight: 600; font-size: 15px; }
.prose .wp-block-button__link:hover { background: var(--c-accent); color: #fff; }
.prose::after { content: ""; display: table; clear: both; }

/* Easy Table of Contents plugin */
.prose #ez-toc-container,
.prose .ez-toc-v2_0_17,
#ez-toc-container {
	background: var(--c-paper) !important; border: 1px solid var(--c-line) !important;
	border-radius: var(--radius) !important; box-shadow: none !important;
	padding: 22px 26px !important; width: 100% !important; margin: 2em 0 !important;
	font-family: var(--f-body);
}
#ez-toc-container .ez-toc-title { font-family: var(--f-display) !important; font-size: 21px !important; font-weight: 500 !important; color: var(--c-ink) !important; }
#ez-toc-container ul { padding-left: 0 !important; }
#ez-toc-container li { font-size: 16px; margin: 0.35em 0 !important; }
#ez-toc-container a { color: var(--c-ink-2) !important; text-decoration: none !important; }
#ez-toc-container a:hover { color: var(--c-accent) !important; }

/* Comments */
.comments { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--c-line); }
.comments__title, .comment-reply-title { font-size: 28px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-list .comment-body { padding: 22px 0; border-bottom: 1px solid var(--c-line); }
.comment-list .avatar { border-radius: 50%; float: left; margin-right: 14px; }
.comment-meta { font-size: 14px; color: var(--c-ink-3); }
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%; font: 16px var(--f-body); padding: 13px 16px; border-radius: 10px;
	border: 1px solid var(--c-line); background: var(--c-paper); color: var(--c-ink);
}
.comment-form textarea { min-height: 160px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--c-navy); color: rgba(243, 236, 223, 0.78); padding-top: clamp(64px, 8vw, 104px); font-size: 15px; }
.site-footer a { color: var(--c-on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--c-wheat); }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(243, 236, 223, 0.14); }
.site-footer__widgets { grid-column: 1 / -1; }
.brand--footer { color: var(--c-on-navy); }
.brand--footer:hover { color: var(--c-on-navy); }
.brand--footer .brand__logo { width: 68px; height: 68px; padding: 7px; background: var(--c-on-navy); border-radius: 16px; }
.brand--footer .brand__tag { color: rgba(243, 236, 223, 0.55); }
.site-footer__text { margin-top: 20px; max-width: 38ch; }
.site-footer__heading { font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-wheat); margin-bottom: 18px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 10px; line-height: 1.4; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 26px; font-size: 13px; color: rgba(243, 236, 223, 0.55); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom .to-top { margin-left: auto; }
@media (max-width: 860px) {
	.site-footer__top { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.site-footer__top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Elementor pages: let Elementor control the layout
   ========================================================================== */
.is-elementor-page .site-main > .elementor { max-width: none; }
