@charset "UTF-8";
/* ============================================================================
   Script Meridian — main stylesheet
   Palette, typography and the dotted-red rules are carried over verbatim from
   the original JS-SM-StyleSheet-01.css (James Spahr, February 2002); the layout
   system around them is rebuilt as a responsive, animated modern shell.
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */
:root {
	--font-serif: Georgia, "Times New Roman", Times, serif;
	--font-mono: "Courier New", Courier, "DejaVu Sans Mono", monospace;

	--ink: #1a1614;
	--ink-soft: #4a443c;
	--ink-faint: #7c7367;
	--paper: #f7f5f0;
	--paper-2: #eeeeee;          /* original body background */
	--paper-3: #e4e0d6;
	--line: #cfc9bc;

	--red: #cc0000;              /* original rule / accent colour */
	--red-deep: #990000;         /* original link colour */
	--red-visited: #cc3333;      /* original visited colour */
	--red-wash: rgba(204, 0, 0, .07);

	--shadow-s: 0 1px 2px rgba(26, 22, 20, .07);
	--shadow-m: 0 6px 20px -10px rgba(26, 22, 20, .35);
	--shadow-l: 0 22px 50px -26px rgba(26, 22, 20, .45);

	--radius: 4px;
	--radius-l: 8px;
	--rail: 260px;
	--wrap: 1180px;
	--ease: cubic-bezier(.22, .61, .36, 1);
	--dur: .32s;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--ink: #ece5d8;
	--ink-soft: #c3bcae;
	--ink-faint: #948b7d;
	--paper: #211d19;
	--paper-2: #17140f;
	--paper-3: #2c2721;
	--line: #3d372f;
	--red: #ff6a55;
	--red-deep: #ff8f7d;
	--red-visited: #e0a294;
	--red-wash: rgba(255, 106, 85, .10);
	--shadow-s: 0 1px 2px rgba(0, 0, 0, .5);
	--shadow-m: 0 6px 20px -10px rgba(0, 0, 0, .8);
	--shadow-l: 0 22px 50px -26px rgba(0, 0, 0, .9);
	color-scheme: dark;
}

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

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

body {
	margin: 0;
	background-color: var(--paper-2);
	background-image: url("../svg/pattern-dots.svg");
	background-attachment: fixed;
	color: var(--ink);
	font-family: var(--font-serif);
	font-size: 17px;
	line-height: 1.62;
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
	overflow-x: hidden;
}

/* ---------------------------------------------------------------- basics */
a {
	color: var(--red-deep);
	text-decoration: none;
	transition: color .2s var(--ease);
}
a:visited { color: var(--red-visited); }
a:hover, a:focus-visible { color: var(--red); text-decoration: underline; }

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

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

h1, h2, h3, h4, h5 {
	font-family: var(--font-serif);
	line-height: 1.22;
	margin: 0 0 .5em;
	color: var(--ink);
	font-weight: 700;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }
h4 { font-size: 1.12rem; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.35em; }
li { margin-bottom: .42em; }
hr {
	border: 0;
	border-top: 1px dotted var(--red);
	margin: 2.4rem 0;
	opacity: .75;
}
blockquote {
	margin: 1.6em 0;
	padding: .2em 0 .2em 1.3em;
	border-left: 3px solid var(--red);
	font-style: italic;
	color: var(--ink-soft);
}
blockquote cite { display: block; font-style: normal; font-size: .86em; margin-top: .6em; color: var(--ink-faint); }
small { font-size: .84em; color: var(--ink-faint); }
mark { background: var(--red-wash); color: inherit; padding: 0 .18em; }

code, kbd, samp {
	font-family: var(--font-mono);
	font-size: .88em;
	background: var(--red-wash);
	padding: .12em .38em;
	border-radius: 3px;
}
kbd {
	border: 1px solid var(--line);
	background: var(--paper-3);
	box-shadow: 0 1px 0 var(--line);
}

table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; font-size: .95em; }
caption { caption-side: bottom; padding-top: .7em; font-size: .84em; color: var(--ink-faint); text-align: left; }
th, td { padding: .62em .8em; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
	background: var(--paper-3);
	border-top: 1px dotted var(--red);
	border-bottom: 1px dotted var(--red);
	font-size: .82em;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--ink-soft);
}
tbody tr { transition: background .2s var(--ease); }
tbody tr:hover { background: var(--red-wash); }

/* ---------------------------------------------------------------- utility */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--red); color: #fff; padding: .7em 1.2em; font-size: .9rem;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.kicker {
	display: inline-block;
	font-size: .74rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--red-deep);
	margin-bottom: .85em;
	font-weight: 700;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.center { text-align: center; }
.muted { color: var(--ink-faint); }
.rule-dotted { border-top: 1px dotted var(--red); }

/* ---------------------------------------------------------------- buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .55em;
	font-family: var(--font-serif);
	font-size: .95rem;
	padding: .7em 1.5em;
	border: 1px solid var(--red-deep);
	border-radius: var(--radius);
	background: var(--red-deep);
	color: #fff7f3 !important;
	cursor: pointer;
	text-decoration: none !important;
	position: relative;
	overflow: hidden;
	transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .3), transparent 70%);
	transform: translateX(-130%);
	transition: transform .65s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); background: var(--red); }
.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(0); }
.btn--ghost {
	background: transparent;
	color: var(--red-deep) !important;
	border: 1px dotted var(--red);
}
.btn--ghost:hover { background: var(--red-wash); color: var(--red) !important; }
.btn--sm { font-size: .84rem; padding: .5em 1.05em; }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }


/* ------------------------------------------------- archive art in dark mode
   The five GIFs from the 2002 archive are used byte-for-byte and were drawn
   for a light ground. Rather than filter or recolour them (which would alter
   the originals), dark mode seats them on their own small paper plaque. */
:root[data-theme="dark"] .brand img,
:root[data-theme="dark"] .footer img[src$=".gif"],
:root[data-theme="dark"] .rail__list img,
:root[data-theme="dark"] .hero img[src$=".gif"],
:root[data-theme="dark"] p > img[src$=".gif"],
:root[data-theme="dark"] .center > img[src$=".gif"] {
	background: #f4f1ea;
	border-radius: 3px;
	padding: 2px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

/* Solid buttons need a darker ground in dark mode, or the pale accent
   leaves the label unreadable. */
:root[data-theme="dark"] .btn {
	background: #8d1c11;
	border-color: #b4382a;
	color: #ffeee9 !important;
}
:root[data-theme="dark"] .btn:hover { background: #a92b1b; }
:root[data-theme="dark"] .btn--ghost {
	background: transparent;
	color: var(--red-deep) !important;
	border: 1px dotted var(--red);
}
:root[data-theme="dark"] .btn--ghost:hover { background: var(--red-wash); }
:root[data-theme="dark"] .chip.is-active {
	background: #8d1c11; border-color: #b4382a; color: #ffeee9;
}
:root[data-theme="dark"] .copy-btn:hover { background: #8d1c11; color: #ffeee9; }
:root[data-theme="dark"] .skip-link { color: #fff; }

/* ---------------------------------------------------------------- header */
.masthead {
	position: sticky;
	top: 0;
	z-index: 120;
	background: color-mix(in srgb, var(--paper-2) 88%, transparent);
	backdrop-filter: blur(9px);
	border-bottom: 1px dotted var(--red);
	transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.masthead.is-stuck { box-shadow: var(--shadow-m); }
.masthead__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 68px;
	width: min(100% - 2.5rem, var(--wrap));
	margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none !important; }
.brand img { display: block; }
.brand__globe { transition: transform .8s var(--ease); }
.brand:hover .brand__globe { transform: rotate(180deg); }
.brand__tag {
	font-size: .7rem;
	font-style: italic;
	color: var(--ink-faint);
	line-height: 1.3;
	white-space: nowrap;
	border-left: 1px dotted var(--red);
	padding-left: .6rem;
}
.brand__tag i { font-style: italic; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
	display: block;
	padding: .55em .78em;
	font-size: .92rem;
	color: var(--ink-soft);
	border-radius: var(--radius);
	position: relative;
	text-decoration: none !important;
}
.nav__link::after {
	content: "";
	position: absolute; left: .78em; right: .78em; bottom: .34em;
	height: 1px;
	background: var(--red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .28s var(--ease);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--red); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--red-deep); font-weight: 700; }

.nav__item--has-menu { position: relative; }
.nav__panel {
	position: absolute;
	top: calc(100% + .4rem);
	left: 0;
	min-width: 244px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-top: 2px solid var(--red);
	border-radius: var(--radius);
	box-shadow: var(--shadow-l);
	padding: .45rem;
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-7px);
	transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav__item--has-menu:hover .nav__panel,
.nav__item--has-menu:focus-within .nav__panel,
.nav__panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__panel a {
	display: block;
	padding: .5em .7em;
	border-radius: 3px;
	font-size: .9rem;
	color: var(--ink-soft);
	text-decoration: none !important;
}
.nav__panel a:hover { background: var(--red-wash); color: var(--red-deep); }
.nav__panel small { display: block; font-size: .76rem; color: var(--ink-faint); }

.tools { display: flex; align-items: center; gap: .3rem; }
.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border: 1px dotted transparent;
	border-radius: var(--radius);
	background: transparent;
	color: var(--ink-soft);
	cursor: pointer;
	transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { background: var(--red-wash); color: var(--red); border-color: var(--red); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root:not([data-theme="dark"]) .theme-toggle .i-sun { display: none; }

/* scroll progress */
.progress {
	position: absolute; left: 0; bottom: -1px; height: 2px;
	background: var(--red);
	width: 0;
	transition: width .1s linear;
}

/* ---------------------------------------------------------------- search overlay */
.search-overlay {
	position: fixed; inset: 0; z-index: 200;
	background: rgba(20, 16, 14, .55);
	backdrop-filter: blur(3px);
	display: grid;
	place-items: start center;
	padding-top: 12vh;
	opacity: 0; visibility: hidden;
	transition: opacity .25s var(--ease), visibility .25s;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-box {
	width: min(100% - 2rem, 640px);
	background: var(--paper);
	border: 1px solid var(--line);
	border-top: 3px solid var(--red);
	border-radius: var(--radius-l);
	box-shadow: var(--shadow-l);
	padding: 1.1rem;
	transform: translateY(-14px) scale(.985);
	transition: transform .28s var(--ease);
}
.search-overlay.is-open .search-box { transform: none; }
.search-box input {
	width: 100%;
	font-family: var(--font-serif);
	font-size: 1.1rem;
	padding: .7em .9em;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper-2);
	color: var(--ink);
}
.search-results { list-style: none; margin: .9rem 0 0; padding: 0; max-height: 48vh; overflow-y: auto; }
.search-results li { margin: 0; border-top: 1px dotted var(--line); }
.search-results a { display: block; padding: .65em .5em; text-decoration: none !important; }
.search-results a:hover, .search-results a.is-active { background: var(--red-wash); }
.search-results strong { display: block; color: var(--ink); font-size: .98rem; }
.search-results span { font-size: .84rem; color: var(--ink-faint); }
.search-hint { font-size: .78rem; color: var(--ink-faint); margin: .7rem .2rem 0; display: flex; gap: .8rem; }

/* ---------------------------------------------------------------- layout */
.page { padding: 2.6rem 0 4rem; }
.shell {
	display: grid;
	grid-template-columns: var(--rail) minmax(0, 1fr);
	gap: 2.6rem;
	align-items: start;
}
.shell > *, .rail > *, .grid > *, .hero__inner > * { min-width: 0; }
.rail { position: sticky; top: 92px; }
.rail__block {
	border-right: 1px dotted var(--red);
	padding: 0 1.2rem 1.3rem 0;
	margin-bottom: 1.4rem;
	font-size: .88rem;
	line-height: 1.45;
}
.rail__block:last-child { margin-bottom: 0; }
.rail__title {
	font-size: .72rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--red-deep);
	margin-bottom: .8em;
	font-weight: 700;
}
.rail__list { list-style: none; margin: 0; padding: 0; }
.rail__list li { margin-bottom: .5em; display: flex; gap: .5em; align-items: flex-start; }
.rail__list img { flex: 0 0 auto; margin-top: .25em; }

/* ---------------------------------------------------------------- hero */
.hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px dotted var(--red);
	background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.hero__inner {
	width: min(100% - 2.5rem, var(--wrap));
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 3rem;
	align-items: center;
	padding: 4.2rem 0 4rem;
}
.hero h1 { margin-bottom: .45em; }
.hero h1 .type-target { color: var(--red-deep); border-right: 2px solid var(--red); padding-right: 2px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero__art { position: relative; }
.hero__art img { display: block; width: 100%; filter: drop-shadow(0 20px 40px rgba(26, 22, 20, .16)); }
.hero__badge {
	position: absolute;
	right: 2%;
	top: 6%;
	background: var(--paper);
	border: 1px solid var(--line);
	border-left: 3px solid var(--red);
	border-radius: var(--radius);
	padding: .6rem .9rem;
	font-size: .78rem;
	box-shadow: var(--shadow-m);
	animation: float 6s var(--ease) infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* stat strip */
.stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	border-top: 1px dotted var(--red);
	border-bottom: 1px dotted var(--red);
	background: var(--paper);
}
.stat { padding: 1.5rem 1.2rem; text-align: center; border-right: 1px dotted var(--line); }
.stat:last-child { border-right: 0; }
.stat__n { display: block; font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.5rem); color: var(--red-deep); font-weight: 700; line-height: 1; }
.stat__l { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------------------------------------------------------------- sections */
.section { padding: 3.8rem 0; }
.section--tint { background: var(--paper); border-top: 1px dotted var(--red); border-bottom: 1px dotted var(--red); }
.section__head { max-width: 62ch; margin-bottom: 2.3rem; }
.section__head.center { margin-inline: auto; }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------------------------------------------------------------- cards */
.card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius-l);
	padding: 1.5rem;
	position: relative;
	overflow: hidden;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card::before {
	content: "";
	position: absolute; inset: 0 auto 0 0; width: 3px;
	background: var(--red);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); border-color: var(--red); }
.card:hover::before { transform: scaleY(1); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card__media { margin: -1.5rem -1.5rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--paper-3); }
.card__media img { display: block; width: 100%; }
.card__meta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .6em; }
.card__link { display: inline-flex; align-items: center; gap: .4em; font-size: .9rem; margin-top: .8em; }
.card__link .arr { transition: transform .25s var(--ease); display: inline-block; }
.card:hover .card__link .arr { transform: translateX(4px); }
.card--link { display: block; text-decoration: none !important; color: inherit; }
.card--link h3 { color: var(--ink); transition: color .2s var(--ease); }
.card--link:hover h3 { color: var(--red-deep); }

.price { font-size: .86rem; color: var(--ink-faint); margin-top: 1em; border-top: 1px dotted var(--line); padding-top: .8em; }
.price b { color: var(--red-deep); font-size: 1.12rem; }

/* tag pills */
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1em; padding: 0; }
.tag {
	font-size: .74rem;
	letter-spacing: .07em;
	text-transform: uppercase;
	padding: .28em .7em;
	border: 1px dotted var(--red);
	border-radius: 20px;
	color: var(--red-deep);
	background: var(--red-wash);
}
.tag--plain { border-style: solid; border-color: var(--line); color: var(--ink-faint); background: transparent; }

/* filter bar */
.filterbar {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	align-items: center;
	padding: 1rem 1.2rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-left: 3px solid var(--red);
	border-radius: var(--radius-l);
	margin-bottom: 2rem;
}
.filterbar input[type="search"] {
	flex: 1 1 220px;
	font-family: var(--font-serif);
	font-size: .95rem;
	padding: .55em .8em;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper-2);
	color: var(--ink);
}
.chip {
	font-family: var(--font-serif);
	font-size: .82rem;
	padding: .4em .95em;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: transparent;
	color: var(--ink-soft);
	cursor: pointer;
	transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--red); color: var(--red-deep); }
.chip.is-active { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.empty-state { padding: 2.5rem; text-align: center; color: var(--ink-faint); border: 1px dotted var(--line); border-radius: var(--radius-l); }

/* ---------------------------------------------------------------- tabs */
.tabs { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--paper); overflow: hidden; }
.tabs__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; border-bottom: 1px dotted var(--red); background: var(--paper-3); }
.tabs__btn {
	font-family: var(--font-serif);
	font-size: .9rem;
	padding: .9em 1.3em;
	background: transparent;
	border: 0;
	border-bottom: 2px solid transparent;
	color: var(--ink-soft);
	cursor: pointer;
	transition: all .22s var(--ease);
}
.tabs__btn:hover { color: var(--red-deep); background: var(--red-wash); }
.tabs__btn[aria-selected="true"] { color: var(--red-deep); border-bottom-color: var(--red); background: var(--paper); font-weight: 700; }
.tabs__panel { padding: 1.7rem; animation: fadeUp .38s var(--ease); }
.tabs__panel[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- accordion */
.acc { border-top: 1px dotted var(--red); }
.acc__item { border-bottom: 1px dotted var(--red); }
.acc__btn {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	text-align: left;
	font-family: var(--font-serif);
	font-size: 1.04rem;
	font-weight: 700;
	color: var(--ink);
	background: transparent;
	border: 0;
	padding: 1.1em .2em;
	cursor: pointer;
	transition: color .2s var(--ease);
}
.acc__btn:hover { color: var(--red-deep); }
.acc__sign { flex: 0 0 auto; width: 20px; height: 20px; position: relative; }
.acc__sign::before, .acc__sign::after {
	content: ""; position: absolute; background: var(--red); transition: transform .3s var(--ease);
	left: 50%; top: 50%;
}
.acc__sign::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.acc__sign::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.acc__btn[aria-expanded="true"] .acc__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__panel { overflow: hidden; height: 0; transition: height .32s var(--ease); }
.acc__inner { padding: 0 .2em 1.3em; color: var(--ink-soft); }

/* ---------------------------------------------------------------- timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.9rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: .5rem; bottom: .5rem; width: 1px; background: var(--line); }
.timeline li { position: relative; margin-bottom: 1.7rem; }
.timeline li::before {
	content: ""; position: absolute; left: -1.9rem; top: .45em;
	width: 11px; height: 11px; border-radius: 50%;
	background: var(--paper); border: 2px solid var(--red);
}
.timeline time { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red-deep); }
.timeline h4 { margin: .15em 0 .3em; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------------------------------------------------------------- weblog (home news) */
.weblog__day { margin-bottom: 2.6rem; }
.weblog__date {
	font-size: .82rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--red-deep);
	border-bottom: 1px dotted var(--red);
	padding-bottom: .5em;
	margin-bottom: 1.1em;
	font-weight: 700;
}
.weblog__entry { margin-bottom: 1.3em; padding-left: 1.1rem; border-left: 1px solid var(--line); transition: border-color .25s var(--ease); }
.weblog__entry:hover { border-left-color: var(--red); }
.weblog__entry p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- article */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.2em; padding-top: .3em; }
.prose h3 { margin-top: 1.8em; }
.prose img { border-radius: var(--radius-l); border: 1px solid var(--line); display: block; }
.prose figure { margin: 2rem 0; }
.prose figcaption { font-size: .85rem; color: var(--ink-faint); margin-top: .6em; font-style: italic; }
.prose ul li::marker, .prose ol li::marker { color: var(--red); }

.article__head { border-bottom: 1px dotted var(--red); padding-bottom: 1.6rem; margin-bottom: 2rem; }
.article__meta { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .84rem; color: var(--ink-faint); margin-top: .9rem; align-items: center; }
.article__meta img { border-radius: 50%; width: 34px; height: 34px; border: 1px solid var(--line); }
.article__cover { margin: 0 0 2rem; }
.article__cover { max-width: 860px; margin-inline: auto; }
.article__cover img { width: 100%; border-radius: var(--radius-l); border: 1px solid var(--line); display: block; }

.toc {
	background: var(--paper);
	border: 1px solid var(--line);
	border-left: 3px solid var(--red);
	border-radius: var(--radius);
	padding: 1.1rem 1.2rem;
	font-size: .88rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: .45em; }
.toc li::before { content: counter(toc, decimal-leading-zero) " "; color: var(--red); font-size: .78em; }
.toc a { color: var(--ink-soft); }
.toc a.is-current { color: var(--red-deep); font-weight: 700; }

.codeblock { position: relative; margin: 1.6rem 0; }
.codeblock pre {
	margin: 0;
	overflow-x: auto;
	background: #201b17;
	color: #efe6d6;
	border-radius: var(--radius-l);
	border: 1px solid #100d0a;
	padding: 1.15rem 1.2rem;
	font-family: var(--font-mono);
	font-size: .855rem;
	line-height: 1.62;
	tab-size: 3;
}
.codeblock pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.codeblock__bar {
	display: flex; justify-content: space-between; align-items: center;
	background: var(--paper-3);
	border: 1px solid var(--line);
	border-bottom: 0;
	border-radius: var(--radius-l) var(--radius-l) 0 0;
	padding: .45em .8em;
	font-size: .76rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-faint);
}
.codeblock__bar + pre { border-radius: 0 0 var(--radius-l) var(--radius-l); }
.copy-btn {
	font-family: var(--font-serif);
	font-size: .74rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	background: transparent;
	border: 1px dotted var(--red);
	border-radius: 3px;
	color: var(--red-deep);
	padding: .25em .7em;
	cursor: pointer;
	transition: all .2s var(--ease);
}
.copy-btn:hover { background: var(--red-deep); color: #fff; }
.tok-kw { color: #ff8a72; }
.tok-str { color: #b8d68a; }
.tok-com { color: #8d8375; font-style: italic; }
.tok-num { color: #e2c08d; }
.tok-fn { color: #92c5e8; }

.callout {
	background: var(--red-wash);
	border: 1px dotted var(--red);
	border-radius: var(--radius-l);
	padding: 1.15rem 1.3rem;
	margin: 1.8rem 0;
}
.callout h4 { margin-bottom: .35em; color: var(--red-deep); }
.callout p:last-child { margin-bottom: 0; }

.share { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: 2.4rem 0 0; }
.share span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.6rem; }
.pager a {
	border: 1px solid var(--line);
	border-radius: var(--radius-l);
	padding: 1rem 1.2rem;
	text-decoration: none !important;
	transition: all .25s var(--ease);
	background: var(--paper);
}
.pager a:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow-m); }
.pager small { display: block; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
.pager b { color: var(--ink); font-weight: 700; }
.pager .next { text-align: right; }

.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0 0 1.4rem; font-size: .82rem; color: var(--ink-faint); }
.breadcrumb li::after { content: "›"; margin-left: .45rem; color: var(--red); }
.breadcrumb li:last-child::after { content: ""; }

/* reading bar */
.readbar { position: fixed; left: 0; top: 0; height: 3px; background: var(--red); width: 0; z-index: 300; }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .38rem; }
.field > label { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
	font-family: var(--font-serif);
	font-size: 1rem;
	padding: .68em .85em;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	width: 100%;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none;
	border-color: var(--red);
	box-shadow: 0 0 0 3px var(--red-wash);
}
.field .hint { font-size: .8rem; color: var(--ink-faint); }
.field .err { font-size: .8rem; color: var(--red); min-height: 1.1em; display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); background: var(--red-wash); }
.field.is-invalid .err { display: block; animation: shakeIn .3s var(--ease); }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-color: #4b8b3b; }
@keyframes shakeIn {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .6rem; }
.field--check input { width: 17px; height: 17px; margin-top: .28em; }
.field--check label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .92rem; color: var(--ink-soft); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.form__status { font-size: .9rem; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.newsletter {
	display: flex;
	gap: .6rem;
	flex-wrap: wrap;
	align-items: flex-start;
}
.newsletter .field { flex: 1 1 220px; }

/* ---------------------------------------------------------------- footer */
.footer {
	border-top: 1px dotted var(--red);
	background: var(--paper);
	padding: 3rem 0 1.6rem;
	font-size: .92rem;
}
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 2rem; }
.footer h4 { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red-deep); margin-bottom: 1em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .5em; }
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--red); }
.footer__bar {
	display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
	border-top: 1px dotted var(--line);
	margin-top: 2.2rem; padding-top: 1.2rem;
	font-size: .82rem; color: var(--ink-faint);
}
.footer__bar ul { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------------------------------------------------------------- widgets */
.to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 140;
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 1px solid var(--red);
	background: var(--paper);
	color: var(--red-deep);
	cursor: pointer;
	display: grid; place-items: center;
	box-shadow: var(--shadow-m);
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: all .3s var(--ease);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-deep); color: #fff; }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.toasts { position: fixed; right: 16px; bottom: 74px; z-index: 400; display: grid; gap: .5rem; max-width: min(92vw, 330px); }
.toast {
	background: var(--paper);
	border: 1px solid var(--line);
	border-left: 3px solid var(--red);
	border-radius: var(--radius);
	box-shadow: var(--shadow-l);
	padding: .8rem 1rem;
	font-size: .88rem;
	animation: toastIn .3s var(--ease);
}
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

.cookiebar {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 350;
	background: var(--paper);
	border: 1px solid var(--line);
	border-top: 3px solid var(--red);
	border-radius: var(--radius-l);
	box-shadow: var(--shadow-l);
	padding: 1.1rem 1.3rem;
	display: none;
	gap: 1rem;
	align-items: center;
	flex-wrap: wrap;
	max-width: 760px;
	margin-inline: auto;
	animation: slideUp .4s var(--ease);
}
.cookiebar.is-on { display: flex; }
.cookiebar p { margin: 0; flex: 1 1 320px; font-size: .88rem; }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.lightbox {
	position: fixed; inset: 0; z-index: 500;
	background: rgba(16, 13, 11, .88);
	display: grid; place-items: center; padding: 4vh 4vw;
	opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), visibility .28s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.lightbox__close {
	position: absolute; top: 14px; right: 16px;
	width: 42px; height: 42px; border-radius: 50%;
	border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff;
	font-size: 1.4rem; cursor: pointer; line-height: 1;
}

/* ---------------------------------------------------------------- reveal */
[data-reveal] {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .6s var(--ease), transform .6s var(--ease);
	will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[] { transform: translateX(-26px); }
[] { transform: translateX(26px); }
[data-reveal="zoom"] { transform: scale(.94); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
	.shell { grid-template-columns: minmax(0, 1fr); }
	.rail { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
	.rail__block { border-right: 0; border-bottom: 1px dotted var(--red); padding: 0 0 1.1rem; }
	.hero__inner { grid-template-columns: minmax(0, 1fr); padding: 3rem 0; }
	.hero__art { order: -1; max-width: 480px; }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1160px) {
	.brand__tag { display: none; }
}

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		position: fixed;
		inset: 68px 0 auto 0;
		background: var(--paper);
		border-bottom: 1px dotted var(--red);
		box-shadow: var(--shadow-l);
		max-height: calc(100dvh - 68px);
		overflow-y: auto;
		transform: translateY(-12px);
		opacity: 0;
		visibility: hidden;
		transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
		padding: .8rem 1.25rem 1.4rem;
	}
	.nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__link { padding: .8em .2em; border-bottom: 1px dotted var(--line); font-size: 1rem; }
	.nav__link::after { display: none; }
	.nav__panel {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; border-left: 1px dotted var(--red);
		margin: 0 0 .6rem .8rem; padding: .2rem 0 .2rem .5rem; display: none;
	}
	.nav__panel.is-open { display: block; }
	.grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stat:nth-child(2n) { border-right: 0; }
	.stat:nth-child(-n+2) { border-bottom: 1px dotted var(--line); }
	.form__row { grid-template-columns: minmax(0, 1fr); }
	.pager { grid-template-columns: minmax(0, 1fr); }
	.pager .next { text-align: left; }
	.brand__tag { display: none; }
}

@media (max-width: 560px) {
	body { font-size: 16px; }
	.grid--4 { grid-template-columns: minmax(0, 1fr); }
	.footer__grid { grid-template-columns: minmax(0, 1fr); }
	.rail { grid-template-columns: minmax(0, 1fr); }
	.section { padding: 2.6rem 0; }
	.card__media { margin: -1.5rem -1.5rem 1.1rem; }
}

@media (max-width: 900px) {
	/* a sideways entrance offset would widen the page on a narrow screen */
	[], [] { transform: translateY(20px); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
	[data-reveal] { opacity: 1; transform: none; }
}

@media print {
	.masthead, .footer, .to-top, .cookiebar, .rail, .share, .pager, .toasts { display: none !important; }
	body { background: #fff; font-size: 12pt; }
	a { color: #000; text-decoration: underline; }
	.prose { max-width: none; }
}
