/*
Theme Name: JakČíst
Theme URI: https://jakcist.cz
Author: JakČíst
Description: Klidná, typografická šablona pro knihovnu klasické literatury a myšlení.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: jakcist-theme
License: GNU General Public License v2 or later
*/

:root {
	--jc-paper: #f3eddf;
	--jc-paper-light: #faf6ed;
	--jc-paper-deep: #e7ddca;
	--jc-ink: #191815;
	--jc-ink-soft: #4d4941;
	--jc-wine: #722419;
	--jc-wine-dark: #4e1711;
	--jc-bronze: #96783f;
	--jc-line: rgba(38, 31, 24, 0.22);
	--jc-line-strong: rgba(38, 31, 24, 0.44);
	--jc-serif-display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
	--jc-serif-text: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
	--jc-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--jc-container: 1220px;
	--jc-narrow: 760px;
	--jc-gutter: clamp(20px, 4vw, 64px);
	--jc-section: clamp(76px, 10vw, 148px);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--jc-ink);
	background:
		radial-gradient(circle at 18% 8%, rgba(114, 36, 25, 0.045), transparent 28%),
		repeating-linear-gradient(90deg, rgba(73, 57, 35, 0.018) 0, rgba(73, 57, 35, 0.018) 1px, transparent 1px, transparent 5px),
		var(--jc-paper-light);
	font-family: var(--jc-serif-text);
	font-size: 18px;
	line-height: 1.72;
	text-rendering: optimizeLegibility;
}

body.menu-open {
	overflow: hidden;
}

::selection {
	color: var(--jc-paper-light);
	background: var(--jc-wine);
}

a {
	color: inherit;
	text-decoration-color: rgba(114, 36, 25, 0.46);
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	color: var(--jc-wine);
}

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

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

figure {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-top: 0;
	font-family: var(--jc-serif-display);
	font-weight: 400;
	line-height: 1.08;
}

p {
	margin-top: 0;
}

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

.screen-reader-text:focus {
	z-index: 100000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto;
	color: var(--jc-paper-light);
	background: var(--jc-ink);
}

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

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

.jc-section {
	padding-block: var(--jc-section);
}

.jc-section--compact {
	padding-block: clamp(54px, 7vw, 96px);
}

.jc-kicker {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
	color: var(--jc-wine);
	font-family: var(--jc-sans);
	font-size: 0.7rem;
	font-weight: 650;
	letter-spacing: 0.19em;
	line-height: 1.4;
	text-transform: uppercase;
}

.jc-kicker::before {
	width: 38px;
	height: 1px;
	content: "";
	background: currentColor;
}

.jc-kicker--center {
	justify-content: center;
}

.jc-kicker--center::after {
	width: 38px;
	height: 1px;
	content: "";
	background: currentColor;
}

.jc-section-heading {
	max-width: 760px;
	margin-bottom: clamp(38px, 5vw, 72px);
}

.jc-section-heading h2 {
	margin-bottom: 18px;
	font-size: clamp(2.35rem, 5vw, 4.9rem);
	letter-spacing: -0.025em;
}

.jc-section-heading p {
	max-width: 620px;
	margin-bottom: 0;
	color: var(--jc-ink-soft);
	font-size: 1.08rem;
}

.jc-section-heading--row {
	display: flex;
	max-width: none;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
}

.jc-section-heading--row > div {
	max-width: 760px;
}

.jc-text-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--jc-wine);
	font-family: var(--jc-sans);
	font-size: 0.68rem;
	font-weight: 650;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-decoration: none;
	text-transform: uppercase;
}

.jc-text-link::after {
	content: "→";
	font-family: var(--jc-serif-text);
	font-size: 1rem;
	transition: transform 180ms ease;
}

.jc-text-link:hover::after,
.jc-text-link:focus::after {
	transform: translateX(4px);
}

.jc-button {
	display: inline-flex;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	padding: 14px 24px;
	border: 1px solid var(--jc-wine);
	color: var(--jc-paper-light);
	background: var(--jc-wine);
	font-family: var(--jc-sans);
	font-size: 0.7rem;
	font-weight: 650;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 180ms ease, background 180ms ease;
}

.jc-button:hover,
.jc-button:focus {
	color: var(--jc-wine);
	background: transparent;
}

.jc-button--dark {
	border-color: var(--jc-paper-light);
	color: var(--jc-ink);
	background: var(--jc-paper-light);
}

.jc-button--dark:hover,
.jc-button--dark:focus {
	color: var(--jc-paper-light);
	background: transparent;
}

/* Header */
.site-header {
	position: relative;
	z-index: 50;
	border-bottom: 1px solid var(--jc-line-strong);
	background: rgba(250, 246, 237, 0.94);
}

.site-header__inner {
	display: grid;
	min-height: 102px;
	grid-template-columns: minmax(220px, 1fr) auto;
	align-items: center;
	gap: 36px;
}

.site-branding {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	gap: 16px;
	color: var(--jc-ink);
	text-decoration: none;
}

.site-branding:hover,
.site-branding:focus {
	color: var(--jc-ink);
}

.site-branding__mark {
	display: grid;
	width: 56px;
	height: 56px;
	place-items: center;
	border: 1px solid var(--jc-bronze);
	border-radius: 50%;
	color: var(--jc-wine);
	font-family: var(--jc-serif-display);
	font-size: 1.3rem;
	letter-spacing: -0.08em;
}

.site-branding__name {
	display: block;
	font-family: var(--jc-serif-display);
	font-size: 1.42rem;
	letter-spacing: 0.1em;
	line-height: 1.05;
	text-transform: uppercase;
}

.site-branding__tagline {
	display: block;
	margin-top: 7px;
	color: var(--jc-ink-soft);
	font-family: var(--jc-sans);
	font-size: 0.55rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	line-height: 1.2;
	text-transform: uppercase;
}

.custom-logo-link img {
	width: auto;
	max-width: 230px;
	max-height: 64px;
}

.site-navigation {
	display: flex;
	align-items: center;
	gap: clamp(22px, 3.2vw, 52px);
}

.site-navigation ul {
	display: flex;
	align-items: center;
	gap: clamp(20px, 2.8vw, 44px);
	padding: 0;
	margin: 0;
	list-style: none;
}

.site-navigation a {
	position: relative;
	font-family: var(--jc-sans);
	font-size: 0.64rem;
	font-weight: 650;
	letter-spacing: 0.15em;
	text-decoration: none;
	text-transform: uppercase;
}

.site-navigation a::after {
	position: absolute;
	right: 0;
	bottom: -9px;
	left: 0;
	height: 1px;
	content: "";
	background: var(--jc-wine);
	transform: scaleX(0);
	transition: transform 180ms ease;
}

.site-navigation a:hover::after,
.site-navigation a:focus::after,
.site-navigation .current-menu-item > a::after {
	transform: scaleX(1);
}

.menu-toggle {
	display: none;
	width: 46px;
	height: 46px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--jc-line-strong);
	color: var(--jc-ink);
	background: transparent;
}

.menu-toggle__lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after {
	display: block;
	width: 19px;
	height: 1px;
	background: currentColor;
}

.menu-toggle__lines {
	position: relative;
}

.menu-toggle__lines::before,
.menu-toggle__lines::after {
	position: absolute;
	left: 0;
	content: "";
}

.menu-toggle__lines::before { top: -6px; }
.menu-toggle__lines::after { top: 6px; }

/* Homepage hero */
.home-hero {
	position: relative;
	min-height: min(770px, calc(100vh - 102px));
	overflow: hidden;
	border-bottom: 1px solid var(--jc-line-strong);
	background:
		linear-gradient(90deg, rgba(23, 20, 16, 0.06) 1px, transparent 1px) 0 0 / 25% 100%,
		linear-gradient(180deg, rgba(255, 255, 255, 0.44), transparent 48%),
		var(--jc-paper);
}

.home-hero::before {
	position: absolute;
	top: 6%;
	right: -8vw;
	width: min(52vw, 680px);
	aspect-ratio: 1;
	border: 1px solid rgba(114, 36, 25, 0.15);
	border-radius: 50%;
	box-shadow:
		0 0 0 3vw rgba(114, 36, 25, 0.025),
		0 0 0 7vw rgba(114, 36, 25, 0.018);
	content: "";
}

.home-hero::after {
	position: absolute;
	right: -6%;
	bottom: -17%;
	width: 48%;
	height: 58%;
	border: 1px solid rgba(38, 31, 24, 0.2);
	border-bottom: 0;
	content: "";
	clip-path: polygon(50% 0, 100% 30%, 92% 30%, 92% 100%, 8% 100%, 8% 30%, 0 30%);
	background:
		repeating-linear-gradient(90deg, transparent 0 10%, rgba(38, 31, 24, 0.12) 10% 10.5%, transparent 10.5% 20%),
		linear-gradient(180deg, transparent 0 29%, rgba(38, 31, 24, 0.08) 29% 30%, transparent 30%);
	opacity: 0.75;
}

.home-hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	min-height: inherit;
	grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.55fr);
	align-items: center;
	gap: clamp(40px, 8vw, 120px);
	padding-block: clamp(80px, 10vw, 142px);
}

.home-hero__copy {
	max-width: 870px;
}

.home-hero h1 {
	max-width: 840px;
	margin-bottom: 30px;
	color: var(--jc-wine-dark);
	font-size: clamp(3.7rem, 7.8vw, 8.4rem);
	letter-spacing: -0.045em;
	line-height: 0.91;
	text-wrap: balance;
}

.home-hero__lead {
	max-width: 630px;
	margin-bottom: 36px;
	color: var(--jc-ink-soft);
	font-size: clamp(1.1rem, 1.9vw, 1.4rem);
}

.home-hero__aside {
	align-self: end;
	padding: 30px 0 0 28px;
	border-left: 1px solid var(--jc-line-strong);
}

.home-hero__aside::before {
	display: block;
	margin-bottom: 18px;
	color: var(--jc-bronze);
	content: "✦";
	font-size: 1.2rem;
}

.home-hero__aside blockquote {
	margin: 0;
	font-family: var(--jc-serif-display);
	font-size: clamp(1.3rem, 2.2vw, 1.8rem);
	line-height: 1.3;
}

.home-hero__aside cite {
	display: block;
	margin-top: 18px;
	font-family: var(--jc-sans);
	font-size: 0.62rem;
	font-style: normal;
	font-weight: 650;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Work cards */
.works-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--jc-line-strong);
	border-bottom: 1px solid var(--jc-line-strong);
}

.work-card {
	position: relative;
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: clamp(28px, 3.2vw, 46px);
	border-right: 1px solid var(--jc-line);
}

.work-card:last-child {
	border-right: 0;
}

.work-card__number {
	display: block;
	margin-bottom: 50px;
	color: var(--jc-bronze);
	font-family: var(--jc-serif-display);
	font-size: 1.22rem;
}

.work-card__image {
	position: relative;
	margin-bottom: 30px;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background:
		linear-gradient(145deg, rgba(114, 36, 25, 0.14), transparent 48%),
		repeating-linear-gradient(90deg, rgba(38, 31, 24, 0.07) 0 1px, transparent 1px 18px),
		var(--jc-paper-deep);
}

.work-card__image::after {
	position: absolute;
	inset: 8%;
	border: 1px solid rgba(38, 31, 24, 0.22);
	content: "";
	pointer-events: none;
}

.work-card__image img {
	width: 100%;
	height: 100%;
	filter: sepia(0.38) saturate(0.65) contrast(0.95);
	object-fit: cover;
	transition: transform 500ms ease, filter 500ms ease;
}

.work-card:hover .work-card__image img {
	filter: sepia(0.2) saturate(0.78) contrast(1);
	transform: scale(1.025);
}

.work-card__author {
	margin-bottom: 10px;
	color: var(--jc-wine);
	font-family: var(--jc-sans);
	font-size: 0.64rem;
	font-weight: 650;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.work-card h3 {
	margin-bottom: 18px;
	font-size: clamp(1.75rem, 3vw, 2.65rem);
	letter-spacing: -0.02em;
}

.work-card h3 a {
	text-decoration: none;
}

.work-card__excerpt {
	margin-bottom: 28px;
	color: var(--jc-ink-soft);
	font-size: 0.95rem;
}

.work-card .jc-text-link {
	margin-top: auto;
}

.jc-empty-state {
	padding: 32px;
	border: 1px solid var(--jc-line);
	color: var(--jc-ink-soft);
	background: rgba(255, 255, 255, 0.22);
}

/* Guides */
.guides-section {
	color: var(--jc-paper-light);
	background: var(--jc-ink);
}

.guides-section .jc-kicker {
	color: #c6a865;
}

.guides-section .jc-section-heading p {
	color: rgba(250, 246, 237, 0.68);
}

.guide-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid rgba(250, 246, 237, 0.22);
}

.guide-card {
	position: relative;
	display: flex;
	min-height: 390px;
	flex-direction: column;
	padding: clamp(30px, 4vw, 52px);
	border-right: 1px solid rgba(250, 246, 237, 0.18);
	background: linear-gradient(160deg, transparent 45%, rgba(114, 36, 25, 0.25));
}

.guide-card:last-child {
	border-right: 0;
}

.guide-card__state {
	margin-bottom: auto;
	color: #c6a865;
	font-family: var(--jc-sans);
	font-size: 0.62rem;
	font-weight: 650;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.guide-card__author {
	margin-bottom: 10px;
	color: rgba(250, 246, 237, 0.55);
	font-size: 0.92rem;
}

.guide-card h3 {
	margin-bottom: 25px;
	font-size: clamp(2rem, 3.4vw, 3.3rem);
	letter-spacing: -0.025em;
}

.guide-card h3 a {
	color: var(--jc-paper-light);
	text-decoration: none;
}

.guide-card .jc-text-link {
	color: #d2b775;
}

/* Essays */
.essay-list {
	border-top: 1px solid var(--jc-line-strong);
}

.essay-row {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) minmax(180px, 0.5fr) auto;
	align-items: center;
	gap: clamp(24px, 5vw, 72px);
	padding-block: 34px;
	border-bottom: 1px solid var(--jc-line);
}

.essay-row time {
	color: var(--jc-wine);
	font-family: var(--jc-sans);
	font-size: 0.63rem;
	font-weight: 650;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.essay-row h3 {
	margin: 0;
	font-size: clamp(1.55rem, 2.7vw, 2.5rem);
}

.essay-row h3 a {
	text-decoration: none;
}

.essay-row p {
	margin: 0;
	color: var(--jc-ink-soft);
	font-size: 0.92rem;
}

/* Project manifesto */
.project-band {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	border-block: 1px solid var(--jc-line-strong);
}

.project-band__content {
	padding: clamp(54px, 7vw, 100px) var(--jc-gutter);
}

.project-band__content > * {
	max-width: 590px;
	margin-inline: auto;
}

.project-band__content h2 {
	font-size: clamp(2.5rem, 4.7vw, 4.8rem);
}

.project-band__content p {
	color: var(--jc-ink-soft);
}

.project-band__quote {
	position: relative;
	display: grid;
	min-height: 460px;
	place-items: center;
	overflow: hidden;
	padding: clamp(42px, 7vw, 90px);
	color: var(--jc-paper-light);
	background:
		repeating-linear-gradient(90deg, transparent 0 16.5%, rgba(250, 246, 237, 0.08) 16.5% 16.8%),
		linear-gradient(145deg, var(--jc-wine), var(--jc-wine-dark));
}

.project-band__quote::before {
	position: absolute;
	top: 12%;
	left: 50%;
	width: 42%;
	aspect-ratio: 1;
	border: 1px solid rgba(250, 246, 237, 0.12);
	border-radius: 50%;
	content: "";
	transform: translateX(-50%);
}

.project-band__quote blockquote {
	position: relative;
	z-index: 1;
	max-width: 620px;
	margin: 0;
	text-align: center;
}

.project-band__quote p {
	margin-bottom: 25px;
	font-family: var(--jc-serif-display);
	font-size: clamp(2rem, 4.4vw, 4.25rem);
	line-height: 1.12;
}

.project-band__quote cite {
	font-family: var(--jc-sans);
	font-size: 0.66rem;
	font-style: normal;
	font-weight: 650;
	letter-spacing: 0.17em;
	text-transform: uppercase;
}

/* Work single */
.work-hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--jc-line-strong);
	background: var(--jc-paper);
}

.work-hero::before {
	position: absolute;
	inset: 0 0 0 50%;
	content: "";
	background:
		repeating-linear-gradient(90deg, rgba(38, 31, 24, 0.055) 0 1px, transparent 1px 12%),
		linear-gradient(140deg, rgba(114, 36, 25, 0.08), transparent);
}

.work-hero__inner {
	position: relative;
	display: grid;
	min-height: 660px;
	grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.72fr);
	align-items: center;
	gap: clamp(50px, 9vw, 132px);
	padding-block: clamp(78px, 10vw, 142px);
}

.work-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 13px 30px;
	margin-bottom: 26px;
	color: var(--jc-wine);
	font-family: var(--jc-sans);
	font-size: 0.67rem;
	font-weight: 650;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.work-hero h1 {
	max-width: 820px;
	margin-bottom: 28px;
	color: var(--jc-wine-dark);
	font-size: clamp(4rem, 8vw, 8.6rem);
	letter-spacing: -0.05em;
	line-height: 0.91;
	text-wrap: balance;
}

.work-hero__excerpt {
	max-width: 650px;
	margin: 0;
	color: var(--jc-ink-soft);
	font-size: clamp(1.08rem, 1.8vw, 1.36rem);
}

.work-hero__cover {
	position: relative;
	width: min(100%, 420px);
	justify-self: center;
	aspect-ratio: 3 / 4;
	box-shadow: 26px 28px 0 rgba(25, 24, 21, 0.1);
	background:
		linear-gradient(145deg, rgba(114, 36, 25, 0.26), transparent 42%),
		repeating-linear-gradient(90deg, rgba(38, 31, 24, 0.08) 0 1px, transparent 1px 28px),
		var(--jc-paper-deep);
}

.work-hero__cover::after {
	position: absolute;
	inset: 7%;
	border: 1px solid rgba(38, 31, 24, 0.25);
	content: "";
	pointer-events: none;
}

.work-hero__cover img {
	width: 100%;
	height: 100%;
	filter: sepia(0.3) saturate(0.72);
	object-fit: cover;
}

.work-hero__monogram {
	display: grid;
	position: absolute;
	inset: 7%;
	place-items: center;
	font-family: var(--jc-serif-display);
	font-size: clamp(4rem, 8vw, 7rem);
	text-transform: uppercase;
}

.work-nav {
	border-bottom: 1px solid var(--jc-line-strong);
	background: rgba(250, 246, 237, 0.9);
}

.work-nav ul {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(20px, 4vw, 54px);
	padding: 22px 0;
	margin: 0;
	list-style: none;
}

.work-nav a {
	font-family: var(--jc-sans);
	font-size: 0.62rem;
	font-weight: 650;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
}

.work-layout {
	display: grid;
	grid-template-columns: 210px minmax(0, 760px);
	justify-content: center;
	gap: clamp(50px, 8vw, 120px);
}

.work-layout__label {
	padding-top: 8px;
	color: var(--jc-wine);
	font-family: var(--jc-sans);
	font-size: 0.64rem;
	font-weight: 650;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.work-prose {
	font-size: clamp(1.05rem, 1.7vw, 1.22rem);
}

.work-prose > *:first-child {
	margin-top: 0;
}

.work-prose h2 {
	margin-top: 2.4em;
	font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.work-prose h3 {
	margin-top: 2em;
	font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.work-prose p,
.work-prose ul,
.work-prose ol,
.work-prose blockquote {
	margin-bottom: 1.35em;
}

.work-prose blockquote {
	padding-left: 30px;
	margin-left: 0;
	border-left: 2px solid var(--jc-wine);
	color: var(--jc-ink-soft);
	font-family: var(--jc-serif-display);
	font-size: 1.35em;
}

.guide-feature {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	border: 1px solid rgba(250, 246, 237, 0.2);
}

.guide-feature__index {
	display: flex;
	min-height: 420px;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(36px, 5vw, 68px);
	border-right: 1px solid rgba(250, 246, 237, 0.2);
	color: #c6a865;
	background:
		repeating-linear-gradient(90deg, transparent 0 20%, rgba(250, 246, 237, 0.07) 20% 20.4%),
		var(--jc-wine-dark);
}

.guide-feature__index strong {
	font-family: var(--jc-serif-display);
	font-size: clamp(4rem, 9vw, 8rem);
	font-weight: 400;
	line-height: 0.8;
}

.guide-feature__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(36px, 6vw, 86px);
}

.guide-feature__content h2 {
	font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.guide-feature__content p {
	color: rgba(250, 246, 237, 0.7);
}

.resources-list {
	padding: 0;
	margin: 0;
	border-top: 1px solid var(--jc-line-strong);
	list-style: none;
}

.resources-list li {
	display: grid;
	grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr) auto;
	align-items: center;
	gap: 30px;
	padding: 26px 0;
	border-bottom: 1px solid var(--jc-line);
}

.resources-list strong {
	font-family: var(--jc-serif-display);
	font-size: 1.3rem;
	font-weight: 400;
}

.resources-list span {
	color: var(--jc-ink-soft);
	font-size: 0.92rem;
}

.resources-list a {
	color: var(--jc-wine);
	font-family: var(--jc-sans);
	font-size: 0.64rem;
	font-weight: 650;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
}

/* Archives and generic content */
.archive-hero,
.page-hero {
	padding-block: clamp(88px, 12vw, 170px);
	border-bottom: 1px solid var(--jc-line-strong);
	text-align: center;
	background:
		linear-gradient(90deg, transparent 49.9%, rgba(38, 31, 24, 0.12) 50%, transparent 50.1%),
		var(--jc-paper);
}

.archive-hero h1,
.page-hero h1 {
	max-width: 1000px;
	margin: 0 auto 22px;
	color: var(--jc-wine-dark);
	font-size: clamp(4rem, 9vw, 8.5rem);
	letter-spacing: -0.045em;
}

.archive-hero p,
.page-hero p {
	max-width: 680px;
	margin: 0 auto;
	color: var(--jc-ink-soft);
	font-size: 1.12rem;
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--jc-line-strong);
	border-left: 1px solid var(--jc-line-strong);
}

.archive-grid .work-card {
	border-right: 1px solid var(--jc-line-strong);
	border-bottom: 1px solid var(--jc-line-strong);
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.post-card {
	padding: 30px;
	border: 1px solid var(--jc-line);
}

.post-card time {
	color: var(--jc-wine);
	font-family: var(--jc-sans);
	font-size: 0.62rem;
	font-weight: 650;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.post-card h2,
.post-card h3 {
	margin: 18px 0;
	font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.post-card h2 a,
.post-card h3 a {
	text-decoration: none;
}

.post-card p {
	color: var(--jc-ink-soft);
	font-size: 0.95rem;
}

.entry-content {
	width: min(calc(100% - (2 * var(--jc-gutter))), var(--jc-narrow));
	margin-inline: auto;
	padding-block: var(--jc-section);
}

.entry-content > * {
	max-width: 100%;
}

.entry-content h2 {
	margin-top: 2.2em;
	font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.entry-content h3 {
	margin-top: 1.8em;
	font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.entry-content blockquote {
	padding-left: 30px;
	margin: 2em 0;
	border-left: 2px solid var(--jc-wine);
	font-family: var(--jc-serif-display);
	font-size: 1.35em;
}

.navigation.pagination {
	margin-top: 48px;
	font-family: var(--jc-sans);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.page-numbers {
	display: grid;
	min-width: 42px;
	height: 42px;
	place-items: center;
	padding: 0 12px;
	border: 1px solid var(--jc-line);
	text-decoration: none;
}

.page-numbers.current {
	color: var(--jc-paper-light);
	background: var(--jc-wine);
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--jc-line-strong);
	background: var(--jc-paper);
}

.site-footer__main {
	display: grid;
	grid-template-columns: 1.1fr 0.8fr 0.8fr 1.1fr;
	gap: clamp(28px, 5vw, 70px);
	padding-block: clamp(54px, 7vw, 92px);
}

.site-footer__brand p {
	max-width: 280px;
	color: var(--jc-ink-soft);
	font-size: 0.9rem;
}

.site-footer h2 {
	margin-bottom: 23px;
	font-family: var(--jc-sans);
	font-size: 0.65rem;
	font-weight: 650;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

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

.site-footer li {
	margin: 8px 0;
}

.site-footer li a {
	font-size: 0.92rem;
	text-decoration: none;
}

.site-footer__colophon {
	padding-block: 20px;
	color: #c6a865;
	background: var(--jc-ink);
	font-family: var(--jc-sans);
	font-size: 0.58rem;
	font-weight: 650;
	letter-spacing: 0.18em;
	text-align: center;
	text-transform: uppercase;
}

/* WordPress block alignment */
.alignwide {
	width: min(1080px, calc(100vw - (2 * var(--jc-gutter))));
	max-width: none;
	margin-right: 50%;
	margin-left: 50%;
	transform: translateX(-50%);
}

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

@media (max-width: 1020px) {
	.site-header__inner {
		grid-template-columns: 1fr auto;
	}

	.menu-toggle {
		display: flex;
	}

	.site-navigation {
		position: fixed;
		inset: 102px 0 auto;
		display: none;
		padding: 36px var(--jc-gutter) 52px;
		border-bottom: 1px solid var(--jc-line-strong);
		background: var(--jc-paper-light);
	}

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

	.site-navigation ul {
		align-items: flex-start;
		flex-direction: column;
		gap: 22px;
	}

	.site-navigation a {
		font-family: var(--jc-serif-display);
		font-size: 1.8rem;
		font-weight: 400;
		letter-spacing: 0;
		text-transform: none;
	}

	.home-hero__inner,
	.work-hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(220px, 0.46fr);
		gap: 50px;
	}

	.works-grid,
	.archive-grid,
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.works-grid .work-card:nth-child(2) {
		border-right: 0;
	}

	.works-grid .work-card:nth-child(3) {
		grid-column: 1 / -1;
	}

	.guide-list {
		grid-template-columns: 1fr;
	}

	.guide-card {
		min-height: 300px;
		border-right: 0;
		border-bottom: 1px solid rgba(250, 246, 237, 0.18);
	}

	.essay-row {
		grid-template-columns: 120px minmax(0, 1fr) auto;
	}

	.essay-row p {
		display: none;
	}

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

@media (max-width: 760px) {
	body {
		font-size: 17px;
	}

	.site-header__inner {
		min-height: 82px;
	}

	.site-branding__mark {
		width: 46px;
		height: 46px;
	}

	.site-branding__name {
		font-size: 1.12rem;
	}

	.site-branding__tagline {
		display: none;
	}

	.site-navigation {
		inset-block-start: 82px;
	}

	.home-hero {
		min-height: auto;
	}

	.home-hero__inner,
	.work-hero__inner {
		display: block;
		min-height: auto;
	}

	.home-hero h1,
	.work-hero h1 {
		font-size: clamp(3.35rem, 16vw, 5.2rem);
	}

	.home-hero__aside {
		max-width: 390px;
		margin-top: 68px;
	}

	.home-hero::before {
		top: 35%;
		width: 78vw;
	}

	.home-hero::after {
		display: none;
	}

	.jc-section-heading--row {
		align-items: flex-start;
		flex-direction: column;
	}

	.works-grid,
	.archive-grid,
	.post-grid {
		grid-template-columns: 1fr;
	}

	.works-grid .work-card,
	.works-grid .work-card:nth-child(2),
	.works-grid .work-card:nth-child(3) {
		grid-column: auto;
		border-right: 0;
		border-bottom: 1px solid var(--jc-line);
	}

	.work-card__number {
		margin-bottom: 25px;
	}

	.work-card__image {
		aspect-ratio: 5 / 4;
	}

	.essay-row {
		grid-template-columns: 1fr auto;
		gap: 12px 20px;
	}

	.essay-row time {
		grid-column: 1 / -1;
	}

	.project-band,
	.guide-feature {
		grid-template-columns: 1fr;
	}

	.project-band__quote {
		min-height: 410px;
	}

	.work-hero__cover {
		width: min(82%, 330px);
		margin: 60px auto 16px;
	}

	.work-nav {
		overflow-x: auto;
	}

	.work-nav ul {
		width: max-content;
		justify-content: flex-start;
		padding-inline: var(--jc-gutter);
	}

	.work-layout {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.guide-feature__index {
		min-height: 230px;
		border-right: 0;
		border-bottom: 1px solid rgba(250, 246, 237, 0.2);
	}

	.resources-list li {
		grid-template-columns: 1fr auto;
		gap: 8px 20px;
	}

	.resources-list span {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.site-footer__main {
		grid-template-columns: 1fr;
	}

	.alignwide,
	.alignfull {
		width: calc(100vw - (2 * var(--jc-gutter)));
	}
}

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}
