/*
 * IbisDNA — mid-century technical-poster direction.
 *
 * Reference frame: Erik Nitsche's General Dynamics series (1955-60), Will Burtin's Scope
 * diagrams for Upjohn, Ladislav Sutnar's catalog navigation, Giovanni Pintori's Olivetti
 * advertising, Paul Rand at IBM. Flat ink on warm stock. No gradients, no shadows, no
 * rounded corners, no blur, no motion. Hierarchy comes from scale, rule weight, and
 * full-bleed color fields.
 */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("/fonts/archivo-latin.woff2") format("woff2");
}

:root {
	--ink: #261d11;
	--paper: #f2e2c4;
	--blue: #0477bf;
	--yellow: #f2b705;
	--oxide: #cf472c;

	--paper-hi: color-mix(in srgb, var(--paper) 52%, #fff);
	--rule-faint: color-mix(in srgb, var(--ink) 22%, transparent);
	--ink-soft: color-mix(in srgb, var(--ink) 68%, transparent);
	--paper-soft: color-mix(in srgb, var(--paper) 74%, transparent);

	--canvas: 82rem;
	--gutter: clamp(1.25rem, 4vw, 3.5rem);
	--rule: 3px;

	--sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	font-synthesis: none;
	line-height: 1.6;
}

::selection {
	background: var(--yellow);
	color: var(--ink);
}

[id] {
	scroll-margin-top: 1.5rem;
}

a:focus-visible,
.skip-link:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 3px;
}

.skip-link {
	position: fixed;
	z-index: 20;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.6rem 0.9rem;
	background: var(--ink);
	color: var(--paper);
	font-weight: 600;
	transform: translateY(-180%);
}

.skip-link:focus {
	transform: translateY(0);
}

/* Content wrappers that sit inside an already full-bleed parent. */
.masthead-inner,
.creed-inner,
.footer-inner,
.colophon {
	width: min(100%, var(--canvas));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/*
 * Sections that carry their own colour field or edge rule must run to the viewport edge, so
 * they stay full width and inset their content with padding instead. Constraining the box
 * itself would strand the field and the rule short of the trim above --canvas.
 */
.hero,
.plate-section {
	padding-inline: max(var(--gutter), calc((100% - var(--canvas)) / 2 + var(--gutter)));
}

/* Press color bar — the registration strip printed in the trim of a press sheet. */

.colorbar {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	height: 0.5rem;
}

.colorbar span:nth-child(1) { background: var(--oxide); }
.colorbar span:nth-child(2) { background: var(--yellow); }
.colorbar span:nth-child(3) { background: var(--blue); }
.colorbar span:nth-child(4) { background: var(--ink); }

/* The key patch has to invert on a dark ground or it reads as a gap in the bar. */
footer .colorbar span:nth-child(4) { background: var(--paper); }

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

.masthead-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	min-height: 5.5rem;
}

.brand {
	display: inline-flex;
	padding-block: 0.75rem;
}

.logo {
	display: block;
	width: auto;
	height: 3.1rem;
}

.logo-body { fill: var(--ink); }
.logo-eye { fill: var(--paper); }
.logo-band { fill: var(--paper); }
.logo-band-accent { fill: var(--oxide); }

.logo-wordmark {
	fill: var(--ink);
	font-family: var(--sans);
	font-size: 250px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.masthead nav {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1rem, 2.5vw, 2.25rem);
}

.masthead nav a {
	color: var(--ink);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

.masthead nav a:hover {
	box-shadow: inset 0 -3px var(--oxide);
}

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

.kicker {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.5;
	text-transform: uppercase;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1,
h2 {
	font-weight: 700;
	letter-spacing: -0.028em;
	line-height: 0.98;
	text-wrap: balance;
}

h1 {
	max-width: 15ch;
	margin-block: 1.5rem 1.75rem;
	font-size: clamp(2.9rem, 6.2vw, 5.5rem);
}

h2 {
	max-width: 20ch;
	margin-block: 0.85rem 0;
	font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
	margin-bottom: 0.6rem;
	font-size: 1.1875rem;
	font-weight: 700;
	letter-spacing: -0.012em;
	line-height: 1.25;
}

.lead {
	max-width: 38ch;
	margin-bottom: 2.5rem;
	font-size: clamp(1.15rem, 1.8vw, 1.4rem);
	line-height: 1.45;
}

.footnote {
	max-width: 60ch;
	margin: 3rem 0 0;
	font-size: 0.875rem;
	line-height: 1.55;
}

.footnote strong {
	font-weight: 700;
}

/* Buttons -------------------------------------------------------------- */

.button {
	display: inline-flex;
	align-items: center;
	min-height: 3.5rem;
	padding: 0 1.75rem;
	border: var(--rule) solid var(--ink);
	background: var(--yellow);
	color: var(--ink);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.button:hover {
	background: var(--ink);
	color: var(--yellow);
}

.button-quiet {
	display: inline-flex;
	align-items: center;
	min-height: 3.5rem;
	color: var(--ink);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration-color: var(--oxide);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.25em;
}

.button-quiet:hover {
	color: var(--oxide);
}

/* Hero ----------------------------------------------------------------- */

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: center;
	padding-block: clamp(3rem, 7vw, 6rem);
	border-bottom: var(--rule) solid var(--ink);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	align-items: center;
}

.plate {
	margin: 0;
	padding: clamp(1.25rem, 2.5vw, 2rem);
	border: var(--rule) solid var(--ink);
	background-color: var(--paper-hi);
	background-image: radial-gradient(var(--rule-faint) 1px, transparent 1px);
	background-position: 0 0;
	background-size: 9px 9px;
}

.lean-chart {
	display: block;
	width: 100%;
	height: auto;
}

.chart-axis line {
	stroke: var(--ink);
	stroke-dasharray: 5 5;
	stroke-width: 2;
}

.chart-track {
	stroke: var(--rule-faint);
	stroke-width: 1;
}

.chart-label {
	fill: var(--ink);
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.07em;
}

.chart-cap {
	fill: var(--ink-soft);
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-anchor: middle;
}

.chart-cap-left { text-anchor: start; }
.chart-cap-right { text-anchor: end; }

/* Overprint: bands crossing the midline darken, the way two screen inks would. */
.band-a,
.band-b,
.band-c {
	mix-blend-mode: multiply;
}

.band-a { fill: var(--oxide); }
.band-b { fill: var(--blue); }
.band-c { fill: var(--yellow); }

.plate figcaption {
	margin-top: 1rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

/* Plate sections ------------------------------------------------------- */

.plate-section {
	padding-block: clamp(3.5rem, 7vw, 6rem);
	border-bottom: var(--rule) solid var(--ink);
}

.plate-head {
	display: grid;
	grid-template-columns: minmax(0, auto) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
}

.plate-number {
	margin: 0;
	color: var(--oxide);
	font-size: clamp(3.5rem, 7vw, 6rem);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.05em;
	line-height: 0.8;
}

.plate-intro {
	max-width: 52ch;
	margin: 1.75rem 0 0;
	font-size: 1.125rem;
}

/* Ledger (report contents) --------------------------------------------- */

.ledger {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	margin: clamp(3rem, 6vw, 4.5rem) 0 0;
	padding: 0;
	border-top: var(--rule) solid var(--ink);
	list-style: none;
}

.ledger li {
	padding: 1.75rem 2rem 0;
}

.ledger li:first-child { padding-left: 0; }
.ledger li:last-child { padding-right: 0; }

.ledger li + li {
	border-left: 1px solid var(--rule-faint);
}

.ledger-mark {
	width: 2.25rem;
	height: 2.25rem;
	margin: 0 0 1.25rem;
	background: var(--blue);
	color: var(--paper);
	font-size: 1rem;
	font-weight: 700;
	line-height: 2.25rem;
	text-align: center;
}

.ledger p:last-child {
	margin-bottom: 0;
}

/* Creed band ----------------------------------------------------------- */

.creed {
	background: var(--oxide);
	color: var(--paper);
	border-bottom: var(--rule) solid var(--ink);
}

.creed-inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
	padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.creed p {
	margin: 0;
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

/* Colour fields -------------------------------------------------------- */

.band-yellow {
	background: var(--yellow);
}

.band-yellow .plate-number {
	color: var(--ink);
}

.band-ink {
	background: var(--ink);
	color: var(--paper);
}

.band-ink .plate-number {
	color: var(--yellow);
}

/* Steps ---------------------------------------------------------------- */

.steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	margin: clamp(3rem, 6vw, 4.5rem) 0 0;
	padding: 0;
	border-top: var(--rule) solid var(--ink);
	list-style: none;
}

.steps li {
	padding: 1.5rem 1.75rem 0;
}

.steps li:first-child { padding-left: 0; }
.steps li:last-child { padding-right: 0; }

.steps li + li {
	border-left: 1px solid var(--ink);
}

.step-number {
	margin: 0 0 1rem;
	font-size: 2.25rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.04em;
	line-height: 1;
}

.steps p:last-child {
	margin-bottom: 0;
	font-size: 0.9375rem;
}

/* Privacy terms -------------------------------------------------------- */

.terms {
	margin: clamp(3rem, 6vw, 4.5rem) 0 0;
	padding: 0;
	border-top: var(--rule) solid var(--paper);
	list-style: none;
	columns: 2;
	column-gap: clamp(2rem, 5vw, 4rem);
}

.terms li {
	padding: 1.1rem 0 1.1rem 2.25rem;
	border-bottom: 1px solid color-mix(in srgb, var(--paper) 30%, transparent);
	break-inside: avoid;
}

.terms li::before {
	float: left;
	width: 1.25rem;
	height: 0.4rem;
	margin: 0.55rem 0 0 -2.25rem;
	background: var(--yellow);
	content: "";
}

.band-ink .footnote {
	color: var(--paper-soft);
}

/* Offer ---------------------------------------------------------------- */

.offer {
	padding: clamp(3.5rem, 7vw, 6rem) var(--gutter);
	background: var(--blue);
	border-bottom: var(--rule) solid var(--ink);
}

.offer-inner {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
	width: min(100%, calc(var(--canvas) - 2 * var(--gutter)));
	margin-inline: auto;
	padding: clamp(2rem, 4vw, 3.5rem);
	border: var(--rule) solid var(--ink);
	background: var(--paper);
}

.price {
	margin: 0.5rem 0 0.75rem;
	color: var(--oxide);
	font-size: clamp(6rem, 15vw, 11rem);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: -0.06em;
	line-height: 0.8;
}

.price span {
	font-size: 0.36em;
	letter-spacing: -0.02em;
	vertical-align: 0.9em;
}

.price-caption {
	margin-bottom: 2rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.offer-copy h2 {
	margin-bottom: 1.5rem;
}

.offer-copy p {
	max-width: 46ch;
}

.offer-copy p:last-child {
	margin-bottom: 0;
}

/* Policies ------------------------------------------------------------- */

.policy-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: clamp(3rem, 6vw, 4.5rem);
	border-top: var(--rule) solid var(--ink);
	font-size: 0.9375rem;
}

.policy-grid article {
	padding: 1.75rem 2rem 0;
}

.policy-grid article:first-child { padding-left: 0; }
.policy-grid article:last-child { padding-right: 0; }

.policy-grid article + article {
	border-left: 1px solid var(--rule-faint);
}

.policy-grid p:last-child {
	margin-bottom: 0;
}

/* Footer --------------------------------------------------------------- */

footer {
	background: var(--ink);
	color: var(--paper);
}

.footer-inner {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.75rem, 4vw, 3rem);
	padding-block: clamp(3rem, 5vw, 4rem);
}

.footer-brand p {
	margin: 1rem 0 0;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
}

.footer-icon {
	display: block;
	width: 3.5rem;
	height: 3.5rem;
}

footer .kicker {
	margin-bottom: 0.4rem;
	color: var(--yellow);
}

footer address {
	font-size: 0.9375rem;
	font-style: normal;
	overflow-wrap: anywhere;
}

footer address p:not(.kicker) {
	margin-bottom: 1.25rem;
}

footer address p:last-child {
	margin-bottom: 0;
}

footer nav {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.4rem;
}

footer a {
	color: var(--paper);
	font-size: 0.9375rem;
	text-decoration-color: var(--yellow);
	text-underline-offset: 0.2em;
}

footer a:hover {
	color: var(--yellow);
}

.colophon {
	margin: 0;
	padding-block: 1.5rem;
	border-top: 1px solid color-mix(in srgb, var(--paper) 25%, transparent);
	color: var(--paper-soft);
	font-size: 0.8125rem;
}

/* Responsive ----------------------------------------------------------- */

@media (max-width: 64rem) {
	.hero,
	.offer-inner {
		grid-template-columns: 1fr;
	}

	.plate-head {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.steps {
		grid-template-columns: repeat(2, 1fr);
	}

	.steps li {
		padding: 1.5rem 1.5rem 1.5rem 0;
		border-bottom: 1px solid var(--ink);
	}

	.steps li:nth-child(odd) { padding-left: 0; }
	.steps li:nth-child(even) { padding-left: 1.5rem; }
	.steps li:nth-child(odd) + li { border-left: 1px solid var(--ink); }
	.steps li:nth-child(even) + li { border-left: 0; }

	.footer-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 48rem) {
	.ledger,
	.policy-grid,
	.creed-inner {
		grid-template-columns: 1fr;
	}

	.ledger li,
	.policy-grid article {
		padding: 1.5rem 0;
	}

	.ledger li + li,
	.policy-grid article + article {
		border-top: 1px solid var(--rule-faint);
		border-left: 0;
	}

	.terms {
		columns: 1;
	}

	.hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.button,
	.button-quiet {
		justify-content: center;
	}
}

@media (max-width: 34rem) {
	.masthead nav {
		gap: 0.9rem;
	}

	.masthead nav a {
		font-size: 0.8125rem;
		letter-spacing: 0.04em;
	}

	.steps {
		grid-template-columns: 1fr;
	}

	.steps li,
	.steps li:nth-child(even) {
		padding: 1.25rem 0;
	}

	.steps li + li {
		border-left: 0 !important;
	}

	.footer-inner {
		grid-template-columns: 1fr;
	}
}

@media print {
	.masthead nav,
	.hero-actions,
	footer nav {
		display: none;
	}
}
