/*
Theme Name: Development 2026
Theme URI: https://ryanbritton.com
Author: Ryan Britton
Description: Charcoal editorial theme. Feature photographs, a centered reading column, and article images that break out to a wider measure.
Version: 1.0.0
Text Domain: development2026
*/

:root {
	--bg: #1b1d1f;
	--bg-2: #202326;
	--text: #d9d9d6;
	--text-strong: #e4e4e1;
	--muted: #9da2a5;
	--line: #3a3e41;
	--accent: #55c7e8;
	--editorial: 900px;
	--prose: 680px;
	--gutter: 110px;
	--sans: system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
}

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

html {
	background: var(--bg);
	color: var(--text);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--serif);
	font-size: 19px;
	line-height: 1.58;
}

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

a {
	color: inherit;
}

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

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

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

.skip-link {
	position: absolute;
	left: 16px;
	top: -40px;
	background: var(--bg-2);
	color: var(--text);
	padding: 8px 12px;
	z-index: 10;
}

.skip-link:focus {
	top: 8px;
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(100% - 48px, 1280px);
	min-height: 76px;
	margin: 0 auto;
	position: relative;
	z-index: 5;
}

.brand {
	color: inherit;
	text-decoration: none;
	line-height: 1;
}

.brand-name {
	font-family: var(--serif);
	font-size: 22px;
	letter-spacing: 0.01em;
}

.brand-sub {
	margin-top: 8px;
	font-family: var(--sans);
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.28em;
	color: #b8bdc0;
}

.mast-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.mast-nav .menu {
	display: flex;
	align-items: center;
	gap: 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mast-nav a {
	font-family: var(--sans);
	font-size: 15px;
	text-decoration: none;
}

.mast-nav .menu > .menu-item > a {
	display: inline-flex;
	align-items: center;
	padding: 26px 0;
}

.mast-nav .sub-menu {
	display: none;
	position: absolute;
	z-index: 6;
	top: 100%;
	left: 0;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: var(--bg-2);
	border: 1px solid var(--line);
	min-width: 180px;
}

.mast-nav .menu-item {
	position: relative;
}

.mast-nav .menu-item:hover > .sub-menu,
.mast-nav .menu-item:focus-within > .sub-menu {
	display: block;
}

.mast-nav .current-menu-item > a,
.mast-nav .current-menu-ancestor > a,
.mast-nav .menu-item:hover > a,
.mast-nav .menu-item:focus-within > a,
.mast-nav a:hover,
.mast-nav a:focus-visible {
	color: var(--accent);
}

.mast-nav .sub-menu a {
	display: block;
	padding: 8px 14px;
}

.mast-nav .sub-menu a:hover,
.mast-nav .sub-menu a:focus-visible {
	background: #2a2e31;
	color: var(--text-strong);
}

.feature {
	width: min(100%, 1920px);
	height: 500px;
	max-height: 500px;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
	background: var(--bg-2);
}

.feature img {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center 50%;
}

.feature-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 24px;
	margin: 0;
	text-align: center;
	font-family: var(--sans);
	font-size: 12px;
	line-height: 1.45;
	color: #d8dcdd;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.feature-caption::before {
	content: "";
	display: block;
	width: 24px;
	border-top: 1px solid currentColor;
	margin: 0 auto 8px;
}

.article-wrap {
	padding: 58px 24px 80px;
}

.editorial {
	position: relative;
	max-width: var(--editorial);
	margin-inline: auto;
}

.prose,
.entry-content > p,
.entry-content > h1,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > h5,
.entry-content > h6,
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote,
.entry-content > pre,
.entry-content > .syntaxhighlighter,
.entry-content > table {
	max-width: var(--prose);
	margin-left: auto;
	margin-right: auto;
}

.article-title,
.entry-content h2,
.entry-content h3 {
	font-weight: 400;
	color: var(--text-strong);
}

.article-title {
	margin-top: 0;
	margin-bottom: 30px;
	font-size: clamp(38px, 4.3vw, 43.5px);
	line-height: 1.04;
	letter-spacing: -0.025em;
}

.title-wide .article-title {
	max-width: none;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	text-align: left;
}

.entry-content h2 {
	margin-top: 1.4em;
	margin-bottom: 0.6em;
	font-size: 34px;
	line-height: 1.1;
}

.entry-content h3 {
	margin-top: 1.3em;
	margin-bottom: 0.5em;
	font-size: 24px;
	line-height: 1.2;
}

.entry-content p,
.entry-content li {
	font-size: 19px;
	line-height: 1.58;
	color: #d1d1ce;
}

.entry-content p {
	max-width: var(--prose);
	margin-top: 0;
	margin-bottom: 22px;
	margin-left: auto;
	margin-right: auto;
}

.entry-content .footnotes {
	max-width: var(--prose);
	margin-left: auto;
	margin-right: auto;
}

.entry-content hr {
	max-width: var(--prose);
	height: 0;
	margin: 2.25em auto;
	border: 0;
	border-top: 1px solid var(--line);
	background: none;
	opacity: 0.7;
}

.meta-divider {
	display: block;
	width: 10%;
	max-width: 27px;
	height: 0;
	margin: 0 auto 20px;
	border: 0;
	border-top: 1px solid var(--line);
}

.single .meta-divider {
	width: 40px;
	max-width: none;
}

.entry-content a {
	text-underline-offset: 3px;
}

.entry-content blockquote {
	margin: 0 auto 22px;
	padding-left: 16px;
	border-left: 2px solid var(--line);
	color: var(--muted);
}

.entry-content pre,
.entry-content code,
.entry-content .syntaxhighlighter {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.85em;
}

.entry-content pre {
	padding: 16px 18px;
	overflow: auto;
	background: var(--bg-2);
	border: 1px solid var(--line);
}

.meta {
	position: absolute;
	left: auto;
	top: 4px;
	right: calc(100% - var(--gutter) + 18px);
	width: max-content;
	max-width: none;
	padding-right: 14px;
	border-right: 2px solid var(--accent);
	text-align: right;
	white-space: nowrap;
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.8;
	letter-spacing: 0.12em;
	color: #c7cbcd;
	text-transform: uppercase;
}

.meta span {
	display: block;
}

.meta a {
	text-decoration: none;
}

.entry-content > figure,
.entry-content > .wp-caption,
.entry-content > .gallery,
.entry-content > .wp-block-image,
.entry-content > .wp-block-gallery,
.entry-content > .wp-block-embed,
.entry-content > iframe,
.entry-content > img {
	width: 100%;
	max-width: none;
	margin-top: 38px;
	margin-bottom: 48px;
	margin-left: 0;
	margin-right: 0;
}

.entry-content .gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.entry-content .gallery-item {
	float: none;
	margin: 0;
}

.entry-content .gallery-columns-1 .gallery-item { width: 100%; }
.entry-content .gallery-columns-2 .gallery-item { width: calc((100% - 16px) / 2); }
.entry-content .gallery-columns-3 .gallery-item { width: calc((100% - 32px) / 3); }
.entry-content .gallery-columns-4 .gallery-item { width: calc((100% - 48px) / 4); }
.entry-content .gallery-columns-5 .gallery-item { width: calc((100% - 64px) / 5); }
.entry-content .gallery-columns-6 .gallery-item { width: calc((100% - 80px) / 6); }
.entry-content .gallery-columns-7 .gallery-item { width: calc((100% - 96px) / 7); }
.entry-content .gallery-columns-8 .gallery-item { width: calc((100% - 112px) / 8); }
.entry-content .gallery-columns-9 .gallery-item { width: calc((100% - 128px) / 9); }

.entry-content .gallery-item img {
	width: 100%;
	height: auto;
	display: block;
}

.entry-content .gallery-caption {
	max-width: none;
	margin: 8px 0 0;
}

.entry-content > .narrow,
.entry-content > figure.narrow,
.entry-content > .wp-caption.narrow,
.entry-content > .wp-block-image.narrow,
.entry-content > .wp-block-gallery.narrow,
.entry-content > .wp-block-embed.narrow,
.entry-content > img.narrow,
.entry-content > .gallery.narrow,
.entry-content .post-columns.narrow {
	width: auto;
	max-width: var(--prose);
	margin-left: auto;
	margin-right: auto;
}

.rounded {
	border-radius: 8px;
}

.hidden {
	display: none !important;
}

.entry-content .header-flair,
.entry-content .header-flair p,
.entry-content p.header-flair {
	color: var(--accent);
	font-family: var(--sans);
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.4;
}

.entry-content .header-flair > p {
	margin-top: 0;
	margin-bottom: 0;
}

.entry-content .text-left,
.entry-content .text-left p,
.entry-content .text-left li {
	text-align: left;
}

.entry-content .text-center,
.entry-content .text-center p,
.entry-content .text-center li {
	text-align: center;
}

.entry-content .text-right,
.entry-content .text-right p,
.entry-content .text-right li {
	text-align: right;
}

.more-button {
	max-width: var(--prose);
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	padding-bottom: 6px;
}

a.more-link {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.recipe-box {
	max-width: var(--prose);
	margin: 2em auto;
	padding: 28px;
	border: 1px solid var(--line);
	background: var(--bg-2);
}

.recipe-header,
.recipe-detail {
	display: flex;
	gap: 24px;
	margin-bottom: 24px;
}

.recipe-title {
	flex: 1 1 70%;
}

.recipe-title h2,
.recipe-ingredients h3,
.recipe-instructions h3,
.recipe-notes h3 {
	margin-top: 0;
}

.recipe-header img {
	flex: 0 0 96px;
	width: 96px;
	height: auto;
}

.recipe-ingredients {
	flex: 0 0 40%;
}

.recipe-instructions {
	flex: 1 1 60%;
}

.entry-content .post-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	width: 100%;
	max-width: none;
	margin: 38px 0 48px;
}

.entry-content .post-columns.post-columns-bordered,
.entry-content .post-columns.post-columns-embossed {
	background: var(--bg-2);
	border: 1px solid var(--line);
	padding: 30px;
}

.entry-content .post-columns.post-columns-embossed {
	border-radius: 8px;
}

.entry-content .post-columns.post-columns-align-top {
	align-items: flex-start;
}

.entry-content .post-columns.post-columns-align-middle {
	align-items: center;
}

.entry-content .post-columns.post-columns-align-bottom {
	align-items: flex-end;
}

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

.entry-content .post-columns p,
.entry-content .post-columns h2,
.entry-content .post-columns h3,
.entry-content .post-columns h4,
.entry-content .post-columns li,
.entry-content .post-columns figure,
.entry-content .post-columns .wp-caption {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.entry-content .post-column,
.entry-content .post-column-100 {
	flex: 0 0 100%;
	max-width: 100%;
	width: 100%;
}

.entry-content .post-column-20 {
	flex: 0 0 calc(20% - 24px);
	max-width: calc(20% - 24px);
	width: calc(20% - 24px);
}

.entry-content .post-column-25 {
	flex: 0 0 calc(25% - 22.5px);
	max-width: calc(25% - 22.5px);
	width: calc(25% - 22.5px);
}

.entry-content .post-column-33 {
	flex: 0 0 calc(33.333% - 20px);
	max-width: calc(33.333% - 20px);
	width: calc(33.333% - 20px);
}

.entry-content .post-column-40 {
	flex: 0 0 calc(40% - 18px);
	max-width: calc(40% - 18px);
	width: calc(40% - 18px);
}

.entry-content .post-column-50 {
	flex: 0 0 calc(50% - 15px);
	max-width: calc(50% - 15px);
	width: calc(50% - 15px);
}

.entry-content .post-column-60 {
	flex: 0 0 calc(60% - 12px);
	max-width: calc(60% - 12px);
	width: calc(60% - 12px);
}

.entry-content .post-column-67 {
	flex: 0 0 calc(66.667% - 10px);
	max-width: calc(66.667% - 10px);
	width: calc(66.667% - 10px);
}

.entry-content .post-column-75 {
	flex: 0 0 calc(75% - 7.5px);
	max-width: calc(75% - 7.5px);
	width: calc(75% - 7.5px);
}

.entry-content .post-column-80 {
	flex: 0 0 calc(80% - 6px);
	max-width: calc(80% - 6px);
	width: calc(80% - 6px);
}

.entry-content .post-float-left,
.entry-content .post-float-left-20,
.entry-content .post-float-left-25,
.entry-content .post-float-left-33,
.entry-content .post-float-left-40,
.entry-content .post-float-left-50,
.entry-content .post-float-left-60,
.entry-content .post-float-left-67,
.entry-content .post-float-left-75,
.entry-content .post-float-left-80 {
	float: left;
	margin: 0 30px 20px 0;
	max-width: 100%;
}

.entry-content .post-float-right,
.entry-content .post-float-right-20,
.entry-content .post-float-right-25,
.entry-content .post-float-right-33,
.entry-content .post-float-right-40,
.entry-content .post-float-right-50,
.entry-content .post-float-right-60,
.entry-content .post-float-right-67,
.entry-content .post-float-right-75,
.entry-content .post-float-right-80 {
	float: right;
	margin: 0 0 20px 30px;
	max-width: 100%;
}

.entry-content .post-float-left,
.entry-content .post-float-left-50,
.entry-content .post-float-right,
.entry-content .post-float-right-50 {
	width: 50%;
}

.entry-content .post-float-left-20,
.entry-content .post-float-right-20 {
	width: 20%;
}

.entry-content .post-float-left-25,
.entry-content .post-float-right-25 {
	width: 25%;
}

.entry-content .post-float-left-33,
.entry-content .post-float-right-33 {
	width: 33.333%;
}

.entry-content .post-float-left-40,
.entry-content .post-float-right-40 {
	width: 40%;
}

.entry-content .post-float-left-60,
.entry-content .post-float-right-60 {
	width: 60%;
}

.entry-content .post-float-left-67,
.entry-content .post-float-right-67 {
	width: 66.667%;
}

.entry-content .post-float-left-75,
.entry-content .post-float-right-75 {
	width: 75%;
}

.entry-content .post-float-left-80,
.entry-content .post-float-right-80 {
	width: 80%;
}

.entry-content figcaption,
.entry-content .wp-caption-text {
	margin-top: 8px;
	text-align: center;
	font-family: var(--sans);
	font-size: 12px;
	line-height: 1.4;
	color: var(--muted);
}

.article-nav {
	max-width: var(--editorial);
	margin: 54px auto 0;
	padding-top: 28px;
	border-top: 1px solid var(--line);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

.article-nav a {
	font-family: var(--serif);
	font-size: 15px;
	line-height: 1.35;
	color: #d0d0cd;
	text-decoration: none;
}

.article-nav small {
	display: block;
	margin-bottom: 10px;
	font-family: var(--sans);
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.2em;
	color: var(--muted);
}

.article-nav .next {
	text-align: right;
}

.comments-area,
.listing,
.page-article {
	max-width: var(--editorial);
	margin: 48px auto 0;
	padding: 0 24px;
}

.comments-area {
	font-family: var(--sans);
	font-size: 15px;
}

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

.comment-form input,
.comment-form textarea {
	width: 100%;
	max-width: var(--prose);
	background: var(--bg-2);
	color: var(--text);
	border: 1px solid var(--line);
	font-family: var(--serif);
	font-size: 16px;
}

.comment-form input[type="submit"] {
	width: auto;
	cursor: pointer;
}

.listing {
	padding-top: 24px;
	padding-bottom: 80px;
}

.listing-item {
	max-width: var(--prose);
	margin: 0 auto 80px;
}

.listing-item a {
	text-decoration: none;
}

.listing-photo {
	display: block;
	position: relative;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	margin-bottom: 16px;
}

.listing-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center 50%;
}

.listing-item h2 {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 400;
	color: var(--text-strong);
}

.listing-item time,
.archive-label {
	font-family: var(--sans);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.home-slides {
	width: min(100%, 1920px);
	margin: 0 auto 24px;
}

.home-slide {
	position: relative;
}

.home-slide img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 70vh;
	object-fit: contain;
}

.home-slide figcaption {
	position: absolute;
	left: 24px;
	bottom: 20px;
	margin: 0;
	font-family: var(--serif);
	font-size: 28px;
}

.home-slide a {
	text-decoration: none;
}

.posts-nav,
.site-footer {
	max-width: var(--editorial);
	margin: 0 auto;
	padding: 24px;
	font-family: var(--sans);
	font-size: 13px;
	color: var(--muted);
}

.posts-nav {
	display: flex;
	justify-content: space-between;
}

.site-footer {
	border-top: 1px solid var(--line);
}

@media (max-width: 1120px) {
	.meta {
		position: static;
		width: auto;
		max-width: var(--prose);
		margin: 0 auto 24px;
		white-space: normal;
	}
}

@media (max-width: 767px) {
	.recipe-header,
	.recipe-detail,
	.recipe-title,
	.recipe-ingredients,
	.recipe-instructions {
		display: block;
		width: 100%;
		flex: none;
	}

	.entry-content .post-columns {
		display: block;
	}

	.entry-content .post-columns > * {
		margin-bottom: 20px;
	}

	.entry-content .post-column,
	.entry-content .post-column-20,
	.entry-content .post-column-25,
	.entry-content .post-column-33,
	.entry-content .post-column-40,
	.entry-content .post-column-50,
	.entry-content .post-column-60,
	.entry-content .post-column-67,
	.entry-content .post-column-75,
	.entry-content .post-column-80,
	.entry-content .post-column-100,
	.entry-content .post-float-left,
	.entry-content .post-float-left-20,
	.entry-content .post-float-left-25,
	.entry-content .post-float-left-33,
	.entry-content .post-float-left-40,
	.entry-content .post-float-left-50,
	.entry-content .post-float-left-60,
	.entry-content .post-float-left-67,
	.entry-content .post-float-left-75,
	.entry-content .post-float-left-80,
	.entry-content .post-float-right,
	.entry-content .post-float-right-20,
	.entry-content .post-float-right-25,
	.entry-content .post-float-right-33,
	.entry-content .post-float-right-40,
	.entry-content .post-float-right-50,
	.entry-content .post-float-right-60,
	.entry-content .post-float-right-67,
	.entry-content .post-float-right-75,
	.entry-content .post-float-right-80 {
		float: none;
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}

@media (max-width: 640px) {
	.site-header {
		width: calc(100% - 32px);
		min-height: 66px;
	}

	.brand-name {
		font-size: 19px;
	}

	.mast-nav .menu {
		gap: 18px;
	}

	.mast-nav a {
		font-size: 14px;
	}

	.feature-caption {
		bottom: 14px;
	}

	.article-wrap {
		padding: 36px 20px 60px;
	}

	.article-title {
		font-size: 38px;
	}

	.entry-content p,
	.entry-content li {
		font-size: 18px;
	}

	.entry-content > figure:not(.narrow),
	.entry-content > .wp-caption:not(.narrow),
	.entry-content > .gallery:not(.narrow),
	.entry-content > .wp-block-image:not(.narrow),
	.entry-content > img:not(.narrow) {
		width: calc(100% + 40px);
		max-width: none;
		margin-left: -20px;
		margin-right: -20px;
	}

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

	.article-nav .next {
		text-align: left;
	}
}
