/*
Theme Name: Indochine Editorial
Theme URI: https://hanoitourism.org/
Author: hanoitourism.org
Author URI: https://hanoitourism.org/
Description: A heritage print-magazine theme for Hanoi travel journalism — cream paper, lacquer red, editorial serif and hairline rules, built around a circular seal-stamp motif. Classic PHP templates with a front page, article layout with a derived table of contents, and bordered category grids.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: indochine
Tags: blog, news, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, translation-ready, block-styles, editor-style
*/

/* ==========================================================================
   00 · Tokens
   --------------------------------------------------------------------------
   Three tiers per hue, because the design palette does not survive WCAG on
   every ground it is used on:
     --gold        identity value, from the brand board. Text-safe on ink only.
     --gold-text   darkened for gold text on paper (4.52:1 vs 2.79:1).
     --gold-line   non-text uses: arrows, rules, marks.
   The same split applies to --faint. Never put --gold on paper as text.
   ========================================================================== */

:root {
	/* Grounds */
	--paper:         #F7F2E8;
	--paper-raised:  #FDFBF5;
	--ink:           #2A2320;
	--ink-hover:     #1C1814;

	/* Accents */
	--lacquer:       #9E2B25;
	--lacquer-hover: #8A241F;
	--gold:          #B98A2F;
	--gold-text:     #8A6A22;
	--gold-line:     #B98A2F;

	/* Type */
	--body:          #4A4238;
	--muted:         #6B6152;
	--faint:         #8A7F68;
	--faint-text:    #786D56;

	/* On dark */
	--dim:           #CFC6B2;
	--faint-ink:     #9E927A;
	--rule-ink:      #4A4238;

	/* Lines */
	--rule:          #D8CFBA;

	/* Families */
	--display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--ui: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

	/* Metrics */
	--gutter: 56px;
	--section-y: 64px;
	--maxw: 1440px;
	--rail: 88px;

	--t: 150ms ease;
}

/* ==========================================================================
   01 · Reset & base
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--ui);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--display);
	font-weight: 500;
	line-height: 1.15;
	color: var(--ink);
	margin: 0;
	text-wrap: pretty;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; transition: color var(--t), opacity var(--t), background-color var(--t); }

img, svg, video { max-width: 100%; height: auto; display: block; }

figure { margin: 0; }

button { font: inherit; color: inherit; }

/* Visible focus everywhere — the design has no radius, so neither does this. */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--lacquer);
	outline-offset: 3px;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 999;
	background: var(--ink);
	color: var(--paper);
	padding: 14px 24px;
	font-family: var(--ui);
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.skip-link:focus { left: 6px; top: 6px; }

/* ==========================================================================
   02 · Shared editorial primitives
   ========================================================================== */

/* Gold micro-label above nearly every heading. */
.kicker {
	font-family: var(--ui);
	font-size: 11px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--gold-text);
}
.kicker--sm { font-size: 10px; letter-spacing: 0.28em; }
.on-ink .kicker, .kicker--on-ink { color: var(--gold); }

/* The seal: lacquer circle, Cormorant initials. */
.seal {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	border-radius: 50%;
	background: var(--lacquer);
	color: var(--paper);
	font-family: var(--display);
	font-weight: 600;
	line-height: 1;
}

/* Rotated stamp that overlaps the hero image. */
.stamp {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: var(--lacquer);
	color: var(--paper);
	transform: rotate(-8deg);
	font-family: var(--ui);
	font-size: 9px;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-align: center;
	line-height: 1.6;
}

/* Buttons — rectangular, never rounded. */
.btn {
	display: inline-block;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--ui);
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 15px 30px;
	border: 0;
	cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--ink-hover); color: var(--paper); }
.btn--lacquer { background: var(--lacquer); }
.btn--lacquer:hover, .btn--lacquer:focus-visible { background: var(--lacquer-hover); }

/* Cormorant italic text link with a hairline underline. */
.link-italic {
	font-family: var(--display);
	font-style: italic;
	font-size: 18px;
	color: var(--lacquer);
	border-bottom: 1px solid var(--lacquer);
	padding-bottom: 2px;
}
.link-italic:hover { color: var(--lacquer-hover); border-color: var(--lacquer-hover); }

/* Small uppercase "All articles →" section link. */
.link-more {
	font-family: var(--ui);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--lacquer);
	white-space: nowrap;
}
.link-more:hover { color: var(--lacquer-hover); }

.section { padding: var(--section-y) var(--gutter); border-bottom: 1px solid var(--rule); }

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	margin-bottom: 36px;
}
.section-head h2 {
	font-size: clamp(30px, 2.8vw, 40px);
	font-weight: 500;
	margin: 0;
}

/* Placeholder ground for cards with no featured image — a paper tone, never
   the mockup's diagnostic stripes. */
.thumb {
	display: block;
	background: #EFE8D8;
	overflow: hidden;
}
.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity var(--t);
}

/* ==========================================================================
   03 · Header
   ========================================================================== */

.utility-bar {
	background: var(--ink);
	color: var(--dim);
	font-family: var(--ui);
	font-size: 11px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding: 9px var(--gutter);
}
.utility-bar__note { color: var(--gold); }

.masthead {
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
}
.masthead__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 32px;
	padding: 22px var(--gutter);
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand__seal { width: 44px; height: 44px; font-size: 15px; }
.brand__name {
	display: block;
	font-family: var(--display);
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
	color: var(--ink);
}
.brand__sub {
	display: block;
	font-family: var(--ui);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--lacquer);
	margin-top: 3px;
	line-height: 1.4;
}
.brand__logo img { max-height: 56px; width: auto; }
.brand:hover { opacity: 1; }
.brand:hover .brand__name { color: var(--lacquer); }

/* Compact variant on single / archive / page. */
.masthead--compact .masthead__inner { padding: 18px var(--gutter); }
.masthead--compact .brand__seal { width: 36px; height: 36px; font-size: 12px; }
.masthead--compact .brand__name { font-size: 20px; }
.masthead--compact .brand { gap: 12px; }

.nav-primary { display: flex; align-items: center; }
.nav-primary ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 34px;
	font-family: var(--ui);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.masthead--compact .nav-primary ul { gap: 30px; font-size: 12px; }
.nav-primary a { color: var(--ink); }
.nav-primary a:hover { color: var(--lacquer); }
.nav-primary .current-menu-item > a,
.nav-primary .current-menu-parent > a,
.nav-primary .current-menu-ancestor > a,
.nav-primary .current-post-ancestor > a { color: var(--lacquer); }

/* Last menu item renders as the solid "Plan a Trip" button. */
.nav-primary .menu-item--cta > a {
	background: var(--lacquer);
	color: var(--paper);
	padding: 11px 22px;
}
.masthead--compact .nav-primary .menu-item--cta > a { padding: 9px 18px; }
.nav-primary .menu-item--cta > a:hover { background: var(--lacquer-hover); color: var(--paper); }

/* Sub-menus */
.nav-primary li { position: relative; }
.nav-primary .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	display: block;
	min-width: 220px;
	background: var(--paper);
	border: 1px solid var(--rule);
	padding: 8px 0;
	margin-top: 12px;
	gap: 0;
	flex-direction: column;
	align-items: stretch;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity var(--t), transform var(--t), visibility var(--t);
	z-index: 60;
}
.nav-primary li:hover > .sub-menu,
.nav-primary li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.nav-primary .sub-menu a { display: block; padding: 9px 20px; font-size: 12px; }

/* Sticky condensed bar after scroll. */
.masthead--stuck {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 80;
	box-shadow: 0 1px 14px rgba(42, 35, 32, 0.09);
	animation: slide-down 220ms ease;
}
.masthead--stuck .masthead__inner { padding-top: 14px; padding-bottom: 14px; }
@keyframes slide-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* Mobile toggle + full-screen paper overlay. */
.nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	background: none;
	border: 1px solid var(--rule);
	padding: 10px 16px;
	font-family: var(--ui);
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
}
.nav-toggle__bars { display: block; width: 16px; height: 9px; position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 1px;
	background: var(--ink);
	transition: transform var(--t);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }

/* ==========================================================================
   04 · Front page — hero
   ========================================================================== */

.hero {
	display: grid;
	grid-template-columns: var(--rail) 1fr 500px;
	min-height: 560px;
	border-bottom: 1px solid var(--rule);
}

.hero__rail {
	border-right: 1px solid var(--rule);
	display: flex;
	align-items: center;
	justify-content: center;
}
.hero__rail span {
	writing-mode: vertical-rl;
	font-family: var(--display);
	font-size: 20px;
	font-style: italic;
	letter-spacing: 0.3em;
	color: var(--lacquer);
	white-space: nowrap;
}

.hero__body {
	padding: 72px var(--gutter);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 28px;
}
.hero__title {
	font-size: clamp(38px, 5.4vw, 74px);
	font-weight: 500;
	line-height: 1.02;
	margin: 0;
}
.hero__dek {
	font-size: 16px;
	font-weight: 300;
	line-height: 1.7;
	max-width: 52ch;
	color: var(--body);
}
.hero__cta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

.hero__media { position: relative; margin: 40px 48px 40px 0; }
.hero__media .thumb { position: absolute; inset: 0; }
.hero__stamp { position: absolute; right: -18px; bottom: -18px; }

/* Staggered entrance, once, on load. */
.js .hero__body > * { opacity: 0; transform: translateY(14px); }
.js .hero--in .hero__body > * {
	animation: rise 500ms ease-out forwards;
}
.js .hero--in .hero__body > *:nth-child(1) { animation-delay: 0ms; }
.js .hero--in .hero__body > *:nth-child(2) { animation-delay: 80ms; }
.js .hero--in .hero__body > *:nth-child(3) { animation-delay: 160ms; }
.js .hero--in .hero__body > *:nth-child(4) { animation-delay: 240ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ==========================================================================
   05 · Front page — card grids
   ========================================================================== */

.card-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card { display: block; color: inherit; }
.card .thumb { height: 200px; }
.card__kicker { margin-top: 16px; }
.card__title {
	font-family: var(--display);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
	margin-top: 4px;
	color: var(--ink);
	transition: color var(--t);
}
.card__dek {
	font-size: 13px;
	font-weight: 300;
	line-height: 1.6;
	color: var(--muted);
	margin-top: 6px;
}
.card:hover { opacity: 1; }
.card:hover .card__title { color: var(--lacquer); }
.card:hover .thumb img { opacity: 0.86; }

/* Bordered grid — cells share hairlines instead of gaps. */
.grid-bordered {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border: 1px solid var(--rule);
}
.grid-bordered > * {
	padding: 32px 36px;
	border-right: 1px solid var(--rule);
}
.grid-bordered > *:nth-child(3n) { border-right: 0; }
.grid-bordered > *:nth-child(n + 4) { border-top: 1px solid var(--rule); }

.note__title {
	font-family: var(--display);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
	margin-top: 12px;
	color: var(--ink);
	transition: color var(--t);
}
.note__dek {
	font-size: 13px;
	font-weight: 300;
	line-height: 1.65;
	color: var(--muted);
	margin-top: 10px;
}
.note__more {
	font-family: var(--display);
	font-style: italic;
	font-size: 15px;
	color: var(--lacquer);
	margin-top: 16px;
}
.note:hover { opacity: 1; }
.note:hover .note__title { color: var(--lacquer); }

/* ==========================================================================
   06 · Front page — dark feature split
   ========================================================================== */

.feature {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-bottom: 1px solid var(--rule);
}
.feature__panel {
	background: var(--ink);
	color: var(--paper);
	padding: var(--section-y) var(--gutter);
	border-right: 1px solid var(--rule);
}
.feature__title {
	font-size: clamp(32px, 3.1vw, 44px);
	font-weight: 500;
	line-height: 1.1;
	color: var(--paper);
	margin: 20px 0 0;
}
.feature__dek {
	font-size: 15px;
	font-weight: 300;
	line-height: 1.7;
	color: var(--dim);
	max-width: 48ch;
	margin: 20px 0 0;
}
.feature__list { margin-top: 32px; border-top: 1px solid var(--rule-ink); }
.feature__item {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 20px;
	padding: 16px 0;
	border-bottom: 1px solid var(--rule-ink);
	font-family: var(--display);
	font-size: 21px;
	line-height: 1.3;
	color: var(--paper);
}
.feature__item span:last-child { color: var(--gold); flex: none; }
.feature__item:hover { opacity: 1; color: var(--gold); }
.feature__media { position: relative; min-height: 420px; }
.feature__media .thumb { position: absolute; inset: 0; }

/* ==========================================================================
   07 · Newsletter
   ========================================================================== */

.dispatch { padding: 72px var(--gutter); text-align: center; border-bottom: 1px solid var(--rule); }
.dispatch__title {
	font-size: clamp(32px, 3.1vw, 44px);
	font-weight: 500;
	margin: 18px auto 0;
	max-width: 20ch;
}
.dispatch__form {
	display: flex;
	justify-content: center;
	margin-top: 32px;
	flex-wrap: wrap;
}
.dispatch__form input[type="email"] {
	width: 320px;
	max-width: 100%;
	background: var(--paper-raised);
	border: 1px solid var(--ink);
	border-right: 0;
	padding: 15px 24px;
	font-family: var(--ui);
	font-size: 14px;
	font-weight: 300;
	color: var(--ink);
	border-radius: 0;
	-webkit-appearance: none;
}
.dispatch__form input::placeholder { color: var(--faint-text); opacity: 1; }
.dispatch__form .btn { padding: 16px 30px; }
.dispatch__msg {
	font-family: var(--display);
	font-style: italic;
	font-size: 20px;
	color: var(--lacquer);
	margin-top: 24px;
}

/* ==========================================================================
   08 · Footer
   ========================================================================== */

.site-footer { background: var(--ink); color: var(--dim); }
.site-footer__cols {
	padding: var(--section-y) var(--gutter);
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 48px;
}
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand .seal { width: 38px; height: 38px; font-size: 13px; }
.site-footer__name {
	font-family: var(--display);
	font-size: 21px;
	font-weight: 600;
	color: var(--paper);
	line-height: 1.1;
}
.site-footer__about {
	font-size: 13px;
	font-weight: 300;
	line-height: 1.7;
	margin: 18px 0 0;
	max-width: 40ch;
}
.site-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 13px;
	font-weight: 300;
}
.site-footer__col .kicker { margin-bottom: 6px; color: var(--gold); }
.site-footer a { color: var(--dim); }
.site-footer a:hover { color: var(--paper); }

.site-footer__bar {
	border-top: 1px solid var(--rule-ink);
	padding: 18px var(--gutter);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	font-family: var(--ui);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--faint-ink);
}
.site-footer__tagline {
	font-family: var(--display);
	font-style: italic;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: none;
	color: var(--gold);
}

/* ==========================================================================
   09 · Single
   ========================================================================== */

.article-head {
	max-width: 1000px;
	margin: 0 auto;
	padding: 72px var(--gutter) 0;
	text-align: center;
}
.article-head h1 {
	font-size: clamp(34px, 4.5vw, 62px);
	font-weight: 500;
	line-height: 1.06;
	margin: 24px 0 0;
}
.article-meta {
	font-family: var(--ui);
	font-size: 13px;
	font-weight: 300;
	color: var(--muted);
	margin-top: 24px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 24px;
}
.article-meta a { color: var(--lacquer); }
.article-meta__sep { color: var(--faint-text); }

.article-figure { max-width: 1200px; margin: 48px auto 0; padding: 0 var(--gutter); }
.article-figure .thumb { height: 420px; }
.article-figure figcaption {
	font-family: var(--ui);
	font-size: 12px;
	font-weight: 300;
	font-style: italic;
	color: var(--faint-text);
	margin-top: 12px;
}

.article-body {
	max-width: 1200px;
	margin: 56px auto 0;
	padding: 0 var(--gutter) 80px;
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 72px;
	align-items: start;
}

/* Article prose — also applied to the block editor via editor.css. */
.prose { font-size: 16px; font-weight: 300; line-height: 1.85; color: var(--body); }
.prose > * + * { margin-top: 18px; }
.prose h2 {
	font-family: var(--display);
	font-size: clamp(27px, 2.4vw, 34px);
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
	margin-top: 44px;
	scroll-margin-top: 100px;
}
.prose h3 {
	font-family: var(--display);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--ink);
	margin-top: 34px;
	scroll-margin-top: 100px;
}
.prose h4 {
	font-family: var(--ui);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-text);
	margin-top: 30px;
}
.prose a { color: var(--lacquer); border-bottom: 1px solid var(--rule); }
.prose a:hover { color: var(--lacquer-hover); border-color: var(--lacquer); }
.prose ul, .prose ol { padding-left: 22px; margin-top: 18px; }
.prose li + li { margin-top: 8px; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 22px; }
.prose ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.82em;
	width: 8px;
	height: 1px;
	background: var(--gold-line);
}
.prose img, .prose figure { margin-top: 32px; }
.prose figcaption {
	font-size: 12px;
	font-style: italic;
	color: var(--faint-text);
	margin-top: 12px;
}
.prose strong { font-weight: 500; color: var(--ink); }
.prose hr {
	border: 0;
	border-top: 1px solid var(--rule);
	margin: 44px 0;
}
.prose code {
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 0.88em;
	background: var(--paper-raised);
	border: 1px solid var(--rule);
	padding: 1px 5px;
}
.prose pre {
	background: var(--paper-raised);
	border: 1px solid var(--rule);
	padding: 20px 24px;
	overflow-x: auto;
	margin-top: 32px;
}
.prose pre code { border: 0; padding: 0; background: none; }
.prose table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 32px;
	font-size: 14px;
}
.prose th, .prose td {
	border: 1px solid var(--rule);
	padding: 12px 16px;
	text-align: left;
}
.prose th {
	font-family: var(--ui);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold-text);
	background: var(--paper-raised);
}

/* Lacquer drop cap on the opening paragraph. */
.prose > p.has-drop-cap:first-of-type::first-letter,
.prose > p.is-style-drop-cap::first-letter {
	font-family: var(--display);
	font-size: 64px;
	font-weight: 600;
	line-height: 0.8;
	float: left;
	padding: 8px 12px 0 0;
	color: var(--lacquer);
}

.prose blockquote {
	margin: 44px 0;
	padding: 0 0 0 28px;
	border-left: 2px solid var(--lacquer);
}
.prose blockquote p {
	font-family: var(--display);
	font-size: 28px;
	font-style: italic;
	font-weight: 500;
	line-height: 1.35;
	color: var(--ink);
}
.prose blockquote cite,
.prose blockquote .wp-block-quote__citation,
.prose blockquote footer {
	display: block;
	font-family: var(--ui);
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-text);
	margin-top: 14px;
}

/* "Good to know" callout — a block style on core/group. */
.is-style-callout,
.prose .is-style-callout {
	background: var(--paper-raised);
	border: 1px solid var(--rule);
	padding: 28px 32px;
	margin: 44px 0;
	font-size: 14px;
	line-height: 1.75;
}
.is-style-callout > *:first-child,
.is-style-callout .wp-block-group__inner-container > *:first-child { margin-top: 0; }
.is-style-callout p + p { margin-top: 12px; }
.is-style-callout h2,
.is-style-callout h3,
.is-style-callout h4 {
	font-family: var(--ui);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--lacquer);
	margin: 0 0 12px;
}

.endmark { display: flex; align-items: center; gap: 20px; margin-top: 56px; }
.endmark__rule { flex: 1; height: 1px; background: var(--rule); }
.endmark .seal { width: 44px; height: 44px; font-size: 17px; font-style: italic; font-weight: 500; }

/* Sidebar */
.article-aside {
	display: flex;
	flex-direction: column;
	gap: 40px;
	position: sticky;
	top: 32px;
}
.aside-box { border: 1px solid var(--rule); padding: 28px; }
.aside-toc ol {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-family: var(--display);
	font-size: 17px;
	line-height: 1.3;
}
.aside-toc a { color: var(--ink); }
.aside-toc a:hover, .aside-toc a[aria-current="true"] { color: var(--lacquer); }

.aside-dispatch { background: var(--ink); color: var(--paper); padding: 28px; }
.aside-dispatch__title {
	font-family: var(--display);
	font-size: 22px;
	line-height: 1.3;
	color: var(--paper);
	margin-top: 12px;
}
.aside-dispatch .btn { display: block; text-align: center; width: 100%; padding: 13px; font-size: 12px; margin-top: 20px; }

.aside-related a {
	display: block;
	border-bottom: 1px solid var(--rule);
	padding: 16px 0;
	font-family: var(--display);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
}
.aside-related a:last-child { border-bottom: 0; }
.aside-related a:hover { color: var(--lacquer); }

.widget + .widget { margin-top: 40px; }
.widget .widget-title { margin-bottom: 16px; }
.widget ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.widget li + li { margin-top: 10px; }

/* ==========================================================================
   10 · Archive
   ========================================================================== */

.archive-head {
	padding: var(--section-y) var(--gutter) 40px;
	border-bottom: 1px solid var(--rule);
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
	flex-wrap: wrap;
}
.archive-head h1 {
	font-size: clamp(36px, 4.6vw, 64px);
	font-weight: 500;
	margin: 16px 0 0;
}
.archive-head__dek {
	font-size: 15px;
	font-weight: 300;
	line-height: 1.7;
	color: var(--muted);
	margin: 14px 0 0;
	max-width: 60ch;
}
.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pills a {
	font-family: var(--ui);
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border: 1px solid var(--rule);
	padding: 9px 18px;
	color: var(--ink);
}
.pills a:hover { border-color: var(--ink); }
.pills a[aria-current="page"], .pills .is-active {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.archive-grid > * {
	padding: 40px;
	border-right: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}
.archive-grid > *:nth-child(3n) { border-right: 0; }
.archive-grid .thumb { height: 190px; }
.archive-grid .card__kicker { margin-top: 20px; }
.archive-grid .card__title { font-size: 25px; margin-top: 8px; }
.archive-grid .card__dek { margin-top: 8px; }

.pagination { display: flex; justify-content: center; gap: 8px; padding: 40px; flex-wrap: wrap; }
.pagination .page-numbers {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--rule);
	font-family: var(--ui);
	font-size: 13px;
	font-weight: 400;
	color: var(--ink);
}
.pagination .page-numbers:hover { border-color: var(--ink); }
.pagination .page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}
.pagination .page-numbers.dots { border: 0; }

/* ==========================================================================
   11 · Page, search, 404, comments
   ========================================================================== */

.page-body {
	max-width: 860px;
	margin: 0 auto;
	padding: 72px var(--gutter) 80px;
}
.page-body--wide { max-width: 1200px; }

.search-form { display: flex; max-width: 420px; }
.search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	background: var(--paper-raised);
	border: 1px solid var(--ink);
	border-right: 0;
	padding: 14px 20px;
	font-family: var(--ui);
	font-size: 14px;
	font-weight: 300;
	color: var(--ink);
	border-radius: 0;
	-webkit-appearance: none;
}
.search-form .btn { padding: 15px 24px; }

.no-results { padding: 96px var(--gutter); text-align: center; }
.no-results h1, .no-results h2 { font-size: clamp(32px, 4vw, 56px); }
.no-results p { color: var(--muted); margin: 18px auto 32px; max-width: 52ch; font-size: 15px; }
.no-results .search-form { margin: 0 auto; }

.comments { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter) 80px; }
.comments__title { font-size: 30px; font-weight: 500; margin-bottom: 28px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list ol { list-style: none; padding-left: 32px; }
.comment-body {
	border-top: 1px solid var(--rule);
	padding: 24px 0;
	font-size: 15px;
	color: var(--body);
}
.comment-author { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink); }
.comment-author .says { display: none; }
.comment-metadata { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint-text); margin-top: 4px; }
.comment-respond { margin-top: 40px; }
.comment-form label {
	display: block;
	font-size: 10px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--gold-text);
	margin-bottom: 8px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	background: var(--paper-raised);
	border: 1px solid var(--rule);
	padding: 12px 16px;
	font-family: var(--ui);
	font-size: 15px;
	font-weight: 300;
	color: var(--ink);
	border-radius: 0;
}
.comment-form p { margin-bottom: 20px; }
.comment-form .submit { cursor: pointer; }

/* ==========================================================================
   12 · Core block alignment
   ========================================================================== */

.prose .alignwide { width: min(100%, 1000px); margin-left: auto; margin-right: auto; }
.prose .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.prose .alignleft { float: left; margin: 8px 32px 20px 0; max-width: 45%; }
.prose .alignright { float: right; margin: 8px 0 20px 32px; max-width: 45%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 12px; font-style: italic; color: var(--faint-text); margin-top: 12px; }

.has-paper-color { color: var(--paper); }
.has-ink-color { color: var(--ink); }
.has-lacquer-color { color: var(--lacquer); }
.has-gold-color { color: var(--gold-text); }
.has-body-color { color: var(--body); }
.has-paper-background-color { background-color: var(--paper); }
.has-paper-raised-background-color { background-color: var(--paper-raised); }
.has-ink-background-color { background-color: var(--ink); }
.has-lacquer-background-color { background-color: var(--lacquer); }
.has-gold-background-color { background-color: var(--gold); }

/* ==========================================================================
   13 · Responsive
   ========================================================================== */

@media (max-width: 1240px) {
	:root { --gutter: 40px; }
	.hero { grid-template-columns: var(--rail) 1fr 400px; }
	.hero__media { margin-right: 32px; }
	.nav-primary ul { gap: 24px; }
}

@media (max-width: 1024px) {
	:root { --gutter: 32px; --section-y: 52px; }

	.hero { grid-template-columns: 1fr; min-height: 0; }
	.hero__rail { display: none; }
	.hero__body { padding: 56px var(--gutter); }
	.hero__media { margin: 0 var(--gutter) 56px; height: 360px; }
	.hero__stamp { right: 0; bottom: -18px; }

	/* Touch targets: footer and section links are 19px tall by design, which
	   is below the 32px comfortable minimum once there is no mouse. */
	.site-footer__col ul { gap: 2px; }
	.site-footer__col a { display: inline-block; padding: 7px 0; }
	.link-more { display: inline-block; padding: 6px 0; }
	.aside-toc a { display: inline-block; padding: 3px 0; }

	.article-body { grid-template-columns: 1fr; gap: 56px; }
	.article-aside { position: static; }
	.card-grid { grid-template-columns: repeat(2, 1fr); }

	/* Mobile navigation */
	.nav-toggle { display: inline-flex; }
	.nav-primary {
		position: fixed;
		inset: 0;
		background: var(--paper);
		z-index: 90;
		display: none;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 32px;
	}
	.nav-primary.is-open { display: flex; }
	.nav-primary ul {
		flex-direction: column;
		gap: 22px;
		text-align: center;
		font-family: var(--display);
		font-size: 34px;
		font-weight: 500;
		letter-spacing: 0;
		text-transform: none;
	}
	.masthead--compact .nav-primary ul { font-size: 34px; gap: 22px; }
	.nav-primary .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		background: none;
		padding: 12px 0 0;
		margin: 0;
		min-width: 0;
	}
	.nav-primary .sub-menu a { font-size: 20px; padding: 6px 0; }
	.nav-primary .menu-item--cta > a { display: inline-block; font-family: var(--ui); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
	.nav-close {
		position: absolute;
		top: 24px;
		right: 24px;
		background: none;
		border: 1px solid var(--rule);
		padding: 10px 16px;
		font-family: var(--ui);
		font-size: 12px;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		cursor: pointer;
	}
	body.nav-open { overflow: hidden; }
}

@media (max-width: 900px) {
	.feature { grid-template-columns: 1fr; }
	.feature__panel { border-right: 0; }
	.feature__media { min-height: 320px; }

	.grid-bordered, .archive-grid { grid-template-columns: repeat(2, 1fr); }
	.grid-bordered > *:nth-child(3n) { border-right: 1px solid var(--rule); }
	.grid-bordered > *:nth-child(2n) { border-right: 0; }
	.grid-bordered > *:nth-child(n + 3) { border-top: 1px solid var(--rule); }
	.archive-grid > *:nth-child(3n) { border-right: 1px solid var(--rule); }
	.archive-grid > *:nth-child(2n) { border-right: 0; }

	.site-footer__cols { grid-template-columns: 1fr 1fr; gap: 40px; }
	.article-figure .thumb { height: 300px; }
}

@media (max-width: 640px) {
	:root { --gutter: 22px; --section-y: 44px; }

	.utility-bar { font-size: 10px; letter-spacing: 0.12em; gap: 12px; }
	.utility-bar__lede { display: none; }

	.card-grid, .grid-bordered, .archive-grid { grid-template-columns: 1fr; }
	.grid-bordered > *, .archive-grid > * { border-right: 0 !important; }
	.grid-bordered > * + * { border-top: 1px solid var(--rule); }
	.archive-grid > * { padding: 28px var(--gutter); }
	.grid-bordered > * { padding: 28px var(--gutter); }

	.section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
	.archive-head { align-items: flex-start; gap: 24px; }

	.hero__cta { gap: 16px; }
	.hero__media { height: 260px; }
	.article-head { padding-top: 48px; }
	.article-figure .thumb { height: 220px; }

	.dispatch__form { flex-direction: column; align-items: center; gap: 0; }
	.dispatch__form input[type="email"] { border-right: 1px solid var(--ink); width: 100%; }
	.dispatch__form .btn { width: 100%; }

	.site-footer__cols { grid-template-columns: 1fr; }
	.site-footer__bar { flex-direction: column; align-items: flex-start; gap: 10px; }

	.prose > p.has-drop-cap:first-of-type::first-letter,
	.prose > p.is-style-drop-cap::first-letter { font-size: 52px; }
	.prose blockquote p { font-size: 23px; }
}

/* ==========================================================================
   14 · Motion & print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.js .hero__body > * { opacity: 1; transform: none; }
}

@media print {
	.utility-bar, .nav-primary, .nav-toggle, .article-aside,
	.dispatch, .site-footer, .pagination, .comment-respond { display: none !important; }
	body { background: #fff; color: #000; }
	.article-body { display: block; padding: 0; }
	.prose a { border: 0; }
	.prose a::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; }
}
