/*
Theme Name: Review Publisher
Theme URI: https://example.com/
Author: Codex
Description: Lightweight WordPress theme for affiliate review publishers.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: review-publisher
*/

:root {
	--bg: #f3eee4;
	--surface: #fffdf8;
	--surface-alt: #efe7da;
	--text: #1a1916;
	--muted: #62594a;
	--line: #d6c8b3;
	--accent: #0f766e;
	--accent-dark: #115e59;
	--accent-soft: #d3efec;
	--warm: #9a3412;
	--warm-soft: #f5dfcf;
	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 20px;
	--shadow-sm: 0 12px 30px rgba(38, 28, 14, 0.08);
	--shadow-lg: 0 24px 60px rgba(38, 28, 14, 0.12);
	--container: min(1120px, calc(100vw - 32px));
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background:
		radial-gradient(circle at top left, rgba(195, 136, 43, 0.12), transparent 30%),
		radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 28%),
		var(--bg);
	color: var(--text);
	font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
	font-size: 17px;
	line-height: 1.6;
}

a {
	color: inherit;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

.screen-reader-text {
	position: absolute;
	left: -9999px;
}

.site-shell {
	min-height: 100vh;
}

.site-disclaimer {
	padding: 10px 16px;
	background: var(--surface-alt);
	border-bottom: 1px solid var(--line);
	text-align: center;
	font-size: 14px;
	color: var(--muted);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	backdrop-filter: blur(14px);
	background: rgba(243, 238, 228, 0.86);
	border-bottom: 1px solid rgba(214, 200, 179, 0.8);
}

.site-header__inner,
.site-footer__inner,
.band__inner,
.article-shell,
.page-shell {
	width: var(--container);
	margin: 0 auto;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0;
}

.site-branding {
	display: grid;
	gap: 4px;
	text-decoration: none;
}

.site-title {
	font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
	font-size: clamp(1.4rem, 2vw, 1.75rem);
	font-weight: 700;
	letter-spacing: 0;
}

.site-tagline {
	font-size: 14px;
	color: var(--muted);
}

.site-nav ul {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 15px;
}

.site-nav a:hover,
.site-nav .current-menu-item a,
.site-nav .current_page_item a {
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}

.band {
	padding: 72px 0;
}

.band--hero {
	padding-top: 48px;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
	gap: 24px;
	align-items: stretch;
}

.hero__content,
.hero__aside,
.review-card,
.article-panel,
.page-panel {
	background: rgba(255, 253, 248, 0.9);
	border: 1px solid rgba(214, 200, 179, 0.8);
	box-shadow: var(--shadow-sm);
}

.hero__content,
.article-panel,
.page-panel {
	border-radius: var(--radius-lg);
}

.hero__content {
	padding: clamp(28px, 5vw, 52px);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: var(--accent-soft);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	color: var(--accent-dark);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.hero h1,
.article-header h1,
.page-panel h1,
.archive-header h1,
.entry-title {
	margin: 16px 0 14px;
	font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
	font-size: clamp(2.4rem, 5vw, 4.4rem);
	line-height: 0.98;
	letter-spacing: 0;
}

.hero p,
.archive-header p,
.entry-summary,
.article-copy p {
	max-width: 62ch;
	color: var(--muted);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	box-shadow: var(--shadow-sm);
	transition: transform 160ms ease, background 160ms ease;
}

.button:hover,
.wp-block-button__link:hover {
	background: var(--accent-dark);
	transform: translateY(-1px);
}

.button--secondary {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--line);
	box-shadow: none;
}

.button--secondary:hover {
	background: var(--surface);
}

.hero__aside {
	border-radius: var(--radius-lg);
	padding: 24px;
	display: grid;
	gap: 20px;
	align-content: start;
}

.metric-list {
	display: grid;
	gap: 14px;
}

.metric {
	padding: 16px;
	background: var(--surface-alt);
	border-radius: var(--radius-md);
}

.metric strong {
	display: block;
	font-size: 1.6rem;
	font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

.section-heading,
.archive-header h1,
.page-panel h1 {
	margin: 0 0 12px;
	font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
	font-size: clamp(1.8rem, 3vw, 2.8rem);
	line-height: 1.05;
}

.section-intro {
	margin: 0 0 24px;
	color: var(--muted);
}

.review-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.review-card {
	display: grid;
	grid-template-rows: auto 1fr;
	border-radius: var(--radius-md);
	overflow: hidden;
	text-decoration: none;
}

.review-card__media {
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--accent-soft), var(--warm-soft));
}

.review-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.review-card__body {
	display: grid;
	gap: 12px;
	padding: 18px;
}

.review-card__meta,
.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--muted);
	font-size: 14px;
}

.badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--surface-alt);
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
}

.rating-badge {
	background: var(--accent-soft);
	color: var(--accent-dark);
}

.review-card h3 {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.2;
}

.review-card p {
	margin: 0;
	color: var(--muted);
}

.article-shell,
.page-shell {
	padding: 48px 0 72px;
}

.article-header {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
	gap: 24px;
	align-items: start;
	margin-bottom: 24px;
}

.article-hero {
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--accent-soft), var(--warm-soft));
	box-shadow: var(--shadow-sm);
}

.article-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-stack,
.page-stack {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
	gap: 24px;
	align-items: start;
}

.article-panel,
.page-panel {
	padding: 26px;
}

.article-copy > *:first-child,
.page-copy > *:first-child {
	margin-top: 0;
}

.article-copy > *:last-child,
.page-copy > *:last-child {
	margin-bottom: 0;
}

.list-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.list-panel {
	padding: 20px;
	background: var(--surface-alt);
	border-radius: var(--radius-md);
}

.list-panel h2,
.cta-panel h2,
.archive-header h1 {
	margin-top: 0;
	font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

.list-panel ul {
	margin: 0;
	padding-left: 20px;
}

.cta-panel {
	padding: 20px;
	background: linear-gradient(180deg, var(--surface-alt), var(--surface));
	border-radius: var(--radius-md);
	border: 1px solid var(--line);
}

.cta-panel p:last-child,
.list-panel p:last-child {
	margin-bottom: 0;
}

.archive-header {
	margin-bottom: 24px;
}

.site-footer {
	padding: 30px 0 48px;
	border-top: 1px solid var(--line);
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	color: var(--muted);
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.footer-links a {
	text-decoration: none;
}

.entry-content ul,
.entry-content ol,
.article-copy ul,
.article-copy ol,
.page-copy ul,
.page-copy ol {
	padding-left: 20px;
}

.entry-content table,
.page-copy table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

@media (max-width: 980px) {
	.hero,
	.article-header,
	.article-stack,
	.page-stack,
	.review-grid,
	.list-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	body {
		font-size: 16px;
	}

	.site-header__inner {
		padding: 14px 0;
	}

	.band {
		padding: 56px 0;
	}

	.hero__content,
	.hero__aside,
	.article-panel,
	.page-panel {
		padding: 20px;
	}

	.site-footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}
