@charset "utf-8";
/* =========================================================
   Lex on Tech — lexontech.org

   All-sans, high-contrast, editorial. Avenir Next where the
   reader has it (most Apple hardware does); Mulish, a close
   humanist-geometric match, everywhere else.

   The rules of this design: emphasis comes from weight, size,
   and rules — never from italics. One accent colour, used
   decisively and sparingly. Square corners over soft ones.
   ========================================================= */

:root {
	--paper:      #f4f6f8;
	--paper-2:    #ffffff;
	--paper-3:    #e9edf1;
	--ink:        #111519;
	--ink-soft:   #39434e;
	--muted:      #5f6b78;
	--rule:       #d7dee5;
	--rule-soft:  #e6ebef;
	--accent:     #1a4ed8;
	--accent-2:   #1239a6;
	--accent-dim: rgba(26, 78, 216, .12);
	--shadow-sm:  0 1px 2px rgba(17, 21, 25, .06);
	--shadow-md:  0 2px 4px rgba(17, 21, 25, .06), 0 12px 28px rgba(17, 21, 25, .08);

	--sans: "Avenir Next", "Avenir", "Mulish", -apple-system, BlinkMacSystemFont,
	        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

	--shell:  1180px;
	--radius: 5px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper:      #0f1318;
		--paper-2:    #171d24;
		--paper-3:    #1e252e;
		--ink:        #e7ebf0;
		--ink-soft:   #c3ccd6;
		--muted:      #8c98a5;
		--rule:       #2a333d;
		--rule-soft:  #212932;
		--accent:     #7ba3ff;
		--accent-2:   #a3c0ff;
		--accent-dim: rgba(123, 163, 255, .16);
		--shadow-sm:  0 1px 2px rgba(0, 0, 0, .4);
		--shadow-md:  0 2px 4px rgba(0, 0, 0, .4), 0 12px 28px rgba(0, 0, 0, .45);
	}
}

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

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

body {
	margin: 0;
	/* Column layout so the footer sits at the bottom of a short page rather
	   than leaving a band of background beneath it. */
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.62;
	font-weight: 400;
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

strong, b { font-weight: 700; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--ink); color: var(--paper); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
main.shell { flex: 1 0 auto; }
.site-footer { flex: none; }

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

/* A solid ink rule with one deliberate block of accent at the head of it. */
.spectrum {
	height: 6px;
	background: linear-gradient(90deg, var(--accent) 0 148px, var(--ink) 148px 100%);
}

.masthead { background: var(--paper-2); border-bottom: 1px solid var(--rule); }

.masthead-inner {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas: "wordmark tagline" "nav nav";
	align-items: center;
	column-gap: 22px;
	padding-top: 24px;
}

.wordmark {
	grid-area: wordmark;
	display: inline-flex;
	align-items: center;
	font-size: clamp(24px, 4.2vw, 34px);
	font-weight: 800;
	letter-spacing: .005em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--ink);
	white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.wm-on {
	font-weight: 500;
	color: var(--muted);
	margin: 0 .3em;
	letter-spacing: .04em;
}
.wm-dot {
	display: inline-block;
	width: .26em; height: .26em;
	background: var(--accent);
	margin-left: .34em;
	margin-bottom: -.02em;
	transition: transform .18s ease;
}
.wordmark:hover .wm-dot { transform: translateY(-3px); }

.masthead-tagline {
	grid-area: tagline;
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
	padding-top: 4px;
}

.sitenav {
	grid-area: nav;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	margin-top: 20px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .085em;
	text-transform: uppercase;
}
.sitenav > a {
	color: var(--ink-soft);
	padding: 0 0 13px;
	border-bottom: 3px solid transparent;
	transition: color .14s, border-color .14s;
}
.sitenav > a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.sitenav > a.is-current { color: var(--ink); border-bottom-color: var(--ink); }

.nav-search { margin-left: auto; display: flex; align-items: center; gap: 4px; padding-bottom: 10px; }
.nav-search input {
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	width: 148px;
	padding: 7px 11px;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	transition: width .18s, border-color .14s, box-shadow .14s;
}
.nav-search input:focus {
	outline: none;
	width: 196px;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-dim);
}
.nav-search button {
	border: 0; background: none; color: var(--muted); cursor: pointer;
	padding: 5px; display: flex; border-radius: var(--radius);
}
.nav-search button:hover { color: var(--accent); }

.nav-toggle { display: none; }

/* ---------- page layout ---------- */

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 292px;
	gap: 64px;
	align-items: start;
	padding: 44px 0 68px;
}
.content { min-width: 0; }

/* ---------- shared micro-labels ---------- */

.kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 11px;
}
.kicker a { color: var(--accent); }
.kicker a:hover { color: var(--accent-2); }
.kicker .dot { color: var(--rule); font-weight: 400; }

/* ---------- article list ---------- */

.post-list { display: flex; flex-direction: column; }

.post-summary { padding: 30px 0 32px; border-bottom: 1px solid var(--rule-soft); }
.post-summary:first-child { padding-top: 2px; }

/* With a lead image the summary becomes two columns: words, then thumbnail. */
.post-summary.has-thumb { display: grid; grid-template-columns: minmax(0, 1fr) 152px; gap: 26px; align-items: start; }
.post-summary-main { min-width: 0; }

.post-thumb { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); background: var(--paper-3); }
.post-thumb img {
	display: block; width: 100%; height: 152px; object-fit: cover;
	transition: transform .3s ease, opacity .2s;
}
.post-thumb:hover img { transform: scale(1.04); opacity: .93; }
/* Dimensions are unknown for a borrowed image, so the box is fixed and the
   picture is cropped into it. No layout shift when it finally loads. */
.post-thumb.is-remote img { height: 152px; width: 100%; object-fit: cover; }

/* Link posts: a flag in the kicker, and a star that leads back to the permalink. */
.link-flag {
	color: #fff; background: var(--accent);
	padding: 3px 7px; border-radius: 3px; letter-spacing: .11em;
}
.permalink-star {
	font-size: .62em; vertical-align: .32em; margin-left: .32em;
	color: var(--accent); text-decoration: none;
}
.permalink-star:hover { color: var(--accent-2); }
.post-source { font-weight: 700; color: var(--ink-soft); }

.post-title {
	font-weight: 800;
	letter-spacing: -.022em;
	line-height: 1.16;
	font-size: clamp(25px, 3.2vw, 33px);
	margin: 0 0 10px;
}
.post-title a {
	color: var(--ink);
	background-image: linear-gradient(var(--accent), var(--accent));
	background-size: 0% 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size .22s ease, color .14s;
}
.post-title a:hover { color: var(--accent); background-size: 100% 2px; }

.post-dek {
	font-size: 19px;
	font-weight: 500;
	color: var(--ink-soft);
	margin: 0 0 10px;
	line-height: 1.45;
}

.post-excerpt { margin: 0 0 15px; color: var(--muted); font-size: 17px; }

.post-meta {
	font-size: 13px;
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	font-weight: 500;
}
.read-more { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }

.tag-list { display: inline-flex; flex-wrap: wrap; gap: 6px; }

.tag-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: 3px;
	background: transparent;
	color: var(--ink-soft);
	border: 1px solid var(--rule);
	transition: background .14s, color .14s, border-color .14s;
}
.tag-chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.tag-n { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tag-chip:hover .tag-n { color: rgba(255,255,255,.75); }

/* ---------- single article ---------- */

.article-head { padding: 0 0 4px; }

.article-title {
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.08;
	font-size: clamp(32px, 5vw, 50px);
	margin: 6px 0 16px;
	color: var(--ink);
}

.article-title a { color: var(--ink); }
.article-title a:hover { color: var(--accent); }

.article-dek {
	font-size: clamp(19px, 2.2vw, 22px);
	line-height: 1.45;
	font-weight: 500;
	color: var(--ink-soft);
	margin: 0 0 20px;
	max-width: 34em;
}

.link-source {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
	margin: 0 0 20px; font-size: 15px;
}
.link-source .lbl {
	font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
	color: var(--muted);
}
.link-source a { font-weight: 700; word-break: break-word; }

.article-title .permalink-star { font-size: .5em; vertical-align: .5em; }

.byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
	padding-bottom: 18px;
	border-bottom: 3px solid var(--ink);
	margin-bottom: 32px;
}
.byline .author { color: var(--ink); font-weight: 800; letter-spacing: .02em; }
.byline .sep { color: var(--rule); }

.article-body { font-size: 18.5px; line-height: 1.68; color: var(--ink-soft); }
.article-body > p { margin: 0 0 1.15em; }
.article-body > p:first-of-type { font-size: 1.055em; color: var(--ink); }

.article-body h2, .article-body h3, .article-body h4 {
	font-weight: 800;
	letter-spacing: -.018em;
	line-height: 1.22;
	color: var(--ink);
	margin: 1.9em 0 .5em;
	clear: both;
}
.article-body h2 { font-size: 1.36em; }
.article-body h3 { font-size: 1.16em; }
.article-body h4 { font-size: 1.02em; text-transform: uppercase; letter-spacing: .08em; }

.article-body a {
	font-weight: 500;
	box-shadow: inset 0 -1px 0 0 var(--accent-dim);
	transition: box-shadow .14s, color .14s;
}
.article-body a:hover { box-shadow: inset 0 -2px 0 0 var(--accent-2); }

.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.article-body li { margin-bottom: .45em; }
.article-body li::marker { color: var(--muted); }

.article-body blockquote {
	margin: 1.6em 0;
	padding: 2px 0 2px 22px;
	border-left: 3px solid var(--accent);
	color: var(--muted);
}
.article-body blockquote p:last-child { margin-bottom: 0; }

.article-body hr {
	border: 0; height: 1px; background: var(--rule);
	margin: 2.4em auto; width: 100%; clear: both;
}

.article-body code {
	font-family: var(--mono);
	font-size: .84em;
	background: var(--paper-3);
	padding: .14em .4em;
	border-radius: 3px;
}
.article-body pre {
	background: var(--paper-3);
	border-left: 3px solid var(--rule);
	padding: 16px 18px;
	border-radius: var(--radius);
	overflow-x: auto;
	font-size: .82em;
	line-height: 1.5;
	clear: both;
}
.article-body pre code { background: none; padding: 0; }

/* ---------- figures ---------- */

.fig { margin: .3em 0 1.3em; max-width: 100%; }
.fig img {
	display: block;
	width: 100%;
	border-radius: var(--radius);
	background: var(--paper-3);
	border: 1px solid var(--rule-soft);
}
.fig figcaption {
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--muted);
	margin-top: 9px;
	padding-left: 10px;
	border-left: 2px solid var(--accent);
}

.fig-right, .fig-left { width: min(46%, 336px); }
.fig-right { float: right; margin-left: 30px; }
.fig-left  { float: left;  margin-right: 30px; }
.fig-full, .fig-center { clear: both; margin: 1.7em 0; }
.fig-center { width: min(78%, 560px); margin-left: auto; margin-right: auto; }

.fig-gallery {
	clear: both;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 16px;
	margin: 1.7em 0;
}
.fig-gallery .fig { width: 100%; float: none; margin: 0; }

.lightbox-link { position: relative; display: block; cursor: zoom-in; }
.zoom-hint {
	position: absolute;
	right: 8px; bottom: 8px;
	width: 26px; height: 26px;
	display: grid; place-items: center;
	border-radius: 3px;
	background: rgba(17, 21, 25, .72);
	color: #fff;
	font-size: 13px;
	opacity: 0;
	transition: opacity .16s;
}
.lightbox-link:hover .zoom-hint { opacity: 1; }

.article-body::after { content: ""; display: block; clear: both; }

/* ---------- article footer ---------- */

.article-foot { clear: both; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--rule); }
.article-foot .tag-list { margin-bottom: 22px; }

.share-row {
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	margin-bottom: 28px;
}

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.prevnext a {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	background: var(--paper-2);
	color: var(--ink);
	transition: border-color .14s, box-shadow .14s;
}
.prevnext a:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.prevnext .pn-label {
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 6px;
}
.prevnext .pn-title { font-weight: 700; font-size: 16.5px; line-height: 1.28; letter-spacing: -.01em; }
.prevnext .pn-next { text-align: right; }

/* ---------- sidebar rail ---------- */

.rail { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }

.rail-card {
	background: var(--paper-2);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 20px;
	font-size: 14.5px;
	line-height: 1.55;
}
.rail-card p { margin: 0 0 .8em; color: var(--muted); }
.rail-card p:last-child { margin-bottom: 0; }
.rail-card strong { color: var(--ink); }

.rail-title {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink);
	margin: 0 0 14px;
	padding-bottom: 9px;
	border-bottom: 2px solid var(--accent);
	display: inline-block;
}

.rail-portrait { float: right; width: 68px; height: 68px; border-radius: 50%; margin: 0 0 8px 14px; object-fit: cover; }
.rail-about::after { content: ""; display: block; clear: both; }
.rail-more { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.tag-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }

.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-list li { padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.rail-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.rail-list a { display: block; font-weight: 700; font-size: 15px; line-height: 1.32; color: var(--ink); letter-spacing: -.01em; }
.rail-list a:hover { color: var(--accent); }
.rail-list time { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.rail-social { list-style: none; margin: 0; padding: 0; font-size: 14.5px; font-weight: 600; }
.rail-social li { padding: 6px 0; }

/* ---------- pagination ---------- */

.pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 38px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
}
.pagination a {
	padding: 10px 18px;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	background: var(--paper-2);
	color: var(--ink);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-of { color: var(--muted); font-weight: 600; letter-spacing: .06em; }

/* ---------- generic pages ---------- */

.page-head { padding: 0 0 20px; border-bottom: 3px solid var(--ink); margin-bottom: 32px; }
.page-title {
	font-weight: 800;
	letter-spacing: -.028em;
	font-size: clamp(30px, 4.4vw, 42px);
	line-height: 1.1;
	margin: 0 0 8px;
}
.page-sub { margin: 0; color: var(--muted); font-size: 14px; font-weight: 500; }

.prose { font-size: 18px; line-height: 1.68; max-width: 40em; color: var(--ink-soft); }
.prose p { margin: 0 0 1.15em; }
.prose h2 {
	font-weight: 800; font-size: 1.32em; color: var(--ink);
	letter-spacing: -.018em; margin: 1.9em 0 .5em;
}
.prose h3 { font-weight: 800; font-size: 1.05em; color: var(--ink); margin: 1.6em 0 .4em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--muted); }
.prose a { font-weight: 500; box-shadow: inset 0 -1px 0 0 var(--accent-dim); }
.prose a:hover { box-shadow: inset 0 -2px 0 0 var(--accent-2); }
.prose .portrait-inset {
	float: right; width: min(38%, 224px); margin: 4px 0 20px 28px;
	border-radius: var(--radius); border: 1px solid var(--rule);
}
.prose::after { content: ""; display: block; clear: both; }

.empty-state {
	text-align: center;
	padding: 72px 20px;
	color: var(--muted);
	font-size: 15px;
}
.empty-state strong { display: block; font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 8px; letter-spacing: -.015em; }

/* ---------- archive ---------- */

.archive-year {
	font-weight: 800;
	font-size: 13px;
	letter-spacing: .16em;
	text-transform: uppercase;
	margin: 38px 0 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--accent);
	color: var(--ink);
}
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li {
	display: flex; gap: 18px; align-items: baseline;
	padding: 10px 0; border-bottom: 1px solid var(--rule-soft);
}
.archive-list time {
	flex: 0 0 82px;
	font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
	color: var(--muted); font-variant-numeric: tabular-nums;
}
.archive-list a { font-weight: 700; font-size: 17px; color: var(--ink); line-height: 1.32; letter-spacing: -.012em; }
.archive-list a:hover { color: var(--accent); }
.archive-link-flag { color: var(--accent); font-size: .72em; margin-left: .35em; vertical-align: .12em; }

/* ---------- forms ---------- */

.form-card {
	background: var(--paper-2);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 26px;
	max-width: 620px;
}
.field { margin-bottom: 17px; }
.field label {
	display: block;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin-bottom: 7px;
	color: var(--ink);
}
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 500; }
.field input[type=text], .field input[type=email], .field input[type=search],
.field input[type=number], .field input[type=password], .field input[type=url],
.field input[type=datetime-local], .field textarea, .field select {
	width: 100%;
	font: inherit;
	font-size: 16px;
	padding: 10px 12px;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	transition: border-color .14s, box-shadow .14s;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-dim);
}
.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-row .question { font-weight: 700; white-space: nowrap; font-size: 16px; }
.captcha-row input { width: 92px !important; text-align: center; }
.hp { position: absolute; left: -9999px; }

.btn {
	display: inline-block;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 13px 26px;
	border: 0;
	border-radius: var(--radius);
	background: var(--accent);
	color: #fff;
	cursor: pointer;
	transition: background .14s;
}
.btn:hover { background: var(--accent-2); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn-quiet:hover { background: var(--paper-3); color: var(--ink); border-color: var(--muted); }

.notice { border-radius: var(--radius); padding: 13px 16px; margin-bottom: 20px; font-size: 15px; border-left: 3px solid; }
.notice-error { background: rgba(200, 40, 40, .07); border-color: #c22c2c; color: #8e2020; }
.notice-ok    { background: var(--accent-dim); border-color: var(--accent); color: var(--accent-2); }
@media (prefers-color-scheme: dark) {
	.notice-error { background: rgba(255, 110, 110, .1); border-color: #ff7b7b; color: #ffb3b3; }
	.notice-ok    { color: var(--accent-2); }
}

.search-results-count {
	font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
	color: var(--muted); margin-bottom: 4px;
}
mark { background: var(--accent-dim); color: inherit; padding: 0 2px; border-radius: 2px; }

/* ---------- footer ---------- */

.site-footer {
	margin-top: 30px;
	border-top: 3px solid var(--ink);
	background: var(--paper-2);
	padding: 34px 0 48px;
	font-size: 14px;
	color: var(--muted);
}
.footer-inner { display: grid; gap: 24px; grid-template-columns: 1.5fr 1fr 1fr; align-items: start; }
.footer-wordmark {
	font-size: 17px;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--ink);
	display: block;
	margin-bottom: 8px;
}
.footer-wordmark span { color: var(--muted); font-weight: 500; margin: 0 .3em; }
.footer-copy { margin: 0; max-width: 34em; line-height: 1.6; font-weight: 500; }
.footer-nav, .footer-social {
	display: flex; flex-direction: column; gap: 9px;
	font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.footer-nav a, .footer-social a { color: var(--ink-soft); }
.footer-nav a:hover, .footer-social a:hover { color: var(--accent); }

/* ---------- lightbox ---------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(10, 13, 17, .94);
	display: grid;
	place-items: center;
	padding: 32px;
	cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img {
	max-width: min(1400px, 92vw);
	max-height: 82vh;
	width: auto;
	border-radius: var(--radius);
}
.lightbox figcaption {
	color: rgba(255, 255, 255, .8);
	font-size: 13.5px;
	font-weight: 500;
	margin-top: 16px;
	max-width: 60ch;
	margin-inline: auto;
}
.lightbox-close {
	position: absolute;
	top: 14px; right: 18px;
	background: none; border: 0;
	color: rgba(255, 255, 255, .75);
	font-size: 32px; line-height: 1; cursor: pointer; padding: 6px 12px;
}
.lightbox-close:hover { color: #fff; }

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

@media (max-width: 1000px) {
	.layout { grid-template-columns: minmax(0, 1fr); gap: 46px; }
	.rail { position: static; }
}

@media (max-width: 720px) {
	body { font-size: 17px; }
	.shell { padding: 0 18px; }
	.masthead-inner { grid-template-columns: 1fr auto; grid-template-areas: "wordmark toggle" "tagline tagline" "nav nav"; }
	.masthead-tagline { padding-top: 6px; }
	.nav-toggle {
		grid-area: toggle;
		display: block;
		width: 40px; height: 34px;
		border: 1px solid var(--rule);
		border-radius: var(--radius);
		background: var(--paper);
		cursor: pointer;
		position: relative;
	}
	.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
		position: absolute; left: 11px; width: 17px; height: 2px;
		background: var(--ink); content: ""; transition: transform .2s, opacity .2s;
	}
	.nav-toggle-bar { top: 16px; }
	.nav-toggle-bar::before { top: -6px; left: 0; }
	.nav-toggle-bar::after  { top:  6px; left: 0; }
	.nav-toggle[aria-expanded=true] .nav-toggle-bar { background: transparent; }
	.nav-toggle[aria-expanded=true] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
	.nav-toggle[aria-expanded=true] .nav-toggle-bar::after  { transform: translateY(-6px) rotate(-45deg); }

	.sitenav { display: none; flex-direction: column; align-items: stretch; gap: 0; margin-top: 14px; }
	.sitenav.is-open { display: flex; }
	.sitenav > a { padding: 12px 2px; border-bottom: 1px solid var(--rule-soft); }
	.sitenav > a:hover, .sitenav > a.is-current { border-bottom-color: var(--rule-soft); }
	.nav-search { margin: 14px 0 16px; padding-bottom: 0; }
	.nav-search input, .nav-search input:focus { width: 100%; }

	.fig-right, .fig-left { float: none; width: 100%; margin: 1.4em 0; }
	.fig-center { width: 100%; }
	.prose .portrait-inset { float: none; width: min(58%, 210px); margin: 0 0 20px; }
	.prevnext { grid-template-columns: 1fr; }
	.prevnext .pn-next { text-align: left; }
	.footer-inner { grid-template-columns: 1fr; }
	.footer-nav, .footer-social { flex-direction: row; flex-wrap: wrap; gap: 10px 20px; }
	.archive-list li { flex-direction: column; gap: 2px; }
	.archive-list time { flex: none; }
	/* Thumbnail moves above the words rather than squeezing them. */
	.post-summary.has-thumb { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.post-summary.has-thumb .post-thumb { grid-row: 1; }
	.post-thumb img { height: 168px; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
