/* Romans in Judaea -- "Modern Grid" treatment */

:root {
	--paper: #f1e6cf;
	--ink: #17181a;
	--ink-soft: #34383c;
	--muted: #8a8f93;
	--line: #ddceac;
	--accent: #a3231f;
	--accent-ink: #ffffff;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: Inter, system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.tag {
	display: inline-flex;
	align-items: center;
	font-family: Archivo, sans-serif;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--accent-ink);
	background: var(--accent);
	padding: 5px 12px;
	border-radius: 2px;
	text-decoration: none;
}
a.tag:hover { filter: brightness(0.9); }

/* ---------------- header / nav ---------------- */
.site-header {
	border-bottom: 1px solid var(--line);
	background: var(--paper);
	position: sticky;
	top: 0;
	z-index: 10;
}
.site-header__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}
.wordmark {
	font-family: Cinzel, "Times New Roman", serif;
	font-weight: 900;
	font-size: 24px;
	letter-spacing: .08em;
	text-decoration: none;
	text-transform: uppercase;
	/* subtle incised / carved feel */
	text-shadow: 0 2px 0 rgba(255, 252, 245, .55), 0 -2px 1px rgba(80, 55, 25, .28);
}
.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
}
.nav-link {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink-soft);
	padding-bottom: 3px;
	border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active {
	color: var(--ink);
	border-bottom-color: var(--accent);
}

/* ---------------- shared layout ---------------- */
main { max-width: 1180px; margin: 0 auto; padding: 40px 24px 80px; }

.site-footer {
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
	text-align: center;
	padding: 24px;
}

/* ---------------- homepage ---------------- */
.hero { margin-bottom: 48px; }
.hero-copy { max-width: 900px; }
.hero .kicker {
	font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
	color: var(--accent); margin: 0 0 8px;
}
.hero h1 {
	font-family: Archivo, sans-serif; font-weight: 900; font-size: clamp(30px, 4vw, 42px);
	line-height: .98; letter-spacing: -.01em; margin: 0 0 18px; text-wrap: balance;
}
.hero-copy p { color: var(--ink-soft); margin: 0 0 12px; }

.section-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}
@media (max-width: 1080px) {
	.section-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
	.section-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.section-grid { grid-template-columns: 1fr; }
}
.section-card {
	position: relative;
	display: block;
	text-decoration: none;
	border-radius: 3px;
	overflow: hidden;
	aspect-ratio: 4/5;
	background: #e7d8ba;
}
.section-card img, .section-card__placeholder {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.section-card__placeholder { background: linear-gradient(160deg, #e5d6b6, #ccb98d); }
.section-card::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 55%);
}
.section-card .tag { position: absolute; left: 14px; bottom: 14px; z-index: 1; }

/* ---------------- section (list) page ---------------- */
.section-hero { max-width: 700px; margin-bottom: 40px; }
.section-hero .tag { margin-bottom: 14px; }
.section-hero__copy p { color: var(--ink-soft); margin: 0; }

/* section landing with image-left lead (test: Soldiers) */
.section-lead {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 36px;
	align-items: start;
	margin-bottom: 52px;
}
.section-lead--noimg { display: block; max-width: 700px; }
.section-lead__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.section-lead__copy h1 {
	font-family: Archivo, sans-serif; font-weight: 900;
	font-size: clamp(28px, 3.4vw, 40px); line-height: .98;
	letter-spacing: -.01em; text-transform: uppercase;
	margin: 0 0 16px; text-wrap: balance;
}
.section-lead__copy p { color: var(--ink-soft); margin: 0 0 12px; }
.section-lead__copy p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
	.section-lead { grid-template-columns: 1fr; gap: 20px; align-items: start; }
}

/* nested section: just a heading over the card grid */
.subsection-head { margin-bottom: 28px; }
.subsection-note { margin-top: 12px; max-width: 900px; }
.subsection-note p { color: var(--ink-soft); margin: 0; }

.page-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}
.page-card {
	text-decoration: none;
	color: var(--ink);
}
.page-card img, .page-card__placeholder {
	width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 2px; background: #e7d8ba;
}
.page-card__placeholder { background: linear-gradient(160deg, #e5d6b6, #ccb98d); }
.page-card h3 {
	font-family: Archivo, sans-serif; font-weight: 700; font-size: 15px;
	margin: 10px 0 0; text-transform: uppercase; letter-spacing: .02em;
}

/* ---------------- topic (single) page ---------------- */
.topic-page .tag { margin-bottom: 18px; }
.topic-page h1 {
	font-family: Archivo, sans-serif; font-weight: 900; font-size: clamp(28px, 3.2vw, 38px);
	line-height: .98; letter-spacing: -.01em; text-transform: uppercase;
	margin: 0 0 28px; text-wrap: balance;
}

/* sibling strip under the section tag */
.sib-strip {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
	font-family: Archivo, sans-serif; font-size: 12px; font-weight: 600;
	letter-spacing: .04em; text-transform: uppercase;
	margin: -6px 0 20px;
}
.sib-strip a { color: var(--muted); text-decoration: none; }
.sib-strip a:hover { color: var(--ink); }
.sib-strip__here { color: var(--ink); }
.sib-strip__sep { color: var(--line); }

.topic-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 32px;
	align-items: start;
}
.topic-grid__main img {
	width: 100%; height: 100%; min-height: 320px; max-height: 440px;
	object-fit: cover; border-radius: 2px;
}
/* rotating main image (front matter: rotate:) -- fade out, swap src, fade in */
.topic-grid__main[data-rotate] img { transition: opacity .6s ease; }
@media (prefers-reduced-motion: reduce) {
	.topic-grid__main[data-rotate] img { transition: none; }
}
.topic-grid__side { display: flex; flex-direction: column; gap: 20px; }

.topic-copy p { color: var(--ink-soft); margin: 0 0 14px; }
/* closing one-liner on each item page: pithy summary / punchline */
.topic-copy p:last-child { margin-bottom: 0; font-weight: 600; color: var(--ink); }
.topic-copy--wide { max-width: 640px; }
.topic-copy h2 {
	font-family: Archivo, sans-serif; font-weight: 700; font-size: 15px;
	text-transform: uppercase; letter-spacing: .02em; color: var(--accent);
	margin: 0 0 10px;
}

/* "learn more" link under the copy on every topic page */
.learn-more {
	align-self: start;
	margin-top: 4px;
	font-family: Archivo, sans-serif;
	font-weight: 700; font-size: 13px;
	text-transform: uppercase; letter-spacing: .03em;
	color: var(--accent); text-decoration: none;
}
.learn-more::after { content: " \2192"; }
.learn-more:hover { text-decoration: underline; }
.topic-copy--wide .learn-more { display: inline-block; margin-top: 20px; }

/* historical photo on a learn page ({{< figure >}} shortcode + front matter) */
.learn-figure {
	float: right;
	max-width: 320px;
	margin: 4px 0 16px 30px;
}
.learn-figure img {
	max-width: 100%; max-height: 560px; width: auto; height: auto;
	border: 3px solid var(--accent); border-radius: 2px; background: #e7d8ba;
}
.learn-figure figcaption {
	margin-top: 8px; font-size: .8rem; line-height: 1.5; color: var(--ink-soft);
}
.learn-figure__credit {
	display: block; margin-top: 4px; font-size: .7rem; color: var(--muted);
}
.learn-figure__credit a { color: var(--muted); }
.learn-figure__credit a:hover { color: var(--accent); }
@media (max-width: 720px) {
	.learn-figure { float: none; max-width: 100%; margin: 4px 0 24px; }
}

/* ---------------- lightbox ---------------- */
.topic-grid img {
	cursor: pointer;
	transition: filter .15s ease, transform .15s ease;
}
.topic-grid img:hover { filter: brightness(1.06); transform: scale(1.015); }
@media (prefers-reduced-motion: reduce) {
	.topic-grid img { transition: none; }
	.topic-grid img:hover { transform: none; }
}
.lightbox {
	position: fixed; inset: 0; z-index: 100;
	display: flex; align-items: center; justify-content: center;
	padding: 4vmin;
	background: rgba(23, 24, 26, .92);
	cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
	max-width: 100%; max-height: 100%; width: auto; height: auto;
	border-radius: 2px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

/* ---------------- gallery (unlisted outtakes page) ---------------- */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	margin-top: 28px;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
	width: 100%; aspect-ratio: 1/1; object-fit: cover;
	border-radius: 2px; background: #e7d8ba; cursor: pointer;
	transition: filter .15s ease, transform .15s ease;
}
.gallery-grid img:hover { filter: brightness(1.06); transform: scale(1.015); }
.gallery-grid figcaption {
	margin-top: 8px; font-size: .82rem; font-style: italic; color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
	.gallery-grid img { transition: none; }
	.gallery-grid img:hover { transform: none; }
}

/* opt-in link block below an item page, above the footer (front matter: more_link) */
.more-link {
	max-width: 1180px; margin: 0 auto; padding: 0 24px 48px;
}
.more-link a {
	font-size: .9rem; color: var(--muted); text-decoration: none;
	border-bottom: 1px solid var(--line); padding-bottom: 1px;
}
.more-link a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------- 404 ---------------- */
.notfound { max-width: 620px; margin: 0 auto; text-align: center; }
.notfound img { border-radius: 3px; }
.notfound h1 {
	font-family: Archivo, sans-serif; font-weight: 900;
	font-size: clamp(20px, 2.4vw, 26px); line-height: 1.15;
	letter-spacing: -.01em; text-wrap: balance;
	margin: 22px 0 14px;
}
.notfound a {
	font-family: Archivo, sans-serif; font-weight: 700; font-size: 13px;
	text-transform: uppercase; letter-spacing: .03em;
	color: var(--accent); text-decoration: none;
}
.notfound a:hover { text-decoration: underline; }

/* ---------------- small screens ---------------- */
@media (max-width: 720px) {
	.topic-grid { grid-template-columns: 1fr; }
	.topic-grid__main img { min-height: 220px; }
	.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
}
