@font-face {
	font-family: "Source Sans Pro";
	src: url("../fonts/SourceSansPro-Regular.ttf") format("truetype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Source Sans Pro";
	src: url("../fonts/SourceSansPro-SemiBold.ttf") format("truetype");
	font-style: normal;
	font-weight: 600;
	font-display: swap;
}

@font-face {
	font-family: "Source Sans Pro";
	src: url("../fonts/SourceSansPro-Bold.ttf") format("truetype");
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}

@font-face {
	font-family: "DM Serif Display";
	src: url("../fonts/DMSerifDisplay-Regular.ttf") format("truetype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

:root {
	color-scheme: light;
	--page: #f7f6f1;
	--surface: #fffefa;
	--ink: #242923;
	--muted: #687068;
	--line: #deded4;
	--accent: #b85e4b;
	--accent-soft: #f2ded6;
	--green-soft: #e4ebdf;
	--display: "DM Serif Display", Georgia, serif;
	--body: "Source Sans Pro", "Trebuchet MS", sans-serif;
	--frame: 1060px;
	font-family: var(--body);
	font-synthesis: none;
}

:root[data-theme="dark"] {
	color-scheme: dark;
	--page: #202824;
	--surface: #29332e;
	--ink: #f1f1e9;
	--muted: #b3beb4;
	--line: #47534b;
	--accent: #f1a48e;
	--accent-soft: #443631;
	--green-soft: #37443a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	min-width: 320px;
	margin: 0;
	background: var(--page);
	color: var(--ink);
	font-size: 17px;
	line-height: 1.55;
	transition: background-color 200ms ease, color 200ms ease;
}

body, button, input { font-family: var(--body); }

img { max-width: 100%; }

a { color: inherit; text-underline-offset: 4px; }

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

button, input { font-size: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

[hidden] { display: none !important; }

.skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 10;
	padding: 9px 13px;
	transform: translateY(-160%);
	background: var(--surface);
	color: var(--ink);
}

.skip-link:focus { transform: translateY(0); }

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

.reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 20;
	width: 100%;
	height: 3px;
	transform: scaleX(var(--reading-progress, 0));
	transform-origin: left center;
	background: var(--accent);
}

.site-header, .page-content, .site-footer, .article-layout, .text-page {
	width: min(var(--frame), calc(100% - 56px));
	margin-inline: auto;
}

.site-header {
	border-bottom: 1px solid var(--line);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-height: 118px;
}

.brand {
	display: block;
	max-width: 520px;
	color: var(--ink);
	text-decoration: none;
}

.brand:hover { color: var(--ink); }

.site-name {
	display: block;
	font-family: var(--display);
	font-size: 38px;
	line-height: 1;
}

.tagline {
	display: block;
	margin-top: 8px;
	color: var(--muted);
	font-size: 14px;
}

.header-tools {
	display: flex;
	align-items: center;
	gap: 22px;
}

.primary-nav {
	display: flex;
	align-items: center;
	gap: 21px;
	font-size: 15px;
}

.primary-nav a {
	text-decoration: none;
}

.primary-nav a[aria-current="page"] {
	color: var(--accent);
}

.theme-button {
	display: grid;
	width: 36px;
	height: 36px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--accent);
	cursor: pointer;
}

.theme-button:hover {
	background: var(--accent-soft);
}

.theme-icon {
	display: none;
	width: 24px;
	height: 24px;
	place-items: center;
	color: currentColor;
}

.theme-icon svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: currentColor;
}

:root:not([data-theme="dark"]) .theme-icon--moon,
:root[data-theme="dark"] .theme-icon--sun {
	display: grid;
}

.page-content { padding-bottom: 4px; }

.intro {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	padding: 49px 0 23px;
}

.intro h1, .text-page-header h1 {
	margin: 0;
	font-family: var(--display);
	font-size: 40px;
	font-weight: 400;
	line-height: 1.15;
}

.intro > p {
	max-width: 360px;
	margin: 0 0 4px;
	color: var(--muted);
	font-size: 15px;
}

.eyebrow, .entry-index {
	margin: 0 0 9px;
	color: var(--accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.search-row {
	display: flex;
	justify-content: flex-end;
	padding-bottom: 16px;
}

.search-field {
	width: min(100%, 280px);
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--surface);
	color: var(--ink);
}

.search-field::placeholder { color: var(--muted); }

.post-list { display: grid; }

.post-card {
	position: relative;
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	align-items: center;
	gap: 24px;
	padding: 23px 4px;
	border-bottom: 1px solid var(--line);
	animation: rise-in 420ms both;
}

.post-card:nth-child(2) { animation-delay: 45ms; }

.post-card:nth-child(3) { animation-delay: 90ms; }

.post-card--feature {
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 0;
	min-height: 390px;
	margin-bottom: 10px;
	padding: 0;
	border: 0;
	background: var(--accent-soft);
}

.post-image {
	display: block;
	overflow: hidden;
	aspect-ratio: 1;
	background: var(--green-soft);
}

.post-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.post-image:hover img { transform: scale(1.025); }

.post-card:not(.post-card--feature) .post-image { grid-column: 1; grid-row: 1; }

.post-copy { min-width: 0; }

.post-card--feature .post-copy {
	grid-column: 1;
	grid-row: 1;
	padding: 32px 38px;
}

.post-card--feature .post-image {
	grid-column: 2;
	grid-row: 1;
	height: calc(100% - 28px);
	min-height: 362px;
	margin: 14px 14px 14px 0;
	aspect-ratio: auto;
}

.post-card--feature .entry-index { margin-bottom: 12px; }

.post-card:not(.post-card--feature) .entry-index { margin-bottom: 6px; }

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	color: var(--muted);
	font-size: 13px;
}

.post-title {
	max-width: 680px;
	margin: 0;
	font-family: var(--display);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.22;
}

.post-card--feature .post-title {
	max-width: 420px;
	font-size: 40px;
}

.post-title a { text-decoration: none; }

.post-excerpt {
	max-width: 620px;
	margin: 9px 0 0;
	color: var(--muted);
	font-size: 15px;
}

.post-card--feature .post-excerpt {
	margin-top: 14px;
	font-size: 16px;
}

.text-link {
	display: inline-block;
	margin-top: 11px;
	color: var(--accent);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.post-index {
	grid-column: 1;
	grid-row: 1;
	justify-self: center;
	color: var(--accent);
	font-family: var(--display);
	font-size: 32px;
}

.empty-state {
	margin: 0;
	padding: 20px 0;
	color: var(--muted);
}

.author-note {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	align-items: center;
	gap: 17px;
	margin-top: 53px;
	padding: 20px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.author-note img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.author-note h2 {
	margin: 0;
	font-family: var(--display);
	font-size: 21px;
	font-weight: 400;
}

.author-note p {
	margin: 3px 0 0;
	color: var(--muted);
	font-size: 14px;
}

.newsletter-link {
	display: inline-block;
	padding: 8px 13px;
	border: 1px solid var(--accent);
	border-radius: 3px;
	color: var(--accent);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.newsletter-link:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

.site-footer {
	margin-top: 39px;
	padding: 24px 0 18px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
}

.footer-main {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) auto auto;
	align-items: center;
	gap: 34px;
}

.footer-brand {
	color: var(--ink);
	font-family: var(--display);
	font-size: 24px;
	text-decoration: none;
}

.footer-main p { max-width: 370px; margin: 4px 0 0; }

.footer-links { display: flex; gap: 15px; }

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

.footer-bottom {
	margin: 24px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	font-size: 12px;
}

.article-layout { --frame: 820px; }

.article { padding: 30px 0 20px; }

.article-cover {
	margin: 0 0 37px;
	background: var(--green-soft);
}

.article-cover img {
	display: block;
	width: 100%;
	max-height: 500px;
	object-fit: cover;
}

.article-header { max-width: 720px; margin: 0 auto 38px; }

.article-header .eyebrow { margin-bottom: 13px; }

.article-header h1 {
	margin: 0;
	font-family: var(--display);
	font-size: 48px;
	font-weight: 400;
	line-height: 1.1;
}

.article-header time { display: inline-block; margin-top: 13px; color: var(--muted); font-size: 14px; }

.article-body {
	max-width: 720px;
	margin-inline: auto;
	font-size: 18px;
	line-height: 1.8;
}

.article-body p { margin: 0 0 1.45em; }

.article-body h2, .article-body h3 {
	margin: 2.3em 0 0.7em;
	font-family: var(--display);
	font-weight: 400;
	line-height: 1.2;
}

.article-body h2 { font-size: 32px; }

.article-body h3 { font-size: 25px; }

.article-body ul, .article-body ol { padding-left: 1.35em; margin: 0 0 1.5em; }

.article-body li { padding-left: 0.25em; margin: 0.45em 0; }

.article-body figure { margin: 2em 0; }

.article-body figure img {
	display: block;
	width: 100%;
	height: auto;
}

.article-body figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }

.article-body blockquote {
	margin: 1.8em 0;
	padding: 3px 0 3px 20px;
	border-left: 3px solid var(--accent);
	color: var(--muted);
}

.article-body > div {
	margin-top: 38px;
	padding: 22px 0 0;
	border-top: 1px solid var(--line);
}

.article-body > div h2 { margin-top: 0; font-size: 26px; }

.article-nav {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	max-width: 720px;
	margin: 52px auto 0;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.article-nav-link {
	display: grid;
	gap: 4px;
	max-width: 48%;
	text-decoration: none;
}

.article-nav-link span { color: var(--muted); font-size: 12px; }

.article-nav-link strong { font-family: var(--display); font-size: 18px; font-weight: 400; }

.article-nav-link--newer { margin-left: auto; text-align: right; }

.text-page { --frame: 760px; min-height: 55vh; padding: 47px 0 15px; }

.text-page-header { margin-bottom: 31px; }

.text-page-header .eyebrow { margin-bottom: 10px; }

.text-page-header h1 { font-size: 43px; }

.text-page .article-body { max-width: 680px; margin-inline: 0; }

.page--all-posts .intro { padding-bottom: 23px; }

.post-list--all-posts .post-card--feature {
	grid-template-columns: 112px minmax(0, 1fr);
	min-height: 0;
	margin: 0;
	padding: 23px 4px;
	border-bottom: 1px solid var(--line);
	background: transparent;
}

.post-list--all-posts .post-card--feature .post-image {
	grid-column: 1;
	grid-row: 1;
	width: 112px;
	height: 112px;
	min-height: 0;
	margin: 0;
	aspect-ratio: 1;
}

.post-list--all-posts .post-card--feature .post-copy { grid-column: 2; grid-row: 1; padding: 0; }

.post-list--all-posts .post-card--feature .post-title { max-width: 680px; font-size: 24px; }

@keyframes rise-in {
	from { opacity: 0; transform: translateY(7px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
	.site-header, .page-content, .site-footer, .article-layout, .text-page { width: min(var(--frame), calc(100% - 36px)); }
	.header-inner { align-items: flex-start; flex-direction: column; gap: 14px; padding: 23px 0 18px; }
	.header-tools { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
	.primary-nav { flex-wrap: wrap; gap: 12px 18px; }
	.intro { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 34px; }
	.intro h1 { font-size: 34px; }
	.intro > p { max-width: 440px; }
	.post-card--feature { grid-template-columns: 1fr; }
	.post-card--feature .post-image { grid-column: 1; grid-row: 1; height: auto; min-height: 0; margin: 12px 12px 0; aspect-ratio: 1.65; }
	.post-card--feature .post-copy { grid-column: 1; grid-row: 2; padding: 22px 24px 27px; }
	.post-card--feature .post-title { font-size: 34px; }
	.post-card:not(.post-card--feature), .post-list--all-posts .post-card--feature { grid-template-columns: 76px minmax(0, 1fr); gap: 15px; }
	.post-card:not(.post-card--feature) .post-image, .post-list--all-posts .post-card--feature .post-image { width: 76px; height: 76px; }
	.post-card:not(.post-card--feature) .post-copy, .post-list--all-posts .post-card--feature .post-copy { grid-column: 2; }
	.post-card:not(.post-card--feature) .post-title, .post-list--all-posts .post-card--feature .post-title { font-size: 21px; }
	.author-note { grid-template-columns: 60px minmax(0, 1fr); gap: 13px; }
	.author-note img { width: 60px; height: 60px; }
	.author-note .newsletter-link { grid-column: 1 / -1; justify-self: start; }
	.footer-main { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; }
	.footer-links { flex-wrap: wrap; }
	.article { padding-top: 22px; }
	.article-cover { margin-bottom: 27px; }
	.article-header h1 { font-size: 38px; }
	.article-body { font-size: 17px; line-height: 1.75; }
	.article-body h2 { font-size: 29px; }
	.article-body h3 { font-size: 23px; }
	.text-page { padding-top: 34px; }
	.text-page-header h1 { font-size: 37px; }
}

@media (max-width: 440px) {
	.site-header, .page-content, .site-footer, .article-layout, .text-page { width: calc(100% - 32px); }
	.site-name { font-size: 34px; }
	.tagline { max-width: 320px; }
	.search-row { justify-content: stretch; }
	.search-field { width: 100%; }
	.post-card:not(.post-card--feature), .post-list--all-posts .post-card--feature { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
	.post-card:not(.post-card--feature) .post-image, .post-list--all-posts .post-card--feature .post-image { width: 60px; height: 60px; }
	.post-card:not(.post-card--feature) .post-title, .post-list--all-posts .post-card--feature .post-title { font-size: 19px; }
	.post-card--feature .post-title { font-size: 31px; }
	.post-index { font-size: 27px; }
	.article-header h1 { font-size: 34px; }
	.article-nav { gap: 12px; }
	.article-nav-link strong { font-size: 16px; }
}

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