/*
Theme Name: Plumbline
Theme URI: https://objectales.com/
Author: objectales
Description: An editorial home-decorating and DIY theme built around plaster, pigment and the plumb line. Arch-framed imagery, ruler-tick dividers, a reading plumb-bob and a randomised Popular Topics shelf under every post. Fully responsive, no frameworks, self-hosted fonts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
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: plumbline
Tags: blog, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, editor-style
*/

/* ---------------------------------------------------------------
   0. Fonts (self-hosted, SIL OFL)
---------------------------------------------------------------- */
@font-face {
	font-family: "Gloock";
	src: url("assets/fonts/gloock.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Familjen Grotesk";
	src: url("assets/fonts/familjen-grotesk.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Familjen Grotesk";
	src: url("assets/fonts/familjen-grotesk-italic.woff2") format("woff2");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}

/* ---------------------------------------------------------------
   1. Tokens
---------------------------------------------------------------- */
:root {
	--chalk: #f3eee6;
	--plaster: #e8dfd1;
	--plaster-deep: #dccfbb;
	--ink: #2b1d2f;
	--ink-soft: #5b4a5e;
	--vermilion: #d9472b;
	--vermilion-text: #b8361c;
	--vermilion-light: #e86a4f;
	--pistachio: #c9d68f;
	--pistachio-deep: #a9ba62;
	--line: rgba(43, 29, 47, 0.16);

	--serif: "Gloock", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--sans: "Familjen Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

	--gutter: clamp(1rem, 4vw, 2.75rem);
	--wrap: 1320px;
	--measure: 44rem;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);

	--step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
	--step-0: clamp(1.02rem, 0.98rem + 0.2vw, 1.13rem);
	--step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
	--step-2: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
	--step-3: clamp(1.8rem, 1.45rem + 1.7vw, 2.9rem);
	--step-4: clamp(2.3rem, 1.6rem + 3.2vw, 4.4rem);
	--step-5: clamp(2.8rem, 1.7rem + 5vw, 6.2rem);
}

/* ---------------------------------------------------------------
   2. Base
---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background-color: var(--chalk);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.11 0 0 0 0 0.18 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	color: var(--ink);
	font-family: var(--sans);
	font-size: var(--step-0);
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--vermilion-text); }

:focus-visible {
	outline: 2px dashed var(--vermilion);
	outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

p { margin: 0 0 1.1em; }

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

.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 !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	z-index: 1000;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.7rem 1.1rem;
	background: var(--ink);
	color: var(--chalk);
	text-decoration: none;
}

.wrap {
	width: min(100% - (var(--gutter) * 2), var(--wrap));
	margin-inline: auto;
}

/* Ruler tick divider: the theme's signature line */
.ruler {
	height: 16px;
	background:
		linear-gradient(var(--ink), var(--ink)) bottom / 100% 1px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 80px) bottom left / 100% 16px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 40px) bottom left / 100% 10px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 8px) bottom left / 100% 5px no-repeat;
	opacity: 0.85;
}

.label {
	font-family: var(--sans);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------
   3. Masthead
---------------------------------------------------------------- */
.masthead {
	position: relative;
	z-index: 20;
	padding-top: clamp(0.9rem, 2vw, 1.4rem);
}

.masthead__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1rem 2rem;
	padding-bottom: clamp(0.8rem, 1.6vw, 1.2rem);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: auto; height: clamp(38px, 5vw, 54px); }

.masthead__tag {
	margin: 0;
	padding-left: 1.4rem;
	border-left: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: var(--step--1);
	letter-spacing: 0.04em;
	max-width: 22rem;
	line-height: 1.35;
}

.masthead__tools { display: flex; align-items: center; gap: 1.4rem; }

.masthead__jump {
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	position: relative;
	padding-left: 1.1rem;
}
.masthead__jump::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 0.55rem;
	height: 0.55rem;
	background: var(--vermilion);
	transform: translateY(-50%) rotate(45deg);
}

/* Search: inline field that unfolds, no JS required */
.seek { position: relative; }
.seek summary {
	list-style: none;
	cursor: pointer;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--ink);
	color: var(--chalk);
	transition: transform 0.3s var(--ease), background 0.3s;
}
.seek summary::-webkit-details-marker { display: none; }
.seek summary:hover { background: var(--vermilion); transform: rotate(-12deg); }
.seek[open] summary { background: var(--vermilion); }
.seek svg { width: 1.1rem; height: 1.1rem; }

.seek:not([open]) .seek__panel { display: none; }
.seek__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 0.9rem);
	width: min(26rem, calc(100vw - 2rem));
}

.search-form {
	display: flex;
	align-items: stretch;
	border-bottom: 2px solid var(--ink);
	background: var(--chalk);
}
.search-form label { flex: 1; min-width: 0; }
.search-field {
	width: 100%;
	border: 0;
	background: transparent;
	font: inherit;
	font-family: var(--serif);
	font-size: var(--step-1);
	padding: 0.65rem 0.2rem;
	color: var(--ink);
}
.search-field::placeholder { color: var(--ink-soft); opacity: 0.7; }
.search-field:focus { outline: none; }
.search-form:focus-within { border-color: var(--vermilion); }
.search-submit {
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: var(--step--1);
	color: var(--ink);
	padding: 0 0.4rem 0 1rem;
	cursor: pointer;
}
.search-submit:hover { color: var(--vermilion-text); }

/* Header widget slot (printed right after </header>) */
.hw {
	width: min(100% - (var(--gutter) * 2), var(--wrap));
	margin: 1.25rem auto 0;
	text-align: center;
}
.hw > * { margin-inline: auto; }
.hw__title { font-size: var(--step--1); font-family: var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------------------------------------------------------------
   4. Home lead story
---------------------------------------------------------------- */
.lead {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: clamp(2rem, 5vw, 5rem);
	padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 6vw, 6rem);
}

.kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1rem;
	margin-bottom: 1.4rem;
}
.kicker__no {
	font-family: var(--serif);
	font-size: var(--step-1);
	color: var(--vermilion-text);
}
.kicker__cat,
.tile__cat,
.crumbs a,
.entry__tags a {
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--ink);
	border-radius: 999px;
	transition: background 0.25s, color 0.25s, border-color 0.25s;
	white-space: nowrap;
}
.kicker__cat:hover,
.tile__cat:hover,
.entry__tags a:hover {
	background: var(--ink);
	color: var(--chalk);
}

.lead__title {
	font-size: var(--step-5);
	line-height: 0.98;
	margin-bottom: 1.6rem;
}
.lead__title a {
	text-decoration: none;
	background: linear-gradient(transparent 62%, var(--pistachio) 62%, var(--pistachio) 92%, transparent 92%) no-repeat;
	background-size: 0% 100%;
	transition: background-size 0.7s var(--ease);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.lead__title a:hover { color: inherit; background-size: 100% 100%; }

.lead__excerpt {
	font-size: var(--step-1);
	color: var(--ink-soft);
	max-width: 34rem;
	line-height: 1.5;
}

.lead__more { margin: 2rem 0 0; }
.lead__more a,
.cta {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: var(--step--1);
	text-decoration: none;
}
.lead__more a::after,
.cta::after {
	content: "";
	width: 3.2rem;
	height: 1px;
	background: currentColor;
	transition: width 0.4s var(--ease);
}
.lead__more a:hover::after,
.cta:hover::after { width: 5rem; }

.lead__media {
	position: relative;
	margin: 0;
	justify-self: end;
	width: min(100%, 31rem);
}
.lead__media .arch { aspect-ratio: 4 / 5; }

.lead__media::before {
	/* floor line under the doorway */
	content: "";
	position: absolute;
	left: -12%;
	right: -6%;
	bottom: -1px;
	height: 1px;
	background: var(--ink);
}

.stamp {
	position: absolute;
	left: -2.8rem;
	bottom: 12%;
	width: clamp(6.5rem, 11vw, 8.5rem);
	height: auto;
	aspect-ratio: 1;
	z-index: 2;
}
.stamp__ring { animation: spin 26s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Arch: the doorway frame used for imagery */
.arch {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 999px 999px 0 0;
	background: var(--plaster);
	isolation: isolate;
}
.arch img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.1s var(--ease);
}

/* Placeholder when an image is missing: a paint-chip pattern, never an empty slot */
.chip {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background:
		repeating-linear-gradient(135deg, transparent 0 14px, rgba(43, 29, 47, 0.07) 14px 15px),
		linear-gradient(160deg, var(--pistachio) 0 45%, var(--plaster-deep) 45% 100%);
	font-family: var(--serif);
	font-size: clamp(2.2rem, 6vw, 4rem);
	color: var(--ink);
}
.chip--b { background:
		repeating-linear-gradient(45deg, transparent 0 14px, rgba(43, 29, 47, 0.07) 14px 15px),
		linear-gradient(200deg, var(--vermilion-light) 0 38%, var(--plaster) 38% 100%); }
.chip--c { background:
		radial-gradient(circle at 70% 30%, var(--chalk) 0 18%, transparent 18.5%),
		linear-gradient(180deg, var(--plaster-deep), var(--plaster)); }

/* ---------------------------------------------------------------
   5. Section headings
---------------------------------------------------------------- */
.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	margin-bottom: clamp(1.8rem, 4vw, 3rem);
}
.section-head h2,
.section-head h1 {
	font-size: var(--step-4);
	margin: 0;
}
.section-head h2 em,
.section-head h1 em,
.popular__title em {
	font-style: normal;
	color: var(--vermilion);
}
.section-head p { margin: 0; color: var(--ink-soft); max-width: 28rem; }

/* ---------------------------------------------------------------
   6. Shelf (post list)
---------------------------------------------------------------- */
.shelf-section { padding-block: clamp(2.5rem, 6vw, 5rem); }

.shelf {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3.5vw, 3.5rem);
	counter-reset: shelf;
}

.tile { counter-increment: shelf; position: relative; }

@media (min-width: 1000px) {
	.shelf > li:nth-child(3n + 2) { margin-top: 4.5rem; }
	.shelf > li:nth-child(3n + 3) { margin-top: 2rem; }
}

.tile__link-media { position: relative; }
.tile__link-media a { display: block; text-decoration: none; position: relative; }
.tile__link-media .arch { aspect-ratio: 4 / 5; }
.tile__link-media a:hover img { transform: scale(1.05); }

.tile__no {
	position: absolute;
	right: -0.3rem;
	bottom: -1.2rem;
	z-index: 2;
	font-family: var(--serif);
	font-size: clamp(3rem, 5vw, 4.6rem);
	line-height: 1;
	color: var(--chalk);
	-webkit-text-stroke: 1.5px var(--ink);
	paint-order: stroke fill;
	pointer-events: none;
}

.tile__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.9rem;
	margin: 1.6rem 0 0.8rem;
	font-size: var(--step--1);
	color: var(--ink-soft);
}

.tile__title {
	font-size: var(--step-2);
	margin-bottom: 0.6rem;
}
.tile__title a { text-decoration: none; }
.tile__title a:hover { text-decoration: underline; text-decoration-color: var(--vermilion); }

.tile__excerpt {
	color: var(--ink-soft);
	font-size: var(--step-0);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------------------------------------------------------------
   7. Popular Topics: a hanging rail of round swatches
---------------------------------------------------------------- */
.popular {
	position: relative;
	background: var(--plaster);
	padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
	margin-top: clamp(2rem, 5vw, 4rem);
}
.popular::before {
	/* the rail the swatches hang from */
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 16px;
	background:
		linear-gradient(var(--ink), var(--ink)) top / 100% 1px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 80px) top left / 100% 16px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 8px) top left / 100% 6px no-repeat;
	opacity: 0.75;
}

.popular__head {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: end;
	gap: 0.5rem 2.5rem;
	margin-bottom: clamp(2rem, 4.5vw, 3.4rem);
}
.popular__title { font-size: var(--step-4); margin: 0; }
.popular__lede { margin: 0 0 0.4rem; color: var(--ink-soft); max-width: 26rem; }

.popular__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(2rem, 3.5vw, 3rem) clamp(1.2rem, 2.5vw, 2.2rem);
}

.pop { position: relative; }
.pop > a {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 1.1rem;
	align-items: start;
	text-decoration: none;
	color: var(--ink);
}

.pop__dot {
	display: block;
	grid-row: 1 / span 2;
	position: relative;
	width: clamp(4.6rem, 7vw, 5.6rem);
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	background: var(--plaster-deep);
	box-shadow: 0 0 0 5px var(--plaster), 0 0 0 6px var(--ink);
	transition: transform 0.5s var(--ease), box-shadow 0.3s;
}
.pop__dot img { width: 100%; height: 100%; object-fit: cover; }
.pop__dot .chip { font-size: 1.9rem; }

.pop__num {
	font-family: var(--serif);
	font-size: var(--step-1);
	color: var(--vermilion-text);
	line-height: 1;
	padding-top: 0.15rem;
}

.pop__title {
	font-family: var(--serif);
	font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem);
	line-height: 1.22;
	margin-top: 0.35rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pop > a:hover .pop__dot {
	transform: rotate(-8deg) scale(1.04);
	box-shadow: 0 0 0 5px var(--plaster), 0 0 0 6px var(--vermilion);
}
.pop > a:hover .pop__title {
	text-decoration: underline;
	text-decoration-color: var(--vermilion);
	text-decoration-thickness: 1px;
}

/* ---------------------------------------------------------------
   8. Archive / search headers
---------------------------------------------------------------- */
.archive-head {
	padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem);
	display: grid;
	gap: 1rem;
}
.archive-head .label { color: var(--vermilion-text); }
.archive-head h1 { font-size: var(--step-5); margin: 0; }
.archive-head .archive-desc { max-width: 40rem; color: var(--ink-soft); font-size: var(--step-1); }
.archive-head .archive-desc p:last-child { margin: 0; }

.nothing {
	padding-block: 1rem 3rem;
	max-width: 36rem;
}
.nothing p { font-size: var(--step-1); color: var(--ink-soft); }

/* Pagination */
.pagination { margin-top: clamp(3rem, 6vw, 5rem); }
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}
.page-numbers {
	min-width: 2.8rem;
	height: 2.8rem;
	padding: 0 0.8rem;
	display: inline-grid;
	place-items: center;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
a.page-numbers:hover { background: var(--plaster); color: var(--ink); }
.page-numbers.current { background: var(--ink); color: var(--chalk); }
.page-numbers.prev,
.page-numbers.next { letter-spacing: 0.1em; text-transform: uppercase; font-size: var(--step--1); }

/* ---------------------------------------------------------------
   9. Single entry
---------------------------------------------------------------- */
.entry__head {
	text-align: center;
	padding-block: clamp(2rem, 5vw, 4.5rem) clamp(1.8rem, 4vw, 3rem);
	max-width: 62rem;
	margin-inline: auto;
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.6rem;
	font-size: var(--step--1);
}
.crumbs a { border-color: var(--line); }
.crumbs a:hover { border-color: var(--ink); background: var(--ink); color: var(--chalk); }
.crumbs__sep { width: 1.4rem; height: 1px; background: var(--ink); opacity: 0.5; }

.entry__title { font-size: var(--step-5); line-height: 1; margin-bottom: 1.4rem; }

.entry__meta {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.4rem 1.6rem;
	color: var(--ink-soft);
	font-size: var(--step--1);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
}
.entry__meta span + span::before {
	content: "";
	display: inline-block;
	width: 0.45rem;
	height: 0.45rem;
	margin-right: 1.6rem;
	background: var(--vermilion);
	transform: translateY(-0.1em) rotate(45deg);
}

.entry__hero {
	margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
	width: min(100% - (var(--gutter) * 2), 74rem);
}
.entry__hero .arch {
	aspect-ratio: 16 / 9;
	border-radius: clamp(8rem, 30vw, 30rem) clamp(8rem, 30vw, 30rem) 0 0;
}
.entry__hero figcaption {
	margin-top: 0.7rem;
	font-size: var(--step--1);
	color: var(--ink-soft);
	text-align: right;
}

.entry__layout {
	position: relative;
	width: min(100% - (var(--gutter) * 2), var(--measure));
	margin-inline: auto;
}

/* Reading plumb line: a bob that drops as you read (desktop only) */
.plumb {
	display: none;
	position: absolute;
	top: 0.4rem;
	bottom: 0;
	left: -6.5rem;
	width: 2rem;
	pointer-events: none;
}
.plumb__track {
	position: sticky;
	top: 2rem;
	height: min(70vh, 34rem);
	display: flex;
	justify-content: center;
}
.plumb__track::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 1px;
	height: calc(var(--read, 0) * 100% + 0.2rem);
	background: var(--ink);
}
.plumb__track::after {
	content: "";
	position: absolute;
	left: 50%;
	top: calc(var(--read, 0) * 100%);
	width: 0.9rem;
	height: 1.25rem;
	background: var(--vermilion);
	clip-path: polygon(50% 0, 100% 45%, 50% 100%, 0 45%);
	transform: translateX(-50%);
}
.plumb__cap {
	position: absolute;
	top: -0.45rem;
	width: 1.2rem;
	height: 0.45rem;
	background: var(--ink);
	border-radius: 2px;
}
@media (min-width: 1180px) { .plumb { display: block; } }

/* Prose */
.prose { font-size: clamp(1.06rem, 1rem + 0.25vw, 1.2rem); line-height: 1.75; }
.prose > * { margin-block: 0 1.35em; }
.prose > p:first-of-type::first-letter {
	float: left;
	font-family: var(--serif);
	font-size: 4.6em;
	line-height: 0.82;
	padding: 0.06em 0.12em 0 0;
	color: var(--vermilion);
}
.prose h2 { font-size: var(--step-3); margin-top: 2em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.8em; }
.prose h4 { font-size: var(--step-1); margin-top: 1.6em; }
.prose h2::before {
	content: "";
	display: block;
	width: 3.5rem;
	height: 10px;
	margin-bottom: 1rem;
	background:
		linear-gradient(var(--vermilion), var(--vermilion)) bottom / 100% 2px no-repeat,
		repeating-linear-gradient(90deg, var(--vermilion) 0 2px, transparent 2px 8px) bottom / 100% 10px no-repeat;
}
.prose a { color: var(--vermilion-text); text-decoration-color: rgba(184, 54, 28, 0.4); }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose ul li::marker { color: var(--vermilion); content: "◆  "; font-size: 0.7em; }
.prose ol li::marker { color: var(--vermilion-text); font-family: var(--serif); }
.prose blockquote,
.prose .wp-block-quote {
	margin-inline: 0;
	padding: 0.2em 0 0.2em 1.6rem;
	border-left: 3px solid var(--pistachio-deep);
	font-family: var(--serif);
	font-size: var(--step-2);
	line-height: 1.3;
}
.prose blockquote cite { display: block; margin-top: 0.8rem; font-family: var(--sans); font-style: normal; font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.prose .wp-block-pullquote { border-block: 1px solid var(--ink); padding: 2rem 0; text-align: center; }
.prose .wp-block-pullquote blockquote { border: 0; padding: 0; }
.prose img { border-radius: 4px; }
.prose figure { margin-inline: 0; }
.prose figcaption,
.prose .wp-caption-text { font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.6rem; }
.prose hr,
.prose .wp-block-separator {
	border: 0;
	height: 16px;
	margin-block: 2.5em;
	background:
		linear-gradient(var(--ink), var(--ink)) bottom / 100% 1px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 40px) bottom left / 100% 12px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 8px) bottom left / 100% 5px no-repeat;
	opacity: 0.5;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.prose th, .prose td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font-family: var(--sans); font-weight: 700; border-bottom: 2px solid var(--ink); }
.prose .wp-block-table { overflow-x: auto; }
.prose code { font-size: 0.88em; background: var(--plaster); padding: 0.12em 0.35em; border-radius: 3px; }
.prose pre { background: var(--ink); color: var(--chalk); padding: 1.2rem 1.4rem; overflow-x: auto; border-radius: 4px; font-size: 0.85em; }
.prose pre code { background: none; padding: 0; }
.prose mark { background: var(--pistachio); color: var(--ink); }

.alignwide { width: min(100vw - (var(--gutter) * 2), 64rem); margin-inline: calc(50% - min(50vw - var(--gutter), 32rem)); max-width: none; }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; }
.alignleft { float: left; margin: 0.3em 1.6em 1em 0; max-width: 50%; }
.alignright { float: right; margin: 0.3em 0 1em 1.6em; max-width: 50%; }
.aligncenter { margin-inline: auto; }
.wp-block-button__link { background: var(--ink); color: var(--chalk) !important; border-radius: 999px; text-decoration: none; padding: 0.8rem 1.6rem; }
.wp-block-button__link:hover { background: var(--vermilion); }
.sticky, .gallery-caption, .bypostauthor { outline: 0; }

.page-links { clear: both; display: flex; gap: 0.5rem; align-items: center; font-weight: 600; }

.entry__foot {
	clear: both;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	padding-top: 2rem;
	margin-top: 2.5rem;
	border-top: 1px solid var(--line);
}
.entry__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.entry__tags a { border-color: var(--line); text-transform: none; letter-spacing: 0.02em; }
.entry__tags a::before { content: "#"; color: var(--vermilion-text); margin-right: 0.1rem; }

/* Previous / next */
.pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	width: min(100% - (var(--gutter) * 2), 64rem);
	margin: clamp(3rem, 6vw, 5rem) auto 0;
}
.pager__item a {
	display: block;
	text-decoration: none;
	padding-top: 1.1rem;
	border-top: 2px solid var(--ink);
}
.pager__item--next { text-align: right; }
.pager__dir { display: block; margin-bottom: 0.5rem; color: var(--vermilion-text); }
.pager__title { font-family: var(--serif); font-size: var(--step-2); line-height: 1.15; }
.pager__item a:hover .pager__title { text-decoration: underline; text-decoration-color: var(--vermilion); text-decoration-thickness: 1px; }

/* ---------------------------------------------------------------
   10. Comments
---------------------------------------------------------------- */
.comments {
	width: min(100% - (var(--gutter) * 2), var(--measure));
	margin: clamp(3rem, 6vw, 5rem) auto 0;
}
.comments__title { font-size: var(--step-3); }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: clamp(1rem, 4vw, 2.5rem); border-left: 1px solid var(--line); }
.comment-body { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.comment-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.7rem; }
.comment-head img { border-radius: 50%; width: 44px; height: 44px; }
.comment-author-name { font-weight: 700; }
.comment-date { font-size: var(--step--1); color: var(--ink-soft); text-decoration: none; display: block; }
.comment-awaiting { font-size: var(--step--1); color: var(--vermilion-text); }
.comment-reply-link { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

.comment-respond { margin-top: 2.5rem; }
.comment-reply-title { font-size: var(--step-2); }
.comment-form { display: grid; gap: 1rem; }
.comment-form label { display: block; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	font: inherit;
	color: var(--ink);
	background: transparent;
	border: 0;
	border-bottom: 1.5px solid var(--ink);
	padding: 0.6rem 0.1rem;
	border-radius: 0;
}
.comment-form textarea { min-height: 9rem; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--vermilion); }
.comment-form-cookies-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.comment-form-cookies-consent label { text-transform: none; letter-spacing: 0; font-weight: 400; }
.form-submit .submit,
.button {
	font: inherit;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: var(--step--1);
	background: var(--ink);
	color: var(--chalk);
	border: 0;
	border-radius: 999px;
	padding: 0.95rem 1.9rem;
	cursor: pointer;
	transition: background 0.25s;
}
.form-submit .submit:hover, .button:hover { background: var(--vermilion); }

/* ---------------------------------------------------------------
   11. 404
---------------------------------------------------------------- */
.lost {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: clamp(1.5rem, 5vw, 4rem);
	padding-block: clamp(3rem, 8vw, 6rem);
}
.lost__num { font-family: var(--serif); font-size: clamp(6rem, 18vw, 14rem); line-height: 0.85; color: var(--vermilion); }
.lost h1 { font-size: var(--step-4); }
.lost p { color: var(--ink-soft); font-size: var(--step-1); max-width: 30rem; }
.lost .search-form { max-width: 28rem; margin-top: 1.5rem; }

/* ---------------------------------------------------------------
   12. Colophon (footer)
---------------------------------------------------------------- */
.colophon {
	position: relative;
	margin-top: 0;
	background: var(--ink);
	color: var(--chalk);
	overflow: hidden;
}
.colophon .ruler {
	background:
		linear-gradient(var(--chalk), var(--chalk)) top / 100% 1px no-repeat,
		repeating-linear-gradient(90deg, var(--chalk) 0 1px, transparent 1px 80px) top left / 100% 16px no-repeat,
		repeating-linear-gradient(90deg, var(--chalk) 0 1px, transparent 1px 40px) top left / 100% 10px no-repeat,
		repeating-linear-gradient(90deg, var(--chalk) 0 1px, transparent 1px 8px) top left / 100% 5px no-repeat;
	opacity: 0.35;
}
.colophon__inner {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 2.5rem 4rem;
	padding-block: clamp(3rem, 6vw, 5rem) 2.5rem;
}
.colophon__brand img { height: clamp(40px, 5vw, 52px); width: auto; }
.colophon__brand p { margin-top: 1.2rem; max-width: 26rem; color: rgba(243, 238, 230, 0.72); }

.colophon__pages { justify-self: end; }
.colophon__pages .label { display: block; color: var(--pistachio); margin-bottom: 1rem; }
.colophon__pages ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}
.colophon__pages a {
	font-family: var(--serif);
	font-size: var(--step-1);
	text-decoration: none;
	color: var(--chalk);
	display: inline-flex;
	align-items: center;
}
.colophon__pages a::before {
	content: "";
	width: 0;
	margin-right: 0;
	height: 1px;
	background: var(--vermilion-light);
	transition: width 0.35s var(--ease);
}
.colophon__pages a:hover { color: var(--pistachio); }
.colophon__pages a:hover::before { width: 1.4rem; margin-right: 0.7rem; }

.colophon__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-block: 1.4rem;
	border-top: 1px solid rgba(243, 238, 230, 0.16);
	font-size: var(--step--1);
	color: rgba(243, 238, 230, 0.7);
}
.colophon__base p { margin: 0; }
.to-top { text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--chalk); }
.to-top:hover { color: var(--pistachio); }

.colophon__giant {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(4.5rem, 21vw, 21rem);
	line-height: 0.72;
	letter-spacing: -0.03em;
	color: transparent;
	-webkit-text-stroke: 1px rgba(243, 238, 230, 0.22);
	text-align: center;
	white-space: nowrap;
	user-select: none;
	transform: translateY(18%);
	margin-top: -1rem;
}

/* ---------------------------------------------------------------
   13. Responsive
---------------------------------------------------------------- */
@media (max-width: 1080px) {
	.popular__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 999px) {
	.shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.shelf > li:nth-child(2n) { margin-top: 3rem; }
}

@media (max-width: 860px) {
	.masthead__inner { grid-template-columns: 1fr auto; }
	.masthead__tag { display: none; }
	.lead { grid-template-columns: 1fr; }
	.lead__media { order: -1; justify-self: center; width: min(100%, 22rem); }
	.lead__media::before { left: -1rem; right: -1rem; }
	.stamp { left: -1rem; }
	.popular__head { grid-template-columns: 1fr; }
	.colophon__inner { grid-template-columns: 1fr; }
	.colophon__pages { justify-self: start; }
}

@media (max-width: 640px) {
	.masthead__jump { display: none; }
	.seek__panel { position: fixed; left: 1rem; right: 1rem; top: 4.8rem; width: auto; }
	.shelf { grid-template-columns: 1fr; }
	.shelf > li:nth-child(2n) { margin-top: 0; }
	.tile { display: grid; grid-template-columns: 7.5rem 1fr; column-gap: 1.1rem; align-items: start; }
	.tile__link-media { grid-row: 1 / span 3; }
	.tile__no { font-size: 2.4rem; bottom: -0.7rem; right: -0.5rem; }
	.tile__meta { margin: 0 0 0.4rem; }
	.tile__title { font-size: var(--step-1); }
	.tile__excerpt { -webkit-line-clamp: 2; font-size: 0.95rem; }
	.popular__list { grid-template-columns: 1fr; gap: 1.6rem; }
	.pager { grid-template-columns: 1fr; }
	.pager__item--next { text-align: left; }
	.lost { grid-template-columns: 1fr; }
	.alignleft, .alignright { float: none; margin: 0 0 1em; max-width: 100%; }
	.entry__hero .arch { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.masthead, .colophon, .popular, .pager, .comments, .plumb, .hw { display: none !important; }
	body { background: #fff; }
}

.site-main { overflow-x: clip; }
