/* ==========================================================================
   Azziup Editorial 2.0 — main stylesheet
   Mobile-first, no framework. Accent colour is injected from the Customizer.
   ========================================================================== */

/* 1. Tokens
   -------------------------------------------------------------------------- */
:root {
	--accent: #1f5c4a;
	--accent-strong: #16402f;
	--accent-soft: #e4ece9;
	--accent-tint: #8fb0a5;

	--paper: #f8f7f3;
	--white: #ffffff;
	--surface: #efece5;
	--ink: #1c1b19;
	--text: #33312d;
	--muted: #66625a;
	--line: #e0dcd2;
	--line-soft: #ebe8e0;

	--serif: "Newsreader", Charter, "Iowan Old Style", Cambria, Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--container: 1240px;
	--reading: 720px;
	--gutter: 1.25rem;
	--radius: 3px;
	--section-gap: 4rem;
	--header-h: 64px;
}

@media (min-width: 768px) {
	:root {
		--gutter: 2rem;
		--section-gap: 5.5rem;
		--header-h: 76px;
	}
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-optical-sizing: auto;
}

body.drawer-open {
	overflow: hidden;
}

img,
svg,
video,
iframe,
embed,
object {
	max-width: 100%;
}

img {
	display: block;
	height: auto;
}

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

a:hover {
	color: var(--accent-strong);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--ink);
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	overflow-wrap: break-word;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

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

.icon {
	display: block;
	flex-shrink: 0;
}

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

.skip-link:focus {
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1rem;
	clip: auto;
	clip-path: none;
	background: var(--ink);
	color: var(--paper);
	text-decoration: none;
	white-space: normal;
}

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

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

/* 3. Layout
   -------------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--reading {
	max-width: calc(var(--reading) + var(--gutter) * 2);
}

.site-main {
	min-width: 0;
	padding-bottom: var(--section-gap);
}

.home-section {
	margin-top: var(--section-gap);
}

/* 4. Buttons, forms
   -------------------------------------------------------------------------- */
.button,
button.button,
input[type="submit"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 46px;
	padding: 0.65rem 1.3rem;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--paper);
	font-family: var(--sans);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--white);
}

.button--ghost {
	background: transparent;
	color: var(--ink);
}

.button--ghost:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	min-height: 46px;
	padding: 0.65rem 0.9rem;
	border: 1px solid #cbc6ba;
	border-radius: var(--radius);
	background: var(--white);
	font-family: var(--sans);
	font-size: 1rem;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 0;
	border-color: var(--accent);
}

label {
	display: block;
	margin-bottom: 0.35rem;
	font-family: var(--sans);
	font-size: 0.9rem;
	font-weight: 600;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	width: 100%;
	max-width: 600px;
}

.search-form .search-field {
	flex: 1;
	min-width: 0;
}

.search-submit {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 46px;
	padding: 0 1.1rem;
	border: 0;
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--paper);
	font-weight: 600;
	cursor: pointer;
}

.search-submit:hover {
	background: var(--accent);
}

@media (max-width: 479px) {
	.search-submit-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}
}

/* 5. Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
	position: relative;
	z-index: 60;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: var(--header-h);
}

.site-branding {
	min-width: 0;
	margin-right: auto;
}

.site-title {
	margin: 0;
	font-family: var(--serif);
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.025em;
}

.site-title a {
	color: var(--ink);
	text-decoration: none;
}

.custom-logo-link {
	display: block;
}

.custom-logo {
	width: auto;
	max-height: 40px;
}

@media (min-width: 768px) {
	.site-title {
		font-size: 2rem;
	}

	.custom-logo {
		max-height: 48px;
	}
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.15rem;
}

.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background-color 0.2s;
}

.icon-button:hover {
	background: var(--surface);
}

.header-search {
	padding: 1.25rem 0;
	border-top: 1px solid var(--line);
	background: var(--surface);
}

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

.primary-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav a {
	color: var(--ink);
	font-family: var(--sans);
	text-decoration: none;
}

.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current-category-ancestor > a {
	color: var(--accent);
}

/* Mobile drawer */
@media (max-width: 1023px) {
	.primary-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 80;
		display: flex;
		flex-direction: column;
		width: min(88vw, 380px);
		height: 100dvh;
		overflow-y: auto;
		background: var(--paper);
		box-shadow: -20px 0 40px -20px rgba(28, 27, 25, 0.35);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.28s ease, visibility 0.28s;
	}

	.primary-nav.is-open {
		transform: none;
		visibility: visible;
	}

	.drawer-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0.75rem 0.75rem 0.75rem var(--gutter);
		border-bottom: 1px solid var(--line);
	}

	.drawer-title {
		font-family: var(--serif);
		font-size: 1.35rem;
		font-weight: 700;
		color: var(--ink);
	}

	.primary-nav > ul {
		padding: 0.5rem var(--gutter);
	}

	.primary-nav li {
		position: relative;
		border-bottom: 1px solid var(--line-soft);
	}

	.primary-nav li a {
		display: block;
		padding: 0.95rem 3rem 0.95rem 0;
		font-size: 1.1rem;
		font-weight: 500;
	}

	.submenu-toggle {
		position: absolute;
		top: 0.35rem;
		right: -0.6rem;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border: 0;
		background: transparent;
		color: var(--ink);
		cursor: pointer;
	}

	.submenu-toggle[aria-expanded="true"] .icon {
		transform: rotate(180deg);
	}

	.primary-nav .sub-menu {
		display: none;
		padding-left: 1rem;
		border-top: 1px solid var(--line-soft);
	}

	.primary-nav .sub-menu.is-open {
		display: block;
	}

	.primary-nav .sub-menu li:last-child {
		border-bottom: 0;
	}

	.primary-nav .sub-menu a {
		font-size: 1rem;
		color: var(--text);
	}

	.drawer-foot {
		display: grid;
		gap: 1.25rem;
		margin-top: auto;
		padding: 1.5rem var(--gutter) 2rem;
		background: var(--surface);
	}

	.drawer-backdrop {
		position: fixed;
		inset: 0;
		z-index: 70;
		background: rgba(28, 27, 25, 0.45);
	}

	.drawer-backdrop[hidden] {
		display: none;
	}
}

/* Desktop navigation */
@media (min-width: 1024px) {
	.header-inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
	}

	.header-actions {
		justify-self: end;
	}

	.menu-toggle,
	.drawer-head,
	.drawer-foot,
	.drawer-backdrop,
	.submenu-toggle {
		display: none !important;
	}

	.primary-nav > ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0 1.75rem;
	}

	.primary-nav li {
		position: relative;
	}

	.primary-nav > ul > li > a {
		display: block;
		padding: 1.65rem 0;
		font-size: 0.95rem;
		font-weight: 500;
		background-image: linear-gradient(currentColor, currentColor);
		background-repeat: no-repeat;
		background-position: 0 calc(100% - 1.35rem);
		background-size: 0 2px;
		transition: background-size 0.25s;
	}

	.primary-nav > ul > li > a:hover,
	.primary-nav > ul > li.current-menu-item > a {
		background-size: 100% 2px;
	}

	.primary-nav .menu-item-has-children > a {
		padding-right: 1rem;
	}

	.primary-nav .menu-item-has-children > a::after {
		content: "";
		position: absolute;
		top: 50%;
		right: 0;
		width: 0.36rem;
		height: 0.36rem;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: translateY(-75%) rotate(45deg);
	}

	.primary-nav .sub-menu {
		position: absolute;
		top: calc(100% - 0.75rem);
		left: -1rem;
		min-width: 230px;
		padding: 0.5rem;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: var(--white);
		box-shadow: 0 18px 40px -18px rgba(28, 27, 25, 0.28);
		opacity: 0;
		pointer-events: none;
		transform: translateY(6px);
		transition: opacity 0.18s, transform 0.18s;
	}

	.primary-nav .sub-menu .sub-menu {
		top: -0.5rem;
		left: 100%;
	}

	.primary-nav li:hover > .sub-menu,
	.primary-nav li:focus-within > .sub-menu {
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}

	.primary-nav .sub-menu a {
		display: block;
		padding: 0.55rem 0.75rem;
		border-radius: 2px;
		font-size: 0.93rem;
	}

	.primary-nav .sub-menu a:hover {
		background: var(--surface);
	}

	.primary-nav .sub-menu .menu-item-has-children > a::after {
		right: 0.75rem;
		transform: translateY(-50%) rotate(-45deg);
	}
}

/* 6. Shared article elements
   -------------------------------------------------------------------------- */
.entry-category {
	display: inline-block;
	margin-bottom: 0.5rem;
	color: var(--accent);
	font-family: var(--sans);
	font-size: 0.8rem;
	font-weight: 650;
	letter-spacing: 0.015em;
	line-height: 1.3;
	text-decoration: none;
}

.entry-category:hover {
	color: var(--accent-strong);
	text-decoration: underline;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem 0.6rem;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.82rem;
	line-height: 1.4;
}

.meta-sep {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #b5afa3;
}

.byline {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.byline-avatar {
	width: 30px;
	height: 30px;
	margin-right: 0.2rem;
	border-radius: 50%;
}

.author-link {
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

.author-link:hover {
	color: var(--accent);
	text-decoration: underline;
}

.entry-media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--surface);
	aspect-ratio: 3 / 2;
}

.entry-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

a.entry-media:hover img,
.card:hover .entry-media img {
	transform: scale(1.03);
}

.entry-media--azziup-thumb {
	aspect-ratio: 1 / 1;
}

/* Typographic stand-in for posts without a featured image */
.media-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 1rem 1.1rem;
	background: var(--accent-soft);
	color: var(--accent);
	overflow: hidden;
}

.ph-letter {
	align-self: flex-end;
	font-family: var(--serif);
	font-size: clamp(4rem, 12vw, 7.5rem);
	font-weight: 600;
	line-height: 0.8;
	opacity: 0.35;
}

.ph-label {
	font-family: var(--sans);
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.02em;
}

.entry-media--azziup-thumb .media-placeholder {
	padding: 0.5rem;
}

.entry-media--azziup-thumb .ph-letter {
	align-self: center;
	margin: auto;
	font-size: 2.4rem;
}

.entry-media--azziup-thumb .ph-label {
	display: none;
}

/* Section headings: title, hairline, link */
.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 1rem;
	margin-bottom: 1.75rem;
}

.section-title {
	margin: 0;
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.section-rule {
	flex: 1;
	min-width: 1.5rem;
	height: 1px;
	background: var(--line);
	transform: translateY(-0.3em);
}

@media (max-width: 559px) {
	.section-rule {
		display: none;
	}

	.section-title {
		flex: 1 1 auto;
	}
}

.section-more {
	flex-shrink: 0;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--line);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

.section-more:hover {
	color: var(--accent);
	text-decoration-color: currentColor;
}

/* 7. Cards
   -------------------------------------------------------------------------- */
.card-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.75rem 2rem;
}

@media (min-width: 640px) {
	.card-grid--3,
	.card-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.card-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 3.25rem 2.25rem;
	}

	.card-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 2rem 1.75rem;
	}
}

.card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding-top: 1.1rem;
}

.card-title {
	margin-bottom: 0.55rem;
	font-size: 1.45rem;
	line-height: 1.18;
}

.card-title a,
.lead-title a,
.mini-title a,
.trend-title a,
.row-card-title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 1px;
	transition: background-size 0.3s;
}

.card-title a:hover,
.lead-title a:hover,
.mini-title a:hover,
.trend-title a:hover,
.row-card-title a:hover,
.card-title a:focus-visible,
.lead-title a:focus-visible {
	background-size: 100% 1px;
}

.card-excerpt {
	margin-bottom: 0.9rem;
	color: var(--text);
	font-family: var(--serif);
	font-size: 1.08rem;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-excerpt p {
	margin: 0;
}

.card .entry-meta {
	margin-top: auto;
}

.card--large .card-title {
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);
	line-height: 1.1;
}

.card--large .entry-media {
	aspect-ratio: 16 / 10;
}

.card--compact .card-title {
	font-size: 1.2rem;
	line-height: 1.22;
}

.card--compact .card-body {
	padding-top: 0.85rem;
}

.card--text .card-body {
	padding-top: 1.1rem;
	border-top: 1px solid var(--ink);
}

.card--text .card-title {
	font-size: 1.3rem;
}

.card--feature {
	display: grid;
	gap: 1.25rem;
}

.card--feature .card-body {
	padding-top: 0;
}

.card--feature .card-title {
	font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.5rem);
	line-height: 1.1;
}

.card--feature .card-excerpt {
	font-size: 1.15rem;
	-webkit-line-clamp: 4;
}

@media (min-width: 800px) {
	.card--feature {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		align-items: center;
		gap: 2.5rem;
	}

	.card--feature .entry-media {
		aspect-ratio: 16 / 10;
	}

	.card--feature .entry-meta {
		margin-top: 0;
	}
}

.card-grid .list-ad {
	grid-column: 1 / -1;
}

/* Phones: long lists become compact headline rows (first story keeps its image) */
@media (max-width: 639px) {
	.card-grid--stream {
		gap: 0;
	}

	.card-grid--stream > .card {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 104px;
		gap: 1rem;
		align-items: start;
		padding: 1.25rem 0;
		border-top: 1px solid var(--line);
	}

	.latest .card-grid--stream > .card:first-child {
		display: flex;
		padding-top: 0;
		border-top: 0;
	}

	.card-grid--stream > .card .entry-media {
		grid-column: 2;
		grid-row: 1;
		aspect-ratio: 1 / 1;
	}

	.latest .card-grid--stream > .card:first-child .entry-media {
		aspect-ratio: 3 / 2;
	}

	.card-grid--stream > .card .card-body {
		grid-column: 1;
		grid-row: 1;
		padding-top: 0;
	}

	.latest .card-grid--stream > .card:first-child .card-body {
		padding-top: 1.1rem;
	}

	.card-grid--stream > .card:not(:first-child) .card-excerpt,
	.archive-feature + .card-grid--stream > .card .card-excerpt,
	.card-grid--stream > .card .byline {
		display: none;
	}

	.latest .card-grid--stream > .card:first-child .byline {
		display: inline-flex;
	}

	.card-grid--stream > .card .card-title {
		font-size: 1.2rem;
		line-height: 1.22;
	}

	.latest .card-grid--stream > .card:first-child .card-title {
		font-size: 1.5rem;
	}

	.card-grid--stream > .card .ph-letter {
		align-self: center;
		margin: auto;
		font-size: 2.6rem;
	}

	.card-grid--stream > .card .ph-label {
		display: none;
	}

	.card-grid--stream > .card .byline + .meta-sep {
		display: none;
	}

	.latest .card-grid--stream > .card:first-child .byline + .meta-sep {
		display: block;
	}

	.card-grid--stream .list-ad {
		padding: 1.25rem 0;
		border-top: 1px solid var(--line);
	}
}

/* Mini story: headline left, square thumbnail right */
.mini-story {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 84px;
	gap: 1rem;
	align-items: start;
	padding: 1.15rem 0;
	border-top: 1px solid var(--line);
}

.mini-story:first-of-type {
	border-top: 0;
	padding-top: 0;
}

@media (min-width: 480px) {
	.mini-story {
		grid-template-columns: minmax(0, 1fr) 100px;
	}
}

.mini-story .entry-category {
	margin-bottom: 0.3rem;
	font-size: 0.75rem;
}

.mini-title {
	margin-bottom: 0.4rem;
	font-size: 1.18rem;
	line-height: 1.22;
}

.mini-story .entry-meta {
	font-size: 0.78rem;
}

/* Row cards (search) */
.row-list {
	display: grid;
}

.row-card {
	display: grid;
	gap: 1rem;
	padding: 2rem 0;
	border-top: 1px solid var(--line);
}

.row-list > .row-card:first-child {
	border-top: 0;
	padding-top: 0;
}

.row-card-title {
	margin-bottom: 0.5rem;
	font-size: 1.5rem;
	line-height: 1.2;
}

@media (min-width: 700px) {
	.row-card {
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 2rem;
	}
}

.row-list .list-ad {
	padding: 1.5rem 0;
	border-top: 1px solid var(--line);
}

/* 8. Homepage
   -------------------------------------------------------------------------- */
.home-main {
	padding-top: 1.75rem;
}

@media (min-width: 768px) {
	.home-main {
		padding-top: 2.5rem;
	}
}

.hero {
	display: grid;
	gap: 2.5rem;
}

.lead .entry-media {
	aspect-ratio: 16 / 10;
}

.lead-body {
	padding-top: 1.35rem;
}

.lead-title {
	margin-bottom: 0.75rem;
	font-size: clamp(2.1rem, 1.25rem + 3.3vw, 3.6rem);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -0.025em;
}

.lead-excerpt {
	max-width: 60ch;
	margin-bottom: 1.1rem;
	color: var(--text);
	font-family: var(--serif);
	font-size: 1.22rem;
	line-height: 1.5;
}

.lead-excerpt p {
	margin: 0;
}

.lead--text .lead-body {
	padding-top: 0;
}

.lead--text .lead-title {
	font-size: clamp(2.5rem, 1.4rem + 4.5vw, 4.6rem);
	max-width: 16ch;
}

.hero-side-title {
	margin: 0 0 1.15rem;
	padding-bottom: 0.65rem;
	border-bottom: 2px solid var(--ink);
	font-family: var(--sans);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--ink);
}

@media (min-width: 1024px) {
	.hero {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		gap: 3rem;
		align-items: start;
	}

	.hero--single {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero--single .lead:not(.lead--text) {
		display: grid;
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		gap: 3rem;
		align-items: center;
	}

	.hero--single .lead:not(.lead--text) .lead-body {
		padding-top: 0;
	}

	.lead--text {
		align-self: center;
	}

	.hero-side {
		padding-left: 3rem;
		border-left: 1px solid var(--line);
	}
}

/* In focus */
.focus-grid {
	display: grid;
	gap: 2.5rem;
}

.focus-side {
	display: grid;
	gap: 2.25rem;
}

.focus-pair {
	display: grid;
	gap: 2rem;
}

@media (min-width: 600px) {
	.focus-pair {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.75rem;
	}
}

@media (min-width: 1024px) {
	.focus-grid {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		gap: 3rem;
	}

	.focus-side {
		align-content: space-between;
	}
}

.focus-pair--text .card-excerpt {
	-webkit-line-clamp: 2;
	font-size: 1rem;
}

/* Editor's picks / Most discussed: the one dark band */
.trending {
	margin-top: var(--section-gap);
	padding: calc(var(--section-gap) * 0.75) 0;
	background: var(--ink);
	color: #d9d5cc;
}

.trending .section-title {
	color: var(--paper);
}

.trending .section-rule {
	background: rgba(255, 255, 255, 0.18);
}

.trending .section-more {
	color: var(--paper);
	text-decoration-color: rgba(255, 255, 255, 0.3);
}

.trend-grid {
	display: grid;
	gap: 2.25rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: trend;
}

@media (min-width: 600px) {
	.trend-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.trend-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.trend-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2.25rem 2.5rem;
	}

	.trend-grid--3 .trend-title {
		font-size: 1.45rem;
	}
}

.trend-item {
	position: relative;
	min-width: 0;
	counter-increment: trend;
}

.trend-body {
	padding-top: 1rem;
}

.trend-title {
	margin-bottom: 0.5rem;
	color: var(--paper);
	font-size: 1.25rem;
	line-height: 1.22;
}

.trending .entry-category {
	color: var(--accent-tint);
}

.trending .entry-meta {
	color: #a8a397;
}

.trending .entry-media {
	background: #2b2a27;
}

.is-ranked .trend-body::before {
	content: counter(trend);
	display: block;
	margin-bottom: 0.4rem;
	color: var(--accent-tint);
	font-family: var(--serif);
	font-size: 2.6rem;
	font-weight: 600;
	line-height: 1;
}

/* Category sections */
.split {
	display: grid;
	gap: 2.5rem;
}

.split-list {
	display: grid;
	align-content: start;
}

@media (min-width: 1024px) {
	.split {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		gap: 3rem;
	}

	.split .card--feature {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		gap: 2rem;
	}

	.split-list {
		padding-left: 2.5rem;
		border-left: 1px solid var(--line);
	}
}

/* Newsletter */
.newsletter {
	display: grid;
	gap: 1.5rem;
}

.newsletter-title {
	margin-bottom: 0.5rem;
}

.newsletter-text {
	margin: 0;
}

.subscribe-form {
	margin: 0;
}

.subscribe-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.subscribe-row input {
	flex: 1 1 220px;
}

.subscribe-status {
	min-height: 1.2em;
	margin: 0.6rem 0 0;
	font-size: 0.875rem;
}

.subscribe-status:empty {
	display: none;
}

.admin-hint {
	margin: 0.75rem 0 0;
	font-size: 0.8rem;
	opacity: 0.8;
}

.newsletter--band {
	margin-top: var(--section-gap);
	padding: 2.5rem 1.5rem;
	border-radius: var(--radius);
	background: var(--accent);
	color: rgba(255, 255, 255, 0.86);
}

.newsletter--band .newsletter-title {
	color: var(--white);
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.newsletter--band .newsletter-text {
	max-width: 46ch;
	font-family: var(--serif);
	font-size: 1.15rem;
	line-height: 1.5;
}

.newsletter--band input[type="email"] {
	border-color: transparent;
}

.newsletter--band .button {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

.newsletter--band .button:hover {
	border-color: var(--white);
	background: var(--white);
	color: var(--ink);
}

.newsletter--band :focus-visible {
	outline-color: var(--white);
}

@media (min-width: 900px) {
	.newsletter--band {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		align-items: center;
		gap: 4rem;
		padding: 3.5rem 4rem;
	}
}

/* 9. Archives and search
   -------------------------------------------------------------------------- */
.breadcrumbs {
	padding-top: 1.5rem;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.82rem;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs li {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.breadcrumbs li + li::before {
	content: "/";
	margin: 0 0.55rem;
	color: #b5afa3;
}

.breadcrumbs a {
	color: var(--muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--accent);
	text-decoration: underline;
}

.breadcrumbs [aria-current] {
	max-width: 42ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.archive-header {
	padding: 2rem 0 2.25rem;
	margin-bottom: 2.75rem;
	border-bottom: 1px solid var(--ink);
}

@media (min-width: 768px) {
	.archive-header {
		padding: 3rem 0 2.75rem;
		margin-bottom: 3.5rem;
	}
}

.archive-header--author {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1.5rem;
}

.archive-avatar {
	border-radius: 50%;
}

.archive-context {
	margin: 0 0 0.5rem;
	color: var(--accent);
	font-family: var(--sans);
	font-size: 0.85rem;
	font-weight: 650;
}

.archive-title {
	margin: 0;
	font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.4rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.page-number {
	color: var(--muted);
	font-size: 0.45em;
	font-weight: 400;
	letter-spacing: 0;
}

.archive-description {
	max-width: 62ch;
	margin-top: 1rem;
	color: var(--text);
	font-family: var(--serif);
	font-size: 1.2rem;
	line-height: 1.5;
}

.archive-description p:last-child {
	margin-bottom: 0;
}

.archive-count {
	margin: 1rem 0 0;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.875rem;
}

.subcats {
	margin: -1.5rem 0 2.75rem;
}

.archive-feature {
	margin-bottom: 3.5rem;
	padding-bottom: 3.5rem;
	border-bottom: 1px solid var(--line);
}

.search-header-form {
	margin-top: 1.5rem;
}

.search-header .archive-title {
	overflow-wrap: anywhere;
}

/* Pagination */
.pagination {
	margin-top: 3.5rem;
	font-family: var(--sans);
}

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

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 0.85rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	border-color: var(--ink);
}

.pagination .page-numbers.current {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

.pagination .page-numbers.dots {
	border-color: transparent;
}

/* Empty states, chips */
.empty-state {
	max-width: 640px;
	padding: 1rem 0 2rem;
}

.empty-title {
	font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.3rem);
}

.empty-state p {
	color: var(--text);
}

.empty-state .search-form {
	margin-top: 1.5rem;
}

.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.chip-list a {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

.chip-list a:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* 404 */
.error-404 {
	max-width: 760px;
	padding: 3rem 0 1rem;
}

.error-code {
	margin: 0;
	color: var(--accent);
	font-family: var(--sans);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.error-title {
	margin: 0.75rem 0 1rem;
	font-size: clamp(2.4rem, 1.5rem + 4vw, 4.4rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.error-text {
	max-width: 52ch;
	font-family: var(--serif);
	font-size: 1.25rem;
	line-height: 1.5;
}

.error-actions {
	display: grid;
	gap: 1rem;
	justify-items: start;
	margin-top: 2rem;
}

/* 10. Article
   -------------------------------------------------------------------------- */
.article-intro {
	max-width: 880px;
	padding: 1.75rem 0 2rem;
}

@media (min-width: 768px) {
	.article-intro {
		padding: 2.5rem 0 2.5rem;
	}
}

.article-title {
	margin-bottom: 1rem;
	font-size: clamp(2.3rem, 1.4rem + 3.8vw, 4rem);
	line-height: 1.04;
	letter-spacing: -0.03em;
}

.article-dek {
	max-width: 46em;
	margin-bottom: 1.75rem;
	color: var(--text);
	font-family: var(--serif);
	font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
	line-height: 1.45;
}

.article-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
}

.article-image {
	margin: 0 auto 2.5rem;
}

.article-image img {
	width: 100%;
	border-radius: var(--radius);
}

@media (min-width: 768px) {
	.article-image {
		margin-bottom: 3.5rem;
	}
}

.article-image figcaption,
.entry-content figcaption,
.wp-caption-text {
	margin-top: 0.65rem;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.85rem;
	line-height: 1.45;
}

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3.5rem;
}

.no-sidebar .article-main {
	width: 100%;
	max-width: var(--reading);
	margin-inline: auto;
}

@media (min-width: 1100px) {
	.has-sidebar .article-layout {
		grid-template-columns: minmax(0, var(--reading)) 300px;
		justify-content: space-between;
		gap: 4rem;
	}
}

/* Share */
.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem;
	font-family: var(--sans);
}

.share-label {
	margin-right: 0.4rem;
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 600;
}

.share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--white);
	color: var(--ink);
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s;
}

.share-link .icon {
	width: 17px;
	height: 17px;
}

.share-link:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.share-status {
	margin-left: 0.35rem;
	color: var(--muted);
	font-size: 0.82rem;
}

/* Article body */
.entry-content {
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.2rem;
	line-height: 1.68;
	overflow-wrap: break-word;
}

@media (min-width: 768px) {
	.entry-content {
		font-size: 1.3rem;
		line-height: 1.66;
	}
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 1.35em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin-top: 1.8em;
	margin-bottom: 0.55em;
	letter-spacing: -0.015em;
}

.entry-content h2 {
	font-size: 1.6em;
	line-height: 1.15;
}

.entry-content h3 {
	font-size: 1.3em;
}

.entry-content h4 {
	font-size: 1.1em;
}

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

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}

.entry-content li {
	margin-bottom: 0.45em;
}

.entry-content li::marker {
	color: var(--accent);
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin-left: 0;
	margin-right: 0;
	padding: 0.1em 0 0.1em 1.4em;
	border-left: 2px solid var(--accent);
	color: var(--ink);
	font-size: 1.15em;
	font-style: italic;
	line-height: 1.5;
}

.entry-content blockquote p:last-of-type {
	margin-bottom: 0.5em;
}

.entry-content blockquote cite,
.entry-content .wp-block-quote cite {
	display: block;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.72em;
	font-style: normal;
}

.entry-content .wp-block-pullquote {
	margin: 2.25em 0;
	padding: 1.75em 0;
	border-top: 2px solid var(--ink);
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.entry-content .wp-block-pullquote blockquote {
	padding: 0;
	border: 0;
	font-size: 1.45em;
	font-style: normal;
	font-weight: 600;
	line-height: 1.25;
}

.entry-content code,
.entry-content kbd {
	padding: 0.1em 0.35em;
	border-radius: 3px;
	background: var(--surface);
	font-family: var(--mono);
	font-size: 0.78em;
}

.entry-content pre {
	overflow-x: auto;
	padding: 1.1rem 1.25rem;
	border-radius: var(--radius);
	background: #22211e;
	color: #ebe7de;
	font-family: var(--mono);
	font-size: 0.85rem;
	line-height: 1.6;
}

.entry-content pre code {
	padding: 0;
	background: none;
	color: inherit;
	font-size: inherit;
}

.entry-content figure {
	margin-left: 0;
	margin-right: 0;
}

.entry-content img {
	border-radius: 2px;
}

.entry-content .alignleft {
	float: left;
	max-width: 50%;
	margin: 0.3em 1.5em 1em 0;
}

.entry-content .alignright {
	float: right;
	max-width: 50%;
	margin: 0.3em 0 1em 1.5em;
}

.entry-content .aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

@media (max-width: 599px) {
	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		max-width: 100%;
		margin: 0 0 1.35em;
	}
}

@media (min-width: 900px) {
	.no-sidebar .entry-content .alignwide {
		max-width: none;
		margin-left: -8rem;
		margin-right: -8rem;
	}
}

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

.table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--sans);
	font-size: 0.75em;
	line-height: 1.5;
}

.entry-content th,
.entry-content td {
	padding: 0.7em 0.85em;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.entry-content thead th {
	border-bottom: 2px solid var(--ink);
	color: var(--ink);
	font-weight: 700;
}

.entry-content .wp-block-separator {
	margin: 2.5em auto;
	border: 0;
	border-top: 1px solid var(--line);
}

.entry-content .wp-block-button__link {
	font-size: 1rem;
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 2rem;
	font-family: var(--sans);
}

.article-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

.article-tags .chip-list {
	margin: 0;
}

/* Author box */
.author-box {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	margin-top: 2.5rem;
	padding: 1.75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}

.author-box .author-avatar {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 50%;
}

.author-name {
	margin-bottom: 0.35rem;
	font-size: 1.35rem;
}

.author-name a {
	color: var(--ink);
	text-decoration: none;
}

.author-name a:hover {
	color: var(--accent);
}

.author-bio {
	margin-bottom: 0.6rem;
	color: var(--text);
	font-family: var(--serif);
	font-size: 1.08rem;
	line-height: 1.5;
}

.author-more {
	font-family: var(--sans);
	font-size: 0.875rem;
	font-weight: 600;
}

@media (max-width: 479px) {
	.author-box {
		flex-direction: column;
		padding: 1.25rem;
	}
}

/* Previous / next */
.post-nav {
	margin-top: 2.5rem;
}

.post-nav .nav-links {
	display: grid;
	gap: 1rem;
}

@media (min-width: 640px) {
	.post-nav .nav-links {
		grid-template-columns: 1fr 1fr;
	}

	.post-nav .nav-next {
		grid-column: 2;
		text-align: right;
	}
}

.post-nav a {
	display: block;
	height: 100%;
	padding: 1.1rem 0;
	border-top: 2px solid var(--ink);
	text-decoration: none;
}

.nav-label {
	display: block;
	margin-bottom: 0.3rem;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.8rem;
	font-weight: 600;
}

.nav-title {
	display: block;
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.25;
}

.post-nav a:hover .nav-title {
	color: var(--accent);
}

.related-posts {
	margin-top: var(--section-gap);
}

.article-comments {
	max-width: var(--reading);
}

/* Comments */
.comments-area {
	margin-top: var(--section-gap);
	font-family: var(--sans);
}

.comments-title,
.comment-reply-title {
	font-size: 1.6rem;
}

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

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

@media (min-width: 640px) {
	.comment-list .children {
		padding-left: 2rem;
	}
}

.comment-body {
	padding: 1.35rem 0;
	border-bottom: 1px solid var(--line);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
	margin-bottom: 0.65rem;
	font-size: 0.85rem;
}

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

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

.comment-author .fn {
	color: var(--ink);
	font-style: normal;
	font-weight: 700;
}

.comment-author .says {
	display: none;
}

.comment-metadata a {
	color: var(--muted);
	text-decoration: none;
}

.comment-content {
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.1rem;
	line-height: 1.55;
}

.reply a {
	font-size: 0.85rem;
	font-weight: 600;
}

.comment-respond {
	margin-top: 2rem;
}

.comment-form p {
	margin-bottom: 1rem;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.comment-form-cookies-consent label {
	font-weight: 400;
}

.comment-notes,
.logged-in-as {
	color: var(--muted);
	font-size: 0.9rem;
}

/* Pages */
.page-article-header {
	padding: 2.5rem 0 2rem;
	margin-bottom: 2.25rem;
	border-bottom: 1px solid var(--ink);
}

.page-article-header .article-title {
	margin: 0;
}

.page-image {
	margin: 0 0 2.25rem;
}

/* 11. Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
	display: grid;
	align-content: start;
	gap: 2.75rem;
	font-family: var(--sans);
}

.widget {
	margin: 0;
}

.widget-title {
	margin-bottom: 1rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--ink);
	font-family: var(--sans);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

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

.widget li {
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--line-soft);
}

.widget a {
	color: var(--ink);
	text-decoration: none;
}

.widget a:hover {
	color: var(--accent);
}

.widget .chip-list {
	margin: 0;
}

.widget .chip-list li {
	padding: 0;
	border: 0;
}

.side-list li {
	display: grid;
	gap: 0.25rem;
	padding: 0.85rem 0;
}

.side-title,
.trend-list a {
	font-family: var(--serif);
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.25;
}

.side-list time {
	color: var(--muted);
	font-size: 0.78rem;
}

.trend-list.is-ranked {
	counter-reset: side;
}

.trend-list.is-ranked li {
	display: grid;
	grid-template-columns: 2rem minmax(0, 1fr);
	counter-increment: side;
}

.trend-list.is-ranked li::before {
	content: counter(side);
	color: var(--accent);
	font-family: var(--serif);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1;
}

.newsletter--compact {
	gap: 1rem;
}

.sidebar .newsletter--compact {
	padding: 1.5rem;
	border-radius: var(--radius);
	background: var(--accent-soft);
}

.newsletter--compact .newsletter-title {
	font-size: 1.45rem;
	line-height: 1.15;
}

.newsletter--compact .newsletter-text {
	font-size: 0.92rem;
	line-height: 1.5;
}

.newsletter--compact .subscribe-row input,
.newsletter--compact .subscribe-row .button {
	flex: 1 1 100%;
}

.widget .search-form {
	max-width: none;
}

@media (min-width: 1100px) {
	.sidebar {
		position: sticky;
		top: 2rem;
	}
}

/* 12. Ad slots
   -------------------------------------------------------------------------- */
.ad-slot {
	display: block;
	max-width: 100%;
	margin: 2rem auto;
	overflow: hidden;
	clear: both;
	text-align: center;
}

.ad-slot__inner {
	max-width: 100%;
	overflow: hidden;
}

.ad-slot__inner > * {
	margin-left: auto;
	margin-right: auto;
}

.ad-label {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.7rem;
	letter-spacing: 0.03em;
}

.ad-slot--header {
	max-width: var(--container);
	margin-top: 1.25rem;
	margin-bottom: 0;
	padding-inline: var(--gutter);
}

.ad-slot--home {
	margin-top: var(--section-gap);
	margin-bottom: 0;
}

.ad-slot--in-content,
.ad-slot--after-content {
	margin: 2.25rem 0;
	font-size: 1rem;
}

.ad-slot--sidebar {
	margin: 0;
}

.list-ad .ad-slot {
	margin: 0;
}

/* 13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
	padding-top: 4rem;
	background: var(--ink);
	color: #c9c4b9;
	font-family: var(--sans);
	font-size: 0.95rem;
}

.site-footer a {
	color: #e9e5dc;
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--white);
	text-decoration: underline;
}

.site-footer :focus-visible {
	outline-color: var(--paper);
}

.footer-grid {
	display: grid;
	gap: 2.75rem;
	padding-bottom: 3.5rem;
}

@media (min-width: 640px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.footer-grid {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.35fr);
		gap: 3.5rem;
	}
}

.footer-brand .site-name {
	color: var(--paper);
	font-family: var(--serif);
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1;
}

.footer-brand .custom-logo {
	max-height: 48px;
}

.footer-brand .site-description {
	max-width: 36ch;
	margin: 1rem 0 0;
	font-family: var(--serif);
	font-size: 1.1rem;
	line-height: 1.5;
}

.footer-heading {
	margin-bottom: 1rem;
	color: var(--paper);
	font-family: var(--sans);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

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

.footer-links li {
	margin-bottom: 0.6rem;
}

.footer-follow {
	max-width: 32ch;
	margin: 0;
	font-family: var(--serif);
	font-size: 1.1rem;
	line-height: 1.5;
}

.footer-hint {
	margin: 0;
	color: #a8a397;
	font-size: 0.85rem;
}

.site-footer .newsletter--compact .newsletter-title {
	color: var(--paper);
	font-size: 1.4rem;
}

.site-footer input[type="email"] {
	border-color: #3a3833;
	background: #2a2926;
	color: var(--paper);
}

.site-footer input::placeholder {
	color: #a8a397;
}

.site-footer .button {
	border-color: var(--paper);
	background: var(--paper);
	color: var(--ink);
}

.site-footer .button:hover {
	border-color: var(--accent-tint);
	background: var(--accent-tint);
	color: var(--ink);
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #45423c;
	border-radius: 50%;
}

.social-links a:hover {
	border-color: var(--paper);
}

.social-links .icon {
	width: 18px;
	height: 18px;
}

.drawer-foot .social-links {
	margin: 0;
}

.drawer-foot .social-links a {
	border-color: var(--line);
	color: var(--ink);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 1.5rem;
	padding-bottom: 1.75rem;
	border-top: 1px solid #3a3833;
	font-size: 0.85rem;
}

.copyright {
	margin: 0;
}

/* 14. WordPress core classes
   -------------------------------------------------------------------------- */
.wp-caption {
	max-width: 100%;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 0.75rem;
}

.gallery-item {
	margin: 0;
}

.post-password-form input[type="password"] {
	max-width: 320px;
}
