/* Movement 01 — the page is a specimen sheet: paper ground, engineer's
   monospace for anything measured, a serif for anything said. Shared by the
   live concept and the case study. */

:root {
	--paper: #e7e3da;
	--ink: #241f1a;
	--dim: #7d746a;
	--rule: rgba(36, 31, 26, 0.18);
	--rule-strong: rgba(36, 31, 26, 0.45);
	--accent: #8a4b22;
	--mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--mono);
	font-size: 13px;
	line-height: 1.8;
}

a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
a:hover { border-bottom-color: var(--rule-strong); }

/* — the plate ——————————————————————————————————————————————————— */

body.plate { overflow: hidden; }

#stage { position: fixed; inset: 0; cursor: grab; }
#stage.is-dragging { cursor: grabbing; }

.hud {
	position: fixed;
	inset: 0;
	pointer-events: none;
	padding: clamp(16px, 3vw, 38px);
	display: grid;
	grid-template-rows: auto 1fr auto;
	font-size: 11px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.hud a { pointer-events: auto; }

.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.row.bottom { align-items: flex-end; }

.hud-nav { display: flex; gap: 18px; color: var(--dim); }
.hud-nav a { border-bottom: 0; }
.hud-nav a:hover { color: var(--ink); }

.title {
	font-family: var(--serif);
	font-size: clamp(34px, 6vw, 66px);
	line-height: 1;
	letter-spacing: -0.015em;
	text-transform: none;
	font-weight: 400;
	margin: 0 0 14px;
}

.lede {
	max-width: 30ch;
	color: var(--dim);
	line-height: 1.75;
	text-transform: none;
	letter-spacing: 0.01em;
	margin: 0;
	font-size: 12px;
}

.caliber { text-align: right; color: var(--dim); display: grid; gap: 3px; margin: 0; }
.caliber div { display: flex; justify-content: flex-end; gap: 8px; }
.caliber dt, .caliber dd { margin: 0; }
.caliber dd { color: var(--ink); font-variant-numeric: tabular-nums; }

/* — the index of parts ——————————————————————————————————————————
   Hovering the object marks its row, so the drawing and the list are the same
   document. */

.index-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 2px;
	text-align: right;
	color: var(--dim);
	pointer-events: none;
}

.index-list li {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	align-items: baseline;
	transition: color 0.25s ease;
}

.index-list li b { font-weight: 400; font-variant-numeric: tabular-nums; }
.index-list li.is-on { color: var(--accent); }

/* — the pointer label ——————————————————————————————————————————— */

#tag {
	position: fixed;
	transform: translate(0, -50%);
	padding: 5px 9px;
	border: 1px solid var(--rule-strong);
	background: rgba(231, 227, 218, 0.9);
	backdrop-filter: blur(3px);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}

#tag.is-on { opacity: 1; }
#tag em { display: block; font-style: normal; color: var(--dim); text-transform: none; letter-spacing: 0.02em; }

#leader { position: fixed; inset: 0; pointer-events: none; }
#leader line, #leader circle { stroke: var(--rule-strong); fill: none; }

/* — registration marks ——————————————————————————————————————————— */

.mark { position: fixed; width: 9px; height: 9px; border: 1px solid var(--rule); }
.mark.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.mark.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.mark.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.mark.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

#fallback {
	position: fixed;
	inset: 0;
	display: none;
	place-items: center;
	text-align: center;
	padding: 24px;
	color: var(--dim);
}

/* — the case study ——————————————————————————————————————————————— */

.study { max-width: 940px; margin: 0 auto; padding: clamp(24px, 5vw, 68px) clamp(20px, 5vw, 54px) 96px; }

.nav {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--rule);
	font-size: 11px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.nav-links { display: flex; gap: 18px; color: var(--dim); }
.nav-links a { border-bottom: 0; }
.nav-links a:hover { color: var(--ink); }

.study h1 {
	font-family: var(--serif);
	font-size: clamp(32px, 5.4vw, 56px);
	line-height: 1.04;
	letter-spacing: -0.015em;
	font-weight: 400;
	margin: clamp(40px, 7vw, 68px) 0 20px;
	max-width: 20ch;
}

.study .lede-block { max-width: 62ch; color: var(--dim); font-size: 14px; }
.study section { margin-top: clamp(40px, 6vw, 60px); }

.study h2 {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 400;
	color: var(--dim);
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--rule);
}

.study p { max-width: 68ch; margin: 0 0 16px; }
.plate-shot { display: block; width: 100%; margin: clamp(28px, 5vw, 44px) 0 0; border: 1px solid var(--rule); }

.facts, .cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1px;
	background: var(--rule);
	border: 1px solid var(--rule);
	margin-top: clamp(24px, 4vw, 40px);
}

.facts div, .cards article { background: var(--paper); padding: 16px 18px; }
.facts dt { color: var(--dim); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.facts dd { margin: 0; }
.cards article { padding: 22px 20px 24px; }
.cards h3 { font-size: 13px; font-weight: 400; margin: 0 0 10px; }
.cards p { color: var(--dim); margin: 0; }

.study ul { max-width: 68ch; margin: 0; padding-left: 18px; color: var(--dim); }
.study li { margin-bottom: 8px; }
.study code { color: var(--ink); background: rgba(36, 31, 26, 0.07); padding: 1px 5px; }

.study footer {
	margin-top: clamp(48px, 8vw, 80px);
	padding-top: 18px;
	border-top: 1px solid var(--rule);
	color: var(--dim);
	font-size: 11px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

@media (max-width: 820px) {
	.lede, .caliber, .index-list { display: none; }
}
