/* =========================================================
   Terry Haskins Memorial — main stylesheet
   Design tokens from the Claude Design handoff.
   ========================================================= */

:root {
	--navy: #0F1A30;        /* page dark background */
	--navy-2: #14213D;      /* card / image well */
	--navy-ink: #1E2A44;    /* body text on cream */
	--navy-footer: #0B1426;
	--cream: #F4EFE6;
	--cream-2: #EFE8DA;
	--gold: #C9A66B;
	--gold-2: #9C7A3C;
	--gold-ink: #7F622F; /* AA-contrast gold for small text on cream */
	--cream-a75: rgba(244, 239, 230, .75);
	--cream-a70: rgba(244, 239, 230, .7);
	--cream-a60: rgba(244, 239, 230, .6);
	--cream-a10: rgba(244, 239, 230, .1);
	--navy-a18: rgba(20, 33, 61, .18);
	--serif: 'Newsreader', Georgia, serif;
	--serif-i: 'EB Garamond', Georgia, serif;
	--sans: 'IBM Plex Sans', system-ui, sans-serif;
	--pad-x: clamp(24px, 5vw, 72px);
	--section-y: clamp(72px, 9vw, 128px);
	--max-w: 1440px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--navy);
	color: var(--cream);
	font-family: var(--sans);
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--gold); }
a:hover { color: var(--cream); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}

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

.kicker {
	font-size: 11px;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--gold);
}
.light .kicker, .kicker--dark { color: var(--gold-ink); }

.rule { width: 48px; height: 1px; background: var(--gold-2); }

.icon-btn {
	all: unset;
	cursor: pointer;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(244, 239, 230, .25);
	border-radius: 50%;
	color: var(--cream);
}

.brand {
	text-decoration: none;
	color: var(--cream);
	font-family: var(--serif);
	font-weight: 400;
	white-space: nowrap;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}
.brand__name { display: block; font-size: 30px; line-height: 1; }
.brand__dates {
	display: block;
	margin-top: 2px;
	color: var(--gold);
	font-style: italic;
	font-weight: 300;
	font-size: 14px;
	line-height: 1;
	letter-spacing: .04em;
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	/* Opaque enough that nav text stays readable when the header overlays
	   the cream sections; indistinguishable from the old .72 over navy. */
	background: rgba(15, 26, 48, .9);
	backdrop-filter: blur(16px) saturate(1.1);
	-webkit-backdrop-filter: blur(16px) saturate(1.1);
	border-bottom: 1px solid var(--cream-a10);
}
.site-header__inner {
	max-width: var(--max-w);
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 32px;
	padding: 22px var(--pad-x);
}
/* Keep the brand above the mobile nav overlay (a sibling inside the header's stacking context). */
.site-header .brand { position: relative; z-index: 31; }

.site-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px 26px;
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.site-nav a {
	text-decoration: none;
	color: var(--cream-a75);
	padding: 8px 0;
	white-space: nowrap;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a.is-current { color: var(--gold); border-bottom: 1px solid var(--gold-2); }

.burger {
	all: unset;
	display: none;
	cursor: pointer;
	height: 44px;
	align-items: center;
	gap: 12px;
	color: var(--cream);
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: .24em;
	text-transform: uppercase;
	position: relative;
	z-index: 31;
}
.burger__x { display: none; width: 22px; height: 22px; place-items: center; font-size: 26px; line-height: 1; color: var(--gold); }
.burger__lines { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.burger__lines span:nth-child(1) { display: block; width: 22px; height: 1px; background: var(--cream); }
.burger__lines span:nth-child(2) { display: block; width: 14px; height: 1px; background: var(--gold); }
.site-header[data-open="true"] .burger__x { display: grid; }
.site-header[data-open="true"] .burger__lines { display: none; }

@media (max-width: 899px) {
	.burger { display: flex; }
	.site-header { z-index: 40; }
	.site-header[data-open="true"] { background: var(--navy); backdrop-filter: none; -webkit-backdrop-filter: none; }
	.site-nav {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 30;
		flex-direction: column;
		justify-content: flex-start;
		align-items: stretch;
		flex-wrap: nowrap;
		background: var(--navy);
		/* Top padding clears the sticky header, which stays on top with the brand + Close button. */
		padding: 110px 24px 40px;
		margin: 0;
		gap: 0;
		overflow-y: auto;
	}
	.site-header[data-open="true"] .site-nav { display: flex; }
	.site-nav a {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 16px;
		font-family: var(--serif);
		font-weight: 300;
		font-size: 28px;
		line-height: 1.1;
		letter-spacing: 0;
		text-transform: none;
		padding: 16px 0;
		border-bottom: 1px solid var(--cream-a10);
		white-space: normal;
		color: var(--cream);
	}
	.site-nav a::after { content: "\2192"; font-size: .7em; color: var(--gold-2); }
	.site-nav a.is-current { color: var(--gold); }
}

/* ---------- Hero (front page) ---------- */

.hero-section { position: relative; overflow: hidden; background: var(--navy); }
.hero-section__palmetto {
	position: absolute;
	right: -6vw;
	bottom: -10vw;
	width: 80vw;
	height: auto;
	opacity: .0125;
	pointer-events: none;
	user-select: none;
}
.hero {
	position: relative;
	min-height: calc(100vh - 70px);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
	max-width: var(--max-w);
	margin: 0 auto;
}
@media (max-width: 899px) { .hero { min-height: 0; } }

.hero__copy {
	position: relative;
	z-index: 1;
	order: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 30px;
	padding: clamp(64px, 9vw, 120px) var(--pad-x) clamp(64px, 8vw, 96px);
}
.hero__kicker { animation: rise .9s ease both; }
.hero__title {
	animation: rise .9s .1s ease both;
	margin: 0;
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(60px, 7.4vw, 124px);
	line-height: .94;
	letter-spacing: -.015em;
}
.hero__dates {
	animation: rise .9s .2s ease both;
	font-family: var(--serif-i);
	font-style: italic;
	font-size: clamp(20px, 1.7vw, 26px);
	color: var(--gold);
}
.hero__intro {
	animation: rise .9s .3s ease both;
	margin: 0;
	max-width: 50ch;
	font-size: 17px;
	line-height: 1.75;
	font-weight: 300;
	color: rgba(244, 239, 230, .8);
	text-wrap: pretty;
}
.hero__actions {
	animation: rise .9s .4s ease both;
	display: flex;
	flex-wrap: wrap;
	gap: 20px 36px;
	align-items: center;
	margin-top: 10px;
}
.btn-solid {
	text-decoration: none;
	color: var(--navy);
	background: var(--gold);
	padding: 18px 30px;
	font-size: 12px;
	letter-spacing: .18em;
	text-transform: uppercase;
	font-weight: 500;
	white-space: nowrap;
	transition: background .25s;
}
.btn-solid:hover { background: var(--cream); color: var(--navy); }
.btn-underline {
	text-decoration: none;
	color: var(--cream);
	font-size: 12px;
	letter-spacing: .18em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--gold-2);
	padding: 10px 0 8px;
	white-space: nowrap;
	transition: border-color .25s;
}
.btn-underline:hover { border-color: var(--cream); color: var(--cream); }

.hero__media {
	position: relative;
	z-index: 1;
	order: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
	padding: clamp(48px, 7vw, 96px) var(--pad-x);
}
.slideshow {
	position: relative;
	width: 100%;
	max-width: 560px;
	aspect-ratio: 4 / 5;
	margin: 0 auto;
	overflow: hidden;
	background: var(--navy-2);
	border: 1px solid rgba(201, 166, 107, .35);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.slideshow__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
	opacity: 0;
	transform: scale(1);
	transition: opacity 1.6s ease, transform 9s linear;
}
.slideshow__slide.is-active { opacity: 1; transform: scale(1.06); }
.slideshow-ui {
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 18px;
	font-size: 11px;
	letter-spacing: .2em;
	color: var(--cream-a70);
}
.slideshow-ui__counter { font-family: var(--serif); font-size: 14px; letter-spacing: .08em; white-space: nowrap; }
.slideshow-ui__track {
	width: 48px;
	height: 1px;
	background: rgba(244, 239, 230, .3);
	position: relative;
	overflow: hidden;
}
.slideshow-ui__progress { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold); width: 0; }

/* ---------- Front page: index of sections ---------- */

.index-section {
	position: relative;
	overflow: hidden;
	background: var(--cream);
	color: var(--navy-2);
	padding: var(--section-y) var(--pad-x);
}
.index-section__seal {
	position: absolute;
	left: -10vw;
	bottom: -14vw;
	width: clamp(560px, 60vw, 980px);
	height: auto;
	opacity: .035;
	filter: grayscale(1) contrast(1.1);
	pointer-events: none;
	user-select: none;
}
.index-section__inner {
	position: relative;
	max-width: var(--max-w);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 48px clamp(40px, 6vw, 96px);
	align-items: start;
}
.index-section__lede {
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 110px;
}
@media (max-width: 899px) { .index-section__lede { position: static; } }
.index-section__heading {
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(52px, 5.4vw, 88px);
	line-height: 1;
	letter-spacing: -.01em;
}
.index-section__heading em {
	font-family: var(--serif-i);
	font-style: italic;
	color: var(--gold-2);
}
.index-list { display: flex; flex-direction: column; border-top: 1px solid var(--navy-a18); }
.index-list__item {
	text-decoration: none;
	color: var(--navy-2);
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: baseline;
	gap: 20px;
	padding: 28px 0;
	border-bottom: 1px solid var(--navy-a18);
	transition: color .25s;
}
.index-list__item:hover { color: var(--gold-ink); }
.index-list__num { font-family: var(--serif-i); font-style: italic; font-size: 15px; color: var(--gold-ink); }
.index-list__title { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; }
.index-list__arrow { font-size: 18px; color: var(--gold-2); }

/* ---------- Front page: featured photographs ---------- */

.featured-section { background: var(--navy); padding: var(--section-y) var(--pad-x); }
.featured-section__inner { max-width: var(--max-w); margin: 0 auto; }
.featured-section__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}
.link-underline {
	text-decoration: none;
	color: var(--cream-a75);
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--gold-2);
	padding-bottom: 6px;
}
.link-underline:hover { color: var(--cream); }
.featured-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 24px 2px;
}
.featured-card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.featured-card__frame { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-2); }
.featured-card__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(.3);
	transition: transform 1.2s ease, filter .6s;
}
.featured-card:hover .featured-card__frame img { transform: scale(1.04); filter: grayscale(0); }
.featured-card__caption {
	font-family: var(--serif-i);
	font-style: italic;
	font-size: 15px;
	color: rgba(244, 239, 230, .55);
}

/* ---------- Interior page title ---------- */

.page-title { background: var(--navy); color: var(--cream); }
.page-title__inner {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(88px, 11vw, 160px) var(--pad-x) clamp(72px, 8vw, 112px);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 32px;
}
.page-title .kicker { animation: rise .9s ease both; }
.page-title__heading {
	animation: rise .9s .1s ease both;
	margin: 0;
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(56px, 8vw, 132px);
	line-height: .9;
	letter-spacing: -.02em;
	text-wrap: balance;
}
.page-title .rule { animation: rise .9s .2s ease both; }
.page-title__deck {
	animation: rise .9s .25s ease both;
	margin: 0;
	font-family: var(--serif-i);
	font-style: italic;
	font-size: clamp(18px, 1.5vw, 23px);
	line-height: 1.55;
	color: rgba(244, 239, 230, .78);
	max-width: 44ch;
	text-wrap: balance;
}
.page-title__deck a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201, 166, 107, .5); }

/* ---------- Tribute article (His Life, The Bridge) ---------- */

.tribute-article { background: var(--cream); color: var(--navy-2); padding: var(--section-y) var(--pad-x); }
.tribute-article__inner { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }

.attribution { display: flex; align-items: center; gap: 20px; margin-bottom: 10px; }
.attribution__photo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center top;
	display: block;
	filter: sepia(.15);
}
.attribution__name { font-family: var(--serif); font-size: 22px; color: var(--navy-2); }
.attribution__date { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }

.tribute-body { display: flex; flex-direction: column; gap: 30px; }
.tribute-body > p {
	margin: 0;
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(18px, 1.35vw, 21px);
	line-height: 1.7;
	color: var(--navy-ink);
	text-wrap: pretty;
}
/* First paragraph gets the large "lead" treatment. */
.tribute-body > p.lead,
.tribute-body > p:first-child {
	font-weight: 300;
	font-size: clamp(28px, 2.6vw, 38px);
	line-height: 1.3;
	letter-spacing: -.01em;
	color: var(--navy-2);
	margin-bottom: 18px;
}
/* Image rows: seeded .tribute-photos rows or core gallery blocks. */
.tribute-body .tribute-photos {
	width: min(100%, 960px);
	align-self: center;
	margin: clamp(16px, 2vw, 28px) 0;
	display: flex;
	gap: 10px;
}
.tribute-body .tribute-photos img {
	flex: 1;
	min-width: 0;
	width: auto;
	height: clamp(180px, 22vw, 300px);
	object-fit: cover;
	display: block;
	filter: sepia(.2) contrast(.98);
}
@media (max-width: 640px) {
	.tribute-body .tribute-photos { flex-wrap: wrap; }
	.tribute-body .tribute-photos img { flex: 1 1 45%; }
}
.tribute-body .wp-block-gallery {
	width: min(100%, 960px);
	align-self: center;
	margin: clamp(16px, 2vw, 28px) 0;
	display: flex;
	gap: 10px !important;
	flex-wrap: nowrap;
}
.tribute-body .wp-block-gallery .wp-block-image,
.tribute-body .wp-block-gallery figure { flex: 1; min-width: 0; margin: 0; width: auto !important; }
.tribute-body .wp-block-gallery img {
	width: 100%;
	height: clamp(180px, 22vw, 300px);
	object-fit: cover;
	display: block;
	filter: sepia(.2) contrast(.98);
}
@media (max-width: 640px) {
	.tribute-body .wp-block-gallery { flex-wrap: wrap; }
	.tribute-body .wp-block-gallery .wp-block-image,
	.tribute-body .wp-block-gallery figure { flex: 1 1 45%; }
}
.tribute-article .rule { margin: 24px auto 0; }

/* ---------- Photo strip (Bridge page, under the title) ---------- */

.photo-strip { background: var(--navy); padding: 0 var(--pad-x) clamp(72px, 8vw, 112px); }
.photo-strip__grid {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}
@media (max-width: 899px) { .photo-strip__grid { grid-template-columns: 1fr; } }
.photo-strip__grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; filter: sepia(.1); }
.photo-strip__caption {
	max-width: 1100px;
	margin: 18px auto 0;
	font-family: var(--serif-i);
	font-style: italic;
	font-size: 16px;
	color: rgba(244, 239, 230, .55);
}

/* ---------- Galleries ---------- */

.gallery-jump {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 var(--pad-x) clamp(40px, 4vw, 56px);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 36px;
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	background: transparent;
}
.gallery-jump a { text-decoration: none; color: var(--cream-a70); padding: 10px 0; }
.gallery-jump a:hover { color: var(--gold); }
.page-title--galleries { padding-bottom: 0; }
.page-title--galleries .page-title__inner { padding-bottom: clamp(56px, 6vw, 80px); }

.galleries-wrap { background: var(--cream); color: var(--navy-2); }
.gallery-block {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: clamp(64px, 8vw, 112px) var(--pad-x);
	border-bottom: 1px solid rgba(20, 33, 61, .12);
	scroll-margin-top: 110px;
}
.gallery-block__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px 40px;
	margin-bottom: clamp(32px, 4vw, 48px);
}
.gallery-block__title,
.section-title {
	margin: 0;
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(36px, 4vw, 60px);
	line-height: 1;
	letter-spacing: -.01em;
}
.gallery-block__count { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.gallery-block__intro {
	margin: 0 0 clamp(32px, 4vw, 48px);
	max-width: 56ch;
	font-family: var(--serif);
	font-size: clamp(19px, 1.5vw, 23px);
	line-height: 1.6;
	color: var(--navy-ink);
	text-wrap: pretty;
}
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 36px 24px;
}
.gallery-item {
	all: unset;
	cursor: zoom-in;
	display: flex;
	flex-direction: column;
	gap: 14px;
	text-align: left;
}
.gallery-item__frame {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	background: #E8E0D0;
	transition: background .3s;
}
.gallery-item:hover .gallery-item__frame { background: #DDD3BF; }
.gallery-item__frame img {
	position: absolute;
	inset: 14px;
	width: calc(100% - 28px);
	height: calc(100% - 28px);
	object-fit: contain;
	display: block;
	filter: sepia(.12);
}
.gallery-item__caption {
	font-family: var(--serif-i);
	font-style: italic;
	font-size: 16px;
	line-height: 1.4;
	color: rgba(20, 33, 61, .7);
}

/* Grave marker section */
.grave-section { background: var(--navy); color: var(--cream); scroll-margin-top: 110px; }
.grave-section__inner {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: var(--section-y) var(--pad-x);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
	gap: clamp(40px, 6vw, 96px);
	align-items: center;
}
.grave-section__photo { all: unset; cursor: zoom-in; display: block; }
.grave-section__photo img { width: 100%; display: block; border: 1px solid rgba(201, 166, 107, .3); }
.grave-section__body { display: flex; flex-direction: column; gap: 28px; }
.grave-section__text {
	font-family: var(--serif);
	font-weight: 300;
	line-height: 1.5;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-size: clamp(13px, 1vw, 15px);
	color: rgba(244, 239, 230, .85);
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.grave-section__text p { margin: 0; }
.grave-section__text strong { font-weight: 300; color: var(--cream); }
.grave-section__quote {
	font-family: var(--serif-i);
	font-style: italic;
	font-size: clamp(24px, 2.2vw, 34px);
	line-height: 1.35;
	color: var(--gold);
	white-space: pre-line;
}
.grave-section__source {
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--cream-a60);
}

/* Bridge dedication section (bottom of galleries page) */
.bridge-section { background: var(--cream); color: var(--navy-2); scroll-margin-top: 110px; }
.bridge-section__inner { max-width: var(--max-w); margin: 0 auto; padding: clamp(64px, 8vw, 112px) var(--pad-x); }
.bridge-section__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px 40px;
	margin-bottom: clamp(32px, 4vw, 48px);
}
.link-underline--dark { color: var(--gold-ink); border-bottom-color: var(--gold-ink); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid var(--gold-2); }
.link-underline--dark:hover { color: var(--navy-2); }
.bridge-section__intro {
	margin: 0 0 clamp(32px, 4vw, 48px);
	max-width: 56ch;
	font-family: var(--serif);
	font-size: clamp(19px, 1.5vw, 23px);
	line-height: 1.6;
	color: var(--navy-ink);
}
.bridge-section__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 899px) { .bridge-section__grid { grid-template-columns: 1fr; } }
.bridge-section__grid button { all: unset; cursor: zoom-in; display: block; }
.bridge-section__grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }

/* ---------- Lightbox ---------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(11, 20, 38, .94);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: clamp(24px, 5vw, 72px);
	animation: fade .3s ease both;
	cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
@media (max-width: 899px) { .lightbox { padding: 16px; } }
/* The photo scales inside a flexible stage; the caption + controls sit in a
   bottom-anchored HUD so the buttons never move between photos. */
.lightbox__stage {
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lightbox__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	object-fit: contain;
	display: block;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
	cursor: default;
}
.lightbox__hud {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}
.lightbox__caption {
	font-family: var(--serif-i);
	font-style: italic;
	font-size: clamp(17px, 1.4vw, 21px);
	color: rgba(244, 239, 230, .85);
	text-align: center;
	max-width: 60ch;
	min-height: 1.4em; /* Keeps the HUD height steady when a photo has no caption. */
}
.lightbox__controls {
	display: flex;
	align-items: center;
	gap: 28px;
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--cream-a60);
	cursor: default;
}
.lightbox__counter { font-family: var(--serif); font-size: 14px; letter-spacing: .08em; }
.lightbox__close {
	all: unset;
	cursor: pointer;
	position: absolute;
	top: 24px;
	right: clamp(24px, 5vw, 72px);
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	color: var(--cream);
	font-size: 22px;
}

/* ---------- List pages (In the News, Links) ---------- */

.list-section { background: var(--cream); color: var(--navy-2); padding: clamp(64px, 8vw, 112px) var(--pad-x); }
.list-section__inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: clamp(64px, 8vw, 112px);
}
.list-group {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 32px clamp(40px, 6vw, 96px);
	align-items: start;
}
.list-group__aside {
	position: sticky;
	top: 110px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
@media (max-width: 899px) { .list-group__aside { position: static; } }
.list-group__heading {
	margin: 0;
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(30px, 2.8vw, 42px);
	line-height: 1.15;
	letter-spacing: -.01em;
	text-wrap: balance;
	max-width: 20ch;
}
.list-group__label,
.list-group__count { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.list-group__items {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--navy-a18);
	grid-column: span 2;
}
@media (max-width: 899px) { .list-group__items { grid-column: auto; } }
.list-row {
	text-decoration: none;
	color: var(--navy-2);
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	gap: 24px;
	padding: 22px 0;
	border-bottom: 1px solid var(--navy-a18);
	transition: color .25s;
}
.list-row:hover { color: var(--gold-ink); }
.list-row__text { display: flex; flex-direction: column; gap: 6px; }
.list-row__source { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.list-row__title { font-family: var(--serif); font-size: clamp(20px, 1.7vw, 26px); line-height: 1.3; text-wrap: pretty; }
.list-row__sub { font-family: var(--serif-i); font-style: italic; font-size: 17px; color: rgba(20, 33, 61, .7); }
.list-row__arrow { font-size: 16px; color: var(--gold-2); }

/* ---------- His Friends Speak ---------- */

.friends-section { background: var(--cream); color: var(--navy-2); padding: clamp(64px, 8vw, 112px) var(--pad-x); }
.friends-grid {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 20px;
}
.friend-card {
	text-decoration: none;
	color: var(--navy-2);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	padding: 28px;
	border: 1px solid var(--navy-a18);
	transition: border-color .25s, background .25s;
	cursor: pointer;
	background: none;
	font: inherit;
	text-align: left;
}
/* Beat the global a:hover (cream) — text must stay navy on the cream card. */
.friend-card:hover { border-color: var(--gold-2); background: var(--cream-2); color: var(--navy-2); }
.friend-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.friend-card__avatar {
	position: relative;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--navy-2);
	display: grid;
	place-items: center;
	flex: none;
}
.friend-card__initials {
	font-family: var(--serif);
	font-weight: 300;
	font-size: 30px;
	letter-spacing: .04em;
	color: var(--gold);
}
.friend-card__avatar img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
	filter: grayscale(1) contrast(1.05);
	display: block;
}
.friend-card__mark { font-family: var(--serif-i); font-style: italic; font-size: clamp(28px, 2.4vw, 36px); line-height: 1; color: var(--gold-2); }
.friend-card__bottom { display: flex; flex-direction: column; gap: 18px; }
.friend-card__quote {
	font-family: var(--serif);
	font-style: italic;
	font-size: clamp(17px, 1.3vw, 20px);
	line-height: 1.5;
	color: var(--navy-ink);
	text-wrap: pretty;
}
.friend-card__more {
	font-style: normal;
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--gold-ink);
	white-space: nowrap;
}
.friend-card__id {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 18px;
	border-top: 1px solid rgba(20, 33, 61, .14);
}
.friend-card__name { font-family: var(--serif); font-size: clamp(22px, 1.8vw, 28px); line-height: 1.2; text-wrap: balance; }
.friend-card__role { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); line-height: 1.6; }

/* PDF modal */
.pdf-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(11, 20, 38, .94);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: clamp(16px, 4vw, 56px);
	animation: fade .3s ease both;
}
.pdf-modal[hidden] { display: none; }
.pdf-modal__head { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--cream); }
.pdf-modal__name { font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.2; }
.pdf-modal__role { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.pdf-modal__frame {
	width: min(100%, 900px);
	height: 72vh;
	border: 1px solid rgba(201, 166, 107, .3);
	background: var(--cream);
	display: block;
}
.pdf-modal__controls {
	display: flex;
	align-items: center;
	gap: 28px;
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--cream-a60);
}
.pdf-modal__counter { font-family: var(--serif); font-size: 14px; letter-spacing: .08em; }
.pdf-modal__open {
	text-decoration: none;
	color: var(--cream-a75);
	border-bottom: 1px solid rgba(201, 166, 107, .5);
	padding-bottom: 4px;
}
.pdf-modal__open:hover { color: var(--gold); }
.pdf-modal__close {
	all: unset;
	cursor: pointer;
	position: absolute;
	top: 20px;
	right: clamp(20px, 4vw, 56px);
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	color: var(--cream);
	font-size: 22px;
}

/* ---------- Video ---------- */

.video-section { background: var(--navy); color: var(--cream); padding: 0 var(--pad-x) var(--section-y); }
.video-section__inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.video-player {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: var(--navy-footer);
	border: 1px solid rgba(201, 166, 107, .25);
}
.video-player video { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--navy-footer); }
.video-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px 40px;
}
.video-meta__title { font-family: var(--serif); font-size: clamp(20px, 1.7vw, 26px); line-height: 1.3; }
.video-meta__download {
	text-decoration: none;
	color: var(--cream-a70);
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(201, 166, 107, .5);
	padding-bottom: 4px;
}
.video-meta__download:hover { color: var(--gold); }
.video-parts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	border-top: 1px solid rgba(244, 239, 230, .12);
	padding-top: 28px;
}
@media (max-width: 899px) { .video-parts { grid-template-columns: 1fr; } }
.video-part {
	all: unset;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	border: 1px solid rgba(244, 239, 230, .15);
	background: transparent;
	transition: border-color .25s, background .25s;
	text-align: left;
}
.video-part:hover { border-color: var(--gold-2); }
.video-part.is-active { border-color: var(--gold-2); background: rgba(201, 166, 107, .08); }
.video-part__label { font-family: var(--serif-i); font-style: italic; font-size: 15px; color: var(--gold); }
.video-part__title { font-family: var(--serif); font-size: clamp(18px, 1.4vw, 22px); line-height: 1.25; color: var(--cream); }

/* ---------- Guestbook ---------- */

.page-title__cta {
	all: unset;
	cursor: pointer;
	animation: rise .9s .3s ease both;
	margin-top: 8px;
	padding: 18px 36px;
	border: 1px solid var(--gold-2);
	color: var(--cream);
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: .24em;
	text-transform: uppercase;
	transition: background .25s, color .25s;
}
.page-title__cta:hover { background: var(--gold); color: var(--navy); }

.guestbook-section { background: var(--cream); color: var(--navy-2); padding: clamp(64px, 8vw, 112px) var(--pad-x); }
.guestbook-section__inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: clamp(40px, 5vw, 64px);
}
.guestbook-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px 40px;
	border-bottom: 1px solid var(--navy-a18);
	padding-bottom: 20px;
}
.guestbook-head__title {
	margin: 0;
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(30px, 3vw, 44px);
	line-height: 1;
	letter-spacing: -.01em;
}
.guestbook-head__count { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.guestbook-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 20px;
	align-items: start;
}
.guestbook-card {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 32px 28px;
	border: 1px solid var(--navy-a18);
}
.guestbook-card--featured { background: var(--cream-2); }
.guestbook-card__mark { font-family: var(--serif-i); font-style: italic; font-size: 34px; line-height: .6; color: var(--gold-2); }
.guestbook-card__message {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(17px, 1.3vw, 20px);
	line-height: 1.55;
	color: var(--navy-ink);
	text-wrap: pretty;
	white-space: pre-line;
}
.guestbook-card__id {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 18px;
	border-top: 1px solid rgba(20, 33, 61, .14);
}
.guestbook-card__name { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.guestbook-card__meta { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); line-height: 1.6; }
.guestbook-note {
	margin: 0;
	font-family: var(--serif-i);
	font-style: italic;
	font-size: 16px;
	color: rgba(20, 33, 61, .72);
	max-width: 60ch;
}

/* Guestbook modal form */
.gb-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(11, 20, 38, .9);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(16px, 4vw, 56px);
	animation: fade .3s ease both;
	overflow-y: auto;
}
.gb-modal[hidden] { display: none; }
.gb-modal__panel {
	position: relative;
	margin: auto 0;
	width: min(100%, 640px);
	background: var(--cream);
	color: var(--navy-2);
	padding: clamp(32px, 4vw, 56px);
	display: flex;
	flex-direction: column;
	gap: 28px;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
	animation: rise .4s ease both;
}
.gb-modal__kicker { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-ink); }
.gb-modal__title {
	margin: 0;
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(30px, 3vw, 42px);
	line-height: 1.1;
}
.gb-form { display: flex; flex-direction: column; gap: 28px; }
.gb-modal__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 20px;
}
.gb-field { display: flex; flex-direction: column; gap: 8px; }
.gb-field__label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.gb-field input {
	all: unset;
	box-sizing: border-box;
	width: 100%;
	padding: 14px 0;
	border-bottom: 1px solid rgba(20, 33, 61, .3);
	font-family: var(--serif);
	font-size: 20px;
	color: var(--navy-2);
}
.gb-field input:focus { border-bottom-color: var(--gold-2); }
.gb-field textarea {
	all: unset;
	box-sizing: border-box;
	width: 100%;
	padding: 16px;
	border: 1px solid rgba(20, 33, 61, .3);
	font-family: var(--serif);
	font-size: 19px;
	line-height: 1.5;
	color: var(--navy-2);
	resize: vertical;
	white-space: pre-wrap;
	min-height: 9em;
}
.gb-field textarea:focus { border-color: var(--gold-2); }
.gb-modal__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
.gb-modal__hint { font-family: var(--serif-i); font-style: italic; font-size: 15px; color: rgba(20, 33, 61, .72); }
.gb-modal__submit {
	all: unset;
	cursor: pointer;
	padding: 16px 32px;
	background: var(--navy-2);
	color: var(--cream);
	font-size: 11px;
	letter-spacing: .24em;
	text-transform: uppercase;
	transition: background .25s;
}
.gb-modal__submit:hover { background: var(--gold-2); }
.gb-modal__close {
	all: unset;
	cursor: pointer;
	position: absolute;
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	color: var(--navy-2);
	font-size: 22px;
}
.gb-modal__thanks {
	display: flex;
	flex-direction: column;
	gap: 20px;
	text-align: center;
	align-items: center;
	padding: 24px 0;
}
.gb-modal__thanks-mark { font-family: var(--serif-i); font-style: italic; font-size: 40px; line-height: .6; color: var(--gold-2); }
.gb-modal__thanks p {
	margin: 0;
	font-family: var(--serif);
	font-size: 19px;
	line-height: 1.5;
	color: var(--navy-ink);
	max-width: 36ch;
}
/* Hide the honeypot from humans. */
.gb-field--website { position: absolute !important; left: -9999px !important; }

/* ---------- Contact ---------- */

.contact-section { background: var(--cream); color: var(--navy-2); padding: clamp(64px, 8vw, 112px) var(--pad-x); }
.contact-grid {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 20px;
}
.contact-card {
	text-decoration: none;
	color: var(--navy-2);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 56px;
	padding: 32px;
	border: 1px solid var(--navy-a18);
	transition: border-color .25s, background .25s;
}
.contact-card:hover { border-color: var(--gold-2); background: var(--cream-2); color: var(--navy-2); }
.contact-card__label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.contact-card__email {
	font-family: var(--serif);
	font-size: clamp(22px, 2vw, 32px);
	line-height: 1.2;
	overflow-wrap: anywhere;
}

/* ---------- Next section + footer ---------- */

.next-section { background: var(--navy); color: var(--cream); }
.next-section--light { background: var(--cream); }
.next-section__link {
	text-decoration: none;
	color: inherit;
	max-width: var(--max-w);
	margin: 0 auto;
	padding: clamp(56px, 7vw, 96px) var(--pad-x);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px 40px;
}
.next-section__link:hover { color: var(--gold); }
.next-section--light .next-section__link { color: var(--navy-2); }
.next-section--light .next-section__link:hover { color: var(--gold-ink); }
.next-section__title {
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(36px, 4vw, 64px);
	line-height: 1;
	display: flex;
	align-items: baseline;
	gap: 24px;
}
.next-section__arrow { font-size: .6em; color: var(--gold-2); }

.site-footer {
	background: var(--navy-footer);
	color: var(--cream-a60);
	padding: 56px var(--pad-x);
	border-top: 1px solid rgba(244, 239, 230, .08);
}
.site-footer__inner {
	max-width: var(--max-w);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 20px 40px;
}
.site-footer__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}
.site-footer__original {
	text-decoration: none;
	color: var(--cream-a75);
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--gold-2);
	padding-bottom: 4px;
}
.site-footer__original:hover { color: var(--gold); }
.site-footer__copy {
	font-size: 12px;
	letter-spacing: .04em;
	line-height: 1.6;
	text-align: right;
	white-space: nowrap;
	font-weight: 300;
}
@media (max-width: 899px) {
	.site-footer__inner { flex-direction: column; align-items: flex-start; }
	.site-footer__inner .brand { align-items: flex-start; }
	.site-footer__meta { align-items: flex-start; }
	.site-footer__copy { text-align: left; white-space: normal; }
}

/* ---------- Generic page fallback ---------- */

.generic-content { background: var(--cream); color: var(--navy-ink); padding: var(--section-y) var(--pad-x); }
.generic-content__inner { max-width: 680px; margin: 0 auto; font-family: var(--serif); font-size: clamp(18px, 1.35vw, 21px); line-height: 1.7; }
.generic-content a { color: var(--gold-2); }
.generic-content a:hover { color: var(--navy-2); }

/* ---------- Accessibility ---------- */

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 100;
	padding: 14px 24px;
	background: var(--gold);
	color: var(--navy);
	font-size: 12px;
	letter-spacing: .18em;
	text-transform: uppercase;
	text-decoration: none;
}
.skip-link:focus {
	left: 16px;
	top: 16px;
}

/* Keyboard focus ring. currentColor keeps it contrast-safe on both the navy
   and cream sections; must stay last in the file to override all:unset. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}
