:root {
	--town-history-ink: #14263a;
	--town-history-blue: #2f5f89;
	--town-history-deep: #0f2433;
	--town-history-paper: #fbf7ef;
	--town-history-cream: #fffdf8;
	--town-history-amber: #c68a35;
	--town-history-rust: #8f3f2b;
	--town-history-line: rgba(47, 95, 137, 0.24);
	--town-history-shadow: 0 22px 55px rgba(20, 38, 58, 0.14);
}

.town-history {
	background:
		radial-gradient(circle at 18% 0%, rgba(198, 138, 53, 0.2), transparent 34rem),
		linear-gradient(180deg, #f7fbff 0%, var(--town-history-paper) 38%, #fffaf0 100%);
	color: var(--town-history-ink);
	font-family: Georgia, "Times New Roman", serif;
	margin: 0 auto;
	max-width: 1440px;
	overflow: visible;
}

.town-history__hero {
	background:
		linear-gradient(90deg, rgba(15, 36, 51, 0.96), rgba(15, 36, 51, var(--town-history-hero-tint, 0.7))),
		linear-gradient(135deg, #15364e, #8f5d27);
	border-bottom: 8px solid var(--town-history-amber);
	color: #fff;
	min-height: clamp(22rem, 42vw, 34rem);
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	position: relative;
	width: 100vw;
}

.town-history__hero--image {
	background:
		linear-gradient(90deg, rgba(15, 36, 51, 0.98), rgba(15, 36, 51, var(--town-history-hero-tint, 0.7))),
		var(--town-history-hero-image) center / cover no-repeat;
}

.town-history__hero::after {
	background: linear-gradient(180deg, transparent, rgba(251, 247, 239, 0.98));
	bottom: -1px;
	content: "";
	height: 12rem;
	left: 0;
	position: absolute;
	right: 0;
}

.town-history__hero-inner {
	max-width: 840px;
	padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 6vw, 6rem);
	position: relative;
	z-index: 1;
}

.town-history__kicker,
.town-history__eyebrow,
.town-history__entry-meta {
	font-family: "Trebuchet MS", Verdana, sans-serif;
	font-size: 0.88rem;
	font-weight: 800;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.town-history__kicker {
	color: #f7d894;
	margin: 0 0 1rem;
}

.town-history h1,
.town-history h2,
.town-history h3 {
	color: inherit;
	font-weight: 800;
	line-height: 1.02;
	margin: 0;
}

.town-history h1 {
	font-size: clamp(2.6rem, 5.8vw, 5.25rem);
	letter-spacing: -0.045em;
	max-width: 12ch;
}

.town-history__subtitle {
	font-family: "Trebuchet MS", Verdana, sans-serif;
	font-size: clamp(1.05rem, 1.55vw, 1.35rem);
	line-height: 1.55;
	margin: 1.35rem 0 0;
	max-width: 42rem;
}

.town-history__intro,
.town-history__before,
.town-history__memory,
.town-history__timeline,
.town-history__featured,
.town-history__closing {
	margin: clamp(1.5rem, 4vw, 4rem) clamp(1rem, 5vw, 5rem);
	position: relative;
	z-index: 2;
}

.town-history__intro {
	align-items: stretch;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
}

.town-history__intro-copy,
.town-history__intro-media,
.town-history__closing {
	background: rgba(255, 253, 248, 0.86);
	border: 1px solid var(--town-history-line);
	border-radius: 1.4rem;
	box-shadow: var(--town-history-shadow);
	overflow: hidden;
}

.town-history__intro-media {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.town-history__intro-copy,
.town-history__closing {
	padding: clamp(1.5rem, 4vw, 3rem);
}

.town-history__intro-media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.town-history__card-image,
.town-history__featured-image {
	background:
		linear-gradient(135deg, rgba(198, 138, 53, 0.08), rgba(47, 95, 137, 0.08)),
		#f5efe4;
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.town-history__intro-media img {
	flex: 1 1 auto;
	height: auto;
	min-height: 18rem;
}

.town-history__intro-media figcaption {
	background: rgba(15, 36, 51, 0.88);
	color: #fff;
	font-family: "Trebuchet MS", Verdana, sans-serif;
	font-size: 0.92rem;
	line-height: 1.45;
	margin: 0;
	padding: 0.85rem 1rem;
}

.town-history__eyebrow {
	color: var(--town-history-rust);
	margin: 0 0 0.75rem;
}

.town-history h2 {
	font-size: clamp(1.75rem, 3vw, 2.8rem);
	letter-spacing: -0.035em;
}

.town-history h3 {
	font-size: clamp(1.2rem, 1.75vw, 1.65rem);
	letter-spacing: -0.03em;
}

.town-history__richtext,
.town-history__intro-copy p,
.town-history__origin-card p,
.town-history__timeline-card p,
.town-history__memory-card p,
.town-history__featured-card p,
.town-history__closing p {
	font-family: "Trebuchet MS", Verdana, sans-serif;
	font-size: 1.05rem;
	line-height: 1.65;
}

.town-history__research-note {
	background: rgba(198, 138, 53, 0.12);
	border-left: 5px solid var(--town-history-amber);
	border-radius: 0.7rem;
	margin: 1.5rem 0 0;
	padding: 1rem 1.15rem;
}

.town-history__section-heading {
	margin-bottom: 1.25rem;
}

.town-history__section-heading--center {
	text-align: center;
}

.town-history__origin-grid,
.town-history__featured-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.town-history__memory-frame {
	margin: 0 auto;
	max-width: min(66.666vw, 58rem);
}

.town-history__origin-card,
.town-history__timeline-card,
.town-history__memory-card,
.town-history__featured-card {
	background: rgba(255, 253, 248, 0.9);
	border: 1px solid var(--town-history-line);
	border-radius: 1.2rem;
	box-shadow: var(--town-history-shadow);
	overflow: hidden;
}

.town-history__entry-lead {
	display: grid;
	gap: 0;
	grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
}

.town-history__entry-lead--timeline {
	grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
}

.town-history__entry-lead--memory {
	grid-template-columns: minmax(0, 0.48fr) minmax(0, 1fr);
}

.town-history__entry-copy {
	padding: clamp(1.2rem, 3vw, 2rem);
}

.town-history__entry-meta {
	color: var(--town-history-blue);
	margin: 0 0 0.65rem;
}

.town-history__timeline-spine {
	border-left: 4px solid rgba(47, 95, 137, 0.28);
	margin-left: clamp(1rem, 10vw, 10rem);
	padding-left: clamp(1.25rem, 4vw, 3rem);
	position: relative;
}

.town-history__era {
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(9rem, 0.25fr) minmax(0, 1fr);
	margin-bottom: 1.5rem;
	position: relative;
}

.town-history__era::before {
	background: var(--town-history-amber);
	border: 4px solid var(--town-history-paper);
	border-radius: 999px;
	content: "";
	height: 1.15rem;
	left: calc(-3rem - 0.7rem);
	position: absolute;
	top: 0.75rem;
	width: 1.15rem;
}

.town-history__era-label span {
	background: var(--town-history-deep);
	border-radius: 999px;
	color: #fff;
	display: inline-block;
	font-family: "Trebuchet MS", Verdana, sans-serif;
	font-weight: 800;
	letter-spacing: 0.08em;
	padding: 0.65rem 1rem;
	text-transform: none;
}

.town-history__era-stories {
	display: grid;
	gap: 1rem;
}

.town-history__details {
	border-top: 1px solid var(--town-history-line);
	font-family: "Trebuchet MS", Verdana, sans-serif;
	margin-top: 0;
	padding-top: 0.8rem;
}

.town-history__entry-actions {
	padding: 0 clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2rem);
}

.town-history__details summary {
	color: var(--town-history-rust);
	cursor: pointer;
	font-weight: 800;
}

.town-history__link {
	background: var(--town-history-blue);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-family: "Trebuchet MS", Verdana, sans-serif;
	font-weight: 800;
	margin: 1rem 0.5rem 0 0;
	padding: 0.72rem 1.05rem;
	text-decoration: none;
}

.town-history__link:hover,
.town-history__link:focus {
	background: var(--town-history-deep);
	color: #fff;
	text-decoration: none;
}

.town-history__link--secondary {
	background: var(--town-history-amber);
	color: var(--town-history-deep);
}

.town-history__source {
	color: rgba(20, 38, 58, 0.7);
	font-size: 0.92rem !important;
	margin: 1rem 0 0;
}

.town-history__closing {
	margin-bottom: clamp(2rem, 5vw, 5rem);
	text-align: center;
}

@media (max-width: 900px) {
	.town-history__intro,
	.town-history__origin-grid,
	.town-history__featured-grid,
	.town-history__entry-lead,
	.town-history__era {
		grid-template-columns: 1fr;
	}

	.town-history__memory-frame {
		max-width: 100%;
	}

	.town-history__timeline-spine {
		margin-left: 0.75rem;
		padding-left: 1.5rem;
	}

	.town-history__era::before {
		left: calc(-1.5rem - 0.67rem);
	}
}

@media (max-width: 600px) {
	.town-history__hero {
		min-height: 25rem;
	}

	.town-history__hero-inner {
		padding: 3rem 1.25rem;
	}

	.town-history__intro,
	.town-history__before,
	.town-history__memory,
	.town-history__timeline,
	.town-history__featured,
	.town-history__closing {
		margin-left: 0.8rem;
		margin-right: 0.8rem;
	}
}
