/*
Theme Name: Crochet Days
Theme URI: https://crochetdays.com/
Author: Crochet Days
Description: A fast, cozy, modern theme for crochet & knitting pattern blogs. Only post links are real hrefs (all other links are class links), exactly one header and one footer element, 9 deterministic "random" related posts under every post and above the footer on the home page, categories hidden on the front end. No jQuery, one CSS file, one self-hosted font.
Version: 1.0.2
Requires at least: 6.2
Tested up to: 6.9
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: crochetdays
Tags: blog, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #fbf6ef;
	--surface: #ffffff;
	--ink: #2f2633;
	--muted: #6b616d;
	--line: #ecdfd2;
	--terra: #d2694e;
	--terra-ink: #a8472f;
	--blush: #f7e4da;
	--sage: #6f8f72;
	--sage-soft: #e8efe5;
	--cream-deep: #f3e9de;
	--serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--radius: 18px;
	--radius-lg: 26px;
	--shadow: 0 1px 2px rgba(47, 38, 51, .05), 0 8px 24px -12px rgba(47, 38, 51, .18);
	--shadow-hover: 0 2px 4px rgba(47, 38, 51, .06), 0 18px 40px -16px rgba(47, 38, 51, .28);
	--wrap: 1200px;
	--narrow: 760px;
	--header-h: 74px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
	color: var(--ink);
}
p { margin: 0 0 1.1em; }
a, a[data-o] { color: var(--terra-ink); text-decoration: none; cursor: pointer; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blush); color: var(--ink); }
button, input, textarea, select { font: inherit; color: inherit; }
hr { border: 0; border-top: 2px dashed var(--line); margin: 2.5em 0; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

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

.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
	color: var(--terra-ink); margin-bottom: 12px;
}
.eyebrow::before {
	content: ""; width: 9px; height: 9px; border-radius: 50%;
	background: var(--terra); box-shadow: 0 0 0 3px var(--blush);
}
.post-nav .eyebrow::before { display: none; }

/* ---------- Buttons & forms ---------- */
.btn, .wp-block-button__link, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--terra); color: #fff; border: 0; border-radius: 999px;
	padding: 12px 22px; font: 700 15px/1.2 var(--sans); cursor: pointer;
	transition: background .2s, transform .2s, box-shadow .2s;
	box-shadow: 0 6px 16px -8px rgba(210, 105, 78, .7);
}
.btn:hover, .wp-block-button__link:hover, input[type="submit"]:hover { background: var(--terra-ink); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--terra); }
.btn--sm { padding: 8px 14px; font-size: 13px; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea {
	width: 100%; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px;
	padding: 12px 16px; transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px var(--blush); }

.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-form .search-field { border-radius: 999px; padding: 13px 20px; }
.search-form .btn { flex: none; }

.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px;
	border: 0; background: transparent; color: var(--ink); border-radius: 50%; cursor: pointer;
	transition: background .2s;
}
.icon-btn:hover { background: var(--blush); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(251, 246, 239, .9);
	-webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(47, 38, 51, .4); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-branding { flex: none; }
.site-logo { display: block; line-height: 0; }
.site-logo__svg, .site-logo__img { height: 46px; width: auto; }
.main-nav { margin-left: auto; }
.menu, .footer-menu { list-style: none; margin: 0; padding: 0; }
.main-nav .menu { display: flex; align-items: center; gap: 4px; }
.main-nav .menu > li { position: relative; }
.main-nav a {
	display: block; padding: 10px 14px; border-radius: 999px;
	font: 600 15px/1.2 var(--sans); color: var(--ink); transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { background: var(--blush); color: var(--terra-ink); }
.main-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-hover);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { border-radius: 10px; }
.main-nav .menu-item-has-children > a::after { content: "▾"; font-size: .75em; margin-left: 6px; opacity: .6; }
.header-actions { display: flex; align-items: center; gap: 2px; }
.menu-btn { display: none; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
	display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: .25s;
}
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.nav-open .menu-btn__bars { background: transparent; }
.nav-open .menu-btn__bars::before { top: 0; transform: rotate(45deg); }
.nav-open .menu-btn__bars::after { top: 0; transform: rotate(-45deg); }
.search-panel { border-top: 1px solid var(--line); padding: 18px 0; background: var(--bg); }
.search-panel .search-form { margin: 0 auto; }

@media (max-width: 960px) {
	:root { --header-h: 64px; }
	.site-logo__svg, .site-logo__img { height: 38px; }
	.menu-btn { display: inline-grid; }
	.header-actions { margin-left: auto; }
	.main-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
		padding: 10px 22px 18px; max-height: calc(100vh - var(--header-h)); overflow: auto;
	}
	.nav-open .main-nav { display: block; }
	.main-nav .menu { flex-direction: column; align-items: stretch; }
	.main-nav a { padding: 13px 14px; font-size: 17px; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 0 14px; }
	.main-nav .menu-item-has-children > a::after { display: none; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- Home hero ---------- */
.hero {
	position: relative; overflow: hidden; padding: 56px 0 72px;
	background:
		radial-gradient(ellipse 55% 70% at 0% 0%, rgba(247, 228, 218, .95), rgba(247, 228, 218, 0) 100%),
		radial-gradient(ellipse 50% 70% at 100% 100%, rgba(232, 239, 229, .95), rgba(232, 239, 229, 0) 100%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__title {
	font: 600 clamp(38px, 5.6vw, 66px)/1.04 var(--serif); letter-spacing: -.025em; margin: 0 0 20px;
}
.hero__lead { font-size: 19px; color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: 16px; width: 100%; height: 24px; color: var(--terra); opacity: .45; }

.feature {
	position: relative; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
	box-shadow: var(--shadow-hover); transform: rotate(1.2deg); transition: transform .35s;
}
.feature:hover { transform: rotate(0) translateY(-4px); }
.feature__media { position: relative; aspect-ratio: 4 / 4.2; background: var(--blush); }
.feature__img { width: 100%; height: 100%; object-fit: cover; }
.badge {
	position: absolute; left: 16px; top: 16px; background: var(--surface); color: var(--ink);
	font: 700 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 9px 13px; border-radius: 999px;
	box-shadow: var(--shadow);
}
.feature__body { padding: 22px 26px 24px; }
.feature__title { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 8px; }
.feature__title a { color: var(--ink); }
.feature__title a::after { content: ""; position: absolute; inset: 0; }

@media (max-width: 900px) {
	.hero { padding: 36px 0 60px; }
	.hero__inner { grid-template-columns: 1fr; gap: 36px; }
	.feature { transform: none; }
}

/* ---------- Page hero (archives, search, 404) ---------- */
.page-hero { padding: 56px 0 24px; }
.page-title { font-size: clamp(32px, 4.5vw, 50px); letter-spacing: -.02em; }
.archive-desc { color: var(--muted); max-width: 640px; }
.page-hero__search { margin-top: 20px; }
.page-hero--404 { padding: 80px 0; text-align: center; }
.page-hero--404 .search-form { margin: 24px auto; }

/* ---------- Sections & grid ---------- */
.listing { padding: 40px 0 72px; }
.section-head { margin-bottom: 28px; }
.section-title { font-size: clamp(28px, 3.4vw, 38px); margin: 0; }
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 560px) { .grid--3 { grid-template-columns: 1fr; } .card__media { aspect-ratio: 1 / 1; } }

/* ---------- Card ---------- */
.card {
	position: relative; display: flex; flex-direction: column; background: var(--surface);
	border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
	transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--blush); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__img { transform: scale(1.04); }
.card__img--empty {
	display: block;
	background:
		radial-gradient(circle at 50% 50%, transparent 38%, rgba(210, 105, 78, .18) 39% 41%, transparent 42%),
		repeating-linear-gradient(45deg, var(--blush) 0 12px, #f9ebe3 12px 24px);
}
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 21px; line-height: 1.22; margin: 0; }
.card__title a { color: var(--ink); }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__title a { color: var(--terra-ink); }
.card__excerpt { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.card__date { margin-top: auto; font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--sage); padding-top: 6px; }

/* ---------- Related ---------- */
.related {
	position: relative; padding: 72px 0 80px; background: var(--sage-soft); margin-top: 24px;
}
.related::before {
	content: ""; position: absolute; left: 0; right: 0; top: 14px; border-top: 2px dashed rgba(111, 143, 114, .45);
}
.related .section-head { text-align: center; }
.related .eyebrow { color: #4e6f52; }
.related .eyebrow::before { background: var(--sage); box-shadow: 0 0 0 3px #d5e2d1; }
.related .card__excerpt { display: none; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px;
	border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow);
}
.pagination .page-numbers:hover { background: var(--blush); }
.pagination .current { background: var(--ink); color: #fff; }
.pagination .dots { background: transparent; box-shadow: none; }

/* ---------- Single ---------- */
.entry { padding-top: 48px; }
.entry-head { margin-bottom: 32px; }
.entry-title { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -.025em; margin-bottom: 16px; }
.entry-lead { font-size: 20px; color: var(--muted); }
.entry-meta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 2px dashed var(--line); }
.post-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.post-meta .dot { color: var(--terra); }
.entry-media { margin: 0 auto 44px; }
.entry-media__img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; }
.entry-layout { max-width: var(--narrow); }
.has-sidebar .entry-layout { max-width: var(--wrap); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
.has-sidebar .entry-content { max-width: 760px; }
.sidebar__inner { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 1000px) { .has-sidebar .entry-layout { grid-template-columns: 1fr; max-width: var(--narrow); } }

/* Content typography */
.entry-content { font-size: 18px; line-height: 1.78; }
.entry-content > * { margin-top: 0; margin-bottom: 1.25em; }
.entry-content h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.8em; }
.entry-content h3 { font-size: 24px; margin-top: 1.6em; }
.entry-content h4 { font-size: 20px; margin-top: 1.4em; }
.entry-content a { color: var(--terra-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(168, 71, 47, .35); }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content a.wp-block-button__link { text-decoration: none; color: #fff; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ul li::marker { color: var(--terra); }
.entry-content ol li::marker { color: var(--terra-ink); font-weight: 700; }
.entry-content img { border-radius: 14px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .wp-element-caption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content blockquote, .wp-block-quote {
	margin-left: 0; margin-right: 0; padding: 22px 26px; background: var(--blush); border-radius: 18px; border-left: 5px solid var(--terra);
	font-family: var(--serif); font-size: 21px; line-height: 1.5;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; font: 600 14px var(--sans); color: var(--muted); margin-top: 10px; font-style: normal; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--cream-deep); font-weight: 700; }
.entry-content pre, .entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.entry-content code { background: var(--cream-deep); padding: 2px 6px; border-radius: 6px; }
.entry-content pre { background: var(--ink); color: #fbf6ef; padding: 18px; border-radius: 14px; overflow: auto; }
.entry-content details { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.entry-content summary { cursor: pointer; font-weight: 700; }
.entry-content .wp-block-group.has-background, .entry-content .has-background { border-radius: 18px; padding: 24px 28px; }
/* Pattern-friendly box: add the CSS class "pattern-box" (or "materials") to any Group block. */
.pattern-box, .materials {
	background: var(--surface); border: 2px dashed var(--terra); border-radius: 20px; padding: 24px 28px !important;
}
.entry-content .alignwide { max-width: 1100px; margin-left: 50%; transform: translateX(-50%); width: calc(100vw - 44px); }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); border-radius: 0; }
.has-sidebar .entry-content .alignwide, .has-sidebar .entry-content .alignfull { width: 100%; max-width: 100%; margin-left: 0; transform: none; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.page-links { margin: 2em 0; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.page-links a, .page-links > span { padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }

/* Prev / next */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; margin-bottom: 24px; }
.post-nav__item { position: relative; background: var(--surface); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); transition: transform .2s; }
.post-nav__item:hover { transform: translateY(-2px); }
.post-nav__item a { font: 600 18px/1.3 var(--serif); color: var(--ink); display: block; }
.post-nav__item a::after { content: ""; position: absolute; inset: 0; }
.post-nav__item--next { text-align: right; grid-column: 2; }
.post-nav .eyebrow { margin-bottom: 6px; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav__item--next { grid-column: auto; } }

/* ---------- Comments ---------- */
.comments { padding: 56px 22px 72px; }
.comments-title, .comment-reply-title { font-size: 28px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 28px; border-left: 2px dashed var(--line); margin-left: 12px; }
.comment-body { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-meta img { border-radius: 50%; }
.comment-author { display: block; font-weight: 700; }
.comment-date { font-size: 13px; color: var(--muted); }
.comment-content p:last-child { margin-bottom: 0; }
.reply { margin-top: 10px; }
.comment-reply-link { font-size: 14px; font-weight: 700; }
.comment-respond { margin-top: 32px; background: var(--surface); padding: 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.comment-form p { margin-bottom: 16px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
#cancel-comment-reply-link { font-size: 14px; margin-left: 10px; }

/* ---------- Widgets ---------- */
.widget { margin-bottom: 32px; }
.widget-title { font: 700 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--terra-ink); margin-bottom: 14px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.sidebar .widget { background: var(--surface); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream-deep); padding: 64px 0 28px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; border-top: 2px dashed rgba(210, 105, 78, .35); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 36px; }
.site-footer__brand p { color: var(--muted); max-width: 380px; margin-top: 16px; }
.site-footer .site-logo__svg { height: 40px; }
.footer-menu a, .footer-widgets a { color: var(--ink); font-weight: 600; }
.footer-menu a:hover, .footer-widgets a:hover { color: var(--terra-ink); }
.site-footer__bottom {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
	border-top: 1px solid var(--line); padding-top: 22px; font-size: 14px; color: var(--muted);
}
.site-footer__bottom .footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.site-footer__bottom .footer-menu li { margin: 0; display: flex; align-items: center; }
.site-footer__bottom .footer-menu li + li::before { content: "·"; color: var(--terra); margin: 0 12px; font-weight: 700; }
.site-footer__bottom .footer-menu a { font-weight: 600; color: var(--ink); }
.site-footer__bottom p { margin: 0; }
.to-top { font-weight: 700; color: var(--ink); }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Misc ---------- */
.empty { text-align: center; padding: 40px 0; }
.empty .search-form { margin: 0 auto; }
.sticky .card__title::before { content: "★ "; color: var(--terra); }
.wp-block-image img { border-radius: 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery-item { margin: 0; }
.wp-caption { max-width: 100%; }
.bypostauthor > .comment-body { border: 2px solid var(--sage-soft); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print: just the pattern ---------- */
@media print {
	.site-header, .site-footer, .related, .comments, .post-nav, .sidebar, .skip-link, [data-print], .hero__wave { display: none !important; }
	body { background: #fff; color: #000; font-size: 12pt; }
	.entry { padding-top: 0; }
	.entry-layout, .wrap { max-width: none; padding: 0; }
	.has-sidebar .entry-layout { display: block; }
	.entry-media__img { box-shadow: none; max-height: 9cm; width: auto; margin: 0 auto; }
	.entry-content { font-size: 12pt; line-height: 1.5; }
	.entry-content a { color: #000; text-decoration: none; }
	.entry-content table { box-shadow: none; }
	h2, h3 { break-after: avoid; }
	img, table, blockquote, li { break-inside: avoid; }
}
