/* Editorial — "The Studio Times"
   Bodoni Moda for titles, Newsreader for text, Plex Mono for labels.
   Fonts live in assets/fonts. Change --brand to recolor the whole issue.
   --display-opsz thickens the Bodoni hairlines: 6 is heaviest, 96 is razor thin. */

@font-face {
	font-family: "Bodoni Moda";
	font-style: italic;
	font-weight: 400 900;
	font-display: swap;
	src: url("../../assets/fonts/bodoni-moda-italic.woff2") format("woff2");
}
@font-face {
	font-family: "Bodoni Moda";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("../../assets/fonts/bodoni-moda-roman.woff2") format("woff2");
}
@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 200 800;
	font-display: swap;
	src: url("../../assets/fonts/newsreader-italic.woff2") format("woff2");
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../../assets/fonts/newsreader-roman.woff2") format("woff2");
}
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../../assets/fonts/plex-mono-400.woff2") format("woff2");
}
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../../assets/fonts/plex-mono-500.woff2") format("woff2");
}
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../../assets/fonts/plex-mono-600.woff2") format("woff2");
}

:root {
	/* The brand colour. Edit this one line. */
	--brand: #9e4dbe;
	--spot: var(--brand);
	--on-spot: #fffdf7;

	--paper: #f2ede3;
	--paper-2: #e9e2d4;
	--ink: #17140f;
	--ink-2: #4a443b;
	--ink-3: #7b7366;
	--rule: #17140f;
	--hair: rgba(23, 20, 15, 0.22);
	--tape: rgba(250, 238, 200, 0.82);
	--frame: #fffdf7;
	--shadow:
		0 1px 1px rgba(30, 20, 10, 0.08),
		0 14px 30px -12px rgba(30, 20, 10, 0.35);

	--display: "Bodoni Moda", Georgia, "Times New Roman", serif;
	--display-opsz: 12;
	--text: "Newsreader", Georgia, "Times New Roman", serif;
	--mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

	--wrap: 1240px;
	--gut: clamp(1.1rem, 4vw, 2.5rem);
	--ease: cubic-bezier(0.2, 0.7, 0.1, 1);
	color-scheme: light;
}

html[data-theme="dark"] {
	--spot: color-mix(in oklch, var(--brand) 58%, white);
	--on-spot: #1a120e;
	--paper: #14120e;
	--paper-2: #1d1a15;
	--ink: #ece5d6;
	--ink-2: #c3baa9;
	--ink-3: #8f8676;
	--rule: #ece5d6;
	--hair: rgba(236, 229, 214, 0.2);
	--tape: rgba(220, 205, 160, 0.55);
	--frame: #f3eee2;
	--shadow:
		0 1px 1px rgba(0, 0, 0, 0.4), 0 18px 34px -12px rgba(0, 0, 0, 0.8);
	color-scheme: dark;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 4.5rem;
	-webkit-text-size-adjust: 100%;
}

#top {
	scroll-margin-top: 0;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem) / 1.6 var(--text);
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
	transition:
		background-color 0.5s var(--ease),
		color 0.5s var(--ease);
}

/* faint paper grain */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0.5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}
a {
	color: inherit;
}
button {
	font: inherit;
	color: inherit;
}
em {
	font-style: italic;
}
h1,
h2,
h3 {
	margin: 0;
	font-weight: 400;
}
p {
	margin: 0;
}
ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}
dl,
dd {
	margin: 0;
}

::selection {
	background: var(--spot);
	color: var(--on-spot);
}

:focus-visible {
	outline: 2px solid var(--spot);
	outline-offset: 3px;
}

.wrap {
	width: min(100% - var(--gut) * 2, var(--wrap));
	margin-inline: auto;
}

.skip {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	background: var(--ink);
	color: var(--paper);
	font: 500 0.8rem var(--mono);
}
.skip:focus {
	top: 1rem;
}

/* ---------- reading ruler (top tick bar) ---------- */

.ruler {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	height: 10px;
	pointer-events: none;
	background:
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12px)
			bottom / 100% 5px no-repeat,
		repeating-linear-gradient(
				90deg,
				var(--ink) 0 1px,
				transparent 1px 120px
			)
			bottom / 100% 10px no-repeat;
	opacity: 0.35;
}

.ruler__fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 100%;
	transform-origin: left;
	transform: scaleX(var(--read, 0));
	background: var(--spot);
	mix-blend-mode: multiply;
}
html[data-theme="dark"] .ruler__fill {
	mix-blend-mode: screen;
}

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

.kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.9rem;
	font: 500 0.74rem/1.4 var(--mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-2);
}

.kicker__no {
	color: var(--spot);
}

.deck {
	max-width: 60ch;
	margin-top: 1.1rem;
	color: var(--ink-2);
	font-size: 1.12em;
	font-style: italic;
	line-height: 1.5;
}

.dropcap::first-letter {
	float: left;
	margin: 0.07em 0.1em 0 -0.02em;
	font: 700 4.3em/0.78 var(--display);
	color: var(--spot);
}

.hand {
	font: italic 400 1rem/1.3 var(--text);
	color: var(--ink-2);
}

.ink {
	position: relative;
	display: inline;
	padding: 0;
	border: 0;
	background: linear-gradient(var(--spot), var(--spot)) left 100% / 100% 1px
		no-repeat;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-size 0.35s var(--ease),
		color 0.25s;
}

.ink:hover {
	background-size: 100% 100%;
	color: var(--on-spot);
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.85rem 1.25rem 0.8rem;
	border: 1px solid var(--ink);
	background: var(--ink);
	color: var(--paper);
	font: 500 0.78rem/1 var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 4px 4px 0 var(--spot);
	transition:
		transform 0.2s var(--ease),
		box-shadow 0.2s var(--ease);
}

.btn:hover {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 var(--spot);
}
.btn:active {
	transform: translate(3px, 3px);
	box-shadow: 1px 1px 0 var(--spot);
}

.btn--inv {
	background: var(--paper);
	color: var(--ink);
	border-color: var(--paper);
}

.rule {
	display: block;
	height: 1px;
	margin-top: 1.6rem;
	background: var(--rule);
	transform-origin: left;
	transform: scaleX(0);
	transition: transform 1.2s var(--ease);
}

.rule::after {
	content: "";
	display: block;
	height: 1px;
	margin-top: 3px;
	background: var(--rule);
}

.is-in .rule,
.rule.is-in {
	transform: scaleX(1);
}

/* ---------- masthead ---------- */

.mast {
	padding-top: 18px;
	border-bottom: 1px solid var(--rule);
}

.mast__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--hair);
	font: 500 0.7rem/1.2 var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-2);
}

.mast__tools {
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.lang {
	display: inline-flex;
	border: 1px solid var(--ink);
}

.lang a,
.lang span {
	padding: 0.45rem 0.55rem;
	font: 500 0.68rem/1 var(--mono);
	letter-spacing: 0.12em;
	text-decoration: none;
}

.lang__on {
	background: var(--ink);
	color: var(--paper);
}
.lang a:hover {
	background: var(--spot);
	color: var(--on-spot);
}

.edition {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--ink);
	border-radius: 99px;
	background: transparent;
	font: 500 0.68rem/1 var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background-color 0.3s,
		color 0.3s;
}
.edition:hover {
	background: var(--ink);
	color: var(--paper);
}
.edition__moon {
	display: none;
}
html[data-theme="dark"] .edition__sun {
	display: none;
}
html[data-theme="dark"] .edition__moon {
	display: inline;
}

.mast__name {
	margin: 0.2rem 0 0;
	text-align: center;
	font: 500 clamp(2.4rem, 7.4vw, 7rem)/0.95 var(--display);
	letter-spacing: 0;
	font-style: italic;
}

.mast__name a {
	text-decoration: none;
	display: inline-block;
	padding: 0.12em 0 0.04em;
}

.mast__line {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	padding: 0.55rem 0 0.8rem;
	font: italic 400 0.98rem/1.3 var(--text);
	color: var(--ink-2);
}

.mast__line span[aria-hidden] {
	color: var(--spot);
	font-style: normal;
}

.sections {
	position: sticky;
	top: 0;
	z-index: 40;
	border-top: 3px double var(--rule);
	background: color-mix(in srgb, var(--paper) 92%, transparent);
	backdrop-filter: blur(8px);
}

.sections ol {
	display: flex;
	justify-content: center;
	gap: 0.2rem clamp(0.6rem, 3vw, 2.6rem);
	overflow-x: auto;
	scrollbar-width: none;
}

.sections a {
	display: flex;
	align-items: baseline;
	gap: 0.45rem;
	padding: 0.85rem 0.2rem;
	white-space: nowrap;
	font: 500 0.74rem/1 var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition:
		border-color 0.25s,
		color 0.25s;
}

.sections a span {
	color: var(--spot);
}
.sections a:hover,
.sections a[aria-current="true"] {
	border-bottom-color: var(--spot);
}

/* ---------- cover ---------- */

.cover {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
	grid-template-areas:
		"text photo"
		"toc toc";
	gap: clamp(2rem, 5vw, 4.5rem) clamp(2rem, 5vw, 5rem);
	padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.cover__text {
	grid-area: text;
	align-self: center;
}

.cover__title {
	margin-top: 1rem;
}

.cover__name {
	display: block;
	margin-bottom: 0.6rem;
	font: 500 0.82rem/1.2 var(--mono);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--spot);
}

.cover__head {
	display: block;
	font: 500 clamp(3rem, 8.4vw, 7.6rem)/0.92 var(--display);
	letter-spacing: 0;
	text-wrap: balance;
}

.cover__head em {
	font-weight: 400;
	color: var(--spot);
}

.cover__deck {
	max-width: 34rem;
	margin-top: 1.8rem;
	font-size: 1.12em;
	color: var(--ink-2);
}

.cover__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.1rem 1.6rem;
	margin-top: 2rem;
	font-size: 1.05rem;
}

/* word-by-word headline set */
.w {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	padding-bottom: 0.08em;
	margin-bottom: -0.08em;
}

.w > span {
	display: inline-block;
	transform: translateY(105%);
	transition: transform 0.9s var(--ease);
	transition-delay: calc(var(--i) * 70ms + 150ms);
}

.is-set .w > span {
	transform: none;
}

/* taped photo — the polaroid Malcolm liked, kept on purpose */
.cover__photo {
	grid-area: photo;
	position: relative;
	align-self: center;
	justify-self: center;
	width: min(100%, 420px);
	margin: 0;
}

.taped {
	--rot: 2.5deg;
	position: relative;
	padding: 0.75rem 0.75rem 3.2rem;
	background: var(--frame);
	box-shadow: var(--shadow);
	transform: rotate(var(--rot)) perspective(900px) rotateX(var(--rx, 0deg))
		rotateY(var(--ry, 0deg));
	transition: transform 0.5s var(--ease);
}

.taped img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	filter: contrast(1.04) saturate(0.92);
}

.tape {
	position: absolute;
	z-index: 2;
	top: -14px;
	left: 50%;
	width: 96px;
	height: 28px;
	transform: translateX(-50%) rotate(-3deg);
	background: var(--tape);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	clip-path: polygon(
		0 8%,
		6% 0,
		12% 10%,
		20% 2%,
		30% 8%,
		42% 0,
		55% 9%,
		66% 1%,
		78% 9%,
		88% 0,
		100% 7%,
		97% 50%,
		100% 92%,
		90% 100%,
		80% 92%,
		68% 100%,
		56% 91%,
		44% 100%,
		32% 92%,
		20% 100%,
		10% 92%,
		0 100%,
		3% 50%
	);
}

.taped--square {
	--rot: -2deg;
	padding-bottom: 0.75rem;
}
.taped--square img {
	aspect-ratio: 1;
}
.taped--square .tape {
	left: 18%;
	transform: translateX(-50%) rotate(-28deg);
	top: 2px;
}

.cover__photo figcaption {
	position: absolute;
	left: 1.2rem;
	right: 1.2rem;
	bottom: 0.7rem;
	transform: rotate(2.5deg);
	text-align: center;
	color: #4a443b;
}

.seal {
	position: absolute;
	right: -2.2rem;
	bottom: 2.4rem;
	width: 116px;
	height: 116px;
	color: var(--spot);
	animation: spin 26s linear infinite;
	pointer-events: none;
}

.seal text {
	fill: currentColor;
	font: 600 9.6px var(--mono);
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.seal .seal__mid {
	font: italic 800 26px var(--display);
	letter-spacing: 0;
}

.seal__ring {
	fill: color-mix(in srgb, var(--paper) 70%, transparent);
	stroke: currentColor;
	stroke-width: 1;
}
.seal circle + circle {
	fill: none;
}

@keyframes spin {
	to {
		transform: rotate(1turn);
	}
}

/* table of contents */
.toc {
	grid-area: toc;
	border-top: 1px solid var(--rule);
	padding-top: 1.1rem;
}

.toc__title {
	font: 500 0.74rem/1 var(--mono);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink-2);
}

.toc ol {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-top: 1rem;
	border-left: 1px solid var(--hair);
}

.toc a {
	display: grid;
	gap: 0.3rem;
	height: 100%;
	padding: 0.3rem 1rem 0.7rem;
	border-right: 1px solid var(--hair);
	text-decoration: none;
	transition: background-color 0.3s;
}

.toc a:hover {
	background: var(--paper-2);
}

.toc__no {
	font: 700 2.1rem/1 var(--display);
	color: var(--spot);
	font-variant-numeric: lining-nums;
}

.toc__t {
	font: 500 1.15rem/1.2 var(--display);
}

.toc__s {
	font-size: 0.9rem;
	line-height: 1.35;
	font-style: italic;
	color: var(--ink-2);
}

/* ---------- wire ticker ---------- */

.wire {
	display: flex;
	align-items: stretch;
	border-block: 1px solid var(--rule);
	background: var(--ink);
	color: var(--paper);
	overflow: hidden;
}

.wire__label {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	padding: 0 1rem;
	background: var(--spot);
	color: var(--on-spot);
	font: 600 0.72rem/1 var(--mono);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.wire__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.wire__track {
	display: flex;
	width: max-content;
	animation: marquee var(--dur, 40s) linear infinite;
}

.wire:hover .wire__track {
	animation-play-state: paused;
}

.wire ul {
	display: flex;
	flex: none;
}

.wire li {
	display: flex;
	align-items: center;
	padding: 0.85rem 0;
	white-space: nowrap;
	font: italic 500 1.15rem/1 var(--display);
}

.wire li::after {
	content: "✦";
	margin: 0 1.6rem;
	font-style: normal;
	font-size: 0.7rem;
	color: var(--spot);
}

@keyframes marquee {
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

/* ---------- features ---------- */

.feature {
	padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.feature__head {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: end;
	gap: 0.6rem 2rem;
}

.feature__head .kicker {
	grid-column: 1 / -1;
}

.feature__title {
	font: 500 clamp(4rem, 15vw, 12.5rem)/0.82 var(--display);
	letter-spacing: 0;
}

.feature__tag {
	padding-bottom: 0.6em;
	font: italic 400 clamp(1.4rem, 3vw, 2.4rem)/1.1 var(--display);
	color: var(--ink-2);
	text-wrap: balance;
}

.feature__head .rule {
	grid-column: 1 / -1;
	margin-top: clamp(2.4rem, 4.6vw, 3.6rem);
}

.feature__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
	gap: clamp(2rem, 5vw, 5rem);
	margin-top: clamp(2rem, 5vw, 3.5rem);
	align-items: start;
}

.feature--flip .feature__grid {
	grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
}

.lede {
	font-size: 1.22em;
	line-height: 1.55;
	max-width: 44rem;
}

.meta {
	display: grid;
	grid-template-columns: repeat(4, auto);
	justify-content: start;
	gap: 0.6rem 2.2rem;
	margin: 2rem 0;
	padding: 0.9rem 0;
	border-block: 1px solid var(--hair);
}

.meta dt,
.facts dt,
.contact__list dt {
	font: 500 0.66rem/1.3 var(--mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.meta > div,
.feature__grid,
.feature__body {
	min-width: 0;
}

.meta dd {
	margin-top: 0.25rem;
	font-size: 0.95rem;
	line-height: 1.35;
	overflow-wrap: break-word;
}

.columns {
	columns: 2 18rem;
	column-gap: 2.6rem;
	column-rule: 1px solid var(--hair);
}

.point {
	break-inside: avoid;
	margin-bottom: 1.6rem;
	counter-increment: pt;
}

.point h3 {
	font: 500 1.3rem/1.15 var(--display);
	margin-bottom: 0.45rem;
}

.point h3::before {
	content: "§" counter(pt) " ";
	color: var(--spot);
	font-weight: 400;
}

.point p {
	color: var(--ink-2);
	font-size: 0.98em;
}

.pull {
	position: relative;
	margin: 2rem 0 2.4rem;
	padding: 1.5rem 0 1.4rem;
	border-block: 3px double var(--rule);
}

.pull p {
	font: italic 500 clamp(1.6rem, 3.2vw, 2.5rem)/1.12 var(--display);
	text-wrap: balance;
}

.pull::before {
	content: "“";
	position: absolute;
	top: -0.22em;
	left: 50%;
	transform: translateX(-50%);
	padding: 0 0.16em;
	background: linear-gradient(var(--paper), var(--paper)) top / 100% 0.4em no-repeat;
	color: var(--spot);
	font: 700 4rem/1 var(--display);
	transition: color 0.5s var(--ease);
}

/* figures */
.fig {
	margin: 0;
}

.fig--desk {
	margin-top: clamp(2rem, 5vw, 3.5rem);
}

.fig__cap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1rem;
	margin-top: 0.9rem;
	padding-top: 0.6rem;
	border-top: 1px solid var(--hair);
	font: 400 0.76rem/1.3 var(--mono);
	color: var(--ink-2);
}

.fig__no {
	font-weight: 600;
	color: var(--spot);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fig__what {
	font-style: italic;
	font-family: var(--text);
	font-size: 1rem;
	margin-right: auto;
}

.toggle,
.tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0;
	border: 1px solid var(--ink);
}

.toggle button,
.tabs button {
	padding: 0.45rem 0.7rem;
	border: 0;
	border-right: 1px solid var(--ink);
	background: transparent;
	font: 500 0.66rem/1 var(--mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background-color 0.2s,
		color 0.2s;
}

.toggle button:last-child,
.tabs button:last-child {
	border-right: 0;
}

.toggle button:hover,
.tabs button:hover {
	background: var(--paper-2);
}

.toggle button[aria-pressed="true"],
.tabs button[aria-pressed="true"] {
	background: var(--ink);
	color: var(--paper);
}

.fig--phone .fig__cap {
	display: grid;
	justify-items: start;
}
.fig--phone .tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100%;
	border-right: 0;
	border-bottom: 0;
}
.fig--phone .tabs button {
	border-right: 1px solid var(--ink);
	border-bottom: 1px solid var(--ink);
	text-align: left;
	padding: 0.6rem 0.7rem;
}

.browser {
	overflow: hidden;
	border: 1px solid var(--rule);
	background: var(--frame);
	box-shadow: var(--shadow);
}

.browser__bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0.55rem 0.8rem;
	border-bottom: 1px solid #17140f;
	background: #e9e2d4;
	color: #4a443b;
	font: 500 0.7rem/1 var(--mono);
}

.browser__bar i {
	width: 10px;
	height: 10px;
	border: 1px solid #17140f;
	border-radius: 50%;
}

.browser__bar span {
	min-width: 0;
	margin-left: 0.8rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.browser img,
.phone img {
	width: 100%;
	transition:
		opacity 0.35s var(--ease),
		filter 0.35s var(--ease),
		transform 0.5s var(--ease);
}

.is-swapping {
	opacity: 0.15;
	filter: blur(4px);
	transform: scale(0.99);
}

.fig--phone {
	position: sticky;
	top: 5rem;
}

.phone {
	position: relative;
	overflow: hidden;
	padding: 10px;
	border-radius: 38px;
	background: #17140f;
	box-shadow:
		var(--shadow),
		inset 0 0 0 1.5px #3a352d;
}

.phone img {
	border-radius: 29px;
	aspect-ratio: 390 / 844;
	object-fit: cover;
}

.phone__notch {
	position: absolute;
	z-index: 2;
	top: 18px;
	left: 50%;
	width: 28%;
	height: 20px;
	transform: translateX(-50%);
	border-radius: 20px;
	background: #000;
}

/* ---------- practice / dispatches ---------- */

.section-head h2 {
	margin-top: 0.9rem;
	max-width: 18ch;
	padding-bottom: 0.12em;
	font: 500 clamp(2.4rem, 6vw, 5rem)/0.98 var(--display);
	letter-spacing: 0;
	text-wrap: balance;
}

.section-head h2 em {
	color: var(--spot);
	font-weight: 400;
}

.practice {
	padding: clamp(4rem, 9vw, 7rem) 0;
}

.dispatch {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	margin-top: 2.5rem;
	border-top: 1px solid var(--rule);
	border-left: 1px solid var(--hair);
}

.dispatch li {
	padding: 1.4rem 1.3rem 1.8rem;
	border-right: 1px solid var(--hair);
	border-bottom: 1px solid var(--hair);
	transition: background-color 0.3s;
}

.dispatch li:hover {
	background: var(--paper-2);
}

.dispatch__fig {
	font: 800 clamp(2.8rem, 5vw, 3.8rem)/1 var(--display);
	letter-spacing: -0.03em;
	color: var(--spot);
}

.dispatch__label {
	margin: 0.45rem 0 1rem;
	font: 500 0.68rem/1.35 var(--mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.dispatch h3 {
	font: 500 1.25rem/1.15 var(--display);
	margin-bottom: 0.5rem;
}
.dispatch li > p:last-child {
	font-size: 0.96em;
	color: var(--ink-2);
}

/* ---------- about ---------- */

.about {
	padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
}

.about__grid {
	display: grid;
	grid-template-columns: minmax(200px, 300px) minmax(0, 1fr) minmax(
			220px,
			300px
		);
	gap: clamp(2rem, 4vw, 3.5rem);
	margin-top: 2.5rem;
	align-items: start;
}

.about__photo {
	margin: 0.6rem 0 0;
}

.about__text p + p {
	margin-top: 1.1rem;
}
.about__text p {
	max-width: 38rem;
}

.about__side {
	padding-left: 1.6rem;
	border-left: 1px solid var(--hair);
	font-size: 0.95rem;
}

.facts {
	display: grid;
	gap: 0.75rem;
}
.facts dd {
	margin-top: 0.15rem;
}

.side__h {
	margin: 1.6rem 0 0.6rem;
	font: 500 0.66rem/1.3 var(--mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.skills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.skills li {
	padding: 0.2rem 0.5rem;
	border: 1px solid var(--hair);
	font: 400 0.74rem/1.3 var(--mono);
}

.edu {
	display: grid;
	gap: 0.7rem;
}
.edu strong {
	display: block;
	font-weight: 600;
	line-height: 1.3;
}
.edu span {
	font-size: 0.88rem;
	color: var(--ink-2);
}

/* ---------- contact ---------- */

.contact {
	padding: clamp(4rem, 9vw, 7rem) 0;
	background: var(--ink);
	color: var(--paper);
	--hair: color-mix(in srgb, var(--paper) 22%, transparent);
}

.contact .kicker {
	color: color-mix(in srgb, var(--paper) 70%, transparent);
}

.contact h2 {
	margin-top: 1rem;
	max-width: 16ch;
	font: 500 clamp(2.6rem, 7vw, 6rem)/0.96 var(--display);
	letter-spacing: 0;
	text-wrap: balance;
}

.contact h2 em {
	color: var(--spot);
	font-weight: 400;
}
.contact .deck {
	color: color-mix(in srgb, var(--paper) 78%, transparent);
}

.contact__mail {
	margin-top: 2.4rem;
	font: italic 500 clamp(1.6rem, 5.2vw, 4.2rem)/1.05 var(--display);
	overflow-wrap: anywhere;
}

.contact__mail a {
	text-decoration: none;
	background: linear-gradient(var(--spot), var(--spot)) left 92% / 0 0.08em
		no-repeat;
	transition: background-size 0.6s var(--ease);
}

.contact__mail a:hover,
.contact.is-in .contact__mail a {
	background-size: 100% 0.08em;
}

.contact__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.8rem;
	margin-top: 2rem;
}

.ink--btn {
	font-size: 1rem;
}
.contact .ink:hover {
	color: var(--ink);
}

.contact__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 1rem 2rem;
	margin-top: 3rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--hair);
}

.contact__list dt {
	color: color-mix(in srgb, var(--paper) 55%, transparent);
}
.contact__list dd {
	margin-top: 0.3rem;
	overflow-wrap: anywhere;
}

/* ---------- colophon ---------- */

.colophon {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.8rem 0 2.4rem;
	font: 400 0.76rem/1.5 var(--mono);
	color: var(--ink-2);
}

/* ---------- toast ---------- */

.toast {
	position: fixed;
	left: 50%;
	bottom: 1.5rem;
	z-index: 60;
	padding: 0.7rem 1.1rem;
	background: var(--spot);
	color: var(--on-spot);
	font: 500 0.78rem/1 var(--mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transform: translate(-50%, calc(100% + 3rem));
	visibility: hidden;
	transition:
		transform 0.4s var(--ease),
		visibility 0s 0.4s;
	pointer-events: none;
}

.toast.is-on {
	transform: translate(-50%, 0);
	visibility: visible;
	transition-delay: 0s;
}

/* ---------- reveals ---------- */

.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 0.8s var(--ease),
		transform 0.8s var(--ease);
}

.js .reveal.is-in {
	opacity: 1;
	transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1280px) {
	.seal {
		right: 0.4rem;
	}
}

@media (max-width: 1100px) {
	.about__grid {
		grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
	}
	.about__side {
		grid-column: 1 / -1;
		padding-left: 0;
		border-left: 0;
		border-top: 1px solid var(--hair);
		padding-top: 1.4rem;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
		gap: 1.6rem 2.2rem;
		align-items: start;
	}
	.about__side .facts {
		grid-column: 1 / -1;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
		gap: 1rem 1.6rem;
	}
	.about__side .side__h {
		margin-top: 0;
	}
	.side__block {
		min-width: 0;
	}
	.toc ol {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.toc li:nth-child(n + 4) a {
		border-top: 1px solid var(--hair);
	}
	.meta {
		grid-template-columns: repeat(2, auto);
	}
}

@media (max-width: 860px) {
	.cover {
		grid-template-columns: 1fr;
		grid-template-areas: "text" "photo" "toc";
	}
	.cover__photo {
		width: min(78%, 360px);
		margin-top: 1rem;
	}
	.seal {
		right: 0.35rem;
		width: 96px;
		height: 96px;
	}
	.feature__head {
		grid-template-columns: 1fr;
	}
	.feature__title {
		margin-bottom: 0.46em;
	}
	.feature__head .rule {
		margin-top: 1.15rem;
	}
	.feature__tag {
		padding-bottom: 0;
	}
	.feature__grid,
	.feature--flip .feature__grid {
		grid-template-columns: 1fr;
	}
	.fig--phone {
		position: static;
		width: min(100%, 340px);
		margin-inline: auto;
	}
	.feature--flip .fig--phone {
		order: 2;
	}
	.about__grid {
		grid-template-columns: 1fr;
	}
	.about__photo {
		width: min(70%, 300px);
		justify-self: center;
	}
}

@media (max-width: 560px) {
	.sections ol {
		justify-content: flex-start;
	}
	.mast__top {
		justify-content: center;
		text-align: center;
	}
	.mast__loc {
		display: none;
	}
	.toc ol {
		grid-template-columns: 1fr;
		border-left: 0;
	}
	.toc a {
		grid-template-columns: 3rem 1fr;
		border-right: 0;
		border-bottom: 1px solid var(--hair);
		padding: 0.7rem 0;
	}
	.toc li:nth-child(n + 4) a {
		border-top: 0;
	}
	.toc__no {
		grid-row: span 2;
		font-size: 1.8rem;
	}
	.meta {
		grid-template-columns: 1fr 1fr;
		gap: 0.8rem 1.2rem;
	}
	.dropcap::first-letter {
		font-size: 3.6em;
	}
	.wire li {
		font-size: 1rem;
	}
}

@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;
	}
	.wire__track {
		animation: none;
	}
	.w > span {
		transform: none;
	}
	.js .reveal {
		opacity: 1;
		transform: none;
	}
	.rule {
		transform: none;
	}
}

@media print {
	.ruler,
	.sections,
	.wire,
	.toast,
	.seal {
		display: none !important;
	}
	.contact {
		background: none;
		color: #000;
	}
}

/* After every font shorthand, which resets these. Low opsz keeps the hairlines thick. */
.dropcap::first-letter,
.mast__name,
.cover__head,
.seal .seal__mid,
.toc__no,
.toc__t,
.wire li,
.feature__title,
.feature__tag,
.point h3,
.pull p,
.pull::before,
.section-head h2,
.dispatch__fig,
.dispatch h3,
.contact h2,
.contact__mail {
	font-optical-sizing: none;
	font-variation-settings: "opsz" var(--display-opsz);
}
