/* ==========================================================================
   Cardboard Toys theme
   1. Fonts and tokens   2. Base   3. Header   4. Hero   5. Sections and cards
   6. Single post        7. Content blocks   8. Archives   9. Comments
   10. Footer            11. Utilities
   ========================================================================== */

/* 1. Fonts and tokens ---------------------------------------------------- */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }

:root {
	--ink: #2b2118;
	--ink-soft: #5c4b3c;
	--muted: #7a6858;
	--paper: #fbf6ee;
	--paper-2: #f4e9d8;
	--white: #fffdf9;
	--kraft: #c79a6b;
	--kraft-dark: #8a6440;
	--kraft-light: #efe0c9;
	--line: #eadcc6;
	--tomato: #d9472b;
	--tomato-dark: #b8381f;
	--teal: #16756a;
	--mustard: #f2b33d;
	--sky: #6aa9d8;

	--tape-1: #f7d68e;
	--tape-2: #c3def3;
	--tape-3: #c4e6d8;
	--tape-4: #f7cbbd;
	--tape-5: #ddd2f1;

	--font-head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
	--font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1220px;
	--gutter: clamp(16px, 4vw, 28px);
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 2px 0 var(--line), 0 8px 24px rgba(91, 62, 30, .06);
	--shadow-hover: 0 5px 0 var(--line), 0 14px 32px rgba(91, 62, 30, .10);
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--tomato); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--tomato-dark); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
	margin: 0 0 .5em;
	letter-spacing: -.005em;
}

p { margin: 0 0 1.1em; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.site-main { padding-bottom: 64px; }

/* 3. Header ------------------------------------------------------------- */
.site-header {
	position: relative;
	z-index: 50;
	background: var(--white);
	border-bottom: 2px dashed var(--kraft);
}

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

.site-logo { margin: 0; line-height: 1; }
.site-logo img { max-height: 54px; width: auto; }

.text-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	text-decoration: none;
}
.text-logo:hover { color: var(--ink); }
.text-logo:hover .logo-mark { transform: rotate(-6deg); }
.logo-mark { display: inline-flex; transition: transform .25s ease; }
.logo-text {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 25px;
	letter-spacing: -.01em;
	white-space: nowrap;
}

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 6px; }
.main-nav li { position: relative; }
.main-nav a {
	display: block;
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--ink);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current-post-ancestor > a { background: var(--kraft-light); color: var(--ink); }

.main-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	padding: 8px;
	background: var(--white);
	border: 2px solid var(--line);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { border-radius: 8px; font-size: 15px; }

.header-actions { display: flex; align-items: center; gap: 4px; }
.main-nav + .header-actions { margin-left: 4px; }

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background-color .2s ease;
}
.icon-btn:hover { background: var(--kraft-light); }
.menu-toggle { display: none; }
.menu-toggle .i-close { display: none; }
.menu-open .menu-toggle .i-open { display: none; }
.menu-open .menu-toggle .i-close { display: inline-flex; }
.icon-btn span { display: inline-flex; }

.header-search {
	padding: 14px 0 18px;
	background: var(--white);
	border-top: 1px solid var(--line);
}
.header-search[hidden] { display: none; }

/* Search form */
.search-form {
	display: flex;
	align-items: center;
	max-width: 560px;
	background: var(--white);
	border: 2px solid var(--kraft);
	border-radius: 999px;
	padding: 4px 4px 4px 18px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.search-form:focus-within { border-color: var(--tomato); box-shadow: 0 0 0 4px rgba(217, 71, 43, .12); }
.search-field {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 10px 6px;
	font-size: 16px;
	outline: none;
}
.search-field::-webkit-search-cancel-button { display: none; }
.search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: var(--tomato);
	color: #fff;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.search-submit:hover { background: var(--tomato-dark); transform: rotate(-8deg); }

@media (max-width: 959px) {
	.header-inner { min-height: 64px; gap: 12px; }
	.logo-text { font-size: 21px; }
	.logo-mark svg { width: 36px; height: 36px; }
	.header-actions { margin-left: auto; }
	.menu-toggle { display: inline-flex; }
	.main-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin: 0;
		padding: 10px var(--gutter) 22px;
		background: var(--white);
		border-bottom: 2px dashed var(--kraft);
		box-shadow: 0 18px 30px rgba(43, 33, 24, .10);
	}
	.menu-open .main-nav { display: block; }
	.main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.main-nav a { padding: 12px 14px; font-size: 18px; border-radius: 12px; }
	.main-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		box-shadow: none;
		padding: 0 0 6px 16px;
		background: transparent;
	}
	.main-nav .sub-menu a { font-size: 16px; }
}

/* 4. Hero --------------------------------------------------------------- */
.hero { padding: clamp(20px, 4vw, 40px) 0 8px; }
.hero-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 24px;
}
.hero-text {
	position: relative;
	padding: clamp(26px, 4.5vw, 52px);
	background: var(--paper-2);
	border-radius: 28px;
	outline: 2px dashed rgba(138, 100, 64, .35);
	outline-offset: -12px;
}
.hero-inner { position: relative; }
.hero-text { grid-column: 1 / -1; grid-row: 1; padding-right: clamp(26px, 38vw, 480px); }
.hero-art { position: relative; z-index: 1; grid-column: 1 / -1; grid-row: 1; justify-self: end; align-self: end; margin: 0 clamp(14px, 3vw, 44px) 14px 0; pointer-events: none; }
.hero-img { width: clamp(260px, 32vw, 420px); height: auto; aspect-ratio: 640 / 440; object-fit: contain; }

.hero-title {
	font-size: clamp(30px, 4.6vw, 52px);
	line-height: 1.08;
	margin-bottom: .4em;
	max-width: 15em;
}
.hero-lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-soft); max-width: 36em; margin-bottom: 22px; }
.hero-search .search-form { max-width: 520px; }
.hero .chips { margin-top: 20px; }

@media (max-width: 760px) {
	.hero-inner { grid-template-columns: 1fr; gap: 0; }
	.hero .chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -22px; padding: 2px 22px 6px 0; scrollbar-width: none; }
	.hero .chips::-webkit-scrollbar { display: none; }
	.hero .chip { white-space: nowrap; }
	.hero-text { grid-row: 2; padding: 26px 22px 28px; border-radius: 0 0 24px 24px; outline-offset: -10px; }
	.hero-art { grid-row: 1; justify-self: stretch; margin: 0; padding: 14px 20px 0; background: var(--paper-2); border-radius: 24px 24px 0 0; }
	.hero-img { width: 100%; max-width: 360px; margin: 0 auto; }
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip {
	display: inline-block;
	padding: 7px 15px;
	background: var(--white);
	border: 2px solid var(--line);
	border-radius: 999px;
	color: var(--ink);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.chip:hover { color: var(--ink); border-color: var(--kraft); background: var(--kraft-light); transform: translateY(-2px); }

/* 5. Sections and cards ------------------------------------------------- */
.home-block { padding: clamp(30px, 5vw, 52px) 0 0; }

.block-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}
.section-title {
	position: relative;
	display: inline-block;
	font-size: clamp(24px, 3vw, 32px);
	margin: 0;
	padding-bottom: 6px;
	z-index: 0;
}
.section-title::after {
	content: "";
	position: absolute;
	left: -6px;
	right: 30%;
	bottom: 4px;
	height: 12px;
	background: var(--tape-1);
	border-radius: 3px;
	transform: rotate(-1.2deg);
	z-index: -1;
}
.block-desc { margin: 8px 0 0; color: var(--ink-soft); max-width: 46em; }

.see-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	padding: 8px 14px;
	border: 2px solid var(--ink);
	border-radius: 999px;
	color: var(--ink);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.see-all:hover { background: var(--ink); color: var(--paper); }
.see-all svg { transition: transform .2s ease; }
.see-all:hover svg { transform: translateX(3px); }

.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { gap: 14px; } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Card */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--white);
	border: 2px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.card-media {
	display: block;
	position: relative;
	aspect-ratio: 4 / 5;
	background: var(--kraft-light);
	overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--kraft-dark); }

.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px 16px; flex: 1; }

.card-title { font-size: 18px; line-height: 1.28; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:hover { color: var(--tomato); }
.card .tape { position: relative; z-index: 2; }
.card-excerpt { color: var(--ink-soft); margin: 0; }

.card-facts { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: auto 0 0; padding: 2px 0 0; list-style: none; font-size: 14px; color: var(--muted); }
.card-facts li { display: inline-flex; align-items: center; gap: 4px; }
.card-facts .level-easy { color: var(--teal); }
.card-facts .level-medium { color: #a8731a; }
.card-facts .level-hard { color: var(--tomato); }

/* Tape label */
.tape {
	display: inline-block;
	padding: 3px 11px 2px;
	background: var(--tape-1);
	color: var(--ink);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 13px;
	line-height: 1.4;
	text-decoration: none;
	transform: rotate(-1.5deg);
	clip-path: polygon(2% 0, 98% 4%, 100% 50%, 98% 96%, 3% 100%, 0 52%);
}
a.tape:hover { color: var(--ink); filter: brightness(.96); }
.tape-2 { background: var(--tape-2); transform: rotate(1deg); }
.tape-3 { background: var(--tape-3); }
.tape-4 { background: var(--tape-4); transform: rotate(1.2deg); }
.tape-5 { background: var(--tape-5); }

@media (max-width: 760px) {
	.card { border-radius: 14px; }
	.card-body { padding: 10px 12px 12px; gap: 6px; }
	.card-title { font-size: 15.5px; }
	.card-facts { font-size: 13px; }
	.tape { font-size: 12px; padding: 2px 9px 1px; }
}

/* Feature layout: one big card and a list */
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 24px; }
.card-large .card-media { aspect-ratio: 4 / 3; }
.card-large .card-title { font-size: clamp(22px, 2.4vw, 28px); }
.card-large .card-body { padding: 20px 22px 22px; gap: 10px; }

.feature-side { display: grid; grid-template-rows: repeat(4, auto); gap: 14px; align-content: start; }
.card-side { flex-direction: row; align-items: stretch; }
.card-side .card-media { flex: 0 0 132px; aspect-ratio: 4 / 5; }
.card-side .card-body { justify-content: center; padding: 12px 16px; }
.card-side .card-title { font-size: 17px; }

@media (max-width: 900px) {
	.feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.card-side .card-media { flex-basis: 104px; }
	.card-side .card-title { font-size: 15.5px; }
}

/* Scroll row */
.scroll-row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(230px, 1fr);
	gap: 20px;
	overflow-x: auto;
	padding: 4px 4px 18px;
	margin: 0 -4px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--kraft) transparent;
}
.scroll-row > .card { scroll-snap-align: start; }
@media (max-width: 760px) { .scroll-row { grid-auto-columns: 62%; gap: 14px; } }

/* Pinterest style */
.masonry { columns: 4 240px; column-gap: 22px; }
.masonry .card { break-inside: avoid; margin-bottom: 22px; display: inline-flex; width: 100%; }
.card-masonry .card-media { aspect-ratio: auto; }
.card-masonry .card-media img { height: auto; }
@media (max-width: 760px) { .masonry { columns: 2; column-gap: 14px; } .masonry .card { margin-bottom: 14px; } }

/* 6. Single post -------------------------------------------------------- */
.breadcrumbs { padding: 20px 0 0; font-size: 14px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: "/"; color: var(--kraft); margin-right: 2px; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--tomato); text-decoration: underline; }
.breadcrumbs [aria-current] span { display: inline-block; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

.single-layout { display: block; padding-top: 18px; }
.entry { max-width: 780px; margin: 0 auto; }
.has-sidebar .single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.has-sidebar .entry { margin: 0; max-width: 780px; }
@media (max-width: 1023px) { .has-sidebar .single-layout { display: block; } .has-sidebar .entry { margin: 0 auto; } .sidebar { max-width: 780px; margin: 40px auto 0; } }

.entry-header { margin-bottom: 22px; }
.entry-header .tape { margin-bottom: 12px; }
.entry-title { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; margin-bottom: 14px; }
.entry-lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); line-height: 1.55; margin-bottom: 16px; }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 15px; color: var(--muted); }
.post-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta img { width: 32px; height: 32px; border-radius: 50%; }
.meta-author a { color: var(--ink); font-weight: 700; text-decoration: none; }
.meta-author a:hover { color: var(--tomato); }

.entry-cover { margin: 0 0 26px; }
.entry-cover img { width: 100%; max-height: min(80vh, 720px); object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }

/* Project box */
.project-box {
	margin: 0 0 30px;
	padding: 22px;
	background: var(--white);
	border: 2px dashed var(--kraft);
	border-radius: 22px;
}
.project-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.project-facts li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--paper); border-radius: 14px; }
.project-facts svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--tape-2); color: var(--ink); }
.project-facts li:nth-child(2) svg { background: var(--tape-1); }
.project-facts li:nth-child(3) svg { background: var(--tape-4); }
.project-facts .level-easy svg { background: var(--tape-3); }
.project-facts .level-hard svg { background: var(--tape-4); }
.project-facts small { display: block; font-size: 13px; color: var(--muted); line-height: 1.2; }
.project-facts strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.25; }

.project-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 28px; margin-top: 18px; }
.project-facts + .project-lists { padding-top: 18px; border-top: 2px solid var(--paper-2); }
.project-facts:only-child { margin: 0; }
.project-list-title { display: flex; align-items: center; gap: 8px; font-size: 19px; margin: 0 0 10px; }
.project-list-title svg { color: var(--kraft-dark); }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 4px 0 4px 30px; line-height: 1.45; }
.checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 18px;
	height: 18px;
	border: 2px solid var(--kraft);
	border-radius: 5px;
	background: var(--white);
}

/* Table of contents */
.toc { margin: 0 0 30px; }
.toc details { background: var(--paper-2); border-radius: 18px; padding: 16px 20px; }
.toc summary {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 18px;
	cursor: pointer;
	list-style: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; margin-left: auto; font-size: 22px; line-height: 1; color: var(--kraft-dark); }
.toc details[open] summary::after { content: "\2212"; }
.toc ol { margin: 12px 0 2px; padding-left: 22px; columns: 2 240px; column-gap: 28px; }
.toc li { padding: 3px 0; break-inside: avoid; font-size: 16px; }
.toc li::marker { color: var(--kraft-dark); font-weight: 700; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--tomato); text-decoration: underline; }

/* Sidebar */
.sidebar .widget { margin-bottom: 28px; padding: 20px; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); }
.sidebar .widget-title { font-size: 19px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--tomato); }
.sidebar-sticky { position: sticky; top: 24px; }

/* Search block in widget areas */
.wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.wp-block-search__input { flex: 1; min-width: 0; padding: 10px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--white); }
.wp-block-search__input:focus { border-color: var(--kraft); outline: none; }
.wp-block-search__button { padding: 10px 16px; border: 0; border-radius: 999px; background: var(--tomato); color: #fff; font-family: var(--font-head); font-weight: 600; cursor: pointer; }
.wp-block-search__button:hover { background: var(--tomato-dark); }
.wp-block-search__label { font-family: var(--font-head); font-weight: 600; font-size: 19px; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget li { padding: 4px 0; }

/* Ads */
.ad { margin: 30px auto; text-align: center; min-height: 120px; clear: both; }
.ad-label { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ad-sidebar { margin-top: 0; min-height: 280px; }

/* 7. Content ------------------------------------------------------------ */
.entry-content { font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2 { font-size: clamp(25px, 3vw, 31px); margin: 1.9em 0 .6em; }
.entry-content h3 { font-size: clamp(21px, 2.4vw, 24px); margin: 1.6em 0 .5em; }
.entry-content h4 { font-size: 19px; margin: 1.4em 0 .5em; }
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--kraft-dark); }
.entry-content img { border-radius: 16px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .entry-content .wp-element-caption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.entry-content strong { font-weight: 700; color: var(--ink); }
.entry-content hr { border: 0; border-top: 2px dashed var(--kraft); margin: 2.4em 0; }
.entry-content blockquote {
	margin: 1.6em 0;
	padding: 6px 0 6px 22px;
	border-left: 5px solid var(--kraft);
	font-size: 20px;
	font-style: italic;
	color: var(--ink-soft);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content .wp-block-image { margin-bottom: 1.6em; }
.entry-content .wp-block-gallery { gap: 12px; }
.entry-content .wp-block-gallery img { border-radius: 12px; }
.entry-content .alignwide { margin-left: calc(-1 * min(80px, 5vw)); margin-right: calc(-1 * min(80px, 5vw)); max-width: none; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.has-sidebar .entry-content .alignwide, .has-sidebar .entry-content .alignfull { margin-left: 0; margin-right: 0; max-width: 100%; }
.entry-content .wp-block-button__link {
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--tomato);
	color: #fff;
	font-family: var(--font-head);
	font-weight: 600;
	text-decoration: none;
}
.entry-content .wp-block-button__link:hover { background: var(--tomato-dark); color: #fff; }
.entry-content .wp-block-embed iframe { width: 100%; border-radius: 16px; }

/* Block style: Step heading */
.entry-content .is-style-ct-step {
	position: relative;
	padding: 14px 18px 14px 20px;
	background: var(--white);
	border: 2px solid var(--line);
	border-left: 8px solid var(--kraft);
	border-radius: 16px;
	font-size: clamp(21px, 2.6vw, 25px);
	box-shadow: 0 2px 0 var(--line);
}

/* Block styles: Safety note and Tip */
.entry-content .is-style-ct-safety,
.entry-content .is-style-ct-tip {
	position: relative;
	padding: 16px 20px 16px 62px;
	border-radius: 16px;
	font-size: 17px;
	line-height: 1.6;
}
.entry-content .is-style-ct-safety { background: #fde9e3; border: 2px solid #f5c4b6; }
.entry-content .is-style-ct-tip { background: #e2f3ed; border: 2px solid #b9e0d2; }
.entry-content .is-style-ct-safety::before,
.entry-content .is-style-ct-tip::before {
	position: absolute;
	left: 18px;
	top: 16px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: #fff;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 18px;
	line-height: 30px;
	text-align: center;
}
.entry-content .is-style-ct-safety::before { content: "!"; background: var(--tomato); }
.entry-content .is-style-ct-tip::before { content: "i"; background: var(--teal); }
.entry-content .is-style-ct-safety > :last-child,
.entry-content .is-style-ct-tip > :last-child { margin-bottom: 0; }

/* Block style: Checklist */
.entry-content .is-style-ct-checklist { list-style: none; padding-left: 0; }
.entry-content .is-style-ct-checklist li { position: relative; padding-left: 32px; }
.entry-content .is-style-ct-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .3em;
	width: 19px;
	height: 19px;
	border: 2px solid var(--kraft);
	border-radius: 5px;
	background: var(--white);
}

/* Block style: Kraft frame image */
.entry-content .is-style-ct-framed img { padding: 10px; background: var(--white); border: 2px dashed var(--kraft); border-radius: 20px; }

/* Entry footer */
.entry-footer { margin-top: 34px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; }
.tags a { display: inline-block; padding: 5px 12px; background: var(--paper-2); border-radius: 999px; color: var(--ink-soft); font-size: 14px; font-weight: 700; text-decoration: none; }
.tags a:hover { background: var(--kraft-light); color: var(--ink); }

.author-box {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding: 22px;
	background: var(--white);
	border: 2px solid var(--line);
	border-radius: 22px;
	margin-bottom: 28px;
}
.author-box img { width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; border: 3px solid var(--kraft-light); }
.author-label { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.author-name { font-size: 21px; margin: 2px 0 6px; }
.author-name a { color: var(--ink); text-decoration: none; }
.author-name a:hover { color: var(--tomato); }
.author-bio { margin: 0; color: var(--ink-soft); font-size: 16px; }

.after-post .widget { padding: 24px; background: var(--paper-2); border-radius: 22px; margin-bottom: 28px; }
.after-post .widget-title { font-size: 22px; }

.related { margin-top: 56px; }
.related .section-title { margin-bottom: 22px; }

.page-links { margin: 24px 0; font-weight: 700; }

/* 8. Archives ----------------------------------------------------------- */
.archive-header { padding: 18px 0 30px; max-width: 820px; }
.archive-title { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; margin-bottom: 12px; }
.archive-desc { color: var(--ink-soft); font-size: 18px; }
.archive-desc p:last-child { margin-bottom: 0; }
.archive-header .chips { margin-top: 18px; }
.archive-search { margin-top: 14px; }

.pagination { margin-top: 44px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 14px;
	border: 2px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-head);
	font-weight: 600;
	text-decoration: none;
}
.pagination a:hover { border-color: var(--kraft); background: var(--kraft-light); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pagination .dots { border: 0; background: transparent; min-width: 20px; padding: 0; }
.pagination .screen-reader-text { position: absolute; }

.nothing, .error-404 { text-align: center; padding: 40px 0; }
.error-404 { padding-top: 56px; }
.nothing-icon { display: inline-flex; color: var(--kraft); margin-bottom: 10px; }
.nothing-title { font-family: var(--font-head); font-weight: 600; font-size: 26px; margin-bottom: 6px; }
.nothing .chips, .error-404 .chips { justify-content: center; margin-top: 22px; }
.error-404 .search-form { margin: 0 auto; }

/* 9. Comments ----------------------------------------------------------- */
.comments-wrap { max-width: 780px; margin: 56px auto 0; }
.has-sidebar .comments-wrap { margin-left: 0; }
.comments .section-title { margin-bottom: 22px; }
.comment-list { list-style: none; margin: 0 0 36px; padding: 0; }
.comment-list .children { list-style: none; padding-left: clamp(16px, 4vw, 48px); }
.comment-body { padding: 18px 20px; margin-bottom: 14px; background: var(--white); border: 2px solid var(--line); border-radius: 18px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 13px; margin: 2px 0 8px 58px; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content p:last-child { margin-bottom: 6px; }
.reply a { font-size: 14px; font-weight: 700; }
.comment-respond { padding: 24px; background: var(--paper-2); border-radius: 22px; }
.comment-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid var(--line);
	border-radius: 12px;
	background: var(--white);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--kraft); outline: none; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.comment-form-cookies-consent label { font-weight: 400; }
.form-submit .submit {
	padding: 12px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--tomato);
	color: #fff;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 17px;
	cursor: pointer;
}
.form-submit .submit:hover { background: var(--tomato-dark); }

/* 10. Footer ------------------------------------------------------------ */
.site-footer { position: relative; margin-top: 30px; background: var(--ink); color: #e9dccb; padding: 56px 0 26px; }
.cut-line { position: absolute; top: 12px; left: 0; right: 0; border-top: 2px dashed rgba(199, 154, 107, .55); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.footer-grid:has(> :nth-child(4)) { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.footer-logo { margin: 0 0 10px; font-family: var(--font-head); font-weight: 700; font-size: 26px; }
.footer-logo a { color: #fff; text-decoration: none; }
.footer-about p { max-width: 30em; }
.footer-title, .site-footer .widget-title { color: #fff; font-size: 18px; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 4px 0; }
.site-footer a { color: #e9dccb; text-decoration: none; }
.site-footer a:hover { color: var(--mustard); }
.socials { display: flex; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background-color .2s ease, transform .2s ease; }
.socials a:hover { background: var(--tomato); color: #fff; transform: translateY(-2px); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: #b9a893; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) {
	.footer-grid, .footer-grid:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr; gap: 28px; }
	.footer-about { grid-column: 1 / -1; }
}

/* 11. Utilities --------------------------------------------------------- */
.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 !important;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	padding: 12px 18px;
	top: 10px;
	left: 10px;
	z-index: 1000;
	background: var(--ink);
	color: #fff;
	border-radius: 10px;
	text-decoration: none;
}

.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.sticky .card-title::before { content: none; }
.bypostauthor { display: block; }
.wp-caption, .gallery-caption { font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.main-nav > ul > li:last-child > .sub-menu { left: auto; right: 0; }
