/**
 * Fettle.
 *
 * The reference object is a duplicate estimate book: one plain grotesque for
 * everything, ruled rows, and the figures in a monospace so they line up in a
 * column the way they do when somebody writes them down for you. There is
 * deliberately no display serif and no second sans — the whole site is Public
 * Sans, with DM Mono used only where there are numbers to align.
 *
 * The colour budget is set by the shader ground, not by taste. The hottest the
 * heat field can reach is #C07A4E, against which the ink reaches 5.11:1, so
 * anything that sits over the ground uses the full ink and gets its hierarchy
 * from size and weight instead of from a lighter colour. Muted ink is only ever
 * used on paper.
 */

/* ------------------------------------------------------------------ fonts */

@font-face {
	font-family: 'Public Sans';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url( '../fonts/publicsans-400-latin.woff2' ) format( 'woff2' );
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Public Sans';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url( '../fonts/publicsans-400-latinext.woff2' ) format( 'woff2' );
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Public Sans Semi';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url( '../fonts/publicsans-600-latin.woff2' ) format( 'woff2' );
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Public Sans Bold';
	font-style: normal;
	font-weight: 700 800;
	font-display: swap;
	src: url( '../fonts/publicsans-700-latin.woff2' ) format( 'woff2' );
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'DM Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url( '../fonts/dmmono-400-latin.woff2' ) format( 'woff2' );
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'DM Mono';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url( '../fonts/dmmono-500-latin.woff2' ) format( 'woff2' );
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----------------------------------------------------------------- tokens */

:root {
	--paper: #f2efea;
	--paper-2: #e9e5de;
	--ink: #1c1917;
	--ink-2: #46403a;   /* on paper only: 8.0:1 */
	--ink-3: #5d564e;   /* on paper only: 5.8:1, small print */
	--copper: #a85c28;  /* the accent, 4.9:1 on paper */
	--copper-deep: #7f4319;
	--rule: #cfc8bd;
	--rule-hard: #2b2622;

	--sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--semi: 'Public Sans Semi', 'Public Sans', system-ui, sans-serif;
	--bold: 'Public Sans Bold', 'Public Sans', system-ui, sans-serif;
	--mono: 'DM Mono', ui-monospace, 'SFMono-Regular', 'Consolas', monospace;

	--gut: clamp( 20px, 5vw, 64px );
	--wide: 1220px;
	--read: 68ch;
}

*,
*::before,
*::after {
	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: clamp( 16px, 0.55vw + 14.4px, 18px );
	line-height: 1.62;
	font-synthesis-weight: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var( --copper-deep );
	text-underline-offset: 0.18em;
	text-decoration-thickness: from-font;
}

a:hover,
a:focus-visible {
	color: var( --ink );
}

:focus-visible {
	outline: 3px solid var( --copper-deep );
	outline-offset: 3px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset( 50% );
	white-space: nowrap;
	border: 0;
}

.skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 60;
	background: var( --ink );
	color: var( --paper );
	padding: 12px 18px;
}

.skip:focus {
	left: 8px;
	top: 8px;
}

/* ----------------------------------------------------------------- ground */

/*
 * The canvas sits behind everything. The element itself carries a flat paper
 * colour, so a browser without WebGL2 or without a float render target gets the
 * page on plain paper rather than a hole — the canvas is only ever appended if
 * the context came up.
 */
.ground {
	position: fixed;
	inset: 0;
	z-index: -1;
	background: var( --paper );
	pointer-events: none;
}

.ground__canvas {
	width: 100%;
	height: 100%;
	display: block;
}

/* ---------------------------------------------------------------- masthead */

.masthead {
	position: relative;
	z-index: 10;
	padding: 22px 0 18px;
}

.masthead__in {
	max-width: var( --wide );
	margin: 0 auto;
	padding: 0 var( --gut );
	display: flex;
	align-items: baseline;
	gap: 18px 32px;
	flex-wrap: wrap;
}

.masthead__name {
	font-family: var( --bold );
	font-weight: 800;
	font-size: 1.32rem;
	letter-spacing: -0.015em;
	color: var( --ink );
	text-decoration: none;
}

.masthead__tag {
	margin: 2px 0 0;
	font-size: 0.86rem;
	color: var( --ink );
	font-weight: 400;
}

/* Over the ground the tagline keeps the full ink and drops in size instead of
   in colour, because a lighter grey cannot hold 4.5:1 on the copper. */
.no-ground .masthead__tag {
	color: var( --ink-2 );
}

.masthead__nav {
	margin-left: auto;
}

.nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 26px;
	font-family: var( --semi );
	font-weight: 600;
	font-size: 0.92rem;
}

.nav a {
	color: var( --ink );
	text-decoration: none;
	padding: 4px 0;
	border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible,
.nav .current-menu-item > a {
	border-bottom-color: var( --ink );
}

.masthead__ring a {
	font-family: var( --mono );
	font-weight: 500;
	color: var( --ink );
	text-decoration: none;
	border-bottom: 2px solid var( --ink );
	padding-bottom: 2px;
}

/* ---------------------------------------------------------------- opening */

/* A full screen of the heat field, with the pitch at the foot of it. The old
   band-plus-fade version measured 0.078 mean saturation: invisible. */
.opening {
	position: relative;
	min-height: 92svh;
	display: grid;
	align-items: end;
	padding: clamp( 40px, 7vw, 96px ) 0 clamp( 60px, 8vh, 110px );
}

/* A job page's hero carries a title and a line, not a whole pitch, so it does
   not need the front page's runway. The ground still has room to hand over. */
.opening--job {
	padding-bottom: clamp( 90px, 11vw, 150px );
}

.opening__in {
	max-width: var( --wide );
	margin: 0 auto;
	padding: 0 var( --gut );
}

.opening__eyebrow {
	margin: 0 0 14px;
	font-family: var( --mono );
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var( --ink );
}

.opening__head {
	margin: 0;
	max-width: 19ch;
	font-family: var( --bold );
	font-weight: 800;
	font-size: clamp( 2.3rem, 6.2vw, 4.4rem );
	line-height: 1.02;
	letter-spacing: -0.032em;
	text-wrap: balance;
}

.opening__said {
	margin: 20px 0 0;
	max-width: 46ch;
	font-size: 1.12rem;
}

.opening__notify {
	margin: 18px 0 0;
	display: inline-block;
	font-family: var( --semi );
	font-weight: 600;
	font-size: 0.88rem;
	border: 2px solid var( --ink );
	padding: 5px 12px;
}

/*
 * The two figures on the front page. This is the whole pitch of the site, so it
 * is set as large as the headline and in the monospace, which is the only place
 * on the page that treats a number as the important thing on the line.
 */
.opening__two {
	margin: clamp( 34px, 5vw, 56px ) 0 0;
	display: grid;
	gap: 28px 48px;
	grid-template-columns: repeat( auto-fit, minmax( 260px, 1fr ) );
	max-width: 800px;
}

.opening__two > div {
	border-top: 3px solid var( --ink );
	padding-top: 12px;
}

.opening__two dt {
	font-family: var( --semi );
	font-weight: 600;
	font-size: 0.95rem;
}

.opening__two dd {
	margin: 0;
}

.opening__two dd:not( .opening__sub ) {
	font-family: var( --mono );
	font-weight: 500;
	font-size: clamp( 2.4rem, 5.4vw, 3.4rem );
	line-height: 1.04;
	letter-spacing: -0.03em;
	margin: 6px 0 4px;
}

.opening__sub {
	font-size: 0.9rem;
	max-width: 34ch;
}

.opening__vat {
	margin: 26px 0 0;
	font-size: 0.9rem;
}

/* --------------------------------------------------------------- listings */

.listing-top {
	padding: clamp( 34px, 5vw, 64px ) 0 clamp( 26px, 4vw, 44px );
}

.listing-top--ground {
	padding-bottom: clamp( 140px, 15vw, 210px );
}

.listing-top__in {
	max-width: var( --wide );
	margin: 0 auto;
	padding: 0 var( --gut );
}

.listing-top__head {
	margin: 0;
	max-width: 20ch;
	font-family: var( --bold );
	font-weight: 800;
	font-size: clamp( 2rem, 4.6vw, 3.1rem );
	line-height: 1.06;
	letter-spacing: -0.028em;
}

.listing-top__said {
	margin: 16px 0 0;
	max-width: 620px;
}

.no-ground .listing-top__said {
	color: var( --ink-2 );
}

.listing-top__find {
	margin: 24px 0 0;
}

/* ------------------------------------------------------------- the say/prose */

.say,
.prose {
	max-width: var( --wide );
	margin: clamp( 34px, 5vw, 64px ) auto;
	padding: 0 var( --gut );
}

.say__in,
.prose {
	max-width: var( --read );
	margin-left: auto;
	margin-right: auto;
}

.prose {
	margin-left: auto;
	margin-right: auto;
}

.say__in > *:first-child,
.prose > *:first-child {
	margin-top: 0;
}

.say h2,
.prose h2 {
	font-family: var( --bold );
	font-weight: 800;
	font-size: clamp( 1.35rem, 2.4vw, 1.8rem );
	letter-spacing: -0.02em;
	margin: 2em 0 0.5em;
}

.say h3,
.prose h3 {
	font-family: var( --semi );
	font-weight: 600;
	font-size: 1.12rem;
	margin: 1.8em 0 0.4em;
}

.prose ul,
.prose ol {
	padding-left: 1.2em;
}

.prose li {
	margin: 0.35em 0;
}

/* ------------------------------------------------------------------ cards */

.jobs {
	max-width: var( --wide );
	margin: clamp( 40px, 6vw, 80px ) auto;
	padding: 0 var( --gut );
}

.jobs__top {
	display: grid;
	gap: 10px 48px;
	grid-template-columns: minmax( 0, 1fr );
	margin: 0 0 clamp( 22px, 3vw, 34px );
}

@media ( min-width: 900px ) {
	.jobs__top {
		grid-template-columns: 1fr 1fr;
		align-items: end;
	}
}

.jobs__title {
	margin: 0;
	font-family: var( --bold );
	font-weight: 800;
	font-size: clamp( 1.6rem, 3vw, 2.2rem );
	letter-spacing: -0.024em;
}

.jobs__note {
	margin: 0;
	font-size: 0.92rem;
	color: var( --ink-2 );
	max-width: 52ch;
}

/*
 * Job rows. The same object the price sheet is made of: a name on the left, the
 * money on the right in the monospace, a rule between. No image slot, so a
 * business with no photographs is not punished for it, and no grid, so a list
 * that does not divide evenly does not leave painted holes in itself.
 */
.jobs__rows {
	border-top: 3px solid var( --ink );
}

.row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px 40px;
	flex-wrap: wrap;
	padding: 18px 0;
	border-bottom: 1px solid var( --rule );
	text-decoration: none;
	color: inherit;
}

.row:hover,
.row:focus-visible {
	background: var( --paper-2 );
	box-shadow: 0 0 0 var( --gut ) var( --paper-2 );
}

.row__said {
	flex: 1 1 340px;
	min-width: 0;
}

.row__name {
	display: block;
	font-family: var( --semi );
	font-weight: 600;
	font-size: 1.14rem;
	line-height: 1.25;
}

.row:hover .row__name,
.row:focus-visible .row__name {
	text-decoration: underline;
}

.row__note {
	display: block;
	margin-top: 3px;
	font-size: 0.92rem;
	color: var( --ink-2 );
	max-width: 58ch;
}

.row__flag {
	display: inline-block;
	margin-top: 8px;
	font-family: var( --semi );
	font-weight: 600;
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var( --copper-deep );
}

.row__money {
	text-align: right;
	white-space: nowrap;
	margin-left: auto;
}

.row__n {
	display: block;
	font-family: var( --mono );
	font-weight: 500;
	font-size: clamp( 1.3rem, 2.2vw, 1.65rem );
	line-height: 1.1;
}

.row__t {
	display: block;
	margin-top: 3px;
	font-size: 0.82rem;
	color: var( --ink-2 );
}

.jobs__all {
	margin: clamp( 22px, 3vw, 34px ) 0 0;
}

.btn {
	display: inline-block;
	background: var( --ink );
	color: var( --paper );
	font-family: var( --semi );
	font-weight: 600;
	font-size: 0.95rem;
	padding: 12px 22px;
	text-decoration: none;
	border: 2px solid var( --ink );
}

.btn:hover,
.btn:focus-visible {
	background: var( --paper );
	color: var( --ink );
}

/* ------------------------------------------------------- the job sheet table */

/*
 * A duplicate book, not a card grid: heavy rules top and bottom, a hairline
 * between rows, and the money in a monospace column that actually lines up.
 */
.sheet {
	max-width: var( --wide );
	margin: 0 auto clamp( 30px, 4vw, 50px );
	padding: 0 var( --gut );
}

.sheet__table,
.cost__table,
.calc__table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

/* The figures are right-aligned, so their headings must be too — a left-set
   heading over a right-set column reads as a different column. */
.sheet__table thead th:nth-child( 2 ),
.sheet__table thead th:nth-child( 3 ),
.sheet__table thead th:nth-child( 4 ) {
	text-align: right;
}

.sheet__table thead th {
	font-family: var( --mono );
	font-weight: 500;
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var( --ink-2 );
	padding: 0 0 8px;
	border-bottom: 3px solid var( --ink );
}

.sheet__table tbody th,
.sheet__table tbody td {
	padding: 16px 0;
	border-bottom: 1px solid var( --rule );
	vertical-align: top;
	font-weight: 400;
}

.sheet__table tbody th {
	padding-right: 24px;
}

.sheet__table tbody th a {
	font-family: var( --semi );
	font-weight: 600;
	font-size: 1.06rem;
	color: var( --ink );
	text-decoration: none;
}

.sheet__table tbody th a:hover,
.sheet__table tbody th a:focus-visible {
	text-decoration: underline;
}

.sheet__said {
	display: block;
	margin-top: 4px;
	font-size: 0.9rem;
	color: var( --ink-2 );
	max-width: 48ch;
}

.sheet__flag {
	display: inline-block;
	margin-top: 8px;
	font-size: 0.78rem;
	font-family: var( --semi );
	font-weight: 600;
	color: var( --copper-deep );
	border: 1px solid currentColor;
	padding: 2px 8px;
}

.sheet__t {
	font-size: 0.92rem;
	color: var( --ink-2 );
	white-space: nowrap;
	padding-right: 20px !important;
}

.sheet__n {
	font-family: var( --mono );
	font-weight: 500;
	font-size: 1.12rem;
	white-space: nowrap;
	text-align: right;
	padding-left: 16px !important;
}

.sheet__n--out {
	color: var( --ink-2 );
}

.sheet__when {
	display: block;
	font-family: var( --sans );
	font-size: 0.74rem;
	letter-spacing: 0.02em;
}

@media ( max-width: 720px ) {
	.sheet__table thead {
		display: none;
	}

	.sheet__table tbody th,
	.sheet__table tbody td {
		display: block;
		border-bottom: 0;
		padding: 0;
	}

	.sheet__table tbody tr {
		display: block;
		padding: 16px 0;
		border-bottom: 1px solid var( --rule );
	}

	.sheet__n,
	.sheet__t {
		text-align: left;
		padding-left: 0 !important;
		margin-top: 6px;
	}
}

/* ------------------------------------------------------------------- cost */

.cost,
.calc {
	max-width: var( --wide );
	margin: clamp( 40px, 6vw, 80px ) auto;
	padding: 0 var( --gut );
}

/* The hero already carries the runway the ground needs to hand over in. Adding
   the section's own top margin on top of it leaves a band of nothing. */
.opening + .cost,
.opening + .job__shot {
	margin-top: clamp( 12px, 2vw, 28px );
}

.cost__title,
.calc__title {
	margin: 0;
	font-family: var( --bold );
	font-weight: 800;
	font-size: clamp( 1.6rem, 3vw, 2.2rem );
	letter-spacing: -0.024em;
}

.cost__lede,
.calc__lede {
	margin: 12px 0 0;
	max-width: 640px;
	color: var( --ink-2 );
}

.cost__two {
	margin: 12px 0 0;
	max-width: 58ch;
	font-size: 0.92rem;
	color: var( --ink-2 );
}

.cost__table {
	margin: clamp( 24px, 3vw, 36px ) 0 0;
	border-top: 3px solid var( --ink );
}

.cost__table tbody th,
.cost__table tbody td {
	padding: 16px 0;
	border-bottom: 1px solid var( --rule );
	vertical-align: baseline;
	font-weight: 400;
}

.cost__table tbody th {
	font-family: var( --semi );
	font-weight: 600;
	padding-right: 24px;
}

.cost__table tr.is-base th,
.cost__table tr.is-base td {
	border-bottom-width: 2px;
	border-bottom-color: var( --ink );
}

.cost__note {
	display: block;
	font-family: var( --sans );
	font-weight: 400;
	font-size: 0.86rem;
	color: var( --ink-3 );
	max-width: 44ch;
	margin-top: 3px;
}

.cost__n {
	font-family: var( --mono );
	font-weight: 500;
	font-size: clamp( 1.3rem, 2.4vw, 1.7rem );
	text-align: right;
	white-space: nowrap;
	padding-left: 20px !important;
}

.cost__vs {
	font-size: 0.86rem;
	color: var( --ink-3 );
	text-align: right;
	white-space: nowrap;
	padding-left: 20px !important;
	width: 1%;
}

.cost__work {
	margin: clamp( 30px, 4vw, 48px ) 0 0;
	max-width: 560px;
}

.cost__sub,
.calc__sub {
	margin: 0 0 12px;
	font-family: var( --semi );
	font-weight: 600;
	font-size: 1.05rem;
}

.cost__break {
	margin: 0;
	border-top: 1px solid var( --rule );
}

.cost__break > div {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding: 9px 0;
	border-bottom: 1px solid var( --rule );
}

.cost__break dt {
	font-size: 0.94rem;
}

.cost__break dd {
	margin: 0;
	font-family: var( --mono );
	white-space: nowrap;
}

.cost__break > div.is-total {
	border-bottom: 3px solid var( --ink );
	border-top: 2px solid var( --ink );
	margin-top: 4px;
}

.cost__break > div.is-total dt {
	font-family: var( --semi );
	font-weight: 600;
}

.cost__break > div.is-total dd {
	font-weight: 500;
	font-size: 1.15rem;
}

.cost__caveat,
.calc__caveat {
	margin: 20px 0 0;
	font-size: 0.9rem;
	color: var( --ink-2 );
	max-width: 700px;
}

/* ------------------------------------------------------------- calculator */

.calc__form {
	margin: clamp( 24px, 3vw, 34px ) 0 0;
	padding: 22px var( --gut );
	margin-left: calc( var( --gut ) * -1 );
	margin-right: calc( var( --gut ) * -1 );
	background: var( --paper-2 );
	border-top: 3px solid var( --ink );
	border-bottom: 3px solid var( --ink );
}

.calc__grid {
	display: grid;
	gap: 14px 24px;
	grid-template-columns: repeat( auto-fit, minmax( 190px, 1fr ) );
	max-width: 1000px;
}

.calc__form .f {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.calc__form label {
	font-family: var( --semi );
	font-weight: 600;
	font-size: 0.84rem;
}

.calc__form select,
.calc__form input[ type='number' ],
.find__in {
	font: inherit;
	font-size: 0.95rem;
	padding: 8px 10px;
	border: 2px solid var( --ink );
	background: var( --paper );
	color: var( --ink );
	border-radius: 0;
	width: 100%;
}

.calc__form .f--check {
	flex-direction: row;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	padding-top: 20px;
}

.calc__form .f--check label {
	display: flex;
	align-items: center;
	gap: 7px;
	font-weight: 400;
	font-family: var( --sans );
	font-size: 0.92rem;
}

.calc__go {
	margin: 18px 0 0;
}

.calc__go button {
	font: inherit;
	font-family: var( --semi );
	font-weight: 600;
	font-size: 0.95rem;
	padding: 11px 24px;
	background: var( --ink );
	color: var( --paper );
	border: 2px solid var( --ink );
	cursor: pointer;
	border-radius: 0;
}

.calc__go button:hover,
.calc__go button:focus-visible {
	background: var( --paper );
	color: var( --ink );
}

.calc__out {
	margin: clamp( 28px, 4vw, 44px ) 0 0;
}

.calc__big {
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 6px 22px;
	flex-wrap: wrap;
}

.calc__huge {
	font-family: var( --mono );
	font-weight: 500;
	font-size: clamp( 2.8rem, 8vw, 5rem );
	line-height: 1;
	letter-spacing: -0.035em;
}

.calc__unit {
	font-family: var( --semi );
	font-weight: 600;
	font-size: 1rem;
}

.calc__because {
	margin: 16px 0 0;
	max-width: 680px;
	font-size: 1.02rem;
}

.calc__table {
	margin: clamp( 26px, 3vw, 38px ) 0 0;
	max-width: 880px;
	border-top: 3px solid var( --ink );
}

.calc__table thead th {
	font-family: var( --mono );
	font-weight: 500;
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var( --ink-2 );
	padding: 8px 0;
	border-bottom: 1px solid var( --rule );
}

.calc__table thead th:last-child,
.calc__table td.n {
	text-align: right;
}

.calc__table tbody th,
.calc__table tbody td {
	padding: 11px 0;
	border-bottom: 1px solid var( --rule );
	font-weight: 400;
	vertical-align: baseline;
}

.calc__table tbody th {
	font-family: var( --semi );
	font-weight: 600;
	padding-right: 20px;
}

.calc__table tbody td {
	font-family: var( --mono );
	padding-left: 16px;
	white-space: nowrap;
}

.calc__table tr.is-total th,
.calc__table tr.is-total td {
	border-bottom: 3px solid var( --ink );
	border-top: 2px solid var( --ink );
}

.calc__table tr.is-base th,
.calc__table tr.is-base td {
	background: var( --paper-2 );
}

.calc__note {
	display: block;
	font-family: var( --sans );
	font-weight: 400;
	font-size: 0.84rem;
	color: var( --ink-3 );
	max-width: 42ch;
	margin-top: 2px;
}

.calc__table--sys tbody td:last-child {
	font-weight: 500;
}

@media ( max-width: 700px ) {
	.calc__table {
		display: block;
		overflow-x: auto;
	}
}

/* ------------------------------------------------------------------ notes */

.notes {
	max-width: var( --wide );
	margin: 0 auto clamp( 30px, 4vw, 50px );
	padding: 0 var( --gut );
	border-top: 3px solid var( --ink );
}

.note {
	padding: 22px 0;
	border-bottom: 1px solid var( --rule );
	max-width: var( --read );
}

.note__title {
	margin: 0;
	font-family: var( --semi );
	font-weight: 600;
	font-size: 1.2rem;
}

.note__title a {
	color: var( --ink );
	text-decoration: none;
}

.note__title a:hover,
.note__title a:focus-visible {
	text-decoration: underline;
}

.note__when {
	margin: 5px 0 0;
	font-family: var( --mono );
	font-size: 0.86rem;
	color: var( --ink-2 );
}

.note__said p {
	margin: 8px 0 0;
	color: var( --ink-2 );
}

.empty {
	max-width: var( --wide );
	margin: 0 auto clamp( 40px, 6vw, 80px );
	padding: 0 var( --gut );
}

/* ------------------------------------------------------------------- misc */

.job__shot {
	max-width: var( --wide );
	margin: 0 auto clamp( 30px, 4vw, 50px );
	padding: 0 var( --gut );
}

.job__shot img {
	border: 2px solid var( --rule-hard );
}

.near {
	max-width: var( --wide );
	margin: clamp( 40px, 6vw, 80px ) auto;
	padding: clamp( 22px, 3vw, 34px ) var( --gut ) 0;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	flex-wrap: wrap;
	border-top: 3px solid var( --ink );
}

.near__a {
	text-decoration: none;
	color: var( --ink );
	max-width: 30ch;
}

.near__a--n {
	text-align: right;
	margin-left: auto;
}

.near__k {
	display: block;
	font-family: var( --mono );
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var( --ink-2 );
}

.near__t {
	display: block;
	font-family: var( --semi );
	font-weight: 600;
	font-size: 1.05rem;
	margin-top: 3px;
}

.near__a:hover .near__t,
.near__a:focus-visible .near__t {
	text-decoration: underline;
}

.find {
	display: flex;
	gap: 0;
	max-width: 420px;
}

.find__go {
	font: inherit;
	font-family: var( --semi );
	font-weight: 600;
	font-size: 0.95rem;
	padding: 8px 18px;
	background: var( --ink );
	color: var( --paper );
	border: 2px solid var( --ink );
	border-left: 0;
	cursor: pointer;
	border-radius: 0;
	white-space: nowrap;
}

.pager {
	max-width: var( --wide );
	margin: 0 auto clamp( 40px, 6vw, 80px );
	padding: 0 var( --gut );
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	font-family: var( --mono );
}

.pager .page-numbers {
	padding: 7px 13px;
	border: 2px solid var( --rule );
	text-decoration: none;
	color: var( --ink );
}

.pager .page-numbers.current,
.pager a.page-numbers:hover {
	border-color: var( --ink );
	background: var( --ink );
	color: var( --paper );
}

/* ------------------------------------------------------------------- foot */

.foot {
	margin-top: clamp( 50px, 8vw, 96px );
	border-top: 3px solid var( --ink );
}

.foot__in {
	max-width: var( --wide );
	margin: 0 auto;
	padding: 26px var( --gut ) 48px;
	display: flex;
	gap: 14px 40px;
	flex-wrap: wrap;
	align-items: baseline;
}

.foot__name {
	margin: 0;
	font-family: var( --bold );
	font-weight: 800;
}

.foot__nav {
	margin-left: auto;
}

.nav--foot {
	font-family: var( --sans );
	font-weight: 400;
	font-size: 0.9rem;
}

.foot__note {
	margin: 0;
	flex-basis: 100%;
	font-size: 0.84rem;
	color: var( --ink-2 );
}

/* ----------------------------------------------------------------- reveal */

[ data-reveal ] {
	transition: opacity 520ms ease, transform 520ms cubic-bezier( 0.22, 0.61, 0.36, 1 );
}

[ data-reveal ].is-hidden {
	opacity: 0;
	transform: translateY( 14px );
}

@media ( prefers-reduced-motion: reduce ) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}

	[ data-reveal ].is-hidden {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------------------------- the bench */

.bench {
	margin: clamp( 40px, 8vh, 90px ) 0;
}

.bench__said {
	max-width: var( --wide );
	margin: 0 auto clamp( 18px, 3vh, 28px );
	padding: 0 var( --gut );
}

.bench__title {
	margin: 0;
	font-family: var( --bold );
	font-weight: 800;
	font-size: clamp( 1.6rem, 3vw, 2.2rem );
	letter-spacing: -0.024em;
}

.bench__note {
	margin: 8px 0 0;
	max-width: 620px;
	color: var( --ink-2 );
	font-size: 0.92rem;
}

.bench__row {
	display: flex;
	gap: 5px;
	margin-bottom: 5px;
}

.bench__shot {
	margin: 0;
	min-width: 0;
	position: relative;
	overflow: hidden;
	background: var( --paper-2 );
}

.bench__shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 800ms cubic-bezier( 0.22, 0.61, 0.36, 1 );
}

.bench__shot:hover img {
	transform: scale( 1.03 );
}

.bench__shot figcaption {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 2.2rem 0.9rem 0.8rem;
	font-size: 0.82rem;
	line-height: 1.35;
	color: #fff;
	background: linear-gradient( transparent, rgba( 20, 16, 12, 0.74 ) );
	opacity: 0;
	transform: translateY( 0.4rem );
	transition: opacity 300ms ease, transform 300ms ease;
}

.bench__shot:hover figcaption,
.bench__shot:focus-within figcaption {
	opacity: 1;
	transform: none;
}

@media ( max-width: 640px ) {
	.bench__row {
		flex-wrap: wrap;
	}

	.bench__shot {
		flex-basis: calc( 50% - 3px ) !important;
		flex-grow: 1 !important;
		aspect-ratio: 4 / 3;
	}

	.bench__shot figcaption {
		opacity: 1;
		transform: none;
		font-size: 0.72rem;
	}
}
