/*
Theme Name: Sendeoyla Workbench
Theme URI: https://sendeoyla.com/
Author: Sendeoyla
Description: An original, workshop-inspired theme for DIY home renovation blogs. Kraft-paper tones, tape-measure details, a random "Popular Topics" grid under every post and page, and a Header widget area for Google Analytics / AdSense code printed right after the site header.
Version: 1.0.0
Requires at least: 6.2
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: sendeoyla
Tags: blog, two-columns, grid-layout, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 400 800;
	font-stretch: 75% 100%;
	font-display: swap;
	src: url(assets/fonts/bricolage-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 400 800;
	font-stretch: 75% 100%;
	font-display: swap;
	src: url(assets/fonts/bricolage-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(assets/fonts/sourceserif-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(assets/fonts/sourceserif-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Source Serif 4";
	font-style: italic;
	font-weight: 400 600;
	font-display: swap;
	src: url(assets/fonts/sourceserif-italic-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Source Serif 4";
	font-style: italic;
	font-weight: 400 600;
	font-display: swap;
	src: url(assets/fonts/sourceserif-italic-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
	--paper: #F4EEE3;
	--paper-deep: #EAE1CF;
	--card: #FFFCF6;
	--ink: #1E2B26;
	--ink-2: #46524C;
	--ink-3: #6B746F;
	--rust: #A3401B;
	--rust-bright: #E0663A;
	--tape: #F2C230;
	--tape-deep: #D9A713;
	--sage: #6F8F76;
	--sage-soft: #DCE4D6;
	--line: rgba(30, 43, 38, .14);
	--grid-line: rgba(30, 43, 38, .045);

	--font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
	--font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

	--radius: 12px;
	--radius-sm: 8px;
	--border: 1.5px solid var(--ink);
	--shadow-hard: 6px 6px 0 var(--ink);
	--shadow-soft: 0 1px 0 rgba(30, 43, 38, .06), 0 10px 30px -18px rgba(30, 43, 38, .45);

	--container: 1240px;
	--narrow: 760px;
	--gutter: clamp(16px, 4vw, 40px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background-color: var(--paper);
	background-image:
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 28px 28px;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--rust); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 750;
	line-height: 1.12;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
	text-wrap: balance;
}

p { margin: 0 0 1.1em; }

:focus-visible { outline: 3px solid var(--rust-bright); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--tape); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }

.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;
}

.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	left: 12px; top: 12px; z-index: 1000;
	padding: 10px 16px;
	background: var(--ink); color: var(--paper);
	font-family: var(--font-display); font-weight: 600;
	border-radius: var(--radius-sm);
	text-decoration: none;
}

/* ---------- Tape measure strip ---------- */
.tape {
	position: relative;
	height: 12px;
	background-color: var(--tape);
	background-image:
		repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 60px),
		repeating-linear-gradient(90deg, rgba(30, 43, 38, .7) 0 1px, transparent 1px 12px);
	background-size: 100% 9px, 100% 5px;
	background-repeat: no-repeat;
	border-top: 1px solid var(--tape-deep);
	border-bottom: 1.5px solid var(--ink);
}
.tape__progress {
	position: absolute; inset: 0 auto 0 0;
	width: 0;
	background: var(--rust-bright);
	mix-blend-mode: multiply;
	transition: width .1s linear;
}
.tape--footer { border-top: 1.5px solid var(--ink); border-bottom: 0; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(244, 238, 227, .94);
	-webkit-backdrop-filter: saturate(1.2) blur(10px);
	backdrop-filter: saturate(1.2) blur(10px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__bar {
	display: flex; align-items: center; gap: 24px;
	min-height: 76px;
}

.brand {
	display: inline-flex; align-items: center; gap: 12px;
	color: var(--ink);
	text-decoration: none;
	flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 44px; height: 44px; transition: transform .35s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.04); }
.brand__word {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.6rem;
	letter-spacing: -.035em;
	line-height: 1;
}
.brand__image { max-height: 52px; width: auto; }

.primary-nav { margin-left: auto; }
.primary-nav .menu {
	list-style: none; margin: 0; padding: 0;
	display: flex; align-items: center; gap: 4px;
}
.primary-nav .menu-item { position: relative; }
.primary-nav .menu-link {
	display: inline-flex; align-items: center;
	min-height: 44px;
	padding: 8px 14px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: .98rem;
	color: var(--ink);
	text-decoration: none;
	border-radius: 999px;
	transition: background-color .2s var(--ease), color .2s var(--ease);
}
.primary-nav .menu-link:hover { background: var(--paper-deep); }
.primary-nav .current-menu-item > .menu-link,
.primary-nav .current_page_item > .menu-link { background: var(--ink); color: var(--paper); }

.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: 100%; left: 0; min-width: 220px;
	background: var(--card); border: var(--border); border-radius: var(--radius);
	box-shadow: var(--shadow-hard);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.primary-nav .menu-item:hover > .sub-menu,
.primary-nav .menu-item:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu .menu-link { width: 100%; border-radius: var(--radius-sm); }

.site-header__tools { display: flex; align-items: center; gap: 6px; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px;
	padding: 0;
	color: var(--ink);
	background: transparent;
	border: var(--border);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { background: var(--tape); }
.icon-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); }

.menu-toggle { display: none; }
.menu-toggle__bars { display: grid; gap: 4px; width: 18px; }
.menu-toggle__bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header-search { padding: 4px 0 20px; }
.header-search .search-form { max-width: 680px; margin-inline: auto; }

@media (max-width: 860px) {
	.site-header__bar { min-height: 66px; gap: 12px; }
	.brand__mark { width: 38px; height: 38px; }
	.brand__word { font-size: 1.4rem; }
	.site-header__tools { margin-left: auto; }
	.menu-toggle { display: inline-grid; }
	.primary-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		margin: 0;
		padding: 12px var(--gutter) 20px;
		background: var(--paper);
		border-bottom: var(--border);
		box-shadow: 0 18px 30px -20px rgba(30, 43, 38, .5);
		display: none;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.primary-nav .menu-link { width: 100%; border-radius: var(--radius-sm); font-size: 1.1rem; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 16px; }
}

/* ---------- Search form ---------- */
.search-form {
	display: flex; align-items: stretch;
	background: var(--card);
	border: var(--border);
	border-radius: 999px;
	padding: 5px;
	box-shadow: 4px 4px 0 var(--ink);
}
.search-form__field {
	flex: 1; min-width: 0;
	border: 0; background: transparent;
	padding: 10px 18px;
	font: inherit; font-size: 1rem; color: var(--ink);
}
.search-form__field::placeholder { color: var(--ink-3); }
.search-form__field:focus { outline: none; }
.search-form:focus-within { box-shadow: 4px 4px 0 var(--rust-bright); }
.search-form__submit {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	font-family: var(--font-display); font-weight: 650; font-size: .98rem;
	color: var(--ink); background: var(--tape);
	border: 1.5px solid var(--ink); border-radius: 999px;
	cursor: pointer;
	transition: background-color .2s var(--ease);
}
.search-form__submit:hover { background: var(--rust-bright); }
@media (max-width: 480px) { .search-form__submit span { display: none; } .search-form__submit { padding: 0 14px; } }

/* ---------- Shared bits ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 18px;
	font-family: var(--font-display);
	font-weight: 600; font-size: .85rem;
	letter-spacing: .08em; text-transform: uppercase;
	color: var(--ink-2);
}
.eyebrow__dot { width: 10px; height: 10px; background: var(--rust-bright); border: 1.5px solid var(--ink); border-radius: 50%; }

.chip {
	display: inline-flex; align-items: center;
	padding: 3px 12px;
	font-family: var(--font-display);
	font-size: .78rem; font-weight: 650;
	letter-spacing: .04em; text-transform: uppercase;
	color: var(--ink);
	background: var(--sage-soft);
	border: 1.5px solid var(--ink);
	border-radius: 999px;
	text-decoration: none;
	transition: background-color .2s var(--ease);
}
.chip:hover { background: var(--tape); color: var(--ink); }
.chip--light { background: var(--tape); }

.section-head {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas: "eyebrow eyebrow" "title rule";
	align-items: end;
	column-gap: 24px;
	margin-bottom: clamp(24px, 4vw, 40px);
}
.section-head__eyebrow {
	grid-area: eyebrow;
	font-family: var(--font-display);
	font-weight: 600; font-size: .85rem;
	letter-spacing: .08em; text-transform: uppercase;
	color: var(--rust);
	margin-bottom: 6px;
}
.section-head__title { grid-area: title; margin: 0; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-head__rule {
	grid-area: rule;
	height: 14px; margin-bottom: .55em;
	background-image:
		linear-gradient(var(--ink), var(--ink)),
		repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 40px),
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px);
	background-size: 100% 1.5px, 100% 14px, 100% 7px;
	background-position: bottom, bottom, bottom;
	background-repeat: no-repeat;
	opacity: .8;
}
.section-head--light .section-head__eyebrow { color: var(--tape); }
.section-head--light .section-head__title { color: var(--paper); }
.section-head--light .section-head__rule {
	background-image:
		linear-gradient(var(--paper), var(--paper)),
		repeating-linear-gradient(90deg, var(--paper) 0 1.5px, transparent 1.5px 40px),
		repeating-linear-gradient(90deg, var(--paper) 0 1px, transparent 1px 10px);
	opacity: .55;
}

.thumb { display: block; position: relative; overflow: hidden; background: var(--paper-deep); }
.thumb img,
.thumb__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.thumb__placeholder {
	position: absolute; inset: 0;
	display: grid; place-items: center;
	background-image:
		linear-gradient(rgba(30, 43, 38, .08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(30, 43, 38, .08) 1px, transparent 1px);
	background-size: 18px 18px;
}
.thumb__placeholder span {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(3rem, 8vw, 5rem);
	line-height: 1;
	color: var(--ink);
	opacity: .85;
}
.tone-rust { background-color: #EBB79F; }
.tone-sage { background-color: #C7D6C3; }
.tone-tape { background-color: #F5D97A; }
.tone-ink  { background-color: #B9C2BD; }

/* ---------- Intro / hero ---------- */
.intro { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
}
.intro__title {
	font-size: clamp(2.5rem, 6vw, 4.6rem);
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1.02;
	margin-bottom: 22px;
}
.intro__text { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 34em; margin-bottom: 28px; }
.intro .search-form { max-width: 520px; }
.intro__stat { margin: 22px 0 0; font-family: var(--font-display); color: var(--ink-2); font-size: .98rem; }
.intro__stat strong { font-weight: 800; color: var(--ink); font-size: 1.15rem; margin-right: 4px; background: linear-gradient(transparent 60%, var(--tape) 60%); }

.feature {
	position: relative;
	border: var(--border);
	border-radius: calc(var(--radius) + 6px);
	overflow: hidden;
	box-shadow: 10px 10px 0 var(--ink);
	background: var(--ink);
	aspect-ratio: 5 / 4;
	isolation: isolate;
}
.feature__media { position: absolute; inset: 0; }
.feature__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(30, 43, 38, 0) 35%, rgba(30, 43, 38, .88) 100%);
}
.feature:hover .thumb__img { transform: scale(1.04); }
.feature__tag {
	position: absolute; top: 18px; left: -6px; z-index: 2;
	padding: 6px 16px 6px 20px;
	font-family: var(--font-display); font-weight: 700; font-size: .82rem;
	letter-spacing: .06em; text-transform: uppercase;
	background: var(--tape); color: var(--ink);
	border: 1.5px solid var(--ink);
	transform: rotate(-3deg);
	box-shadow: 3px 3px 0 var(--ink);
}
.feature__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(18px, 3vw, 32px); }
.feature__title { margin: 12px 0 0; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.feature__title a { color: var(--paper); text-decoration: none; }
.feature__title a:hover { text-decoration: underline; text-decoration-color: var(--tape); }

@media (max-width: 900px) {
	.intro__grid { grid-template-columns: 1fr; }
	.feature { box-shadow: 6px 6px 0 var(--ink); aspect-ratio: 4 / 3; }
}

/* ---------- Archive head ---------- */
.archive-head { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.archive-head__title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
.archive-head__desc { color: var(--ink-2); max-width: 40em; font-size: 1.12rem; }
.archive-head .search-form { max-width: 560px; margin-top: 20px; }
.archive-head--404 { padding-bottom: clamp(48px, 7vw, 88px); }

/* ---------- Latest grid ---------- */
.latest { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 32px);
}

.card {
	display: flex; flex-direction: column;
	background: var(--card);
	border: var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hard); }
.card:hover .thumb__img { transform: scale(1.05); }
.card__media { aspect-ratio: 4 / 3; border-bottom: var(--border); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 22px; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.card__time { font-family: var(--font-display); font-size: .82rem; color: var(--ink-3); }
.card__title { font-size: 1.28rem; margin: 0 0 10px; line-height: 1.2; }
.card__title a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--tape), var(--tape)) 0 92% / 0 .38em no-repeat; transition: background-size .35s var(--ease); }
.card__title a:hover { background-size: 100% .38em; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card .chip { position: relative; z-index: 2; }
.card__excerpt { margin: 0; color: var(--ink-2); font-size: .98rem; line-height: 1.55; }

.card--wide { grid-column: 1 / -1; flex-direction: row; }
.card--wide .card__media { flex: 0 0 55%; aspect-ratio: auto; min-height: 320px; border-bottom: 0; border-right: var(--border); }
.card--wide .card__body { justify-content: center; padding: clamp(22px, 3vw, 44px); }
.card--wide .card__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

@media (max-width: 1020px) {
	.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card--tail { grid-column: 1 / -1; flex-direction: row; }
	.card--tail .card__media { flex: 0 0 50%; aspect-ratio: auto; min-height: 260px; border-bottom: 0; border-right: var(--border); }
	.card--tail .card__body { justify-content: center; }
}
@media (max-width: 640px) {
	.card-grid { grid-template-columns: 1fr; }
	.card--wide,
	.card--tail { flex-direction: column; }
	.card--wide .card__media,
	.card--tail .card__media { flex: none; aspect-ratio: 4 / 3; min-height: 0; border-right: 0; border-bottom: var(--border); }
}

/* ---------- Pagination ---------- */
.pager { margin-top: clamp(36px, 5vw, 56px); }
.pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 46px; min-height: 46px; padding: 0 14px;
	white-space: nowrap;
	font-family: var(--font-display); font-weight: 650;
	color: var(--ink); text-decoration: none;
	background: var(--card);
	border: var(--border); border-radius: 999px;
	transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.pager a.page-numbers:hover { background: var(--tape); transform: translateY(-2px); }
.pager .page-numbers.current { background: var(--ink); color: var(--paper); }
.pager .page-numbers.dots { border-color: transparent; background: transparent; }

/* ---------- Popular Topics ---------- */
.popular {
	position: relative;
	padding: clamp(56px, 8vw, 100px) 0;
	color: var(--paper);
	background-color: var(--ink);
	background-image:
		linear-gradient(rgba(244, 238, 227, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(244, 238, 227, .06) 1px, transparent 1px);
	background-size: 28px 28px;
	border-top: var(--border);
}
.popular__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 26px);
	counter-reset: pop;
}
.pop-card { display: flex; }
.pop-card__link {
	position: relative;
	display: flex; flex-direction: column;
	width: 100%;
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
	border: 1.5px solid var(--paper);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pop-card__link:hover { color: var(--ink); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--tape); }
.pop-card__link:hover .thumb__img { transform: scale(1.06); }
.pop-card__media { aspect-ratio: 4 / 3; border-bottom: var(--border); }
.pop-card__no {
	position: absolute; top: 12px; left: 12px;
	display: grid; place-items: center;
	width: 42px; height: 42px;
	font-family: var(--font-display); font-weight: 800; font-size: 1rem;
	color: var(--ink); background: var(--tape);
	border: 1.5px solid var(--ink); border-radius: 50%;
	box-shadow: 2px 2px 0 var(--ink);
}
.pop-card__title {
	flex: 1;
	padding: 16px 18px 52px;
	font-family: var(--font-display);
	font-weight: 700; font-size: 1.08rem; line-height: 1.25;
	letter-spacing: -.01em;
	text-wrap: balance;
}
.pop-card__go {
	position: absolute; right: 14px; bottom: 14px;
	display: grid; place-items: center;
	width: 34px; height: 34px;
	border: 1.5px solid var(--ink); border-radius: 50%;
	transition: background-color .2s var(--ease), transform .25s var(--ease);
}
.pop-card__link:hover .pop-card__go { background: var(--rust-bright); transform: translateX(3px); }

@media (max-width: 1020px) { .popular__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
	.popular__grid { grid-template-columns: 1fr; }
	.pop-card__link { flex-direction: row; align-items: stretch; }
	.pop-card__media { flex: 0 0 38%; aspect-ratio: 1; border-bottom: 0; border-right: var(--border); }
	.pop-card__no { width: 34px; height: 34px; font-size: .88rem; top: 8px; left: 8px; }
	.pop-card__title { padding: 14px 44px 14px 14px; align-self: center; font-size: 1rem; }
	.pop-card__go { bottom: 50%; transform: translateY(50%); right: 10px; width: 28px; height: 28px; }
	.pop-card__link:hover .pop-card__go { transform: translateY(50%) translateX(3px); }
	.thumb__placeholder span { font-size: 2.4rem; }
}

/* ---------- Single ---------- */
.entry-head { padding: clamp(40px, 6vw, 76px) 0 clamp(24px, 4vw, 40px); text-align: center; }
.entry-head__meta {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
	margin-bottom: 20px;
	font-family: var(--font-display); font-size: .92rem; color: var(--ink-2);
}
.entry-title { font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 0; }
.entry-lede { margin: 20px auto 0; max-width: 36em; font-size: 1.2rem; color: var(--ink-2); }
.entry--page .entry-head { text-align: left; }

.entry-hero { margin: 0 auto clamp(32px, 5vw, 56px); }
.entry-hero__img {
	width: 100%; max-height: 720px; object-fit: cover;
	border: var(--border);
	border-radius: calc(var(--radius) + 6px);
	box-shadow: 10px 10px 0 var(--tape), 10px 10px 0 1.5px var(--ink);
}
.entry-hero figcaption { margin-top: 16px; text-align: center; font-size: .92rem; color: var(--ink-3); font-style: italic; }
@media (max-width: 640px) { .entry-hero__img { box-shadow: 6px 6px 0 var(--tape), 6px 6px 0 1.5px var(--ink); } }

.prose { font-size: clamp(1.08rem, 1.3vw, 1.18rem); line-height: 1.78; }
.prose > * { margin-top: 0; margin-bottom: 1.25em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2em 0 .6em; padding-top: .6em; border-top: 1.5px dashed var(--line); }
.prose h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 1.8em 0 .5em; }
.prose h4 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose a { color: var(--rust); font-weight: 600; }
.prose a:hover { color: var(--ink); background: var(--tape); }
.prose strong { font-weight: 700; }
.prose img { border-radius: var(--radius); height: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption,
.prose .wp-element-caption { font-size: .9rem; color: var(--ink-3); text-align: center; margin-top: 10px; font-style: italic; }
.prose ul,
.prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--rust-bright); }
.prose ol li::marker { font-family: var(--font-display); font-weight: 700; color: var(--rust); }
.prose blockquote {
	position: relative;
	margin: 2em 0; padding: 22px 26px 22px 30px;
	background: var(--card);
	border: var(--border); border-radius: var(--radius);
	font-size: 1.18em; font-style: italic;
}
.prose blockquote::before {
	content: ""; position: absolute; top: -10px; left: 24px;
	width: 88px; height: 20px;
	background: rgba(242, 194, 48, .85);
	transform: rotate(-4deg);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--font-display); font-size: .85rem; color: var(--ink-2); }
.prose hr { border: 0; height: 12px; margin: 2.5em 0; background: repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 12px) bottom / 100% 8px no-repeat; opacity: .5; }
.prose code { font-size: .88em; background: var(--paper-deep); padding: .12em .4em; border-radius: 4px; }
.prose pre { overflow-x: auto; background: var(--ink); color: var(--paper); padding: 18px 20px; border-radius: var(--radius); font-size: .9rem; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95em; }
.prose th,
.prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font-family: var(--font-display); background: var(--paper-deep); }
.prose .wp-block-table { overflow-x: auto; }
.prose .alignwide { width: min(1100px, 100vw - var(--gutter) * 2); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignfull img { border-radius: 0; }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose::after { content: ""; display: table; clear: both; }
.prose .wp-block-button__link,
.button,
.comment-form .submit {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 46px; padding: 0 24px;
	font-family: var(--font-display); font-weight: 700; font-size: 1rem;
	color: var(--ink); background: var(--tape);
	border: var(--border); border-radius: 999px;
	box-shadow: 3px 3px 0 var(--ink);
	text-decoration: none; cursor: pointer;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.prose .wp-block-button__link:hover,
.button:hover,
.comment-form .submit:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); background: var(--tape); color: var(--ink); }
.prose .wp-block-embed iframe { width: 100%; }
.prose .wp-block-gallery img { border-radius: var(--radius-sm); }

.page-links { display: flex; gap: 8px; align-items: center; font-family: var(--font-display); }

.post-nav {
	display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
	margin: clamp(40px, 6vw, 64px) 0 clamp(56px, 8vw, 88px);
}
.post-nav__item {
	display: flex; flex-direction: column; gap: 6px;
	padding: 18px 22px;
	color: var(--ink); text-decoration: none;
	background: var(--card);
	border: var(--border); border-radius: var(--radius);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.post-nav__item:hover { color: var(--ink); transform: translate(-3px, -3px); box-shadow: var(--shadow-hard); }
.post-nav__item--next { text-align: right; grid-column: 2; }
.post-nav__label { font-family: var(--font-display); font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--rust); }
.post-nav__title { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; line-height: 1.25; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav__item--next { grid-column: auto; } }

.entry--page .entry-content { padding-bottom: clamp(56px, 8vw, 88px); }

/* ---------- Comments ---------- */
.comments { padding: clamp(48px, 7vw, 80px) 0; background: var(--paper-deep); border-top: var(--border); }
.comments__title,
.comment-reply-title { font-size: 1.7rem; }
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list .children { list-style: none; padding-left: clamp(16px, 4vw, 40px); }
.comment-body { padding: 20px 22px; margin-bottom: 16px; background: var(--card); border: var(--border); border-radius: var(--radius); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-family: var(--font-display); font-size: .9rem; margin-bottom: 10px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author .avatar { border-radius: 50%; border: 1.5px solid var(--ink); }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--ink-3); text-decoration: none; }
.comment-content p:last-child { margin-bottom: 0; }
.reply { margin-top: 10px; font-family: var(--font-display); font-weight: 650; font-size: .9rem; }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%; padding: 12px 14px;
	font: inherit; color: var(--ink);
	background: var(--card);
	border: var(--border); border-radius: var(--radius-sm);
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--rust-bright); }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; font-family: var(--font-body); }

/* ---------- Empty state ---------- */
.empty-state { padding: 48px 28px; text-align: center; background: var(--card); border: 1.5px dashed var(--ink); border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); --logo-bg: #2E3D37; }
.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 32px 48px;
	padding-top: clamp(44px, 6vw, 64px);
	padding-bottom: 32px;
	align-items: start;
}
.site-footer .brand { color: var(--paper); }
.site-footer .brand:hover { color: var(--paper); }
.site-footer__tagline { margin: 16px 0 0; max-width: 28em; color: rgba(244, 238, 227, .75); }
.site-footer__widgets { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.footer-widget__title { font-size: 1rem; color: var(--tape); }
.site-footer a { color: var(--paper); }
.footer-nav { justify-self: end; }
.footer-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 6px; }
.footer-nav .menu-link {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
	font-family: var(--font-display); font-weight: 550; font-size: .95rem;
	color: rgba(244, 238, 227, .85); text-decoration: none;
	border-radius: 999px;
}
.footer-nav .menu-link:hover { color: var(--ink); background: var(--tape); }
.site-footer__legal {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
	padding-top: 20px; padding-bottom: 28px;
	border-top: 1px solid rgba(244, 238, 227, .14);
	font-family: var(--font-display); font-size: .9rem;
	color: rgba(244, 238, 227, .7);
}
.site-footer__legal p { margin: 0; }
.to-top {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 0 16px;
	font: inherit; color: var(--paper);
	background: transparent;
	border: 1.5px solid rgba(244, 238, 227, .35); border-radius: 999px;
	cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease);
}
.to-top:hover { background: var(--tape); color: var(--ink); border-color: var(--tape); }
@media (max-width: 760px) {
	.site-footer__inner { grid-template-columns: 1fr; }
	.footer-nav { justify-self: start; }
	.footer-nav .menu { justify-content: flex-start; margin-left: -12px; }
}

/* ---------- Header widget output (Analytics / AdSense) ---------- */
.site-header + .textwidget,
.site-header ~ .custom-html-widget { max-width: var(--container); margin-inline: auto; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.reveal { opacity: 1; transform: none; }
}

/* ---------- WordPress core classes ---------- */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .9rem; color: var(--ink-3); text-align: center; }
.sticky,
.bypostauthor,
.gallery-caption { display: block; }
