/*
Theme Name: Report
Description: Research-driven buying guides. One engine, three brands (mower, coffee, smoker), chosen by the wm_brand option.
Version: 1.2.4
Author: Wonder Consulting LLC
Requires PHP: 7.4
*/

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand2); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-variation-settings: var(--head-var);
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0 0 .5em;
	color: var(--ink);
	text-wrap: balance;
}
p { margin: 0 0 1.1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__type { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); font-variation-settings: var(--head-var); }
.logo__first { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.logo__second { font-size: .78rem; font-weight: 600; color: var(--muted); margin-top: 3px; letter-spacing: .06em; }
.logo:hover { color: inherit; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.site-nav { margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.site-header__search { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
@media (max-width: 860px) {
	.site-header__inner { flex-wrap: wrap; gap: 8px 16px; padding-block: 10px; }
	.site-nav { order: 3; width: 100%; margin-left: 0; }
	.site-header__search { margin-left: auto; }
}

/* ---------- Search form ---------- */
.searchform { display: flex; gap: 8px; max-width: 620px; background: var(--surface); padding: 6px; border-radius: 14px; box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0,0,0,.35); }
.searchform input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; padding: 12px 12px; color: var(--ink); }
.searchform input:focus { outline: none; }
.searchform:focus-within { box-shadow: 0 0 0 3px var(--accent); }
.searchform button { border: 0; border-radius: 10px; padding: 0 20px; font: inherit; font-weight: 700; background: var(--brand); color: #fff; cursor: pointer; }
.searchform button:hover { background: var(--brand2); }

/* ---------- Hero (brand signature lives here) ---------- */
.hero { position: relative; overflow: hidden; background: var(--brand); color: #fff; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 40px; padding-block: clamp(56px, 9vw, 112px); }
.hero__title { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; max-width: 17ch; margin-bottom: .4em; }
.hero__sub { font-size: 1.15rem; max-width: 46ch; opacity: .88; margin-bottom: 28px; }
.hero__art { justify-self: end; width: min(300px, 100%); filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
.hero__art svg { width: 100%; height: auto; }
@media (max-width: 760px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__art { display: none; }
}

/* Mower: mowed-lawn stripes */
.brand-mower .hero {
	background:
		repeating-linear-gradient(115deg, rgba(255,255,255,.055) 0 64px, rgba(0,0,0,.06) 64px 128px),
		var(--brand);
}
.brand-mower .hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 8px; background: var(--accent); }
.brand-mower .hero__title { font-variation-settings: "wdth" 125; letter-spacing: -0.02em; }

/* Coffee: crema rings bloom from the corner */
.brand-coffee .hero {
	background:
		radial-gradient(circle at 92% 30%, transparent 0 90px, rgba(217,160,102,.20) 90px 92px, transparent 92px 150px, rgba(217,160,102,.14) 150px 152px, transparent 152px 220px, rgba(217,160,102,.09) 220px 222px, transparent 222px 300px, rgba(217,160,102,.06) 300px 302px, transparent 302px),
		linear-gradient(160deg, #4A2D1F 0%, var(--brand) 60%);
}
.brand-coffee .hero__title { font-weight: 400; letter-spacing: -0.015em; }

/* Smoker: heat rising off the coals */
.brand-smoker .hero {
	background:
		radial-gradient(120% 70% at 20% 120%, rgba(217,72,15,.55), transparent 60%),
		radial-gradient(60% 50% at 85% 110%, rgba(242,181,68,.25), transparent 70%),
		var(--brand);
}
.brand-smoker .hero::before {
	content: ""; position: absolute; inset: 0; opacity: .5;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cpath d='M30 220 C10 160 70 140 50 80 S80 20 70 0' fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='14' stroke-linecap='round'/%3E%3Cpath d='M150 220 C130 170 190 150 170 100 S200 40 185 0' fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='10' stroke-linecap='round'/%3E%3C/svg%3E");
}
.brand-smoker .hero__title { font-variation-settings: "wdth" 85, "opsz" 96; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(40px, 6vw, 72px) 0; }
.section__title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; margin-bottom: 20px; }
.shelf__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 20px; }
.shelf__head .section__title { margin-bottom: 10px; }
.shelf__all { font-weight: 600; white-space: nowrap; }
.shelf__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.shelf__grid--three { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shelf__grid--list { grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .shelf__grid, .shelf__grid--three, .shelf__grid--list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shelf__grid, .shelf__grid--three, .shelf__grid--list { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; }
.card__cat { align-self: flex-start; font-size: .82rem; font-weight: 600; color: var(--brand2); text-decoration: none; margin-bottom: 6px; position: relative; z-index: 2; }
.card__title { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__title a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.card__dek { color: var(--muted); font-size: .97rem; margin-bottom: 10px; }
.card__meta { color: var(--muted); font-size: .85rem; margin: auto 0 0; }
.card--small { padding: 14px 0 18px; border-bottom: 1px solid var(--line); }
.card--normal { background: var(--surface); padding: 22px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.card--lead { grid-row: span 2; background: var(--surface); padding: clamp(24px, 3vw, 36px); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); border-top: 8px solid var(--accent); }
.card--lead .card__title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.card--lead .card__dek { font-size: 1.08rem; }
.lead-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
@media (max-width: 960px) { .lead-grid { grid-template-columns: 1fr 1fr; } .card--lead { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 560px) { .lead-grid { grid-template-columns: 1fr; } }

/* ---------- Method band ---------- */
.method { margin-top: clamp(56px, 8vw, 96px); background: var(--surface); border-block: 1px solid var(--line); }
.method__inner { padding-block: 48px; display: grid; grid-template-columns: .5fr 1fr auto; gap: 24px 48px; align-items: center; }
.method h2 { margin: 0; font-size: 1.6rem; }
.method p { margin: 0; color: var(--muted); max-width: 62ch; }
.method__link { font-weight: 700; white-space: nowrap; }
@media (max-width: 860px) { .method__inner { grid-template-columns: 1fr; } }

/* ---------- Lists / archive ---------- */
.list-head { padding-block: clamp(36px, 6vw, 64px) 8px; }
.list-head h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.list-head .searchform { margin-top: 16px; }
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 36px; }
.pager .page-numbers { padding: 8px 14px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); }
.pager .current { background: var(--brand); color: #fff; box-shadow: none; }
.empty { padding: 24px 0; }

/* ---------- Single post ---------- */
.post__head { padding-block: clamp(36px, 6vw, 72px) 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.post__cat { display: inline-block; font-weight: 600; font-size: .9rem; text-decoration: none; margin-bottom: 12px; }
.post__title { font-size: clamp(2.1rem, 4.8vw, 3.3rem); font-weight: 800; }
.post__dek { font-size: 1.22rem; color: var(--muted); max-width: 60ch; margin-bottom: 14px; }
.post__meta { font-size: .9rem; color: var(--muted); margin: 0; }
.post__layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 56px; justify-content: center; }
.post--page .entry { padding-bottom: 64px; }
@media (max-width: 1060px) { .post__layout { grid-template-columns: minmax(0, 720px); } .toc { display: none; } }

.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; font-size: .9rem; }
.toc__title { font-weight: 700; margin-bottom: 8px; }
.toc__list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc__list a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc__list a:hover { color: var(--ink); }
.toc__list a[aria-current] { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }

/* ---------- Article body ---------- */
.entry { min-width: 0; padding-bottom: 24px; }
.entry > p:first-child em { display: block; font-style: normal; font-size: .9rem; color: var(--muted); background: var(--surface); border-radius: 10px; padding: 12px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.entry h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 700; margin-top: 2em; }
.entry h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.6em; }
.entry ul, .entry ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry li { margin-bottom: .4em; }
.entry li::marker { color: var(--brand2); }

/* "The short answer" box: the h2 + paragraph right after it */
.entry h2:first-of-type { margin-top: 1.2em; }
.entry h2:first-of-type + p { font-size: 1.12rem; background: var(--surface); border-left: 6px solid var(--accent); border-radius: 0 12px 12px 0; padding: 18px 22px; box-shadow: inset 0 0 0 1px var(--line); }

/* Tables */
.entry table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .94rem; margin: 0 0 1.6em; background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: block; overflow-x: auto; }
.entry thead th { background: var(--brand); color: #fff; text-align: left; font-weight: 600; padding: 12px 14px; white-space: nowrap; }
.entry td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; min-width: 110px; }
.entry tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg) 60%, var(--surface)); }
.entry td a[rel~="sponsored"] { display: inline-block; font-weight: 700; white-space: nowrap; }

/* Buy buttons: a paragraph that is only a sponsored link */
.entry p > a[rel~="sponsored"]:only-child {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--cta); color: var(--cta-ink);
	padding: 13px 22px; border-radius: 12px; text-decoration: none;
	font-weight: 700; box-shadow: 0 2px 0 rgba(0,0,0,.18);
	transition: transform .12s ease, box-shadow .12s ease;
}
.entry p > a[rel~="sponsored"]:only-child strong { font-weight: 700; }
.entry p > a[rel~="sponsored"]:only-child:hover { transform: translateY(-1px); box-shadow: 0 4px 0 rgba(0,0,0,.18); color: var(--cta-ink); }
.entry p > a[rel~="sponsored"]:only-child:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }

/* FAQ: h3 questions after the FAQ heading read as cards */
.entry h2[id*="faq"] ~ h3, .entry h2:is([id="faq"], [id^="faq"]) ~ h3 { margin-top: 1.2em; }

/* ---------- Related ---------- */
.related { padding-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(56px, 8vw, 96px); background: var(--brand); color: rgba(255,255,255,.82); }
.site-footer a { color: #fff; }
.site-footer__inner { padding-block: 48px; display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; }
.site-footer__brand p { margin: 14px 0 0; max-width: 46ch; }
.site-footer .logo__second { color: rgba(255,255,255,.7); }
.site-footer__nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer__legal { grid-column: 1 / -1; font-size: .85rem; border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; margin: 0; }
@media (max-width: 640px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Photos ---------- */
.card__media { margin: 0 0 14px; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / .62; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card--normal .card__media { margin: -22px -22px 18px; border-radius: 14px 14px 0 0; }
.card--lead { border-top: 0; padding-top: 0; overflow: hidden; }
.card--lead .card__media { margin: 0 calc(-1 * clamp(24px, 3vw, 36px)) 22px; border-radius: 0; aspect-ratio: 1 / .6; border-bottom: 8px solid var(--accent); }
.card--small .card__media { margin-bottom: 12px; }
.card:hover .card__media img { filter: saturate(1.08) contrast(1.03); }
.post__head { border-bottom: 0; margin-bottom: 0; }
.post__photo { margin: 0 auto 40px; }
.post__photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 16px; }
.post__photo figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; text-align: right; }
.post__photo figcaption a { color: inherit; }
@media (max-width: 560px) { .post__photo { width: 100%; } .post__photo img { border-radius: 0; aspect-ratio: 3 / 2; } .post__photo figcaption { padding-inline: 16px; } }
@media (min-width: 961px) {
	.card--lead .card__media { flex: 1 1 auto; aspect-ratio: auto; min-height: 280px; }
	.card--lead .card__media img { height: 100%; }
}

/* ---------- Photo hero ---------- */
.hero--photo { background: var(--brand); }
body .hero.hero--photo::before { display: none; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero--photo .hero__inner { grid-template-columns: minmax(0, 1fr); padding-block: clamp(72px, 12vw, 152px); }
body .hero.hero--photo::after { content: ""; position: absolute; inset: 0; z-index: 0; height: auto; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 94%, transparent) 0%, color-mix(in srgb, var(--brand) 82%, transparent) 42%, color-mix(in srgb, var(--brand) 30%, transparent) 100%); }
.brand-mower .hero--photo { border-bottom: 8px solid var(--accent); }
body.brand-smoker .hero.hero--photo::after { background: linear-gradient(90deg, rgba(38,38,38,.95) 0%, rgba(38,38,38,.82) 45%, rgba(217,72,15,.28) 100%); }
.hero--photo .hero__title, .hero--photo .hero__sub { text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero__credit { position: absolute; right: 16px; bottom: 10px; z-index: 1; margin: 0; font-size: .75rem; color: rgba(255,255,255,.75); }
.hero__credit a { color: inherit; }
@media (max-width: 760px) { body .hero.hero--photo::after { background: color-mix(in srgb, var(--brand) 86%, transparent); } body.brand-smoker .hero.hero--photo::after { background: rgba(38,38,38,.86); } }
.brand-coffee .hero__bg { object-position: 62% 50%; }
body.brand-coffee .hero.hero--photo::after { background: linear-gradient(90deg, rgba(59,36,24,.95) 0%, rgba(59,36,24,.86) 38%, rgba(59,36,24,.25) 70%, rgba(59,36,24,.05) 100%); }
@media (max-width: 760px) { body.brand-coffee .hero.hero--photo::after { background: rgba(59,36,24,.84); } }
.brand-coffee .hero__title { font-family: "Archivo", system-ui, sans-serif; font-variation-settings: "wdth" 125; font-weight: 800; letter-spacing: -0.02em; }

.brand-smoker .hero__title { font-family: "Archivo", system-ui, sans-serif; font-variation-settings: "wdth" 125; font-weight: 800; letter-spacing: -0.02em; }
