/* Flight Sim website (WordPress theme). The same stylesheet as the static site (public/landing/site.css),
   with the selectors taught WordPress's block markup: covers for chapters, groups for notes and steps,
   core buttons, tables, details and navigation. The colours and type come from theme.json's tokens.

   A quiet, grand-touring register: deep ink, ivory type, one warm brass note. One
   family, Archivo, used light and wide for titles (capitals, generously spaced) and light for reading.
   Pages are told in chapters: a full-screen frame from the game, a centred title, then calm text. */

:root {
	--ink: var(--wp--preset--color--ink, #0a0c0f);
	--ink-2: var(--wp--preset--color--ink-2, #101317);
	--ink-3: var(--wp--preset--color--ink-3, #171b20);
	--ivory: var(--wp--preset--color--ivory, #eeeae2);
	--ivory-2: var(--wp--preset--color--ivory-2, rgba(238, 234, 226, 0.78));
	--muted: var(--wp--preset--color--muted, #8f8a81);
	--line: rgba(238, 234, 226, 0.12);
	--line-strong: rgba(238, 234, 226, 0.26);
	--brass: var(--wp--preset--color--brass, #b99c6b);
	--pass: var(--wp--preset--color--pass, #a9c9a4);
	--fail: var(--wp--preset--color--fail, #d9a56f);
	--gutter: clamp(20px, 5vw, 72px);
	--max: 1200px;
	--ease: cubic-bezier(0.22, 0.61, 0.15, 1);
	--slow: 1.4s;
	color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--ink);
	color: var(--ivory);
	font-family: var(--wp--preset--font-family--archivo, Archivo, system-ui, -apple-system, "Segoe UI", sans-serif);
	font-weight: 300;
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong, b { font-weight: 500; }

:focus-visible { outline: 1px solid var(--ivory); outline-offset: 4px; }

.skip, .skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ivory); color: var(--ink); padding: 10px 16px; }
.skip:focus, .skip-link:focus { left: 8px; width: auto; height: auto; clip: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(96px, 13vw, 200px); }

/* ---------- type ---------- */

/* the title voice: light, wide capitals with air between them */
.eyebrow {
	font-size: 0.72rem;
	font-weight: 500;
	font-stretch: 112%;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--ivory-2);
}

.hero-title,
.chapter-title,
.display,
.ac-title,
.h-section {
	font-weight: 250;
	font-stretch: 125%;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	line-height: 1.08;
	text-wrap: balance;
}

.chapter-title { font-size: clamp(2rem, 5.2vw, 4.6rem); }
.display { font-size: clamp(1.9rem, 4vw, 3.4rem); }
.h-section { font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: 0.2em; }
.h2 { font-weight: 400; font-stretch: 118%; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.82rem; color: var(--ivory-2); line-height: 1.6; }

.lede { color: var(--ivory-2); font-size: clamp(1.04rem, 1.3vw, 1.18rem); line-height: 1.75; max-width: 54ch; margin-top: 1.6rem; text-wrap: pretty; }
.fine { color: var(--muted); font-size: 0.86rem; margin-top: 1.4rem; }

.statement { max-width: 880px; margin: 0 auto; text-align: center; }
.statement-text {
	font-weight: 250;
	font-size: clamp(1.35rem, 2.4vw, 2.05rem);
	line-height: 1.5;
	letter-spacing: 0.005em;
	color: var(--ivory);
	text-wrap: balance;
}
.statement-narrow { max-width: 820px; margin: 0 auto; text-align: center; }

/* ---------- buttons ---------- */

.btn,
.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 2.1em;
	border-radius: 999px;
	background: var(--ivory);
	color: var(--ink);
	border: 1px solid var(--ivory);
	font-size: 0.74rem;
	font-weight: 500;
	font-stretch: 115%;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn:hover, .wp-block-button .wp-block-button__link:hover { background: transparent; color: var(--ivory); }
.btn-ghost, .wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: var(--ivory); border-color: var(--line-strong); }
.btn-ghost:hover, .wp-block-button.is-style-ghost .wp-block-button__link:hover { border-color: var(--ivory); }
.btn-small, .wp-block-button.is-style-small .wp-block-button__link { min-height: 38px; padding: 0 1.5em; font-size: 0.68rem; }
.btn-large, .wp-block-button.is-style-large .wp-block-button__link { min-height: 54px; }
.wp-block-button.is-style-text-link .wp-block-button__link { display: inline; min-height: 0; padding: 0 0 2px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: none; color: var(--ivory); font-size: 0.7rem; font-weight: 300; font-stretch: 100%; letter-spacing: 0.24em; }
.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.link { text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color 0.4s; }
.link:hover { border-color: var(--ivory); }

/* ---------- navigation: links left, the mark centred, play right ---------- */

.nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 22px var(--gutter);
	transition: background-color 0.6s var(--ease), padding 0.6s var(--ease);
}
.nav::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(to bottom, rgba(10, 12, 15, 0.6), transparent); pointer-events: none; z-index: -1; transition: opacity 0.6s; }
.nav.is-solid { background: rgba(10, 12, 15, 0.82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); padding-top: 14px; padding-bottom: 14px; }
.nav.is-solid::before { opacity: 0; }
.nav nav, .nav nav ul { display: flex; gap: 2.2rem; }
.nav nav li { display: block; }
.nav nav a { text-decoration: none; font-size: 0.68rem; font-weight: 500; font-stretch: 115%; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.8; transition: opacity 0.4s; }
.nav nav a:hover { opacity: 1; }
.nav .btn-small, .nav .nav-play { justify-self: end; }

.wordmark {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	font-size: 0.66rem;
	font-weight: 500;
	font-stretch: 125%;
	letter-spacing: 0.42em;
	text-transform: uppercase;
	padding-left: 0.42em;
}
.mark { width: 22px; height: 22px; color: var(--ivory); }
.nav .wordmark { justify-self: center; }

@media (max-width: 900px) {
	.nav { grid-template-columns: 1fr auto; }
	.nav nav { display: none; }
	.nav .wordmark { justify-self: start; flex-direction: row; gap: 10px; }
}

/* ---------- hero ---------- */

.hero { position: relative; min-height: max(640px, 100svh); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #05070a center / cover no-repeat; }
.hero-video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
@media (prefers-reduced-motion: no-preference) { .hero-video { animation: drift 30s linear infinite alternate; } }
@keyframes drift { to { transform: scale(1.09); } }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10, 12, 15, 0.25), rgba(10, 12, 15, 0.7) 75%), linear-gradient(to top, rgba(10, 12, 15, 0.9), transparent 35%); pointer-events: none; }

.hero-copy { position: relative; padding: 120px var(--gutter) 140px; max-width: 1100px; }
.hero-title { font-size: clamp(2.4rem, 6vw, 5.6rem); margin-top: 1.6rem; }
.hero-title span { display: block; }
.hero-lede { margin: 2rem auto 0; max-width: 46ch; color: var(--ivory-2); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 2.8rem; }
.hero-title br { display: block; }

.hero-foot { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1.5rem; padding: 18px var(--gutter) 24px; text-align: left; }
.scene { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }
.scene-tag { color: var(--ivory-2); margin-right: 0.4rem; }
.scene [data-scene-text] { transition: opacity 0.6s; }
.scene.is-changing [data-scene-text] { opacity: 0; }
.scene-ticks { display: flex; gap: 6px; }
.scene-ticks li { width: 28px; height: 1px; background: var(--line-strong); overflow: hidden; }
.scene-ticks i { display: block; height: 100%; width: 0; background: var(--ivory); }
.reel-toggle { appearance: none; background: none; border: 0; color: var(--ivory-2); font: inherit; font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; padding: 6px 0; }
.reel-toggle:hover { color: var(--ivory); }
@media (max-width: 720px) { .scene-ticks { display: none; } .hero-foot { grid-template-columns: 1fr auto; } }

@media (prefers-reduced-motion: no-preference) {
	.hero-copy > * { animation: fade var(--slow) var(--ease) both; }
	.hero-copy > :nth-child(2) { animation-delay: 0.25s; }
	.hero-copy > :nth-child(3) { animation-delay: 0.55s; }
	.hero-copy > :nth-child(4) { animation-delay: 0.8s; }
}
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }

/* ---------- chapters: a full-screen frame from the game, a centred title ---------- */

.chapter { position: relative; height: max(560px, 100svh); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; isolation: isolate; margin-top: clamp(96px, 13vw, 200px); }
.chapter { background: var(--ink-3); }
.chapter > .wp-block-cover__image-background, .chapter-media img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; transform: scale(var(--zoom, 1.08)); will-change: transform; }
.chapter > .wp-block-cover__inner-container { position: static; width: 100%; }
.chapter > .wp-block-cover__background, .chapter-shade { position: absolute; inset: 0; z-index: -1; opacity: 1; background: radial-gradient(ellipse at center, rgba(10, 12, 15, 0.12), rgba(10, 12, 15, 0.55) 80%), linear-gradient(to bottom, var(--ink) 0%, transparent 14%, transparent 80%, var(--ink) 100%); }
.chapter-copy { padding: 0 var(--gutter); }
.chapter-copy .chapter-title { margin-top: 1.4rem; }
.chapter-caption { position: absolute; left: var(--gutter); bottom: 22px; font-size: 0.76rem; color: var(--ivory-2); letter-spacing: 0.02em; }
.chapter-caption a { text-decoration: none; color: var(--ivory); }
.chapter-caption a:hover { text-decoration: underline; text-underline-offset: 3px; }
.chapter + .section { padding-top: clamp(64px, 9vw, 140px); }

@media (prefers-reduced-motion: no-preference) {
	.chapter-copy { opacity: 0; transform: translateY(18px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
	.chapter.is-in .chapter-copy { opacity: 1; transform: none; }
}

/* chapter dots, at the left edge */
.dots { position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 40; display: grid; gap: 14px; }
.dots a { position: relative; display: block; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ivory-2); transition: background-color 0.5s, transform 0.5s var(--ease); }
.dots a.is-on { background: var(--ivory); transform: scale(1.15); }
.dots a span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory-2); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.dots a:hover span, .dots a:focus-visible span { opacity: 1; }
@media (max-width: 1100px) { .dots { display: none; } }

/* ---------- realism ---------- */

.score { text-align: center; margin-top: clamp(64px, 9vw, 120px); }
.score-num { font-weight: 200; font-stretch: 125%; font-size: clamp(4.5rem, 12vw, 10rem); line-height: 1; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.score-num span { color: var(--muted); font-size: 0.4em; letter-spacing: 0.08em; }
.score-label { color: var(--muted); max-width: 44ch; margin: 1.2rem auto 0; font-size: 0.95rem; }

.ledger-wrap { margin: clamp(56px, 8vw, 110px) auto 0; max-width: 980px; overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger caption { text-align: center; padding-bottom: 1.6rem; font-size: 0.68rem; font-weight: 500; font-stretch: 115%; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ivory-2); }
.ledger thead th { text-align: left; font-weight: 400; color: var(--muted); font-size: 0.74rem; letter-spacing: 0.06em; padding: 0 1.2rem 0.9rem 0; border-bottom: 1px solid var(--line-strong); }
.ledger tbody th, .ledger td { text-align: left; padding: 1.3rem 1.2rem 1.3rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ledger tbody th { font-weight: 400; font-size: 1rem; }
.ledger tbody th a { text-decoration: none; }
.ledger tbody th a:hover { color: var(--brass); }
.ledger tbody th span { display: block; color: var(--muted); font-size: 0.84rem; margin-top: 0.15rem; }
.ledger td { color: var(--muted); font-size: 0.98rem; white-space: nowrap; }
.ledger td.sim { color: var(--ivory); font-weight: 300; font-size: 1.2rem; font-stretch: 112%; }
.ledger td.pass { color: var(--pass); font-size: 0.84rem; }
.ledger td.fail { color: var(--fail); font-size: 0.84rem; }
.ledger td.g { width: 170px; }
.ledger-full tbody th span { max-width: 46ch; white-space: normal; }

.gauge { display: block; width: 150px; height: 18px; }
.gauge .g-band { fill: none; stroke: var(--line-strong); stroke-width: 0.6; }
.gauge .g-ref { stroke: var(--muted); stroke-width: 0.8; }
.gauge .g-dot { fill: var(--ivory); }
.gauge.is-out .g-dot { fill: var(--fail); }
@media (max-width: 720px) { .ledger td.g, .ledger thead th:nth-child(4) { display: none; } }

/* editorial notes: numbered quietly, two columns, hairline rules */
.notes { counter-reset: note; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 clamp(32px, 6vw, 96px); max-width: 980px; margin: clamp(72px, 10vw, 140px) auto 0; }
.notes > * { counter-increment: note; display: grid; grid-template-columns: 2.4rem 1fr; padding: 1.6rem 0 1.8rem; border-top: 1px solid var(--line); }
.notes > *::before { content: counter(note, decimal-leading-zero); color: var(--brass); font-size: 0.74rem; letter-spacing: 0.12em; padding-top: 0.25rem; }
.notes h3 { font-weight: 400; font-size: 1.02rem; letter-spacing: 0.01em; }
.notes p { grid-column: 2; color: var(--muted); font-size: 0.95rem; margin-top: 0.4rem; }

/* ---------- hangar ---------- */

.hangar-list { max-width: 1040px; margin: clamp(64px, 9vw, 120px) auto 0; border-bottom: 1px solid var(--line); }
.hangar-row { display: grid; grid-template-columns: 10rem minmax(0, 1fr) minmax(0, 1.1fr) 1.2rem; gap: 1.5rem; align-items: baseline; padding: 1.5rem 0; border-top: 1px solid var(--line); text-decoration: none; transition: padding 0.7s var(--ease); }
.hangar-class { color: var(--muted); font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; }
.hangar-name { font-weight: 250; font-stretch: 122%; font-size: clamp(1.35rem, 2.6vw, 2.2rem); letter-spacing: 0.04em; line-height: 1.1; transition: color 0.5s; }
.hangar-note { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.hangar-go { align-self: center; width: 1rem; height: 1px; background: var(--muted); transition: width 0.7s var(--ease), background-color 0.5s; }
.hangar-row:hover { padding-left: 1rem; }
.hangar-row:hover .hangar-name { color: var(--brass); }
.hangar-row:hover .hangar-go { width: 1.2rem; background: var(--brass); }
@media (max-width: 860px) {
	.hangar-row { grid-template-columns: 1fr; gap: 0.35rem; }
	.hangar-go { display: none; }
}
.center-link { text-align: center; justify-content: center; margin-top: clamp(48px, 6vw, 80px); }

.hangar-peek { position: fixed; left: 0; top: 0; z-index: 40; width: min(26vw, 360px); aspect-ratio: 16 / 9; object-fit: cover; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease); will-change: transform; }
.hangar-peek.is-on { opacity: 1; }
@media (hover: none), (max-width: 860px) { .hangar-peek { display: none; } }

/* ---------- world ---------- */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 980px; margin: clamp(64px, 9vw, 120px) auto 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 2rem 1rem; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; }
.stats dd { font-weight: 200; font-stretch: 125%; font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: 0.04em; margin-top: 0.5rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats div:nth-child(3) { border-left: 0; } .stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- makers ---------- */

.makers { text-align: center; }
.makers-names { font-weight: 250; font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.14em; font-size: clamp(1.5rem, 3.6vw, 3rem); line-height: 1.2; margin: 1.4rem 0 clamp(40px, 5vw, 64px); }
.makers-names > p { margin: 0; }
.makers-names .amp { display: block; font-size: 0.5em; color: var(--brass); letter-spacing: 0; margin: 0.4em 0; text-transform: none; font-style: italic; font-weight: 300; }

/* ---------- film band ---------- */

.band { position: relative; margin-top: clamp(96px, 13vw, 200px); min-height: max(560px, 100svh); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; isolation: isolate; background: #05070a center / cover no-repeat; }
.band-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; margin: 0; }
.band-video video { width: 100%; height: 100%; object-fit: cover; }
.band::before, .band-shade { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at center, rgba(10, 12, 15, 0.2), rgba(10, 12, 15, 0.65) 80%), linear-gradient(to bottom, var(--ink), transparent 15%, transparent 85%, var(--ink)); }
.band-copy { padding: 0 var(--gutter); }
.band-copy .chapter-title { margin: 1.4rem 0 2.6rem; }
.band-copy .wp-block-buttons { justify-content: center; }

/* ---------- first flight, controls, questions ---------- */

.h-section + .steps, .h-section + .lede { margin-top: 2rem; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 clamp(32px, 5vw, 72px); margin-top: clamp(40px, 5vw, 64px); }
.steps > * { counter-increment: step; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.steps > *::before { content: counter(step, upper-roman); display: block; color: var(--brass); font-size: 0.8rem; letter-spacing: 0.2em; margin-bottom: 1rem; }
.steps h3 { font-weight: 400; font-size: 1.05rem; margin-bottom: 0.4rem; }
.steps p { color: var(--muted); font-size: 0.95rem; max-width: 36ch; }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.keys, .keys table { width: 100%; border-collapse: collapse; margin: 0; }
.keys th, .keys td { text-align: left; padding: 0.85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.keys tr:first-child th, .keys tr:first-child td { border-top: 1px solid var(--line); }
.keys th { width: 40%; padding-right: 1rem; font-weight: 300; }
.keys td { color: var(--muted); font-size: 0.95rem; }
kbd { display: inline-block; font-family: inherit; font-size: 0.8rem; font-weight: 400; letter-spacing: 0.04em; padding: 0.2em 0.6em; border: 1px solid var(--line-strong); border-radius: 4px; }

.faq-list { border-bottom: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; font-weight: 400; font-size: 1.02rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-top: 0.45rem; background: linear-gradient(var(--ivory-2), var(--ivory-2)) center / 100% 1px no-repeat, linear-gradient(var(--ivory-2), var(--ivory-2)) center / 1px 100% no-repeat; transition: transform 0.6s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding: 0 0 1.6rem; max-width: 62ch; font-size: 0.98rem; }

/* ---------- footer ---------- */

.footer { margin-top: clamp(120px, 15vw, 220px); border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 112px) var(--gutter) 40px; }
.footer-top { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.7fr); gap: clamp(40px, 6vw, 96px); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }
.footer .wordmark { flex-direction: row; gap: 12px; }
.footer .wp-block-buttons { display: block; }
.footer-lede { color: var(--muted); margin: 1.4rem 0 2rem; max-width: 38ch; font-size: 0.95rem; }
.footer h2 { font-size: 0.64rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ivory-2); margin-bottom: 1.2rem; }
.footer ul { columns: 2; column-gap: 2rem; }
.footer nav[aria-label="Site"] ul, .footer-site ul { columns: 1; }
.footer li { margin-bottom: 0.55rem; break-inside: avoid; font-size: 0.92rem; }
.footer li a { text-decoration: none; color: var(--muted); transition: color 0.4s; }
.footer li a:hover { color: var(--ivory); }
.footer-credits { max-width: var(--max); margin: clamp(48px, 6vw, 80px) auto 0; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 0.8rem; }
.footer-credits p { color: var(--muted); font-size: 0.76rem; line-height: 1.7; max-width: 120ch; }

/* ---------- inner pages ---------- */

.page-head { padding-top: clamp(150px, 18vw, 240px); text-align: center; }
.page-head .display { font-size: clamp(2.2rem, 5.5vw, 4.6rem); margin-top: 1.4rem; }
.page-head .lede { margin-left: auto; margin-right: auto; }
.page-head .crumbs { justify-content: center; }

.crumbs { display: flex; flex-wrap: wrap; gap: 0.7rem; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ivory); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 3.5vw, 48px) clamp(20px, 2.5vw, 32px); }
.card { display: flex; flex-direction: column; text-decoration: none; }
.card img, .card-blank { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--ink-3); filter: saturate(0.8) brightness(0.92); transition: filter 0.9s var(--ease); }
.card:hover img { filter: saturate(1) brightness(1); }
.card-body { display: flex; flex-direction: column; gap: 0.45rem; padding-top: 1.2rem; }
.card-name { font-weight: 250; font-stretch: 122%; text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.25rem; transition: color 0.5s; }
.card:hover .card-name { color: var(--brass); }
.card-note { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

.ac-hero { position: relative; min-height: max(620px, 100svh); display: flex; align-items: center; justify-content: center; text-align: center; isolation: isolate; overflow: hidden; background: var(--ink-3); }
.ac-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(0.85) brightness(0.7); }
.ac-hero .hero-shade { z-index: -1; }
.ac-hero-copy { padding-top: 140px; padding-bottom: 140px; max-width: 1000px; }
.ac-hero-copy .crumbs { justify-content: center; margin-bottom: 2.2rem; }
.ac-hero-copy .hero-kicker { font-size: 0.72rem; font-weight: 500; font-stretch: 112%; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ivory-2); }
.ac-title { font-size: clamp(2rem, 5vw, 4.4rem); margin-top: 1.4rem; }
.ac-hero-copy .hero-lede { margin-left: auto; margin-right: auto; }
.ac-hero-copy .hero-actions { justify-content: center; }
.ac-hero-copy .hero-actions .link { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; }
.photo-credit { position: absolute; right: var(--gutter); bottom: 18px; font-size: 0.7rem; color: rgba(238, 234, 226, 0.55); max-width: 60ch; text-align: right; }
.photo-credit a { color: inherit; }

.ac-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
@media (max-width: 900px) { .ac-intro { grid-template-columns: 1fr; } }
.intro { font-weight: 250; font-size: clamp(1.3rem, 2.1vw, 1.75rem); line-height: 1.5; text-wrap: pretty; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.specs > div { border-top: 1px solid var(--line); padding: 0.9rem 0 1.2rem; }
.specs dt, .spec > :first-child { color: var(--muted); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; }
.specs dd, .spec > :last-child { font-weight: 300; font-size: 1.02rem; margin-top: 0.3rem; }

.prose-grid { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.in-sim .prose-grid { margin-top: clamp(56px, 7vw, 96px); }
@media (max-width: 900px) { .prose-grid { grid-template-columns: 1fr; } }
.prose { max-width: 66ch; }
.prose p { color: var(--ivory-2); line-height: 1.85; }
.prose p + p { margin-top: 1.3rem; }

.in-sim { margin-top: clamp(56px, 7vw, 112px); padding-bottom: clamp(56px, 7vw, 112px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.in-sim .display { text-align: center; }
.in-sim > .wrap > .lede { margin-left: auto; margin-right: auto; text-align: center; }

.ticks li { position: relative; padding: 0.85rem 0 0.85rem 1.8rem; border-bottom: 1px solid var(--line); color: var(--ivory-2); font-size: 0.98rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 0.8rem; height: 1px; background: var(--brass); }
.split .h2 + .ticks, .split .h2 + .keys { margin-top: 1.4rem; }
.split .score { text-align: left; margin-top: 0; }
.split .score-label { margin-left: 0; }

.cta-row { text-align: center; }
.cta-row .wp-block-buttons { justify-content: center; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: end; border-top: 1px solid var(--line); margin-top: clamp(72px, 9vw, 128px); padding-top: 2rem !important; }
.pager a { text-decoration: none; font-weight: 250; font-stretch: 120%; text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.05rem; transition: color 0.4s; }
.pager a:hover { color: var(--brass); }
.pager a span { display: block; color: var(--muted); font-size: 0.6rem; letter-spacing: 0.26em; margin-bottom: 0.4rem; }
.pager a:nth-child(2) { color: var(--muted); font-size: 0.66rem; letter-spacing: 0.24em; }
.pager a:last-child { text-align: right; }

.sources { margin-top: 56px; }
.sources h2 { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 0.8rem; }
.sources li { font-size: 0.86rem; margin-bottom: 0.35rem; }
.sources a { color: var(--muted); }

/* no scrollbars: the page still scrolls */
html, * { scrollbar-width: none; }
::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* scenic flights: a sunrise and a sunset side by side */
.scenic { padding-top: clamp(96px, 13vw, 200px); }
.scenic-head { padding-bottom: clamp(48px, 6vw, 88px); }
.light-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 100svh; overflow: hidden; background: var(--ink-3); }
.light-frame { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.light-frame.is-on { opacity: 1; }
.light-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 9s linear; }
.light-frame.is-on img { transform: scale(1); }
.light-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, var(--ink) 0%, transparent 10%, transparent 90%, var(--ink) 100%); }
.light-pick { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(28px, 3vw, 44px); }
.light-pick button { position: relative; text-align: left; background: none; border: 0; padding: 18px 0 0; color: var(--ivory-2); cursor: pointer; font: inherit; opacity: 0.55; transition: opacity 0.5s var(--ease); }
.light-pick button::before, .light-pick i { content: ""; position: absolute; left: 0; top: 0; height: 1px; }
.light-pick button::before { right: 0; background: rgba(239, 233, 221, 0.18); }
.light-pick i { width: 0; background: var(--brass); }
.light-pick button.is-on { opacity: 1; }
.light-pick button.is-on i { width: 100%; transition: width var(--light-time, 7s) linear; }
.light-pick button:hover, .light-pick button:focus-visible { opacity: 1; }
.light-pick b { display: block; font-weight: 300; font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.14em; font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--ivory); }
.light-pick span { display: block; margin-top: 0.5rem; font-size: 0.9rem; }
@media (max-width: 860px) { .light-stage { aspect-ratio: 4 / 3; } }

/* ---------- WordPress ---------- */

/* the page sits in WordPress's wrappers; they add nothing */
.wp-site-blocks, .wp-block-post-content, .wp-block-template-part { margin: 0; padding: 0; }
.wp-block-group, .wp-block-cover, .wp-block-table, .wp-block-video { box-sizing: border-box; }
figure.wp-block-table { overflow-x: visible; }

/* scenic heading, centred (was inline style) */
.scenic-head .eyebrow, .scenic-title { text-align: center; }
.scenic-title { margin-top: 1.4rem; }
.scenic-head .statement-text { margin-top: 2rem; }

/* the 404 */
.not-found { min-height: 70svh; display: flex; flex-direction: column; justify-content: center; }
.not-found .statement-text { margin-top: 2rem; }
.not-found .wp-block-buttons { margin-top: 2.4rem; gap: 1.2rem; justify-content: center; }

/* a plain page (anything new the owner adds) */
.page-body .prose { margin: 0 auto; }
.page-body .prose > * + * { margin-top: 1.3rem; }
.page-body .prose h2, .page-body .prose h3 { margin-top: 2.6rem; }
.page-body .prose a { color: var(--ivory); }
.page-body .prose ul { list-style: disc; padding-left: 1.2em; }
.page-body .prose ol { list-style: decimal; padding-left: 1.2em; }
.page-body .prose li { color: var(--ivory-2); }
.page-body .prose img { height: auto; }

/* chapters reveal only once the script is running, so the editor and no-script visitors see them */
@media (prefers-reduced-motion: no-preference) {
	html:not(.js) .chapter-copy { opacity: 1; transform: none; }
}

/* ---- blog posts (templates/single.html) ---- */
.page-head .post-meta { margin-top: 1.2rem; color: var(--ivory-2); font-size: .9rem; letter-spacing: .02em; }
.page-head .post-meta a { color: inherit; }
.page-body .post-cover { max-width: 66ch; margin: 0 auto clamp(32px, 5vw, 56px); }
.page-body .post-cover img { display: block; width: 100%; height: auto; border-radius: 4px; }
.page-body .prose figure img { display: block; max-width: 100%; height: auto; }
.page-body .prose figcaption { margin-top: .6rem; color: var(--ivory-2); font-size: .85rem; }
.page-body .prose blockquote { border-left: 2px solid var(--brass, currentColor); padding-left: 1.2rem; color: var(--ivory-2); }

/* ---- the articles page (templates/home.html) ---- */
.article-list .wp-block-post-template { list-style: none; margin: 0 auto; padding: 0; max-width: 72rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 23rem)); justify-content: center; gap: clamp(28px, 4vw, 48px); }
.article-card { display: flex; flex-direction: column; gap: 1.1rem; }
.article-card-image { margin: 0; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, 0.04); }
.article-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.article-card-image a:hover img { transform: scale(1.03); }
.article-card .post-meta { color: var(--ivory-2); font-size: 0.85rem; }
.article-card-title { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.3; margin-top: 0.4rem; }
.article-card-title a { text-decoration: none; }
.article-card-title a:hover { color: var(--brass); }
.article-card-excerpt { color: var(--ivory-2); line-height: 1.7; margin-top: 0.6rem; }
.article-card-excerpt p { margin: 0; }
.article-pages { display: flex; justify-content: space-between; max-width: 72rem; margin: clamp(40px, 6vw, 72px) auto 0; }
.article-pages a { color: var(--ivory); }

/* five menu links: each on one line, tightened as the screen narrows, hidden (like on phones) before
   they would crowd the centred wordmark */
.nav nav a { white-space: nowrap; }
@media (max-width: 1540px) { .nav nav, .nav nav ul { gap: 1.1rem; } .nav nav a { letter-spacing: 0.16em; } }
@media (max-width: 1300px) { .nav nav, .nav nav ul { gap: 0.8rem; } .nav nav a { letter-spacing: 0.1em; } }
@media (max-width: 1200px) {
	.nav { grid-template-columns: 1fr auto; }
	.nav nav { display: none; }
	.nav .wordmark { justify-self: start; flex-direction: row; gap: 10px; }
}
