/*
 * The Legacy of 87 Adams — base styles.
 * Token values live in tokens.css (generated). This file only uses them.
 */

/* ------------------------------------------------------------------
 * 1. Layout variables and extra scheme roles
 * ------------------------------------------------------------------ */
:root {
	--adams-margin: clamp(16px, 9.9943px + 1.5282vw, 32px);
	--adams-section-space: clamp(80px, 61.9828px + 4.5845vw, 128px);
	--adams-header-height: 80px;
	--adams-connector: clamp(80px, 64.9857px + 3.8204vw, 120px);
	--adams-frame: 1144px; /* columns 2–11 of the 12-column desktop grid */
	/* Frame width inside a full-width section (keeps the page margin). */
	--adams-frame-width: min(var(--adams-frame), 100% - 2 * var(--adams-margin));
	--adams-radius: 4px;
	--adams-hairline: 1px;

	/* Arrows used by buttons and links (drawn with currentColor via mask). */
	--adams-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.25'%3E%3Cpath d='M1 8h13.5M9 2.5 14.5 8 9 13.5'/%3E%3C/svg%3E");
	--adams-icon-arrow-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.25'%3E%3Cpath d='M3 13 13 3M5 3h8v8'/%3E%3C/svg%3E");
	--adams-icon-arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.25'%3E%3Cpath d='M8 1v13.5M2.5 9 8 14.5 13.5 9'/%3E%3C/svg%3E");
}

/* Roles the token export does not cover. Tune here, per scheme. */
:root,
.adams-scheme-light,
.is-style-adams-light,
[data-adams-scheme="light"] {
	--adams-heading: var(--wp--preset--color--ink);
	/* ink-soft-deep, not ink-soft: 4.69:1 on paper-3 (ink-soft is 4.47:1). */
	--adams-nav: var(--wp--preset--color--ink-soft-deep);
	--adams-caption: var(--wp--preset--color--ink-soft-deep);
	--adams-action-text: var(--wp--preset--color--paper-2);
	/* Hover one step lighter than ink-raised (the token) so it's visible. */
	--adams-action-hover: var(--wp--preset--color--ink-soft);
	--adams-action-pressed: var(--wp--preset--color--gold-deep);
	--adams-rule: color-mix(in srgb, var(--wp--preset--color--outline) 35%, transparent);
	--adams-field: var(--wp--preset--color--paper-3);
}

.adams-scheme-dark,
.is-style-adams-dark,
[data-adams-scheme="dark"] {
	/* Body text and captions are a softened paper-3 in the designs. */
	--adams-text-primary: color-mix(in srgb, var(--wp--preset--color--paper-3) 80%, var(--wp--preset--color--ink));
	--adams-heading: var(--wp--preset--color--accent-gold);
	--adams-nav: var(--wp--preset--color--paper-3);
	--adams-caption: color-mix(in srgb, var(--wp--preset--color--paper-3) 64%, var(--wp--preset--color--ink));
	--adams-action-text: var(--wp--preset--color--ink);
	--adams-action-pressed: var(--wp--preset--color--paper-2);
	--adams-rule: color-mix(in srgb, var(--wp--preset--color--paper-3) 15%, transparent);
	--adams-field: var(--wp--preset--color--ink-raised);
}

/* A scheme only changes variables; re-apply the text color where it is set. */
.adams-scheme-light,
.adams-scheme-dark,
.is-style-adams-light,
.is-style-adams-dark {
	color: var(--adams-text-primary);
}

/* ------------------------------------------------------------------
 * 2. Base
 * ------------------------------------------------------------------ */
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Anchored targets clear the fixed header. */
:target,
[id] {
	scroll-margin-top: var(--adams-header-height);
}

p {
	text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: pretty;
}

/* VTC Martin always uses its slashed zero (headings, buttons, big lists, dates). */
h1,
h2,
h3,
h4,
h5,
h6,
.has-drop-cap::first-letter,
.wp-element-button,
.wp-block-button__link,
.has-display-font-family,
.has-display-large-font-size,
.has-display-medium-font-size,
.has-display-small-font-size,
.adams-names,
.adams-price__amounts,
.adams-event__day {
	font-feature-settings: "zero" 1;
}

:where(p + p) {
	margin-block-start: var(--adams-ps-body);
}

a {
	text-decoration-thickness: var(--adams-hairline);
	text-underline-offset: 0.2em;
}

/* Keyboard focus: always visible, never on mouse click. */
:focus {
	outline: none;
}

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

::selection {
	background: var(--wp--preset--color--accent-gold);
	color: var(--wp--preset--color--ink);
}

/* WordPress' skip link, restyled. */
.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper-2);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--adams-fs-label);
	text-transform: uppercase;
	border-radius: var(--adams-radius);
}

/* ------------------------------------------------------------------
 * 3. Text styles
 * ------------------------------------------------------------------ */

/* Line heights follow the font size preset picked in the editor. */
.has-display-large-font-size { line-height: var(--adams-lh-display-large); font-weight: 800; }
.has-display-medium-font-size { line-height: var(--adams-lh-display-medium); font-weight: 800; }
.has-display-small-font-size { line-height: var(--adams-lh-display-small); }
.has-heading-1-font-size { line-height: var(--adams-lh-heading-1); }
.has-heading-2-font-size { line-height: var(--adams-lh-heading-2); }
.has-heading-3-font-size { line-height: var(--adams-lh-heading-3); }
.has-heading-4-font-size { line-height: var(--adams-lh-heading-4); }
.has-quote-font-size { line-height: var(--adams-lh-quote); }
.has-lead-font-size { line-height: var(--adams-lh-lead); }
.has-body-large-font-size { line-height: var(--adams-lh-body-large); }
.has-body-font-size { line-height: var(--adams-lh-body); }
.has-body-small-font-size { line-height: var(--adams-lh-body-small); }

/* Metadata sizes are always mono, uppercase where the design says so. */
.has-stat-font-size,
.has-label-font-size,
.has-overline-font-size,
.has-caption-font-size {
	font-family: var(--wp--preset--font-family--mono);
}
.has-stat-font-size { line-height: var(--adams-lh-stat); letter-spacing: var(--adams-ls-stat); }
.has-label-font-size { line-height: var(--adams-lh-label); letter-spacing: var(--adams-ls-label); }
.has-overline-font-size { line-height: var(--adams-lh-overline); letter-spacing: var(--adams-ls-overline); text-transform: uppercase; }
.has-caption-font-size { line-height: var(--adams-lh-caption); }

/* Paragraph style "Label": mono, uppercase (nav, "Scroll to begin"). */
.is-style-adams-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--adams-fs-label);
	line-height: var(--adams-lh-label);
	letter-spacing: var(--adams-ls-label);
	text-transform: uppercase;
	color: var(--adams-nav);
}

/* Quotes: Corundum italic, attribution below with a dash. */
.wp-block-quote {
	margin: 0;
	padding: 0;
	border: 0;
}

.wp-block-quote p {
	font-size: var(--adams-fs-quote);
	line-height: var(--adams-lh-quote);
	font-style: italic;
}

.wp-block-quote cite {
	display: block;
	margin-top: 32px;
	font-size: var(--adams-fs-lead);
	line-height: var(--adams-lh-lead);
	font-style: italic;
	color: var(--adams-caption);
}

.wp-block-quote cite::before {
	content: "— ";
}

/* Captions: mono, small, with their source. */
figcaption,
.wp-element-caption,
.wp-block-image figcaption,
.wp-block-video figcaption {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--adams-fs-caption);
	line-height: var(--adams-lh-caption);
	color: var(--adams-caption);
	margin-block: 16px 0;
	text-align: start;
}

/* Drop cap (paragraph setting): VTC Martin, two lines tall. */
.has-drop-cap:not(:focus)::first-letter {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	/* Fallback: cap height ≈ two lines (VTC Martin caps are 0.7em). */
	font-size: calc((var(--adams-lh-body) + 0.67em) / 0.7);
	line-height: 0.75;
	margin: 0.04em 0.1em 0 0;
	text-transform: uppercase;
	color: var(--adams-heading);
}

/* Browsers that support it size the letter to exactly two lines. */
@supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
	.has-drop-cap:not(:focus)::first-letter {
		-webkit-initial-letter: 2;
		initial-letter: 2;
		font-size: inherit;
		line-height: inherit;
		margin: 0 0.25em 0 0;
		float: none;
	}
}

/* ------------------------------------------------------------------
 * 4. Buttons and arrow links
 * ------------------------------------------------------------------ */

/* Default button: dark block, uppercase VTC Martin, arrow on the right. */
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	box-sizing: border-box;
	/* 300px by default (longer labels grow it); label left, arrow right, same padding. */
	min-width: 300px;
	max-width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 0;
	border-radius: var(--adams-radius);
	font-size: var(--adams-fs-heading-4);
	line-height: 1;
	text-decoration: none;
	transition: background-color 150ms ease;
}

.wp-block-button__link::after {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	mask: var(--adams-icon-arrow) center / contain no-repeat;
}

.wp-block-button__link:hover {
	background-color: var(--adams-action-hover);
}

.wp-block-button__link:active {
	background-color: var(--adams-action-pressed);
}

.wp-block-button__link:focus-visible {
	outline: 2px solid var(--adams-focus-ring);
	outline-offset: 2px;
}

@media (max-width: 599px) {
	.wp-block-button__link {
		min-height: 50px;
	}
}

/* Button styles "Arrow link" and "Arrow link (external)": the "Join us →" look. */
.wp-block-button:is(.is-style-adams-arrow, .is-style-adams-arrow-up) .wp-block-button__link {
	min-width: 0;
	min-height: 0;
	gap: 8px;
	padding: 0;
	background: none;
	color: var(--adams-nav);
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 400;
	font-size: var(--adams-fs-label);
	line-height: var(--adams-lh-label);
	letter-spacing: var(--adams-ls-label);
	position: relative;
	text-decoration: none;
}

/* Same growing underline, under the label only (the arrow is the ::after). */
.wp-block-button:is(.is-style-adams-arrow, .is-style-adams-arrow-up) .wp-block-button__link::before {
	content: "";
	position: absolute;
	left: 0;
	right: 24px;
	bottom: -4px;
	height: var(--adams-hairline);
	background: currentColor;
	transform: scaleX(0);
	transition: transform 250ms ease;
}

.wp-block-button:is(.is-style-adams-arrow, .is-style-adams-arrow-up) .wp-block-button__link:hover::before {
	transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
	.adams-nav .wp-block-navigation-item__content::after,
	.wp-block-button__link::before {
		transition: none;
	}
}

.wp-block-button.is-style-adams-arrow-up .wp-block-button__link::after {
	mask-image: var(--adams-icon-arrow-up);
}

.wp-block-button:is(.is-style-adams-arrow, .is-style-adams-arrow-up) .wp-block-button__link:focus-visible {
	outline-width: 1px;
	outline-color: currentColor;
	outline-offset: 2px;
}

/* ------------------------------------------------------------------
 * 5. Navigation links (header, footer, mobile menu)
 * ------------------------------------------------------------------ */
.adams-nav,
.adams-nav .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--adams-fs-label);
	line-height: var(--adams-lh-label);
	letter-spacing: var(--adams-ls-label);
	text-transform: uppercase;
	color: var(--adams-nav);
}

/* Underline that grows from the middle on hover; stays on the current page. */
.adams-nav .wp-block-navigation-item__content {
	position: relative;
	text-decoration: none;
}

.adams-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: var(--adams-hairline);
	background: currentColor;
	transform: scaleX(0);
	transition: transform 250ms ease;
}

.adams-nav .wp-block-navigation-item__content:hover::after,
.adams-nav .wp-block-navigation-item__content[aria-current="page"]::after {
	transform: scaleX(1);
}

.adams-nav .wp-block-navigation-item__content:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 2px;
}

/* ------------------------------------------------------------------
 * 6. Logo (site title drawn with the logo SVG, in the current color)
 * ------------------------------------------------------------------ */
.adams-logo {
	margin: 0;
	line-height: 0;
}

.adams-logo a {
	display: block;
	height: 44px;
	width: calc(44px * 649 / 263);
	overflow: hidden;
	white-space: nowrap;
	text-indent: 100%;
	color: var(--adams-nav);
	background-color: currentColor;
	mask: url("../images/logo.svg") left top / contain no-repeat;
}

/* ------------------------------------------------------------------
 * 7. Header: fixed, no background, colors follow the section below it
 * ------------------------------------------------------------------ */
.adams-site-header {
	position: fixed;
	inset: var(--wp-admin--admin-bar--height, 0px) 0 auto;
	z-index: 100;
	pointer-events: none; /* the empty parts of the bar never block clicks */
}

.adams-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: var(--adams-header-height);
	padding-inline: var(--adams-margin);
	color: var(--adams-nav);
	transition: color 200ms ease;
}

.adams-header > * {
	pointer-events: auto;
	margin: 0;
}

.adams-header .adams-logo {
	justify-self: start;
}

.adams-header .adams-nav {
	justify-self: center;
}

.adams-header .adams-nav .wp-block-navigation__container {
	gap: 32px;
}

.adams-header-cta {
	justify-self: end;
}

/* Mobile: logo · Join us · menu button */
@media (max-width: 599px) {
	.adams-header {
		grid-template-columns: 1fr auto auto;
		gap: 24px;
		padding-inline: 16px;
	}

	.adams-header .adams-nav {
		order: 3;
	}

	.adams-header-cta {
		order: 2;
	}
}

.adams-nav .wp-block-navigation__responsive-container-open,
.adams-nav .wp-block-navigation__responsive-container-close {
	color: var(--adams-nav);
}

.adams-nav .wp-block-navigation__responsive-container-open svg,
.adams-nav .wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}

/* Full-page mobile menu (core overlay, restyled). */
.adams-nav .wp-block-navigation__responsive-container.is-menu-open {
	--adams-nav: var(--wp--preset--color--ink-soft);
	background-color: var(--wp--preset--color--paper-2) !important;
	color: var(--adams-nav) !important;
	padding: 0;
}

.adams-nav .is-menu-open .wp-block-navigation__responsive-close {
	height: 100%;
}

.adams-nav .is-menu-open .wp-block-navigation__responsive-dialog {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 100%;
	margin: 0;
}

/* The two vertical rules above and below the links. */
.adams-nav .is-menu-open .wp-block-navigation__responsive-dialog::before,
.adams-nav .is-menu-open .wp-block-navigation__responsive-dialog::after {
	content: "";
	position: absolute;
	left: 50%;
	width: var(--adams-hairline);
	height: calc(50% - 160px);
	background: var(--adams-rule);
}

.adams-nav .is-menu-open .wp-block-navigation__responsive-dialog::before {
	top: 0;
}

.adams-nav .is-menu-open .wp-block-navigation__responsive-dialog::after {
	bottom: 0;
}

.adams-nav .is-menu-open .wp-block-navigation__responsive-container-close {
	position: fixed;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 26px);
	right: 16px;
}

.adams-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding: 0 !important;
}

.adams-nav .is-menu-open .wp-block-navigation__container {
	align-items: center !important;
	gap: 26px !important;
}

/* ------------------------------------------------------------------
 * 8. Story page: sections, sticky intro, footer revealed underneath
 * ------------------------------------------------------------------ */
.wp-site-blocks > *,
.adams-story > *,
.adams-sections > * {
	margin-block: 0;
}

.adams-site-main {
	position: relative;
	z-index: 1;
}

/* Secondary pages start below the fixed header. */
.adams-site-main.adams-page {
	padding-block: calc(var(--adams-header-height) + var(--adams-section-space)) var(--adams-section-space);
	background: var(--adams-background-canvas);
}

/*
 * A story section (see docs/design/Grid Documentation.png), top to bottom:
 *   connector line(s) → 32px → rule (single, or double at a chapter start)
 *   → 32px → frame (content between two vertical rules).
 * A chapter's last section ends with: 32px → double rule → 32px.
 */
.adams-section {
	--adams-rule-size: 1px;
	position: relative;
	z-index: 1;
	padding-block: calc(var(--adams-connector) + 32px + var(--adams-rule-size) + 32px) 0;
	color: var(--adams-text-primary);
}

.adams-section.adams-start {
	--adams-rule-size: 9px;
}

/*
 * Sections overlap by 1px. Their heights are fractional, which otherwise leaves
 * a hairline seam where the sticky intro behind the story shows through.
 */
.adams-story > .adams-section:not(:last-child),
.adams-sections > .adams-section:not(:last-child) {
	margin-bottom: -1px;
}

/*
 * Safari: after scrolling back up, the sticky intro (its own compositing layer)
 * can be drawn over the sections that should cover it. Giving the story its
 * own stacking context and each later section its own layer keeps the order.
 */
.adams-story {
	isolation: isolate;
}

.adams-story > .adams-section:not(:first-child) {
	transform: translateZ(0);
}

/* Connector: the short vertical line(s) linking a section to the one above. */
.adams-section:not(.adams-intro)::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: var(--adams-hairline);
	height: var(--adams-connector);
	background: var(--adams-rule);
}

/* …or two lines, continuing the frame of the section above. */
.adams-section.adams-connector-sides::before {
	left: 0;
	right: 0;
	width: var(--adams-frame-width);
	margin-inline: auto;
	box-sizing: border-box;
	background: none;
	border-inline: var(--adams-hairline) solid var(--adams-rule);
}

/* …or both: frame sides and the center line. */
.adams-section.adams-connector-all::before {
	left: 0;
	right: 0;
	width: var(--adams-frame-width);
	margin-inline: auto;
	box-sizing: border-box;
	/* Center line starts exactly at 50%, like the half-right column's rule. */
	background: linear-gradient(var(--adams-rule), var(--adams-rule)) calc(50% + 0.5px) 0 / var(--adams-hairline) var(--adams-connector) no-repeat;
	border-inline: var(--adams-hairline) solid var(--adams-rule);
}

.adams-section.adams-connector-none::before {
	content: none;
}

/* Connector but no rule (e.g. section 9). */
.adams-section.adams-norule {
	padding-top: calc(var(--adams-connector) + 32px);
}

.adams-section.adams-norule:not(.adams-intro)::after {
	content: none;
}

/* Without a rule, side lines run on into the frame (the center line stays short). */
.adams-section.adams-norule:is(.adams-connector-sides, .adams-connector-all)::before {
	height: calc(var(--adams-connector) + 32px);
}

/* A connector line at the bottom too, leading into the next section. */
.adams-section.adams-connector-bottom {
	padding-bottom: calc(32px + var(--adams-connector));
	background-image: linear-gradient(var(--adams-rule), var(--adams-rule));
	background-repeat: no-repeat;
	background-size: var(--adams-hairline) var(--adams-connector);
	background-position: calc(50% + 0.5px) 100%;
}

/* No connector and no rule (e.g. section 7). */
.adams-section.adams-plain {
	padding-block: calc(var(--adams-connector) + 32px);
}

.adams-section.adams-plain:not(.adams-intro)::before,
.adams-section.adams-plain:not(.adams-intro)::after {
	content: none;
}

/* Rule under the connector: single, or double (two lines, 5px apart). */
.adams-section:not(.adams-intro)::after {
	content: "";
	position: absolute;
	top: calc(var(--adams-connector) + 32px);
	left: 0;
	right: 0;
	height: var(--adams-rule-size);
	box-sizing: border-box;
	border-top: var(--adams-hairline) solid var(--adams-rule);
}

.adams-section.adams-start::after {
	border-bottom: var(--adams-hairline) solid var(--adams-rule);
}

/* Last section of a chapter: double rule at the bottom. */
.adams-section.adams-end {
	padding-bottom: calc(32px + 9px + 32px + var(--adams-connector));
	background-image:
		linear-gradient(var(--adams-rule), var(--adams-rule)),
		linear-gradient(var(--adams-rule), var(--adams-rule)),
		linear-gradient(var(--adams-rule), var(--adams-rule));
	background-repeat: no-repeat;
	background-size:
		100% var(--adams-hairline),
		100% var(--adams-hairline),
		var(--adams-hairline) var(--adams-connector);
	/* "50% + 0.5px" puts a 1px line exactly at the center, like the column rules. */
	background-position:
		0 calc(100% - var(--adams-connector) - 32px - 8px),
		0 calc(100% - var(--adams-connector) - 32px),
		calc(50% + 0.5px) 100%;
}

/* Section 1 stays in place; the story slides up over it. */
.adams-story > .adams-section:first-child,
.adams-section.adams-intro {
	position: sticky;
	top: 0;
	z-index: 0;
	display: grid;
	min-height: 100vh;
	min-height: 100svh;
	padding-block: var(--adams-header-height);
	place-items: center;
}

.adams-intro .adams-scroll-cue {
	position: absolute;
	bottom: 40px;
	left: 50%;
	translate: -50% 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	white-space: nowrap;
}

.adams-scroll-cue::after {
	content: "";
	width: 12px;
	height: 12px;
	background-color: currentColor;
	mask: var(--adams-icon-arrow-down) center / contain no-repeat;
}

/* Footer sits underneath the page and is uncovered at the end. */
.adams-site-footer {
	position: sticky;
	bottom: 0;
	z-index: 0;
}

/* If the footer is taller than the screen it could never be fully seen. */
@media (max-height: 640px) {
	.adams-site-footer {
		position: relative;
	}
}

/* ------------------------------------------------------------------
 * 9. Section frame and layout helpers
 * ------------------------------------------------------------------ */

/* Content between two vertical rules (columns 2–11 of the grid). */
.adams-frame {
	position: relative;
	box-sizing: border-box;
	width: var(--adams-frame-width);
	margin-inline: auto;
	padding-inline: 32px;
	border-inline: var(--adams-hairline) solid var(--adams-rule);
}

.adams-frame > * {
	margin-block: 0;
}

.adams-frame > * + * {
	margin-block-start: 32px;
}

/* Frame ending with a connector line at its center, 32px under the content. */
.adams-frame.adams-frame--connector-bottom {
	padding-bottom: calc(32px + var(--adams-connector));
}

.adams-frame.adams-frame--connector-bottom::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: var(--adams-hairline);
	height: var(--adams-connector);
	background: var(--adams-rule);
}

/* Same space at the bottom, without the line (About: the next section's
   connector starts the line). */
.adams-frame.adams-frame--space-bottom {
	padding-bottom: calc(32px + var(--adams-connector));
}

/* Frame without its side rules (same width and padding). */
.adams-frame.adams-frame--bare {
	border-inline-color: transparent;
}

/* Right half of the frame, with a rule on the page's center line. */
.adams-half-right {
	box-sizing: border-box;
	margin-inline-start: 50%;
	padding-inline-start: 32px;
	border-inline-start: var(--adams-hairline) solid var(--adams-rule);
}

/* Its center rule starts with its text, 32px below whatever is above. */

/* A rule inside a frame spans the content width; the half-right column then
   starts flush under it (its center rule continues). */
.adams-frame > .wp-block-separator.is-style-adams-rule {
	margin-block: 32px 0;
}

/* Two equal columns with a rule on the page's center line (core Columns). */
.wp-block-columns.adams-split {
	position: relative;
	gap: 64px;
	align-items: stretch;
}

.wp-block-columns.adams-split::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: var(--adams-hairline);
	background: var(--adams-rule);
}

.adams-split > .wp-block-column > * {
	margin-block: 0;
}

.adams-split > .wp-block-column > * + * {
	margin-block-start: 32px;
}

@media (max-width: 781px) {
	.wp-block-columns.adams-split::before {
		content: none;
	}
}

/* Split columns whose rows line up across both sides (section 17): heading,
   text, button and image start at the same height in each column. */
.wp-block-columns.adams-split.adams-split--rows {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: repeat(4, auto);
	row-gap: 32px;
}

.adams-split--rows > .wp-block-column {
	display: grid;
	grid-row: 1 / span 4;
	grid-template-rows: subgrid;
	align-items: start;
}

.adams-split--rows > .wp-block-column > * {
	margin: 0 !important;
}

.adams-split--rows > .wp-block-column > :last-child {
	align-self: end;
}

/* Card image (section 17): 4:3, cropped to fit. */
.adams-figure-card img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/*
 * Heading + intro text, with a button (section 17's events):
 * desktop: button at the far right of the heading; mobile: under the text.
 */
.adams-heading-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"heading button"
		"text    .";
	align-items: center;
	gap: 24px 32px;
}

.adams-heading-row > * {
	margin: 0 !important;
}

.adams-heading-row > .wp-block-heading { grid-area: heading; }
.adams-heading-row > p { grid-area: text; }
.adams-heading-row > .wp-block-buttons { grid-area: button; }

@media (max-width: 781px) {
	.adams-heading-row {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"heading"
			"text"
			"button";
		gap: 24px;
	}

	.adams-heading-row > .wp-block-buttons {
		margin-top: 8px !important;
	}
}

@media (max-width: 781px) {
	.wp-block-columns.adams-split.adams-split--rows {
		grid-template-columns: 1fr;
		grid-template-rows: none;
	}

	.adams-split--rows > .wp-block-column {
		grid-row: auto;
		grid-template-rows: none;
		gap: 32px;
	}

	.wp-block-columns.adams-split.adams-split--rows {
		row-gap: 0;
	}

	.adams-split--rows > .wp-block-column + .wp-block-column {
		margin-top: 32px;
		padding-top: 48px;
		border-top: var(--adams-hairline) solid var(--adams-rule);
	}

	/* The rule before the next part (community events) gets the same spacing. */
	.adams-split--rows + .wp-block-separator.is-style-adams-rule {
		margin-top: 32px !important; /* overrides the 152px set for desktop */
	}

	.adams-split--rows + .wp-block-separator.is-style-adams-rule + * {
		margin-top: 48px;
	}
}

/* Split columns without the center rule (Monument's first section). */
.wp-block-columns.adams-split.adams-split--no-rule::before {
	content: none;
}

/* A split as the last thing in a frame--connector-bottom: its center rule runs
   on into the connector (About). */
.adams-frame--connector-bottom > .wp-block-columns.adams-split:last-child::before {
	bottom: -32px;
}

/* Text-heavy splits (About): paragraphs 16px apart, small headings 16px above
   their text, rules 32px from each side. */
.adams-split--prose > .wp-block-column > p + p,
.adams-split--prose > .wp-block-column > :is(h3, h4) + * {
	margin-block-start: var(--adams-ps-body);
}

/* Serif italic heading (block style): Corundum italic, quote size for h2,
   lead size for smaller levels. */
.wp-block-heading.is-style-adams-serif {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 400;
	font-style: italic;
	text-transform: none;
	font-size: var(--adams-fs-quote);
	line-height: var(--adams-lh-quote);
}

/* Smaller levels, or any level set to the Lead size (e.g. Monument's h2, which
   keeps the heading order right while looking like a subtitle). */
:is(h3, h4, h5, h6).wp-block-heading.is-style-adams-serif,
.wp-block-heading.is-style-adams-serif.has-lead-font-size {
	font-size: var(--adams-fs-lead);
	line-height: var(--adams-lh-lead);
	color: var(--adams-text-primary); /* same level as the text */
}

/* Artist rows (Monument): 100px square portrait, name, Website · Instagram links. */
.adams-artist {
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr);
	align-items: center;
	gap: 24px;
}

.adams-split > .wp-block-column > * + .adams-artist {
	margin-block-start: 32px;
}

.adams-artist > *,
.adams-artist__text > * {
	margin: 0;
}

.adams-artist__portrait img {
	display: block;
	width: 100px;
	height: 100px;
	object-fit: cover;
}

.adams-artist__name {
	font-size: var(--adams-fs-quote);
	line-height: var(--adams-lh-quote);
	font-style: italic;
	color: var(--adams-heading);
}

.adams-artist__text > * + * {
	margin-top: 8px;
}

/* Portrait with a name and a short bio (About's team): text starts at the
   top of the portrait. */
.adams-artist.adams-artist--bio {
	align-items: start;
}

.adams-artist--bio .adams-artist__text > * + * {
	margin-top: var(--adams-ps-body);
}

/* Photo cropped to 16:9, whatever its own shape (About's committees). */
.adams-figure-16x9 img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* Small mono links with the nav's growing underline (e.g. Website, Instagram). */
.adams-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--adams-fs-overline);
	line-height: var(--adams-lh-overline);
	letter-spacing: var(--adams-ls-overline);
	text-transform: uppercase;
}

.adams-links a {
	position: relative;
	color: var(--adams-nav);
	text-decoration: none;
}

.adams-links a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: var(--adams-hairline);
	background: currentColor;
	transform: scaleX(0);
	transition: transform 250ms ease;
}

.adams-links a:hover::after {
	transform: scaleX(1);
}

.adams-links a:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.adams-links a::after {
		transition: none;
	}
}

/* Short paragraph column (about half the content width). */
.adams-measure {
	max-width: 480px;
}

.adams-measure.is-wide {
	max-width: 500px;
}

.adams-measure.has-text-align-center {
	margin-inline: auto;
}

/* Wide centered paragraph (about 680px, e.g. section 15). */
.adams-measure-lg {
	max-width: 675px;
	margin-inline: auto;
}

.adams-measure-md.is-tight {
	max-width: 507px;
}

/* Slightly narrower, for headings (section 16's statement). */
.adams-measure-lg.is-tight {
	max-width: 665px;
}

/* Medium centered statement (about 520px, e.g. section 14). */
.adams-measure-md {
	max-width: 520px;
	margin-inline: auto;
}

/* Short centered statement (about 380px, e.g. section 12's heading). */
.adams-measure-sm {
	max-width: 380px;
	margin-inline: auto;
}

/* Centered narrow block (statement headings, captions). */
.adams-narrow {
	max-width: 640px;
	margin-inline: auto;
}

/* Du Bois-inspired visualizations (inline SVG + caption). */
.adams-viz {
	margin-inline: auto;
	text-align: center;
}

.adams-frame > * + .adams-viz {
	margin-block-start: 48px;
}

.adams-viz__svg {
	display: block;
	width: 100%;
	height: auto;
	margin-inline: auto;
	color: var(--adams-text-primary);
}

.adams-viz--section-3 .adams-viz__svg { max-width: 678px; }
.adams-viz--section-5 .adams-viz__svg { max-width: 386px; }

.adams-viz figcaption {
	max-width: 620px;
	margin: 64px auto 0;
	text-align: center;
}

@media (max-width: 599px) {
	.adams-viz figcaption {
		font-size: var(--adams-fs-label);
		line-height: 1.6;
	}
}

/* Full content-width figure, 48px under centered text (e.g. section 15). */
.adams-frame > * + .adams-figure-wide {
	margin-block-start: 48px;
}

.adams-figure-wide img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2; /* as in the designs; the photo is cropped to fit */
	object-fit: cover;
}

/* Narrower centered figure (e.g. section 8's drawing): 614px on desktop. */
.adams-figure-narrow {
	max-width: 614px;
	margin-inline: auto;
}

.adams-frame > * + .adams-figure-narrow {
	margin-block-start: 48px;
}

.adams-figure-narrow img {
	display: block;
	width: 100%;
	height: auto;
}

/* Full-width rule between two parts of one section, 32px from each. */
.wp-block-separator.is-style-adams-rule {
	width: 100%;
	max-width: none;
	height: 0;
	margin-block: 32px;
	border: 0;
	border-top: var(--adams-hairline) solid var(--adams-rule);
	opacity: 1;
}

/* Same, double (a chapter ending mid-section, e.g. section 12). */
.wp-block-separator.is-style-adams-rule-double {
	width: 100%;
	max-width: none;
	height: 9px;
	box-sizing: border-box;
	margin-block: 32px;
	border: 0;
	border-block: var(--adams-hairline) solid var(--adams-rule);
	background: none;
	opacity: 1;
}

/* Call-to-action text above a button: no wider than the button. */
.adams-cta-text {
	max-width: 300px;
}

.adams-section > .wp-block-separator:is(.is-style-adams-rule, .is-style-adams-rule-double) + .adams-frame > .adams-half-right:first-child {
	padding-block-start: 0;
}

/* Caption row: small portrait + caption text (section 10). */
.adams-caption-row {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.adams-split > .wp-block-column > * + .adams-caption-row {
	margin-block-start: 16px;
}

.adams-caption-row > * {
	margin: 0;
}

.adams-caption-row .wp-block-image {
	flex: none;
	width: 80px;
}

.adams-caption-row img {
	display: block;
	width: 80px;
	height: 80px;
	object-fit: cover;
}

/*
 * Video (section 16): a poster image linked to YouTube, with a play button.
 * assets/js/site.js swaps it for the youtube-nocookie player on click, so
 * nothing loads from YouTube before the visitor asks for it.
 */
.adams-video {
	max-width: 446px;
	margin-inline: auto;
}

.adams-video > * {
	margin-block: 0;
}

.adams-video > * + * {
	margin-block-start: 16px;
}

.adams-video .adams-list-head {
	max-width: none;
}

.adams-video__poster,
.adams-video__player {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 16 / 9;
}

.adams-video__poster a {
	display: block;
	height: 100%;
}

.adams-video__poster img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Play button: white circle, dark triangle. */
.adams-video__poster a::before,
.adams-video__poster a::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	translate: -50% -50%;
	pointer-events: none;
}

.adams-video__poster a::before {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	transition: scale 200ms ease;
}

.adams-video__poster a::after {
	width: 16px;
	height: 18px;
	margin-left: 2px;
	background: var(--wp--preset--color--ink);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.adams-video__poster a:hover::before {
	scale: 1.1;
}

.adams-video__poster a:focus-visible {
	outline-offset: -4px;
	outline-color: var(--wp--preset--color--white);
}

.adams-video__player iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.adams-video__poster a::before {
		transition: none;
	}
}

/* Figure with a rule under its caption. */
.adams-figure-ruled {
	padding-bottom: 24px;
	border-bottom: var(--adams-hairline) solid var(--adams-rule);
}

.adams-figure-ruled img {
	display: block;
	width: 100%;
	height: auto;
}

/* Separator style "Connector": a 120px center line, then a rule (inside a frame). */
.wp-block-separator.is-style-adams-connector {
	width: 100%;
	max-width: none;
	height: calc(var(--adams-connector) + 31px);
	margin-block-start: 48px;
	border: 0;
	opacity: 1;
	background:
		linear-gradient(var(--adams-rule), var(--adams-rule)) center top / var(--adams-hairline) var(--adams-connector) no-repeat,
		linear-gradient(var(--adams-rule), var(--adams-rule)) left bottom / 100% var(--adams-hairline) no-repeat;
}

/* Tinted panel inside a frame (section 5's "Bought from / Sold to"). */
.adams-panel {
	padding: 32px;
	border-radius: var(--adams-radius);
	background: var(--adams-field);
	text-align: center;
}

.adams-panel > * {
	margin-block: 0;
}

.adams-panel > * + * {
	margin-block-start: 48px;
}

.adams-frame > .adams-panel + * {
	margin-block-start: 16px;
}

/* A caption written as its own paragraph (e.g. under a panel). */
.adams-caption {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--adams-fs-caption);
	line-height: var(--adams-lh-caption);
	color: var(--adams-caption);
}

/* Mobile: the frame's side lines (and side connectors) are hidden. */
@media (max-width: 781px) {
	.adams-frame {
		border-inline-color: transparent;
	}

	.adams-section:is(.adams-connector-sides, .adams-connector-all)::before {
		border-inline-color: transparent;
	}
}

/* Footer and other standalone connectors. */
.adams-connector::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: var(--adams-hairline);
	height: var(--adams-connector);
	background: var(--adams-rule);
}

@media (max-width: 781px) {
	.adams-half-right {
		margin-inline-start: 0;
		padding-inline-start: 0;
		border-inline-start: 0;
	}
}

@media (max-width: 599px) {
	.adams-frame {
		padding-inline: 16px;
	}
}

/*
 * Section 7: text · bracket · list of prices.
 * The bracket is drawn by the grid's ::before (decorative, stretches to the list).
 */
.adams-price {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 88px 415px; /* 71px gap + 344px list */
	column-gap: 0;
	align-items: center;
	padding-inline-end: 80px;
}

.adams-price::before {
	content: "";
	grid-column: 2;
	grid-row: 1;
	align-self: stretch;
	background-color: var(--adams-text-primary); /* the SVG line is 20% opaque */
	mask: url("../brackets/section-7.svg") center / 100% 100% no-repeat;
}

.adams-price > * {
	margin: 0;
}

.adams-price__text {
	grid-column: 1;
	grid-row: 1;
	max-width: 460px;
	padding-inline-end: 32px;
}

.adams-price__list {
	grid-column: 3;
	grid-row: 1;
	margin-inline-start: 71px !important;
	min-width: 0;
}

.adams-price__head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.adams-price__head > * {
	margin: 0;
	font-style: italic;
}

.adams-price__amounts {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	text-align: center;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: var(--adams-fs-display-large);
	line-height: var(--adams-lh-display-large);
	color: var(--adams-heading);
}

.adams-price__amounts li {
	margin: 0;
}

@media (max-width: 781px) {
	/* Mobile: text, then the bracket turned 90° (pointing up at the text), then the list. */
	.adams-price {
		grid-template-columns: 1fr;
		padding-inline-end: 0;
	}

	.adams-price::before {
		grid-column: 1;
		grid-row: 2;
		align-self: auto;
		height: 24px;
		margin-block: 32px 16px;
		mask-image: url("../brackets/section-7-horizontal.svg");
	}

	.adams-price__text {
		grid-column: 1;
		grid-row: 1;
		max-width: none;
		padding-inline-end: 0;
	}

	.adams-price__list {
		grid-column: 1;
		grid-row: 3;
		margin-inline-start: 0 !important;
	}
}

/*
 * Section 11: a list between two brackets (left and right), drawn by the
 * grid's ::before and ::after (decorative, stretch to the list's height).
 */
.adams-bracketed {
	display: grid;
	grid-template-columns: 91px minmax(0, 1fr) 91px;
	max-width: 1046px;
	margin-inline: auto;
}

.adams-bracketed::before,
.adams-bracketed::after {
	content: "";
	grid-row: 1;
	align-self: stretch;
	background-color: var(--adams-text-primary); /* the SVG line is faint */
}

.adams-bracketed::before {
	grid-column: 1;
	mask: url("../brackets/section-11-left.svg") center / 100% 100% no-repeat;
}

.adams-bracketed::after {
	grid-column: 3;
	mask: url("../brackets/section-11-right.svg") center / 100% 100% no-repeat;
}

.adams-bracketed > * {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	padding-block: 32px;
}

/* Two small italic labels above a list, at either end. */
.adams-list-head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	max-width: 532px;
	margin-inline: auto;
}

.adams-list-head > * {
	margin: 0;
	font-style: italic;
}

/* Big names list (VTC Martin, display size, centered). */
.adams-names {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	text-align: center;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: var(--adams-fs-display-medium);
	line-height: var(--adams-lh-display-medium);
	text-transform: uppercase;
	color: var(--adams-heading);
}

.adams-names li {
	margin: 0;
}

@media (max-width: 781px) {
	.adams-bracketed {
		grid-template-columns: 1fr;
	}

	.adams-bracketed::before,
	.adams-bracketed::after {
		content: none;
	}

	.adams-bracketed > * {
		grid-column: 1;
	}
}

/* Brackets are decorative, drawn in the text color. */
.adams-bracket {
	color: inherit;
}

.adams-bracket svg {
	display: block;
	width: 100%;
	height: auto;
}

/* ------------------------------------------------------------------
 * 9b. Chapter nav (fixed, bottom right; desktop only)
 * The current chapter shows its name, the others a short dash. site.js
 * marks the current one and shows the nav between the intro and the footer.
 * ------------------------------------------------------------------ */
.adams-chapters {
	position: fixed;
	right: var(--adams-margin);
	bottom: 32px;
	z-index: 90;
	width: 100px;
	margin: 0 !important;
	color: var(--adams-nav);
	opacity: 0;
	visibility: hidden;
	transition: opacity 300ms ease, visibility 0s linear 300ms, color 200ms ease;
}

.adams-chapters.is-visible {
	opacity: 1;
	visibility: visible;
	transition: opacity 300ms ease, visibility 0s, color 200ms ease;
}

.adams-chapters__list {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: right;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--adams-fs-overline);
	line-height: var(--adams-lh-overline);
	letter-spacing: var(--adams-ls-overline);
	text-transform: uppercase;
}

.adams-chapters__list li {
	margin: 0;
}

/* Other chapters: a 16px dash; the name stays readable for screen readers. */
.adams-chapters__list a {
	position: relative;
	display: block;
	height: 16px;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	text-indent: 100%;
	white-space: nowrap;
}

.adams-chapters__list a::before {
	content: "";
	position: absolute;
	top: 50%; /* dash centered in its 16px row, so the gaps around a name match */
	right: 0;
	width: 16px;
	height: var(--adams-hairline);
	background: currentColor;
	transition: width 200ms ease;
}

.adams-chapters__list a:hover::before {
	width: 28px;
}

/* Current chapter (and any chapter focused with the keyboard): its name. */
.adams-chapters__list a[aria-current],
.adams-chapters__list a:focus-visible {
	height: auto;
	padding: 12px 0; /* same space above and below the name */
	overflow: visible;
	text-indent: 0;
	white-space: normal;
}

.adams-chapters__list a[aria-current]::before,
.adams-chapters__list a:focus-visible::before {
	content: none;
}

.adams-chapters__list a:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 2px;
}

/* Chapter targets land at the top of the window (the header has no background). */
.adams-section[id] {
	scroll-margin-top: 0;
}

@media (max-width: 781px) {
	.adams-chapters {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adams-chapters,
	.adams-chapters.is-visible,
	.adams-chapters__list a::before {
		transition: none;
	}
}

/* ------------------------------------------------------------------
 * 9c. One-screen pages: "Coming soon" template and 404
 * A dark screen with centered content; the footer is revealed below it.
 * ------------------------------------------------------------------ */
.adams-screen {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: var(--adams-header-height) var(--adams-margin);
	color: var(--adams-text-primary);
}

.adams-screen > * {
	margin-block: 0;
}

/* Dark screens get a dark page background too: Safari tints its toolbar (and
   the overscroll area) with it. */
body:has(.adams-screen.is-style-adams-dark) {
	background-color: var(--wp--preset--color--ink);
}

/*
 * Coming soon: the center line runs from under the header to the bottom of
 * the screen, interrupted by the words (32px above and below).
 */
.adams-coming-soon {
	justify-content: stretch;
	gap: 32px;
	padding-bottom: 0;
}

.adams-coming-soon::before,
.adams-coming-soon::after {
	content: "";
	flex: 1 1 0;
	width: var(--adams-hairline);
	background: var(--adams-rule);
}

/* The lower line is longer by the header's height, so the words sit at the
   middle of the screen, not the middle of the space under the header. */
.adams-coming-soon::after {
	flex-basis: var(--adams-header-height);
}

.adams-coming-soon__text {
	flex: none;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--adams-fs-heading-1);
	line-height: var(--adams-lh-heading-1);
	text-transform: uppercase;
	color: var(--adams-text-primary);
}

/* 404 */
.adams-404__label {
	color: var(--adams-heading);
}

.adams-404__code {
	margin-top: 8px !important;
	font-weight: 800;
}

.adams-404 .wp-block-buttons {
	margin-top: 24px !important;
}

/* ------------------------------------------------------------------
 * 10. Footer
 * ------------------------------------------------------------------ */
.adams-footer {
	position: relative;
	padding: var(--adams-connector) 0 32px;
	color: var(--adams-nav);
}

.adams-footer__title {
	margin: 40px 0 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--adams-fs-quote);
	line-height: var(--adams-lh-quote);
	font-weight: 400;
	font-style: italic;
	text-transform: none;
	text-align: center;
	color: var(--adams-text-primary);
}

/* Newsletter form: Constant Contact Forms markup (form named "Newsletter"),
   restyled. Field and arrow button in one box, label for screen readers only. */
.adams-newsletter {
	width: min(508px, 100% - 2 * var(--adams-margin));
	margin: 24px auto 0;
}

.adams-newsletter .ctct-form {
	display: flex;
	margin: 0;
	border-radius: var(--adams-radius);
	background: var(--adams-field);
}

.adams-newsletter .ctct-form > p {
	margin: 0;
}

.adams-newsletter .ctct-form-field-email {
	display: flex;
	flex: 1;
	min-width: 0;
}

.adams-newsletter .ctct-form-field-email span.ctct-label-top {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.adams-newsletter input.ctct-email {
	flex: 1;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 18px 20px;
	border: 0;
	border-radius: var(--adams-radius) 0 0 var(--adams-radius);
	background: transparent;
	color: var(--adams-text-primary);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--adams-fs-label);
	letter-spacing: var(--adams-ls-label);
}

.adams-newsletter input.ctct-email::placeholder {
	color: var(--adams-nav);
	text-transform: uppercase;
	opacity: 1;
}

/* The submit button: its text ("Sign up") stays for screen readers; an arrow shows. */
.adams-newsletter .ctct-form-field-submit {
	position: relative;
	flex: none;
	width: 56px;
	color: var(--adams-nav);
}

.adams-newsletter .ctct-form-field-submit::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	mask: var(--adams-icon-arrow) center / contain no-repeat;
	pointer-events: none;
}

.adams-newsletter input.ctct-submit {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 0 var(--adams-radius) var(--adams-radius) 0;
	background: transparent;
	color: transparent;
	text-indent: 100%;
	white-space: nowrap;
	cursor: pointer;
}

.adams-newsletter :focus-visible {
	outline-offset: -2px;
}

/* Success and error messages (added above the form after sending). */
.adams-newsletter .ctct-message {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 0 0 16px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--adams-fs-label);
	line-height: var(--adams-lh-label);
	letter-spacing: var(--adams-ls-label);
	text-align: center;
	color: var(--adams-text-primary);
}

.adams-newsletter .ctct-message.ctct-error {
	color: var(--wp--preset--color--accent-crimson);
}

.adams-newsletter .ctct-dismiss {
	order: 1;
	padding: 4px;
	border: 0;
	background: none;
	color: var(--adams-nav);
	font: inherit;
	cursor: pointer;
}

.adams-newsletter .ctct-form .ctct-invalid input,
.adams-newsletter input.ctct-email.ctct-invalid {
	box-shadow: inset 0 -2px 0 var(--wp--preset--color--accent-crimson);
}

/* Constant Contact's consent note: small print under the form. */
.adams-newsletter .ctct-disclosure {
	margin-top: 16px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--adams-fs-caption);
	line-height: var(--adams-lh-caption);
	text-align: center;
	color: var(--adams-caption);
}

.adams-newsletter .ctct-disclosure hr {
	display: none;
}

.adams-newsletter .ctct-disclosure small {
	font-size: inherit;
}

/* The "Emails are serviced by Constant Contact" link is left out here: the
   privacy policy names and links the provider instead. */
.adams-newsletter .ctct-disclosure a {
	display: none;
}

/* Breathing room between the small print and the footer's rule. */
/* Padding, not margin: a margin here would merge with the footer row's own
   32px margin and add nothing. */
.adams-newsletter:has(.ctct-disclosure) {
	padding-bottom: 32px;
}

.adams-newsletter .ctct-disclosure p {
	margin: 0;
}

/* Browser autofill (Safari paints the field yellow): keep the field color.
   Separate rules: a browser skips a whole rule with a selector it doesn't know. */
.adams-newsletter input.ctct-email:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 100px var(--adams-field) inset;
	-webkit-text-fill-color: var(--adams-text-primary);
	caret-color: var(--adams-text-primary);
}

.adams-newsletter input.ctct-email:autofill {
	box-shadow: 0 0 0 100px var(--adams-field) inset;
	-webkit-text-fill-color: var(--adams-text-primary);
}

.adams-footer__bottom {
	display: grid;
	grid-template-columns: 50% 248px 1fr auto;
	grid-template-areas:
		"logo   nav social cta"
		"credit nav legal  cta";
	align-items: start;
	margin-top: 32px;
	padding: 32px var(--adams-margin) 0;
	border-top: var(--adams-hairline) solid var(--adams-rule);
}

.adams-footer__bottom > * {
	margin: 0 !important;
}

.adams-footer__bottom .adams-logo { grid-area: logo; }
.adams-footer__credit { grid-area: credit; align-self: end; }
.adams-footer__nav { grid-area: nav; }
.adams-footer__social { grid-area: social; }
/* Privacy policy: bottom of the contact column, in line with About and the credit. */
nav.adams-footer__legal { grid-area: legal; align-self: end; } /* nav only: WordPress copies the class onto the list */
.adams-footer__bottom .adams-footer-cta { grid-area: cta; }

/* The vertical rule between the two halves (on the nav only: WordPress copies
   the class onto the inner list too). */
nav.adams-footer__nav {
	align-self: stretch;
	padding-left: 32px;
	border-left: var(--adams-hairline) solid var(--adams-rule);
}

.adams-footer__nav {
	min-height: 186px;
}

.adams-footer .adams-nav .wp-block-navigation__container {
	gap: 22px;
}

.adams-footer__credit {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--adams-fs-label);
	line-height: var(--adams-lh-label);
	letter-spacing: var(--adams-ls-label);
	color: var(--adams-nav);
}

.adams-footer__credit a {
	color: inherit;
	text-underline-offset: calc(0.2em + 3px);
}

@media (max-width: 781px) {
	.adams-footer__bottom {
		grid-template-columns: 1fr 1fr auto;
		grid-template-areas:
			"nav    social cta"
			"nav    legal  legal"
			"logo   credit credit";
		row-gap: 32px;
	}

	nav.adams-footer__nav {
		padding-left: 0;
		border-left: 0;
	}

	.adams-footer__nav {
		min-height: 0;
	}

	.adams-footer__bottom .adams-logo,
	.adams-footer__credit {
		padding-top: 32px;
		border-top: var(--adams-hairline) solid var(--adams-rule);
	}

	.adams-footer__credit {
		align-self: stretch;
		text-align: end;
	}
}
