/*
Theme Name: Xyno
Author: Xyno
Description: Editorial lifestyle blog theme — clean magazine layout, strong article pages, legal footer and AdSense-ready ad slots that stay hidden until Ad Inserter is configured.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xyno
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--x-bg: #fdfcfa;
	--x-ink: #1f1c18;
	--x-body: #2a2622;
	--x-muted: #6b655c;
	--x-muted-2: #5f594f;
	--x-line: #e6e1d9;
	--x-line-2: #d9d3c9;
	--x-accent: #b4532a;
	--x-accent-dark: #d9784f;
	--x-soft: #f7f5f2;
	--x-ad-bg: #f3f1ed;
	--x-ad-line: #d9d4cb;
	--x-ad-text: #8a847b;
	--x-f-text: #d9d3c9;
	--x-f-desc: #b8b1a6;
	--x-f-small: #9c958a;
	--x-f-line: #36312b;
	--x-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--x-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--x-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--x-container: 1200px;
	--x-gutter: 24px;
	--x-stripes: repeating-linear-gradient(135deg, #ebe6de 0 8px, #f3f0ea 8px 16px);
}

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

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

body {
	margin: 0;
	background: var(--x-bg);
	color: var(--x-ink);
	font-family: var(--x-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; display: block; }

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

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

h1, h2, h3, h4, h5, h6 { color: var(--x-ink); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus, .skip-link:focus {
	background: var(--x-ink); color: #fff; clip: auto !important; clip-path: none;
	display: block; height: auto; width: auto; left: 8px; top: 8px; padding: 12px 18px;
	z-index: 100000; font-size: 14px; font-weight: 600; text-decoration: none;
}

.container {
	max-width: var(--x-container);
	margin: 0 auto;
	padding-left: var(--x-gutter);
	padding-right: var(--x-gutter);
}

/* ==========================================================================
   Shared atoms
   ========================================================================== */
.label {
	align-self: flex-start;
	font-family: var(--x-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--x-accent);
	text-decoration: none;
}
.label:hover { color: var(--x-ink); }

.chip {
	display: inline-block;
	background: var(--x-accent);
	color: #fff;
	padding: 5px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.4;
}
.chip:hover { background: var(--x-ink); color: #fff; }

.kicker {
	font-family: var(--x-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--x-muted);
}

.meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 13px;
	color: var(--x-muted);
}
.meta a, .meta__author { color: var(--x-ink); font-weight: 600; text-decoration: none; }
.meta a:hover { color: var(--x-accent); }

.media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 2px;
	background: var(--x-stripes);
}
.media--43 { aspect-ratio: 4 / 3; }
.media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.avatar { border-radius: 50%; background: repeating-linear-gradient(135deg, #e2ddd4 0 5px, #ece8e1 5px 10px); }

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	border-bottom: 2px solid var(--x-ink);
	padding-bottom: 12px;
}
.section-title {
	margin: 0;
	font-family: var(--x-serif);
	font-size: 30px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.view-all {
	font-size: 14px;
	font-weight: 600;
	color: var(--x-accent);
	text-decoration: none;
	white-space: nowrap;
}
.view-all:hover { color: var(--x-ink); }

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 44px 32px;
}
.grid-4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	border-bottom: 1px solid var(--x-line);
	background: var(--x-bg);
	position: relative;
	z-index: 50;
}
.site-header__inner {
	height: 76px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.site-logo {
	font-family: var(--x-serif);
	font-size: 30px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--x-ink);
	text-decoration: none;
	white-space: nowrap;
	margin: 0;
}
.site-logo a { color: inherit; text-decoration: none; }
.site-logo .dot { color: var(--x-accent); }
.site-logo img.custom-logo { max-height: 48px; width: auto; }
.site-logo .custom-logo-link { display: block; }

.site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}
.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 28px;
}
.site-nav li { margin: 0; }
.site-nav a {
	font-size: 15px;
	font-weight: 500;
	color: var(--x-ink);
	text-decoration: none;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-post-ancestor > a,
.site-nav .current-category-ancestor > a,
.site-nav .is-active > a { color: var(--x-accent); }

.search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--x-line-2);
	padding: 0 14px;
	min-width: 180px;
	height: 38px;
	background: var(--x-bg);
}
.search-form:focus-within { border-color: var(--x-ink); }
.search-form__icon {
	flex: none;
	width: 11px;
	height: 11px;
	border: 1.5px solid var(--x-muted);
	border-radius: 50%;
	position: relative;
}
.search-form__icon::after {
	content: "";
	position: absolute;
	width: 1.5px;
	height: 5px;
	background: var(--x-muted);
	right: -3px;
	bottom: -4px;
	transform: rotate(-45deg);
}
.search-form__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font-family: var(--x-sans);
	font-size: 14px;
	color: var(--x-ink);
	padding: 0;
	height: 100%;
	outline: none;
}
.search-form__input::placeholder { color: var(--x-muted); opacity: 1; }
.search-form__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-form__submit {
	border: 0;
	background: none;
	padding: 0;
	font-family: var(--x-sans);
	font-size: 13px;
	font-weight: 600;
	color: var(--x-accent);
	cursor: pointer;
}
.site-header .search-form__submit { display: none; }

.search-form--large {
	max-width: 520px;
	margin: 0 auto;
	width: 100%;
	height: 50px;
	padding: 0 18px;
}
.search-form--large .search-form__input { font-size: 16px; }

.menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--x-line-2);
	background: none;
	height: 38px;
	padding: 0 14px;
	font-family: var(--x-sans);
	font-size: 14px;
	font-weight: 600;
	color: var(--x-ink);
	cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	display: block;
	width: 16px;
	height: 1.5px;
	background: var(--x-ink);
	position: relative;
}
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -5px; }
.menu-toggle__bars::after { top: 5px; }

/* ==========================================================================
   Ad slots
   ========================================================================== */
.ad-slot {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ad-slot__label {
	font-family: var(--x-mono);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--x-ad-text);
	text-align: center;
	line-height: 1.4;
}
.ad-slot__box {
	min-height: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.ad-slot__box > * { max-width: 100%; }
.ad-slot--sidebar .ad-slot__box { min-height: 600px; width: 300px; }
.ad-slot--preview .ad-slot__box {
	background: var(--x-ad-bg);
	border: 1px dashed var(--x-ad-line);
	font-family: var(--x-mono);
	font-size: 11px;
	color: var(--x-ad-text);
	text-align: center;
	padding: 12px;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}
.card__title {
	margin: 0;
	font-family: var(--x-serif);
	font-size: 22px;
	line-height: 1.22;
	font-weight: 600;
	letter-spacing: -0.01em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card__title a, .card__title a:visited { color: var(--x-ink); text-decoration: none; }
.card__title a:hover { color: var(--x-accent); }
.card__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--x-muted-2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card--compact .card__title {
	font-size: 18px;
	line-height: 1.28;
	letter-spacing: 0;
	-webkit-line-clamp: 3;
}

/* ==========================================================================
   Home
   ========================================================================== */
.home-main {
	padding-top: 40px;
	padding-bottom: 72px;
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.featured {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 48px;
}
.featured__main {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}
.featured__main .label { font-size: 12px; }
.featured__title {
	margin: 0;
	font-family: var(--x-serif);
	font-size: 42px;
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.featured__title a { color: var(--x-ink); text-decoration: none; }
.featured__title a:hover { color: var(--x-accent); }
.featured__excerpt {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--x-muted-2);
	text-wrap: pretty;
}
.featured__main .meta { font-size: 14px; }

.picks {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.picks__head {
	padding-bottom: 12px;
	border-bottom: 2px solid var(--x-ink);
	margin: 0;
}
.pick {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 140px;
	gap: 20px;
	padding: 22px 0;
	border-bottom: 1px solid var(--x-line);
	align-items: start;
}
.pick__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
.pick__title {
	margin: 0;
	font-family: var(--x-serif);
	font-size: 20px;
	line-height: 1.25;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pick__title a { color: var(--x-ink); text-decoration: none; }
.pick__title a:hover { color: var(--x-accent); }
.pick__date { font-size: 13px; color: var(--x-muted); }

.latest, .cat-block {
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.cat-block { gap: 24px; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	padding-top: 8px;
}
.pagination .page-numbers {
	min-width: 42px;
	height: 42px;
	padding: 0 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--x-line);
	color: var(--x-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.pagination a.page-numbers:hover { border-color: var(--x-ink); color: var(--x-ink); }
.pagination .page-numbers.current {
	background: var(--x-ink);
	border-color: var(--x-ink);
	color: var(--x-bg);
}
.pagination .page-numbers.dots { border-color: transparent; color: var(--x-muted); font-weight: 400; }
.pagination .page-numbers.prev,
.pagination .page-numbers.next { padding: 0 16px; }
.pagination .page-numbers.is-disabled { color: #b5aea3; font-weight: 400; }

/* ==========================================================================
   Single article
   ========================================================================== */
.single-main { padding-top: 32px; padding-bottom: 72px; }
.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 72px;
	align-items: stretch;
}
.article { min-width: 0; max-width: 740px; }

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	color: var(--x-muted);
}
.breadcrumb a { color: var(--x-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--x-accent); }
.breadcrumb [aria-current] { color: var(--x-ink); }

.article .chip { margin-top: 28px; }
.article__title {
	margin: 18px 0 0;
	font-family: var(--x-serif);
	font-size: 50px;
	line-height: 1.08;
	font-weight: 600;
	letter-spacing: -0.025em;
	text-wrap: balance;
}
.article__dek {
	margin: 18px 0 0;
	font-family: var(--x-serif);
	font-size: 22px;
	line-height: 1.45;
	color: var(--x-muted);
	text-wrap: pretty;
}
.byline {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
	padding: 16px 0;
	border-top: 1px solid var(--x-line);
	border-bottom: 1px solid var(--x-line);
}
.byline .avatar { width: 44px; height: 44px; flex: none; }
.byline__text { display: flex; flex-direction: column; gap: 2px; }
.byline__name { font-size: 15px; font-weight: 600; color: var(--x-ink); text-decoration: none; }
.byline__name:hover { color: var(--x-accent); }
.byline__meta { font-size: 13px; color: var(--x-muted); }

.article__figure { margin: 32px 0 0; }
.article__figure figcaption {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--x-muted);
}

/* Article body */
.entry-content {
	margin-top: 40px;
	font-family: var(--x-serif);
	font-size: 20px;
	line-height: 1.7;
	color: var(--x-body);
	overflow-wrap: break-word;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.5em; }
.entry-content a { color: var(--x-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--x-ink); }
.entry-content h2 {
	margin: 2em 0 0.7em;
	padding-left: 16px;
	border-left: 4px solid var(--x-accent);
	font-family: var(--x-serif);
	font-size: 30px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--x-ink);
}
.entry-content h3 {
	margin: 1.8em 0 0.6em;
	font-family: var(--x-serif);
	font-size: 24px;
	line-height: 1.25;
	font-weight: 600;
	color: var(--x-ink);
}
.entry-content h4, .entry-content h5, .entry-content h6 {
	margin: 1.6em 0 0.5em;
	font-family: var(--x-sans);
	font-size: 17px;
	line-height: 1.35;
	font-weight: 700;
	color: var(--x-ink);
}
.entry-content ul, .entry-content ol { margin: 0 0 1.5em; padding-left: 1.2em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content li > ul, .entry-content li > ol { margin: 0.4em 0 0; }
.entry-content blockquote {
	margin: 2em 0;
	padding: 28px 32px;
	background: var(--x-soft);
	border: 0;
	font-family: var(--x-serif);
	font-style: italic;
	font-size: 24px;
	line-height: 1.45;
	color: var(--x-ink);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 12px; font-size: 15px; font-style: normal; font-family: var(--x-sans); color: var(--x-muted); }
.entry-content figure { margin: 2em 0; }
.entry-content img { border-radius: 2px; }
.entry-content figcaption, .entry-content .wp-caption-text {
	margin-top: 10px;
	font-family: var(--x-sans);
	font-size: 13px;
	line-height: 1.5;
	color: var(--x-muted);
}
.entry-content .wp-caption { max-width: 100%; margin: 2em 0; }
.entry-content .alignleft { float: left; margin: 0.3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: 0.3em 0 1em 1.5em; max-width: 50%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content hr { border: 0; border-top: 1px solid var(--x-line); margin: 2.5em 0; }
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5em;
	font-family: var(--x-sans);
	font-size: 15px;
	line-height: 1.5;
}
.entry-content th, .entry-content td { border-bottom: 1px solid var(--x-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th { font-weight: 700; color: var(--x-ink); border-bottom: 2px solid var(--x-ink); }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content pre, .entry-content code {
	font-family: var(--x-mono);
	font-size: 0.8em;
	background: var(--x-soft);
}
.entry-content code { padding: 2px 5px; }
.entry-content pre { padding: 20px; overflow-x: auto; line-height: 1.5; }
.entry-content iframe { width: 100%; }
.entry-content .ad-slot { margin: 0 0 1.5em; font-family: var(--x-sans); }
.entry-content::after { content: ""; display: table; clear: both; }

.page-links { font-family: var(--x-sans); font-size: 14px; margin: 2em 0; }

.sources {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--x-line);
}
.sources__title {
	margin: 0 0 14px;
	font-family: var(--x-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--x-muted);
}
.sources ol {
	margin: 0;
	padding-left: 1.2em;
	font-size: 15px;
	line-height: 1.6;
	color: var(--x-muted-2);
	display: flex;
	flex-direction: column;
	gap: 6px;
	overflow-wrap: anywhere;
}
.sources a { color: var(--x-accent); }

.author-box {
	margin-top: 40px;
	padding: 28px;
	background: var(--x-soft);
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}
.author-box .avatar { width: 80px; height: 80px; }
.author-box__body { display: flex; flex-direction: column; gap: 8px; }
.author-box__name { font-family: var(--x-serif); font-size: 24px; line-height: 1.2; font-weight: 600; color: var(--x-ink); }
.author-box__bio { margin: 0; font-size: 15px; line-height: 1.6; color: var(--x-muted-2); }
.author-box__link { font-size: 14px; font-weight: 600; color: var(--x-accent); text-decoration: none; }
.author-box__link:hover { color: var(--x-ink); }

.article .ad-slot--after { margin-top: 40px; }

.related {
	margin-top: 56px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.related .section-title { font-size: 28px; }
.related .grid-3 { gap: 32px 24px; }

.next-post {
	margin-top: 56px;
	padding: 24px 0;
	border-top: 1px solid var(--x-line);
	border-bottom: 1px solid var(--x-line);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 180px;
	gap: 24px;
	align-items: center;
	text-decoration: none;
	color: var(--x-ink);
}
.next-post__text { display: flex; flex-direction: column; gap: 8px; }
.next-post__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--x-accent);
}
.next-post__title { font-family: var(--x-serif); font-size: 26px; line-height: 1.2; font-weight: 600; }
.next-post:hover { color: var(--x-ink); }
.next-post:hover .next-post__title { color: var(--x-accent); }

/* Sidebar */
.sidebar { width: 300px; display: flex; flex-direction: column; }
.most-read__head {
	padding-bottom: 12px;
	border-bottom: 2px solid var(--x-ink);
	margin: 0;
}
.most-read ol { list-style: none; margin: 0; padding: 0; }
.most-read a {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid var(--x-line);
	text-decoration: none;
	color: var(--x-ink);
}
.most-read__rank { font-family: var(--x-serif); font-size: 24px; line-height: 1; color: var(--x-accent); }
.most-read__title { font-family: var(--x-serif); font-size: 17px; line-height: 1.3; font-weight: 600; }
.most-read a:hover .most-read__title { color: var(--x-accent); }
.sidebar .ad-slot--sidebar {
	position: sticky;
	top: 24px;
	margin-top: 40px;
}
.admin-bar .sidebar .ad-slot--sidebar { top: 56px; }

/* Comments */
.comments {
	margin-top: 56px;
	font-size: 15px;
	line-height: 1.6;
}
.comments .section-title { font-size: 28px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 32px; }
.comment-body { padding: 24px 0; border-bottom: 1px solid var(--x-line); }
.comment-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--x-muted); }
.comment-meta .avatar { width: 40px; height: 40px; }
.comment-author { font-weight: 600; color: var(--x-ink); }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--x-muted); text-decoration: none; }
.comment-content { margin-top: 12px; color: var(--x-body); }
.comment-content p { margin: 0 0 0.8em; }
.reply a, .comment-reply-link { font-size: 13px; font-weight: 600; color: var(--x-accent); text-decoration: none; }
.comment-respond { margin-top: 32px; }
.comment-reply-title { font-family: var(--x-serif); font-size: 24px; font-weight: 600; margin: 0 0 16px; }
.comment-form p { margin: 0 0 16px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	border: 1px solid var(--x-line-2);
	background: #fff;
	padding: 10px 12px;
	font-family: var(--x-sans);
	font-size: 15px;
	color: var(--x-ink);
	border-radius: 2px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--x-ink); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; margin: 0; }
.button, .comment-form .submit {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 22px;
	background: var(--x-ink);
	color: #fff;
	border: 0;
	border-radius: 2px;
	font-family: var(--x-sans);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}
.button:hover, .comment-form .submit:hover { background: var(--x-accent); color: #fff; }

/* ==========================================================================
   Archives / search / 404
   ========================================================================== */
.archive-main {
	padding-top: 56px;
	padding-bottom: 72px;
	display: flex;
	flex-direction: column;
	gap: 48px;
}
.archive-header {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-bottom: 36px;
	border-bottom: 1px solid var(--x-line);
}
.archive-header .avatar { width: 96px; height: 96px; }
.archive-header .kicker { color: var(--x-accent); letter-spacing: 0.12em; }
.archive-title {
	margin: 0;
	font-family: var(--x-serif);
	font-size: 56px;
	line-height: 1.05;
	font-weight: 600;
	letter-spacing: -0.025em;
	overflow-wrap: break-word;
}
.archive-desc {
	margin: 0;
	max-width: 640px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--x-muted-2);
	text-wrap: pretty;
}
.archive-desc p { margin: 0 0 0.6em; }
.archive-desc p:last-child { margin: 0; }
.archive-count { font-size: 14px; color: var(--x-muted); }

.archive-header--center {
	align-items: center;
	text-align: center;
}
.archive-header--center .archive-desc { margin: 0 auto; }
.archive-header--center .search-form { margin-top: 10px; }
.error-code {
	font-family: var(--x-serif);
	font-size: 140px;
	line-height: 0.9;
	font-weight: 600;
	letter-spacing: -0.04em;
	color: var(--x-accent);
}

.no-results {
	font-size: 17px;
	color: var(--x-muted-2);
	margin: 0;
	text-align: center;
}

/* ==========================================================================
   Static page
   ========================================================================== */
.page-main { padding-top: 56px; padding-bottom: 72px; }
.page-article { max-width: 700px; margin: 0 auto; }
.page-title {
	margin: 0;
	font-family: var(--x-serif);
	font-size: 48px;
	line-height: 1.08;
	font-weight: 600;
	letter-spacing: -0.025em;
	text-wrap: balance;
}
.page-updated { margin-top: 14px; font-size: 13px; color: var(--x-muted); }
.page-article .entry-content { margin-top: 36px; }
.page-article .entry-content h2 {
	border-left: 0;
	padding-left: 0;
	font-size: 28px;
}
.page-article .article__figure { margin-top: 32px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--x-ink);
	color: var(--x-f-text);
}
.site-footer__grid {
	padding-top: 56px;
	padding-bottom: 40px;
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo {
	font-family: var(--x-serif);
	font-size: 28px;
	line-height: 1.1;
	font-weight: 600;
	color: var(--x-bg);
	letter-spacing: -0.02em;
	text-decoration: none;
}
.footer-logo:hover { color: #fff; }
.footer-logo .dot { color: var(--x-accent-dark); }
.footer-desc { margin: 0; max-width: 360px; font-size: 15px; line-height: 1.65; color: var(--x-f-desc); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col__title {
	font-family: var(--x-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--x-f-small);
	margin: 0;
	font-weight: 400;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 15px; color: var(--x-f-text); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid var(--x-f-line); }
.site-footer__bottom .container {
	padding-top: 20px;
	padding-bottom: 20px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 13px;
	color: var(--x-f-small);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.single-layout { gap: 48px; }
	.site-nav, .site-nav ul { gap: 20px; }
}

@media (max-width: 899px) {
	/* Header → toggle menu */
	.menu-toggle { display: inline-flex; }
	.site-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--x-bg);
		border-bottom: 1px solid var(--x-line);
		padding: 8px var(--x-gutter) 20px;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}
	.site-header.is-open .site-nav { display: flex; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--x-line); font-size: 16px; }
	.site-nav .search-form { min-width: 0; width: 100%; }

	/* Grids collapse */
	.grid-3 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
	.related .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }

	.featured { grid-template-columns: minmax(0, 1fr); gap: 40px; }

	/* Article: drop sidebar */
	.single-layout { grid-template-columns: minmax(0, 1fr); }
	.sidebar { display: none; }
	.article { max-width: none; }

	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	:root { --x-gutter: 16px; }
	.site-logo { font-size: 26px; }
	.home-main { padding-top: 24px; gap: 48px; }
	.featured__title { font-size: 30px; }
	.featured__excerpt { font-size: 16px; }
	.pick { grid-template-columns: minmax(0, 1fr) 110px; gap: 16px; padding: 18px 0; }
	.pick__title { font-size: 18px; }
	.section-title { font-size: 26px; }
	.card__title { font-size: 21px; }
	.card--compact .card__title { font-size: 17px; }

	.single-main { padding-top: 20px; }
	.article__title { font-size: 34px; line-height: 1.12; }
	.article__dek { font-size: 19px; }
	.entry-content { font-size: 19px; line-height: 1.65; }
	.entry-content h2 { font-size: 25px; }
	.entry-content h3 { font-size: 21px; }
	.entry-content blockquote { font-size: 21px; padding: 22px 20px; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 1.5em 0; max-width: 100%; }
	.author-box { grid-template-columns: 56px minmax(0, 1fr); padding: 22px 20px; gap: 16px; }
	.author-box .avatar { width: 56px; height: 56px; }
	.next-post { grid-template-columns: minmax(0, 1fr) 110px; gap: 16px; }
	.next-post__title { font-size: 21px; }

	.archive-main, .page-main { padding-top: 36px; }
	.archive-title { font-size: 38px; }
	.archive-desc { font-size: 16px; }
	.page-title { font-size: 34px; }
	.error-code { font-size: 96px; }

	.pagination .page-numbers { min-width: 38px; height: 38px; font-size: 13px; }
	.pagination .page-numbers.prev, .pagination .page-numbers.next { padding: 0 12px; }

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

@media (max-width: 420px) {
	.grid-4, .related .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

@media print {
	.site-header, .site-footer, .sidebar, .ad-slot, .related, .next-post, .comments { display: none !important; }
	.single-layout { display: block; }
}
