/*
 * Geographic mini-hubs. Editorial journal, not the CTC marketplace.
 * Each page sets data-place. Lodging notes share one coat: #F4EFE6.
 */

:root {
	--canvas: #fdfbf7;
	--ink: #0a192f;
	--highlight: #2c4a3e;
	--muted: #5c6570;
	--rule: #e4ddd2;
	--spotlight: #f4efe6;
	--display: "Playfair Display", "Iowan Old Style", Palatino, serif;
	--text: "Source Serif 4", "Source Serif Pro", Georgia, serif;
	--ui: "DM Sans", "Avenir Next", sans-serif;
	--measure: 45rem;
}

[data-place="jackson-hole"] {
	--canvas: #f9f9f9;
	--ink: #3a4146;
	--highlight: #4a5d4e;
	--muted: #5e666b;
	--rule: #e3e3e3;
}

[data-place="las-terrenas"] {
	--canvas: #fafafa;
	--ink: #1a4d4a;
	--display-color: #c87a53;
	--highlight: #1a4d4a;
	--muted: #5f6a68;
	--rule: #e6e2de;
}

[data-place="galapagos"] {
	--canvas: #f6f3ec;
	--ink: #1a3330;
	--highlight: #3e5c48;
	--muted: #5c6864;
	--rule: #e2ddd4;
}

[data-place="pipeline"] {
	--canvas: #f7f5f2;
	--ink: #1c1917;
	--highlight: #3f4f46;
	--muted: #5c564e;
	--rule: #e4dfd8;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--canvas);
	color: var(--ink);
	--display-color: var(--ink);
	font-family: var(--text);
	font-size: 1.125rem;
	line-height: 1.75;
}

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

a {
	color: var(--highlight);
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	background: var(--ink);
	color: var(--canvas);
	padding: 0.55rem 0.8rem;
	z-index: 5;
	font-family: var(--ui);
	text-decoration: none;
}

.skip-link:focus {
	top: 1rem;
}

.journal-bar,
.site-footer,
.studio {
	width: min(76rem, calc(100% - 2.5rem));
	margin-inline: auto;
}

.journal-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--ink);
}

.journal-name {
	font-family: var(--ui);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
}

.journal-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.85rem 1.15rem;
}

.journal-nav a {
	font-family: var(--ui);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
}

.hero-split {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	min-height: 78vh;
	border-bottom: 1px solid var(--rule);
}

.hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 2.5rem 3rem 3rem;
}

.micro {
	margin: 0 0 1rem;
	font-family: var(--ui);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--highlight);
}

h1 {
	margin: 0;
	font-family: var(--display);
	font-weight: 500;
	font-size: clamp(2.7rem, 4.6vw, 4.5rem);
	line-height: 0.98;
	letter-spacing: -0.02em;
	color: var(--display-color);
}

.deck {
	max-width: 34rem;
	margin: 1.25rem 0 0;
	font-family: var(--display);
	font-style: italic;
	font-weight: 500;
	font-size: 1.3rem;
	line-height: 1.4;
}

.hero-split figure {
	margin: 0;
	position: relative;
	min-height: 22rem;
}

.hero-split img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.78) contrast(0.96);
}

.hero-split figcaption {
	position: absolute;
	left: 0.8rem;
	bottom: 0.7rem;
	margin: 0;
	padding: 0.25rem 0.4rem;
	background: rgba(253, 251, 247, 0.88);
	font-family: var(--ui);
	font-size: 0.65rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink);
}

.read {
	width: min(76rem, calc(100% - 2.5rem));
	margin: 3.2rem auto 1rem;
	display: grid;
	grid-template-columns: minmax(0, var(--measure)) 13.5rem;
	gap: 3rem;
	justify-content: center;
	align-items: start;
}

.article p {
	margin: 1.15rem 0 0;
}

.guide-title {
	margin: 0;
	font-family: var(--display);
	font-size: 1.7rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.staff {
	margin: 0.8rem 0 0;
	font-family: var(--ui);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.article ul,
.article ol {
	margin: 1rem 0 0;
	padding-left: 1.2rem;
}

.article li {
	margin-top: 0.7rem;
}

.article li strong {
	font-family: var(--display);
	font-weight: 500;
}

h2 {
	margin: 2.5rem 0 0;
	font-family: var(--display);
	font-weight: 500;
	font-size: 2rem;
	line-height: 1.15;
	color: var(--display-color);
}

h3 {
	margin: 1.6rem 0 0;
	font-family: var(--display);
	font-weight: 500;
	font-size: 1.35rem;
}

.margin-notes {
	position: sticky;
	top: 1.5rem;
}

.factoid {
	margin: 0 0 1.6rem;
	padding-top: 0.7rem;
	border-top: 1px solid var(--ink);
}

.factoid h2 {
	margin: 0 0 0.45rem;
	font-family: var(--ui);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.factoid p,
.factoid li {
	font-size: 0.92rem;
	line-height: 1.45;
}

.factoid ol {
	margin: 0;
	padding-left: 1.1rem;
}

.factoid li + li {
	margin-top: 0.45rem;
}

.spotlight {
	margin: 2.4rem 0 0.2rem;
	padding: 1.35rem 1.3rem 1.2rem;
	background: var(--spotlight);
}

.spotlight h2 {
	margin: 0;
	font-family: var(--ui);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.spotlight p {
	margin: 0.85rem 0 0;
}

.spotlight .cta {
	display: inline-block;
	margin-top: 1.1rem;
	font-family: var(--ui);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	border-bottom: 1px solid var(--highlight);
	padding-bottom: 0.15rem;
}

.spotlight .fine {
	margin: 0.9rem 0 0;
	font-family: var(--ui);
	font-size: 0.75rem;
	line-height: 1.45;
	letter-spacing: 0.01em;
	text-transform: none;
	color: var(--muted);
}

.pipeline {
	width: min(var(--measure), calc(100% - 2.5rem));
	margin: 2.8rem auto 1rem;
}

.pipeline .deck {
	max-width: none;
}

.pipeline.essay {
	width: min(78rem, calc(100% - 2.5rem));
}

.pipeline.essay > .micro,
.pipeline.essay > h1,
.pipeline.essay > .deck,
.pipeline.essay > .status-row,
.pipeline.essay > section {
	max-width: var(--measure);
}

.essay-photo {
	margin: 1.85rem 0 0 11%;
}

.essay-photo img {
	display: block;
	width: 100%;
	height: min(62vh, 34rem);
	object-fit: cover;
	object-position: center 58%;
	filter: saturate(0.78) contrast(0.96);
}

.essay-photo figcaption {
	margin: 0.5rem 0 0;
	font-family: var(--ui);
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.essay-photo figcaption a {
	color: inherit;
}

.glance {
	margin: 1.15rem 0 0.35rem 11%;
	padding: 0.95rem 0 1.05rem;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.1rem 1.75rem;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}

.glance dt {
	font-family: var(--ui);
	font-size: 0.64rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

.glance dd {
	margin: 0.4rem 0 0;
	font-family: var(--display);
	font-size: 1.2rem;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--display-color);
}

.status-row {
	margin: 1.4rem 0 0;
	font-family: var(--ui);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--highlight);
}

.coords {
	margin: 1rem 0 0;
	padding-left: 1.15rem;
}

.coords li {
	margin-top: 0.75rem;
}

.coords strong {
	font-family: var(--ui);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.widget-slot {
	margin-top: 1.4rem;
	min-height: 7.5rem;
	padding: 1.75rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border: 1px solid #c8c4bc;
	background: transparent;
}

.widget-slot p {
	margin: 0;
	max-width: 28rem;
	font-family: var(--ui);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.65;
	color: var(--muted);
}

.owner-box .cta {
	display: inline-block;
	margin-top: 1.1rem;
	font-family: var(--ui);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	border-bottom: 1px solid var(--highlight);
	padding-bottom: 0.15rem;
}

.owner-box {
	margin-top: 1.6rem;
}

.site-footer {
	margin-top: 3.5rem;
	padding: 1.3rem 0 2.6rem;
	border-top: 1px solid var(--ink);
	font-family: var(--ui);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: var(--muted);
}

.site-footer h2 {
	margin: 0;
	font-family: var(--ui);
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink);
}

.site-footer p {
	max-width: 40rem;
	margin: 0.55rem 0 0;
	line-height: 1.5;
}

a:focus-visible {
	outline: 2px solid var(--highlight);
	outline-offset: 3px;
}

.studio {
	padding: 3rem 0 4rem;
}

.studio h1 {
	font-size: clamp(2.4rem, 5vw, 4rem);
}

.studio-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-top: 2rem;
}

.studio ul {
	columns: 2;
	max-width: 40rem;
	margin: 1rem 0 0;
	padding-left: 1.1rem;
	font-family: var(--ui);
	font-size: 0.85rem;
	line-height: 1.7;
}

.studio-card {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 16rem;
	padding: 1.2rem;
	text-decoration: none;
	color: var(--ink);
	background: var(--canvas);
	border-top: 6px solid var(--highlight);
}

.studio-card strong {
	display: block;
	margin-top: 1.2rem;
	font-family: var(--display);
	font-size: 1.7rem;
	font-weight: 500;
	line-height: 1.1;
}

.studio-card span {
	display: block;
	margin-top: 0.55rem;
	font-family: var(--text);
	font-size: 1rem;
	line-height: 1.45;
}

[data-swatch="dorado"] {
	--canvas: #fdfbf7;
	--ink: #0a192f;
	--highlight: #2c4a3e;
}

[data-swatch="las-terrenas"] {
	--canvas: #fafafa;
	--ink: #1a4d4a;
	--highlight: #c87a53;
}

[data-swatch="jackson-hole"] {
	--canvas: #f9f9f9;
	--ink: #3a4146;
	--highlight: #4a5d4e;
}

[data-swatch="galapagos"] {
	--canvas: #f6f3ec;
	--ink: #1a3330;
	--highlight: #3e5c48;
}

.directory,
.about-page,
.checklist-page {
	width: min(var(--measure), calc(100% - 2.5rem));
	margin: 2.5rem auto 1rem;
}

.entry {
	margin: 0;
	padding: 1.35rem 0;
	border-top: 1px solid var(--rule);
}

.entry h2 {
	margin: 0.3rem 0 0;
	font-size: 1.7rem;
}

.entry dl {
	display: grid;
	gap: 0.45rem;
	margin: 0.8rem 0 0;
}

.entry dl > div {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: 0.8rem;
	align-items: baseline;
}

.entry dt {
	font-family: var(--ui);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.entry dd {
	margin: 0;
}

.faq {
	margin-top: 2.6rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--ink);
}

.faq h2 {
	font-size: 1.7rem;
}

.faq h3 {
	margin-top: 1.4rem;
	font-family: var(--text);
	font-style: italic;
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--ink);
}

.endorse {
	margin-top: 2rem;
	font-size: 1.08rem;
}

.checklist-page ol {
	margin: 1.2rem 0 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.checklist-page li {
	counter-increment: step;
	margin: 0;
	padding: 0.85rem 0 0.85rem 2.6rem;
	border-top: 1px solid var(--rule);
	position: relative;
}

.checklist-page li::before {
	content: counter(step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 0.95rem;
	font-family: var(--ui);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: var(--highlight);
}

.download {
	display: inline-block;
	margin-top: 1.4rem;
	font-family: var(--ui);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	border-bottom: 1px solid var(--highlight);
	padding-bottom: 0.15rem;
}

@media print {
	.journal-bar,
	.skip-link,
	.download,
	.site-footer {
		display: none;
	}

	body {
		background: #fff;
	}

	.checklist-page {
		width: auto;
		margin: 0;
	}
}

@media (max-width: 860px) {
	.hero-split,
	.read,
	.studio-grid {
		grid-template-columns: 1fr;
	}

	.hero-copy {
		padding: 1.6rem 1.25rem 1.4rem;
	}

	.hero-split figure {
		min-height: 16rem;
		max-height: 20rem;
	}

	.hero-split img {
		max-height: 20rem;
	}

	.margin-notes {
		position: static;
	}

	.essay-photo,
	.glance {
		margin-left: 0;
	}

	.essay-photo img {
		height: 16rem;
	}

	.glance {
		grid-template-columns: 1fr;
		gap: 0.85rem;
	}

	.journal-bar,
	.site-footer,
	.studio,
	.read {
		width: min(100% - 2rem, 76rem);
	}
}
