@charset "UTF-8";

/*
 * The text pages: About, Privacy, Terms, Contact, Accessibility, the Publish
 * Schedule, the 404 and the signup thanks page. Option 02 "Index", the
 * owner's pick of 2026-11-11 (mockups/text-page/02-index-*.html).
 *
 * Loads after /css/home.css (the reset, Jost, DM Mono, the lime selection and
 * focus ring) and before chrome.css, as example.css does on the example
 * pages. global.css is never loaded here. Built in text-page.njk.
 *
 * The page opens like an example page's Chapters opening: the trail, the
 * title at the chapter size, the lede, and the page's sections listed beside
 * them as an index. Below, each section opens with a heavy rule and a big
 * heading. From lg up a rail of the same links stays pinned on the left and
 * lights the section on screen, with the chapter bar's own scroll-timeline
 * trick; where scroll timelines are missing, the section a reader jumped to
 * lights instead (:target). On a phone the rail drops.
 *
 * Grounds stay inside the theme's own pair, as the home fields and the Tips
 * bands do: paper and charcoal (#1f1f22) in the light theme, ink (#0c0c0d)
 * and the second dark (#1f1f22) in the dark one. Each ground carries its own
 * tokens, so the words, the links and the inline code read on it.
 *
 *   .ground-page   the reading ground: paper, or ink in the dark theme
 *   .ground-close  the block that meets the footer's signup row: charcoal
 *                  against the paper row in the light theme, ink against
 *                  the row's second dark in the dark one. So the page ends
 *                  on a color change, never on a strip of the row's own
 *                  ground (owner, flagged twice).
 *
 * Flat CSS only (the repo's iOS 15.2 rule). Breakpoints use Bootstrap's
 * names: sm 576, md 768, lg 992, xl 1200, xxl 1400.
 */

/* ── Ground tokens ────────────────────────────────────────────────────── */

/* paper. The --bg to --accent set is the site's demo token names, which the
   one inline code style and the 404's radar are written against */
.ground-page {
	--g: #f4f1eb;
	--g-ink: #0c0c0d;
	--g-body: #1f1e1b;
	--g-muted: #4f4e48;
	--g-line: rgba(12, 12, 13, .16);
	--g-rule: #0c0c0d;
	--g-link: #6f2fd6;
	--bg: #f4f1eb;
	--surface: #ffffff;
	--surface-2: #ede9e0;
	--border: #d0ccc0;
	--text: #1a1a1a;
	--text-muted: #5c5c55;
	--accent: #6f2fd6;
	color-scheme: light;
}

/* charcoal: the light theme's closing block */
.ground-close {
	--g: #1f1f22;
	--g-ink: #f4f1eb;
	--g-body: #e4e1da;
	--g-muted: #a9a69e;
	--g-line: rgba(244, 241, 235, .16);
	--g-rule: #f4f1eb;
	--g-link: #c084fc;
	--bg: #1f1f22;
	--surface: #29292d;
	--surface-2: #333338;
	--border: #44444a;
	--text: #f0f0f0;
	--text-muted: #a2a2aa;
	--accent: #b8ff57;
	color-scheme: dark;
}

/* ink: the dark theme's reading ground and its closing block */
body:has(#theme-toggle:checked) .ground-page,
body:has(#theme-toggle:checked) .ground-close {
	--g: #0c0c0d;
	--g-ink: #f4f1eb;
	--g-body: #e4e1da;
	--g-muted: #a9a69e;
	--g-line: rgba(244, 241, 235, .16);
	--g-rule: #f4f1eb;
	--g-link: #c084fc;
	--bg: #0c0c0d;
	--surface: #141415;
	--surface-2: #1c1c1e;
	--border: #2a2a2d;
	--text: #f0f0f0;
	--text-muted: #88888f;
	--accent: #b8ff57;
	color-scheme: dark;
}

.ground-page,
.ground-close {
	color: var(--g-ink);
	background: var(--g);
}

/* the body under main is the footer's ink (home.css); main paints nothing,
   its blocks paint their own grounds. When a short page leaves main spare
   height in a tall window (chrome.css), the page hands it to its last block,
   so the extra is that block's ground and the page still ends on a color
   change before the footer */
main {
	display: flex;
	flex-direction: column;
}

main > .text-page {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
}

.text-page > :last-child {
	flex: 1 0 auto;
}

.text-page {
	--rail-w: 15rem;
	--rail-gap: clamp(3rem, 6vw, 7rem);
	--column: 42rem;
}

/* every heading a link can land on clears the sticky header */
.text-page [id] {
	scroll-margin-top: calc(var(--head-h) + 1.5rem);
}

/* ── The trail: Home > Page, as on the example pages ──────────────────── */

.breadcrumb-trail ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .3rem .5rem;
	list-style: none;
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.3;
}

.breadcrumb-trail li {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	color: var(--g-muted);
}

.breadcrumb-trail a {
	color: inherit;
	text-decoration: none;
	border-radius: 4px;
}

.breadcrumb-trail a:hover {
	color: var(--g-ink);
	text-decoration: underline;
}

.breadcrumb-trail [aria-current] {
	color: var(--g-ink);
}

.breadcrumb-trail .fa-icon {
	width: .55em;
	height: .55em;
	opacity: .7;
}

/* ── The opening: the title, the lede, and the index beside them ──────── */

.text-opening {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: 2.5rem clamp(2.5rem, 6vw, 7rem);
	padding: clamp(1.5rem, 2.5vw, 2.25rem) var(--gutter) clamp(2.5rem, 4vw, 3.5rem);
}

@media (min-width: 1200px) {
	.text-opening {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}

	/* the index lines up with the title's cap height */
	.text-index {
		padding-top: 2.6rem;
	}
}

.text-opening h1 {
	margin: clamp(.75rem, 1.5vw, 1.25rem) 0 clamp(1rem, 2vw, 1.75rem);
	font-size: clamp(3rem, 5.6vw, 6rem);
	font-weight: 800;
	line-height: .9;
	letter-spacing: -.035em;
	color: var(--g-ink);
	text-wrap: balance;
}

.text-lede {
	max-width: 46ch;
	font-size: clamp(1.1875rem, 1.4vw, 1.375rem);
	font-weight: 480;
	line-height: 1.5;
	color: var(--g-ink);
	text-wrap: pretty;
}

/* the chapter index's look: a heavy rule, then one row per section */
.text-index ol,
.text-index ul {
	list-style: none;
	border-top: 2px solid var(--g-rule);
}

.text-index a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 1rem;
	padding: .55rem 0 .6rem;
	color: var(--g-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--g-line);
}

.text-index-title {
	font-size: clamp(1.1875rem, 1.5vw, 1.4375rem);
	font-weight: 750;
	line-height: 1.15;
	letter-spacing: -.01em;
}

.text-index .fa-icon {
	width: 1rem;
	height: 1rem;
	transition: transform .35s var(--ease-out);
}

.text-index a:hover .text-index-title {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: .15em;
}

/* a section link nods down the page; a link to another page nods across */
.text-index a:hover .fa-icon {
	transform: translateY(.2rem);
}

.text-index-away a:hover .fa-icon {
	transform: translateX(.2rem);
}

/* ── The body: the rail and the text ──────────────────────────────────── */

.text-body {
	padding: 0 var(--gutter) clamp(4rem, 7vw, 6rem);
	box-shadow: inset 0 1px 0 var(--g-line);
}

.text-rail {
	display: none;
}

.text-column {
	max-width: var(--column);
	padding-top: clamp(2.5rem, 4vw, 3.5rem);
}

@media (min-width: 992px) {
	.text-body {
		display: grid;
		grid-template-columns: var(--rail-w) minmax(0, var(--column));
		column-gap: var(--rail-gap);
		align-items: start;
	}

	.text-rail {
		display: block;
		position: sticky;
		top: calc(var(--head-h) + 1.5rem);
		padding-top: clamp(2.5rem, 4vw, 3.5rem);
	}
}

.text-rail ol {
	display: grid;
	gap: .15rem;
	list-style: none;
}

.text-rail-link {
	display: block;
	padding: .45rem .9rem;
	font-size: .9875rem;
	font-weight: 650;
	line-height: 1.25;
	color: var(--g-muted);
	text-decoration: none;
	border-radius: 999px;
}

.text-rail-link:hover {
	color: var(--g-ink);
	box-shadow: inset 0 0 0 1.5px var(--g-line);
}

.text-intro {
	margin-bottom: clamp(3rem, 5vw, 4rem);
}

.text-section + .text-section {
	margin-top: clamp(3.5rem, 6vw, 5rem);
}

/* each section opens like a chapter: a heavy rule and a big heading */
.text-section h2,
.text-close h2 {
	margin-bottom: 1.25rem;
	padding-top: 1.1rem;
	font-size: clamp(2.125rem, 3.4vw, 3.25rem);
	font-weight: 800;
	line-height: .95;
	letter-spacing: -.03em;
	color: var(--g-ink);
	border-top: 2px solid var(--g-rule);
	text-wrap: balance;
}

/* ── Reading: paragraphs, links, the one inline code style ────────────── */

/* Body text is the page's near-ink, never the muted gray, and a touch
   heavier than Jost's 400, which reads thin at text size */
.text-column p,
.text-close p {
	max-width: 66ch;
	font-size: 1.125rem;
	font-weight: 430;
	line-height: 1.7;
	color: var(--g-body);
	text-wrap: pretty;
}

.text-column p + p,
.text-close p + p {
	margin-top: 1.1rem;
}

.text-page p a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--g-link);
	text-decoration-thickness: 1.5px;
	text-underline-offset: .2em;
}

.text-page p a:hover {
	text-decoration-thickness: 2.5px;
}

/* the site's one inline code style (global.css, example.css), on the
   ground's own tokens */
:not(pre, dt, th) > code {
	padding: .12em .4em;
	font-family: var(--font-mono);
	font-size: .85em;
	color: var(--text);
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 4px;
	overflow-wrap: anywhere;
}

/* the credit line on Terms stands on its own between two paragraphs */
.text-section > code {
	display: inline-block;
	margin: 1rem 0;
	font-size: 1rem;
}

/* ── The close: the last section, lined up with the text column ───────── */

.text-close {
	padding: clamp(3.5rem, 6vw, 5.5rem) var(--gutter);
}

.text-close-column {
	max-width: var(--column);
}

@media (min-width: 992px) {
	.text-close-column {
		margin-left: calc(var(--rail-w) + var(--rail-gap));
	}
}

/* in the dark theme the close is ink on ink, so the body keeps no room of
   its own above it: the close's own padding is the gap, about the size of
   the gap between two sections */
body:has(#theme-toggle:checked) .text-body {
	padding-bottom: 0;
}

/* ── The lit link: the section on screen ──────────────────────────────── */

/* Each section is a thin line 40% down the screen for its timeline, so only
   one section lights at a time (the chapter bar's own trick). Up to 24
   sections: the Publish Schedule's months are the longest list */
@supports (timeline-scope: --text-1) and (animation-timeline: view()) {
	.text-page {
		timeline-scope: --text-1, --text-2, --text-3, --text-4, --text-5, --text-6, --text-7, --text-8, --text-9, --text-10, --text-11, --text-12, --text-13, --text-14, --text-15, --text-16, --text-17, --text-18, --text-19, --text-20, --text-21, --text-22, --text-23, --text-24;
	}

	.text-tl-1 { view-timeline: --text-1 block; }
	.text-tl-2 { view-timeline: --text-2 block; }
	.text-tl-3 { view-timeline: --text-3 block; }
	.text-tl-4 { view-timeline: --text-4 block; }
	.text-tl-5 { view-timeline: --text-5 block; }
	.text-tl-6 { view-timeline: --text-6 block; }
	.text-tl-7 { view-timeline: --text-7 block; }
	.text-tl-8 { view-timeline: --text-8 block; }
	.text-tl-9 { view-timeline: --text-9 block; }
	.text-tl-10 { view-timeline: --text-10 block; }
	.text-tl-11 { view-timeline: --text-11 block; }
	.text-tl-12 { view-timeline: --text-12 block; }
	.text-tl-13 { view-timeline: --text-13 block; }
	.text-tl-14 { view-timeline: --text-14 block; }
	.text-tl-15 { view-timeline: --text-15 block; }
	.text-tl-16 { view-timeline: --text-16 block; }
	.text-tl-17 { view-timeline: --text-17 block; }
	.text-tl-18 { view-timeline: --text-18 block; }
	.text-tl-19 { view-timeline: --text-19 block; }
	.text-tl-20 { view-timeline: --text-20 block; }
	.text-tl-21 { view-timeline: --text-21 block; }
	.text-tl-22 { view-timeline: --text-22 block; }
	.text-tl-23 { view-timeline: --text-23 block; }
	.text-tl-24 { view-timeline: --text-24 block; }

	.text-section,
	.text-close {
		view-timeline-inset: 40% 59.9%;
	}

	.text-rail-link {
		animation: text-lit linear;
		animation-range: cover;
	}

	.text-lit-1 { animation-timeline: --text-1; }
	.text-lit-2 { animation-timeline: --text-2; }
	.text-lit-3 { animation-timeline: --text-3; }
	.text-lit-4 { animation-timeline: --text-4; }
	.text-lit-5 { animation-timeline: --text-5; }
	.text-lit-6 { animation-timeline: --text-6; }
	.text-lit-7 { animation-timeline: --text-7; }
	.text-lit-8 { animation-timeline: --text-8; }
	.text-lit-9 { animation-timeline: --text-9; }
	.text-lit-10 { animation-timeline: --text-10; }
	.text-lit-11 { animation-timeline: --text-11; }
	.text-lit-12 { animation-timeline: --text-12; }
	.text-lit-13 { animation-timeline: --text-13; }
	.text-lit-14 { animation-timeline: --text-14; }
	.text-lit-15 { animation-timeline: --text-15; }
	.text-lit-16 { animation-timeline: --text-16; }
	.text-lit-17 { animation-timeline: --text-17; }
	.text-lit-18 { animation-timeline: --text-18; }
	.text-lit-19 { animation-timeline: --text-19; }
	.text-lit-20 { animation-timeline: --text-20; }
	.text-lit-21 { animation-timeline: --text-21; }
	.text-lit-22 { animation-timeline: --text-22; }
	.text-lit-23 { animation-timeline: --text-23; }
	.text-lit-24 { animation-timeline: --text-24; }
}

/* Without scroll timelines (Firefox today) no link can follow the scroll,
   but the section a reader jumped to is the address's target, so its link
   lights until they jump somewhere else, as the chapter bar's chips do */
@supports not ((timeline-scope: --text-1) and (animation-timeline: view())) {
	.text-page:has(.text-tl-1:target) .text-lit-1,
	.text-page:has(.text-tl-2:target) .text-lit-2,
	.text-page:has(.text-tl-3:target) .text-lit-3,
	.text-page:has(.text-tl-4:target) .text-lit-4,
	.text-page:has(.text-tl-5:target) .text-lit-5,
	.text-page:has(.text-tl-6:target) .text-lit-6,
	.text-page:has(.text-tl-7:target) .text-lit-7,
	.text-page:has(.text-tl-8:target) .text-lit-8,
	.text-page:has(.text-tl-9:target) .text-lit-9,
	.text-page:has(.text-tl-10:target) .text-lit-10,
	.text-page:has(.text-tl-11:target) .text-lit-11,
	.text-page:has(.text-tl-12:target) .text-lit-12,
	.text-page:has(.text-tl-13:target) .text-lit-13,
	.text-page:has(.text-tl-14:target) .text-lit-14,
	.text-page:has(.text-tl-15:target) .text-lit-15,
	.text-page:has(.text-tl-16:target) .text-lit-16,
	.text-page:has(.text-tl-17:target) .text-lit-17,
	.text-page:has(.text-tl-18:target) .text-lit-18,
	.text-page:has(.text-tl-19:target) .text-lit-19,
	.text-page:has(.text-tl-20:target) .text-lit-20,
	.text-page:has(.text-tl-21:target) .text-lit-21,
	.text-page:has(.text-tl-22:target) .text-lit-22,
	.text-page:has(.text-tl-23:target) .text-lit-23,
	.text-page:has(.text-tl-24:target) .text-lit-24 {
		color: var(--g);
		background: var(--g-ink);
	}
}

@keyframes text-lit {
	from,
	to {
		color: var(--g);
		background: var(--g-ink);
	}
}

/* ── The Publish Schedule: one table per month ────────────────────────── */

/* The month tables share their column widths, so the dates line up from
   one month to the next. Each cell carries its table role, so a phone's
   two-line rows (below) keep reading as a table */
.schedule-table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.schedule-table th {
	padding: .4rem .75rem .5rem;
	font-size: .8125rem;
	font-weight: 650;
	line-height: 1.3;
	text-align: left;
	white-space: nowrap;
	color: var(--g-muted);
	border-bottom: 1px solid var(--g-line);
}

.schedule-table td {
	padding: .6rem .75rem;
	font-size: 1.0625rem;
	font-weight: 430;
	line-height: 1.4;
	vertical-align: baseline;
	color: var(--g-body);
	border-bottom: 1px solid var(--g-line);
}

.schedule-table th:first-child,
.schedule-table td:first-child {
	width: 3.25rem;
	padding-left: 0;
	text-align: right;
}

.schedule-table th:nth-child(3),
.schedule-table th:nth-child(4) {
	width: 9.5rem;
}

.schedule-table td:first-child,
.schedule-table td:nth-child(3),
.schedule-table td:nth-child(4) {
	font-family: var(--font-mono);
	font-size: .8125rem;
	white-space: nowrap;
	color: var(--g-muted);
}

.schedule-table a {
	color: var(--g-ink);
	text-decoration: underline;
	text-decoration-color: var(--g-link);
	text-decoration-thickness: 1.5px;
	text-underline-offset: .2em;
}

.schedule-table a:hover {
	text-decoration-thickness: 2.5px;
}

/* a page still to come: its title in the muted gray, which holds 4.5:1 */
.schedule-table tr.sitemap-pending td {
	color: var(--g-muted);
}

.rel-time {
	cursor: help;
	text-decoration: underline dotted;
	text-decoration-color: var(--g-line);
	text-underline-offset: .25em;
}

/* the pages above the examples sit over the months, under no heading */
.schedule-pages {
	margin-bottom: clamp(3rem, 5vw, 4rem);
}

/* on a phone each row reads on two lines: the title, then its dates */
@media (max-width: 575.98px) {
	.schedule-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.schedule-table tr {
		display: grid;
		grid-template-columns: 2.25rem minmax(0, 1fr) auto;
		align-items: baseline;
		gap: .2rem .75rem;
		padding: .65rem 0;
		border-bottom: 1px solid var(--g-line);
	}

	.schedule-table td {
		padding: 0;
		border: 0;
	}

	.schedule-table td:first-child {
		grid-row: 1;
		width: auto;
	}

	.schedule-table td:nth-child(2) {
		grid-column: 2 / span 2;
	}

	.schedule-table td:nth-child(3) {
		grid-column: 2;
		grid-row: 2;
	}

	.schedule-table td:nth-child(4) {
		grid-column: 3;
		grid-row: 2;
		text-align: right;
	}

	.schedule-table td:empty {
		display: none;
	}
}

/* ── A page with no sections: the 404 and the thanks page ─────────────── */

/* The whole page is its opening, on the closing ground, so it still meets
   the signup row on a color change */
.text-short {
	padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.text-short .text-opening-main > p + p {
	margin-top: 1rem;
}

/* ── Reduced motion ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.text-index .fa-icon {
		transition: none;
	}
}
