/*
Theme Name: Dunden Sonra
Theme URI: https://dundensonra.com/
Author: Dunden Sonra
Description: A playful "craft table" theme for dundensonra.com: party ideas, costumes, printables, kids crafts and home DIY. Paper-and-confetti look, Popular Topics blocks on every post, and a Header widget area for analytics and ads code.
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: dundensonra
Tags: blog, grid-layout, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* Fonts (self-hosted, SIL Open Font License): Bricolage Grotesque, Figtree, Instrument Serif */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/fonts/bricolage-grotesque-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/figtree-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/figtree-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrument-serif-italic.woff2') format('woff2');
}

/* ==========================================================================
   1. Tokens (daisyUI-style semantic theme)
   ========================================================================== */
:root {
	--paper: #FFF8EE;
	--paper-2: #FBEBD6;
	--card: #FFFFFF;
	--ink: #2A1E3B;
	--ink-2: #4A3D5C;
	--muted: #6B5F7A;
	--tomato: #F2542D;
	--tomato-ink: #C23A17;
	--marigold: #F6B83C;
	--mint: #2FB38F;
	--lilac: #B9A6F2;
	--bubblegum: #FF8FB1;
	--sky: #8FD3FF;

	--font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
	--font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-accent: "Instrument Serif", Georgia, serif;

	--radius: 22px;
	--radius-sm: 14px;
	--line: 2px solid var(--ink);
	--shadow: 5px 5px 0 var(--ink);
	--shadow-lg: 8px 8px 0 var(--ink);
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--ease: cubic-bezier(.2, .8, .2, 1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--tomato-ink); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--marigold); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.stack > * + * { margin-top: clamp(48px, 7vw, 88px); }
.site-main { display: block; padding-bottom: clamp(56px, 8vw, 96px); }

.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 { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; color: var(--paper); }

/* ==========================================================================
   3. Components: buttons, tape, chips, icons
   ========================================================================== */
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.btn {
	display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: .7em 1.3em;
	border: var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
	font: 700 1rem/1 var(--font-display); text-decoration: none; cursor: pointer;
	box-shadow: 3px 3px 0 var(--ink); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { background: var(--tomato); color: #fff; }
.btn--primary:hover { color: #fff; background: var(--tomato-ink); }

.tape {
	position: relative; z-index: 2; display: inline-block; align-self: flex-start;
	padding: .28em .8em .26em; margin-bottom: .7rem;
	background: color-mix(in srgb, var(--marigold) 88%, transparent);
	color: var(--ink); font: 800 .72rem/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
	transform: rotate(-2.5deg);
	clip-path: polygon(3% 0, 100% 4%, 97% 100%, 0 96%);
}
a.tape:hover { background: var(--ink); color: var(--paper); }

.chip {
	display: inline-flex; align-items: center; min-height: 40px; padding: .35em .95em; border: var(--line); border-radius: 999px;
	background: var(--card); font-weight: 700; font-size: .92rem; text-decoration: none; transition: background .18s, color .18s;
}
.chip:hover { background: var(--ink); color: var(--paper); }

.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

/* Placeholder art used when a post has no image */
.ph { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: var(--lilac); }
.ph::before {
	content: ""; position: absolute; inset: -20%;
	background-image:
		radial-gradient(circle at 20% 30%, var(--marigold) 0 9px, transparent 10px),
		radial-gradient(circle at 70% 20%, var(--tomato) 0 6px, transparent 7px),
		radial-gradient(circle at 80% 75%, var(--mint) 0 8px, transparent 9px),
		radial-gradient(circle at 35% 80%, var(--paper) 0 5px, transparent 6px);
	background-size: 120px 120px;
	transform: rotate(12deg);
}
.ph__letter { position: relative; font: 800 clamp(3rem, 8vw, 5.5rem)/1 var(--font-display); color: var(--ink); text-transform: uppercase; }
.ph--1 { background: var(--bubblegum); }
.ph--2 { background: var(--sky); }
.ph--3 { background: var(--marigold); }
.ph--4 { background: #BDECD9; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.ribbon {
	background: var(--ink); color: var(--paper); text-align: center;
	font: 700 .8rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; padding: 9px 16px;
	background-image: radial-gradient(circle, rgba(255, 248, 238, .16) 1.4px, transparent 1.6px); background-size: 14px 14px;
}
.ribbon span::before, .ribbon span::after { content: "✦"; color: var(--marigold); margin: 0 .8em; }

.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header__bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; flex: none; text-decoration: none; }
.brand__img { width: auto; height: 46px; }
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu-link {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
	font: 700 1rem/1 var(--font-display); text-decoration: none; transition: background .18s, color .18s;
}
.menu-link:hover, .menu-link[aria-current] { background: var(--ink); color: var(--paper); }
.site-header__tools { display: flex; gap: 8px; }
.icon-btn {
	display: inline-grid; place-items: center; width: 46px; height: 46px; border: var(--line); border-radius: 50%;
	background: var(--card); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); transition: transform .18s var(--ease), box-shadow .18s, background .18s;
}
.icon-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); background: var(--marigold); }
.icon-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.icon-btn--menu { display: none; }
.site-search { border-top: var(--line); background: var(--paper-2); padding: 18px 0; }
.site-search[hidden] { display: none; }
.progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; overflow: hidden; }
.progress__bar { display: block; height: 100%; background: linear-gradient(90deg, var(--tomato), var(--marigold), var(--mint)); transform: scaleX(0); transform-origin: 0 50%; }

@media (max-width: 860px) {
	.site-header__bar { gap: 12px; min-height: 66px; }
	.brand__img { height: 38px; }
	.site-header__tools { margin-left: auto; }
	.icon-btn--menu { display: inline-grid; }
	.site-nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: var(--paper); border-bottom: var(--line); display: none; padding: 12px var(--gutter) 18px; }
	.site-nav.is-open { display: block; }
	.site-nav__list { flex-direction: column; }
	.menu-link { width: 100%; font-size: 1.15rem; }
}

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 620px; }
.search-form__input {
	flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border: var(--line); border-radius: 999px; background: var(--card);
	font-size: 1rem; box-shadow: inset 2px 2px 0 rgba(42, 30, 59, .08);
}
.search-form__input::placeholder { color: var(--muted); }
.search-form__input:focus { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--marigold) 70%, transparent); }
.search-form__btn { min-height: 52px; }
@media (max-width: 480px) { .search-form__btn span { display: none; } }

/* ==========================================================================
   5. Hero & page heads
   ========================================================================== */
.hero { position: relative; overflow: hidden; border-bottom: var(--line); background:
	radial-gradient(circle at 8% 20%, var(--lilac) 0 5px, transparent 6px) 0 0 / 180px 160px,
	radial-gradient(circle at 60% 70%, var(--marigold) 0 4px, transparent 5px) 0 0 / 210px 190px,
	var(--paper); }
.hero__inner { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 32px; padding-block: clamp(40px, 7vw, 88px); }
.hero__kicker { font: 800 .8rem/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--tomato-ink); margin-bottom: 18px; }
.hero__title { font-size: clamp(2.5rem, 6.2vw, 5rem); font-weight: 800; line-height: .98; letter-spacing: -.035em; margin-bottom: 20px; }
.hero__title em {
	font: italic 400 1.12em/1 var(--font-accent); letter-spacing: -.01em; color: var(--tomato); position: relative; white-space: nowrap; padding-right: .06em;
}
.hero__title em::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .22em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20'%3E%3Cpath d='M3 13c30-9 60 6 96-3s70-6 98 1' fill='none' stroke='%23F6B83C' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 34em; margin-bottom: 28px; }
.hero__art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.hero__balloon { position: absolute; inset: 14%; width: 72%; height: auto; border: var(--line); border-radius: 36px; box-shadow: var(--shadow-lg); transform: rotate(4deg); animation: float 6s ease-in-out infinite; }
.blob { position: absolute; border: var(--line); border-radius: 50%; }
.blob--a { width: 34%; aspect-ratio: 1; background: var(--marigold); top: 0; left: 4%; }
.blob--b { width: 22%; aspect-ratio: 1; background: var(--mint); bottom: 4%; right: 2%; border-radius: 30% 70% 60% 40%; }
.blob--c { width: 16%; aspect-ratio: 1; background: var(--bubblegum); bottom: 14%; left: 0; border-radius: 8px; transform: rotate(18deg); }
@keyframes float { 50% { transform: rotate(1deg) translateY(-12px); } }
@media (max-width: 820px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__art { display: none; }
}

.page-head { border-bottom: var(--line); background: var(--paper-2); padding-block: clamp(36px, 6vw, 72px); margin-bottom: 0; }
.page-head__kicker { font: 800 .8rem/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--tomato-ink); margin-bottom: 14px; }
.page-head__title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; margin-bottom: 14px; }
.page-head__desc { color: var(--ink-2); max-width: 40em; margin-bottom: 20px; }
.page-head .search-form { margin-top: 20px; }

/* ==========================================================================
   6. Section heads
   ========================================================================== */
.section-head { display: flex; flex-direction: column; margin-bottom: 28px; }
.section-head__kicker { display: inline-flex; align-items: center; gap: .5em; font: 800 .78rem/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--tomato-ink); margin: 0 0 10px; }
.section-head__title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; margin: 0; }

/* ==========================================================================
   7. Cards
   ========================================================================== */
.site-main > .wrap.stack:first-child, .hero + .wrap.stack, .page-head + .wrap.stack { padding-top: clamp(40px, 6vw, 72px); }

/* Lead */
.lead {
	position: relative; display: grid; grid-template-columns: 1.25fr 1fr; background: var(--card);
	border: var(--line); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lg); overflow: hidden;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.lead:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--tomato); }
.lead__media { position: relative; min-height: 320px; border-right: var(--line); overflow: hidden; background: var(--paper-2); }
.lead__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lead:hover .lead__media img { transform: scale(1.04); }
.lead__sticker {
	position: absolute; top: 18px; left: 18px; z-index: 2; display: grid; place-items: center; width: 84px; height: 84px; border: var(--line); border-radius: 50%;
	background: var(--marigold); font: 800 .85rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; transform: rotate(-12deg);
}
.lead__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 52px); }
.lead__title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 800; }
.lead__title a { text-decoration: none; }
.lead__excerpt { color: var(--ink-2); font-size: 1.08rem; }
.lead .btn { align-self: flex-start; margin-top: 8px; }
@media (max-width: 820px) {
	.lead { grid-template-columns: 1fr; }
	.lead__media { min-height: 0; aspect-ratio: 4 / 3; border-right: 0; border-bottom: var(--line); }
}

/* Grid card */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 32px); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
	--accent: var(--tomato);
	position: relative; display: flex; flex-direction: column; background: var(--card);
	border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
	transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.grid > .card:nth-child(5n + 2) { --accent: var(--marigold); }
.grid > .card:nth-child(5n + 3) { --accent: var(--mint); }
.grid > .card:nth-child(5n + 4) { --accent: var(--lilac); }
.grid > .card:nth-child(5n + 5) { --accent: var(--bubblegum); }
.card:hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: 8px 8px 0 var(--accent), 8px 8px 0 2px var(--ink); }
.card__media { position: relative; aspect-ratio: 4 / 3; border-bottom: var(--line); overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 18px; }
.card__title { font-size: 1.28rem; font-weight: 700; margin-bottom: .45em; }
.card__title a { text-decoration: none; }
.card__excerpt { color: var(--muted); font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin: auto 0 0; padding-top: 10px; display: flex; align-items: center; gap: .4em; color: var(--muted); font-size: .85rem; font-weight: 600; }

/* ==========================================================================
   8. Popular Topics
   ========================================================================== */
.popular--band, .popular--grid {
	position: relative; padding: clamp(28px, 4.5vw, 56px); border: var(--line); border-radius: calc(var(--radius) + 10px);
	background: var(--ink); color: var(--paper);
	background-image: radial-gradient(circle, rgba(255, 248, 238, .13) 1.5px, transparent 1.7px); background-size: 18px 18px;
	box-shadow: 8px 8px 0 var(--marigold);
}
.popular--band .section-head__kicker { color: var(--marigold); }
.popular--band .section-head__title { color: var(--paper); }
.popular--band .section-head { flex-direction: column; }
.popular--band::before {
	content: ""; position: absolute; top: -22px; right: clamp(24px, 6vw, 70px); width: 64px; height: 64px; border: var(--line); border-radius: 50%;
	background: var(--tomato) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 4v4M12 16v4M4 12h4M16 12h4M6.3 6.3l2.8 2.8M14.9 14.9l2.8 2.8M6.3 17.7l2.8-2.8M14.9 9.1l2.8-2.8'/%3E%3C/svg%3E") center / 34px no-repeat;
	animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 1000px) { .pop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pop {
	--accent: var(--marigold);
	position: relative; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
	border: var(--line); border-color: var(--paper); border-radius: var(--radius-sm); overflow: hidden;
	transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.pop:nth-child(4n + 2) { --accent: var(--mint); }
.pop:nth-child(4n + 3) { --accent: var(--bubblegum); }
.pop:nth-child(4n + 4) { --accent: var(--sky); }
.pop:hover { transform: translateY(-4px) rotate(.6deg); box-shadow: 6px 6px 0 var(--accent); }
.pop__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.pop__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pop:hover .pop__media img { transform: scale(1.06); }
.pop__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 0 16px 16px; }
.pop__body .tape { margin: -12px 0 10px; background: var(--accent); }
.pop__title { font-size: 1.05rem; font-weight: 700; line-height: 1.22; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pop__title a { text-decoration: none; }
.pop:hover .pop__title a { color: var(--tomato-ink); }
@media (max-width: 520px) {
	.pop-grid { gap: 12px; }
	.pop__body { padding: 0 12px 12px; }
	.pop__title { font-size: .95rem; }
}

/* Sidebar list */
.popular--list .section-head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: var(--line); }
.popular--list .section-head__title { font-size: 1.6rem; display: flex; align-items: center; gap: 10px; }
.popular--list .section-head__title::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--tomato); box-shadow: 18px 0 0 var(--marigold), 36px 0 0 var(--mint); margin-right: 40px; }
.mini-list { display: grid; gap: 12px; counter-reset: mini; }
.mini {
	position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 10px;
	background: var(--card); border: var(--line); border-radius: var(--radius-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.mini:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); background: #FFFDF8; }
.mini__media { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: var(--line); background: var(--paper-2); }
.mini__media img { width: 100%; height: 100%; object-fit: cover; }
.mini__media .ph__letter { font-size: 2.2rem; }
.mini__body { display: flex; flex-direction: column; min-width: 0; }
.mini__body .tape { font-size: .62rem; margin-bottom: 6px; }
.mini__title { font-size: .98rem; font-weight: 700; line-height: 1.25; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini__title a { text-decoration: none; }

/* ==========================================================================
   9. Single post
   ========================================================================== */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; padding-top: clamp(28px, 5vw, 56px); }
.post-aside__sticky { position: sticky; top: 104px; }
.post-aside__widgets { margin-top: 28px; }
@media (max-width: 1040px) {
	.post-layout { grid-template-columns: 1fr; }
	.post-aside__sticky { position: static; }
	.post-aside .mini-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .post-aside .mini-list { grid-template-columns: 1fr; } }

.entry { min-width: 0; }
.entry--page { max-width: 820px; margin-inline: auto; padding-top: clamp(28px, 5vw, 56px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; margin-bottom: 18px; }
.crumbs__link { text-decoration: none; padding: 4px 12px; border: var(--line); border-radius: 999px; background: var(--card); }
.crumbs__link:hover { background: var(--marigold); color: var(--ink); }
.entry__title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; }
.entry__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.entry__meta span { display: inline-flex; align-items: center; gap: .35em; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tomato); }
.entry__media { margin: 28px 0 36px; border: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper-2); }
.entry__media img { width: 100%; }

.prose { font-size: 1.125rem; line-height: 1.78; max-width: 720px; }
.prose > * + * { margin-top: 1.2em; }
.prose p { margin: 0; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 1.8em 0 .5em; font-weight: 800; }
.prose h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 1.6em 0 .4em; font-weight: 700; }
.prose h2::before { content: ""; display: block; width: 56px; height: 8px; border-radius: 99px; margin-bottom: 14px; background: linear-gradient(90deg, var(--tomato) 0 33%, var(--marigold) 33% 66%, var(--mint) 66%); }
.prose a { color: var(--tomato-ink); font-weight: 600; text-decoration-color: color-mix(in srgb, var(--tomato) 45%, transparent); }
.prose a:hover { text-decoration-color: currentColor; }
.prose img, .prose .wp-block-image img { border-radius: var(--radius-sm); border: var(--line); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: .6em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.7em; }
.prose ul li + li { margin-top: .45em; }
.prose ul li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .62em; height: .62em; border: 2px solid var(--ink); background: var(--marigold); transform: rotate(45deg); border-radius: 2px; }
.prose ul li:nth-child(3n+2)::before { background: var(--mint); border-radius: 50%; }
.prose ul li:nth-child(3n+3)::before { background: var(--bubblegum); }
.prose ol { padding-left: 1.4em; }
.prose ol li::marker { font-family: var(--font-display); font-weight: 800; color: var(--tomato-ink); }
.prose blockquote {
	margin-inline: 0; padding: 22px 26px; border: var(--line); border-radius: var(--radius-sm); background: var(--paper-2);
	font: italic 400 1.5rem/1.35 var(--font-accent); box-shadow: 5px 5px 0 var(--lilac);
}
.prose blockquote p { margin: 0; }
.prose code { background: var(--paper-2); padding: .1em .35em; border-radius: 6px; font-size: .9em; }
.prose pre { overflow: auto; background: var(--ink); color: var(--paper); padding: 18px; border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { border: 2px solid var(--ink); padding: 10px 12px; text-align: left; }
.prose th { background: var(--marigold); }
.prose hr { border: 0; height: 12px; background: radial-gradient(circle, var(--ink) 2px, transparent 2.5px) center / 18px 12px repeat-x; }
.prose .wp-block-button__link { border: var(--line); border-radius: 999px; background: var(--tomato); color: #fff; font-family: var(--font-display); font-weight: 700; box-shadow: 3px 3px 0 var(--ink); text-decoration: none; }
.prose iframe { border-radius: var(--radius-sm); }
.alignwide { max-width: none; }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.wp-caption-text { font-size: .9rem; color: var(--muted); }
.page-links { display: flex; gap: 8px; font-weight: 700; }

.after-content { margin-top: 32px; }
.entry__foot { margin-top: 40px; display: grid; gap: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav__link {
	display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: var(--line); border-radius: var(--radius-sm); background: var(--card);
	text-decoration: none; box-shadow: 4px 4px 0 var(--ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.post-nav__link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--tomato); color: var(--ink); }
.post-nav__link--next { text-align: right; }
.post-nav__label { font: 800 .75rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--tomato-ink); }
.post-nav__title { font: 700 1.05rem/1.25 var(--font-display); }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav__link--next { text-align: left; } .post-nav__gap { display: none; } }

/* Widgets */
.widget { margin-bottom: 24px; }
.widget-title { font-size: 1.2rem; }
.widget ul { padding-left: 1.1em; }

/* ==========================================================================
   10. Comments
   ========================================================================== */
.comments { max-width: 820px; }
.comments__title, .comment-reply-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { margin: 16px 0 0 clamp(16px, 4vw, 44px); }
.comment-list > li + li { margin-top: 16px; }
.comment__body { padding: 18px 20px; border: var(--line); border-radius: var(--radius-sm); background: var(--card); }
.comment__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment__avatar { border-radius: 50%; border: var(--line); }
.comment__author { display: block; font-family: var(--font-display); }
.comment__date { font-size: .85rem; color: var(--muted); text-decoration: none; }
.comment__reply a { font-weight: 700; font-size: .9rem; }
.comment-respond { margin-top: 24px; padding: clamp(20px, 3vw, 32px); border: var(--line); border-radius: var(--radius); background: var(--paper-2); box-shadow: 6px 6px 0 var(--mint); }
.comment-form label { display: block; font-weight: 700; 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; border: var(--line); border-radius: 12px; background: var(--card);
}
.comment-form textarea { min-height: 150px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ==========================================================================
   11. Pager, empty state
   ========================================================================== */
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: .35em; min-width: 48px; min-height: 48px; padding: 0 16px;
	border: var(--line); border-radius: 999px; background: var(--card); font: 700 1rem/1 var(--font-display); text-decoration: none;
}
.pager a.page-numbers:hover { background: var(--marigold); color: var(--ink); }
.pager .page-numbers.current { background: var(--ink); color: var(--paper); }
.pager .page-numbers.dots { border-color: transparent; background: none; }
.empty { text-align: center; padding: 48px 0; }
.empty__title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.empty .search-form { margin: 24px auto 0; }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer { position: relative; background: var(--ink); color: var(--paper); border-top: var(--line); overflow: hidden; }
.site-footer__confetti {
	height: 18px; background:
		linear-gradient(90deg, var(--tomato) 0 20%, var(--marigold) 20% 40%, var(--mint) 40% 60%, var(--lilac) 60% 80%, var(--bubblegum) 80%);
}
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding-block: clamp(40px, 6vw, 72px) 32px; }
.site-footer .brand__img { height: 50px; }
.site-footer__about { margin-top: 18px; max-width: 30em; color: color-mix(in srgb, var(--paper) 78%, transparent); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-content: flex-start; }
.site-footer .menu-link { border: 2px solid color-mix(in srgb, var(--paper) 30%, transparent); font-size: .95rem; min-height: 42px; }
.site-footer .menu-link:hover { background: var(--marigold); color: var(--ink); border-color: var(--marigold); }
.site-footer__base { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px 28px; border-top: 2px dashed color-mix(in srgb, var(--paper) 22%, transparent); font-size: .9rem; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.site-footer__base p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--paper); min-height: 44px; }
.to-top:hover { color: var(--marigold); }
@media (max-width: 760px) {
	.site-footer__grid { grid-template-columns: 1fr; }
	.footer-links { justify-content: flex-start; }
}

/* ==========================================================================
   13. Motion preferences & print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .site-footer, .post-aside, .popular, .comments, .post-nav { display: none !important; }
	body { background: #fff; }
}
.post-layout + .wrap.stack { padding-top: clamp(48px, 7vw, 88px); }
