/*
Theme Name: Lux Spectrum
Author: Lux
Description: A spectrum-inspired WordPress theme for essays, moments, and personal archives.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
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: lux
Tags: blog, portfolio, custom-logo, custom-menu, featured-images, post-formats, threaded-comments, translation-ready
*/

:root {
	--lux-bg: #f3f4ee;
	--lux-surface: #fcfdf8;
	--lux-surface-2: #e9ece6;
	--lux-ink: #202323;
	--lux-muted: #707778;
	--lux-faint: #aeb3af;
	--lux-accent: #3559c7;
	--lux-accent-dark: #243f99;
	--lux-violet: #7b5cff;
	--lux-amber: #f0a84f;
	--lux-coral: #e87162;
	--lux-line: rgba(32, 35, 35, 0.14);
	--lux-line-strong: rgba(32, 35, 35, 0.25);
	--lux-code: #171c24;
	--lux-code-ink: #e8edf5;
	--lux-rail: 112px;
	--lux-page: 1400px;
	--lux-reading: 760px;
	--lux-radius: 18px;
	--lux-shadow: 0 24px 70px rgba(39, 43, 46, 0.1);
}

html[data-theme="dark"] {
	color-scheme: dark;
	--lux-bg: #101318;
	--lux-surface: #181d24;
	--lux-surface-2: #222833;
	--lux-ink: #eef0ea;
	--lux-muted: #9ca4aa;
	--lux-faint: #626b74;
	--lux-accent: #8ba7ff;
	--lux-accent-dark: #b5c5ff;
	--lux-violet: #a98fff;
	--lux-amber: #f5bd72;
	--lux-coral: #f09286;
	--lux-line: rgba(238, 240, 234, 0.11);
	--lux-line-strong: rgba(238, 240, 234, 0.22);
	--lux-code: #090c11;
	--lux-code-ink: #e8edf5;
	--lux-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--lux-bg);
	color: var(--lux-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.7;
	margin: 0;
	min-height: 100vh;
	overflow-x: clip;
	padding-left: var(--lux-rail);
	text-rendering: optimizeLegibility;
	transition: background-color 360ms ease, color 280ms ease;
}

body.menu-open,
body.search-open {
	overflow: hidden;
}

a {
	color: var(--lux-accent-dark);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--lux-violet);
}

img {
	display: block;
	height: auto;
	max-width: 100%;
}

button,
input,
textarea,
select {
	font: inherit;
}

button {
	cursor: pointer;
}

::selection {
	background: var(--lux-accent);
	color: #fff;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--lux-surface);
	clip: auto !important;
	clip-path: none;
	color: var(--lux-ink);
	display: block;
	height: auto;
	left: calc(var(--lux-rail) + 1rem);
	padding: 0.8rem 1rem;
	top: 1rem;
	width: auto;
	z-index: 10000;
}

:focus-visible {
	outline: 2px solid var(--lux-accent);
	outline-offset: 4px;
}

.site-main {
	min-height: 70vh;
}

.spectrum-page {
	margin-inline: auto;
	max-width: var(--lux-page);
	padding-inline: clamp(1.4rem, 4vw, 4.5rem);
}

/* Spectrum rail */

.spectrum-rail {
	background: color-mix(in srgb, var(--lux-bg) 86%, transparent);
	backdrop-filter: blur(18px) saturate(150%);
	border-right: 1px solid var(--lux-line);
	bottom: 0;
	left: 0;
	position: fixed;
	top: 0;
	width: var(--lux-rail);
	z-index: 200;
}

.admin-bar .spectrum-rail {
	top: 32px;
}

.spectrum-rail-inner {
	align-items: center;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.25rem 0.8rem;
}

.site-branding {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.spectrum-monogram,
.custom-logo-link {
	align-items: center;
	display: flex;
	justify-content: center;
	text-decoration: none;
}

.spectrum-monogram {
	background: var(--lux-ink);
	border-radius: 50%;
	color: var(--lux-bg);
	font-family: Georgia, serif;
	font-size: 1.65rem;
	font-style: italic;
	font-weight: 700;
	height: 50px;
	position: relative;
	width: 50px;
}

.spectrum-monogram:hover {
	color: var(--lux-bg);
}

.spectrum-monogram i {
	background: linear-gradient(90deg, var(--lux-accent), var(--lux-violet), var(--lux-amber));
	border-radius: 99px;
	bottom: -5px;
	height: 3px;
	left: 5px;
	position: absolute;
	right: 5px;
}

.custom-logo {
	border-radius: 50%;
	height: 50px;
	object-fit: cover;
	width: 50px;
}

.site-title {
	color: var(--lux-ink);
	font-size: 0.65rem;
	font-weight: 750;
	letter-spacing: 0.16em;
	max-height: 8rem;
	overflow: hidden;
	text-decoration: none;
	text-overflow: ellipsis;
	text-transform: uppercase;
	writing-mode: vertical-rl;
}

.main-navigation {
	display: flex;
	flex: 1;
	margin-block: 1.5rem;
	min-height: 0;
	width: 100%;
}

.main-navigation .primary-menu-container {
	margin-block: auto;
	width: 100%;
}

.main-navigation ul {
	counter-reset: rail-nav;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation li {
	counter-increment: rail-nav;
	position: relative;
}

.main-navigation a {
	align-items: center;
	border-radius: 10px;
	color: var(--lux-muted);
	display: flex;
	flex-direction: column;
	font-size: 0.72rem;
	font-weight: 650;
	gap: 0.05rem;
	margin-block: 0.2rem;
	padding: 0.65rem 0.25rem;
	position: relative;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.main-navigation a::before {
	color: var(--lux-faint);
	content: counter(rail-nav, decimal-leading-zero);
	font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
	font-size: 0.47rem;
	letter-spacing: 0.08em;
}

.main-navigation a::after {
	background: linear-gradient(180deg, var(--lux-accent), var(--lux-violet));
	border-radius: 99px;
	bottom: 20%;
	content: "";
	left: -0.8rem;
	position: absolute;
	top: 20%;
	transform: scaleY(0);
	transition: transform 180ms ease;
	width: 3px;
}

.main-navigation a:hover {
	background: var(--lux-surface-2);
	color: var(--lux-ink);
	transform: translateX(2px);
}

.main-navigation .current-menu-item > a {
	background: color-mix(in srgb, var(--lux-accent) 10%, transparent);
	color: var(--lux-ink);
}

.main-navigation .current-menu-item > a::after {
	transform: scaleY(1);
}

.main-navigation .sub-menu {
	background: var(--lux-surface);
	border: 1px solid var(--lux-line);
	border-radius: 12px;
	box-shadow: var(--lux-shadow);
	left: calc(100% + 1rem);
	min-width: 180px;
	opacity: 0;
	padding: 0.45rem;
	pointer-events: none;
	position: absolute;
	top: 0;
	transform: translateX(-8px);
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
	visibility: hidden;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: none;
	visibility: visible;
}

.main-navigation .sub-menu a {
	align-items: flex-start;
	flex-direction: row;
	white-space: nowrap;
}

.main-navigation .sub-menu a::before {
	display: none;
}

.rail-tools {
	display: grid;
	gap: 0.3rem;
	width: 100%;
}

.rail-tool {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 10px;
	color: var(--lux-muted);
	display: flex;
	flex-direction: column;
	font-size: 0.58rem;
	gap: 0.2rem;
	justify-content: center;
	min-height: 48px;
	padding: 0.4rem;
}

.rail-tool:hover {
	background: var(--lux-surface-2);
	color: var(--lux-ink);
}

.rail-tool svg {
	fill: none;
	height: 19px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.7;
	width: 19px;
}

.theme-toggle-icon {
	border: 1px solid currentColor;
	border-radius: 50%;
	display: block;
	height: 18px;
	overflow: hidden;
	position: relative;
	width: 18px;
}

.theme-toggle-icon i {
	background: currentColor;
	height: 100%;
	position: absolute;
	right: -50%;
	top: 0;
	transition: transform 320ms cubic-bezier(0.2, 0.75, 0.2, 1);
	width: 100%;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-icon i {
	transform: translateX(-50%);
}

.menu-toggle {
	background: transparent;
	border: 1px solid var(--lux-line);
	border-radius: 50%;
	color: var(--lux-ink);
	display: none;
	height: 42px;
	padding: 0;
	position: relative;
	width: 42px;
	z-index: 4;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
	background: currentColor;
	content: "";
	display: block;
	height: 1.5px;
	margin-inline: auto;
	transition: transform 180ms ease, opacity 180ms ease;
	width: 17px;
}

.menu-toggle-lines {
	position: relative;
}

.menu-toggle-lines::before {
	position: absolute;
	top: -5px;
}

.menu-toggle-lines::after {
	position: absolute;
	top: 5px;
}

.menu-open .menu-toggle-lines {
	background: transparent;
}

.menu-open .menu-toggle-lines::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-open .menu-toggle-lines::after {
	top: 0;
	transform: rotate(-45deg);
}

/* Search workbench */

.spectrum-search {
	inset: 0;
	position: fixed;
	z-index: 1000;
}

.spectrum-search-backdrop {
	background: color-mix(in srgb, var(--lux-ink) 34%, transparent);
	border: 0;
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity 240ms ease;
	width: 100%;
}

.spectrum-search-panel {
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--lux-accent) 10%, transparent), transparent 46%),
		var(--lux-surface);
	border: 1px solid var(--lux-line);
	border-radius: 22px;
	box-shadow: 0 40px 110px rgba(16, 20, 28, 0.25);
	left: 50%;
	max-width: 760px;
	opacity: 0;
	padding: clamp(1.5rem, 4vw, 3rem);
	position: absolute;
	top: 14vh;
	transform: translate(-50%, -18px) scale(0.98);
	transition: opacity 240ms ease, transform 300ms cubic-bezier(0.2, 0.75, 0.2, 1);
	width: calc(100% - 2rem);
}

.search-open .spectrum-search-backdrop,
.search-open .spectrum-search-panel {
	opacity: 1;
}

.search-open .spectrum-search-panel {
	transform: translate(-50%, 0) scale(1);
}

.spectrum-search-panel > header {
	align-items: flex-start;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
}

.spectrum-search-panel header p,
.issue-code,
.spectrum-section-head > div > p,
.category-spectrum > p,
.spectrum-manifesto > p,
.spectrum-archive-hero > p,
.reading-header-code,
.contact-card-meta,
.moment-date,
.reading-toc > p,
.spectrum-footer-lead > p {
	color: var(--lux-accent);
	font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
	font-size: 0.63rem;
	font-weight: 700;
	letter-spacing: 0.17em;
	text-transform: uppercase;
}

.spectrum-search-panel header p {
	margin: 0 0 0.7rem;
}

.spectrum-search-panel h2 {
	font-size: clamp(2rem, 5vw, 3.5rem);
	letter-spacing: -0.055em;
	line-height: 1;
	margin: 0;
}

.spectrum-search-close {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--lux-muted);
	display: flex;
	font-size: 0.72rem;
	gap: 0.6rem;
}

kbd {
	background: var(--lux-surface-2);
	border: 1px solid var(--lux-line);
	border-radius: 5px;
	font-family: ui-monospace, monospace;
	font-size: 0.65rem;
	padding: 0.15rem 0.35rem;
}

.search-form {
	display: flex;
	gap: 0.6rem;
}

.spectrum-search-panel .search-form {
	border-bottom: 2px solid var(--lux-ink);
	margin-top: 2.6rem;
}

.search-form label {
	flex: 1;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea,
select {
	background: var(--lux-surface);
	border: 1px solid var(--lux-line);
	border-radius: 10px;
	color: var(--lux-ink);
	max-width: 100%;
	padding: 0.75rem 0.9rem;
	width: 100%;
}

.spectrum-search-panel .search-field {
	background: transparent;
	border: 0;
	border-radius: 0;
	font-size: clamp(1.4rem, 4vw, 2.4rem);
	height: 68px;
	outline: 0;
	padding-inline: 0;
}

.search-submit {
	align-items: center;
	background: var(--lux-ink);
	border: 0;
	border-radius: 50%;
	color: var(--lux-bg);
	display: flex;
	height: 44px;
	justify-content: center;
	padding: 0;
	width: 44px;
}

.spectrum-search-panel .search-submit {
	align-self: center;
	height: 46px;
	width: 46px;
}

.search-submit svg {
	fill: none;
	height: 18px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.7;
	width: 18px;
}

.spectrum-search-hint {
	color: var(--lux-muted);
	font-size: 0.75rem;
	margin: 1rem 0 0;
}

/* Lightfield hero */

.lightfield-hero {
	display: grid;
	gap: clamp(2rem, 6vw, 6rem);
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
	min-height: 94vh;
	min-height: 94svh;
	overflow: hidden;
	padding-block: clamp(5rem, 11vh, 8rem) clamp(3rem, 7vh, 5rem);
	position: relative;
}

.lightfield-copy {
	align-self: center;
	position: relative;
	z-index: 2;
}

.issue-code {
	margin: 0 0 2rem;
}

.lightfield-copy h1 {
	font-size: clamp(4rem, 8.2vw, 8.8rem);
	font-weight: 820;
	letter-spacing: -0.085em;
	line-height: 0.96;
	margin: 0;
	max-width: 7.2em;
	text-wrap: balance;
}

.lightfield-statement {
	color: var(--lux-muted);
	font-size: clamp(1rem, 1.5vw, 1.22rem);
	line-height: 1.8;
	margin: 2rem 0 0;
	max-width: 34rem;
}

.lightfield-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
	margin-top: 2.4rem;
}

.spectrum-button,
input[type="submit"] {
	align-items: center;
	background: var(--lux-ink);
	border: 1px solid var(--lux-ink);
	border-radius: 999px;
	color: var(--lux-bg);
	display: inline-flex;
	font-size: 0.72rem;
	font-weight: 750;
	justify-content: center;
	letter-spacing: 0.08em;
	padding: 0.8rem 1.25rem;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.spectrum-button:hover,
input[type="submit"]:hover {
	background: var(--lux-accent);
	border-color: var(--lux-accent);
	color: #fff;
	transform: translateY(-2px);
}

.spectrum-text-link {
	color: var(--lux-ink);
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none;
}

.spectrum-text-link span,
.spectrum-section-head > a span,
.spectrum-manifesto > a span {
	display: inline-block;
	margin-left: 0.35rem;
	transition: transform 180ms ease;
}

.spectrum-text-link:hover span,
.spectrum-section-head > a:hover span,
.spectrum-manifesto > a:hover span {
	transform: translate(3px, -3px);
}

.prism-field {
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.prism-field i {
	filter: blur(1px);
	opacity: 0.42;
	position: absolute;
	transform: rotate(-17deg) skewX(-12deg);
}

.prism-field i:nth-child(1) {
	background: linear-gradient(135deg, color-mix(in srgb, var(--lux-accent) 52%, transparent), transparent);
	clip-path: polygon(0 0, 100% 24%, 76% 100%, 18% 74%);
	height: 42vw;
	max-height: 620px;
	right: -7%;
	top: 4%;
	width: 38vw;
}

.prism-field i:nth-child(2) {
	background: linear-gradient(135deg, color-mix(in srgb, var(--lux-violet) 40%, transparent), transparent 76%);
	clip-path: polygon(10% 0, 100% 12%, 72% 100%, 0 72%);
	height: 28vw;
	right: 16%;
	top: 13%;
	width: 29vw;
}

.prism-field i:nth-child(3) {
	background: linear-gradient(135deg, color-mix(in srgb, var(--lux-amber) 42%, transparent), transparent 78%);
	clip-path: polygon(30% 0, 100% 36%, 58% 100%, 0 60%);
	height: 23vw;
	right: 1%;
	top: 42%;
	width: 25vw;
}

.prism-field i:nth-child(4) {
	background: linear-gradient(135deg, color-mix(in srgb, var(--lux-coral) 27%, transparent), transparent);
	clip-path: polygon(0 18%, 92% 0, 100% 78%, 25% 100%);
	height: 17vw;
	left: 28%;
	top: 7%;
	width: 22vw;
}

.hero-feature {
	align-self: end;
	background: color-mix(in srgb, var(--lux-surface) 88%, transparent);
	border: 1px solid var(--lux-line);
	box-shadow: var(--lux-shadow);
	margin-bottom: 4vh;
	position: relative;
	z-index: 3;
}

.hero-feature-media {
	aspect-ratio: 4 / 3;
	background: var(--lux-surface-2);
	display: block;
	overflow: hidden;
}

.hero-feature-media img {
	height: 100%;
	object-fit: cover;
	transition: transform 600ms cubic-bezier(0.2, 0.75, 0.25, 1);
	width: 100%;
}

.hero-feature:hover .hero-feature-media img {
	transform: scale(1.035);
}

.hero-feature-copy {
	padding: clamp(1.2rem, 3vw, 2rem);
}

.hero-feature-copy > p {
	align-items: center;
	color: var(--lux-muted);
	display: flex;
	font-family: ui-monospace, monospace;
	font-size: 0.6rem;
	justify-content: space-between;
	letter-spacing: 0.08em;
	margin: 0 0 1rem;
}

.hero-feature-copy > p span {
	color: var(--lux-accent);
	font-weight: 750;
}

.hero-feature h2 {
	font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
	font-size: clamp(1.65rem, 3vw, 2.5rem);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.25;
	margin: 0;
}

.hero-feature h2 a {
	color: var(--lux-ink);
	text-decoration: none;
}

.hero-feature-copy > div {
	color: var(--lux-muted);
	font-size: 0.9rem;
	margin-top: 0.9rem;
}

.hero-feature-empty {
	align-items: center;
	display: flex;
	min-height: 300px;
	padding: 2rem;
}

.hero-coordinate {
	bottom: 1.5rem;
	color: var(--lux-faint);
	font-family: ui-monospace, monospace;
	font-size: 0.55rem;
	letter-spacing: 0.1em;
	margin: 0;
	position: absolute;
	right: 0;
}

.spectrum-placeholder {
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--lux-accent) 28%, var(--lux-surface-2)), transparent 70%),
		var(--lux-surface-2);
	display: block;
	overflow: hidden;
	position: relative;
}

.spectrum-placeholder i {
	background: color-mix(in srgb, var(--lux-violet) 22%, transparent);
	clip-path: polygon(50% 0, 100% 100%, 0 76%);
	height: 70%;
	position: absolute;
	right: 8%;
	top: 8%;
	transform: rotate(18deg);
	width: 52%;
}

.spectrum-placeholder i:nth-child(2) {
	background: color-mix(in srgb, var(--lux-amber) 24%, transparent);
	left: 13%;
	right: auto;
	top: 27%;
	transform: rotate(-25deg);
}

.spectrum-placeholder i:nth-child(3) {
	background: color-mix(in srgb, var(--lux-coral) 17%, transparent);
	left: 42%;
	top: 54%;
	transform: rotate(48deg);
}

/* Category spectrum */

.category-spectrum {
	border-block: 1px solid var(--lux-line);
	padding-block: 1.2rem;
}

.category-spectrum > p {
	margin: 0 0 1rem;
}

.category-spectrum ul {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.category-spectrum li {
	border-right: 1px solid var(--lux-line);
	min-width: 0;
}

.category-spectrum li:last-child {
	border-right: 0;
}

.category-spectrum a {
	color: var(--lux-ink);
	display: grid;
	gap: 0.25rem;
	min-height: 90px;
	padding: 0.8rem 1rem;
	position: relative;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease;
}

.category-spectrum a::after {
	background: hsl(calc(220 + var(--spectrum-index) * 24) 72% 62%);
	bottom: 0;
	content: "";
	height: 3px;
	left: 1rem;
	position: absolute;
	right: 1rem;
	transform: scaleX(0.12);
	transform-origin: left;
	transition: transform 240ms ease;
}

.category-spectrum a:hover {
	background: var(--lux-surface-2);
}

.category-spectrum a:hover::after {
	transform: scaleX(1);
}

.category-spectrum span,
.category-spectrum small {
	color: var(--lux-muted);
	font-family: ui-monospace, monospace;
	font-size: 0.55rem;
}

.category-spectrum strong {
	font-size: 0.9rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.category-spectrum small {
	align-self: end;
}

/* Contact sheet */

.contact-section {
	padding-block: clamp(5rem, 11vw, 10rem);
	scroll-margin-top: 2rem;
}

.spectrum-section-head {
	align-items: end;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
	margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.spectrum-section-head > div > p {
	margin: 0 0 1rem;
}

.spectrum-section-head h2 {
	font-size: clamp(2.8rem, 6vw, 5.8rem);
	font-weight: 800;
	letter-spacing: -0.075em;
	line-height: 0.95;
	margin: 0;
}

.spectrum-section-head > a {
	color: var(--lux-ink);
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
}

.contact-grid {
	display: grid;
	gap: clamp(1rem, 2.2vw, 2rem);
	grid-template-columns: repeat(12, minmax(0, 1fr));
}

.contact-card {
	--light-x: 50%;
	--light-y: 50%;
	background: var(--lux-surface);
	border: 1px solid var(--lux-line);
	grid-column: span 4;
	min-width: 0;
	overflow: hidden;
	position: relative;
}

.contact-grid--editorial .contact-card:nth-child(1) {
	grid-column: span 7;
}

.contact-grid--editorial .contact-card:nth-child(2) {
	grid-column: span 5;
}

.contact-grid--editorial .contact-card:nth-child(3) {
	grid-column: span 4;
}

.contact-grid--editorial .contact-card:nth-child(4) {
	grid-column: span 8;
}

.contact-grid--editorial .contact-card:nth-child(8) {
	display: grid;
	grid-column: span 8;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.contact-card-light {
	background: radial-gradient(circle 220px at var(--light-x) var(--light-y), color-mix(in srgb, var(--lux-accent) 12%, transparent), transparent 75%);
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transition: opacity 180ms ease;
	z-index: 2;
}

.contact-card:hover .contact-card-light {
	opacity: 1;
}

.contact-card-media {
	aspect-ratio: 16 / 10;
	background: var(--lux-surface-2);
	display: block;
	overflow: hidden;
}

.contact-card:nth-child(1) .contact-card-media,
.contact-card:nth-child(4) .contact-card-media {
	aspect-ratio: 16 / 8.6;
}

.contact-card-media img {
	height: 100%;
	object-fit: cover;
	transition: filter 300ms ease, transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1);
	width: 100%;
}

.contact-card:hover .contact-card-media img {
	filter: saturate(1.08);
	transform: scale(1.025);
}

.contact-card-copy {
	min-height: 235px;
	padding: clamp(1.15rem, 2.5vw, 2rem);
	position: relative;
	z-index: 3;
}

.contact-card-meta {
	align-items: center;
	display: flex;
	gap: 0.75rem;
	margin: 0 0 1.15rem;
}

.contact-card-meta > span {
	color: var(--lux-violet);
}

.contact-card-meta a {
	color: var(--lux-accent);
	text-decoration: none;
}

.contact-card-meta time {
	color: var(--lux-faint);
	margin-left: auto;
}

.contact-card h3 {
	font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
	font-size: clamp(1.5rem, 2.7vw, 2.35rem);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.25;
	margin: 0;
	max-width: 17em;
}

.contact-card h3 a {
	color: var(--lux-ink);
	text-decoration: none;
}

.contact-card h3 a:hover {
	color: var(--lux-accent);
}

.contact-card-excerpt {
	color: var(--lux-muted);
	font-size: 0.9rem;
	line-height: 1.75;
	margin: 1rem 2rem 0 0;
	max-width: 38em;
}

.contact-card-arrow {
	align-items: center;
	border: 1px solid var(--lux-line);
	border-radius: 50%;
	bottom: 1.2rem;
	color: var(--lux-ink);
	display: flex;
	height: 36px;
	justify-content: center;
	position: absolute;
	right: 1.2rem;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
	width: 36px;
}

.contact-card-arrow:hover {
	background: var(--lux-ink);
	color: var(--lux-bg);
	transform: rotate(45deg);
}

.contact-card-is-moment {
	border-color: color-mix(in srgb, var(--lux-amber) 35%, var(--lux-line));
}

/* Moments film */

.moment-section {
	background: #17254a;
	color: #f1f3ef;
	margin-inline: calc(50% - 50vw - 56px);
	overflow: hidden;
	padding: clamp(4rem, 9vw, 8rem) clamp(1.4rem, 5vw, 5rem);
}

.spectrum-section-head-light > div > p,
.spectrum-section-head-light > a {
	color: #9eb4ff;
}

.moment-strip {
	display: flex;
	gap: 1rem;
	margin-right: clamp(-5rem, -5vw, -1.4rem);
	overflow-x: auto;
	padding: 1rem clamp(1.4rem, 5vw, 5rem) 1.8rem 0;
	scroll-snap-type: x mandatory;
	scrollbar-color: #758bd1 transparent;
}

.moment-card {
	background: #eef0e9;
	border-left: 7px solid #f0a84f;
	color: #222626;
	flex: 0 0 min(330px, 84vw);
	min-height: 330px;
	padding: 2.2rem 1.6rem 1.5rem;
	position: relative;
	scroll-snap-align: start;
}

.moment-perforation {
	display: flex;
	gap: 1rem;
	left: 1rem;
	position: absolute;
	right: 1rem;
	top: 0.55rem;
}

.moment-perforation i {
	background: #17254a;
	height: 6px;
	width: 15px;
}

.moment-date {
	color: #3559c7;
	margin: 0 0 2.2rem;
}

.moment-date time {
	align-items: center;
	display: flex;
	gap: 0.7rem;
}

.moment-date strong {
	font-family: Georgia, serif;
	font-size: 3.6rem;
	font-weight: 500;
	letter-spacing: -0.09em;
	line-height: 0.8;
}

.moment-date span {
	font-size: 0.58rem;
	line-height: 1.45;
}

.moment-card h3 {
	font-family: Georgia, "Noto Serif SC", serif;
	font-size: 1.55rem;
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.3;
	margin: 0;
}

.moment-card h3 a {
	color: #222626;
	text-decoration: none;
}

.moment-card > p:not(.moment-date) {
	color: #626968;
	font-size: 0.88rem;
	line-height: 1.75;
}

.moment-card footer {
	align-items: center;
	bottom: 1.4rem;
	display: flex;
	font-size: 0.68rem;
	justify-content: space-between;
	left: 1.6rem;
	position: absolute;
	right: 1.6rem;
}

.moment-card footer a {
	color: #495252;
	text-decoration: none;
}

.moment-empty {
	color: #b9c3de;
}

/* Manifesto */

.spectrum-manifesto {
	border-bottom: 1px solid var(--lux-line);
	padding-block: clamp(5rem, 12vw, 11rem);
}

.spectrum-manifesto > p {
	margin: 0 0 2rem;
}

.spectrum-manifesto blockquote {
	border: 0;
	font-size: clamp(3rem, 7.6vw, 7.5rem);
	font-weight: 820;
	letter-spacing: -0.08em;
	line-height: 1;
	margin: 0;
	max-width: 10.5em;
	padding: 0;
}

.spectrum-manifesto > a {
	color: var(--lux-ink);
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	margin-top: 3rem;
	text-decoration: none;
}

.homepage-extra {
	margin-inline: auto;
	padding-block: 5rem;
}

/* Archives */

.archive-spectrum-page {
	padding-bottom: clamp(5rem, 10vw, 9rem);
	padding-top: clamp(4rem, 9vw, 8rem);
}

.spectrum-archive-hero {
	border-bottom: 1px solid var(--lux-line-strong);
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
	margin-bottom: clamp(4rem, 8vw, 7rem);
	padding-bottom: clamp(2.5rem, 6vw, 5rem);
	position: relative;
}

.spectrum-archive-hero > p {
	grid-column: 1 / -1;
	margin: 0;
}

.spectrum-archive-hero h1 {
	font-size: clamp(3.4rem, 8vw, 8rem);
	font-weight: 820;
	letter-spacing: -0.08em;
	line-height: 0.95;
	margin: 0;
	max-width: 9em;
}

.spectrum-archive-hero > div {
	align-self: end;
	border-left: 1px solid var(--lux-line);
	color: var(--lux-muted);
	padding-left: 1.5rem;
}

.spectrum-archive-hero > div p {
	margin: 0 0 1rem;
}

.spectrum-archive-hero > div > p > p {
	margin: 0;
}

.spectrum-archive-hero > div a {
	font-size: 0.72rem;
	font-weight: 700;
	text-decoration: none;
}

.archive-contact-grid .contact-card:nth-child(4n + 1) {
	grid-column: span 7;
}

.archive-contact-grid .contact-card:nth-child(4n + 2) {
	grid-column: span 5;
}

.archive-contact-grid .contact-card:nth-child(4n + 3),
.archive-contact-grid .contact-card:nth-child(4n + 4) {
	grid-column: span 6;
}

.moment-film-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.moment-film-grid .moment-card {
	background: var(--lux-surface);
	border: 1px solid var(--lux-line);
	border-top: 7px solid var(--lux-amber);
	color: var(--lux-ink);
	min-height: 350px;
}

.moment-film-grid .moment-perforation i {
	background: var(--lux-bg);
	border: 1px solid var(--lux-line);
}

.moment-film-grid .moment-card h3 a {
	color: var(--lux-ink);
}

.moment-film-grid .moment-card > p:not(.moment-date),
.moment-film-grid .moment-card footer a {
	color: var(--lux-muted);
}

.search-spectrum-page .spectrum-archive-hero .search-form {
	border-bottom: 1px solid var(--lux-line-strong);
}

.search-spectrum-page .search-field {
	background: transparent;
	border: 0;
	border-radius: 0;
	outline: 0;
}

/* Pagination */

.pagination {
	margin-top: clamp(4rem, 8vw, 7rem);
}

.pagination .nav-links,
.page-numbers {
	align-items: center;
	display: flex;
}

.pagination .nav-links {
	flex-wrap: wrap;
	gap: 0.45rem;
	justify-content: center;
}

.page-numbers {
	border: 1px solid var(--lux-line);
	border-radius: 50%;
	color: var(--lux-muted);
	font-family: ui-monospace, monospace;
	font-size: 0.66rem;
	height: 38px;
	justify-content: center;
	min-width: 38px;
	padding-inline: 0.65rem;
	text-decoration: none;
}

.page-numbers.current,
a.page-numbers:hover {
	background: var(--lux-ink);
	border-color: var(--lux-ink);
	color: var(--lux-bg);
}

.page-numbers.prev,
.page-numbers.next {
	border-radius: 999px;
	width: auto;
}

/* Reading */

.reading-progress {
	background: color-mix(in srgb, var(--lux-accent) 12%, transparent);
	height: 3px;
	left: var(--lux-rail);
	position: fixed;
	right: 0;
	top: 0;
	z-index: 250;
}

.admin-bar .reading-progress {
	top: 32px;
}

.reading-progress i {
	background: linear-gradient(90deg, var(--lux-accent), var(--lux-violet), var(--lux-amber));
	display: block;
	height: 100%;
	transform: scaleX(var(--reading-progress, 0));
	transform-origin: left;
	width: 100%;
}

.reading-page {
	padding-bottom: 5rem;
	padding-top: clamp(4rem, 9vw, 8rem);
}

.reading-header {
	border-bottom: 1px solid var(--lux-line-strong);
	margin-inline: auto;
	max-width: 1180px;
	padding-bottom: clamp(3rem, 7vw, 6rem);
}

.reading-header-code {
	align-items: center;
	display: flex;
	gap: 0.8rem;
	margin: 0 0 1.7rem;
}

.reading-header-code i {
	background: var(--lux-line-strong);
	height: 1px;
	width: 3rem;
}

.reading-header-code time,
.reading-header-code span:last-child {
	color: var(--lux-muted);
}

.reading-header h1 {
	font-size: clamp(3.2rem, 8vw, 8rem);
	font-weight: 820;
	letter-spacing: -0.085em;
	line-height: 0.98;
	margin: 0;
	max-width: 10em;
	text-wrap: balance;
}

.reading-deck {
	color: var(--lux-muted);
	font-family: Georgia, "Noto Serif SC", serif;
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	line-height: 1.7;
	margin: 2rem 0 0;
	max-width: 44rem;
}

.reading-meta {
	align-items: center;
	color: var(--lux-muted);
	display: flex;
	flex-wrap: wrap;
	font-family: ui-monospace, monospace;
	font-size: 0.62rem;
	gap: 0.6rem 1.2rem;
	letter-spacing: 0.05em;
	margin-top: 2rem;
}

.reading-meta a {
	color: inherit;
	text-decoration: none;
}

.post-meta {
	display: contents;
}

.reading-cover {
	margin: clamp(3rem, 7vw, 6rem) auto;
	max-width: 1260px;
}

.reading-cover img {
	max-height: 780px;
	object-fit: cover;
	width: 100%;
}

.reading-layout {
	display: grid;
	gap: clamp(2rem, 6vw, 6rem);
	grid-template-columns: minmax(0, var(--lux-reading)) minmax(170px, 230px);
	justify-content: center;
	margin-top: clamp(3rem, 7vw, 6rem);
}

.entry-content {
	color: color-mix(in srgb, var(--lux-ink) 92%, var(--lux-muted));
	font-family: Georgia, "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
	font-size: clamp(1.08rem, 1.55vw, 1.22rem);
	line-height: 1.95;
	min-width: 0;
}

.entry-content > * {
	margin-block: 0 1.55em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
	letter-spacing: -0.045em;
	line-height: 1.2;
	margin-bottom: 0.7em;
	margin-top: 2em;
	scroll-margin-top: 2rem;
}

.entry-content h2 {
	font-size: clamp(2rem, 4vw, 3rem);
}

.entry-content h3 {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.entry-content a:not(.wp-block-button__link) {
	color: var(--lux-accent-dark);
	text-decoration-color: color-mix(in srgb, var(--lux-accent) 40%, transparent);
}

.entry-content blockquote {
	background: linear-gradient(90deg, color-mix(in srgb, var(--lux-violet) 10%, transparent), transparent);
	border: 0;
	border-left: 4px solid var(--lux-violet);
	font-size: 1.2em;
	margin-inline: 0;
	padding: 1.2rem 1.5rem;
}

.entry-content figure {
	margin-inline: min(-7vw, -5rem);
}

.entry-content figcaption,
.wp-caption-text {
	color: var(--lux-muted);
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 0.72rem;
	margin-top: 0.6rem;
	text-align: center;
}

.entry-content hr {
	border: 0;
	border-top: 1px solid var(--lux-line-strong);
	margin-block: 3rem;
}

.entry-content table {
	border-collapse: collapse;
	display: block;
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 0.88rem;
	overflow-x: auto;
	width: 100%;
}

.entry-content th,
.entry-content td {
	border-bottom: 1px solid var(--lux-line);
	padding: 0.75rem;
	text-align: left;
}

.entry-content th {
	background: var(--lux-surface-2);
}

.entry-content pre,
.entry-content .wp-block-code {
	background: var(--lux-code) !important;
	border: 1px solid color-mix(in srgb, var(--lux-code-ink) 12%, transparent);
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(10, 14, 20, 0.2);
	color: var(--lux-code-ink) !important;
	font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
	font-size: 0.86rem;
	line-height: 1.75;
	overflow-x: auto;
	padding: 1.25rem 1.4rem;
	tab-size: 4;
}

.entry-content pre code,
.entry-content .wp-block-code code {
	background: transparent !important;
	color: inherit !important;
	font-family: inherit;
	font-size: inherit;
	padding: 0 !important;
	text-shadow: none !important;
	white-space: pre;
}

.entry-content :not(pre) > code {
	background: color-mix(in srgb, var(--lux-accent) 10%, var(--lux-surface));
	border: 1px solid color-mix(in srgb, var(--lux-accent) 18%, transparent);
	border-radius: 5px;
	color: var(--lux-accent-dark);
	font-family: ui-monospace, monospace;
	font-size: 0.86em;
	padding: 0.12em 0.38em;
}

.entry-content pre .token.comment,
.entry-content pre .hljs-comment {
	color: #8693a0 !important;
}

.entry-content pre .token.keyword,
.entry-content pre .hljs-keyword {
	color: #c797ff !important;
}

.entry-content pre .token.string,
.entry-content pre .hljs-string {
	color: #a8d58f !important;
}

.entry-content pre .token.function,
.entry-content pre .hljs-title {
	color: #79c4f6 !important;
}

.entry-content pre .token.number,
.entry-content pre .hljs-number {
	color: #f4ad76 !important;
}

.reading-toc {
	align-self: start;
	border-left: 1px solid var(--lux-line);
	padding-left: 1.2rem;
	position: sticky;
	top: 2rem;
}

.reading-toc > p {
	margin: 0 0 1rem;
}

.reading-toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.reading-toc li {
	margin-bottom: 0.55rem;
}

.reading-toc li.h3 {
	padding-left: 0.7rem;
}

.reading-toc a {
	color: var(--lux-muted);
	display: block;
	font-size: 0.72rem;
	line-height: 1.45;
	text-decoration: none;
}

.reading-toc a:hover {
	color: var(--lux-accent);
}

.reading-footer {
	border-top: 1px solid var(--lux-line);
	margin: 4rem auto 0;
	max-width: var(--lux-reading);
	padding-top: 1.5rem;
}

.tag-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tag-links a {
	border: 1px solid var(--lux-line);
	border-radius: 999px;
	font-size: 0.67rem;
	padding: 0.35rem 0.75rem;
	text-decoration: none;
}

.static-page .page-entry-content {
	margin: clamp(3rem, 7vw, 6rem) auto 0;
	max-width: var(--lux-reading);
}

.post-navigation {
	margin: 0 auto 5rem;
	max-width: 1180px;
	padding-inline: clamp(1.4rem, 4vw, 4.5rem);
}

.post-navigation .nav-links {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr 1fr;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	background: var(--lux-surface);
	border: 1px solid var(--lux-line);
	min-width: 0;
	padding: 1.4rem;
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation a {
	color: var(--lux-ink);
	text-decoration: none;
}

.nav-subtitle {
	color: var(--lux-accent);
	display: block;
	font-family: ui-monospace, monospace;
	font-size: 0.58rem;
	letter-spacing: 0.12em;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
}

.nav-title {
	display: block;
	font-family: Georgia, "Noto Serif SC", serif;
	font-size: 1.1rem;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Comments */

.comments-area {
	border-top: 1px solid var(--lux-line-strong);
	margin: 0 auto;
	max-width: var(--lux-reading);
	padding: 4rem 0 6rem;
}

.comments-title,
.comment-reply-title {
	font-size: clamp(2rem, 4vw, 3rem);
	letter-spacing: -0.05em;
	margin-bottom: 2rem;
}

.comment-list,
.comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	border-left: 1px solid var(--lux-line);
	margin-left: 1.2rem;
	padding-left: 1rem;
}

.comment-body {
	border-top: 1px solid var(--lux-line);
	padding-block: 1.4rem;
}

.comment-author {
	align-items: center;
	display: flex;
	gap: 0.7rem;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-meta {
	color: var(--lux-muted);
	font-size: 0.68rem;
}

.comment-content {
	margin-left: 3.2rem;
}

.comment-reply-link {
	font-size: 0.65rem;
	font-weight: 700;
}

.comment-form {
	background: var(--lux-surface);
	border: 1px solid var(--lux-line);
	padding: clamp(1.2rem, 4vw, 2rem);
}

.comment-form label {
	color: var(--lux-muted);
	display: block;
	font-family: ui-monospace, monospace;
	font-size: 0.6rem;
	letter-spacing: 0.08em;
	margin-bottom: 0.35rem;
	text-transform: uppercase;
}

/* Empty and 404 */

.empty-state {
	border: 1px solid var(--lux-line);
	margin-block: 3rem;
	padding: clamp(2rem, 6vw, 5rem);
	text-align: center;
}

.empty-state h2,
.error-404 h1 {
	font-size: clamp(2.6rem, 7vw, 6rem);
	font-weight: 820;
	letter-spacing: -0.075em;
	line-height: 1;
}

.error-404 {
	margin: clamp(5rem, 10vw, 9rem) auto;
	max-width: 1100px;
}

.section-kicker {
	color: var(--lux-accent);
	font-family: ui-monospace, monospace;
	font-size: 0.63rem;
	font-weight: 700;
	letter-spacing: 0.16em;
}

.hero-actions-centered {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

.button {
	align-items: center;
	background: var(--lux-ink);
	border-radius: 999px;
	color: var(--lux-bg);
	display: inline-flex;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.8rem 1.2rem;
	text-decoration: none;
}

/* Footer */

.spectrum-footer {
	background: var(--lux-ink);
	color: color-mix(in srgb, var(--lux-bg) 72%, transparent);
	padding: clamp(4rem, 9vw, 8rem) clamp(1.4rem, 4vw, 4.5rem) 2rem;
}

.spectrum-footer-inner {
	margin-inline: auto;
	max-width: var(--lux-page);
}

.spectrum-footer-lead {
	border-bottom: 1px solid color-mix(in srgb, var(--lux-bg) 16%, transparent);
	padding-bottom: clamp(3rem, 7vw, 6rem);
}

.spectrum-footer-lead > p {
	color: color-mix(in srgb, var(--lux-accent) 72%, #fff);
	margin: 0 0 1.5rem;
}

.spectrum-footer-lead h2 {
	color: var(--lux-bg);
	font-size: clamp(2.6rem, 7vw, 6.5rem);
	font-weight: 800;
	letter-spacing: -0.075em;
	line-height: 1;
	margin: 0;
	max-width: 10em;
}

html[data-theme="dark"] .spectrum-footer {
	background: #080a0e;
}

html[data-theme="dark"] .spectrum-footer-lead h2 {
	color: #eef0ea;
}

.spectrum-footer-widgets {
	border-bottom: 1px solid color-mix(in srgb, var(--lux-bg) 16%, transparent);
	display: grid;
	gap: 3rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding-block: 2.5rem;
}

.spectrum-footer .widget {
	margin: 0;
}

.spectrum-footer .widget-title {
	color: var(--lux-bg);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
}

.spectrum-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.spectrum-footer a {
	color: inherit;
	text-decoration: none;
}

.spectrum-footer-bottom {
	align-items: center;
	display: grid;
	font-size: 0.7rem;
	gap: 2rem;
	grid-template-columns: 1fr auto auto;
	padding-top: 2rem;
}

.spectrum-footer-bottom > div {
	display: flex;
	gap: 1rem;
}

.spectrum-footer-bottom p {
	display: flex;
	gap: 1rem;
	margin: 0;
}

.footer-navigation ul {
	display: flex;
	gap: 1rem;
}

/* WordPress alignments */

.alignleft {
	float: left;
	margin: 0 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 1.5rem;
}

.aligncenter {
	margin-inline: auto;
}

.alignwide {
	margin-left: min(-8vw, -6rem);
	margin-right: min(-8vw, -6rem);
	max-width: none;
}

.alignfull {
	margin-left: calc(50% - 50vw + 56px);
	margin-right: calc(50% - 50vw + 56px);
	max-width: calc(100vw - var(--lux-rail));
	width: calc(100vw - var(--lux-rail));
}

.wp-caption,
.gallery-caption {
	max-width: 100%;
}

.sticky {
	position: relative;
}

.bypostauthor > .comment-body {
	border-left: 3px solid var(--lux-accent);
	padding-left: 1rem;
}

/* Theme exposure transition */

body,
.spectrum-rail,
.contact-card,
.category-spectrum a,
.reading-header,
.entry-content blockquote,
.comment-form {
	transition: background-color 360ms ease, border-color 360ms ease, color 280ms ease, box-shadow 360ms ease;
}

::view-transition-old(root),
::view-transition-new(root) {
	animation: none;
	mix-blend-mode: normal;
}

::view-transition-old(root) {
	z-index: 1;
}

::view-transition-new(root) {
	z-index: 9999;
}

.lux-theme-switching,
.lux-theme-switching *,
.lux-theme-switching *::before,
.lux-theme-switching *::after {
	transition: none !important;
}

.lux-theme-switching {
	pointer-events: none;
}

/* Responsive */

@media (max-width: 1180px) {
	.category-spectrum ul {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.category-spectrum li:nth-child(3) {
		border-right: 0;
	}

	.category-spectrum li:nth-child(-n + 3) {
		border-bottom: 1px solid var(--lux-line);
	}

	.contact-card,
	.contact-grid--editorial .contact-card:nth-child(n),
	.archive-contact-grid .contact-card:nth-child(n) {
		grid-column: span 6;
	}

	.contact-grid--editorial .contact-card:nth-child(1),
	.contact-grid--editorial .contact-card:nth-child(4) {
		grid-column: span 12;
	}

	.moment-film-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	.lightfield-hero {
		grid-template-columns: 1fr 340px;
	}

	.lightfield-copy h1 {
		font-size: clamp(3.8rem, 9vw, 6.3rem);
	}

	.reading-layout {
		grid-template-columns: minmax(0, var(--lux-reading));
	}

	.reading-toc {
		border-bottom: 1px solid var(--lux-line);
		border-left: 0;
		border-top: 1px solid var(--lux-line);
		order: -1;
		padding: 1rem 0;
		position: static;
	}

	.reading-toc ol {
		columns: 2;
	}
}

@media (max-width: 860px) {
	:root {
		--lux-rail: 0px;
	}

	body {
		padding-left: 0;
		padding-top: 72px;
	}

	.screen-reader-text:focus {
		left: 1rem;
		top: 5rem;
	}

	.spectrum-rail {
		border-bottom: 1px solid var(--lux-line);
		border-right: 0;
		bottom: auto;
		height: 72px;
		right: 0;
		width: auto;
	}

	.admin-bar .spectrum-rail {
		top: 32px;
	}

	.spectrum-rail-inner {
		flex-direction: row;
		gap: 0.8rem;
		padding: 0.65rem 1rem;
	}

	.site-branding {
		flex-direction: row;
	}

	.spectrum-monogram,
	.custom-logo {
		height: 44px;
		width: 44px;
	}

	.site-title {
		font-size: 0.8rem;
		max-width: 12rem;
		writing-mode: horizontal-tb;
	}

	.main-navigation {
		display: block;
		margin: 0;
	}

	.main-navigation .primary-menu-container,
	.main-navigation > ul {
		background:
			linear-gradient(135deg, color-mix(in srgb, var(--lux-accent) 12%, transparent), transparent 46%),
			var(--lux-bg);
		inset: 0;
		opacity: 0;
		overflow-y: auto;
		padding: 7rem clamp(1.4rem, 8vw, 5rem) 3rem;
		pointer-events: none;
		position: fixed;
		transform: translateY(-12px);
		transition: opacity 200ms ease, transform 240ms ease, visibility 200ms ease;
		visibility: hidden;
		z-index: 2;
	}

	.menu-open .main-navigation .primary-menu-container,
	.menu-open .main-navigation > ul {
		opacity: 1;
		pointer-events: auto;
		transform: none;
		visibility: visible;
	}

	.main-navigation li {
		border-bottom: 1px solid var(--lux-line);
	}

	.main-navigation a {
		align-items: baseline;
		border-radius: 0;
		flex-direction: row;
		font-size: clamp(1.7rem, 7vw, 3rem);
		gap: 1rem;
		margin: 0;
		padding: 0.65rem 0;
	}

	.main-navigation a::before {
		font-size: 0.62rem;
	}

	.main-navigation a::after {
		display: none;
	}

	.main-navigation .sub-menu {
		background: transparent;
		border: 0;
		box-shadow: none;
		left: auto;
		margin-left: 2rem;
		min-width: 0;
		opacity: 1;
		padding: 0;
		pointer-events: auto;
		position: static;
		transform: none;
		visibility: visible;
	}

	.main-navigation .sub-menu a {
		font-size: 1.1rem;
	}

	.rail-tools {
		display: flex;
		margin-left: auto;
		width: auto;
	}

	.rail-tool {
		height: 42px;
		min-height: 42px;
		width: 42px;
	}

	.rail-tool > span:last-child {
		display: none;
	}

	.menu-toggle {
		display: block;
	}

	.reading-progress {
		left: 0;
		top: 72px;
	}

	.admin-bar .reading-progress {
		top: 104px;
	}

	.moment-section {
		margin-inline: calc(50% - 50vw);
	}

	.alignfull {
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		max-width: 100vw;
		width: 100vw;
	}
}

@media (max-width: 720px) {
	.lightfield-hero {
		display: flex;
		flex-direction: column;
		min-height: auto;
		padding-block: 4.5rem 3rem;
	}

	.lightfield-copy h1 {
		font-size: clamp(3.6rem, 16vw, 6rem);
	}

	.hero-feature {
		margin: 2rem 0 0;
		width: min(100%, 520px);
	}

	.prism-field i:nth-child(1) {
		height: 75vw;
		right: -25%;
		width: 72vw;
	}

	.prism-field i:nth-child(2) {
		height: 55vw;
		right: 5%;
		top: 24%;
		width: 58vw;
	}

	.hero-coordinate {
		display: none;
	}

	.spectrum-section-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 1rem;
	}

	.contact-card,
	.contact-grid--editorial .contact-card:nth-child(n),
	.archive-contact-grid .contact-card:nth-child(n) {
		grid-column: span 12;
	}

	.contact-grid--editorial .contact-card:nth-child(8) {
		display: block;
	}

	.category-spectrum ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.category-spectrum li:nth-child(n) {
		border-bottom: 1px solid var(--lux-line);
		border-right: 1px solid var(--lux-line);
	}

	.category-spectrum li:nth-child(2n) {
		border-right: 0;
	}

	.spectrum-archive-hero {
		grid-template-columns: 1fr;
	}

	.spectrum-archive-hero > div {
		border-left: 0;
		border-top: 1px solid var(--lux-line);
		padding-left: 0;
		padding-top: 1.2rem;
	}

	.moment-film-grid {
		grid-template-columns: 1fr;
	}

	.reading-header h1 {
		font-size: clamp(3.2rem, 14vw, 5.7rem);
	}

	.entry-content figure,
	.alignwide {
		margin-inline: 0;
	}

	.reading-toc ol {
		columns: 1;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		text-align: left;
	}

	.comments-area {
		padding-inline: 1.4rem;
	}

	.spectrum-footer-bottom {
		align-items: flex-start;
		grid-template-columns: 1fr;
	}

	.spectrum-footer-widgets {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.site-title {
		max-width: 8rem;
	}

	.spectrum-rail-inner {
		gap: 0.45rem;
		padding-inline: 0.7rem;
	}

	.spectrum-monogram,
	.custom-logo {
		height: 40px;
		width: 40px;
	}

	.rail-tool,
	.menu-toggle {
		height: 38px;
		min-height: 38px;
		width: 38px;
	}

	.lightfield-copy h1 {
		font-size: clamp(3.15rem, 16vw, 4.8rem);
	}

	.category-spectrum a {
		padding-inline: 0.6rem;
	}

	.spectrum-manifesto blockquote {
		font-size: clamp(2.6rem, 13vw, 4.5rem);
	}

	.moment-card {
		flex-basis: 82vw;
	}

	.spectrum-search-panel {
		border-radius: 16px;
		top: 8vh;
	}

	.spectrum-search-panel > header {
		gap: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
