/*
Theme Name: zSuite Child
Theme URI: https://zsuite.cc/
Description: Child theme of Twenty Twenty-Five that reproduces the zSuite site layout: dark band, ruled legends, app modules and cards.
Author: Bristlecone IT Services, LLC
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zsuite-child
*/

/*
 * Ported from the live zsuite-theme 1.0.3 screen.css. Colors come from theme.json presets;
 * the names below are the live theme's tokens, so the two stylesheets stay easy to compare.
 * Selectors that touch spacing carry a ".site-main" or ".wp-site-blocks" prefix so they win over
 * the block layout gap rules without !important.
 */

/* Tokens
   ------------------------------------------------------------------------- */

:root {
	--paper: var(--wp--preset--color--base, #ffffff);
	--paper-2: var(--wp--preset--color--paper-2, #f1f4f2);
	--text: var(--wp--preset--color--contrast, #031013);
	--muted: var(--wp--preset--color--muted, #4a5450);
	--rule: var(--wp--preset--color--rule, #d0d7d4);
	--rule-strong: var(--wp--preset--color--contrast, #031013);
	--accent: var(--wp--preset--color--accent, #0f766e);
	--accent-hover: var(--wp--preset--color--accent-hover, #0b5c55);
	--on-accent: #ffffff;
	--link: var(--text);
	--link-underline: var(--muted);
	--focus: var(--text);

	--band-bg: var(--wp--preset--color--primary, #031013);
	--band-text: #ffffff;
	--band-muted: #b6c1bc;
	--band-rule: #3b4541;
	--band-accent: #5eead4;
	--band-accent-hover: #99f6e4;
	--band-on-accent: #05221f;

	--gutter: clamp(1.25rem, 4vw, 3rem);
	--col-gap: 2rem;
	--measure: 68ch;
	--radius: 2px;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
	/* Tokens are set directly (not via presets) on :root and body: a custom property that
	   references a preset resolves where it is declared, so overriding only the preset left
	   the panels light. */
	:root,
	body {
		--wp--preset--color--base: #0d100f;
		--wp--preset--color--contrast: #e5eae8;
		--wp--preset--color--paper-2: #171c1a;
		--wp--preset--color--muted: #a5b0ac;
		--wp--preset--color--rule: #2d3532;
		--wp--preset--color--accent: #5eead4;
		--wp--preset--color--accent-hover: #99f6e4;
		--paper: #0d100f;
		--paper-2: #171c1a;
		--text: #e5eae8;
		--muted: #a5b0ac;
		--rule: #2d3532;
		--rule-strong: #e5eae8;
		--accent: #5eead4;
		--accent-hover: #99f6e4;
		--on-accent: #05221f;
		--link: #e5eae8;
		--link-underline: #a5b0ac;
		--focus: #e5eae8;
		--band-bg: var(--wp--preset--color--band-bg-dark, #1c282b);
		--band-rule: #3f4a46;
	}

	body,
	.wp-site-blocks,
	.site-main {
		background-color: #0d100f;
		color: #e5eae8;
	}

	/* Light panels become the dark panel */
	.beta-band,
	.closing:not(.closing--quiet),
	.card,
	.app-icon,
	.prose code,
	.prose pre {
		background-color: #171c1a;
		color: #e5eae8;
	}

	/* CTA buttons: mint fill, dark text, as on the live site */
	.button,
	.prose .wp-block-button__link,
	.wp-element-button,
	.badge--open {
		background-color: #5eead4;
		color: #05221f;
	}

	.button:hover,
	.prose .wp-block-button__link:hover,
	.wp-element-button:hover {
		background-color: #99f6e4;
		color: #05221f;
	}
}

/* Surfaces that use the band palette (header, page band, footer) */
.site-header,
.band,
.site-footer {
	--text: var(--band-text);
	--muted: var(--band-muted);
	--rule: var(--band-rule);
	--rule-strong: var(--band-text);
	--accent: var(--band-accent);
	--accent-hover: var(--band-accent-hover);
	--on-accent: var(--band-on-accent);
	--link: var(--band-text);
	--link-underline: var(--band-muted);
	--focus: var(--band-text);
	background: var(--band-bg);
	color: var(--band-text);
}

.site-header a,
.band a,
.site-footer a {
	color: var(--band-text);
}

/* Base
   ------------------------------------------------------------------------- */

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.wp-site-blocks {
	padding: 0;
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.site-main:focus {
	outline: none;
}

.site-main > *,
.site-main > * + * {
	margin-block: 0;
}

address {
	font-style: normal;
}

.icon {
	flex: none;
	width: 1rem;
	height: 1rem;
}

body h1,
body h2,
body h3,
body h4,
body .wordmark {
	text-wrap: balance;
}

body p,
body li,
body dd {
	text-wrap: pretty;
}

/* Same reset as the live theme: padding and borders sit inside min-height. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100;
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	background: var(--band-bg);
	color: var(--band-text);
	font-weight: 700;
	text-decoration: underline;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
	outline-color: var(--band-text);
	outline-offset: 0;
}

.site-main .wrap,
.beta-band .wrap,
.site-header .wrap,
.site-footer .wrap {
	width: min(100% - 2 * var(--gutter), 75rem);
	max-width: none;
	margin-inline: auto;
}

/* Controls
   ------------------------------------------------------------------------- */

.button,
.prose .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	min-height: 3rem;
	padding: 0.75rem 1.25rem;
	border: 0;
	border-radius: var(--radius);
	background: var(--accent);
	color: var(--on-accent);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.25;
	text-align: left;
	text-decoration: none;
	transition: background-color 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover,
.prose .wp-block-button__link:hover {
	background: var(--accent-hover);
	color: var(--on-accent);
}

.prose .wp-block-buttons {
	justify-content: flex-start;
}

.prose .wp-block-button__link {
	height: auto;
	white-space: normal;
}

.prose .wp-block-button__link::after {
	content: "";
	width: 1rem;
	height: 1rem;
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 3.5h7.5V11M12.25 3.75 3.5 12.5' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 3.5h7.5V11M12.25 3.75 3.5 12.5' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
}

.text-link {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: var(--text);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--link-underline);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

.text-link:hover {
	text-decoration-color: currentColor;
	text-decoration-thickness: 3px;
}

.badge {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 0.4375rem;
	padding: 0.25rem 0.625rem;
	border: 1px solid var(--text);
	border-radius: var(--radius);
	color: var(--text);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.badge::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border: 1.5px solid currentColor;
	border-radius: 50%;
}

.badge--open {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--on-accent);
}

.badge--open::before {
	background: currentColor;
}

.link-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.link-row--large .text-link {
	font-size: 1.25rem;
}

/* Header
   ------------------------------------------------------------------------- */

.site-header {
	position: relative;
	z-index: 10;
}

.site-header .site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 1rem;
	min-height: 4rem;
	border-bottom: 1px solid var(--band-rule);
}

.wordmark,
.wordmark a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	margin: 0;
	color: var(--band-text);
	font-size: 1.3125rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.035em;
	text-decoration: none;
}

.wordmark a:hover,
a.wordmark:hover {
	text-decoration: underline;
}

.site-nav .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 0.75rem;
	color: var(--band-text);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.45em;
}

.site-nav .wp-block-navigation-item__content:hover {
	text-decoration-color: var(--band-muted);
}

.site-nav .wp-block-navigation-item__content[aria-current="page"] {
	text-decoration-color: var(--band-text);
}

.site-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.footer-nav__list .wp-block-navigation-item__content[aria-current="page"],
.footer-nav__list .current-menu-item > .wp-block-navigation-item__content {
	text-decoration-color: var(--band-text);
}

.site-header .site-nav {
	position: static;
}

.site-header .site-nav .wp-block-navigation__container {
	gap: 0;
	margin-right: -0.75rem;
}

/* Menu button (added by assets/js/menu.js) */
.site-nav__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	min-height: 2.75rem;
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--band-rule);
	border-radius: var(--radius);
	background: transparent;
	color: var(--band-text);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.25;
	cursor: pointer;
}

.site-nav__bars {
	position: relative;
	width: 1rem;
	height: 2px;
	background: currentColor;
}

.site-nav__bars::before,
.site-nav__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
}

.site-nav__bars::before {
	top: -5px;
}

.site-nav__bars::after {
	top: 5px;
}

.site-nav[data-open] .site-nav__bars {
	background: transparent;
}

.site-nav[data-open] .site-nav__bars::before {
	top: 0;
	transform: rotate(45deg);
}

.site-nav[data-open] .site-nav__bars::after {
	top: 0;
	transform: rotate(-45deg);
}

@media (max-width: 47.99rem) {
	.site-header .site-nav:not([data-enhanced]) {
		flex-basis: 100%;
		padding-bottom: 0.5rem;
	}

	.site-header .site-nav:not([data-enhanced]) .wp-block-navigation__container {
		flex-wrap: wrap;
		margin: 0 0 0 -0.75rem;
	}

	.site-header .site-nav[data-enhanced]:not([data-open]) .wp-block-navigation__container {
		display: none;
	}

	.site-header .site-nav[data-enhanced] .wp-block-navigation__container {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		z-index: 20;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		margin: 0;
		padding: 0.5rem var(--gutter) 1.25rem;
		border-bottom: 1px solid var(--band-rule);
		background: var(--band-bg);
	}

	.site-header .site-nav[data-enhanced] .wp-block-navigation-item + .wp-block-navigation-item {
		border-top: 1px solid var(--band-rule);
	}

	.site-header .site-nav[data-enhanced] .wp-block-navigation-item__content {
		width: 100%;
		min-height: 3rem;
		padding: 0;
		font-size: 1.125rem;
		justify-content: flex-start;
	}
}

@media (min-width: 48rem) {
	.site-nav__toggle {
		display: none;
	}
}

/* Band: the page title block
   ------------------------------------------------------------------------- */

.band {
	padding-block: clamp(2.25rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
}

.band .band__title {
	margin: 0;
	font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.035em;
}

.band .band__title--display {
	font-size: clamp(3.5rem, 1.75rem + 7.5vw, 6rem);
	letter-spacing: -0.04em;
}

.band .band__lead {
	max-width: 44ch;
	margin: 1rem 0 0;
	color: #dde5e1;
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
	line-height: 1.5;
}

.band .band__lead p {
	margin: 0;
}

/* A lead with no excerpt stays hidden */
.band .band__lead:has(.wp-block-post-excerpt__excerpt:empty) {
	display: none;
}

.band--home {
	padding-block: clamp(2rem, 4vw, 3.25rem) clamp(2.25rem, 4vw, 3rem);
}

.band--home .wrap {
	display: grid;
	gap: 1.25rem 4rem;
}

.band--home .band__lead {
	margin: 0;
}

@media (min-width: 64rem) {
	.band--home .wrap {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: end;
	}

	.band--home .band__lead {
		padding-bottom: 0.5rem;
	}
}

.band .post-meta,
.band .wp-block-post-date {
	margin: 1.25rem 0 0;
	color: var(--band-muted);
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
}

/* Product hero, inside the band */

.product-hero {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas:
		"icon name"
		"lead lead"
		"action action";
	align-items: center;
	gap: 1.25rem;
}

.product-hero--soon,
.product-hero--beta {
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"name"
		"lead"
		"action";
}

.product-hero--post {
	grid-template-areas:
		"icon name"
		"lead lead"
		"meta meta";
}

.product-hero .product-hero__icon {
	grid-area: icon;
	width: 4.5rem;
	height: 4.5rem;
	margin: 0;
	border-radius: 22%;
	background: var(--band-rule);
	overflow: hidden;
}

.product-hero .product-hero__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.product-hero .product-hero__name {
	grid-area: name;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	min-width: 0;
}

.product-hero .product-hero__lead {
	grid-area: lead;
	margin: 0;
}

.product-hero .wp-block-post-date {
	grid-area: meta;
	margin: 0;
}

.product-hero .product-hero__action {
	grid-area: action;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
}

.product-hero__note {
	max-width: 36ch;
	margin: 0;
	color: var(--band-muted);
	font-size: 0.9375rem;
	line-height: 1.45;
}

@media (min-width: 64rem) {
	.product-hero {
		grid-template-columns: auto minmax(0, 1fr) minmax(0, 26rem);
		grid-template-areas:
			"icon name name"
			"lead lead action";
		align-items: end;
		column-gap: 1.5rem;
	}

	.product-hero--soon,
	.product-hero--beta {
		grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
		grid-template-areas:
			"name name"
			"lead action";
	}

	.product-hero--post {
		grid-template-areas:
			"icon name name"
			"lead lead lead"
			"meta meta meta";
	}

	.product-hero .product-hero__icon {
		width: 6rem;
		height: 6rem;
	}

	.product-hero .product-hero__action {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Legend: ruled facts
   ------------------------------------------------------------------------- */

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

.legend > div {
	min-width: 0;
	padding-block: 0.625rem;
	border-top: 1px solid var(--rule);
}

.legend dt {
	color: var(--muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

.legend dd {
	margin: 0.125rem 0 0;
	font-weight: 600;
	line-height: 1.4;
}

.legend--compact > div:only-child {
	grid-column: 1 / -1;
}

.legend--band {
	margin-top: clamp(2rem, 5vw, 3.5rem);
}

.legend--band > div {
	padding-block: 0.875rem 0;
}

.legend--band dd {
	font-size: 1.0625rem;
}

.legend--band:has(.legend__wide) {
	grid-template-columns: minmax(0, 1fr);
}

.legend--band a {
	color: var(--band-text);
	text-decoration-color: var(--band-muted);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

.legend--band a:hover {
	text-decoration-color: var(--band-text);
	text-decoration-thickness: 3px;
}

@media (min-width: 48rem) {
	.legend--band,
	.legend--band:has(.legend__wide) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.legend--band .legend__wide {
		grid-column: span 3;
	}
}

.legend--stack {
	grid-template-columns: minmax(0, 1fr);
}

.legend--stack > div {
	padding-block: 1rem;
}

.legend--stack dd {
	font-weight: 400;
	font-size: 1.0625rem;
	line-height: 1.55;
}

/* Sections
   ------------------------------------------------------------------------- */

.site-main .section {
	padding-block: clamp(3rem, 7vw, 5.5rem) 0;
}

.site-main .section:last-child,
.site-main .section--read {
	padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.site-main .section--extra:not(:has(.prose > :not(:empty))) {
	display: none;
}

.site-main .section:has(+ .section--extra) {
	padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.site-main .band + .section {
	padding-top: clamp(2rem, 3.5vw, 2.75rem);
}

.section__head {
	display: grid;
	gap: 0.375rem 2rem;
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
	padding-top: 0.875rem;
	border-top: 2px solid var(--rule-strong);
}

.section__title {
	margin: 0;
	font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.025em;
}

.section__intro {
	max-width: 52ch;
	margin: 0;
	color: var(--muted);
}

@media (min-width: 64rem) {
	/* Same three columns as the card grid, so the intro lines up with the second card */
	.section__head {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: var(--col-gap);
		align-items: baseline;
	}

	.section__head > :not(:first-child) {
		grid-column: 2 / -1;
	}
}

.grid {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 48rem) {
	.grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2.5rem 3rem;
	}
}

.grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: var(--col-gap);
}

/* Live app module */

.module {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
}

.module + .module {
	padding-top: 2.5rem;
	border-top: 1px solid var(--rule);
}

@media (min-width: 48rem) {
	.module + .module {
		padding-top: 0;
		padding-left: 3rem;
		border-top: 0;
		border-left: 1px solid var(--rule);
	}

	.grid--2:has(> .module + .module) {
		column-gap: 0;
	}

	.grid--2 > .module:first-child {
		padding-right: 3rem;
	}
}

.module__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
}

.app-icon {
	flex: none;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 22%;
	background: var(--paper-2);
}

.module__name {
	margin: 0;
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
	font-weight: 800;
	letter-spacing: -0.035em;
}

.module__desc {
	max-width: 52ch;
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.55;
}

.module__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.5rem;
	margin-top: auto;
	padding-top: 0.25rem;
}

/* Coming-soon card: quieter, tinted, no actions */

.card {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	min-width: 0;
	padding: 1.5rem 1.5rem 1.25rem;
	background: var(--paper-2);
}

.card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
}

.card__name {
	margin: 0;
	font-size: 1.625rem;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.card__tagline {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 650;
	line-height: 1.4;
}

.card__desc {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
}

.card .legend {
	margin-top: auto;
}

.card__link {
	align-self: flex-start;
	margin-top: -0.25rem;
}

/* Updates (query loop of posts) */

.updates .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--rule);
}

.updates .wp-block-post-template > li {
	margin: 0;
}

.update {
	display: grid;
	gap: 0.125rem 2rem;
	padding-block: 1rem;
	border-bottom: 1px solid var(--rule);
}

.update > * {
	margin: 0;
}

@media (min-width: 48rem) {
	.update {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: var(--col-gap);
		align-items: baseline;
	}

	.update__body {
		grid-column: 2 / -1;
	}
}

.update__date {
	color: var(--muted);
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
}

.update__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
}

.update__title a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: var(--text);
	text-decoration-color: var(--link-underline);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.25em;
}

.update__title a:hover {
	text-decoration-color: currentColor;
	text-decoration-thickness: 3px;
}

.update__excerpt {
	max-width: 60ch;
	margin: 0;
	color: var(--muted);
}

.update__excerpt p {
	margin: 0;
}

/* About strip */

.section--about .section__head {
	margin-bottom: 0;
}

.about-strip p {
	max-width: 56ch;
	margin: 0 0 0.25rem;
	font-size: 1.125rem;
}

/* Closing blocks */

.closing {
	margin-top: clamp(3rem, 7vw, 5.5rem);
	padding-block: clamp(2rem, 4vw, 3rem);
	background: var(--paper-2);
}

.closing--quiet {
	margin-top: 0;
	background: none;
	border-top: 1px solid var(--rule);
	padding-block: 1.5rem;
}

.site-main .section:not(.section--read) + .closing--quiet {
	margin-top: clamp(3rem, 7vw, 5.5rem);
}

.closing__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
}

.closing__title {
	margin: 0;
	font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
	font-weight: 800;
	letter-spacing: -0.025em;
}

.closing p {
	margin: 0.25rem 0 0;
	color: var(--muted);
}

.closing--quiet p {
	margin: 0;
}

/* Beta band: before the footer on read pages */

.beta-band {
	padding-block: clamp(2.5rem, 5vw, 3.5rem);
	background: var(--paper-2);
}

.beta-band__inner {
	display: grid;
	gap: 1.5rem 3rem;
}

.beta-band__title {
	margin: 0;
	font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
	font-weight: 800;
	letter-spacing: -0.025em;
}

.beta-band__text p {
	max-width: 48ch;
	margin: 0.5rem 0 0;
	color: var(--muted);
}

.beta-band__list {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--rule);
}

.beta-band__list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	padding-block: 0.875rem;
	border-bottom: 1px solid var(--rule);
}

.beta-band__app {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.025em;
}

@media (min-width: 64rem) {
	.beta-band__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
	}
}

/* Contact */

.contact {
	display: grid;
	gap: 2rem 4rem;
}

@media (min-width: 64rem) {
	.contact {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
	}
}

/* Prose: page and post content
   ------------------------------------------------------------------------- */

.prose {
	min-width: 0;
	font-size: 1.0625rem;
	line-height: 1.65;
}

.prose--read {
	max-width: var(--measure);
}

.site-main .prose > * {
	margin-block: 0;
	max-width: none;
}

.site-main .prose > * + * {
	margin-top: 1.1em;
}

.prose h2 {
	margin-top: 2.25em;
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
	font-weight: 750;
	letter-spacing: -0.02em;
}

.prose h3 {
	margin-top: 1.75em;
	font-size: 1.1875rem;
	font-weight: 700;
}

.site-main .prose > h2 {
	margin-top: 2.25em;
}

.site-main .prose > h3 {
	margin-top: 1.75em;
}

.site-main .prose h2 + *,
.site-main .prose h3 + * {
	margin-top: 0.6em;
}

.site-main .prose > :first-child {
	margin-top: 0;
}

.prose a {
	overflow-wrap: anywhere;
}

.prose ul {
	padding: 0;
	list-style: none;
}

.prose ul > li {
	position: relative;
	padding-left: 1.375rem;
}

.prose ul > li + li,
.prose ol > li + li {
	margin-top: 0.4em;
}

.prose ul > li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 0.125rem;
	width: 0.4375rem;
	height: 0.4375rem;
	background: var(--rule-strong);
}

.prose ol {
	padding-left: 1.5rem;
}

.prose blockquote {
	margin-inline: 0;
	padding-left: 1.25rem;
	border-left: 1px solid var(--rule-strong);
	font-size: 1.1875rem;
}

.prose hr {
	height: 0;
	margin-block: 2.5em;
	border: 0;
	border-top: 1px solid var(--rule);
}

.prose code {
	padding: 0.1em 0.35em;
	background: var(--paper-2);
	font-family: var(--mono);
	font-size: 0.875em;
}

.prose pre {
	padding: 1rem 1.25rem;
	background: var(--paper-2);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.prose pre code {
	padding: 0;
	background: none;
}

.prose figure {
	margin-inline: 0;
}

.prose figcaption {
	margin-top: 0.75rem;
	color: var(--muted);
	font-size: 0.9375rem;
}

.prose img {
	display: block;
}

/* Sheet layout: headings in the left column, their content on the right */

.prose--sheet ul > li {
	margin-top: 0;
	padding-block: 0.5rem;
	border-bottom: 1px solid var(--rule);
}

.prose--sheet ul > li::before {
	top: 1.12em;
}

.prose--sheet ul {
	border-top: 1px solid var(--rule);
}

.prose--sheet h2 {
	padding-top: 0.875rem;
	border-top: 2px solid var(--rule-strong);
}

.prose--sheet h2 + ul {
	border-top: 0;
}

@media (min-width: 56rem) {
	.prose--sheet {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: var(--col-gap);
		align-items: start;
	}

	.prose--sheet > * {
		grid-column: 2 / -1;
	}

	/* Keep the reading measure with padding, so each row's rule still spans the column */
	.prose--sheet > p {
		padding-right: max(0px, calc(100% - var(--measure)));
	}

	.prose--sheet > h2 {
		grid-column: 1;
		margin-top: 2.5rem;
		font-size: 1.375rem;
	}

	.site-main .prose--sheet > h2 + *,
	.site-main .prose--sheet > h2 + ul {
		margin-top: 2.5rem;
		padding-top: 0.875rem;
		border-top: 2px solid var(--rule-strong);
	}

	.prose--sheet > h2 + ul {
		padding-top: 0;
	}

	.prose--sheet > h2 + ul > li:first-child {
		padding-top: 0.875rem;
	}

	.prose--sheet > h2 + ul > li:first-child::before {
		top: 1.5em;
	}

	.site-main .prose--sheet > :first-child,
	.site-main .prose--sheet > h2:first-child + * {
		margin-top: 0;
	}

	/* An opening paragraph is the page's introduction: it spans both columns */
	.prose--sheet > p:first-child {
		grid-column: 1 / -1;
		max-width: 52ch;
		padding-right: 0;
		font-size: 1.25rem;
		line-height: 1.55;
	}

	.site-main .prose--sheet > p:first-child + h2,
	.site-main .prose--sheet > p:first-child + h2 + * {
		margin-top: 2.5rem;
	}
}

/* Footer
   ------------------------------------------------------------------------- */

.site-footer {
	padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
}

.site-footer .site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	gap: 2rem 3rem;
}

.site-footer__publisher p,
.site-footer__publisher address {
	margin: 0.25rem 0 0;
	color: var(--band-muted);
	line-height: 1.5;
}

.site-footer__publisher a:not(.wordmark) {
	text-decoration-color: var(--band-muted);
}

.site-footer__publisher a:not(.wordmark):hover {
	text-decoration-color: var(--band-text);
}

.site-footer .site-footer__title {
	margin: 0 0 0.25rem;
	color: var(--band-muted);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.5;
}

.footer-nav__list,
.footer-nav__list .wp-block-navigation__container {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-nav__list a,
.footer-nav__list .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	color: var(--band-text);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

.footer-nav__list a:hover,
.footer-nav__list .wp-block-navigation-item__content:hover {
	text-decoration-color: var(--band-muted);
}

/* Motion preference
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
}

/* Footer spacing (fix round 1): match the live grid. Block layout margins and the
   Navigation block's own gap and font size would otherwise stack on top of it. */
.site-footer__grid > *,
.site-footer__nav > * {
	margin-block-start: 0;
}

.site-footer__nav .site-footer__title {
	margin: 0 0 0.25rem;
}

.footer-nav__list,
.footer-nav__list .wp-block-navigation__container {
	gap: 0;
	font-size: inherit;
}

.footer-nav__list .wp-block-navigation-item__content {
	font-size: inherit;
	line-height: 1.6;
}

/* The Updates query sits under its section head like the live list (no extra block gap). */
.section .wrap > .updates {
	margin-block-start: 0;
}

/* Header row: no block-gap margin on the nav, so the Menu button centers like live. */
.site-header__inner > * {
	margin-block-start: 0;
}
