/* Front-end styles beyond theme.json. */

:root {
	--page-gutter: clamp(1.25rem, 5vw, 6rem);
}

/*
 * Big screens: above 1920px wide the whole layout grows with the window, up to
 * twice the size on a 4K screen, so it keeps the proportions it has on a laptop.
 * Widths are in rem (the 87.5rem grid, 45rem text column) so they grow too.
 */
html {
	font-size: clamp(100%, 0.8333vw, 200%);
}

/*
 * No rubber-band bounce at the top or bottom of the page on Mac trackpads and
 * iOS, so a strip of bare background never shows above the menu bar.
 */
html {
	overscroll-behavior-y: none;
}

/* Background colour blocks (assets/js/backdrop.js), behind everything. */
.bg-blocks {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}
.bg-block {
	position: absolute;
}

/* Side margins for page content, matching the header. */
main.wp-block-group {
	padding-inline: var(--page-gutter);
}

.post-card .wp-block-post-featured-image {
	overflow: hidden;
}

/* Scroll reveal, driven by assets/js/main.js. */
.js .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.js .reveal {
		transition: none;
		transform: none;
		opacity: 1;
	}
}

.project-card .wp-block-post-featured-image {
	overflow: hidden;
}
.project-link a {
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 600;
}

/* Header menu */
.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--luniere-ui-font, var(--wp--preset--font-family--mono));
	font-size: calc(0.92rem * var(--luniere-ui-scale, 1));
	font-weight: var(--luniere-ui-weight, 400);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
.site-nav__list li {
	position: relative;
}
.site-nav__list a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.site-header__bar .site-nav__list a:hover,
.site-header__bar .site-nav__list a:focus-visible,
.site-header__bar .site-nav__list .current-menu-item > a {
	color: var(--nav-tint, var(--wp--preset--color--accent));
}
/* "BLOG • 112" */
.nav-count::before {
	content: "\2022";
	margin: 0 0.5em;
}
.nav-count {
	opacity: 0.7;
}
.site-nav__list .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 12rem;
	margin: 0;
	padding: 0.75rem 1rem;
	list-style: none;
	color: #fff;
}
.site-nav__list .sub-menu li + li {
	margin-top: 0.4rem;
	padding-top: 0.4rem;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}
/* Drop from the bottom of the bar, with an invisible bridge so hover isn't lost on the way. */
.site-nav__list > li > .sub-menu {
	top: calc(100% + 0.55rem);
	left: -1rem;
}
.site-nav__list > .menu-item-has-children::after {
	content: "";
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	height: 0.6rem;
}
.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu {
	display: block;
}

/* Glass header. Hides while scrolling down and slides back in on scrolling up (assets/js/main.js). */
.site-header {
	position: relative;
	z-index: 100;
}
/*
 * Full-width charcoal glass bar. The glass is drawn on a pseudo-element: a blur on
 * the bar itself would stop the dropdown menus from blurring the page behind them.
 */
.site-header__bar {
	position: relative;
	z-index: 0;
	padding: 0.55rem var(--page-gutter);
	align-items: center;
	color: #fff;
}
.site-header__bar::before,
.site-nav__list .sub-menu {
	background: color-mix(in srgb, #2b2a28 var(--luniere-bar-opacity, 50%), transparent);
	-webkit-backdrop-filter: blur(18px) saturate(150%);
	backdrop-filter: blur(18px) saturate(150%);
}
.site-header__bar::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
}
.site-header__bar .site-nav__list a,
.site-header__bar .wp-block-site-title a {
	color: inherit;
}
.site-header__brand {
	gap: 0.75rem;
	align-items: center;
}
/* Stand-in wordmark until the SVG logo: the site title in Georgia over a coloured rule (inc/settings.php picks it). */
.site-header .wp-block-site-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.01em;
}
.site-header .wp-block-site-title a {
	display: inline-block;
	padding-bottom: 2px;
	border-bottom: 2px solid var(--luniere-mark, #c2a85a);
	text-decoration: none;
}
.site-header.is-pinned {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	transition: transform 0.35s ease;
}
.site-header.is-hidden {
	transform: translateY(calc(-100% - 48px)); /* Clear of the admin bar. */
}
.site-header.no-anim {
	transition: none;
}
/* Sit below the WordPress admin bar when logged in. */
.admin-bar .site-header.is-pinned {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar .site-header.is-pinned {
		top: 46px;
	}
}
@media (max-width: 600px) {
	/* The admin bar scrolls away on small screens. */
	.admin-bar .site-header.is-pinned {
		top: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.site-header.is-pinned {
		transition: none;
	}
}

/*
 * Infinite scroll (assets/js/infinite-scroll.js). Page links are never shown,
 * so nothing flashes before the script runs; they come back only if loading fails.
 * The status line is a pulsing dot; its text is for screen readers only.
 */
.wp-block-query-pagination:not(.is-fallback) {
	display: none;
}
/* When they do come back: page links in the card type, like the menu. */
.wp-block-query-pagination {
	justify-content: center;
	gap: 0.5rem 1.5rem;
	margin-top: 3rem;
	font-family: var(--luniere-ui-font, var(--wp--preset--font-family--mono));
	font-size: calc(0.92rem * var(--luniere-ui-scale, 1));
	font-weight: var(--luniere-title-weight, 600);
	line-height: 1.35;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	-webkit-text-stroke: var(--luniere-title-stroke, 0);
}
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.wp-block-query-pagination a:hover,
.wp-block-query-pagination a:focus-visible {
	color: var(--hover-tint, var(--wp--preset--color--accent));
}
.wp-block-query-pagination .page-numbers.current {
	color: var(--wp--preset--color--muted);
}
.infinite-status {
	min-height: 3rem;
	margin: 2rem 0;
	text-align: center;
	font-size: 0;
	color: transparent;
}
.infinite-status.is-loading::after {
	content: "";
	display: inline-block;
	width: 0.625rem;
	height: 0.625rem;
	margin-left: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	animation: infinite-pulse 0.8s ease-in-out infinite alternate;
}
@keyframes infinite-pulse {
	to {
		opacity: 0.2;
		transform: scale(0.6);
	}
}

/*
 * Cards: image, then "TITLE • YEAR" and ruled rows of categories / tags / skills,
 * in uppercase mono.
 */
.wp-block-post-template.is-layout-grid {
	--grid-gap: clamp(2rem, 6vw, 7rem);
	gap: var(--grid-gap);
	align-items: start;
}
/* masonry.js sets each card's row span; the gap down comes from that span. */
/* Thumbnail grid: one column on phones, two in between, three on wide screens. */
.wp-block-post-template.is-layout-grid {
	grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 600px) {
	.wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 1024px) {
	.wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.wp-block-post-template.is-layout-grid.is-masonry {
	grid-auto-rows: 1px;
	row-gap: 0;
}
.post-card > *,
.project-card > * {
	margin-block-start: 0;
}
.post-card .wp-block-post-featured-image img,
.project-card .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
}
.card-heading {
	gap: 0 0.6em;
	line-height: 1.35;
	align-items: baseline;
	margin-top: 0.75rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--wp--preset--color--contrast);
}
.card-title,
.card-year {
	margin: 0;
	font-family: var(--luniere-ui-font, var(--wp--preset--font-family--mono));
	font-size: calc(0.92rem * var(--luniere-ui-scale, 1));
	font-weight: var(--luniere-title-weight, 600);
	line-height: 1.35;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	-webkit-text-stroke: var(--luniere-title-stroke, 0); /* Firms up fonts with only one thin weight. */
}
.card-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.card-year::before {
	content: "\2022";
	margin-right: 0.6em;
}
.card-row {
	margin: 0;
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--wp--preset--color--contrast);
	font-family: var(--luniere-ui-font, var(--wp--preset--font-family--mono));
	font-size: calc(0.88rem * var(--luniere-ui-scale, 1));
	line-height: 1.4;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.card-row:last-child {
	border-bottom: 0;
}
.card-row a {
	color: inherit;
	text-decoration: none;
}
.card-row a:hover,
.card-title a:hover,
.card-row a:focus-visible,
.card-title a:focus-visible {
	color: var(--hover-tint, var(--wp--preset--color--accent)); /* assets/js/effects.js */
}

/* Single posts, projects and pages: the card type, scaled up for reading. */
:is(.single, .page) main > .wp-block-post-title,
:is(.single, .page) .wp-block-post-content :is(h1, h2, h3, h4, h5, h6),
:is(.single, .page) .wp-block-comments :is(h2, h3) {
	font-family: var(--luniere-ui-font, var(--wp--preset--font-family--mono));
	font-weight: var(--luniere-title-weight, 600);
	font-variant-caps: normal;
	-webkit-text-stroke: var(--luniere-title-stroke, 0);
	letter-spacing: 0.03em;
	line-height: 1.2;
	text-transform: uppercase;
}
:is(.single, .page) main > .wp-block-post-title {
	font-size: calc(0.92rem * var(--luniere-ui-scale, 1));
	line-height: 1.35;
	margin-bottom: 0.4rem;
}
:is(.single, .page) .wp-block-post-content :is(h2, h3, h4, h5, h6),
:is(.single, .page) .wp-block-comments :is(h2, h3) {
	font-size: calc(0.92rem * var(--luniere-ui-scale, 1));
}
:is(.single, .page) main > :is(.wp-block-post-content, .wp-block-post-date, .wp-block-post-terms, .wp-block-comments, .project-nav) {
	font-family: var(--luniere-ui-font, var(--wp--preset--font-family--mono));
	font-weight: var(--luniere-ui-weight, 400);
	-webkit-text-stroke: var(--luniere-ui-stroke, 0);
	letter-spacing: 0.03em;
}
:is(.single, .page) main > .wp-block-post-content {
	font-size: calc(0.88rem * var(--luniere-ui-scale, 1));
	line-height: 1.6;
}
:is(.single, .page) main > :is(.wp-block-post-date, .wp-block-post-terms, .project-nav),
:is(.single, .page) .post-meta .wp-block-post-terms {
	font-size: calc(0.88rem * var(--luniere-ui-scale, 1));
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
:is(.single, .page) .post-meta .wp-block-post-terms,
:is(.single, .page) main > .wp-block-comments {
	font-family: var(--luniere-ui-font, var(--wp--preset--font-family--mono));
	font-weight: var(--luniere-ui-weight, 400);
	-webkit-text-stroke: var(--luniere-ui-stroke, 0);
	letter-spacing: 0.03em;
}
:is(.single, .page) main > :is(.wp-block-post-terms, .project-nav) a,
:is(.single, .page) .post-meta a {
	color: inherit;
	text-decoration: none;
}
:is(.single, .page) main > :is(.wp-block-post-terms, .project-nav) a:hover,
:is(.single, .page) .post-meta a:hover {
	color: var(--wp--preset--color--contrast);
}

/* End of post: ruled rows for categories and tags, like the card rows. */
.post-meta {
	margin-block: 2.5rem;
	border-top: 1px solid var(--wp--preset--color--contrast);
}
.post-meta > .wp-block-post-terms {
	margin: 0;
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--wp--preset--color--contrast);
}
.post-meta > * + * {
	margin-block-start: 0;
}

/* Comments: normal case apart from the headings, links in dark colours, square dark button. */
:is(.single, .page) main > .wp-block-comments {
	font-size: calc(0.88rem * var(--luniere-ui-scale, 1));
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}
.wp-block-comments a {
	color: var(--content-link, var(--wp--preset--color--contrast));
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}
/* Each comment ruled off above, the list closed with a rule below; replies step in. */
/* "COMMENTS • 6": a ruled row like the category and tag rows, set apart from them. */
:is(.single, .page) .wp-block-comments h2.comments-band {
	display: flex;
	gap: 0 0.6em;
	margin: 0;
	padding: 0.4rem 0;
	border-top: 1px solid var(--wp--preset--color--contrast);
	border-bottom: 1px solid var(--wp--preset--color--contrast);
	font-size: calc(0.88rem * var(--luniere-ui-scale, 1));
	font-weight: var(--luniere-ui-weight, 400);
	line-height: 1.4;
	color: var(--wp--preset--color--muted);
}
.comments-band__count::before {
	content: "\2022";
	margin-right: 0.6em;
}
:is(.single, .page) main > .wp-block-comments {
	margin-top: 4rem !important;
}
.comments-band + .wp-block-comment-template > li:first-child {
	border-top: 0;
}
.wp-block-comment-template {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--wp--preset--color--contrast);
	list-style: none;
}
.wp-block-comment-template li {
	padding: 0.75rem 0 0.9rem;
	border-top: 1px solid var(--wp--preset--color--contrast);
}
.wp-block-comment-template ol {
	margin: 1.6rem 0 -0.9rem;
	padding: 0;
	list-style: none;
}
/* Reply rules run the full width; only the reply's text steps in. */
.wp-block-comment-template ol li {
	padding-left: clamp(1rem, 4vw, 2.5rem);
}
.comment-heading {
	gap: 0 0.6em;
	align-items: baseline;
}
.comment-heading .wp-block-comment-author-name {
	margin: 0;
	font-weight: 600;
}
.wp-block-comment-date {
	margin: 0;
	font-size: 0.9em;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
.wp-block-comment-date::before {
	content: "\2022";
	margin-right: 0.6em;
}
.comment-heading .wp-block-comment-reply-link {
	margin: 0 0 0 auto;
	font-size: 0.9em;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
.comment-heading .wp-block-comment-reply-link a {
	color: inherit;
	text-decoration: none;
}
.comment-heading .wp-block-comment-reply-link a:hover {
	color: var(--wp--preset--color--contrast);
}
.wp-block-comment-date a {
	color: inherit;
	text-decoration: none;
}
.wp-block-comment-content > :first-child {
	margin-top: 0.5rem;
}
.wp-block-comment-content > :last-child {
	margin-bottom: 0;
}
/* "LEAVE A COMMENT": the same ruled row as "COMMENTS • 6" and the category and tag rows. */
:is(.single, .page) .wp-block-comments h3.comment-reply-title {
	margin: 2.5rem 0 0;
	padding: 0.4rem 0;
	border-top: 1px solid var(--wp--preset--color--contrast);
	border-bottom: 1px solid var(--wp--preset--color--contrast);
	font-size: calc(0.88rem * var(--luniere-ui-scale, 1));
	font-weight: var(--luniere-ui-weight, 400);
	line-height: 1.4;
	color: var(--wp--preset--color--muted);
}
/* Core sets the "Cancel reply" wrapper to a larger font size, which made the row taller even when empty. */
:is(.single, .page) .wp-block-comments .comment-reply-title small {
	margin-left: 0.6em;
	font-size: inherit;
	line-height: inherit;
}
.comment-reply-title small a {
	color: inherit;
	text-decoration: none;
}
.comment-reply-title small a:hover {
	color: var(--wp--preset--color--contrast);
}

/* Jetpack sharing buttons are switched off in functions.php; this catches any that slip through. */
.sharedaddy,
.wp-block-jetpack-sharing-buttons {
	display: none !important;
}
.wp-block-post-content a {
	color: var(--content-link, var(--wp--preset--color--contrast));
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

/* Post images fill the text column, including old 612px uploads and captioned images with inline widths. */
.wp-block-post-content :is(.wp-caption, .wp-block-image):not(.alignleft, .alignright) {
	width: 100% !important;
	max-width: 100%;
}
.wp-block-post-content :is(img[class*="wp-image-"], .wp-block-image img, .wp-caption img):not(.alignleft, .alignright) {
	display: block;
	width: 100% !important;
	height: auto !important;
}

/* Footer: the header's charcoal glass, with the card rows' type and rules in white. */
.site-footer {
	position: relative;
	margin-top: clamp(4rem, 10vw, 8rem);
	padding: 3rem var(--page-gutter) 1.25rem;
	background: color-mix(in srgb, #2b2a28 var(--luniere-bar-opacity, 50%), transparent);
	-webkit-backdrop-filter: blur(18px) saturate(150%);
	backdrop-filter: blur(18px) saturate(150%);
	color: #fff;
	font-family: var(--luniere-ui-font, var(--wp--preset--font-family--mono));
	font-size: calc(0.88rem * var(--luniere-ui-scale, 1));
	font-weight: var(--luniere-ui-weight, 400);
	-webkit-text-stroke: var(--luniere-ui-stroke, 0);
	letter-spacing: 0.03em;
	line-height: 1.4;
}
.site-footer a {
	color: inherit;
	text-decoration: none;
}
.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--nav-tint, var(--luniere-mark, #c2a85a));
}
.site-footer__cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem clamp(2rem, 6vw, 7rem);
	align-items: start;
}
/* One column on phones, two in between (wordmark row on top), three on wide screens. */
@media (min-width: 600px) {
	.site-footer__cols {
		grid-template-columns: repeat(2, 1fr);
	}
	.site-footer__col:first-child {
		grid-column: 1 / -1;
	}
}
@media (min-width: 1024px) {
	.site-footer__cols {
		grid-template-columns: repeat(3, 1fr);
	}
	.site-footer__col:first-child {
		grid-column: auto;
	}
}
.site-footer__mark {
	display: inline-block;
	padding-bottom: 2px;
	border-bottom: 2px solid var(--luniere-mark, #c2a85a);
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
	-webkit-text-stroke: 0;
}
.site-footer__tagline {
	margin: 1rem 0 0;
	font-size: calc(1rem * var(--luniere-ui-scale, 1));
}
.site-footer__head {
	margin: 0;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.6);
	font: inherit;
	font-weight: var(--luniere-title-weight, 600);
	-webkit-text-stroke: var(--luniere-title-stroke, 0);
	text-transform: uppercase;
}
.site-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
	text-transform: uppercase;
}
.site-footer__list li {
	padding: 0.4rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.site-footer__list li:last-child {
	border-bottom: 0;
}
.site-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	margin-top: 3rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	text-transform: uppercase;
	opacity: 0.8;
}
.site-footer__list a[href^="mailto:"] {
	text-transform: none;
}

/* Old Hero column shortcodes (inc/columns.php): side by side at every width, phones included. */
.lc-col {
	box-sizing: border-box;
	margin-bottom: 1.5em;
	/* !important beats the constrained layout's auto side margins on post content children. */
	float: left;
	margin-right: 4% !important;
	margin-left: 0 !important;
}
.lc-col.lc-last {
	margin-right: 0 !important;
}
.lc-col > :first-child {
	margin-top: 0;
}
.lc-clear {
	clear: both;
}
.lc-one-half { width: 48%; }
.lc-one-third { width: 30.66%; }
.lc-two-third { width: 65.33%; }
.lc-one-fourth { width: 22%; }
.lc-three-fourth { width: 74%; }

/* Forms in posts and pages (contact form) and the comment form: type on a line,
   an off-white skewed box for long text, and a square dark button. */
:is(.wp-block-post-content, .wp-block-comments) form {
	font-family: var(--luniere-ui-font, var(--wp--preset--font-family--mono));
	font-size: calc(0.88rem * var(--luniere-ui-scale, 1));
}
:is(.wp-block-post-content, .wp-block-comments) form label {
	display: block;
	margin: 1.1rem 0 0.15rem;
	font-weight: var(--luniere-ui-weight, 400);
}
:is(.wp-block-post-content, .wp-block-comments) form :is(p, div):has(> label) {
	margin-block: 0;
}
:is(.wp-block-post-content, .wp-block-comments) form :is(p:empty, br) {
	display: none;
}
/* Checkboxes sit on the left of their text: input and label side by side (comment
   notification and cookie boxes), or the input inside its label (contact form). */
:is(.wp-block-post-content, .wp-block-comments) form :is(p, div):has(> input[type="checkbox"] + label),
:is(.wp-block-post-content, .wp-block-comments) form label:has(> input[type="checkbox"]) {
	display: flex;
	align-items: center;
	gap: 0.6em;
	margin: 0.9rem 0 0;
}
:is(.wp-block-post-content, .wp-block-comments) form :is(p, div):has(> input[type="checkbox"] + label) > label {
	margin: 0;
}
:is(.wp-block-post-content, .wp-block-comments) form input[type="checkbox"] {
	flex: none;
	width: 1.05em !important;
	height: 1.05em;
	margin: 0;
	accent-color: var(--button-tint, var(--wp--preset--color--contrast));
}
:is(.wp-block-post-content, .wp-block-comments) form :is(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input:not([type]), select) {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0.35rem 0;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	letter-spacing: 0.03em;
}
:is(.wp-block-post-content, .wp-block-comments) form textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 9rem;
	height: 11rem;
	margin: 0.35rem 0 0;
	padding: 0.9rem 1rem;
	border: 0;
	border-radius: 0;
	background: #f8f4ec;
	box-shadow: none;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	letter-spacing: 0.03em;
	resize: vertical;
	/* Corners pushed slightly off square, like the fractured shards. */
	clip-path: polygon(0.8% 2.5%, 100% 0, 99.2% 100%, 0 97%);
}
:is(.wp-block-post-content, .wp-block-comments) form :is(input, textarea, select):focus {
	outline: none;
}
:is(.wp-block-post-content, .wp-block-comments) form :is(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input:not([type]), select):focus {
	border-bottom-color: var(--button-tint, var(--wp--preset--color--accent));
	box-shadow: 0 1px 0 var(--button-tint, var(--wp--preset--color--accent));
}
:is(.wp-block-post-content, .wp-block-comments) form textarea:focus {
	background: #fffdf8;
}
:is(.wp-block-post-content, .wp-block-comments) form :is(input[type="submit"], button[type="submit"], button:not([type]), .wp-element-button) {
	margin-top: 1.25rem;
	padding: 0.7rem 1.4rem;
	border: 0;
	border-radius: 0;
	background: var(--button-tint, var(--wp--preset--color--contrast));
	box-shadow: none;
	color: #fff;
	font-family: var(--luniere-ui-font, var(--wp--preset--font-family--mono));
	font-size: calc(0.88rem * var(--luniere-ui-scale, 1));
	font-weight: var(--luniere-title-weight, 600);
	letter-spacing: 0.03em;
	text-transform: uppercase;
	cursor: pointer;
	/* Off-square corners to match the details box. */
	clip-path: polygon(2% 6%, 100% 0, 97.5% 100%, 0 92%);
}

/* Videos fill the text column. Old posts embed Vimeo and YouTube as fixed-size iframes;
   main.js keeps each one's own shape from its width and height. Embed blocks size themselves. */
.wp-block-post-content iframe:is([src*="vimeo.com"], [src*="youtube.com"], [src*="youtube-nocookie.com"]):not(.wp-block-embed__wrapper iframe) {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

/* [pano] panoramas (inc/pano.php): full column width, dark while loading. */
.pano {
	width: 100%;
	min-height: 220px;
	margin-block: 1.5em;
	background: #111;
}
.pano .pnlm-load-box {
	border-radius: 0;
	font-family: var(--luniere-ui-font, var(--wp--preset--font-family--mono));
}

/* Intro page (templates/page-intro.html): full-screen fragmenting panorama behind the page text,
   with no footer; the menu leads on from here. */
/* The header floats over the panorama, so its spacer (main.js) has nothing to hold open. */
.page-template-page-intro .wp-block-template-part:has(> .site-header) {
	min-height: 0 !important;
}
.page-template-page-intro .site-header:not(.is-pinned) {
	position: absolute;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
}
.intro {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* Logged in, the admin bar takes its height off the top. */
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
	min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
	margin: 0 !important;
	color: #fff;
}
/*
 * The panorama stays put behind the page; longer text scrolls over it. It fills the
 * whole window from the very top: the admin bar sits over it when logged in, and on
 * phones, where the admin bar scrolls away, no strip opens up above the veil.
 */
.intro__pano,
.intro__veil {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
}
/* Nothing light behind the panorama to show through while it fades in. */
.page-template-page-intro .bg-blocks {
	display: none;
}
.intro__pano {
	display: block;
	background: #050505;
	opacity: 0;
	transition: opacity 1.6s ease;
	cursor: grab;
	touch-action: pan-y;
}
.intro__pano.is-ready {
	opacity: 1;
}
.intro__pano:active {
	cursor: grabbing;
}
.intro__veil {
	background:
		radial-gradient(ellipse at 30% 55%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25) 70%),
		rgba(0, 0, 0, 0.25);
	pointer-events: none;
}
main.intro > .intro__content {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: 44rem;
	margin: 0 !important;
	padding: 6rem var(--page-gutter) 5rem;
	color: #fff;
	font-size: calc(0.95rem * var(--luniere-ui-scale, 1));
	line-height: 1.6;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
	pointer-events: none;
}
.intro .intro__content p {
	font-size: inherit;
	line-height: inherit;
}
.intro .intro__content a {
	color: #fff;
	pointer-events: auto;
}
.intro .intro__content h1,
.intro .intro__content h2 {
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.04em;
}
.intro__controls {
	position: absolute;
	z-index: 1;
	left: 50%;
	bottom: 1.25rem;
	display: flex;
	gap: 0.5rem;
	transform: translateX(-50%);
}
.intro__controls[hidden],
.intro__controls button[hidden] {
	display: none;
}
.intro__controls button {
	padding: 0.4rem 0.8rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 0;
	background: rgba(0, 0, 0, 0.25);
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--luniere-ui-font, var(--wp--preset--font-family--mono));
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.intro__controls button:hover,
.intro__controls button[aria-pressed="true"] {
	border-color: #fff;
	color: #fff;
}
.intro.is-fullscreen .intro__content,
.intro.is-fullscreen .intro__veil {
	display: none;
}
.intro.is-fullscreen .intro__pano {
	top: 0;
	height: 100%;
}
body.page-template-page-intro {
	background: #050505;
}

/* Filtered lists (format, category, tag): the filter as a ruled band in the card title type. */
.archive-band {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 0.6em;
	margin: 0 0 2rem;
	padding: 0.55rem 0;
	border-top: 1px solid var(--wp--preset--color--contrast);
	border-bottom: 1px solid var(--wp--preset--color--contrast);
	font-family: var(--luniere-ui-font, var(--wp--preset--font-family--mono));
	font-size: calc(0.92rem * var(--luniere-ui-scale, 1));
	font-weight: var(--luniere-title-weight, 600);
	line-height: 1.35;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	-webkit-text-stroke: var(--luniere-title-stroke, 0);
}
.archive-band__kind {
	color: var(--wp--preset--color--muted);
}
.archive-band__name::before {
	content: "\2022";
	margin-right: 0.6em;
	color: var(--wp--preset--color--muted);
}

/* Search in the header (inc/search.php): a magnifier that opens a line to type on. */
.site-header__end {
	gap: 2.5rem;
	align-items: center;
}
.site-search {
	display: flex;
	align-items: center;
	margin: 0;
	color: inherit;
}
.site-search__field {
	box-sizing: border-box;
	width: 11rem;
	margin: 0;
	padding: 0.15rem 0;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 0;
	background: transparent;
	color: #fff;
	font-family: var(--luniere-ui-font, var(--wp--preset--font-family--mono));
	font-size: calc(0.92rem * var(--luniere-ui-scale, 1));
	letter-spacing: 0.03em;
	text-transform: uppercase;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: width 0.3s ease, opacity 0.3s ease;
}
.site-search__field::placeholder {
	color: rgba(255, 255, 255, 0.55);
}
.site-search__field::-webkit-search-cancel-button {
	display: none;
}
/* Closed until the magnifier is pressed (only once the script is running). */
.site-search.is-ready:not(.is-open) .site-search__field {
	width: 0;
	border-color: transparent;
	opacity: 0;
	pointer-events: none;
}
.site-search__button {
	display: flex;
	margin: 0 0 0 0.4rem;
	padding: 0.2rem;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}
.site-search__button svg {
	width: 1.125rem; /* rem, so it grows with the page on big screens */
	height: 1.125rem;
}
.site-search__button:hover,
.site-search__button:focus-visible,
.site-search.is-open .site-search__button {
	color: var(--nav-tint, var(--wp--preset--color--accent));
}
@media (max-width: 600px) {
	.site-header__end {
		gap: 1.25rem;
	}
	/* No room in the bar on phones: the field opens as a strip just under it. */
	.site-search.is-open .site-search__field {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: auto;
		padding: 0.7rem var(--page-gutter);
		border-bottom: 0;
		background: color-mix(in srgb, #2b2a28 85%, transparent);
		-webkit-backdrop-filter: blur(18px);
		backdrop-filter: blur(18px);
	}
}
