/*
Theme Name: ultramin
Theme URI: https://wordpress.org/
Author: Rohan Krishna
Author URI: https://wordpress.org/
Description: A light, airy personal magazine composed on the golden ratio and the rule of thirds. Built for writing on manifestation, life lessons, tech, fiction, and notes.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ultramin
Tags: blog, one-column, custom-logo, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

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

:root {
	--canvas: oklch(0.97 0.012 85);
	--canvas-deep: oklch(0.94 0.016 85);
	--ink: oklch(0.18 0.022 70);
	--muted: oklch(0.42 0.02 70);
	--hairline: oklch(0.22 0.02 70 / 0.12);
	--accent: oklch(0.52 0.08 215);
	--accent-soft: oklch(0.52 0.08 215 / 0.14);
	--wash-manifestation: oklch(0.94 0.03 85);
	--wash-lessons: oklch(0.94 0.018 70);
	--wash-tech: oklch(0.94 0.025 215);
	--wash-stories: oklch(0.94 0.028 20);
	--wash-notes: oklch(0.94 0.01 250);
	--highlight: oklch(1 0.01 85 / 0.55);

	--font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
	--font-body: Newsreader, ui-serif, Georgia, serif;
	--font-mono: "IBM Plex Mono", ui-monospace, monospace;

	--text-xs: 0.75rem;
	--text-s: 0.875rem;
	--text-m: 1.125rem;
	--text-l: clamp(1.25rem, 1.1rem + 0.6vw, 1.618rem);
	--text-xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.618rem);
	--text-xxl: clamp(2.5rem, 1rem + 6vw, 5.5rem);
	--text-hero: clamp(3.2rem, 4vw + 2rem, 8.5rem);

	--space-2xs: 5px;
	--space-xs: 8px;
	--space-s: 13px;
	--space-m: 21px;
	--space-l: 34px;
	--space-xl: 55px;
	--space-xxl: 89px;
	--space-xxxl: 144px;

	--measure: 65ch;
	--page: 72rem;
	--radius-none: 0;
	--radius-hair: 2px;
	--radius-media: 8px;
	--radius-pill: 999px;

	--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
	--ease-in: cubic-bezier(0.7, 0, 0.84, 0);
	--dur-press: 120ms;
	--dur-ui: 240ms;
	--dur-enter: 560ms;

	--header-h: 4.5rem;
}

/* -------------------------------------------------------------------------- */
/* Reset                                                                       */
/* -------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	background: var(--canvas);
	overflow-x: clip;
	max-width: 100%;
}

body {
	margin: 0;
	min-height: 100dvh;
	max-width: 100%;
	overflow-x: clip;
	background: var(--canvas);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--text-m);
	font-optical-sizing: auto;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	touch-action: manipulation;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 80;
	pointer-events: none;
	opacity: 0.035;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	mix-blend-mode: multiply;
}

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

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
	margin: 0;
}

ul, ol {
	padding: 0;
	list-style: none;
}

::selection {
	background: var(--accent-soft);
	color: var(--ink);
}

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

/* -------------------------------------------------------------------------- */
/* Utilities                                                                   */
/* -------------------------------------------------------------------------- */

.skip-link {
	position: absolute;
	left: var(--space-m);
	top: -8rem;
	z-index: 100;
	padding: var(--space-xs) var(--space-s);
	background: var(--ink);
	color: var(--canvas);
	border-radius: var(--radius-hair);
}

.skip-link:focus {
	top: var(--space-s);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

.mono {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

.kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.15em 0;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

.sep {
	opacity: 0.55;
}

.room:nth-child(5n+1),
.stack-item:nth-child(5n+1) { --wash: var(--wash-manifestation); }
.room:nth-child(5n+2),
.stack-item:nth-child(5n+2) { --wash: var(--wash-lessons); }
.room:nth-child(5n+3),
.stack-item:nth-child(5n+3) { --wash: var(--wash-tech); }
.room:nth-child(5n+4),
.stack-item:nth-child(5n+4) { --wash: var(--wash-stories); }
.room:nth-child(5n+5),
.stack-item:nth-child(5n+5) { --wash: var(--wash-notes); }

.cat-wash--manifestation,
.room.cat-wash--manifestation,
.stack-item.cat-wash--manifestation { --wash: var(--wash-manifestation); }
.cat-wash--life-lessons,
.room.cat-wash--life-lessons,
.stack-item.cat-wash--life-lessons { --wash: var(--wash-lessons); }
.cat-wash--tech,
.room.cat-wash--tech,
.stack-item.cat-wash--tech { --wash: var(--wash-tech); }
.cat-wash--stories,
.room.cat-wash--stories,
.stack-item.cat-wash--stories { --wash: var(--wash-stories); }
.cat-wash--notes,
.room.cat-wash--notes,
.stack-item.cat-wash--notes { --wash: var(--wash-notes); }

/* -------------------------------------------------------------------------- */
/* Type                                                                        */
/* -------------------------------------------------------------------------- */

h1, h2, h3, .wordmark__text, .hero__mark, .room__name, .featured__title, .entry-title, .archive-header__title, .lost__title {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.022em;
	text-wrap: balance;
}

.entry-content p,
.entry-content li {
	text-wrap: pretty;
}

.site-main {
	width: min(100% - var(--space-l), var(--page));
	margin-inline: auto;
	padding-block: var(--space-xl) var(--space-xxl);
}

.is-magazine .site-main {
	padding-top: var(--space-m);
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	height: var(--header-h);
	background: color-mix(in oklch, var(--canvas) 86%, transparent);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--dur-ui) var(--ease-out-quart), height var(--dur-ui) var(--ease-out-quart);
}

.site-header.is-condensed {
	border-bottom-color: var(--hairline);
	height: 3.6rem;
}

.site-header__inner {
	width: min(100% - var(--space-l), var(--page));
	margin-inline: auto;
	height: 100%;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: var(--space-m);
}

.wordmark {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	max-width: 100%;
	text-decoration: none;
}

.wordmark__text {
	font-size: clamp(0.95rem, 2.4vw, 1.15rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	overflow-wrap: anywhere;
	word-break: break-word;
	line-height: 1.1;
}

.wordmark__img {
	height: 1.4rem;
	width: auto;
}

.home .site-header__wordmark {
	opacity: 0;
	transform: translateY(4px);
	pointer-events: none;
	transition: opacity var(--dur-ui) var(--ease-out-quart), transform var(--dur-ui) var(--ease-out-quart);
}

.home .site-header.is-condensed .site-header__wordmark {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.primary-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--space-xs) var(--space-m);
}

.primary-nav a {
	position: relative;
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.primary-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -0.18em;
	width: 100%;
	height: 1px;
	background: var(--ink);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--dur-ui) var(--ease-out-expo);
}

@media (hover: hover) {
	.primary-nav a:hover::after,
	.primary-nav .is-active a::after,
	.primary-nav .current-menu-item a::after {
		transform: scaleX(1);
	}
}

.primary-nav .is-active a::after,
.primary-nav .current-menu-item a::after {
	transform: scaleX(1);
}

.site-header__tools {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-s);
}

.nav-toggle {
	display: none;
	appearance: none;
	background: transparent;
	border: 0;
	padding: 0.4rem 0;
	min-height: 44px;
	cursor: pointer;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.nav-toggle[aria-expanded="false"] .nav-toggle__label--close,
.nav-toggle[aria-expanded="true"] .nav-toggle__label--open {
	display: none;
}

.search-toggle {
	appearance: none;
	background: transparent;
	border: 0;
	padding: 0.4rem 0;
	min-height: 44px;
	cursor: pointer;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.search-panel {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	width: min(22rem, calc(100vw - var(--space-l)));
	padding: var(--space-s);
	background: var(--canvas);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-hair);
	box-shadow: inset 0 1px 0 var(--highlight);
	z-index: 5;
}

.search-panel[hidden] {
	display: none;
}

/* -------------------------------------------------------------------------- */
/* Buttons & forms                                                             */
/* -------------------------------------------------------------------------- */

.btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.45rem 0.95rem;
	border: 0;
	border-radius: var(--radius-hair);
	background: var(--ink);
	color: var(--canvas);
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	cursor: pointer;
	box-shadow: inset 0 1px 0 var(--highlight);
	transition: transform var(--dur-press) var(--ease-out-quart), box-shadow var(--dur-press) var(--ease-out-quart);
}

.btn:active {
	transform: scale(0.97);
	box-shadow: inset 0 1px 2px oklch(0.22 0.02 70 / 0.28);
}

.btn--primary {
	background: var(--accent);
}

.search-form {
	display: flex;
	gap: var(--space-xs);
	align-items: stretch;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	padding: 0.4rem 0;
	border: 0;
	border-bottom: 1px solid var(--ink);
	border-radius: 0;
	background: transparent;
}

.search-form__input:focus {
	outline: none;
	border-bottom-color: var(--accent);
}

.search-form__submit {
	flex: none;
}

.text-link {
	font-family: var(--font-display);
	font-weight: 600;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 1px;
	transition: background-size var(--dur-ui) var(--ease-out-expo);
}

@media (hover: hover) {
	.text-link:hover {
		background-size: 100% 1px;
	}
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                        */
/* -------------------------------------------------------------------------- */

.hero {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--space-l);
	align-items: end;
	min-height: 38vh;
	min-width: 0;
	padding-block: var(--space-xl) var(--space-xxl);
	border-bottom: 1px solid var(--hairline);
	container-type: inline-size;
}

.hero__mark {
	font-size: clamp(1.65rem, 8vw, 8.5rem);
	font-size: clamp(1.65rem, 12cqi, 8.5rem);
	font-weight: 800;
	line-height: 0.88;
	letter-spacing: -0.05em;
	color: var(--ink);
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.hero__manifesto {
	max-width: 28ch;
	font-size: var(--text-l);
	line-height: 1.35;
	color: var(--muted);
	text-wrap: balance;
}

/* -------------------------------------------------------------------------- */
/* Featured thirds                                                             */
/* -------------------------------------------------------------------------- */

.featured {
	display: grid;
	grid-template-columns: 1.618fr 1fr;
	gap: var(--space-l);
	padding-block: var(--space-xxl);
}

.featured__media .media {
	display: block;
	overflow: hidden;
	border-radius: var(--radius-media);
	aspect-ratio: 1.618 / 1;
	outline: 1px solid oklch(0.22 0.02 70 / 0.1);
	outline-offset: -1px;
}

.media--photo .media__img,
.media--glyph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 14s var(--ease-out-quart);
}

.media--glyph {
	display: grid;
	place-items: center;
	background: var(--wash, var(--canvas-deep));
	text-decoration: none;
}

.media__glyph {
	font-family: var(--font-display);
	font-size: clamp(5rem, 14vw, 11rem);
	font-weight: 800;
	letter-spacing: -0.06em;
	line-height: 0.75;
	color: oklch(0.18 0.022 70 / 0.16);
	transition: transform 14s var(--ease-out-quart);
}

@media (hover: hover) {
	.featured__main:hover .media__img,
	.featured__main:hover .media__glyph {
		transform: scale(1.03);
	}
}

.featured__body {
	padding-top: var(--space-m);
	display: grid;
	gap: var(--space-s);
}

.featured__title {
	font-size: var(--text-xl);
}

.featured__title a,
.stack-item__title a {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 1px;
	transition: background-size var(--dur-ui) var(--ease-out-expo);
}

@media (hover: hover) {
	.featured__title a:hover,
	.stack-item__title a:hover {
		background-size: 100% 1px;
	}
}

.featured__excerpt {
	max-width: 48ch;
	color: var(--muted);
	font-size: 1.2rem;
	line-height: 1.5;
}

.featured__stack {
	display: flex;
	flex-direction: column;
	justify-content: stretch;
	gap: var(--space-s);
}

.stack-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: var(--space-xs);
	padding: var(--space-m);
	background: var(--wash, var(--canvas-deep));
	border-radius: var(--radius-hair);
	box-shadow: inset 0 1px 0 var(--highlight);
	transition: transform var(--dur-ui) var(--ease-out-quart);
}

.stack-item__title {
	font-size: var(--text-l);
}

@media (hover: hover) {
	.stack-item:hover {
		transform: translateY(-4px);
	}
}

.stack-item:active {
	transform: scale(0.97);
}

/* -------------------------------------------------------------------------- */
/* Rooms (category type-tiles)                                                 */
/* -------------------------------------------------------------------------- */

.rooms,
.latest {
	padding-block: var(--space-xl);
}

.section-head {
	display: grid;
	grid-template-columns: 1fr 2fr;
	margin-bottom: var(--space-l);
	border-top: 1px solid var(--hairline);
	padding-top: var(--space-m);
}

.section-head__title {
	font-size: var(--text-s);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-family: var(--font-mono);
	color: var(--muted);
}

.rooms__grid {
	display: grid;
	grid-template-columns: 1.618fr 1fr 1fr;
	grid-auto-rows: minmax(11rem, 1fr);
	gap: var(--space-s);
	min-height: 28rem;
}

.rooms__grid[data-count="1"] {
	grid-template-columns: 1fr;
	min-height: 16rem;
}

.rooms__grid[data-count="2"] {
	grid-template-columns: 1.618fr 1fr;
}

.rooms__grid[data-count="3"] {
	grid-template-columns: 1.618fr 1fr;
}

.rooms__grid[data-count="3"] .room:first-child,
.rooms__grid[data-count="4"] .room:first-child,
.rooms__grid[data-count="5"] .room:first-child {
	grid-column: 1;
	grid-row: 1 / span 2;
}

.room {
	container-type: inline-size;
	background: var(--wash, var(--canvas-deep));
	border-radius: var(--radius-hair);
	box-shadow: inset 0 1px 0 var(--highlight);
	overflow: hidden;
	transition: transform var(--dur-ui) var(--ease-out-quart);
}

.room__link {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100%;
	padding: var(--space-m);
	text-decoration: none;
	height: 100%;
}

.room__count {
	margin-bottom: auto;
}

.room__name {
	font-size: clamp(1.8rem, 4cqi + 1rem, 4.2rem);
	line-height: 0.92;
	letter-spacing: -0.04em;
	font-weight: 800;
}

.room__latest {
	margin-top: var(--space-s);
	max-width: 28ch;
	color: var(--muted);
	font-size: 1rem;
	opacity: 0.85;
	transform: translateY(6px);
	transition: opacity var(--dur-ui) var(--ease-out-quart), transform var(--dur-ui) var(--ease-out-quart);
}

@media (hover: hover) {
	.room:hover {
		transform: translateY(-4px);
	}

	.room:hover .room__latest {
		opacity: 1;
		transform: none;
	}
}

.room:active {
	transform: scale(0.97);
}

/* -------------------------------------------------------------------------- */
/* Stream                                                                      */
/* -------------------------------------------------------------------------- */

.stream {
	display: grid;
}

.stream-item {
	border-top: 1px solid var(--hairline);
}

.stream-item__link {
	display: grid;
	grid-template-columns: 1fr 1.618fr 1.618fr;
	gap: var(--space-m);
	align-items: baseline;
	padding-block: var(--space-m);
	text-decoration: none;
	transition: transform var(--dur-ui) var(--ease-out-quart);
}

.stream-item__title {
	font-family: var(--font-display);
	font-size: var(--text-l);
	font-weight: 700;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.stream-item__excerpt {
	color: var(--muted);
	font-size: 1rem;
}

@media (hover: hover) {
	.stream-item__link:hover {
		transform: translateX(6px);
	}
}

/* -------------------------------------------------------------------------- */
/* Archive personalities                                                       */
/* -------------------------------------------------------------------------- */

.archive-header {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--space-l);
	align-items: end;
	min-height: 32vh;
	margin-bottom: var(--space-xl);
	padding: var(--space-xl) var(--space-l);
	background: var(--wash, var(--canvas-deep));
	border-radius: var(--radius-hair);
	box-shadow: inset 0 1px 0 var(--highlight);
}

.archive-header__title {
	grid-column: 1;
	font-size: var(--text-xxl);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 0.9;
}

.archive-header .kicker {
	grid-column: 1;
}

.archive-header__lede {
	grid-column: 2;
	grid-row: 1 / span 2;
	max-width: 28ch;
	font-size: var(--text-l);
	line-height: 1.35;
	justify-self: end;
	align-self: center;
}

.archive-header__count {
	grid-column: 1;
}

.archive--manifestation .archive-header {
	min-height: 42vh;
	padding-block: var(--space-xxl);
}

.archive--manifestation .stream-item__link {
	padding-block: var(--space-l);
}

.archive--life-lessons .stream {
	counter-reset: lessons;
}

.archive--life-lessons .stream-item__link::before {
	counter-increment: lessons;
	content: counter(lessons, decimal-leading-zero);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	color: var(--muted);
	grid-column: 1;
}

.archive--life-lessons .stream-item__meta {
	grid-column: 1;
}

.archive--tech .stream-item__title {
	font-family: var(--font-display);
}

.archive--tech .stream-item__excerpt {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	letter-spacing: 0;
	text-transform: none;
}

.archive--stories .stream-item__title {
	font-family: var(--font-body);
	font-weight: 500;
	font-style: italic;
	letter-spacing: 0;
}

.archive--notes .stream-item__link {
	grid-template-columns: auto 1fr;
	padding-block: var(--space-s);
	gap: var(--space-m);
}

.archive--notes .stream-item__excerpt {
	display: none;
}

.page-header {
	margin-bottom: var(--space-xl);
	display: grid;
	gap: var(--space-s);
}

.page-header__title,
.lost__title,
.empty__title {
	font-size: var(--text-xxl);
}

.page-header__search,
.lost__actions {
	max-width: 28rem;
	margin-top: var(--space-m);
}

.lost {
	min-height: 50vh;
	display: grid;
	align-content: center;
	gap: var(--space-s);
}

.lost__code {
	font-size: var(--text-hero);
	line-height: 0.8;
	color: oklch(0.22 0.02 70 / 0.14);
}

.empty {
	padding-block: var(--space-xxl);
	display: grid;
	gap: var(--space-s);
	max-width: 36ch;
}

/* -------------------------------------------------------------------------- */
/* Single                                                                      */
/* -------------------------------------------------------------------------- */

.entry--single,
.entry--page {
	display: grid;
	gap: var(--space-l);
}

.entry-title {
	font-size: var(--text-xxl);
	max-width: 18ch;
	color: var(--ink);
}

.entry-hero {
	border-radius: var(--radius-media);
	overflow: hidden;
	outline: 1px solid oklch(0.22 0.02 70 / 0.1);
	outline-offset: -1px;
}

.entry-hero__img {
	width: 100%;
	aspect-ratio: 1.618 / 1;
	object-fit: cover;
}

.entry-layout {
	display: grid;
	grid-template-columns: 1.618fr 1fr;
	gap: var(--space-xl);
	align-items: start;
}

.entry-content {
	max-width: var(--measure);
	display: grid;
	gap: var(--space-m);
}

.entry-gutter {
	display: grid;
	gap: var(--space-2xs);
	position: sticky;
	top: calc(var(--header-h) + var(--space-m));
	font-size: 0.95rem;
	color: var(--muted);
	padding-top: 0.35rem;
}

.entry-gutter__label {
	margin-top: var(--space-s);
}

.entry-gutter__label:first-child {
	margin-top: 0;
}

.entry-content > * {
	min-width: 0;
}

.entry-content a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.entry-content h2,
.entry-content h3 {
	margin-top: var(--space-s);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.2em;
	list-style: revert;
	display: grid;
	gap: 0.35em;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	font-family: var(--font-display);
	font-size: var(--text-l);
	line-height: 1.3;
	letter-spacing: -0.02em;
	padding-left: var(--space-m);
	border-left: 1px solid var(--ink);
}

.entry-content pre,
.entry-content .wp-block-code {
	font-family: var(--font-mono);
	font-size: 0.84rem;
	line-height: 1.55;
	padding: var(--space-m);
	background: var(--canvas-deep);
	border-radius: var(--radius-hair);
	overflow-x: auto;
	box-shadow: inset 0 1px 0 var(--highlight);
}

.entry-content code {
	font-family: var(--font-mono);
	font-size: 0.84em;
}

.entry-content .wp-block-image img {
	border-radius: var(--radius-media);
}

.has-cat-stories .entry-content > p:first-of-type::first-letter,
.category-stories .entry-content > p:first-of-type::first-letter,
.cat-stories .entry-content > p:first-of-type::first-letter {
	float: left;
	font-family: var(--font-display);
	font-size: 3.6em;
	line-height: 0.8;
	padding-right: 0.12em;
	font-weight: 800;
}

.has-cat-manifestation .entry-content,
.cat-manifestation .entry-content {
	gap: var(--space-l);
	font-size: 1.2rem;
}

.has-cat-tech .entry-content,
.cat-tech .entry-content {
	font-family: var(--font-body);
}

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-m);
	padding-top: var(--space-xl);
	border-top: 1px solid var(--hairline);
	margin-top: var(--space-xl);
}

.post-nav__item {
	display: grid;
	gap: var(--space-2xs);
	text-decoration: none;
	font-family: var(--font-display);
	font-weight: 600;
	transition: transform var(--dur-ui) var(--ease-out-quart);
}

.post-nav__item--next {
	text-align: right;
	justify-self: end;
}

@media (hover: hover) {
	.post-nav__item:hover {
		transform: translateY(-3px);
	}
}

/* -------------------------------------------------------------------------- */
/* Comments                                                                    */
/* -------------------------------------------------------------------------- */

.comments {
	margin-top: var(--space-xxl);
	padding-top: var(--space-l);
	border-top: 1px solid var(--hairline);
	display: grid;
	gap: var(--space-l);
	max-width: var(--measure);
}

.comments__title,
.comment-reply-title {
	font-size: var(--text-l);
}

.comment-list {
	display: grid;
	gap: var(--space-l);
}

.comment-body {
	display: grid;
	gap: var(--space-xs);
}

.comment-meta {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.comment-content p {
	margin: 0 0 0.6em;
}

.children {
	margin-top: var(--space-m);
	padding-left: var(--space-l);
	display: grid;
	gap: var(--space-m);
	border-left: 1px solid var(--hairline);
}

.comment-form label {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: var(--space-2xs);
}

.comment-form p {
	margin-bottom: var(--space-m);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--ink);
	border-radius: 0;
	padding: 0.4rem 0;
}

.comment-form textarea {
	min-height: 8rem;
	resize: vertical;
}

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

.site-footer {
	border-top: 1px solid var(--hairline);
	padding-block: var(--space-xl);
}

.site-footer__inner {
	width: min(100% - var(--space-l), var(--page));
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1.618fr 1fr auto;
	gap: var(--space-l);
	align-items: end;
}

.site-footer__tagline {
	max-width: 36ch;
	margin-top: var(--space-s);
	color: var(--muted);
}

.footer-nav {
	display: flex;
	gap: var(--space-m);
}

.footer-nav a {
	font-family: var(--font-display);
	text-decoration: none;
}

.site-footer__colophon {
	display: grid;
	gap: 0.2em;
	justify-items: end;
	text-align: right;
}

.site-footer__wordmark .wordmark__text {
	font-size: 1.4rem;
}

/* -------------------------------------------------------------------------- */
/* Pagination                                                                  */
/* -------------------------------------------------------------------------- */

.pagination,
.nav-links {
	display: flex;
	gap: var(--space-m);
	padding-top: var(--space-l);
	font-family: var(--font-display);
}

.page-numbers {
	text-decoration: none;
	color: var(--muted);
}

.page-numbers.current {
	color: var(--ink);
}

.cat-link {
	text-decoration: none;
}

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

@keyframes ultramin-enter {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	[data-enter] {
		animation: ultramin-enter var(--dur-enter) var(--ease-out-expo) both;
		animation-delay: calc(min(var(--i, 0), 8) * 80ms);
	}
}

/* -------------------------------------------------------------------------- */
/* Alignments (Gutenberg)                                                      */
/* -------------------------------------------------------------------------- */

.alignwide {
	width: min(100%, var(--page));
	max-width: none;
}

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

.wp-block-image.alignfull img {
	border-radius: 0;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* -------------------------------------------------------------------------- */

@media (max-width: 960px) {
	.featured,
	.hero,
	.entry-layout,
	.archive-header,
	.site-footer__inner,
	.stream-item__link,
	.section-head {
		grid-template-columns: 1fr;
	}

	.rooms__grid {
		grid-template-columns: 1fr 1fr;
		min-height: 0;
	}

	.rooms__grid[data-count="1"] {
		grid-template-columns: 1fr;
	}

	.rooms__grid .room:first-child {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.archive-header__lede {
		grid-column: 1;
		grid-row: auto;
		justify-self: start;
	}

	.hero {
		min-height: 0;
		padding-block: var(--space-l) var(--space-xl);
	}

	.site-header {
		height: auto;
		overflow: visible;
	}

	.site-header.is-condensed {
		height: auto;
	}

	.site-header__inner {
		grid-template-columns: minmax(0, 1fr) auto auto;
		grid-template-rows: auto auto;
		padding-block: 0.35rem;
		column-gap: var(--space-s);
	}

	.nav-toggle {
		display: inline-flex;
		align-items: center;
		grid-column: 2;
		grid-row: 1;
	}

	.site-header__tools {
		grid-column: 3;
		grid-row: 1;
	}

	.site-nav {
		display: none;
		grid-column: 1 / -1;
		grid-row: 2;
		min-width: 0;
		max-width: 100%;
		padding-bottom: var(--space-xs);
		border-top: 1px solid var(--hairline);
	}

	.site-nav.is-open {
		display: block;
	}

	.primary-nav {
		flex-direction: column;
		flex-wrap: wrap;
		justify-content: flex-start;
		align-items: stretch;
		gap: 0;
		padding-block: var(--space-xs);
	}

	.primary-nav li {
		width: 100%;
	}

	.primary-nav a {
		white-space: normal;
		display: flex;
		align-items: center;
		min-height: 44px;
		padding-block: 0.35rem;
	}

	.home .site-header__wordmark {
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}

	.entry-gutter {
		position: static;
		grid-template-columns: repeat(3, auto);
		gap: var(--space-m);
	}

	.entry-gutter__label {
		margin-top: 0;
	}

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

	.post-nav__item--next {
		text-align: left;
		justify-self: start;
	}
}

@media (max-width: 640px) {
	.site-main {
		width: min(100% - var(--space-m), var(--page));
	}

	.site-header__inner,
	.site-footer__inner {
		width: min(100% - var(--space-m), var(--page));
	}

	.hero__mark {
		font-size: clamp(1.6rem, 11cqi, 3rem);
		letter-spacing: -0.04em;
	}

	.rooms__grid {
		grid-template-columns: 1fr;
	}

	.rooms__grid .room:first-child {
		grid-column: auto;
	}

	.room__link {
		min-height: 10rem;
	}

	.site-footer__inner {
		justify-items: start;
	}

	.site-footer__colophon {
		justify-items: start;
		text-align: left;
	}
}

@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;
	}

	[data-enter] {
		opacity: 1;
		transform: none;
	}

	.media__img,
	.media__glyph {
		transition: none;
	}
}
