/*
Theme Name: Quilombo Lite
Author: Matías Lloréns
Description: Theme editorial bilingüe integrado con Quilombo Fields y Quilombo Contact Form.
Version: 1.4.5
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: quilombo-lite
*/

:root {
	--ndb-ink: #202020;
	--ndb-muted: #686868;
	--ndb-line: #d9d9d6;
	--ndb-paper: #ffffff;
	--ndb-soft: #f2f2ef;
	--ndb-placeholder: #e6e6e3;
	--ndb-column: 900px;
	--ndb-gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ndb-paper);
	color: var(--ndb-ink);
	font-family: "Josefin Sans", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; font-family: "EB Garamond", Garamond, Georgia, serif; }
h1 { font-size: clamp(2.8rem,6vw,6.4rem); }
h2 { font-size: clamp(2rem,4vw,3.2rem); }
h3 { font-size: clamp(1.5rem,2.5vw,2.2rem); }
h4 { font-size: clamp(1.25rem,2vw,1.65rem); }
h5 { font-size: clamp(1.1rem,1.4vw,1.3rem); }
h6 { font-size: clamp(1rem,.9vw,1.1rem); }
p { margin-top: 0; }
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	z-index: 100000;
	top: 5px;
	left: 5px;
	width: auto;
	height: auto;
	padding: 14px 18px;
	clip: auto !important;
	background: #fff;
	color: #000;
}

/* Header */
.site-header {
	position: sticky;
	z-index: 10;
	top: 0;
	width: 100%;
	margin: 0;
	background: #fff;
	border-bottom: 1px solid #000;
}
.single .site-header {
	position: fixed;
	top: 0;
	left: 0;
	background: transparent;
	color: #fff;
	border-bottom-color: #000;
	transition: background-color .2s ease, color .2s ease;
}
.single .site-header.is-scrolled { background: var(--ndb-paper); color: var(--ndb-ink); }
.single .site-header.is-scrolled .custom-logo { filter: none; }
.single .site-header.is-scrolled .utility-toggle { border-color: var(--ndb-line); background: var(--ndb-paper); color: var(--ndb-ink); }
.admin-bar .site-header { top: 32px; }
.site-nav {
	width: min(var(--ndb-column), calc(100% - var(--ndb-gutter)));
	margin: 0 auto;
	min-height: 78px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
}
.site-branding {
	grid-column: 2;
	grid-row: 1;
	max-width: min(36vw, 360px);
	text-align: center;
}
.site-title,
.custom-logo-link {
	display: block;
	font: 700 1.38rem/1.2 "EB Garamond", Garamond, serif;
	letter-spacing: -.025em;
	text-decoration: none;
	white-space: nowrap;
}
.site-title--rotating {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.4em;
	white-space: normal;
	text-wrap: balance;
	transition: opacity .22s ease;
}
.site-title--rotating.is-changing { opacity: 0; }
.custom-logo { width: auto; max-height: 48px; }
.single .custom-logo { filter: brightness(0) invert(1); }
.nav-menu {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 38px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav-menu--left { grid-column: 1; grid-row: 1; justify-self: start; }
.nav-menu--right { grid-column: 3; grid-row: 1; justify-self: end; }
.nav-menu a { font-size: .87rem; font-weight: 600; text-decoration: none; }
.nav-menu a:hover,
.nav-menu a:focus-visible { text-decoration: underline; text-underline-offset: 6px; }
.header-tools {
	position: absolute;
	z-index: 12;
	top: 50%;
	right: clamp(14px,2.4vw,38px);
	display: flex;
	align-items: center;
	gap: 8px;
	transform: translateY(-50%);
}
.utility-toggle {
	min-height: 34px;
	border: 1px solid var(--ndb-line);
	border-radius: 999px;
	background: var(--ndb-paper);
	color: var(--ndb-ink);
	padding: 7px 10px;
	font: 700 .67rem/1 "Josefin Sans",Arial,sans-serif;
	letter-spacing: .08em;
	cursor: pointer;
}
.utility-toggle:hover,
.utility-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.theme-toggle { width: 36px; padding: 7px; font-size: .9rem; }
.language-toggle { display: flex; gap: 5px; }
.language-toggle span { opacity: .72; }
html[data-lang="es"] .language-toggle [data-code="es"],
html[data-lang="en"] .language-toggle [data-code="en"] { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.single .utility-toggle { border-color: rgba(255,255,255,.6); background: rgba(0,0,0,.14); color: #fff; }
.lang-en { display: none; }
html[data-lang="en"] .lang-es { display: none !important; }
html[data-lang="en"] .lang-en { display: revert; }
html[data-lang="en"] .nav-menu.lang-en { display: flex; }

/* Home hero */
.home-hero {
	position: relative;
	width: min(var(--ndb-column), calc(100% - var(--ndb-gutter)));
	min-height: clamp(410px, 41vw, 570px);
	margin: 32px auto 0;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--ndb-placeholder) center / cover no-repeat;
	border: 1px solid #ccc;
}
.home-hero__link { position: relative; z-index: 1; width: 100%; min-height: inherit; display: flex; align-items: flex-end; color: #fff; text-decoration: none; }
.home-hero--placeholder::before,
.entry-hero--placeholder::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom right, transparent calc(50% - .5px), rgba(95,95,95,.15) 50%, transparent calc(50% + .5px)),
		linear-gradient(to top right, transparent calc(50% - .5px), rgba(95,95,95,.15) 50%, transparent calc(50% + .5px));
}
.home-hero::after {
	content: "";
	position: absolute;
	inset: 25% 0 0;
	background: linear-gradient(transparent, rgba(0,0,0,.72));
}
.entry-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, rgba(0,0,0,.72), transparent 30%),
		linear-gradient(to bottom, transparent 20%, rgba(0,0,0,.82));
}
.home-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 0 clamp(28px,5vw,64px) clamp(40px,6vw,68px);
	color: #fff;
}
.eyebrow {
	margin-bottom: 15px;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.home-hero h1 {
	max-width: 740px;
	margin-bottom: 14px;
	font-size: clamp(3.15rem,6.4vw,6.4rem);
	font-weight: 400;
	line-height: .99;
	letter-spacing: -.055em;
}
.home-hero__description { max-width: 560px; margin: 0; font-size: 1.05rem; line-height: 1.5; }
.home-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 15px; font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Post listings */
.content-column { width: min(var(--ndb-column), calc(100% - var(--ndb-gutter))); margin: 0 auto; }
.section-heading {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin: 88px 0 44px;
	padding-bottom: 17px;
	border-bottom: 1px solid var(--ndb-ink);
}
.section-heading h1,
.section-heading h2 { margin: 0; font-size: clamp(.76rem,calc(.72rem + .2vw),.86rem); letter-spacing: .15em; text-transform: uppercase; }
.section-heading span { color: var(--ndb-muted); font-size: .82rem; }
.post-card { margin-bottom: 76px; }
.post-card + .post-card { padding-top: 40px; border-top: 1px solid var(--ndb-line); }
.post-card__image-link { display: block; text-decoration: none; }
.post-card__image {
	position: relative;
	width: 100%;
	aspect-ratio: 1.9 / 1;
	overflow: hidden;
	background: var(--ndb-placeholder);
}
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__meta,
.entry-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	font-size: .73rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.post-card__meta { margin: 27px 0 12px; color: var(--ndb-muted); }
.post-card--no-image .post-card__meta { margin-top: 0; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }
.post-rating {
	--rating-color: var(--ndb-ink);
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--rating-color);
}
.post-rating__stars { display: inline-flex; gap: .14em; line-height: 1; }
.post-rating__star {
	position: relative;
	display: inline-block;
	width: 1em;
	height: 1em;
	font: 400 1.05rem/1 Georgia,"Times New Roman",serif;
}
.post-rating__star::before,
.post-rating__star::after { position: absolute; inset: 0; display: block; }
.post-rating__star::before { content: "☆"; color: var(--rating-color); }
.post-rating__star::after {
	content: "★";
	width: var(--rating-fill);
	overflow: hidden;
	color: var(--rating-color);
	white-space: nowrap;
}
.post-rating__value { font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.post-rating--card { margin: -2px 0 13px; }
.post-card h2 { max-width: 780px; margin-bottom: 13px; font-size: clamp(2.1rem,4vw,3.45rem); font-weight: 400; line-height: 1.12; letter-spacing: -.035em; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover,
.post-card h2 a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.post-card__excerpt { max-width: 680px; color: #545454; font-size: 1.04rem; line-height: 1.7; }
.older-posts-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 56px 32px; margin-bottom: 88px; }
.post-card--compact { min-width: 0; margin: 0; }
.post-card--compact + .post-card--compact { padding-top: 0; border-top: 0; }
.post-card--compact .post-card__image { aspect-ratio: 1.35 / 1; }
.post-card--compact .post-card__meta { margin-top: 20px; }
.post-card--compact .post-rating { gap: 8px; }
.post-card--compact .post-rating__star { font-size: .9rem; }
.post-card--compact h2 { margin-bottom: 10px; font-size: clamp(1.7rem,3vw,2.35rem); line-height: 1.08; }
.post-card--compact .post-card__excerpt { font-size: .95rem; line-height: 1.6; }
.pagination { margin: 0 0 80px; }
.pagination .nav-links { display: flex; gap: 10px; }
.page-numbers { padding: 9px 12px; border: 1px solid var(--ndb-line); text-decoration: none; }
.page-numbers.current { background: var(--ndb-ink); color: #fff; }

/* Single post */
.entry-hero {
	position: relative;
	width: 100%;
	min-height: 100svh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--ndb-placeholder) center / cover no-repeat;
}
.entry-hero__inner {
	position: relative;
	z-index: 1;
	width: min(var(--ndb-column), calc(100% - var(--ndb-gutter)));
	margin: 0 auto;
	padding-bottom: clamp(48px,8vw,92px);
	color: #fff;
}
.post-rating--hero { --rating-color: #fff; margin-top: 14px; }
.entry-hero h1 {
	max-width: 880px;
	margin: 17px 0 0;
	font-size: clamp(3.25rem,7vw,7rem);
	font-weight: 400;
	line-height: .92;
	letter-spacing: -.055em;
}
.entry-shell { width: min(var(--ndb-column), calc(100% - var(--ndb-gutter))); margin: 0 auto; padding: 80px 0 86px; }
.article-deck { max-width: 820px; margin-bottom: 48px; color: #3e3e3e; font: 500 clamp(1.35rem,2.4vw,1.75rem)/1.5 "EB Garamond",Garamond,serif; }
.entry-content { font-size: 1.08rem; line-height: 1.85; }
.entry-content > * { max-width: 800px; }
.entry-content > p { margin-bottom: 1.65em; color: #393939; }
.entry-content h2 { margin: 2.15em 0 .65em; font-size: clamp(2rem,4vw,3.15rem); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.entry-content blockquote { margin: 2.5em 0; padding: 5px 0 5px 28px; border-left: 2px solid var(--ndb-ink); font: 400 clamp(1.65rem,3vw,2.35rem)/1.28 "EB Garamond", Garamond, serif; }
.entry-content .alignwide { max-width: 100%; }
.entry-content .alignfull {
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	margin-left: -50vw;
}
.entry-content figure.alignfull img { width: 100%; }
.entry-footer { margin-top: 58px; padding-top: 25px; border-top: 1px solid var(--ndb-line); }
.tag-links { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-links a { padding: 8px 11px; border: 1px solid var(--ndb-line); font-size: .73rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.page-header { width: min(var(--ndb-column), calc(100% - var(--ndb-gutter))); margin: 72px auto 42px; }
.page-header h1 { font-size: clamp(2.6rem,5vw,4.5rem); font-weight: 400; }

/* About and editorial pillars */
.about-page { width: min(var(--ndb-column), calc(100% - var(--ndb-gutter))); margin: 0 auto; }
.about-hero { padding: clamp(74px,11vw,135px) 0 clamp(52px,7vw,82px); }
.about-hero h1 { max-width: 820px; margin-bottom: 28px; font-size: clamp(4rem,9vw,8.4rem); font-weight: 400; line-height: .88; letter-spacing: -.065em; }
.about-lead { max-width: 700px; margin: 0; color: #484848; font: 400 clamp(1.45rem,3vw,2.15rem)/1.4 "EB Garamond",Garamond,serif; }
.about-main-image { position: relative; width: 100%; aspect-ratio: 1.8 / 1; overflow: hidden; background: var(--ndb-placeholder); }
.about-main-image img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom right, transparent calc(50% - .5px), rgba(95,95,95,.15) 50%, transparent calc(50% + .5px)),
		linear-gradient(to top right, transparent calc(50% - .5px), rgba(95,95,95,.15) 50%, transparent calc(50% + .5px));
}
.about-copy { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px,7vw,92px); padding: clamp(64px,9vw,108px) 0; border-bottom: 1px solid var(--ndb-ink); }
.about-copy > h2,
.principles > h2 { margin: 0; font: 700 clamp(.76rem,calc(.72rem + .2vw),.86rem)/1.2 "Josefin Sans",Arial,sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.about-text { max-width: 610px; }
.about-text p { margin-bottom: 1.5em; color: #444; font-size: 1.05rem; line-height: 1.8; }
.about-text .about-story-intro { color: var(--ndb-ink); font: 400 clamp(1.7rem,3.4vw,2.6rem)/1.28 "EB Garamond",Garamond,serif; }
.author-section { display: grid; grid-template-columns: minmax(260px,.85fr) 1.15fr; gap: clamp(34px,7vw,84px); align-items: center; margin: clamp(64px,9vw,108px) 0 0; padding: clamp(30px,5vw,54px); background: var(--ndb-soft); }
.author-image { position: relative; aspect-ratio: 1 / 1.12; overflow: hidden; background: var(--ndb-placeholder); }
.author-image img { width: 100%; height: 100%; object-fit: cover; }
.author-label { margin-bottom: 16px; color: var(--ndb-muted); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.author-content h2 { margin-bottom: 17px; font-size: clamp(2.4rem,5vw,4.2rem); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.author-content p { margin-bottom: 1.35em; color: #4a4a4a; font-size: 1rem; line-height: 1.75; }
.author-content a { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-underline-offset: 5px; text-transform: uppercase; }
.principles { padding: clamp(64px,9vw,108px) 0; }
.principles > h2 { margin-bottom: 34px; }
.principles-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--ndb-ink); }
.principle { padding: 26px 24px 12px 0; }
.principle + .principle { padding-left: 24px; border-left: 1px solid var(--ndb-line); }
.principle > span { display: block; margin-bottom: 40px; color: var(--ndb-muted); font-size: .72rem; letter-spacing: .1em; }
.principle h3 { margin-bottom: 10px; font-size: clamp(1.55rem,calc(1.3rem + 1vw),1.9rem); font-weight: 500; }
.principle p { margin: 0; color: #555; font-size: .93rem; line-height: 1.65; }

/* Comments */
.comments-area { width: min(var(--ndb-column), calc(100% - var(--ndb-gutter))); margin: 0 auto 88px; padding-top: 54px; border-top: 1px solid var(--ndb-ink); }
.comments-title { margin-bottom: 38px; font-size: clamp(2.2rem,4vw,3.35rem); font-weight: 400; letter-spacing: -.035em; }
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment-list .comment { padding: 26px 0; border-top: 1px solid var(--ndb-line); }
.comment-body { display: grid; grid-template-columns: 120px 1fr; gap: 30px; }
.comment-author { font-size: .83rem; font-weight: 700; }
.comment-author .avatar { width: 42px; margin-bottom: 10px; border-radius: 50%; }
.comment-meta { color: var(--ndb-muted); font-size: .72rem; }
.comment-content { grid-column: 2; line-height: 1.7; }
.reply { grid-column: 2; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.comment-respond { margin-top: 54px; padding: clamp(30px,5vw,52px); background: var(--ndb-soft); }
.comment-reply-title { margin-bottom: 8px; font-size: clamp(1.8rem,3vw,2.55rem); font-weight: 500; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.comment-form-comment,
.comment-form-cookies-consent,
.form-submit { grid-column: 1 / -1; }
.comment-form label { display: block; margin-bottom: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.comment-form input:not([type="checkbox"]),
.comment-form textarea { width: 100%; border: 1px solid #c9c9c4; border-radius: 0; background: #fff; padding: 14px; color: var(--ndb-ink); font: 500 1rem/1.4 "Josefin Sans", Arial, sans-serif; }
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form-cookies-consent label { margin: 0; font-size: .8rem; font-weight: 500; letter-spacing: 0; line-height: 1.4; text-transform: none; }
.submit { border: 0; background: var(--ndb-ink); color: #fff; padding: 15px 21px; font: 700 .76rem/1 "Josefin Sans",Arial,sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }

/* Newsletter and footer */
.newsletter { width: min(var(--ndb-column), calc(100% - var(--ndb-gutter))); margin: 0 auto; background: #202020; color: #fff; }
.newsletter__inner { display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: clamp(36px,7vw,90px); padding: clamp(44px,7vw,76px); }
.newsletter__label { margin-bottom: 14px; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.newsletter h2 { max-width: 520px; margin: 0; font-size: clamp(2.3rem,4.7vw,4.2rem); font-weight: 400; line-height: 1.02; letter-spacing: -.035em; }
.newsletter__form { display: flex; align-items: stretch; border-bottom: 1px solid rgba(255,255,255,.72); }
.newsletter__form input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #fff; padding: 15px 12px 15px 0; font: 500 1rem/1.2 "Josefin Sans",Arial,sans-serif; }
.newsletter__form input::placeholder { color: rgba(255,255,255,.62); }
.newsletter__form button { border: 0; background: transparent; color: #fff; padding: 15px 0 15px 18px; font: 700 .75rem/1 "Josefin Sans",Arial,sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.site-footer { width: 100%; margin-top: 32px; background: var(--ndb-soft); border-top: 1px solid var(--ndb-line); }
.footer-inner { width: min(var(--ndb-column), calc(100% - var(--ndb-gutter))); margin: 0 auto; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: clamp(28px,5vw,72px); padding-bottom: 58px; }
.footer-brand { font: 600 1.65rem/1.15 "EB Garamond",Garamond,serif; text-decoration: none; }
.footer-description { max-width: 240px; margin: 16px 0 0; color: var(--ndb-muted); font-size: .9rem; line-height: 1.6; }
.footer-column h2 { margin-bottom: 19px; font: 700 clamp(.72rem,calc(.68rem + .18vw),.8rem)/1.2 "Josefin Sans",Arial,sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li + li { margin-top: 13px; }
.footer-menu a { color: #555; font-size: .88rem; text-decoration: none; }
.footer-menu a:hover,
.footer-menu a:focus-visible { color: var(--ndb-ink); text-decoration: underline; text-underline-offset: 5px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid #d0d0cc; color: var(--ndb-muted); font-size: .76rem; }
.footer-bottom a { text-underline-offset: 4px; }
.empty-state { margin-bottom: 80px; padding: 48px; background: var(--ndb-soft); }

/* Dark mode */
html[data-theme="dark"] {
	color-scheme: dark;
	--ndb-ink: #fff;
	--ndb-muted: #dce8f2;
	--ndb-line: #b7cad9;
	--ndb-paper: #345678;
	--ndb-soft: #2d4c68;
	--ndb-placeholder: #294a66;
}
html[data-theme="dark"] body { background: #345678; color: #fff; }
html[data-theme="dark"] .site-header { background: #345678; color: #fff; border-bottom-color: #fff; }
html[data-theme="dark"] .single .site-header { background: transparent; border-bottom-color: #fff; }
html[data-theme="dark"] .single .site-header.is-scrolled { background: #345678; color: #fff; }
html[data-theme="dark"] .utility-toggle { border-color: #b7cad9; background: #345678; color: #fff; }
html[data-theme="dark"] .single .utility-toggle { background: rgba(0,0,0,.14); }
html[data-theme="dark"] .post-card__excerpt,
html[data-theme="dark"] .article-deck,
html[data-theme="dark"] .about-lead,
html[data-theme="dark"] .about-text p,
html[data-theme="dark"] .author-content p,
html[data-theme="dark"] .entry-content > p,
html[data-theme="dark"] .principle p,
html[data-theme="dark"] .footer-menu a,
html[data-theme="dark"] .footer-description { color: #e5eef6; }
html[data-theme="dark"] .article-deck { color: #fff; }
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .author-section,
html[data-theme="dark"] .comment-respond { background: #2d4c68; }
html[data-theme="dark"] .comment-form input:not([type="checkbox"]),
html[data-theme="dark"] .comment-form textarea { border-color: #b7cad9; background: #294a66; color: #fff; }
html[data-theme="dark"] .submit,
html[data-theme="dark"] .page-numbers.current { background: #f7fbff; color: #20364a; }
html[data-theme="dark"] :focus-visible { outline: 3px solid #ffdf7e; outline-offset: 3px; }

@media (max-width: 1160px) {
	.site-nav { padding-right: 132px; }
	.site-branding { transform: translateX(-58px); }
}

@media (max-width: 600px) {
	:root { --ndb-gutter: 36px; }
	.site-nav { width: 100%; min-height: 112px; grid-template-columns: repeat(4,minmax(0,1fr)); grid-template-rows: auto auto; justify-items: center; gap: 18px 8px; padding: 14px 18px; }
	.site-branding { grid-column: 2 / 4; grid-row: 1; width: 100%; max-width: 100%; transform: none; }
	.site-title--rotating { font-size: clamp(.8rem,3.5vw,1.05rem); line-height: 1.05; }
	.header-tools { top: 14px; right: 18px; left: 18px; justify-content: space-between; transform: none; pointer-events: none; }
	.header-tools .utility-toggle { pointer-events: auto; }
	.utility-toggle { min-height: 30px; padding: 6px 8px; }
	.theme-toggle { width: 32px; }
	.nav-menu { grid-row: 2; gap: 16px; }
	.nav-menu--left { grid-column: 1 / 3; justify-self: start; }
	.nav-menu--right { grid-column: 3 / 5; justify-self: end; }
	.home-hero { min-height: 500px; margin-top: 18px; }
	.home-hero__inner { padding: 0 22px 38px; }
	.section-heading { margin-top: 62px; margin-bottom: 32px; }
	.post-card { margin-bottom: 56px; }
	.post-card + .post-card { padding-top: 30px; }
	.post-card__image { aspect-ratio: 1.35 / 1; }
	.older-posts-grid { grid-template-columns: 1fr; gap: 48px; margin-bottom: 64px; }
	.entry-shell { padding: 58px 0 64px; }
	.about-hero { padding-top: 72px; }
	.about-main-image { aspect-ratio: 1.25 / 1; }
	.about-copy { grid-template-columns: 1fr; gap: 24px; }
	.author-section { grid-template-columns: 1fr; padding: 24px; }
	.author-image { aspect-ratio: 1.25 / 1; }
	.principles-grid { grid-template-columns: 1fr; }
	.principle,
	.principle + .principle { padding: 25px 0; border-left: 0; border-bottom: 1px solid var(--ndb-line); }
	.principle > span { margin-bottom: 18px; }
	.comment-body { grid-template-columns: 1fr; gap: 12px; }
	.comment-content,
	.reply { grid-column: 1; }
	.comment-form { grid-template-columns: 1fr; }
	.comment-form > * { grid-column: 1; }
	.newsletter__inner { grid-template-columns: 1fr; align-items: start; padding: 38px 24px; }
	.footer-inner { padding: 48px 0 28px; }
	.footer-grid { grid-template-columns: 1fr; gap: 38px; padding-bottom: 42px; }
	.footer-identity { grid-column: 1 / -1; }
	.footer-bottom { flex-direction: column; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	.site-title--rotating { transition: none; }
}
