/*
 * Base typography, layout primitives and focus styles.
 *
 * Reads the custom properties from tokens.css and defines no colour of its own.
 *
 * Requirements: 20.1, 20.2, 23.1, 23.2, 23.4, 23.6, 23.7
 */

/* ---------------------------------------------------------------------------
 * Reset, only what is needed
 * ------------------------------------------------------------------------ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	/* No font-size override: 100% keeps the visitor's own browser setting. */
	-webkit-text-size-adjust: 100%;
	hanging-punctuation: first last;
}

body {
	margin: 0;
	background-color: var(--itwt-paper);
	color: var(--itwt-ink);
	font-family: var(--itwt-font-body);
	font-size: var(--itwt-size-body);
	font-weight: var(--itwt-weight-body);
	font-kerning: normal;
	line-height: var(--itwt-line-body);
	text-rendering: optimizeLegibility;
}

img,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

/* ---------------------------------------------------------------------------
 * Typography
 * ------------------------------------------------------------------------ */

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--itwt-font-head);
	font-weight: var(--itwt-weight-head);
	font-optical-sizing: auto;
	letter-spacing: var(--itwt-tracking-head);
	line-height: var(--itwt-line-head);
	text-wrap: balance;
}

/*
 * Headings take the structural blue. It is a colour of the site, not of a state,
 * so it can never be read as a verdict on the record underneath it.
 */
h1,
h2 {
	color: var(--itwt-brand);
}

h1 {
	font-size: var(--itwt-size-h1);
}

h2 {
	font-size: var(--itwt-size-h2);
}

h3,
h4 {
	font-size: var(--itwt-size-h3);
}

p,
ul,
ol,
dl,
table,
figure,
blockquote {
	margin: 0;
}

strong,
th {
	font-weight: var(--itwt-weight-strong);
}

small {
	font-size: var(--itwt-size-small);
}

/*
 * Mono for kenmerken and dates: an administrative identifier and a date are
 * read character by character and compared against a letter, so they get a
 * typeface where digits align and 1 and l cannot be confused.
 */
code,
time,
.itwt-mono,
.itwt-kenmerk,
.itwt-date {
	font-family: var(--itwt-font-mono);
	font-size: var(--itwt-size-mono);
	font-variant-numeric: tabular-nums;
}

/*
 * Links are blue and underlined. Both, not either: the underline is what makes a
 * link findable for a reader who does not see the colour difference.
 */
a {
	color: var(--itwt-link);
	text-decoration-thickness: from-font;
	text-underline-offset: 0.15em;
}

a:hover {
	text-decoration-thickness: var(--itwt-rule-width-strong);
}

/* ---------------------------------------------------------------------------
 * Focus
 *
 * One rule for every focusable element, and nothing anywhere in the theme sets
 * outline to none. Deliberately on :focus rather than :focus-visible only: a
 * ring after a mouse click is a small cost against losing the indicator
 * wherever the heuristic disagrees with us.
 *
 * Requirements: 23.4
 * ------------------------------------------------------------------------ */

:focus {
	outline: var(--itwt-focus-width) solid var(--itwt-focus);
	outline-offset: var(--itwt-focus-offset);
}

/* ---------------------------------------------------------------------------
 * Reduced motion
 *
 * Requirements: 23.7
 * ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

/* ---------------------------------------------------------------------------
 * Layout primitives
 * ------------------------------------------------------------------------ */

.itwt-shell {
	width: 100%;
	max-width: var(--itwt-page-max);
	margin-inline: auto;
	padding-inline: var(--itwt-page-gutter);
}

/* Vertical rhythm through the owl selector, so no element carries a margin. */
.itwt-stack > * + * {
	margin-block-start: var(--itwt-space-m);
}

.itwt-stack--loose > * + * {
	margin-block-start: var(--itwt-space-l);
}

/* Reading measure for running text. */
.itwt-prose {
	max-width: var(--itwt-measure);
	hyphens: auto;
	-webkit-hyphens: auto;
}

.itwt-prose > * + * {
	margin-block-start: var(--itwt-space-m);
}

.itwt-prose p {
	text-wrap: pretty;
}

/*
 * Section label: the small tracked line above a heading that says what kind of
 * thing follows. Ink-soft and uppercase, so it reads as a label and never
 * competes with the heading it introduces. Below the 16px body floor on
 * purpose — a label is not body text, and it is never the only carrier of
 * information: the heading under it says the same thing in words.
 */
.itwt-label {
	display: block;
	color: var(--itwt-brand);
	font-family: var(--itwt-font-body);
	font-size: var(--itwt-size-label);
	font-weight: var(--itwt-weight-strong);
	letter-spacing: var(--itwt-tracking-label);
	line-height: 1.3;
	text-transform: uppercase;
}

/*
 * Lead paragraph: one step up from body text, on a shorter measure, so the
 * opening of a page is read before the rest. Typographic weight only, no
 * colour of its own.
 */
.itwt-lede {
	max-width: var(--itwt-measure-lede);
	font-size: var(--itwt-size-lede);
	line-height: 1.45;
	text-wrap: pretty;
}

/*
 * Section heading with a rule above it: the horizontal line that divides a long
 * page into parts. One rule per section rather than a border on every item,
 * which is what kept the earlier layout looking like an unstyled document.
 */
.itwt-section {
	border-block-start: var(--itwt-rule-width-strong) solid var(--itwt-brand);
	padding-block-start: var(--itwt-space-m);
}

.itwt-section__title {
	margin-block-start: var(--itwt-space-2xs);
}

.itwt-list {
	list-style: none;
	padding: 0;
}

.itwt-list__item + .itwt-list__item {
	margin-block-start: var(--itwt-space-s);
	border-block-start: var(--itwt-rule-width) solid var(--itwt-rule);
	padding-block-start: var(--itwt-space-s);
}

/*
 * Card variant: each item becomes a panel on the raised surface instead of a
 * row separated by a hairline, and the list lays out side by side once there is
 * room. Used for the front page entries, where two destinations of equal weight
 * read better as two blocks than as a stack.
 */
.itwt-list--cards {
	display: grid;
	gap: var(--itwt-space-m);
	grid-template-columns: 1fr;
}

.itwt-list--cards .itwt-list__item {
	display: flex;
	border: var(--itwt-rule-width) solid var(--itwt-rule);
	border-block-start: var(--itwt-space-2xs) solid var(--itwt-brand);
	border-radius: var(--itwt-radius);
	background-color: var(--itwt-paper-raised);
	padding: var(--itwt-space-l);
	flex-direction: column;
	gap: var(--itwt-space-xs);
}

/* The card variant carries its own separation, so the row rule is dropped. */
.itwt-list--cards .itwt-list__item + .itwt-list__item {
	margin-block-start: 0;
	border-block-start: var(--itwt-space-2xs) solid var(--itwt-brand);
	padding-block-start: var(--itwt-space-l);
}

.itwt-list--cards .itwt-list__title a {
	text-decoration-thickness: var(--itwt-rule-width-strong);
}

.itwt-list--cards p {
	color: var(--itwt-ink-soft);
}

@media (min-width: 42em) {

	.itwt-list--cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.itwt-page {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

.itwt-main {
	flex: 1 0 auto;
	padding-block: var(--itwt-space-xl);
}

.itwt-main:has(> .itwt-hero:first-child) {
	padding-block: 0;
}

@media (min-width: 48em) {

	.itwt-main {
		padding-block: var(--itwt-space-2xl);
	}

	.itwt-main:has(> .itwt-hero:first-child) {
		padding-block: 0;
	}

	:root {
		--itwt-page-gutter: var(--itwt-space-l);
	}
}

/* ---------------------------------------------------------------------------
 * Interactive elements
 *
 * Requirements: 23.1, 23.2
 * ------------------------------------------------------------------------ */

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button,
[type="button"],
[type="submit"],
[type="reset"],
.itwt-button {
	display: inline-flex;
	min-height: var(--itwt-tap-min);
	align-items: center;
	justify-content: center;
	border: var(--itwt-rule-width-strong) solid var(--itwt-ink);
	border-radius: var(--itwt-radius);
	background-color: var(--itwt-paper-raised);
	padding-inline: var(--itwt-space-m);
	font-family: var(--itwt-font-body);
	font-weight: var(--itwt-weight-strong);
	text-decoration: none;
	cursor: pointer;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
	min-height: var(--itwt-tap-min);
	max-width: 100%;
	border: var(--itwt-rule-width) solid var(--itwt-rule);
	border-radius: var(--itwt-radius);
	background-color: var(--itwt-paper-raised);
	padding: var(--itwt-space-xs) var(--itwt-space-s);
	/* Never below 16px: iOS zooms the page for anything smaller. */
	font-size: var(--itwt-size-body);
}

textarea {
	min-height: calc(var(--itwt-tap-min) * 4);
}

/* ---------------------------------------------------------------------------
 * Skip link
 *
 * Off-screen until focused, then the first visible thing on the page.
 *
 * Requirements: 23.4, 23.5
 * ------------------------------------------------------------------------ */

.itwt-skip-link {
	position: absolute;
	left: -9999px;
	z-index: 10;
	background-color: var(--itwt-paper-raised);
	padding: var(--itwt-space-xs) var(--itwt-space-s);
}

.itwt-skip-link:focus {
	left: var(--itwt-space-xs);
	top: var(--itwt-space-xs);
	display: inline-flex;
	min-height: var(--itwt-tap-min);
	align-items: center;
}

/* ---------------------------------------------------------------------------
 * Masthead and navigation
 * ------------------------------------------------------------------------ */

/*
 * The nameplate band.
 *
 * A dark band at the top and the bottom of the document, with the light page
 * between them. This is what gives the site a top and a tail instead of text
 * starting straight against the browser chrome. It is not a dark theme: the
 * page itself stays light at every setting, and the band uses the same grey
 * family as the ink, so no second colour enters the site.
 */
.itwt-masthead {
	position: sticky;
	top: 0;
	z-index: 300;
	background-color: var(--itwt-brand-deep);
	color: var(--itwt-paper);
}

/*
 * A hairline of the structural blue under the nameplate, brand on the left
 * running into link on the right. Two pixels, and the only purely decorative
 * element on the site: it gives the band an edge instead of a hard stop.
 */
.itwt-masthead::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	height: var(--itwt-rule-width-strong);
	background-image: var(--itwt-gradient-rule);
}

/* The masthead heading colour is the band's own, not the blue used on paper. */
.itwt-masthead h1,
.itwt-masthead h2,
.itwt-footer h1,
.itwt-footer h2 {
	color: var(--itwt-paper);
}

.itwt-masthead a,
.itwt-footer a {
	color: var(--itwt-paper);
}

/*
 * The ink focus ring would disappear into the band, so on the band the ring is
 * the paper colour. Same width, same offset, same rule: only the colour of the
 * outline changes with the surface it sits on.
 */
.itwt-masthead :focus,
.itwt-footer :focus {
	outline-color: var(--itwt-paper);
}

.itwt-masthead__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: var(--itwt-space-s);
	gap: var(--itwt-space-m);
}

.itwt-masthead,
.itwt-footer {
	-webkit-font-smoothing: antialiased;
}

.itwt-masthead__title {
	font-family: var(--itwt-font-head);
	font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.5625rem);
	font-weight: var(--itwt-weight-head);
	letter-spacing: -0.01em;
	line-height: var(--itwt-line-head);
}

.itwt-masthead__title a {
	text-decoration: none;
}

/* On the band a label takes the band's own quiet tone, not the blue. */
.itwt-masthead .itwt-label,
.itwt-footer .itwt-label {
	color: var(--itwt-paper-soft);
}

/*
 * On a wide screen the name sits left and the menu right, on one line.
 * Below that width the name is still left, the hamburger right.
 */
@media (max-width: 47.999em) {
	.itwt-masthead__title {
		font-size: var(--itwt-size-h3);
	}

	.itwt-masthead__inner {
		padding-block: var(--itwt-space-xs);
	}
}

@media (min-width: 48em) {

	.itwt-masthead__inner {
		padding-block: var(--itwt-space-l);
	}
}

/*
 * The menu is always visible and wraps; there is no collapsed state and no
 * toggle, so nothing can hide the site's structure on a phone.
 */
.itwt-nav__list {
	display: flex;
	margin: 0;
	flex-wrap: wrap;
	gap: var(--itwt-space-2xs) var(--itwt-space-m);
	list-style: none;
	padding: 0;
}

.itwt-nav__list li a,
.itwt-nav__list li span {
	display: inline-flex;
	min-height: var(--itwt-tap-min);
	align-items: center;
	font-size: var(--itwt-size-small);
	letter-spacing: 0.01em;
	text-decoration: none;
}

.itwt-nav__list li a:hover,
.itwt-nav__list li a:focus {
	text-decoration: underline;
	text-decoration-thickness: var(--itwt-rule-width-strong);
	text-underline-offset: 0.25em;
}

/*
 * The page you are on is named twice: in bold, and with a rule under it. Weight
 * alone is a weak signal at this size, and it is the only thing telling a reader
 * where they are.
 */
.itwt-nav__list .current-menu-item > a,
.itwt-nav__list .current_page_item > a {
	border-block-end: var(--itwt-rule-width-strong) solid currentcolor;
	font-weight: var(--itwt-weight-strong);
}

/*
 * Archive page headers: the label + title + intro pattern shared by the
 * dossieroverzicht, het verhalen-archief en het video-archief.
 */
.itwt-archive-header {
	padding-block-end: var(--itwt-space-xl);
	border-block-end: var(--itwt-rule-width-strong) solid var(--itwt-brand);
}

.itwt-archive-header .itwt-page-title {
	max-width: 18ch;
}

.itwt-archive-header__intro {
	max-width: var(--itwt-measure-lede);
	color: var(--itwt-ink-soft);
	font-size: var(--itwt-size-small);
}

/* ---------------------------------------------------------------------------
 * Front page
 *
 * The opening block is a label, the page title and the three framing sentences,
 * spaced tightly to each other and loosely from what follows, so the top of the
 * page reads as one unit. The Justitia still is a named figure under the name,
 * not a slogan and not a background photograph (Requirement 22.8).
 *
 * Requirements: 20.3, 20.4, 22.8
 * ------------------------------------------------------------------------ */

.itwt-page-title {
	font-size: var(--itwt-size-h1);
}

.itwt-front__intro .itwt-page-title {
	margin-block-start: var(--itwt-space-2xs);
	max-width: 34ch;
}

.itwt-front__intro .itwt-framing {
	margin-block-start: var(--itwt-space-l);
}

/*
 * Dossier page header: the blue tint band gives the page a strong opening,
 * similar to the homepage hero, and separates it from the facts below.
 */
.itwt-dossier__header {
	background-color: var(--itwt-brand-tint);
	margin-inline: calc( -1 * var(--itwt-page-gutter) );
	padding: var(--itwt-space-xl) var(--itwt-page-gutter);
	border-block-end: var(--itwt-rule-width-strong) solid var(--itwt-brand);
}

.itwt-dossier__source {
	margin-block-start: var(--itwt-space-m);
}

/* ---------------------------------------------------------------------------
 * Empty state
 *
 * A page with nothing on it yet is still a page: a panel that says what is
 * missing and what will appear there, rather than one grey sentence floating in
 * the middle of the viewport. Same panel treatment as a card, so an empty
 * overview and a filled one look like the same site.
 * ------------------------------------------------------------------------ */

.itwt-empty {
	max-width: var(--itwt-measure);
	border: var(--itwt-rule-width) solid var(--itwt-rule);
	border-block-start: var(--itwt-space-2xs) solid var(--itwt-brand);
	border-radius: var(--itwt-radius);
	background-color: var(--itwt-paper-raised);
	padding: var(--itwt-space-l);
}

.itwt-empty > * + * {
	margin-block-start: var(--itwt-space-xs);
}

.itwt-empty__note {
	color: var(--itwt-ink-soft);
	font-size: var(--itwt-size-small);
}

/* ---------------------------------------------------------------------------
 * Status chip
 *
 * Shared by the Dossier page and every Dossier_Overview row, so one status
 * cannot read two ways. Neutral by default; the single muted red-brown accent
 * applies to data-status="termijn-verstreken" and to nothing else, here or
 * anywhere.
 *
 * Requirements: 6.1, 22.2
 * ------------------------------------------------------------------------ */

.itwt-chip {
	display: inline-block;
	border: var(--itwt-rule-width) solid var(--itwt-rule);
	border-inline-start: var(--itwt-space-2xs) solid var(--itwt-rule);
	border-radius: var(--itwt-radius);
	background-color: var(--itwt-paper-raised);
	padding: var(--itwt-space-3xs) var(--itwt-space-xs);
	font-size: var(--itwt-size-small);
	font-weight: var(--itwt-weight-strong);
}

/*
 * A stripe down the leading edge, coloured by what stage the request has reached.
 * The chip always prints the status word, so the colour adds recognition speed
 * and is never the thing that carries the meaning.
 */
.itwt-chip[data-status="besluit-ontvangen"] {
	border-inline-start-color: var(--itwt-ontime);
	color: var(--itwt-ontime);
}

.itwt-chip[data-status="verdaagd"] {
	border-inline-start-color: var(--itwt-soon);
	color: var(--itwt-soon);
}

.itwt-chip[data-status="verzonden"],
.itwt-chip[data-status="ontvangst-bevestigd"] {
	border-inline-start-color: var(--itwt-brand);
	color: var(--itwt-brand);
}

.itwt-chip[data-status="termijn-verstreken"] {
	border-inline-start-color: var(--itwt-overdue);
	border-color: var(--itwt-overdue);
	background-color: var(--itwt-overdue-soft);
	color: var(--itwt-overdue);
}

/* ---------------------------------------------------------------------------
 * Record facts
 *
 * The stored dates and identifiers of a record, as a definition list: label and
 * value stay paired at any width, and the value column takes the mono token
 * through .itwt-kenmerk and .itwt-date above.
 *
 * Requirements: 5.6, 23.3
 * ------------------------------------------------------------------------ */

.itwt-facts {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--itwt-space-3xs) var(--itwt-space-m);
}

.itwt-facts dt {
	color: var(--itwt-ink-soft);
	font-size: var(--itwt-size-small);
}

.itwt-facts dd {
	margin: 0;
}

.itwt-facts dd + dt {
	margin-block-start: var(--itwt-space-s);
}

.itwt-facts__note {
	color: var(--itwt-ink-soft);
	font-size: var(--itwt-size-small);
}

/* Two columns once there is room for the labels beside the values. */
@media (min-width: 30em) {

	.itwt-facts {
		grid-template-columns: minmax(10rem, auto) 1fr;
	}

	.itwt-facts dt {
		grid-column: 1;
	}

	.itwt-facts dd {
		grid-column: 2;
	}

	.itwt-facts dd + dt {
		margin-block-start: 0;
	}
}

/* ---------------------------------------------------------------------------
 * Footer and documentary framing
 *
 * Requirements: 20.1, 20.2
 * ------------------------------------------------------------------------ */

.itwt-footer {
	position: relative;
	background-color: var(--itwt-brand-deep);
	color: var(--itwt-paper);
	padding-block: var(--itwt-space-2xl);
	font-size: var(--itwt-size-small);
}

.itwt-footer__inner {
	display: flex;
	flex-direction: column;
	gap: var(--itwt-space-xl);
}

.itwt-footer__aside {
	display: flex;
	flex-direction: column;
	gap: var(--itwt-space-s);
}

@media (min-width: 48em) {

	.itwt-footer__inner {
		display: grid;
		grid-template-columns: minmax(0, 1.45fr) minmax(11rem, 0.7fr);
		column-gap: var(--itwt-space-2xl);
		align-items: start;
	}

	.itwt-footer__meta {
		border-block-start: 0;
		padding-block-start: 0;
	}

	.itwt-footer__links {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}
}

/* The same hairline as the masthead, on the leading edge of the closing band. */
.itwt-footer::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	height: var(--itwt-rule-width-strong);
	background-image: var(--itwt-gradient-rule);
}

/*
 * The footer's own hairlines sit on the dark band, where --itwt-rule reads as a
 * heavy grey line. A low-alpha white is the right weight there.
 */
.itwt-footer .itwt-footer__meta {
	border-block-start-color: var(--itwt-rule-on-band);
}

.itwt-framing {
	max-width: var(--itwt-measure);
}

.itwt-framing__line + .itwt-framing__line {
	margin-block-start: var(--itwt-space-xs);
}

/*
 * The two sentences that qualify the first are set a step back from it. Which
 * "back" that is depends on the surface: the soft ink on the light page, the
 * soft paper on the dark band. Both are audited pairs.
 */
.itwt-framing__line + .itwt-framing__line {
	color: var(--itwt-ink-soft);
}

.itwt-footer .itwt-framing__line + .itwt-framing__line {
	color: var(--itwt-paper-soft);
}

/*
 * In the footer the first framing sentence carries the position the whole site
 * rests on, so it is set larger than the two that qualify it. On the front page
 * the template asks for the same effect by class, because there the sentence is
 * the opening of the page.
 */
.itwt-footer .itwt-framing__line:first-child {
	max-width: var(--itwt-measure-lede);
	font-size: var(--itwt-size-lede);
	line-height: 1.45;
}

.itwt-footer__meta {
	border-block-start: var(--itwt-rule-width) solid var(--itwt-rule);
	padding-block-start: var(--itwt-space-m);
	color: var(--itwt-paper-soft);
	font-family: var(--itwt-font-head);
	letter-spacing: var(--itwt-tracking-label);
	text-transform: uppercase;
}

.itwt-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--itwt-space-xs) var(--itwt-space-l);
}

.itwt-footer__links a {
	display: inline-flex;
	min-height: var(--itwt-tap-min);
	align-items: center;
	text-decoration: none;
}

.itwt-footer__links a:hover {
	color: var(--itwt-paper);
	text-decoration: underline;
	text-decoration-thickness: var(--itwt-rule-width-strong);
}

.itwt-footer__privacy {
	margin-block-start: var(--itwt-space-m);
	color: var(--itwt-paper-soft);
}

.itwt-footer__privacy p {
	margin: 0;
}

.itwt-footer__privacy p + p {
	margin-block-start: var(--itwt-space-2xs);
}

/* ---------------------------------------------------------------------------
 * External video embed
 *
 * The 16:9 frame is the wrapper's own ratio, so the single iframe needs no
 * inline width, no padding hack and no script to keep its shape. One player per
 * Aflevering page; nothing here styles a second one.
 *
 * Requirements: 8.2, 8.4
 * ------------------------------------------------------------------------ */

.itwt-embed {
	position: relative;
	width: 100%;
	max-width: var(--itwt-page-max);
	border: var(--itwt-rule-width) solid var(--itwt-rule);
	background-color: var(--itwt-paper-raised);
	aspect-ratio: 16 / 9;
}

.itwt-embed__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------------------------------------------------------------------------
 * Transcript
 *
 * Sequential paragraphs in the reading measure. No collapsed state, no toggle
 * and no maximum height: the text is present and readable without interaction.
 *
 * Requirements: 8.5, 21.11
 * ------------------------------------------------------------------------ */

.itwt-transcript > p {
	max-width: var(--itwt-measure);
}

/* ---------------------------------------------------------------------------
 * Cross-links and the Afleveringen list
 *
 * Requirements: 8.7, 8.8, 8.9, 21.10
 * ------------------------------------------------------------------------ */

.itwt-aflevering-list__meta {
	margin-block-start: var(--itwt-space-2xs);
	color: var(--itwt-ink-soft);
	font-size: var(--itwt-size-small);
}

.itwt-aflevering__footer {
	border-block-start: var(--itwt-rule-width) solid var(--itwt-rule);
	padding-block-start: var(--itwt-space-s);
	font-size: var(--itwt-size-small);
}

/* ---------------------------------------------------------------------------
 * Verhalen and the ownership notice
 *
 * A story is running text, so it takes the reading measure and nothing else. The
 * ownership notice is set apart with a rule rather than with the accent colour:
 * the accent means "termijn verstreken" and this is not that (Requirement 22.2).
 *
 * Requirements: 9.3, 9.5, 22.2
 * ------------------------------------------------------------------------ */

.itwt-verhaal__text > p {
	max-width: var(--itwt-measure);
}

/*
 * Verhaal page header: same tinted band as the dossier, with the byline tucked
 * below it as a separator between header and body text.
 */
.itwt-verhaal__header {
	background-color: var(--itwt-brand-tint);
	margin-inline: calc( -1 * var(--itwt-page-gutter) );
	padding: var(--itwt-space-xl) var(--itwt-page-gutter);
	border-block-end: var(--itwt-rule-width-strong) solid var(--itwt-brand);
}

.itwt-verhaal__subtitle {
	max-width: var(--itwt-measure);
	font-size: var(--itwt-size-lede);
	line-height: 1.45;
	color: var(--itwt-ink-soft);
}

/*
 * The two published facts of a Verhaal, on the tinted header. Same definition
 * list as a Dossier's facts, so the two record types are read the same way; a
 * rule above it separates them from the title without a second colour.
 */
.itwt-verhaal__facts {
	margin-block-start: var(--itwt-space-l);
	border-block-start: var(--itwt-rule-width) solid var(--itwt-rule);
	padding-block-start: var(--itwt-space-m);
}

/*
 * The ownership notice above the Verhalen list. A panel rather than loose
 * paragraphs: it is a standing statement about every story below it, not an
 * introduction to the page, and the panel treatment says so without the accent.
 */
.itwt-verhaal-list__ownership {
	max-width: var(--itwt-measure);
	border-inline-start: var(--itwt-space-2xs) solid var(--itwt-brand);
	background-color: var(--itwt-paper-raised);
	padding: var(--itwt-space-m) var(--itwt-space-l);
	box-shadow: var(--itwt-shadow-s);
}

.itwt-verhaal__section {
	margin-block-start: var(--itwt-space-xl);
	padding-block-start: var(--itwt-space-m);
	border-block-start: var(--itwt-rule-width) solid var(--itwt-rule);
}

.itwt-verhaal-list__meta {
	margin-block-start: var(--itwt-space-2xs);
	color: var(--itwt-ink-soft);
	font-size: var(--itwt-size-small);
}

.itwt-verhaal-list__byline {
	margin-inline-end: var(--itwt-space-xs);
}

.itwt-verhaal__footer {
	border-block-start: var(--itwt-rule-width) solid var(--itwt-rule);
	padding-block-start: var(--itwt-space-s);
}

.itwt-ownership {
	font-size: var(--itwt-size-small);
}

.itwt-ownership__line + .itwt-ownership__line {
	margin-block-start: var(--itwt-space-xs);
}

/* ---------------------------------------------------------------------------
 * Finishing details
 *
 * Everything below is refinement rather than structure: the page works without
 * it. Each rule reads a token and defines no colour of its own, and every
 * transition is switched off by the reduced-motion rule above.
 * ------------------------------------------------------------------------ */

/*
 * Selected text takes the quiet structural surface rather than the browser's
 * default blue, which on this page would be a second accent nobody chose. Ink on
 * brand-tint is an audited pair.
 */
::selection {
	background-color: var(--itwt-brand-tint);
	color: var(--itwt-ink);
}

/*
 * The skip link is the first thing a keyboard user meets, so it is dressed like
 * a deliberate control rather than a stray line of text.
 */
.itwt-skip-link {
	border: var(--itwt-rule-width-strong) solid var(--itwt-brand);
	border-radius: var(--itwt-radius);
	box-shadow: var(--itwt-shadow-l);
	color: var(--itwt-brand);
	font-weight: var(--itwt-weight-strong);
	text-decoration: none;
}

/*
 * Panels lift off the paper by a hair. The border still does the separating —
 * this only stops a white card on a near-white page from looking flat.
 */
.itwt-list--cards .itwt-list__item,
.itwt-empty {
	box-shadow: var(--itwt-shadow-m);
}

.itwt-list--cards .itwt-list__item {
	transition: transform var(--itwt-motion) var(--itwt-ease),
	            box-shadow var(--itwt-motion) var(--itwt-ease);
}

.itwt-list--cards .itwt-list__item:hover {
	transform: translateY(var(--itwt-lift));
	box-shadow: var(--itwt-shadow-l);
}

/*
 * Record headers stay a flat tint. A fade into the paper made the page
 * start twice; the rule under the header is the cut.
 */
.itwt-dossier__header,
.itwt-verhaal__header {
	background-image: none;
}

/* Buttons answer the pointer, in the structural blue only. */
button,
[type="button"],
[type="submit"],
.itwt-button {
	transition: background-color var(--itwt-motion) var(--itwt-ease),
	            border-color var(--itwt-motion) var(--itwt-ease),
	            box-shadow var(--itwt-motion) var(--itwt-ease);
}

button:hover,
[type="button"]:hover,
[type="submit"]:hover,
.itwt-button:hover {
	border-color: var(--itwt-brand);
	box-shadow: var(--itwt-shadow-m);
}

/* A focused field says so with its border as well as with the ring. */
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
	border-color: var(--itwt-brand);
}

/*
 * A field that needs attention is outlined in the ink, not in the accent: the
 * muted red-brown means "termijn verstreken" and a typo is not that
 * (Requirement 22.2).
 */
.itwt-field--attention .itwt-field__control {
	border-color: var(--itwt-ink);
	border-width: var(--itwt-rule-width-strong);
}

/*
 * A reader who asked for less motion gets no movement at all, not merely an
 * instant jump: the transition is already gone above, and the displacement goes
 * with it. The shadow still changes, because that is a change of state and not
 * of position.
 *
 * Requirements: 23.7
 */
@media (prefers-reduced-motion: reduce) {

	.itwt-list--cards .itwt-list__item:hover {
		transform: none;
	}

	.itwt-entry:hover,
	.itwt-hero__cta:hover,
	.itwt-pub-card:hover,
	.itwt-video-card:hover,
	.itwt-shop-btn:hover {
		transform: none;
	}
}

/* ---------------------------------------------------------------------------
 * Print
 *
 * This site exists to be cited, so a Dossier or a Verhaal will be printed or
 * saved as PDF. Printed, the page should read as the record it is: no bands, no
 * menu, no shadows, and every link's address spelled out so a paper copy still
 * says where it came from.
 * ------------------------------------------------------------------------ */

@media print {

	.itwt-masthead,
	.itwt-footer,
	.itwt-nav,
	.itwt-skip-link,
	.itwt-shop-btn {
		display: none;
	}

	/* The framing statements are the one part of the footer that must survive. */
	.itwt-footer {
		display: block;
		background: none;
		color: var(--itwt-ink);
		padding-block: 0;
	}

	.itwt-footer::before,
	.itwt-masthead::after {
		display: none;
	}

	.itwt-footer a,
	.itwt-footer h1,
	.itwt-footer h2 {
		color: var(--itwt-ink);
	}

	.itwt-footer .itwt-framing__line + .itwt-framing__line {
		color: var(--itwt-ink-soft);
	}

	body {
		background: none;
	}

	.itwt-main {
		padding-block: 0;
	}

	.itwt-dossier__header,
	.itwt-verhaal__header {
		background: none;
		margin-inline: 0;
		padding-inline: 0;
	}

	.itwt-list--cards .itwt-list__item,
	.itwt-empty {
		box-shadow: none;
	}

	/*
	 * Spell out the address after every link in the record itself. Not for the
	 * navigation, which is hidden, and not for a link whose text is already the
	 * address.
	 */
	.itwt-prose a[href^="http"]::after,
	.itwt-transcript a[href^="http"]::after,
	.itwt-facts a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-family: var(--itwt-font-mono);
		font-size: var(--itwt-size-label);
		word-break: break-all;
	}

	/* Keep a record's facts and its heading together on one sheet. */
	h1,
	h2,
	h3 {
		break-after: avoid;
	}

	.itwt-facts,
	.itwt-chip,
	tr {
		break-inside: avoid;
	}
}
