/*
Theme Name: Verdict
Theme URI: https://jordanbarta.com/
Author: Jordan Barta
Description: A clean, minimal product-review theme with warm colors, strong headlines, star ratings, pros & cons, and verdict boxes.
Version: 1.3.0
Requires at least: 6.0
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: verdict
*/

:root {
	--bg: #fffaf3;
	--surface: #ffffff;
	--ink: #1f1a17;
	--muted: #6b5e55;
	--line: #eee2d3;
	--accent: #c2410c;
	--accent-dark: #9a3412;
	--accent-soft: #fdeee3;
	--gold: #f59e0b;
	--pro: #3f7d4e;
	--pro-soft: #eef6ef;
	--con: #b42318;
	--con-soft: #fdf0ee;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(60, 30, 10, .05), 0 8px 24px rgba(60, 30, 10, .06);
	--head: "Fraunces", Georgia, "Times New Roman", serif;
	--body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 17px/1.7 var(--body);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 {
	font-family: var(--head);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.02em;
	margin: 1.6em 0 .5em;
	color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.3rem; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto;
	background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin: 0 auto; }

/* Header */
.site-header {
	background: var(--bg);
	border-bottom: 1px solid var(--line);
	position: sticky; top: 0; z-index: 50;
	backdrop-filter: saturate(1.2) blur(6px);
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.site-title {
	font-family: var(--head); font-weight: 900; font-size: 1.6rem; letter-spacing: -.03em;
	color: var(--ink); text-decoration: none;
}
.site-title span { color: var(--accent); }
.custom-logo { max-height: 44px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--accent); }
.nav-toggle {
	display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
	padding: 8px 12px; font: 600 .9rem var(--body); color: var(--ink); cursor: pointer;
}
.header-search input {
	border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
	padding: 8px 16px; font: .9rem var(--body); width: 190px;
}

/* Hero */
.hero { padding: 56px 0 28px; }
.hero-kicker, .kicker {
	display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: .12em; color: var(--accent); text-decoration: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.hero h1, .hero h2 { margin: .3em 0 .35em; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero h2 a { color: var(--ink); text-decoration: none; }
.hero h2 a:hover { color: var(--accent); }
.hero p { color: var(--muted); font-size: 1.12rem; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-media .placeholder { aspect-ratio: 4/3; }

/* Section heads */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 48px 0 20px; border-top: 3px solid var(--ink); padding-top: 14px; }
.section-head h2 { margin: 0; font-size: 1.5rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; }
.card-media img, .placeholder { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.placeholder {
	background: linear-gradient(135deg, #fde3cf, #fbd0b0 55%, #f8b98f);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--head); font-weight: 900; font-size: 2.6rem; color: rgba(154, 52, 18, .35);
}
.card-score {
	position: absolute; top: 12px; right: 12px; background: var(--ink); color: #fff;
	font: 800 .95rem var(--body); padding: 6px 10px; border-radius: 10px;
}
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.28rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-meta { margin-top: auto; padding-top: 8px; font-size: .82rem; color: var(--muted); }

/* Stars */
.stars { display: inline-flex; align-items: center; gap: 8px; }
.stars-track { position: relative; display: inline-block; font-size: 1.05rem; line-height: 1; letter-spacing: 2px; color: #e9dccd; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--gold); }
.stars-num { font-weight: 700; font-size: .9rem; color: var(--ink); }

/* Single */
.entry-header { padding: 48px 0 12px; }
.entry-header h1 { margin: .3em 0 .3em; }
.entry-meta { color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.featured { margin: 26px 0 8px; }
.featured img { border-radius: var(--radius); width: 100%; }
.entry-content { font-size: 1.08rem; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content blockquote {
	margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent);
	font-family: var(--head); font-size: 1.3rem; font-style: italic;
}
.entry-content img { border-radius: 10px; }
.entry-content .wp-block-image figcaption, .entry-content figcaption { color: var(--muted); font-size: .88rem; text-align: center; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.alignwide { margin-left: -60px; margin-right: -60px; max-width: none !important; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw !important; }

/* Review box */
.review-box {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 26px; margin: 28px 0 36px;
}
.review-top { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.score-badge {
	width: 92px; height: 92px; border-radius: 50%; background: var(--accent); color: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
}
.score-badge strong { font: 900 2rem/1 var(--head); }
.score-badge small { font-size: .7rem; opacity: .85; letter-spacing: .08em; }
.review-product { flex: 1; min-width: 200px; }
.review-product .label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.review-product h2 { margin: .15em 0 .25em; font-size: 1.5rem; }
.review-summary { margin: 14px 0 0; color: var(--muted); }
.btn {
	display: inline-block; background: var(--accent); color: #fff !important; text-decoration: none;
	font-weight: 700; padding: 12px 22px; border-radius: 999px; transition: background .15s;
}
.btn:hover { background: var(--accent-dark); }
.btn-price { font-weight: 600; opacity: .85; margin-left: 6px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.pros, .cons { border-radius: 12px; padding: 16px 18px; }
.pros { background: var(--pro-soft); }
.cons { background: var(--con-soft); }
.pros h3, .cons h3 { margin: 0 0 8px; font: 800 .8rem var(--body); text-transform: uppercase; letter-spacing: .12em; }
.pros h3 { color: var(--pro); }
.cons h3 { color: var(--con); }
.pros ul, .cons ul { list-style: none; margin: 0; padding: 0; font-size: .97rem; }
.pros li, .cons li { padding-left: 24px; position: relative; margin: 6px 0; line-height: 1.5; }
.pros li::before { content: "+"; position: absolute; left: 2px; font-weight: 900; color: var(--pro); }
.cons li::before { content: "\2212"; position: absolute; left: 2px; font-weight: 900; color: var(--con); }

.verdict-box {
	margin: 44px 0; padding: 28px; border-radius: var(--radius);
	background: var(--accent-soft); border-left: 6px solid var(--accent);
}
.verdict-box h2 { margin: 0 0 8px; font-size: 1.6rem; }
.verdict-box p { margin: 0 0 16px; }

/* Tags, author, nav */
.tags { margin: 32px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
	background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
	padding: 4px 12px; font-size: .85rem; color: var(--muted); text-decoration: none;
}
.tags a:hover { border-color: var(--accent); color: var(--accent); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0; }
.post-nav a {
	display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
	padding: 16px 18px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 700;
}
.post-nav a small { display: block; font: 600 .75rem var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.post-nav .next { text-align: right; }

/* Archive */
.archive-header { padding: 48px 0 0; }
.archive-header h1 { margin: .2em 0 .2em; }
.archive-header p { color: var(--muted); max-width: 640px; }
.pagination { margin: 48px 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600;
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Comments */
.comments-area { margin: 48px 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { border-bottom: 1px solid var(--line); padding: 18px 0; }
.comment-author { font-weight: 700; }
.comment-author img { display: inline-block; border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-metadata { font-size: .82rem; }
.comment-metadata a { color: var(--muted); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea, .search-form input[type=search] {
	width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 1rem var(--body); background: var(--surface);
}
.comment-form .submit, .search-form button {
	background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 12px 24px; font: 700 1rem var(--body); cursor: pointer;
}
.search-form { display: flex; gap: 10px; }

/* Footer */
.site-footer { background: var(--ink); color: #d9cec4; margin-top: 72px; padding: 48px 0 32px; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .site-title { color: #fff; }
.footer-widget h2 { color: #fff; font-size: 1.05rem; margin: 0 0 10px; }
.footer-widget ul { list-style: none; padding: 0; margin: 0; }
.footer-widget li { margin: 6px 0; }
.footer-bottom { border-top: 1px solid #3a322d; margin-top: 32px; padding-top: 20px; color: #a89a8e; font-size: .82rem; }
.disclosure { color: #a89a8e; font-size: .85rem; }

/* Responsive */
@media (max-width: 960px) {
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.hero-grid { grid-template-columns: 1fr; gap: 24px; }
	.hero-media { order: -1; }
	.alignwide { margin-left: 0; margin-right: 0; }
	.header-search { display: none; }
}
@media (max-width: 720px) {
	body { font-size: 16px; }
	.nav-toggle { display: block; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
	.main-nav a { display: block; padding: 10px 0; }
	.card-grid, .pros-cons, .footer-grid, .post-nav { grid-template-columns: 1fr; }
	.post-nav .next { text-align: left; }
	.hero { padding-top: 28px; }
	.review-box { padding: 20px; }
	.admin-bar .site-header { top: 0; }
}
.footer-menu { list-style: none; display: inline-flex; flex-wrap: wrap; gap: 16px; margin: 0 0 0 16px; padding: 0; }
.footer-menu a { color: #d9cec4; }
/* 1.0.1 header polish */
.branding { min-width: 0; flex-shrink: 1; }
.site-title { display: block; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.main-nav ul { gap: 22px; }
.main-nav a { white-space: nowrap; }
.hero-media, .card-media { text-decoration: none; }
.hero-kicker { display: block; margin-bottom: 14px; }
@media (max-width: 1100px) { .header-search { display: none; } }
@media (max-width: 720px) { .site-title { max-width: 230px; } }
/* 1.1.1 homepage H1 styled as kicker */
h1.hero-kicker { font-family: var(--body); font-size: .75rem; line-height: 1.4; margin: 0 0 14px; letter-spacing: .12em; }
/* 1.2.0 section links */
.section-head a { font-weight: 700; font-size: .9rem; text-decoration: none; }
/* 1.3.0 disclosures + page notes */
.disclosure-box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 14px 18px; margin: 20px 0 28px; font-size: .9rem; color: var(--muted); }
.disclosure-box p { margin: 0 0 6px; }
.disclosure-box p:last-child { margin-bottom: 0; }
.disclosure-box strong { color: var(--ink); }
.disclosure-more a { font-weight: 600; }
.page-note { font-size: .7em; color: var(--muted); margin-left: 2px; }
