:root {
	--f8-bg: #111010;
	--f8-bg-2: #1a1816;
	--f8-paper: #f6f1e8;
	--f8-ink: #161412;
	--f8-muted: #6e675e;
	--f8-line: rgba(246, 241, 232, 0.12);
	--f8-safelight: #e07a3d;
	--f8-brass: #c9a36a;
	--f8-white: #fffaf3;
	--f8-radius: 18px;
	--f8-header: 4.5rem;
	--f8-space: clamp(1.25rem, 4vw, 2.5rem);
	--f8-max: 72rem;
	--f8-read: 42rem;
	--f8-sans: Figtree, "Segoe UI", system-ui, sans-serif;
	--f8-serif: Fraunces, "Iowan Old Style", Georgia, serif;
	--f8-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
	--f8-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	font-family: var(--f8-sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--f8-white);
	background:
		radial-gradient(1200px 500px at 10% -10%, rgba(224, 122, 61, 0.12), transparent 50%),
		radial-gradient(900px 400px at 100% 0%, rgba(201, 163, 106, 0.08), transparent 45%),
		var(--f8-bg);
	min-height: 100vh;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--f8-brass);
}

:focus-visible {
	outline: 2px solid var(--f8-safelight);
	outline-offset: 3px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: var(--f8-space);
	top: -100%;
	z-index: 1000;
	background: var(--f8-safelight);
	color: var(--f8-ink);
	padding: 0.6rem 1rem;
	border-radius: 999px;
}

.skip-link:focus {
	top: 0.75rem;
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(18px);
	background: rgba(17, 16, 16, 0.86);
	border-bottom: 1px solid var(--f8-line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: var(--f8-max);
	margin: 0 auto;
	padding: 0.85rem var(--f8-space);
	min-height: var(--f8-header);
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	min-width: 0;
	flex: 1;
}

.site-logo img,
.custom-logo {
	display: block;
	width: 2.75rem;
	height: 2.75rem;
	object-fit: contain;
	border-radius: 10px;
}

.site-title {
	margin: 0;
	font-family: var(--f8-serif);
	font-size: clamp(1.15rem, 2.4vw, 1.55rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.site-title a {
	text-decoration: none;
}

.site-description {
	margin: 0.15rem 0 0;
	color: var(--f8-brass);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 16rem;
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--f8-line);
	border-radius: 10px;
	background: transparent;
	color: var(--f8-white);
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 1.1rem;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	position: relative;
	transition: transform 0.25s var(--f8-ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before {
	top: -6px;
}

.nav-toggle__bars::after {
	top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

.header-tools {
	display: none;
	flex-direction: column;
	gap: 1rem;
}

.primary-nav .f8-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.primary-nav a {
	display: block;
	padding: 0.45rem 0.2rem;
	text-decoration: none;
	font-weight: 500;
}

.primary-nav .current-menu-item > a,
.primary-nav a:hover {
	color: var(--f8-safelight);
}

.primary-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 0 0.9rem;
}

.header-search {
	display: flex;
	align-items: center;
	background: var(--f8-bg-2);
	border: 1px solid var(--f8-line);
	border-radius: 999px;
	padding: 0.15rem 0.2rem 0.15rem 0.9rem;
}

.header-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--f8-white);
	font: inherit;
	padding: 0.45rem 0.4rem;
}

.header-search input[type="search"]::placeholder {
	color: #9a9288;
}

.header-search input[type="search"]:focus {
	outline: none;
}

.header-search__submit {
	border: 0;
	background: var(--f8-safelight);
	color: var(--f8-ink);
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 999px;
	display: grid;
	place-items: center;
	cursor: pointer;
}

body.nav-open .header-tools {
	display: flex;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	padding: 1rem var(--f8-space) 1.4rem;
	background: rgba(17, 16, 16, 0.97);
	border-bottom: 1px solid var(--f8-line);
}

@media (min-width: 960px) {
	.nav-toggle {
		display: none;
	}

	.header-tools {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 1.5rem;
	}

	.primary-nav .f8-menu {
		flex-direction: row;
		align-items: center;
		gap: 1.15rem;
	}

	.primary-nav .sub-menu {
		position: absolute;
		min-width: 12rem;
		padding: 0.6rem 0.75rem;
		background: var(--f8-bg-2);
		border: 1px solid var(--f8-line);
		border-radius: 12px;
		box-shadow: var(--f8-shadow);
		opacity: 0;
		pointer-events: none;
		transform: translateY(6px);
		transition: 0.2s var(--f8-ease);
	}

	.primary-nav .menu-item-has-children {
		position: relative;
	}

	.primary-nav .menu-item-has-children:hover .sub-menu,
	.primary-nav .menu-item-has-children:focus-within .sub-menu {
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}

	.header-search {
		width: 15.5rem;
	}

	body.nav-open .header-tools {
		position: static;
		padding: 0;
		background: transparent;
		border: 0;
	}
}

/* Main */
.site-main {
	max-width: var(--f8-max);
	margin: 0 auto;
	padding: 2rem var(--f8-space) 4rem;
}

.section-head {
	margin-bottom: 1.5rem;
}

.eyebrow {
	margin: 0 0 0.35rem;
	color: var(--f8-safelight);
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 600;
}

.section-head h2,
.archive-title,
.entry-title,
.error-404 h1 {
	font-family: var(--f8-serif);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin: 0;
}

.section-head h2 {
	font-size: clamp(1.75rem, 4vw, 2.4rem);
}

.empty-note {
	color: #c3bbb0;
}

/* Featured + cards */
.featured-grid,
.post-grid {
	display: grid;
	gap: 1.25rem;
}

.post-card {
	display: flex;
	flex-direction: column;
	background: var(--f8-bg-2);
	border: 1px solid var(--f8-line);
	border-radius: var(--f8-radius);
	overflow: hidden;
	min-height: 100%;
	transition: transform 0.35s var(--f8-ease), border-color 0.35s var(--f8-ease);
}

.post-card:hover {
	transform: translateY(-4px);
	border-color: rgba(201, 163, 106, 0.45);
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	background: #2a2622;
}

.post-card--hero .post-card__media {
	aspect-ratio: 16 / 10;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.7s var(--f8-ease);
}

.post-card:hover .post-card__media img {
	transform: scale(1.05);
}

.post-card__placeholder {
	display: block;
	height: 100%;
	background:
		repeating-linear-gradient(
			-12deg,
			#2c2824 0 8px,
			#241f1c 8px 16px
		);
}

.post-card__body {
	padding: 1.1rem 1.15rem 1.3rem;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.7rem;
	align-items: center;
	color: var(--f8-brass);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.post-meta a {
	text-decoration: none;
}

.post-card__title {
	margin: 0;
	font-family: var(--f8-serif);
	font-size: 1.25rem;
	line-height: 1.25;
	font-weight: 600;
}

.post-card__title a {
	text-decoration: none;
}

.post-card__excerpt {
	margin: 0;
	color: #cfc6ba;
	font-size: 0.95rem;
}

@media (min-width: 720px) {
	.post-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.featured-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.post-card--hero {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 1.45fr 1fr;
		align-items: stretch;
	}

	.post-card--hero .post-card__title {
		font-size: clamp(1.6rem, 2.4vw, 2.2rem);
	}

	.post-card--hero .post-card__media {
		aspect-ratio: auto;
		min-height: 22rem;
		height: 100%;
	}

	.post-card--hero .post-card__body {
		justify-content: center;
		padding: 1.75rem;
	}
}

@media (min-width: 1100px) {
	.post-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.featured-section {
	margin-bottom: 3.5rem;
}

.recent-section {
	margin-bottom: 2rem;
}

/* Ads */
.f8-ad {
	margin: 1.5rem auto;
	max-width: 100%;
	display: grid;
	place-items: center;
	min-height: 0;
}

.f8-ad:empty {
	display: none;
}

.f8-ad--post_mid {
	margin: 2rem auto;
}

/* Single / pages */
.entry {
	max-width: 58rem;
	margin: 0 auto;
}

.entry-header {
	max-width: var(--f8-read);
	margin: 0 auto 1.5rem;
}

.entry-title {
	font-size: clamp(2rem, 6vw, 3.15rem);
	margin-top: 0.5rem;
}

.entry-hero {
	margin: 0 0 2rem;
}

.entry-hero__image {
	width: 100%;
	display: block;
	border-radius: var(--f8-radius);
	pointer-events: none;
}

.entry-hero figcaption {
	color: #b8b0a4;
	font-size: 0.9rem;
	margin-top: 0.6rem;
}

.entry-content {
	max-width: var(--f8-read);
	margin: 0 auto;
	font-size: clamp(1.1rem, 0.4vw + 1.05rem, 1.25rem);
	line-height: 1.75;
	color: #efe8dc;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--f8-serif);
	line-height: 1.25;
	margin: 2rem 0 0.8rem;
}

.entry-content a {
	color: var(--f8-brass);
}

.entry-content img,
.entry-content .wp-block-image img,
.entry-content .gallery img {
	border-radius: 12px;
	cursor: zoom-in;
}

.entry-content figure {
	margin: 1.6rem 0;
}

.entry-content figcaption {
	color: #b8b0a4;
	font-size: 0.88rem;
	margin-top: 0.45rem;
}

.entry-content blockquote {
	margin: 1.75rem 0;
	padding: 0.2rem 0 0.2rem 1.2rem;
	border-left: 3px solid var(--f8-safelight);
	font-family: var(--f8-serif);
	font-size: 1.2em;
	color: var(--f8-brass);
}

.entry-footer,
.post-nav,
.comments-area {
	max-width: var(--f8-read);
	margin: 2.5rem auto 0;
}

.post-tags span {
	display: block;
	color: var(--f8-brass);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 0.4rem;
}

.post-nav .nav-links {
	display: grid;
	gap: 1rem;
}

@media (min-width: 700px) {
	.post-nav .nav-links {
		grid-template-columns: 1fr 1fr;
	}
}

.post-nav a {
	display: block;
	text-decoration: none;
	padding: 1rem 1.1rem;
	border: 1px solid var(--f8-line);
	border-radius: 14px;
	background: var(--f8-bg-2);
}

.post-nav span {
	display: block;
	color: var(--f8-safelight);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 0.35rem;
}

.archive-header {
	margin-bottom: 2rem;
}

.archive-title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-numbers,
.nav-links .page-numbers {
	display: inline-flex;
	gap: 0.4rem;
	flex-wrap: wrap;
	margin-top: 2rem;
}

.page-numbers a,
.page-numbers span,
.nav-links .page-numbers {
	padding: 0.4rem 0.75rem;
	border-radius: 8px;
	border: 1px solid var(--f8-line);
	text-decoration: none;
}

.error-404 {
	max-width: 36rem;
	padding: 3rem 0;
}

.error-404 .header-search {
	margin: 1.25rem 0;
	max-width: 24rem;
}

.text-link {
	color: var(--f8-brass);
}

/* Comments */
.comment-list {
	list-style: none;
	padding: 0;
}

.comment-body {
	padding: 1rem 0;
	border-bottom: 1px solid var(--f8-line);
}

.comment-form input,
.comment-form textarea {
	width: 100%;
	max-width: 100%;
	background: var(--f8-bg-2);
	border: 1px solid var(--f8-line);
	color: var(--f8-white);
	border-radius: 10px;
	padding: 0.7rem 0.85rem;
	font: inherit;
}

.comment-form .form-submit input {
	width: auto;
	background: var(--f8-safelight);
	color: var(--f8-ink);
	border: 0;
	font-weight: 600;
	cursor: pointer;
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--f8-line);
	background: #0c0b0b;
	margin-top: auto;
}

.site-footer__inner {
	max-width: var(--f8-max);
	margin: 0 auto;
	padding: 2.4rem var(--f8-space) 2.6rem;
	display: grid;
	gap: 1.1rem;
	justify-items: center;
	text-align: center;
}

.footer-social ul,
.footer-menu {
	list-style: none;
	display: flex;
	gap: 0.7rem;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
	justify-content: center;
}

.social-link {
	width: 2.6rem;
	height: 2.6rem;
	display: grid;
	place-items: center;
	border-radius: 999px;
	border: 1px solid var(--f8-line);
	color: var(--f8-white);
	text-decoration: none;
	transition: transform 0.25s var(--f8-ease), background 0.25s var(--f8-ease), color 0.25s var(--f8-ease);
}

.social-link:hover {
	transform: translateY(-3px);
	background: var(--f8-safelight);
	color: var(--f8-ink);
	border-color: transparent;
}

.footer-legal {
	display: flex;
	gap: 0.6rem;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	color: #c3bbb0;
}

.footer-legal a {
	color: inherit;
	text-decoration: none;
}

.footer-legal a:hover {
	color: var(--f8-brass);
}

.copyright {
	margin: 0.4rem 0 0;
	color: #8e877e;
	font-size: 0.92rem;
}

/* Lightbox */
.f8-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(8, 7, 7, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3.5rem 1rem 1.5rem;
	opacity: 0;
	visibility: hidden;
	transition: 0.25s var(--f8-ease);
}

.f8-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.f8-lightbox__figure {
	margin: 0;
	max-width: min(1200px, 100%);
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.f8-lightbox__figure img {
	max-height: min(82vh, 900px);
	width: auto;
	max-width: 100%;
	border-radius: 8px;
	box-shadow: var(--f8-shadow);
}

.f8-lightbox__caption {
	color: #d8d0c4;
	margin-top: 0.75rem;
	text-align: center;
}

.f8-lightbox__btn {
	position: absolute;
	border: 0;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	width: 2.8rem;
	height: 2.8rem;
	border-radius: 999px;
	cursor: pointer;
	font-size: 1.4rem;
	line-height: 1;
}

.f8-lightbox__close {
	top: 0.9rem;
	right: 0.9rem;
}

.f8-lightbox__prev {
	left: 0.6rem;
	top: 50%;
	transform: translateY(-50%);
}

.f8-lightbox__next {
	right: 0.6rem;
	top: 50%;
	transform: translateY(-50%);
}

.f8-lightbox__btn:hover {
	background: var(--f8-safelight);
	color: var(--f8-ink);
}

@media (max-width: 599px) {
	.site-description {
		display: none;
	}

	.f8-lightbox__prev,
	.f8-lightbox__next {
		top: auto;
		bottom: 0.9rem;
		transform: none;
	}
}

.alignwide {
	max-width: 58rem;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.wp-block-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 0.6rem;
}
