/*
Theme Name: Old Soul
Description: Custom lightweight theme for Old Soul Workshop & Gallery, Walters Falls, Ontario.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: oldsoul
*/

/* ---------- Tokens ---------- */
:root {
	--paper: #F5F1EA;
	--white: #FFFFFF;
	--sand: #EDE6DA;
	--sand-deep: #E2D9CB;
	--wood: #2A201A;
	--line: #DDD4C7;
	--line-soft: #E6DED2;
	--line-sand: #D3C8B9;
	--line-wood: #4A3D33;

	--ink: #231B16;
	--ink-2: #4E433B;
	--ink-3: #5A4E45;
	--on-wood: #F5F1EA;
	--on-wood-2: #D8CFC4;
	--on-wood-3: #BDB2A5;

	--rust: #9C4A1F;
	--rust-text: #8A3F18;
	--rust-hover: #6B2F11;

	--logo-pink: #F08C94;
	--logo-lime: #C8D96F;
	--logo-teal: #4FB3D4;
	--logo-orange: #F08A3E;
	--logo-yellow: #F2CF4E;
	--logo-grey: #D6D2CB;

	--radius-sm: 6px;
	--radius: 8px;
	--radius-md: 10px;
	--radius-lg: 12px;

	--font-display: 'Bricolage Grotesque', system-ui, sans-serif;
	--font-body: 'Libre Franklin', system-ui, sans-serif;
	--font-logo: 'Delius Unicase', cursive;

	--container: 1280px;
	--gutter: 20px;
	--section-y: 56px;
}

@media (min-width: 640px) {
	:root { --gutter: 32px; --section-y: 80px; }
}
@media (min-width: 1024px) {
	:root { --gutter: 40px; --section-y: 96px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (min-width: 1024px) { html { scroll-padding-top: 0; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
}
@media (min-width: 1024px) { body { font-size: 18px; } }

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--rust-text); }
a:hover { color: var(--rust-hover); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--rust-text);
	outline-offset: 2px;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--ink);
	margin: 0 0 0.5em;
}
h1 { font-weight: 800; font-size: 38px; line-height: 1.06; letter-spacing: -0.8px; }
h2 { font-weight: 800; font-size: 30px; line-height: 1.12; letter-spacing: -0.5px; }
h3 { font-weight: 700; font-size: 20px; line-height: 1.2; }
@media (min-width: 1024px) {
	h1 { font-size: 64px; line-height: 1.04; letter-spacing: -1.5px; }
	h2 { font-size: 44px; line-height: 1.1; letter-spacing: -0.8px; }
	h3 { font-size: 22px; }
}

p { margin: 0 0 1em; }

.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: 16px; top: -100px;
	z-index: 100;
	padding: 12px 18px;
	background: var(--wood);
	color: var(--on-wood);
	border-radius: var(--radius);
	font-weight: 700;
	text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-wood); }

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.eyebrow {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.3px;
	text-transform: uppercase;
	color: var(--rust-text);
}
@media (min-width: 1024px) { .eyebrow { font-size: 15px; letter-spacing: 1.5px; } }
@media (max-width: 419px) { .hero .eyebrow { letter-spacing: 0.8px; } }

.lead { color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.btn svg { flex: none; }
.btn--primary { background: var(--rust); color: var(--white); border: 2px solid var(--rust); }
.btn--primary:hover { background: var(--rust-hover); border-color: var(--rust-hover); color: var(--white); }
.btn--outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--lg { min-height: 54px; font-size: 18px; padding: 0 28px; }
@media (min-width: 1024px) { .btn--lg { min-height: 56px; } }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 700;
	font-size: 16px;
}

.placeholder {
	display: inline-block;
	padding: 4px 10px;
	border: 1.5px dashed var(--rust-text);
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--rust-hover);
}

/* ---------- Logo ---------- */
.wordmark {
	font-family: var(--font-logo);
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1;
	white-space: nowrap;
}
.wordmark .l1 { color: var(--logo-pink); }
.wordmark .l2 { color: var(--logo-lime); }
.wordmark .l3, .wordmark .l7 { color: var(--logo-teal); }
.wordmark .l4 { color: var(--logo-orange); }
.wordmark .l5 { color: var(--logo-yellow); }
.wordmark .l6 { color: var(--logo-grey); }

.logo-plate {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 7px 12px 6px;
	background: var(--wood);
	border-radius: var(--radius-sm);
	text-decoration: none;
	flex: none;
}
.logo-plate .wordmark { font-size: 19px; }
.logo-plate__sub {
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #E9E4DC;
	white-space: nowrap;
}
@media (min-width: 1024px) {
	.logo-plate { gap: 3px; padding: 10px 18px 8px; }
	.logo-plate .wordmark { font-size: 26px; }
	.logo-plate__sub { font-size: 11px; letter-spacing: 1.5px; }
}

/* ---------- News banner ---------- */
.news-banner {
	display: block;
	background: var(--logo-yellow);
	color: var(--ink);
	text-decoration: none;
	font-size: 15px;
	line-height: 1.35;
}
.news-banner:hover { background: #F6DA72; color: var(--ink); }
.news-banner:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.news-banner__inner { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.news-banner__tag {
	flex: none;
	padding: 2px 8px;
	border-radius: var(--radius-sm);
	background: var(--wood);
	color: var(--on-wood);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.news-banner__title { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-banner__more { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: underline; }
@media (max-width: 479px) { .news-banner__more { font-size: 0; gap: 0; } .news-banner__more svg { width: 20px; height: 20px; } }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
@media (min-width: 1024px) { .site-header { position: static; } }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 10px;
	padding-bottom: 10px;
}
@media (max-width: 479px) { .site-header__inner { padding-left: 16px; padding-right: 16px; } }
@media (min-width: 1024px) { .site-header__inner { gap: 40px; padding-top: 16px; padding-bottom: 16px; } }

.header-call { margin-left: auto; min-height: 44px; padding: 0 16px; }
.header-call .long { display: none; }
@media (min-width: 1024px) {
	.header-call { margin-left: 0; min-height: 48px; padding: 0 22px; }
	.header-call .long { display: inline; }
	.header-call .short { display: none; }
}

.menu-toggle {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	border: 1.5px solid var(--ink);
	border-radius: var(--radius);
	color: var(--ink);
	cursor: pointer;
	flex: none;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav a[aria-current="page"] { color: var(--rust-text); }

/* mobile panel */
@media (max-width: 1023px) {
	.main-nav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 12px 24px rgba(42, 32, 26, 0.12);
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { padding: 8px var(--gutter) 16px; }
	.main-nav li + li { border-top: 1px solid var(--line-soft); }
	.main-nav a { display: flex; align-items: center; min-height: 52px; font-size: 18px; }
}
@media (min-width: 1024px) {
	.main-nav { margin-left: auto; }
	.main-nav ul { display: flex; gap: 32px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	.site-header__inner { gap: 20px; }
	.main-nav ul { gap: 18px; }
	.main-nav a { font-size: 15px; }
	.header-call .long { display: none; }
	.header-call .short { display: inline; }
	.hero h1 { font-size: 52px; letter-spacing: -1.2px; }
}
@media (min-width: 1024px) { .main-nav a { white-space: nowrap; } }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section--sand { background: var(--sand); }
.section--wood { background: var(--wood); color: var(--on-wood); }

/* Hero */
.hero { padding: 32px 0 48px; }
@media (min-width: 640px) { .hero { padding: 56px 0 72px; } }
@media (min-width: 1024px) { .hero { padding: 72px 0 96px; } }

.hero__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 5fr 6fr; gap: 64px; } }

.hero__text { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 1024px) { .hero__text { gap: 24px; } }
.hero__text h1, .hero__text p { margin: 0; }
.hero__intro { font-size: 17px; color: var(--ink-2); max-width: 560px; }
@media (min-width: 1024px) { .hero__intro { font-size: 20px; max-width: 520px; } }

.hero .btn-row { padding-top: 4px; }
@media (max-width: 639px) {
	.hero .btn-row { flex-direction: column; }
	.hero .btn-row .btn { width: 100%; }
}
@media (min-width: 1024px) { .hero .btn-row { gap: 16px; padding-top: 8px; } }

.hero__note { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
@media (min-width: 1024px) { .hero__note { gap: 10px; font-size: 16px; } }
.hero__note svg { flex: none; color: var(--rust-text); }
.hero__note .long, .hero .eyebrow .long { display: none; }
.hero .eyebrow abbr { text-decoration: none; }
@media (min-width: 640px) {
	.hero__note .long, .hero .eyebrow .long { display: inline; }
	.hero__note .short, .hero .eyebrow .short { display: none; }
}

.figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.figure img { width: 100%; object-fit: cover; border-radius: var(--radius-md); }
.figure figcaption { font-size: 13px; color: var(--ink-3); }
@media (min-width: 1024px) {
	.figure { gap: 12px; }
	.figure img { border-radius: var(--radius-lg); }
	.figure figcaption { font-size: 14px; }
}
.hero .figure img { height: 260px; }
@media (min-width: 640px) { .hero .figure img { height: 420px; } }
@media (min-width: 1024px) { .hero .figure img { height: 560px; } }

/* Section heading */
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.section-head h2, .section-head p { margin: 0; }
.section-head .lead { font-size: 16px; }
.section-head > .link-arrow { align-self: flex-start; }
@media (min-width: 1024px) { .section-head > .link-arrow { align-self: flex-end; } }
@media (min-width: 1024px) {
	.section-head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 48px; }
	.section-head__title { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
	.section-head .lead { max-width: 440px; font-size: 18px; }
}

/* Cards */
.cards { display: grid; gap: 40px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }

.card { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1024px) { .card { gap: 16px; } }
.card img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-md); }
@media (min-width: 1024px) { .card img { height: 240px; } }
.card h3, .card p { margin: 0; }
.card h3 { font-size: 22px; }
@media (min-width: 1024px) { .card h3 { font-size: 24px; } }
.card p { font-size: 16px; color: var(--ink-2); }
.card .price { font-size: 15px; font-weight: 600; color: var(--ink); }
.card .link-arrow { margin-top: auto; }

/* Why */
.why h2 { color: var(--on-wood); max-width: 760px; margin: 0 0 36px; }
@media (min-width: 1024px) { .why h2 { margin-bottom: 48px; } }
.facts { display: grid; gap: 32px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 3px solid var(--logo-orange); }
@media (min-width: 1024px) { .fact { gap: 12px; padding-top: 20px; } }
.fact:nth-child(2) { border-top-color: var(--logo-lime); }
.fact:nth-child(3) { border-top-color: var(--logo-teal); }
.fact:nth-child(4) { border-top-color: var(--logo-yellow); }
.fact h3 { margin: 0; color: var(--white); font-size: 20px; line-height: 1.25; }
@media (min-width: 1024px) { .fact h3 { font-size: 22px; } }
.fact p { margin: 0; font-size: 16px; color: var(--on-wood-2); }

/* Story */
.story__grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1024px) { .story__grid { grid-template-columns: 6fr 5fr; gap: 72px; } }
.story__text { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) { .story__text { gap: 20px; } }
.story__text h2, .story__text p { margin: 0; }
.story__text > p:not(.eyebrow) { color: var(--ink-2); }
.story__img img { width: 100%; height: 280px; object-fit: cover; border-radius: var(--radius-md); }
@media (min-width: 640px) { .story__img img { height: 420px; } }
@media (min-width: 1024px) { .story__img img { height: 600px; border-radius: var(--radius-lg); } }
@media (max-width: 1023px) { .story__img { order: 2; } }
@media (min-width: 1024px) { .section--story { padding: 112px 0; } }

.info-card {
	margin-top: 8px;
	padding: 20px;
	background: var(--white);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-md);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
@media (min-width: 1024px) { .info-card { padding: 24px; } }
.info-card h3, .info-card p { margin: 0; }
.info-card p { font-size: 16px; color: var(--ink-2); }

/* Visit */
@media (min-width: 1024px) { .section--visit { padding: 96px 0 112px; } }
.visit__grid { display: grid; gap: 36px; }
@media (min-width: 1024px) { .visit__grid { grid-template-columns: 5fr 6fr; gap: 64px; align-items: stretch; } }
.visit__details { display: flex; flex-direction: column; gap: 28px; }
.visit__intro { display: flex; flex-direction: column; gap: 12px; }
.visit__intro h2, .visit__intro p { margin: 0; }

.contact-list { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-list > div { display: flex; gap: 16px; }
.contact-list svg { flex: none; margin-top: 2px; color: var(--rust-text); }
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 0; color: var(--ink-2); }
.contact-list dd + dd { margin-top: 4px; }
.contact-list a { word-break: break-word; }

@media (max-width: 639px) {
	.visit__details .btn-row { flex-direction: column; }
	.visit__details .btn-row .btn { width: 100%; min-height: 54px; }
}

.shows { padding-top: 20px; border-top: 1px solid var(--line-sand); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.shows h3, .shows p { margin: 0; }
.shows h3 { font-size: 20px; }
.shows p { font-size: 16px; color: var(--ink-2); }

.map { display: flex; flex-direction: column; gap: 12px; }
.map iframe {
	width: 100%;
	height: 340px;
	border: 0;
	border-radius: var(--radius-lg);
	background: var(--sand-deep);
	display: block;
}
@media (min-width: 1024px) { .map iframe { height: auto; flex: 1; min-height: 560px; } }
.map .link-arrow { align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wood); color: var(--on-wood-2); padding: 48px 0 32px; }
@media (min-width: 1024px) { .site-footer { padding: 64px 0 40px; } }
.site-footer__top { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 1024px) { .site-footer__top { flex-direction: row; justify-content: space-between; gap: 48px; align-items: flex-start; } }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.site-footer__brand .wordmark { font-size: 30px; }
@media (min-width: 1024px) { .site-footer__brand .wordmark { font-size: 34px; } }
.site-footer__brand p { margin: 0; font-size: 16px; }
.footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 24px;
	font-size: 16px;
}
@media (min-width: 1024px) { .footer-nav ul { grid-template-columns: repeat(3, minmax(0, auto)); gap: 4px 56px; } }
.footer-nav a { color: var(--on-wood); display: inline-flex; align-items: center; min-height: 44px; }
.footer-nav a:hover { color: var(--logo-yellow); }
.footer-nav .placeholder { color: var(--logo-yellow); border-color: var(--logo-yellow); }
.site-footer a:focus-visible { outline-color: var(--logo-yellow); }
.site-footer__legal {
	margin: 32px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--line-wood);
	font-size: 14px;
	color: var(--on-wood-3);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 32px;
}
.site-footer__legal p { margin: 0; }
.site-footer__credit { margin-left: auto; text-align: right; }
.site-footer__credit a { color: #E15F55; } /* Net Positive red, lightened from #CE3024 to pass AA on --wood (4.52:1) */
.site-footer__credit a:hover { color: var(--on-wood); }
@media (max-width: 639px) { .site-footer__credit { width: 100%; text-align: center; } }
@media (min-width: 1024px) { .site-footer__legal { margin-top: 40px; } }

/* ---------- Inner pages ---------- */
.page-hero { padding: 40px 0 32px; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
@media (min-width: 1024px) { .page-hero { padding: 72px 0 48px; } }
.page-hero h1 { margin: 8px 0 0; }
.page-hero .lead { margin: 16px 0 0; max-width: 680px; font-size: 18px; }
@media (min-width: 1024px) { .page-hero .lead { font-size: 20px; } }
.page-hero .meta { margin: 12px 0 0; color: var(--ink-3); font-size: 15px; }

.page-body { background: var(--white); padding: 40px 0 64px; }
@media (min-width: 1024px) { .page-body { padding: 64px 0 96px; } }

.entry-content { max-width: 760px; }
.entry-content--wide { max-width: none; }
.entry-content--wide > :not(.wp-block-gallery):not(.alignwide):not(.alignfull):not(.wp-block-video):not(.contact-map) { max-width: 760px; }
.entry-content .contact-map { display: block; width: 100%; height: 420px; border: 0; border-radius: var(--radius-lg); background: var(--sand-deep); }
.entry-content .wp-block-buttons { gap: 12px; margin-bottom: 1.6em; }
.entry-content .wp-block-button__link:hover { background: var(--rust-hover); color: var(--white); }
.entry-content .wp-block-video { max-width: 760px; }

/* Single posts: text stays readable at 760px, photos and videos get more room. */
.entry-content--post { max-width: none; }
.entry-content--post > * { max-width: 760px; }
.entry-content--post > .wp-block-gallery,
.entry-content--post > .wp-block-image,
.entry-content--post > .wp-block-video { max-width: 1040px; margin-top: 1.6em; margin-bottom: 1.6em; }
.entry-content--post > .wp-block-video video { display: block; width: auto; max-width: 100%; max-height: 80vh; background: var(--wood); }
.entry-content--post > .wp-block-image img { max-height: 80vh; object-fit: contain; width: auto; max-width: 100%; }
.entry-content--post .post-nav, .post-nav { max-width: 760px; }

/* Photos left inline in a sentence: give them breathing room and let them shrink. */
.entry-content p img { display: inline-block; vertical-align: top; margin: 6px 10px 6px 0; max-width: 100%; height: auto; }
.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content p, .entry-content li { color: var(--ink-2); }
.entry-content strong { color: var(--ink); }
.entry-content img { border-radius: var(--radius-md); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption,
.entry-content .wp-caption-text,
.entry-content .wp-element-caption { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .alignleft { float: left; margin: 0 24px 16px 0; }
.entry-content .alignright { float: right; margin: 0 0 16px 24px; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--rust); }
.entry-content .wp-block-button__link { background: var(--rust); color: var(--white); border-radius: var(--radius); font-weight: 700; padding: 14px 24px; text-decoration: none; }

/* Core gallery blocks */
.entry-content .wp-block-gallery.has-nested-images { --wp--style--unstable-gallery-gap: 16px; gap: 16px; margin-bottom: 2em; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--radius-md); }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: static;
	background: none;
	color: var(--ink-3);
	font-size: 14px;
	text-align: left;
	padding: 8px 0 0;
	max-height: none;
	text-shadow: none;
	overflow: visible;
}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before { display: none; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image { flex-direction: column; justify-content: flex-start; }
.entry-content .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img { aspect-ratio: 4 / 3; height: auto; flex: none; }
@media (max-width: 599px) {
	.entry-content .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image),
	.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: calc(50% - 8px); }
}
.entry-content .wp-block-video video { border-radius: var(--radius-md); }

/* Legacy [gallery] shortcode output */
.entry-content .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 2em; }
@media (min-width: 640px) { .entry-content .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.entry-content .gallery-item { margin: 0; }
.entry-content .gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.entry-content .gallery br { display: none; }

/* CTA band on inner pages */
.cta-band { background: var(--sand); padding: 48px 0; }
@media (min-width: 1024px) { .cta-band { padding: 64px 0; } }
.cta-band__inner { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) { .cta-band__inner { flex-direction: row; justify-content: space-between; align-items: center; gap: 48px; } }
.cta-band h2 { margin: 0; font-size: 28px; }
@media (min-width: 1024px) { .cta-band h2 { font-size: 36px; } }
.cta-band p { margin: 8px 0 0; color: var(--ink-2); }
@media (max-width: 639px) { .cta-band .btn-row { flex-direction: column; } .cta-band .btn { width: 100%; } }

/* ---------- News & Events ---------- */
.post-list { display: grid; gap: 24px; }
@media (min-width: 640px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.post-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	background: var(--paper);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-md);
}
.post-card__img { margin: -24px -24px 8px; }
.post-card__img img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.post-card time { font-size: 14px; font-weight: 600; color: var(--rust-text); }
.post-card .post-card__title { font-size: 22px; line-height: 1.25; letter-spacing: 0; font-weight: 700; margin: 0; }
.post-card .post-card__title a { color: var(--ink); text-decoration: none; }
.post-card .post-card__title a:hover { color: var(--rust-text); text-decoration: underline; }
.post-card p { margin: 0; font-size: 16px; color: var(--ink-2); }
.post-card .link-arrow { margin-top: auto; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; padding: 0 14px;
	border: 1.5px solid var(--line); border-radius: var(--radius);
	color: var(--ink); text-decoration: none; font-weight: 600;
}
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--ink); }

.post-nav { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; max-width: 760px; }
.post-nav a { display: inline-flex; flex-direction: column; min-height: 44px; font-weight: 700; text-decoration: none; }
.post-nav small { font-weight: 600; color: var(--ink-3); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.post-nav__next { text-align: right; margin-left: auto; }

/* 404 */
.not-found { padding: 80px 0 112px; }
.not-found p { color: var(--ink-2); max-width: 560px; }

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