/* ===========================================================================
   Base page — masthead and prose.

   The shell that every page other than the homepage starts from. Kept small on
   purpose: each page's own sections get designed into it, and this file should
   only ever hold what is genuinely common to all of them.
   =========================================================================== */

/* --- Masthead ------------------------------------------------------------- */

/* Navy by necessity as much as by choice: the header is fixed, dark and
   translucent, so a light band here would put its white type on a near-white
   field for the first 70px of every page. */
.fts-mast {
	position: relative;
	isolation: isolate;
	padding-block: calc(var(--fts-hdr-h) + clamp(2.5rem, 7vw, 4.5rem))
		clamp(2.25rem, 6vw, 3.75rem);
	background:
		radial-gradient(120% 90% at 82% 0%, rgba(58, 107, 196, 0.38) 0%, transparent 60%),
		linear-gradient(168deg, #1b3768 0%, var(--fts-navy) 48%, var(--fts-navy-deep) 100%);
	color: #fff;
}

/* The runway centreline again, closing the band the same way the footer opens
   with it. */
.fts-mast::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 3px;
	background: repeating-linear-gradient(
		90deg,
		rgba(159, 176, 207, 0.55) 0 44px,
		transparent 44px 88px
	);
}

/* Photo variant. The scrim is two stops of gradient rather than one flat
   overlay: the top has to hold white nav type from the fixed header, the bottom
   only has to hold the lede, and a single opacity strong enough for the top
   flattens the photograph everywhere else. */
.fts-mast--shot {
	background:
		linear-gradient(180deg, rgba(8, 17, 38, 0.86) 0%, rgba(8, 17, 38, 0.62) 46%, rgba(8, 17, 38, 0.74) 100%),
		var(--shot) center / cover no-repeat,
		var(--fts-navy-deep);
}

/* Only some mastheads carry a button. */
.fts-mast__cta { margin: clamp(1.4rem, 3vw, 1.9rem) 0 0; }

.fts-mast__h1 {
	margin: 0;
	font-family: var(--fts-font-cond);
	font-weight: 700;
	font-size: clamp(2.4rem, 7.5vw, 4.5rem);
	line-height: 0.94;
	letter-spacing: -0.015em;
	text-transform: uppercase;
	text-wrap: balance;
	color: #fff;
}

.fts-mast__lede {
	margin: clamp(0.85rem, 2vw, 1.15rem) 0 0;
	max-width: 54ch;
	font-size: clamp(1rem, 1.9vw, 1.15rem);
	line-height: 1.6;
	color: var(--fts-mist);
	text-wrap: pretty;
}

/* --- Prose ---------------------------------------------------------------- */

/* Editor output, so it is styled by element rather than by class — whatever the
   page's author writes has to land correctly without them knowing any of this. */
.fts-prose {
	font-size: clamp(1rem, 1.7vw, 1.06rem);
	line-height: 1.7;
	color: var(--fts-slate);
}

.fts-prose > * { max-width: 68ch; }

/* More space above a heading than below it — the gap belongs to what follows. */
.fts-prose h2 {
	margin: clamp(2.25rem, 5vw, 3rem) 0 0.75rem;
	font-family: var(--fts-font-cond);
	font-weight: 700;
	font-size: clamp(1.75rem, 4vw, 2.4rem);
	line-height: 1.02;
	letter-spacing: -0.005em;
	text-transform: uppercase;
	color: var(--fts-navy);
	text-wrap: balance;
}

.fts-prose h3 {
	margin: clamp(1.6rem, 3.5vw, 2.1rem) 0 0.5rem;
	font-family: var(--fts-font);
	font-weight: 700;
	font-size: clamp(1.12rem, 2.2vw, 1.28rem);
	line-height: 1.3;
	color: var(--fts-navy);
}

.fts-prose > *:first-child { margin-top: 0; }

.fts-prose p,
.fts-prose ul,
.fts-prose ol { margin: 0 0 1.15rem; }

.fts-prose ul,
.fts-prose ol { padding-left: 1.35rem; }

.fts-prose li { margin-bottom: 0.45rem; }

.fts-prose li::marker { color: var(--fts-blue); }

.fts-prose strong { color: var(--fts-navy); font-weight: 700; }

.fts-prose a {
	color: var(--fts-navy);
	text-decoration: underline;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
	text-decoration-color: var(--fts-blue-soft);
	transition: text-decoration-color 0.2s ease-out;
}

.fts-prose a:hover,
.fts-prose a:focus-visible { text-decoration-color: var(--fts-blue); }

.fts-prose img { border-radius: 0.75rem; }

.fts-prose blockquote {
	margin: clamp(1.6rem, 3.5vw, 2.1rem) 0;
	padding-left: clamp(1rem, 2.5vw, 1.5rem);
	border-left: 1px solid var(--fts-blue);
	font-size: 1.12em;
	line-height: 1.55;
	color: var(--fts-navy);
}

/* --- Not found ------------------------------------------------------------ */

.fts-find { margin: clamp(1.5rem, 3vw, 2rem) 0 0; max-width: 30rem; }

.fts-find__label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fts-blue-soft);
}

.fts-find__row { display: flex; gap: 0.5rem; }

.fts-find input {
	flex: 1;
	min-width: 0;
	padding: 0.8rem 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 0.5rem;
	background: rgba(255, 255, 255, 0.08);
	font-family: var(--fts-font);
	/* 16px, or iOS Safari zooms the page on focus and never zooms back. */
	font-size: 1rem;
	color: #fff;
	transition: border-color 0.2s ease-out, background 0.2s ease-out;
}

.fts-find input::placeholder { color: rgba(255, 255, 255, 0.55); }

.fts-find input:focus {
	outline: none;
	border-color: #fff;
	background: rgba(255, 255, 255, 0.14);
}

.fts-find input:focus-visible { outline: 2px solid var(--fts-mist); outline-offset: 2px; }

.fts-find .fts-btn { flex: none; padding-inline: 1.2rem; }

/* Routes out. Three columns of destination, not a bulleted list of links: the
   point of this page is to make leaving it easy, so each one is a target the
   size of a card. */
.fts-lost {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.9rem, 2vw, 1.35rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fts-lost__item {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.2rem, 2.4vw, 1.6rem);
	border: 1px solid var(--fts-line);
	border-radius: 0.9rem;
	background: #fff;
	transition: border-color 0.25s ease-out, box-shadow 0.25s ease-out;
}

.fts-lost__item:hover {
	border-color: var(--fts-mist);
	box-shadow: 0 18px 44px -22px rgba(22, 48, 94, 0.45);
}

.fts-lost__h {
	margin: 0 0 0.4rem;
	font-family: var(--fts-font-cond);
	font-weight: 700;
	font-size: clamp(1.3rem, 2.6vw, 1.55rem);
	line-height: 1.06;
	color: var(--fts-navy);
}

.fts-lost__h a { color: inherit; text-decoration: none; }

/* Whole card is the target. */
.fts-lost__h a::after { content: ""; position: absolute; inset: 0; }

.fts-lost__p {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--fts-slate);
	text-wrap: pretty;
}

.fts-lost__go { margin-top: auto; color: var(--fts-navy); }
.fts-lost__item:hover .fts-arw { transform: translateX(3px); }

@media (max-width: 60rem) {
	.fts-lost { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
	.fts-lost { grid-template-columns: 1fr; }
	.fts-find__row { flex-direction: column; }
	.fts-find .fts-btn { justify-content: center; }
}
