/*
Theme Name: gexis
Theme URI: https://github.com/gcarstoiu/gexis-wp-theme
Author: George Carstoiu
Author URI: https://github.com/gcarstoiu
Description: A block theme for gexis, a personal site in four parts — gazette, engine room, inbox and sound. The four letters of the gexis mark are tags: each gets its tile colour and lights its letter of the mark on its archive. Built from the gexis design system: the blurred weave ground, Nunito Sans with IBM Plex Mono for anything measured, dark and light modes, native threaded comments with avatars, and a CV-style author page.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.3
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: gexis
Tags: blog, one-column, grid-layout, block-patterns, block-styles, full-site-editing, editor-style, threaded-comments, translation-ready
*/

/* Values below are the handoff's, measured from the prototype. Tokens are
   the design system's own names (assets/css/ds/, assets/css/modes.css).

   The system is touch-first and has NO hover states: press is the fill
   going from --fill to --fill-press over 140ms. The one exception is links
   turning --tx-g on hover, kept for desktop (theme.json). */

/* ── page frame ─────────────────────────────────────────────────────────── */

html { background: var(--bg-base); }
body {
	margin: 0;
	background: var(--bg-base);
	color: var(--ink);
	transition: background-color 220ms var(--ease);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.wp-site-blocks {
	position: relative;
	isolation: isolate;
	overflow-x: clip;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.wp-site-blocks > * { margin-block: 0; }
.wp-site-blocks > main { flex: 1; }

.gx-main {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: clamp(20px, 4.4vw, 56px);
	box-sizing: border-box;
}

:where(.gx-main) :where(p, h1, h2, h3, h4, figure, ul, ol) { margin: 0; }
img { max-width: 100%; height: auto; }

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 2px solid var(--accent-lms);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ── the ground ─────────────────────────────────────────────────────────── */

.gx-ground {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	margin: 0 !important;
}
.gx-ground > * { position: absolute; left: 0; right: 0; }
.gx-ground__weave {
	top: 0;
	height: 1100px;
	background: repeating-linear-gradient(38deg, var(--weave-a) 0 48px, var(--weave-b) 48px 96px);
	filter: blur(70px);
	transform: scale(1.14);
}
.gx-ground__image {
	top: -120px;
	left: -120px;
	width: calc(100% + 240px);
	max-width: none;
	height: 1040px;
	object-fit: cover;
	filter: blur(72px) saturate(1.7);
}
.gx-ground__veil { top: 0; height: 800px; }
.gx-ground__veil--light { background: var(--veil); }
.gx-ground__veil--dense { background: var(--veil-dense); }
.gx-ground__fade { top: 560px; height: 240px; background: linear-gradient(transparent, var(--bg-base)); }
.gx-ground__solid { top: 799px; bottom: 0; background: var(--bg-base); }
.gx-ground__bar { top: 0; height: 3px; background: var(--tag); }

/* ── the mark ───────────────────────────────────────────────────────────── */

.gx-mark { display: flex; line-height: 1; }
.gx-mark.aligncenter { justify-content: center; }
.gx-mark__link,
.gx-mark[role="img"] {
	display: inline-flex;
	align-items: center;
	gap: calc(var(--mk-size) * 0.19);
	color: inherit;
}
.gx-mark[role="img"] { display: flex; }
.gx-mark.aligncenter[role="img"] { justify-content: center; }
.gx-mark__box {
	width: var(--mk-box);
	height: var(--mk-box);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.gx-mark__tiles {
	display: grid;
	grid-template-columns: var(--mk-tile) var(--mk-tile);
	grid-template-rows: var(--mk-tile) var(--mk-tile);
	gap: var(--mk-gap);
	transform: rotate(45deg);
}
.gx-mark__tile {
	border-radius: var(--mk-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--logo-unlit);
	color: var(--logo-unlit-ink);
}
.gx-mark__tile--g.is-lit { background: var(--logo-g); color: var(--logo-ink-g); }
.gx-mark__tile--e.is-lit { background: var(--logo-e); color: var(--logo-ink-e); }
.gx-mark__tile--i.is-lit { background: var(--logo-i); color: var(--logo-ink-i); }
.gx-mark__tile--s.is-lit { background: var(--logo-s); color: var(--logo-ink-s); }
.gx-mark__glyph {
	transform: rotate(-45deg);
	font-family: var(--logo-face);
	font-weight: 800;
	font-size: var(--mk-glyph);
	line-height: 1;
}
.gx-mark__word {
	font-family: var(--logo-face);
	font-weight: 600;
	font-size: calc(var(--mk-size) * 0.4);
	letter-spacing: var(--track-display);
	line-height: 1;
	color: var(--ink);
}

/* ── header ─────────────────────────────────────────────────────────────── */

.gx-header {
	position: relative;
	z-index: 10;
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	box-sizing: border-box;
	height: clamp(72px, 9vw, 96px);
	padding: 0 clamp(20px, 4.4vw, 56px);
	gap: 12px;
}
.gx-header > .gx-mark { padding: 6px 0; }

.gx-nav { position: static !important; }
.gx-nav .wp-block-navigation__container { gap: 4px; align-items: center; }
.gx-nav .wp-block-navigation-item__content {
	display: block;
	padding: 12px 16px !important;
	border-radius: 12px;
	font-size: 17px;
	font-weight: 600;
	color: var(--ink-strong);
	transition: background-color var(--dur-press) var(--ease);
}
.gx-nav .current-menu-item > .wp-block-navigation-item__content,
.gx-nav .wp-block-navigation-item__content:active { background: var(--fill-press); }

/* the colour-mode switch: mono, names the mode it switches to */
.gx-theme-toggle {
	appearance: none;
	border: 0;
	margin-left: 8px;
	min-height: 44px;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--fill);
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink-muted);
	cursor: pointer;
	transition: background-color var(--dur-press) var(--ease);
}
.gx-theme-toggle:active { background: var(--fill-press); }
.gx-theme-toggle__long { display: none; }
:root[data-theme="light"] .gx-theme-toggle__to-light,
:root:not([data-theme="light"]) .gx-theme-toggle__to-dark { display: none; }
@media (prefers-color-scheme: light) {
	:root:not([data-theme]) .gx-theme-toggle__to-light { display: none; }
	:root:not([data-theme]) .gx-theme-toggle__to-dark { display: inline; }
}
html:not([data-theme]) .gx-theme-toggle { display: none; } /* no script: nothing to switch with */

/* Menu button under 760px. Core collapses at 600px; the design's one hard
   breakpoint is 760, so 600–759 is forced into the collapsed state too. */
.gx-nav .wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open,
.gx-nav .wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	box-sizing: border-box;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--fill);
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink-strong);
	align-items: center;
	justify-content: center;
}
@media (min-width: 600px) and (max-width: 759px) {
	.gx-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.gx-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.gx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex; }
}
@media (max-width: 759px) {
	/* The open menu is a card under the header, not a full-screen sheet. */
	.gx-nav .wp-block-navigation__responsive-container.is-menu-open {
		position: absolute;
		inset: 100% clamp(20px, 4.4vw, 56px) auto;
		height: auto;
		padding: 8px !important;
		border-radius: 22px;
		background: var(--bg-well) !important;
		border: 1px solid var(--line-strong);
		backdrop-filter: blur(var(--blur-backdrop));
		color: var(--ink) !important;
		overflow: visible;
		animation: none;
	}
	.gx-nav .is-menu-open .wp-block-navigation__responsive-dialog,
	.gx-nav .is-menu-open .wp-block-navigation__responsive-container-content { position: static; padding: 0 !important; margin: 0 !important; }
	.gx-nav .is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: stretch !important; gap: 0 !important; }
	.gx-nav .is-menu-open .wp-block-navigation-item { width: 100%; align-items: stretch !important; }
	.gx-nav .is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch !important; }
	.gx-nav:has(.is-menu-open) .wp-block-navigation__responsive-container-open { visibility: hidden; }
	.gx-nav .is-menu-open .wp-block-navigation-item__content { padding: 14px 16px !important; font-size: 19px; width: 100%; box-sizing: border-box; text-align: left; }
	/* "Close" sits exactly where "Menu" was. */
	.gx-nav .is-menu-open .wp-block-navigation__responsive-container-close {
		position: absolute;
		top: calc(-0.5 * clamp(72px, 9vw, 96px) - 23px);
		right: -1px;
	}
	.gx-nav .is-menu-open .gx-theme-toggle {
		margin: 0;
		width: 100%;
		text-align: left;
		background: transparent;
		padding: 14px 16px;
		font-family: var(--font-ui);
		font-size: 19px;
		font-weight: 600;
		letter-spacing: 0;
		text-transform: none;
		color: var(--ink-muted);
	}
	.gx-nav .is-menu-open .gx-theme-toggle__short { display: none; }
	.gx-nav .is-menu-open .gx-theme-toggle__long { display: inline; }
	html.has-modal-open { overflow: auto; }
}

/* ── shared pieces ──────────────────────────────────────────────────────── */

/* the uppercase mono label (ds/typography.css .gx-label) on a paragraph */
.is-style-gx-label,
.gx-label {
	font-family: var(--font-mono);
	font-size: var(--t-label-sm);
	font-weight: var(--w-semibold);
	letter-spacing: var(--track-label);
	text-transform: uppercase;
	color: var(--ink-quiet);
	line-height: 1.4;
}

/* label + rule running off to the right + optional trailing link or count.
   Block markup: a group holding the label paragraph (its ::after is the
   rule) and an optional trailing paragraph. PHP markup: .gx-label, .gx-rule
   and the trailing element. */
.gx-section-label { display: flex; align-items: center; gap: 14px; }
.gx-section-label > .gx-label { white-space: nowrap; flex: none; }
.wp-block-group.gx-section-label > .is-style-gx-label {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1;
	white-space: nowrap;
}
.wp-block-group.gx-section-label > .is-style-gx-label::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
}
.gx-rule { flex: 1; height: 1px; background: var(--line); }
.gx-section-label__link,
.gx-section-label__link a,
.gx-section-label__count {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--ink-quiet);
	line-height: 1.4;
}
.gx-section-label__link a { display: inline-block; padding: 12px 0; }

/* diamonds */
.gx-diamond {
	width: 7px;
	height: 7px;
	flex: none;
	border-radius: 2px;
	transform: rotate(45deg);
	background: var(--tag, var(--ink-quiet));
}
.gx-diamonds { display: flex; gap: 6px; align-items: center; }
.gx-diamonds .gx-diamond { width: 8px; height: 8px; }

/* tag labels on core/post-terms (inc/blocks.php adds .gx-tag and the diamond) */
.wp-block-post-terms[class*="is-style-gx-"] { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-block-post-terms .gx-tag {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	line-height: 1.4;
	color: var(--tag-tx, var(--ink-muted));
}
.wp-block-post-terms .gx-tag:hover { color: var(--tag-tx, var(--ink-muted)); }
.is-style-gx-pill .gx-tag { padding: 7px 12px; border-radius: 999px; background: var(--scrim); }
.gx-post-head .is-style-gx-pill .gx-tag { padding: 12px 14px; }
.is-style-gx-chip .gx-tag { padding: 12px 14px; border-radius: 999px; background: var(--fill); transition: background-color var(--dur-press) var(--ease); }
.is-style-gx-chip .gx-tag:active,
.gx-post-head .is-style-gx-pill .gx-tag:active { background: var(--fill-press); }
.is-style-gx-tags { gap: 12px !important; }
.is-style-gx-diamonds { gap: 6px !important; }
.is-style-gx-diamonds .gx-tag { gap: 0; }
.is-style-gx-diamonds .gx-tag__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.is-style-gx-diamonds .gx-diamond { width: 8px; height: 8px; }
/* rows are links as a whole; their diamonds are not separate targets */
.gx-row .is-style-gx-diamonds,
.gx-item .is-style-gx-diamonds { pointer-events: none; }

/* chips to the gexis tags: neutral ink, accent diamond */
.gx-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.gx-chip {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 999px;
	background: var(--fill);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--ink-muted);
	line-height: 1.4;
	transition: background-color var(--dur-press) var(--ease);
}
.gx-chip:active { background: var(--fill-press); }
.gx-chip--plain { font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; }

/* images: inset ring, radius, cover crop; the well when there is no image */
.wp-block-post-featured-image { margin: 0; overflow: hidden; position: relative; }
.wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-block-post-featured-image::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px var(--line-strong);
	pointer-events: none;
}
.gx-well { display: block; width: 100%; height: 100%; background: var(--bg-well); border-radius: inherit; }

/* ── rows ───────────────────────────────────────────────────────────────── */

.wp-block-post-template.gx-rows,
.wp-block-post-template.gx-cover-list,
.wp-block-post-template.gx-cards,
.wp-block-post-template.gx-tag-list,
.wp-block-post-template.gx-thread { list-style: none; margin: 0; padding: 0; }
.wp-block-post-template.gx-rows { display: flex; flex-direction: column; gap: 10px; }
.wp-block-post-template.gx-rows--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 12px 32px;
}
.wp-block-post-template.gx-rows--search { gap: 8px; }

.gx-row {
	position: relative;
	display: grid !important;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	padding: 12px;
	border-radius: 15px;
	background: var(--fill-card);
	color: var(--ink);
	transition: background-color var(--dur-press) var(--ease);
}
.gx-row:active { background: var(--fill-press); }
.gx-row .wp-block-post-featured-image,
.gx-row__thumb {
	width: 72px !important;
	height: 72px !important;
	border-radius: 12px;
	overflow: hidden;
	display: block;
}
.gx-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* a post with no image: the empty well in the thumbnail's place */
.gx-row:not(:has(.wp-block-post-featured-image)):not(:has(.gx-row__thumb))::before {
	content: "";
	width: 72px;
	height: 72px;
	border-radius: 12px;
	background: var(--bg-well);
}
.gx-row:not(:has(.wp-block-post-featured-image)):not(:has(.gx-row__thumb)) > .gx-row__body { grid-column: 2; }
.gx-row__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gx-row__title,
.gx-row .wp-block-post-title {
	font-size: 17px;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--ink);
	text-wrap: pretty;
}
/* the whole row is the title's link */
.gx-row .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; border-radius: 15px; }
.gx-row__meta { display: flex; align-items: center; gap: 12px; }
.gx-row__meta .wp-block-post-date,
.gx-row__date { font-family: var(--font-mono); font-size: 13px; color: var(--ink-quiet); white-space: nowrap; }
.gx-row__meta .wp-block-post-date a { color: inherit; }
.gx-row__excerpt,
.gx-row__excerpt p { font-size: 15px; color: var(--ink-quiet); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.gx-row__excerpt .wp-block-post-excerpt__more-text { display: none; }
.gx-rows--search .gx-row { gap: 18px; }
.gx-rows--search .gx-row__body { gap: 6px; }
.gx-rows--search .gx-row .wp-block-post-title { font-size: 19px; }

a.gx-row { text-decoration: none; }
a.gx-row:hover { color: var(--ink); }
.gx-row--compact { grid-template-columns: 56px minmax(0, 1fr) auto; padding: 10px; }
.gx-row--compact .gx-row__thumb { width: 56px !important; height: 56px !important; border-radius: 10px; }
.gx-row--compact .gx-row__body { display: contents; }
.gx-row--compact .gx-row__meta { gap: 14px; padding-right: 8px; }

/* ── home ───────────────────────────────────────────────────────────────── */

.gx-cover {
	padding: clamp(16px, 4vw, 40px) 0 clamp(56px, 10vw, 120px);
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 48px;
	align-items: center;
}
.gx-cover__image,
.gx-post-head__image {
	aspect-ratio: 1 / 1;
	max-width: 500px;
	width: 100%;
	border-radius: 24px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}
.gx-post-head__image { max-width: 420px; }
.gx-cover__text,
.gx-post-head__text { display: flex; flex-direction: column; gap: 22px; }
.gx-cover__title {
	font-size: clamp(38px, 4.6vw, 58px);
	line-height: 1.06;
	font-weight: 700;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
.gx-cover__title a { color: var(--ink); }
.gx-meta { font-family: var(--font-mono); color: var(--ink-quiet); font-size: 13px; }
.gx-cover__meta { font-size: 15px; color: var(--ink-muted); }

.wp-block-post-template.gx-cards {
	padding-bottom: 72px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 24px;
}
.gx-card { display: flex; flex-direction: column; gap: 14px; position: relative; }
.gx-card__image,
.gx-item__image { aspect-ratio: 4 / 3; border-radius: 22px; }
.gx-card:not(:has(.wp-block-post-featured-image))::before,
.gx-item:not(:has(.wp-block-post-featured-image))::before {
	content: "";
	aspect-ratio: 4 / 3;
	border-radius: 22px;
	background: var(--bg-well);
	box-shadow: inset 0 0 0 1px var(--line-strong);
}
.gx-card__title,
.gx-item__title {
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--ink);
	text-wrap: balance;
}
.gx-card__title a::after,
.gx-item__title a::after { content: ""; position: absolute; inset: 0; }
.gx-card .is-style-gx-tags { position: relative; z-index: 1; pointer-events: none; }

.gx-columns {
	padding-bottom: 96px;
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 32px;
}
.gx-column { display: flex; flex-direction: column; gap: 10px; }
.gx-column > .gx-section-label { padding-bottom: 6px; }

/* ── single post ────────────────────────────────────────────────────────── */

.gx-post-head {
	padding: clamp(16px, 4vw, 40px) 0 clamp(48px, 8vw, 96px);
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	gap: 48px;
	align-items: center;
}
.gx-post-head:not(:has(.wp-block-post-featured-image)) { grid-template-columns: minmax(0, 860px); }
.gx-post-head__title {
	font-size: clamp(36px, 4.2vw, 52px);
	line-height: 1.06;
	font-weight: 700;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
.gx-byline { align-self: flex-start; display: flex; align-items: center; gap: 14px !important; }
.gx-byline__text { display: flex; flex-direction: column; gap: 2px; }
.gx-byline .wp-block-post-author-name { font-size: 17px; font-weight: 600; }
.gx-byline .gx-meta { font-size: 13px; color: var(--ink-muted); }
.gx-byline .wp-block-avatar { margin: 0; line-height: 0; }

.gx-article {
	max-width: 720px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 26px;
}
.gx-article > .is-style-gx-chip { margin-top: 14px; }

/* body copy: 20/1.6; the first paragraph is the 22px intro */
.gx-prose {
	display: flex;
	flex-direction: column;
	gap: 26px;
	font-size: 20px;
	line-height: 1.6;
	color: var(--ink-body);
}
.gx-prose > * { margin: 0 !important; max-width: 100%; }
.gx-prose > p { text-wrap: pretty; }
.gx-prose > p:first-child { font-size: 22px; line-height: 1.5; color: var(--ink-strong); }
.gx-prose a { color: var(--tx-g); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.gx-prose :where(h2) { margin-top: 18px !important; font-size: 30px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.gx-prose :where(h3) { margin-top: 12px !important; font-size: 25px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.gx-prose :where(h4, h5, h6) { margin-top: 8px !important; font-size: 20px; line-height: 1.35; font-weight: 700; }
.gx-prose :where(ul, ol) { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.gx-prose strong { color: var(--ink); font-weight: 700; }
.gx-prose :where(figure.wp-block-image, .wp-block-image) { margin-block: 14px !important; display: flex; flex-direction: column; gap: 12px; }
/* Images keep their own shape: a wide bar screenshot must not be cropped to
   the 16:10 the design's sample figures happen to be. An aspect ratio chosen
   on the image block still applies (WordPress sets it inline). */
.gx-prose .wp-block-image img {
	width: 100%;
	height: auto;
	border-radius: 22px;
	box-shadow: 0 0 0 1px var(--line-strong);
}
.gx-prose .wp-block-image img[style*="aspect-ratio"] { object-fit: cover; }
.gx-prose figcaption,
.gx-prose .wp-element-caption { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--ink-quiet); text-align: left; }
.gx-prose pre,
.gx-prose .wp-block-code {
	padding: 24px 26px;
	border-radius: 15px;
	background: var(--fill-card);
	border: 1px solid var(--line);
	font-family: var(--font-mono);
	font-size: 15px;
	line-height: 1.7;
	color: var(--ink-strong);
	overflow: auto;
}
.gx-prose :where(p, li) > code {
	font-family: var(--font-mono);
	font-size: 0.85em;
	padding: 0.1em 0.35em;
	border-radius: 6px;
	background: var(--fill);
}
.gx-prose blockquote { margin: 0; padding-left: 22px; border-left: 3px solid var(--line-strong); color: var(--ink-strong); }
.gx-prose hr { border: 0; height: 1px; background: var(--line); width: 100%; }
.gx-prose--page { max-width: 720px; }
.gx-prose .gx-tag-cards { max-width: none; }

.gx-post-nav {
	max-width: 860px;
	margin: 72px auto 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 20px;
}
.gx-post-nav .gx-row { border: 1px solid var(--line); }
.gx-post-nav .gx-row__body { gap: 6px; }

/* ── comments ───────────────────────────────────────────────────────────── */

.gx-comments {
	max-width: 720px;
	margin: 96px auto 0;
	padding-bottom: 96px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.gx-comments > .gx-section-label { gap: 16px; }

.gx-respond {
	position: relative;
	padding: 22px;
	border-radius: 22px;
	background: var(--fill-card);
	border: 1px solid var(--line-strong);
}
.gx-respond .comment-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 12px;
	margin: 0;
}
.gx-respond .comment-form > p { margin: 0; }
.gx-respond .comment-form-comment,
.gx-respond .logged-in-as,
.gx-respond .comment-form-cookies-consent,
.gx-respond .comment-notes { grid-column: 1 / -1; }
.gx-respond .comment-form-cookies-consent { order: 10; display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--ink-muted); }
.gx-respond .logged-in-as { font-family: var(--font-mono); font-size: 13px; color: var(--ink-quiet); }
.gx-respond .logged-in-as a { color: var(--ink-muted); }
.gx-respond .required-field-message { display: none; }
.gx-respond textarea,
.gx-respond input[type="text"],
.gx-respond input[type="email"],
.gx-respond input[type="url"] {
	width: 100%;
	box-sizing: border-box;
	border-radius: 15px;
	border: 1px solid var(--line-strong);
	background: var(--input);
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: 17px;
	outline: none;
}
.gx-respond textarea { display: block; resize: vertical; padding: 16px 18px; line-height: 1.5; min-height: 0; }
.gx-respond input[type="text"],
.gx-respond input[type="email"],
.gx-respond input[type="url"] { height: 52px; padding: 0 18px; }
.gx-respond ::placeholder { color: var(--ink-quiet); opacity: 1; }
.gx-respond .form-submit { margin: 0; }
.gx-respond .gx-submit {
	width: 100%;
	height: 52px;
	padding: 0 24px;
	border: 0;
	border-radius: 15px;
	background: var(--accent-lms);
	color: var(--ink-on-accent);
	font-family: var(--font-ui);
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	transition: transform var(--dur-press) var(--ease);
}
.gx-respond .gx-submit:active { transform: scale(0.96); }

/* "Replying to {name}" and Cancel: only while replying */
.gx-reply-title { display: none; margin: -8px 0 8px !important; font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); align-items: center; justify-content: space-between; gap: 12px; }
.gx-reply-title small { font-size: inherit; }
.gx-reply-title a { display: inline-block; padding: 12px 0; color: var(--ink-quiet); }
.gx-thread .gx-respond .gx-reply-title,
.gx-respond.is-replying .gx-reply-title { display: flex; }
.gx-thread .gx-respond { margin-top: 18px; }

/* the thread */
.wp-block-comment-template.gx-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.gx-thread > li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.gx-thread li { margin: 0; }
.gx-thread ol { list-style: none; margin: 0; padding: 0 0 0 clamp(24px, 6vw, 60px); }
.gx-thread ol > li { margin-top: 18px; }
.gx-comment { display: grid !important; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.gx-thread ol .gx-comment { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
.gx-thread ol .gx-avatar { --av-size: 36px !important; }
.gx-comment .wp-block-avatar { margin: 0; line-height: 0; }
.gx-comment__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gx-comment__head { display: flex; align-items: center; gap: 12px !important; }
.gx-comment .wp-block-comment-author-name { font-size: 17px; font-weight: 600; color: var(--ink); }
.gx-comment .wp-block-comment-content { font-size: 17px; line-height: 1.55; color: var(--ink-body); text-wrap: pretty; }
.gx-comment .wp-block-comment-content p { margin: 0 0 0.6em; }
.gx-comment .wp-block-comment-content p:last-child { margin: 0; }
.gx-comment .wp-block-comment-content .comment-awaiting-moderation { font-family: var(--font-mono); font-size: 13px; color: var(--ink-quiet); }
.gx-comment .wp-block-comment-reply-link { align-self: flex-start; margin: -6px 0 -12px -10px; }
.gx-comment .wp-block-comment-reply-link a { display: inline-block; padding: 12px 10px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
/* the post author's own comments */
.bypostauthor > .gx-comment .wp-block-comment-author-name::after {
	content: "Author";
	margin-left: 12px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--fill-press);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tx-g);
	vertical-align: 2px;
}
.gx-comments-pager { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; }
.gx-comments-pager a { display: inline-block; padding: 14px 22px; border-radius: 12px; background: var(--fill); color: var(--ink-muted); }

/* avatars: a circle with initials on a hashed tint, the Gravatar on top */
.gx-avatar {
	position: relative;
	display: grid;
	place-items: center;
	width: var(--av-size);
	height: var(--av-size);
	flex: none;
	border-radius: 50%;
	overflow: hidden;
	background: var(--av-tint);
}
.gx-avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); }
.gx-avatar__initials {
	font-size: calc(var(--av-size) * 0.34);
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--ink-quiet);
	line-height: 1;
}
.gx-avatar img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	border-radius: 50%;
	margin: 0;
}

/* ── listings: tag, archive, search, page heads ─────────────────────────── */

.gx-head { display: flex; flex-direction: column; gap: 10px; }
.gx-page-head { padding: 56px 0 40px; }
.gx-head__title,
.gx-head .wp-block-query-title {
	font-size: clamp(38px, 6vw, 58px);
	line-height: 1.06;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--ink);
}
.gx-count { font-family: var(--font-mono); font-size: 15px; color: var(--ink-muted); }

.gx-tag-head {
	padding: 56px 0 48px;
	display: flex !important;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}
.gx-tag-head__id { display: flex; align-items: center; gap: 36px !important; }
/* Documents: the tag's pages, above its posts (gexis/tag-docs) */
.gx-doc-cards { padding-bottom: 40px; }
.gx-doc-cards__label { margin: 0 0 14px; }
.gx-doc-cards__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.gx-doc-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	border-radius: 18px;
	background: var(--fill-card);
	border: 1px solid var(--line-strong);
	border-left: 4px solid var(--tag, var(--line-strong));
	color: var(--ink);
	text-decoration: none !important;
	transition: background-color var(--dur-press) var(--ease);
}
.gx-doc-card:hover { color: var(--ink); }
.gx-doc-card:active { background: var(--fill-press); }
.gx-doc-card__name { font-size: 19px; font-weight: 700; line-height: 1.25; }
.gx-doc-card__blurb { font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.gx-tag-list {
	padding-bottom: 96px;
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 12px 32px;
}
/* items render as rows; on page 1 the first three are large cards */
.gx-item {
	position: relative;
	display: grid !important;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	padding: 12px;
	border-radius: 15px;
	background: var(--fill-card);
	transition: background-color var(--dur-press) var(--ease);
}
.gx-item:active { background: var(--fill-press); }
.gx-item .gx-item__image { width: 72px; height: 72px; aspect-ratio: 1; border-radius: 12px; }
.gx-item:not(:has(.wp-block-post-featured-image))::before { width: 72px; height: 72px; aspect-ratio: auto; border-radius: 12px; box-shadow: none; }
.gx-item__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gx-item .gx-item__title { font-size: 17px; line-height: 1.3; font-weight: 600; text-wrap: pretty; }
.gx-item .gx-item__title a::after { border-radius: 15px; }
.gx-item__comments { display: none; }
body:not(.paged) .gx-tag-list > li:nth-child(-n+3) { margin-bottom: 28px; }
body:not(.paged) .gx-tag-list > li:nth-child(-n+3) .gx-item {
	display: flex !important;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	padding: 0;
	background: none;
}
body:not(.paged) .gx-tag-list > li:nth-child(-n+3) .gx-item__image { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 22px; }
body:not(.paged) .gx-tag-list > li:nth-child(-n+3) .gx-item:not(:has(.wp-block-post-featured-image))::before { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line-strong); }
body:not(.paged) .gx-tag-list > li:nth-child(-n+3) .gx-item__body { gap: 14px; }
body:not(.paged) .gx-tag-list > li:nth-child(-n+3) .gx-item__title { font-size: 22px; line-height: 1.25; font-weight: 700; text-wrap: balance; }
body:not(.paged) .gx-tag-list > li:nth-child(-n+3) .gx-item__comments { display: inline; }
body:not(.paged) .gx-tag-list > li:nth-child(-n+3) .gx-item__comments::before { content: "· "; }
body:not(.paged) .gx-tag-list > li:nth-child(-n+3) .gx-item__title a::after { border-radius: 22px; }
.gx-item .gx-row__meta { gap: 12px; }
.gx-item .gx-meta { font-size: 13px; color: var(--ink-quiet); margin-left: -6px; }

.gx-months { padding-bottom: 56px; display: flex; flex-direction: column; gap: 40px; max-width: 860px; }
.gx-month { display: flex; flex-direction: column; gap: 8px; }
.gx-month > .gx-section-label { padding-bottom: 6px; gap: 16px; }
.gx-empty { color: var(--ink-muted); font-size: 19px; padding-bottom: 96px; }

.gx-pager {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 96px;
	font-family: var(--font-mono);
	font-size: 13px;
}
.gx-archive .gx-pager { max-width: 860px; }
.gx-pager__btn {
	padding: 14px 22px;
	border-radius: 12px;
	background: var(--fill);
	color: var(--ink-muted);
	transition: background-color var(--dur-press) var(--ease);
}
.gx-pager__btn:active { background: var(--fill-press); }
.gx-pager__btn.is-disabled { opacity: 0.45; }
.gx-pager__at { flex: 1; text-align: center; color: var(--ink-quiet); }

/* ── search ─────────────────────────────────────────────────────────────── */

.gx-search { padding-top: 56px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 28px; }
.gx-search > *,
.gx-page > * { max-width: 860px; width: 100%; box-sizing: border-box; }
.gx-search .gx-pager { padding-bottom: 0; }
.gx-search-field .wp-block-search__inside-wrapper { border: 0; padding: 0; }
.gx-search-field .wp-block-search__input {
	height: 72px;
	padding: 0 26px;
	border-radius: 22px;
	border: 1px solid var(--line-strong);
	background: var(--input);
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: 26px;
	font-weight: 600;
	outline: none;
	box-sizing: border-box;
	width: 100%;
}
.gx-search-field .wp-block-search__input::placeholder { color: var(--ink-quiet); opacity: 1; }
.gx-search-field .wp-block-search__input:focus-visible { outline: 2px solid var(--accent-lms); outline-offset: 2px; }
.gx-search-state--try { display: flex; flex-direction: column; gap: 12px; }
.gx-search-state__try { font-family: var(--font-mono); font-size: 13px; color: var(--ink-quiet); }
.gx-search-state--none { display: flex; flex-direction: column; gap: 18px; padding: 12px 0; }
.gx-search-state__none { margin: 0; font-size: 19px; color: var(--ink-muted); }
.gx-search-state--results .gx-section-label { gap: 16px; }

/* ── page ───────────────────────────────────────────────────────────────── */

.gx-page { padding-top: 56px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 28px; }
.gx-page .gx-prose { gap: 22px; }
.gx-page .gx-prose > p:first-child { max-width: 720px; }
.gx-page .gx-prose > .gx-tag-cards { margin-top: 12px !important; }

/* gexis/repo-doc: a Markdown document from the repository. The body is
   .gx-prose one level down, so its spacing is restated for the children;
   type, links, headings, code and quotes come from .gx-prose itself. */
.gx-repo-doc { display: flex; flex-direction: column; gap: 40px; }
.gx-repo-doc__body { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.gx-repo-doc__body > * { margin: 0 !important; max-width: 100%; }
.gx-repo-doc__body > p { text-wrap: pretty; }
.gx-repo-doc__body > h1 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; }
.gx-repo-doc__body :where(h1, h2, h3, h4, h5, h6) { scroll-margin-top: 24px; }
.gx-repo-doc__body ol { padding-left: 1.6em; }
.gx-repo-doc__body :where(li) > :where(p, ul, ol) { margin: 6px 0 0; }
.gx-repo-doc__body :where(li) > p:first-child { margin-top: 0; }
.gx-repo-doc__body :where(td, th, h2, h3, h4, blockquote p) code {
	font-family: var(--font-mono);
	font-size: 0.85em;
	padding: 0.1em 0.35em;
	border-radius: 6px;
	background: var(--fill);
}
.gx-repo-doc__body pre code { padding: 0; background: none; font-size: inherit; }
.gx-repo-doc__body blockquote > p { margin: 0; }
.gx-repo-doc__body blockquote > p + p { margin-top: 12px; }
.gx-repo-doc__body img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 15px;
	box-shadow: 0 0 0 1px var(--line-strong);
}
.gx-repo-doc__table {
	overflow-x: auto;
	border-radius: 15px;
	border: 1px solid var(--line);
	background: var(--fill-card);
}
.gx-repo-doc__table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.gx-repo-doc__table :where(th, td) { padding: 10px 14px; vertical-align: top; text-align: left; border-top: 1px solid var(--line); }
.gx-repo-doc__table thead th {
	border-top: 0;
	border-bottom: 1px solid var(--line-strong);
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-quiet);
	white-space: nowrap;
}
.gx-repo-doc__table tbody tr:first-child :where(td, th) { border-top: 0; }
.gx-repo-doc__table td { color: var(--ink-body); }
/* On a phone, columns keep a readable width and the box scrolls sideways
   rather than squeezing the last column to a word a line. */
@media (max-width: 600px) {
	.gx-repo-doc__table :where(th, td) { min-width: 6.5em; }
	.gx-repo-doc__table td:last-child:not(:first-child) { min-width: 18em; }
}
.gx-repo-doc__diagram,
.gx-repo-doc__notice { font-family: var(--font-mono); font-size: 15px; color: var(--ink-quiet); }
.gx-repo-doc__meta { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.gx-repo-doc__meta a { color: inherit; }

/* tag cards: About (56px mark, count) and the author's bench (40px) */
.gx-tag-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.gx-tag-cards--bench { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.gx-tag-card {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 22px;
	border-radius: 22px;
	background: var(--fill-card);
	border: 1px solid var(--line-strong);
	color: var(--ink);
	text-decoration: none !important;
	transition: background-color var(--dur-press) var(--ease);
}
.gx-tag-card:active { background: var(--fill-press); }
.gx-tag-card:hover,
.gx-prose a.gx-tag-card { color: var(--ink); text-decoration: none; }
.gx-tag-cards--bench .gx-tag-card { gap: 18px; padding: 18px; }
.gx-tag-card__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gx-tag-cards--bench .gx-tag-card__text { gap: 4px; }
.gx-tag-card__name { font-size: 25px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.gx-tag-cards--bench .gx-tag-card__name { font-size: 19px; letter-spacing: 0; white-space: nowrap; }
.gx-tag-card__blurb { font-size: 15px; line-height: 1.45; color: var(--ink-muted); }
.gx-tag-cards--bench .gx-tag-card__blurb { line-height: 1.4; }
.gx-tag-card__count { font-family: var(--font-mono); font-size: 13px; color: var(--ink-quiet); }

/* ── author ─────────────────────────────────────────────────────────────── */

.gx-cv__head { padding-top: 56px; display: flex; align-items: flex-start; gap: 36px; flex-wrap: wrap; }
.gx-cv__intro { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.gx-cv__who { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.gx-cv__name { font-size: 20px; font-weight: 700; }
.gx-cv__where { font-family: var(--font-mono); font-size: 13px; color: var(--ink-quiet); }
.gx-cv__lede { margin: 0; font-size: clamp(34px, 4vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; text-wrap: pretty; }
.gx-cv__now { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--ink-muted); }
.gx-cv__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-lms); flex: none; }
.gx-cv__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.gx-cv__link {
	padding: 13px 18px;
	border-radius: 12px;
	background: var(--fill-raised);
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--ink-muted);
	transition: background-color var(--dur-press) var(--ease);
}
.gx-cv__link:active { background: var(--fill-press); }
.gx-cv__link--pdf { background: var(--fill-press); color: var(--ink-strong); }
.gx-cv__cols { margin-top: 72px; display: flex; flex-wrap: wrap; gap: 56px 64px; padding-bottom: 80px; }
.gx-cv__main { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.gx-cv__aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.gx-cv__section { display: flex; flex-direction: column; gap: 18px; }
.gx-cv__aside .gx-cv__section { gap: 14px; }
.gx-cv__section--work { gap: 4px; }
.gx-cv__section--facts { gap: 6px; }
.gx-cv .gx-section-label { gap: 16px; }
.gx-cv__summary { margin: 0; font-size: 20px; line-height: 1.6; color: var(--ink-body); text-wrap: pretty; }
.gx-job { display: grid; grid-template-columns: clamp(72px, 14vw, 110px) minmax(0, 1fr); gap: clamp(14px, 3vw, 24px); padding: 20px 0; border-bottom: 1px solid var(--line); }
.gx-job__years { font-family: var(--font-mono); font-size: 13px; line-height: 2; color: var(--ink-quiet); }
.gx-job__body { display: flex; flex-direction: column; gap: 6px; }
.gx-job__role { font-size: 19px; line-height: 1.35; color: var(--ink); }
.gx-job__role strong { font-weight: 700; }
.gx-job__org { color: var(--ink-muted); }
.gx-job__note { font-size: 17px; line-height: 1.55; color: var(--ink-body); text-wrap: pretty; }
.gx-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.gx-skill { padding: 9px 14px; border-radius: 999px; background: var(--fill); font-size: 15px; font-weight: 600; color: var(--ink-strong); white-space: nowrap; }
.gx-fact { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gx-fact__k { font-family: var(--font-mono); font-size: 13px; color: var(--ink-quiet); }
.gx-fact__v { font-size: 17px; line-height: 1.5; color: var(--ink-body); }
.gx-lately { display: flex; flex-direction: column; gap: 18px; padding-bottom: 96px; }
.gx-lately > .gx-section-label { gap: 16px; }

/* ── 404 ────────────────────────────────────────────────────────────────── */

.gx-404 { padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.gx-404__code { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.2em; color: var(--ink-quiet); }
.gx-404__line { font-size: 19px; color: var(--ink-muted); max-width: 520px; }
.gx-404__buttons { gap: 10px !important; }
.gx-404__latest { width: 100%; margin-top: 56px; display: flex; flex-direction: column; gap: 28px; text-align: left; }
.gx-404__latest .gx-rows--grid { gap: 24px; }

/* buttons */
.wp-block-button .wp-block-button__link { transition: transform var(--dur-press) var(--ease), background-color var(--dur-press) var(--ease); }
.wp-block-button .wp-block-button__link:active { transform: scale(0.96); }
.wp-block-button.is-style-gx-quiet .wp-block-button__link { background: var(--fill-raised); color: var(--ink-strong); font-weight: 600; }
.wp-block-button.is-style-gx-quiet .wp-block-button__link:hover { background: var(--fill-raised); color: var(--ink-strong); }
.wp-block-button.is-style-gx-quiet .wp-block-button__link:active { background: var(--fill-press); transform: none; }

/* ── footer ─────────────────────────────────────────────────────────────── */

.gx-footer { border-top: 1px solid var(--line-faint); }
.gx-footer__inner {
	max-width: 1280px;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 28px clamp(20px, 4.4vw, 56px) 96px;
	gap: 12px;
	align-items: center;
}
.gx-footer__links { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; font-family: var(--font-mono); font-size: 13px; }
.gx-footer__links a { padding: 14px 10px; color: var(--ink-quiet); }

/* ── toast ──────────────────────────────────────────────────────────────── */

.gx-toast {
	position: fixed;
	left: 50%;
	bottom: 92px;
	z-index: 100;
	padding: 14px 24px;
	border-radius: 999px;
	background: var(--scrim-strong);
	color: #e9eef2;
	font-size: 17px;
	font-weight: 600;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
	pointer-events: none;
	transform: translateX(-50%);
	animation: gx-toast 2.4s var(--ease) both;
}
.gx-toast[hidden] { display: none; }
@keyframes gx-toast {
	0% { opacity: 0; transform: translate(-50%, 12px); }
	8%, 88% { opacity: 1; transform: translate(-50%, 0); }
	100% { opacity: 0; transform: translate(-50%, 0); visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; }
	.gx-toast { animation-name: gx-toast-still; }
	@keyframes gx-toast-still { 0%, 95% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
}
