/*
Theme Name: The Traveller Duo — Edition 2
Theme URI: https://thetravellerduo.com/
Author: The Traveller Duo
Description: Editorial travel publication theme. Destination (country → region) and travel-style browsing, long-form reading layout, self-hosted fonts, WebP images and almost no JavaScript.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: traveller-duo
*/

/* =========================================================
   1. Fonts (self-hosted, latin subset)
   ========================================================= */
@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-normal.woff2") format("woff2");
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-italic.woff2") format("woff2");
	font-weight: 400 600;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Instrument Sans";
	src: url("assets/fonts/instrument-sans-normal.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
/* Metric-matched fallbacks keep text from jumping when the web fonts arrive. */
@font-face {
	font-family: "Newsreader Fallback";
	src: local("Georgia");
	size-adjust: 96%;
	ascent-override: 92%;
	descent-override: 26%;
}
@font-face {
	font-family: "Instrument Fallback";
	src: local("Arial");
	size-adjust: 98%;
	ascent-override: 96%;
	descent-override: 25%;
}

/* =========================================================
   2. Design tokens
   ========================================================= */
:root {
	/* Colour — warm paper, charcoal ink, one earthy accent. */
	--paper: #f7f3ec;
	--paper-2: #efe8dc;
	--paper-3: #e5dbc9;
	--ink: #211f1b;
	--ink-2: #45403a;
	--muted: #6a645b;
	--rule: #ddd4c4;
	--rule-strong: #c4b8a3;
	--clay: #9a4728;
	--clay-deep: #7c3820;
	--moss: #4b5a3d;
	--night: #1b1a17;
	--night-2: #26241f;
	--night-ink: #eee7db;
	--night-muted: #b3aa9b;
	--focus: #c0622f;

	/* Type */
	--serif: "Newsreader", "Newsreader Fallback", Georgia, "Times New Roman", serif;
	--sans: "Instrument Sans", "Instrument Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--fs-xs: 0.78rem;
	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-md: 1.125rem;
	--fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	--fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
	--fs-2xl: clamp(1.875rem, 1.4rem + 2vw, 2.875rem);
	--fs-3xl: clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem);
	--fs-prose: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);

	/* Space */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4.5rem;
	--space-9: clamp(4rem, 3rem + 5vw, 7.5rem);

	/* Layout */
	--wrap: 80rem;
	--wrap-narrow: 52rem;
	--measure: 41.5rem;
	--gutter: clamp(1rem, 0.6rem + 2.2vw, 2.5rem);
	--header-h: 4rem;
	--radius: 3px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* =========================================================
   3. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: var(--fs-base);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--clay); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--space-7) 0; }
::selection { background: #e9c9b4; color: var(--ink); }

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.012em;
	margin: 0;
	text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.screen-reader-text, .sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	left: var(--space-4);
	top: -100px;
	z-index: 1000;
	background: var(--ink);
	color: var(--paper);
	padding: var(--space-3) var(--space-4);
	text-decoration: none;
}
.skip-link:focus { top: var(--space-4); color: var(--paper); }

/* =========================================================
   4. Layout primitives
   ========================================================= */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--space-9); }
.section + .section { padding-top: 0; }
.section--sand { background: var(--paper-2); }
.section--sand + .section, .section + .section--sand { padding-top: var(--space-9); }
.section--night { background: var(--night); color: var(--night-ink); }
.section--night + .section { padding-top: var(--space-9); }

.kicker {
	display: inline-block;
	font-family: var(--sans);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--clay);
	text-decoration: none;
}
a.kicker:hover { color: var(--clay-deep); text-decoration: underline; }
.meta {
	font-family: var(--sans);
	font-size: var(--fs-sm);
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 0.55em;
}
.meta > * + *::before { content: "·"; margin-right: 0.55em; color: var(--rule-strong); }
.meta a { color: inherit; text-decoration: none; }
.meta a:hover { color: var(--clay); text-decoration: underline; }

.section-head {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: var(--space-3) var(--space-5);
	padding-bottom: var(--space-4);
	margin-bottom: var(--space-6);
	border-bottom: 1px solid var(--ink);
}
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { grid-column: 1 / -1; color: var(--ink-2); font-family: var(--serif); font-size: var(--fs-md); max-width: 40rem; }
.section-head .kicker { grid-column: 1 / -1; margin-bottom: calc(-1 * var(--space-2)); }
.more-link {
	font-family: var(--sans);
	font-size: var(--fs-sm);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}
.more-link::after { content: "→"; transition: transform .25s var(--ease); }
.more-link:hover::after { transform: translateX(3px); }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 2.875rem;
	padding: 0.7em 1.35em;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--paper);
	font-family: var(--sans);
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--clay-deep); border-color: var(--clay-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Media frame: fixed ratio, no layout shift. */
.frame {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--paper-3);
	aspect-ratio: 3 / 2;
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a:hover > .frame img, .frame:hover img { transform: scale(1.025); }
.frame--square { aspect-ratio: 1; }
.frame--portrait { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 16 / 9; }
@media (prefers-reduced-motion: reduce) {
	.frame img { transition: none; }
	a:hover > .frame img, .frame:hover img { transform: none; }
}

/* =========================================================
   5. Header
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--paper) 94%, transparent);
	backdrop-filter: saturate(1.2) blur(10px);
	-webkit-backdrop-filter: saturate(1.2) blur(10px);
	border-bottom: 1px solid var(--rule);
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--space-5);
	height: var(--header-h);
}
.wordmark {
	display: inline-flex;
	align-items: baseline;
	gap: 0.3em;
	font-family: var(--serif);
	font-size: 1.45rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
	margin-right: auto;
}
.wordmark em { font-style: italic; color: var(--clay); }
.wordmark:hover { color: var(--ink); }
.custom-logo { max-height: 2.5rem; width: auto; }

.primary-nav { display: none; }
.primary-nav > ul { display: flex; align-items: center; gap: var(--space-1); list-style: none; }
.nav-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.55rem 0.8rem;
	border: 0;
	background: none;
	font-family: var(--sans);
	font-size: 0.94rem;
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
	border-radius: var(--radius);
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--clay); }
.nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.5em; }
.nav-link svg { width: 0.7rem; height: 0.7rem; transition: transform .2s; }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }

.header-tools { display: flex; align-items: center; gap: var(--space-2); }
.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45em;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 0.6rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: none;
	color: var(--ink);
	font-family: var(--sans);
	font-size: var(--fs-sm);
	font-weight: 500;
}
.icon-btn:hover { color: var(--clay); }
.icon-btn svg { width: 1.2rem; height: 1.2rem; flex: none; }
.search-btn { border-color: var(--rule); }
.search-btn .label { display: none; }

/* Mega panels */
.mega {
	position: absolute;
	left: 0; right: 0;
	top: 100%;
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
	box-shadow: 0 24px 40px -24px rgba(33, 31, 27, .25);
	padding-block: var(--space-6) var(--space-7);
}
.mega[hidden] { display: none; }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.mega__label {
	font-family: var(--sans);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--muted);
	padding-bottom: var(--space-2);
	margin-bottom: var(--space-3);
	border-bottom: 1px solid var(--rule);
}
.mega__label a { color: var(--ink); text-decoration: none; }
.mega__label a:hover { color: var(--clay); }
.mega ul { list-style: none; display: grid; gap: 0.15rem; }
.mega li a {
	display: flex;
	justify-content: space-between;
	gap: var(--space-3);
	padding: 0.3rem 0;
	font-family: var(--serif);
	font-size: 1.06rem;
	text-decoration: none;
}
.mega li a span { font-family: var(--sans); font-size: var(--fs-xs); color: var(--muted); }
.mega__foot { margin-top: var(--space-5); display: flex; gap: var(--space-5); flex-wrap: wrap; }

/* Mobile drawer */
.drawer {
	position: fixed;
	inset: 0;
	z-index: 80;
	background: var(--paper);
	overflow-y: auto;
	padding: var(--space-4) var(--gutter) var(--space-8);
}
.drawer[hidden] { display: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: calc(var(--header-h) - var(--space-4)); margin-bottom: var(--space-5); }
.drawer details { border-bottom: 1px solid var(--rule); }
.drawer summary, .drawer > nav > a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--space-4) 0;
	font-family: var(--serif);
	font-size: 1.6rem;
	list-style: none;
	cursor: pointer;
	text-decoration: none;
}
.drawer > nav > a { border-bottom: 1px solid var(--rule); }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; font-family: var(--sans); font-size: 1.4rem; color: var(--muted); }
.drawer details[open] summary::after { content: "–"; }
.drawer details ul { list-style: none; padding-bottom: var(--space-4); columns: 2; column-gap: var(--space-5); }
.drawer details li a { display: block; padding: 0.35rem 0; text-decoration: none; break-inside: avoid; }
.drawer details li a.is-country { font-weight: 600; }

@media (min-width: 62rem) {
	.primary-nav { display: block; }
	.menu-btn { display: none; }
	.search-btn .label { display: inline; }
	.search-btn { padding: 0 0.9rem; }
}

/* =========================================================
   6. Search overlay
   ========================================================= */
.search-panel {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(27, 26, 23, .55);
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: clamp(0rem, 6vh, 5rem) 0 0;
}
.search-panel[hidden] { display: none; }
.search-panel__box {
	width: min(100%, 46rem);
	max-height: 100%;
	overflow-y: auto;
	background: var(--paper);
	padding: var(--space-5) var(--gutter) var(--space-6);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4);
}
@media (max-width: 46rem) { .search-panel { padding: 0; } .search-panel__box { min-height: 100%; } }
.search-panel__bar { display: flex; align-items: center; gap: var(--space-3); border-bottom: 2px solid var(--ink); }
.search-panel__bar svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--muted); }
.search-panel input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	background: none;
	padding: var(--space-4) 0;
	font-family: var(--serif);
	font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
	outline: none;
}
.search-panel input::placeholder { color: #9a9286; }
.search-results { margin-top: var(--space-5); }
.search-results h3, .search-label {
	font-family: var(--sans);
	font-size: var(--fs-xs);
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 600;
	margin: var(--space-5) 0 var(--space-2);
}
.search-results ul { list-style: none; }
.sr-item {
	display: grid;
	grid-template-columns: 4rem 1fr;
	gap: var(--space-4);
	align-items: center;
	padding: var(--space-3) 0;
	border-bottom: 1px solid var(--rule);
	text-decoration: none;
}
.sr-item .frame { aspect-ratio: 4/3; }
.sr-item strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; line-height: 1.25; }
.sr-item small { color: var(--muted); font-size: var(--fs-xs); }
.sr-item[aria-selected="true"], .sr-item:hover { color: var(--clay); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	padding: 0.4rem 0.8rem;
	border: 1px solid var(--rule-strong);
	border-radius: 999px;
	font-size: var(--fs-sm);
	text-decoration: none;
	background: transparent;
	line-height: 1.3;
}
.chip span { color: var(--muted); font-size: var(--fs-xs); }
.chip:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.chip.is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.is-current span { color: var(--night-muted); }

/* =========================================================
   7. Homepage — cover
   ========================================================= */
.cover {
	position: relative;
	min-height: min(88svh, 52rem);
	display: grid;
	align-items: end;
	color: #fff;
	background: var(--night);
	isolation: isolate;
}
.cover__media { position: absolute; inset: 0; z-index: -2; }
.cover__media img { width: 100%; height: 100%; object-fit: cover; }
.cover::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(20, 18, 15, .35) 0%, rgba(20, 18, 15, 0) 28%),
		linear-gradient(0deg, rgba(20, 18, 15, .82) 0%, rgba(20, 18, 15, .45) 38%, rgba(20, 18, 15, 0) 70%);
}
.cover__body { padding-block: var(--space-8) var(--space-7); display: grid; gap: var(--space-5); }
.cover .kicker { color: #f3c9ad; }
.cover h1 {
	font-size: var(--fs-3xl);
	font-weight: 400;
	max-width: 15ch;
	letter-spacing: -0.02em;
	line-height: 1.04;
}
.cover h1 em { font-style: italic; }
.cover__dek { max-width: 34rem; font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.45; color: rgba(255, 255, 255, .88); }
.cover-search {
	display: flex;
	width: min(100%, 34rem);
	background: var(--paper);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
}
.cover-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 0.95rem 1.1rem;
	background: none;
	color: var(--ink);
	font-size: 1rem;
	outline: none;
}
.cover-search button { border: 0; background: var(--clay); color: #fff; padding: 0 1.25rem; font-weight: 600; font-size: var(--fs-sm); }
.cover-search button:hover { background: var(--clay-deep); }
.cover-search:focus-within { outline: 2px solid #f3c9ad; outline-offset: 2px; }
.cover__try { font-size: var(--fs-sm); color: rgba(255, 255, 255, .78); }
.cover__try a { color: #fff; }
.cover__caption {
	justify-self: end;
	max-width: 22rem;
	font-size: var(--fs-xs);
	color: rgba(255, 255, 255, .72);
	text-align: right;
	line-height: 1.45;
}
.cover__caption a { color: #fff; }
@media (min-width: 62rem) {
	.cover__body { grid-template-columns: 1fr auto; align-items: end; }
	.cover__body > :not(.cover__caption) { grid-column: 1; }
	.cover__caption { grid-column: 2; grid-row: 1 / span 5; align-self: end; }
}

/* =========================================================
   8. Homepage — sections
   ========================================================= */

/* Intro line under the cover */
.intro-line { padding-block: var(--space-7); border-bottom: 1px solid var(--rule); }
.intro-line p { font-family: var(--serif); font-size: var(--fs-xl); line-height: 1.35; max-width: 50rem; color: var(--ink-2); }
.intro-line strong { font-weight: 500; color: var(--ink); }
.intro-line a { color: var(--ink); }

/* Picks: one lead + three stacked */
.picks { display: grid; gap: var(--space-6); }
.picks__lead h3 { font-size: var(--fs-2xl); margin: var(--space-3) 0; }
.picks__lead h3 a, .stack h3 a, .story h3 a, .row-item h3 a { text-decoration: none; }
.picks__lead h3 a:hover, .stack h3 a:hover, .story h3 a:hover, .row-item h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.picks__lead .dek { font-family: var(--serif); font-size: var(--fs-md); color: var(--ink-2); margin-bottom: var(--space-3); max-width: 38rem; }
.picks__lead .frame { margin-bottom: var(--space-4); }
.stack { display: grid; align-content: start; }
.stack > article { display: grid; grid-template-columns: 1fr 7.5rem; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--rule); }
.stack > article:first-child { padding-top: 0; }
.stack h3 { font-size: 1.3rem; margin: var(--space-2) 0; line-height: 1.2; }
.stack .frame { aspect-ratio: 1; }
@media (min-width: 62rem) {
	.picks { grid-template-columns: 1.55fr 1fr; gap: var(--space-7); }
	.stack > article { grid-template-columns: 1fr 8.5rem; }
}

/* Atlas: Nepal + India panels, then the rest typeset as an index */
.atlas-major { display: grid; gap: var(--space-6); }
.country-panel { display: grid; gap: var(--space-4); align-content: start; }
.country-panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.country-panel h3 { font-size: var(--fs-2xl); }
.country-panel h3 a { text-decoration: none; }
.country-panel__count { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.country-panel p { font-family: var(--serif); font-size: var(--fs-md); color: var(--ink-2); }
.region-list { list-style: none; border-top: 1px solid var(--rule); }
.region-list a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--space-4);
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--rule);
	font-family: var(--serif);
	font-size: 1.12rem;
	text-decoration: none;
}
.region-list a span { font-family: var(--sans); font-size: var(--fs-xs); color: var(--muted); }
.region-list a:hover span { color: var(--clay); }
@media (min-width: 48rem) { .atlas-major { grid-template-columns: 1fr 1fr; gap: var(--space-7); } }

.atlas-rest { margin-top: var(--space-8); display: grid; gap: var(--space-5) var(--space-6); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.atlas-rest h3 {
	font-family: var(--sans);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: var(--space-2);
}
.atlas-rest ul { list-style: none; }
.atlas-rest a { display: inline-flex; gap: 0.4em; align-items: baseline; padding: 0.2rem 0; font-family: var(--serif); font-size: 1.12rem; text-decoration: none; }
.atlas-rest a span { font-family: var(--sans); font-size: var(--fs-xs); color: var(--muted); }

/* Planning: numbered guides + style index */
.plan { display: grid; gap: var(--space-7); }
.guide-list { list-style: none; counter-reset: guide; border-top: 1px solid var(--ink); }
.guide-list li { counter-increment: guide; }
.guide-list a {
	display: grid;
	grid-template-columns: 2.25rem 1fr 4.5rem;
	gap: var(--space-4);
	align-items: center;
	padding: var(--space-4) 0;
	border-bottom: 1px solid var(--rule);
	text-decoration: none;
}
.guide-list a::before {
	content: counter(guide, decimal-leading-zero);
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.25rem;
	color: var(--clay);
}
.guide-list strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.22rem; line-height: 1.22; margin-bottom: 0.2rem; }
.guide-list .frame { aspect-ratio: 1; }
.guide-list a:hover strong { color: var(--clay); }
.style-index { list-style: none; border-top: 1px solid var(--ink); }
.style-index a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--space-4);
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--rule);
	font-family: var(--serif);
	font-size: 1.3rem;
	text-decoration: none;
}
.style-index a span { font-family: var(--sans); font-size: var(--fs-xs); color: var(--muted); }
.plan__aside h3 {
	font-family: var(--sans);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	margin-bottom: var(--space-3);
}
@media (min-width: 62rem) { .plan { grid-template-columns: 1.6fr 1fr; gap: var(--space-8); } .guide-list a { grid-template-columns: 2.75rem 1fr 5.5rem; } }

/* Long read (night) */
.longread { display: grid; gap: var(--space-6); align-items: center; }
.longread .frame { background: var(--night-2); }
.longread .kicker { color: #e7a986; }
.longread h2 { font-size: var(--fs-2xl); line-height: 1.1; margin: var(--space-3) 0 var(--space-4); }
.longread h2 a { text-decoration: none; }
.longread h2 a:hover { color: #f3c9ad; }
.longread p { font-family: var(--serif); font-size: var(--fs-md); color: var(--night-ink); opacity: .88; max-width: 34rem; }
.longread .meta { color: var(--night-muted); margin-top: var(--space-4); }
.longread .btn { margin-top: var(--space-5); background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.longread .btn:hover { background: #fff; color: var(--night); }
@media (min-width: 62rem) { .longread { grid-template-columns: 1.15fr 1fr; gap: var(--space-8); } }

/* Region spotlight */
.spotlight__intro { display: grid; gap: var(--space-4); margin-bottom: var(--space-6); }
.spotlight__intro p { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.45; color: var(--ink-2); max-width: 44rem; }
@media (min-width: 62rem) { .spotlight__intro { grid-template-columns: 1fr 1.4fr; align-items: end; gap: var(--space-8); } }

/* Story rows (the one place we use a card row) */
.row { display: grid; gap: var(--space-6) var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.row-item h3 { font-size: 1.28rem; line-height: 1.2; margin: var(--space-3) 0 var(--space-2); }
.row-item .frame { margin-bottom: var(--space-3); }

/* Latest: text-led two-column list */
.latest-list { list-style: none; display: grid; column-gap: var(--space-7); }
.latest-list li { border-bottom: 1px solid var(--rule); }
.latest-list a { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--space-4); padding: var(--space-4) 0; text-decoration: none; }
.latest-list time { font-size: var(--fs-xs); color: var(--muted); padding-top: 0.3rem; text-transform: uppercase; letter-spacing: .06em; }
.latest-list strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.25; }
.latest-list small { display: block; margin-top: 0.3rem; color: var(--muted); font-size: var(--fs-xs); }
.latest-list a:hover strong { color: var(--clay); }
@media (min-width: 48rem) { .latest-list { grid-template-columns: 1fr 1fr; } }

/* Newsletter */
.letter {
	display: grid;
	gap: var(--space-6);
	align-items: center;
	padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
	background: var(--paper-2);
	border: 1px solid var(--rule);
}
.letter h2 { font-size: var(--fs-2xl); margin: var(--space-2) 0 var(--space-3); }
.letter p { font-family: var(--serif); font-size: var(--fs-md); color: var(--ink-2); max-width: 32rem; }
.letter-form { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.letter-form input[type="email"] {
	flex: 1 1 15rem;
	min-height: 2.875rem;
	padding: 0 1rem;
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
	background: var(--paper);
}
.letter-form input[type="email"]:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(154, 71, 40, .18); }
.letter-note { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--muted); min-height: 1.4em; }
.letter-note.is-error { color: #a12a1a; }
.hp-field { position: absolute; left: -9999px; }
.letter .frame { aspect-ratio: 4 / 3; }
@media (min-width: 62rem) { .letter { grid-template-columns: 1.1fr 1fr; gap: var(--space-8); } }

/* =========================================================
   9. Archive / listing pages
   ========================================================= */
.page-head { padding-block: var(--space-7) var(--space-6); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: var(--fs-3xl); margin: var(--space-3) 0; max-width: 20ch; }
.page-head__desc { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.45; color: var(--ink-2); max-width: 44rem; }
.page-head__desc p + p { margin-top: var(--space-3); }
.page-head .meta { margin-top: var(--space-4); }
.page-head .chips { margin-top: var(--space-5); }
.page-head--image { position: relative; color: #fff; border: 0; padding-top: clamp(8rem, 30vh, 16rem); background: var(--night); isolation: isolate; }
.page-head--image .page-head__media { position: absolute; inset: 0; z-index: -2; }
.page-head--image .page-head__media img { width: 100%; height: 100%; object-fit: cover; }
.page-head--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20,18,15,.85), rgba(20,18,15,.25) 70%, rgba(20,18,15,.1)); }
.page-head--image .kicker { color: #f3c9ad; }
.page-head--image .page-head__desc, .page-head--image .meta { color: rgba(255,255,255,.86); }
.page-head--image .crumbs, .page-head--image .crumbs a { color: rgba(255,255,255,.8); }
.page-head--image .chip { color: #fff; border-color: rgba(255,255,255,.45); }
.page-head--image .chip span { color: rgba(255,255,255,.7); }
.page-head--image .chip:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

.crumbs { font-size: var(--fs-sm); color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.3em 0.5em; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--clay); text-decoration: underline; }
.crumbs .sep { color: var(--rule-strong); }

.facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
	gap: 0;
	border-top: 1px solid var(--ink);
}
.facts div { padding: var(--space-4) var(--space-4) var(--space-4) 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0.25rem 0 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.3; }
.facts-note { margin-top: var(--space-3); font-size: var(--fs-xs); color: var(--muted); }

.story-grid { display: grid; gap: var(--space-7) var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.story h3 { font-size: 1.35rem; line-height: 1.2; margin: var(--space-3) 0 var(--space-2); }
.story .frame { margin-bottom: var(--space-3); }
.story .excerpt { font-family: var(--serif); color: var(--ink-2); font-size: 1.02rem; line-height: 1.5; margin-bottom: var(--space-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story--feature { grid-column: 1 / -1; display: grid; gap: var(--space-5); align-items: center; padding-bottom: var(--space-7); border-bottom: 1px solid var(--rule); }
.story--feature h3 { font-size: var(--fs-2xl); }
.story--feature .excerpt { font-size: var(--fs-md); -webkit-line-clamp: 4; }
@media (min-width: 48rem) { .story--feature { grid-template-columns: 1.3fr 1fr; gap: var(--space-7); } .story--feature .frame { margin: 0; } }

.sub-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); margin: var(--space-8) 0 var(--space-5); padding-bottom: var(--space-3); border-bottom: 1px solid var(--ink); }
.sub-head h2 { font-size: var(--fs-xl); }

.pagination { margin-top: var(--space-8); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 2.75rem; height: 2.75rem; padding: 0 0.75rem;
	border: 1px solid var(--rule-strong); border-radius: var(--radius);
	text-decoration: none; font-size: var(--fs-sm);
}
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--ink); }
.pagination .dots { border: 0; }
.empty { padding: var(--space-8) 0; font-family: var(--serif); font-size: var(--fs-lg); color: var(--ink-2); }

/* =========================================================
   10. Single article
   ========================================================= */
.reading-progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 3px;
	z-index: 60;
	background: var(--clay);
	transform-origin: 0 50%;
	transform: scaleX(0);
	display: none;
}
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.reading-progress { display: block; animation: ttd-progress linear both; animation-timeline: scroll(root); }
	}
}
@keyframes ttd-progress { to { transform: scaleX(1); } }

.article-head { padding-block: var(--space-7) var(--space-6); text-align: left; }
.article-head .crumbs { margin-bottom: var(--space-5); }
.article-head h1 { font-size: var(--fs-3xl); line-height: 1.06; letter-spacing: -0.02em; margin: var(--space-3) 0 var(--space-4); }
.article-head .dek { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.45; color: var(--ink-2); max-width: 40rem; margin-bottom: var(--space-5); }
.byline { display: flex; align-items: center; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--rule); }
.byline img { width: 2.75rem; height: 2.75rem; border-radius: 50%; }
.byline strong { display: block; font-weight: 600; font-size: var(--fs-sm); }
.byline strong a { text-decoration: none; }

.lead-figure { margin: 0 auto var(--space-7); }
.lead-figure img { width: 100%; }
.lead-figure--column { width: min(100% - 2 * var(--gutter), 46rem); }
.lead-figure--wide { width: min(100%, 76rem); }
@media (min-width: 76rem) { .lead-figure--wide { width: min(100% - 2 * var(--gutter), 76rem); } }
.lead-figure figcaption, .prose figcaption { margin-top: var(--space-2); font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; }
.lead-figure--column figcaption { padding-inline: 0; }

.article-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	width: min(100% - 2 * var(--gutter), var(--measure));
	margin-inline: auto;
}
.toc-desktop { display: none; }
@media (min-width: 75rem) {
	.article-body {
		width: min(100% - 2 * var(--gutter), var(--wrap));
		grid-template-columns: 1fr minmax(0, var(--measure)) 1fr;
		column-gap: var(--space-7);
	}
	.article-body > * { grid-column: 2; }
	.article-body > .toc-desktop { grid-column: 1; grid-row: 1 / span 20; display: block; justify-self: end; width: 100%; max-width: 15rem; }
	.toc-mobile { display: none; }
}
.toc-desktop nav { position: sticky; top: calc(var(--header-h) + var(--space-6)); max-height: calc(100vh - var(--header-h) - var(--space-8)); overflow-y: auto; padding-right: var(--space-2); }
.toc-title { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-3); }
.toc ol { list-style: none; border-left: 1px solid var(--rule); }
.toc li a {
	display: block;
	padding: 0.35rem 0 0.35rem var(--space-4);
	margin-left: -1px;
	border-left: 2px solid transparent;
	font-size: var(--fs-sm);
	line-height: 1.35;
	color: var(--ink-2);
	text-decoration: none;
}
.toc li.l3 a { padding-left: calc(var(--space-4) + 0.8rem); font-size: 0.82rem; color: var(--muted); }
.toc li a:hover { color: var(--clay); }
.toc li a.is-active { border-left-color: var(--clay); color: var(--ink); font-weight: 600; }
.toc-mobile { margin-bottom: var(--space-6); border: 1px solid var(--rule); background: var(--paper-2); }
.toc-mobile summary { padding: var(--space-4); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; display: flex; justify-content: space-between; list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; color: var(--muted); }
.toc-mobile[open] summary::after { content: "–"; }
.toc-mobile ol { margin: 0 var(--space-4) var(--space-4); }

/* At a glance (trip details) */
.glance { margin-bottom: var(--space-7); background: var(--paper-2); border-top: 2px solid var(--ink); padding: var(--space-4) var(--space-5) var(--space-2); }
.glance h2 { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; margin-bottom: var(--space-2); }
.glance dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); margin: 0; }
.glance div { padding: var(--space-3) var(--space-3) var(--space-3) 0; }
.glance dt { font-size: var(--fs-xs); color: var(--muted); }
.glance dd { margin: 0.15rem 0 0; font-family: var(--serif); font-size: 1.08rem; }

/* Prose */
.prose { font-family: var(--serif); font-size: var(--fs-prose); line-height: 1.7; color: var(--ink); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose > p:first-child::first-letter, .prose.has-dropcap > p:first-of-type::first-letter {
	float: left;
	font-size: 3.6em;
	line-height: 0.82;
	padding: 0.06em 0.09em 0 0;
	color: var(--clay);
	font-weight: 500;
}
.prose h2 { font-size: var(--fs-xl); line-height: 1.18; margin-top: 2.2em; margin-bottom: -0.2em; }
.prose h3 { font-size: 1.32em; line-height: 1.25; margin-top: 1.8em; margin-bottom: -0.3em; }
.prose h4 { font-family: var(--sans); font-size: 0.85em; font-weight: 700; letter-spacing: .03em; margin-top: 1.6em; margin-bottom: -0.4em; }
.prose h2 strong, .prose h3 strong, .prose h4 strong { font-weight: inherit; }
.prose a { color: var(--clay-deep); text-decoration: underline; text-decoration-color: rgba(154, 71, 40, .35); text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--clay); }
.prose img { margin-inline: auto; }
.prose figure { margin-inline: 0; }
.prose .wp-block-image, .prose figure.wp-caption { margin-block: 2em; }
.prose .alignwide, .prose .alignfull { margin-inline: calc(-1 * min(6rem, (100vw - 100%) / 2 - var(--gutter))); max-width: none; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignleft, .prose .alignright { max-width: 50%; margin-bottom: 1em; }
.prose .alignleft { float: left; margin-right: 1.5em; }
.prose .alignright { float: right; margin-left: 1.5em; }
@media (max-width: 36rem) { .prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin-inline: 0; } }
.prose blockquote, .prose .wp-block-quote {
	margin: 2em 0;
	padding: 0 0 0 1.25em;
	border-left: 3px solid var(--clay);
	font-style: italic;
	font-size: 1.08em;
	color: var(--ink-2);
}
.prose blockquote cite { display: block; margin-top: 0.6em; font-family: var(--sans); font-style: normal; font-size: var(--fs-sm); color: var(--muted); }
.prose .wp-block-pullquote, .prose .is-style-ttd-pull {
	margin: 2.4em 0;
	padding: 1.2em 0;
	border: 0;
	border-top: 1px solid var(--ink);
	border-bottom: 1px solid var(--ink);
	text-align: left;
	font-size: 1.45em;
	line-height: 1.3;
	font-style: italic;
	color: var(--ink);
}
.prose .wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; font-size: inherit; }
.prose hr, .prose .wp-block-separator { border: 0; border-top: 1px solid var(--rule); margin: 2.5em auto; width: 100%; }
.prose .wp-block-separator.is-style-dots { border: 0; text-align: center; }
.prose .wp-block-separator.is-style-dots::before { content: "· · ·"; color: var(--muted); letter-spacing: 1em; }

/* Tables scroll inside their own box on small screens. */
.prose .wp-block-table, .prose .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-block: 2em; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.82em; line-height: 1.45; }
.prose th, .prose td { padding: 0.65em 0.8em; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose thead th, .prose tr:first-child th { border-bottom: 2px solid var(--ink); font-weight: 700; }
.prose tbody tr:nth-child(even) { background: rgba(229, 219, 201, .35); }
.prose .wp-block-table figcaption { text-align: left; }

/* Galleries */
.prose .wp-block-gallery { gap: 0.5rem; }
.prose .wp-block-gallery figure { margin: 0; }

/* Embeds keep their ratio. */
.prose .wp-block-embed__wrapper { position: relative; }
.prose iframe { width: 100%; border: 0; }
.prose .wp-has-aspect-ratio iframe { position: absolute; inset: 0; height: 100%; }

/* AdSense units already in posts: give them room and a quiet label. */
.prose ins.adsbygoogle { display: block; margin: 2.5em auto; }
.prose ins.adsbygoogle[data-ad-status="filled"]::before, .prose ins.adsbygoogle::before { content: none; }

/* Info boxes — available as block styles on the Group block. */
.prose .is-style-ttd-tip, .prose .is-style-ttd-note, .prose .is-style-ttd-warning, .prose .is-style-ttd-plan {
	position: relative;
	margin-block: 2em;
	padding: 1.1em 1.25em 1.1em 1.25em;
	border-left: 3px solid;
	font-family: var(--sans);
	font-size: 0.86em;
	line-height: 1.6;
}
.prose .is-style-ttd-tip > * + *, .prose .is-style-ttd-note > * + *, .prose .is-style-ttd-warning > * + *, .prose .is-style-ttd-plan > * + * { margin-top: 0.6em; }
.prose .is-style-ttd-tip::before, .prose .is-style-ttd-note::before, .prose .is-style-ttd-warning::before, .prose .is-style-ttd-plan::before {
	display: block;
	margin-bottom: 0.35em;
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
}
.prose .is-style-ttd-tip { background: #eef0e6; border-color: var(--moss); }
.prose .is-style-ttd-tip::before { content: "Field tip"; color: var(--moss); }
.prose .is-style-ttd-note { background: var(--paper-2); border-color: var(--ink-2); }
.prose .is-style-ttd-note::before { content: "Good to know"; color: var(--ink-2); }
.prose .is-style-ttd-warning { background: #f6e6dc; border-color: var(--clay); }
.prose .is-style-ttd-warning::before { content: "Before you go"; color: var(--clay-deep); }
.prose .is-style-ttd-plan { background: transparent; border: 1px solid var(--ink); border-top-width: 2px; }
.prose .is-style-ttd-plan::before { content: "Plan it"; color: var(--ink); }

/* Rank Math FAQ block */
.prose .rank-math-block { margin-block: 2em; border-top: 1px solid var(--ink); }
.prose .rank-math-list-item { padding: 1em 0; border-bottom: 1px solid var(--rule); }
.prose .rank-math-question { font-size: 1.1em; margin: 0 0 0.4em; }
.prose .rank-math-answer > * + * { margin-top: 0.8em; }

/* Buttons inside content */
.prose .wp-block-button__link { background: var(--ink); color: var(--paper); border-radius: var(--radius); font-family: var(--sans); font-size: 0.8em; font-weight: 600; padding: 0.8em 1.4em; text-decoration: none; }
.prose .wp-block-button__link:hover { background: var(--clay-deep); color: #fff; }

/* After the article */
.article-foot { width: min(100% - 2 * var(--gutter), var(--measure)); margin: var(--space-7) auto 0; display: grid; gap: var(--space-6); }
.filed { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--fs-sm); color: var(--muted); padding-top: var(--space-5); border-top: 1px solid var(--rule); }
.filed a { color: var(--ink-2); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.share > span { font-size: var(--fs-sm); font-weight: 600; margin-right: var(--space-2); }
.share a, .share button { display: inline-flex; align-items: center; gap: 0.4em; min-height: 2.5rem; padding: 0 0.9rem; border: 1px solid var(--rule-strong); border-radius: 999px; background: none; font-size: var(--fs-sm); text-decoration: none; }
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.share svg { width: 1rem; height: 1rem; }
.author-box { display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--space-4); padding: var(--space-5); background: var(--paper-2); }
.author-box img { width: 4.5rem; height: 4.5rem; border-radius: 50%; }
.author-box h2 { font-size: 1.3rem; margin: 0.2rem 0 0.4rem; }
.author-box h2 a { text-decoration: none; }
.author-box p { font-family: var(--serif); color: var(--ink-2); font-size: 1.02rem; }
.author-box .more-link { margin-top: var(--space-3); }

/* Comments */
.comments { width: min(100% - 2 * var(--gutter), var(--measure)); margin: var(--space-8) auto 0; }
.comments h2 { font-size: var(--fs-xl); margin-bottom: var(--space-5); }
.comment-list { list-style: none; }
.comment-list .children { list-style: none; padding-left: var(--space-5); border-left: 1px solid var(--rule); }
.comment-body { padding: var(--space-4) 0; border-bottom: 1px solid var(--rule); }
.comment-author { display: flex; align-items: center; gap: var(--space-3); font-weight: 600; }
.comment-author img { border-radius: 50%; width: 2.25rem; height: 2.25rem; }
.comment-author .says { display: none; }
.comment-metadata { font-size: var(--fs-xs); color: var(--muted); margin: 0.2rem 0 0.6rem; }
.comment-metadata a { text-decoration: none; }
.comment-content { font-family: var(--serif); font-size: 1.05rem; }
.reply a { font-size: var(--fs-sm); font-weight: 600; }
.comment-respond { margin-top: var(--space-6); }
.comment-form { display: grid; gap: var(--space-4); }
.comment-form label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 0.3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea,
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 textarea, .wpcf7 select {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
	background: #fffdf9;
	font-size: 1rem;
}
.comment-form input:focus, .comment-form textarea:focus, .wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(154, 71, 40, .18); }
.comment-form .form-submit input, .wpcf7 input[type="submit"] {
	min-height: 2.875rem; padding: 0 1.4rem; border: 0; border-radius: var(--radius);
	background: var(--ink); color: var(--paper); font-weight: 600; font-size: var(--fs-sm); cursor: pointer;
}
.comment-form .form-submit input:hover, .wpcf7 input[type="submit"]:hover { background: var(--clay-deep); }
.comment-form-cookies-consent { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--fs-sm); }
.comment-form-cookies-consent label { font-weight: 400; }
.wpcf7 p { margin-bottom: var(--space-4); }
.wpcf7 label { font-size: var(--fs-sm); font-weight: 600; }
.wpcf7-not-valid-tip { font-size: var(--fs-xs); color: #a12a1a; }
.wpcf7 form .wpcf7-response-output { margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius); font-size: var(--fs-sm); }

/* Related */
.related { margin-top: var(--space-9); padding-block: var(--space-8); background: var(--paper-2); }

/* =========================================================
   11. Pages, search, 404
   ========================================================= */
.page-body { padding-block: var(--space-7) var(--space-9); }
.contact-grid { display: grid; gap: var(--space-7); }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: 1fr 1.3fr; } }
.contact-aside p { font-family: var(--serif); font-size: var(--fs-md); color: var(--ink-2); }
.contact-aside p + p { margin-top: var(--space-4); }

.search-page-form { display: flex; gap: var(--space-2); margin-top: var(--space-5); max-width: 36rem; }
.search-page-form input { flex: 1; min-width: 0; min-height: 2.875rem; padding: 0 1rem; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: #fffdf9; }
.search-page-form input:focus { border-color: var(--ink); outline: none; }
.result-list { list-style: none; }
.result-list li { border-bottom: 1px solid var(--rule); }
.result-list a { display: grid; grid-template-columns: 1fr 6.5rem; gap: var(--space-5); padding: var(--space-5) 0; text-decoration: none; align-items: start; }
.result-list strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.2; margin: 0.3rem 0; }
.result-list p { font-family: var(--serif); color: var(--ink-2); font-size: 1rem; }
.result-list a:hover strong { color: var(--clay); }
.result-list .frame { aspect-ratio: 1; }
@media (min-width: 48rem) { .result-list a { grid-template-columns: 1fr 9rem; } }

.lost { padding-block: var(--space-9); }
.lost h1 { font-size: var(--fs-3xl); max-width: 14ch; margin: var(--space-3) 0 var(--space-4); }
.lost p { font-family: var(--serif); font-size: var(--fs-lg); color: var(--ink-2); max-width: 36rem; }

/* =========================================================
   12. Footer
   ========================================================= */
.site-footer { margin-top: 0; background: var(--night); color: var(--night-ink); padding-block: var(--space-8) var(--space-6); }
.site-footer a { color: var(--night-ink); text-decoration: none; }
.site-footer a:hover { color: #f3c9ad; text-decoration: underline; }
.footer-top { display: grid; gap: var(--space-7); padding-bottom: var(--space-7); border-bottom: 1px solid #3a372f; }
.footer-brand .wordmark { color: var(--night-ink); font-size: 1.7rem; }
.footer-brand .wordmark em { color: #e7a986; }
.footer-brand p { margin-top: var(--space-3); font-family: var(--serif); font-size: 1.08rem; color: var(--night-muted); max-width: 26rem; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--space-6); }
.footer-cols h2 { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--night-muted); margin-bottom: var(--space-3); }
.footer-cols ul { list-style: none; display: grid; gap: 0.45rem; font-size: 0.94rem; }
.social { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.social a { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border: 1px solid #3a372f; border-radius: 50%; }
.social svg { width: 1.05rem; height: 1.05rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-5); font-size: var(--fs-sm); color: var(--night-muted); }
@media (min-width: 62rem) { .footer-top { grid-template-columns: 1fr 2fr; } }

/* =========================================================
   13. Print
   ========================================================= */
@media print {
	.site-header, .site-footer, .toc-desktop, .toc-mobile, .share, .related, .comments, .reading-progress, .letter, ins.adsbygoogle { display: none !important; }
	body { background: #fff; }
	.prose { font-size: 12pt; }
}

/* =========================================================
   14. Small utilities
   ========================================================= */
.spotlight__intro h2 { font-size: var(--fs-2xl); margin-top: var(--space-2); }
.after-row { margin-top: var(--space-6); }
