/*
Theme Name: SavorPlate
Theme URI: https://savorplate.wiki
Author: barbara stewart
Author URI: https://savorplate.wiki
Description: Neo-brutalist weeknight cooking theme. Thick black rules, hard offset shadows, square corners, burgundy accent.
Version: 1.0.0
Style ID: ea58f3
Requires at least: 6.0
Tested up to: 7.1
License: GNU General Public License v2 or later
Text Domain: savorplate
*/

/* ---------------------------------------------------------------
   1. Tokens
--------------------------------------------------------------- */
:root {
	--bg: #ffffff;
	--bg-alt: #f6f7f9;
	--bg-deep: #eceef2;
	--text: #1a1d21;
	--text-muted: #6b7280;
	--accent: #7D2438;
	--border: rgba(0, 0, 0, .10);

	--ink: #000000;
	--line: 3px;
	--shadow: 6px 6px 0 var(--ink);
	--shadow-sm: 4px 4px 0 var(--ink);
	--spacing: 28px;
	--wrap: 1080px;
	--font: -apple-system, 'Segoe UI', Arial, 'Microsoft YaHei', sans-serif;
}

/* ---------------------------------------------------------------
   2. Base
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

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

.ea58f3-skip {
	position: absolute;
	left: -9999px;
	top: 0;
}
.ea58f3-skip:focus {
	left: 12px;
	top: 12px;
	z-index: 200;
	background: #fff;
	border: var(--line) solid var(--ink);
	padding: 8px 12px;
	font-weight: 700;
}

.ea58f3-main { display: block; padding-bottom: 0; }

/* ---------------------------------------------------------------
   3. Header
--------------------------------------------------------------- */
.ea58f3-head {
	background: var(--bg);
	border-bottom: var(--line) solid var(--ink);
	position: sticky;
	top: 0;
	z-index: 60;
}

.ea58f3-head-in {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 78px;
	padding: 10px 0;
}

.ea58f3-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -.015em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
}
.ea58f3-brand .ea58f3-mark {
	width: 26px;
	height: 26px;
	background: var(--accent);
	border: var(--line) solid var(--ink);
	box-shadow: var(--shadow-sm);
	flex: 0 0 auto;
}
.ea58f3-brand i {
	font-style: normal;
	color: var(--accent);
}

.ea58f3-nav { margin-left: auto; }
.ea58f3-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ea58f3-nav a {
	display: block;
	padding: 7px 10px;
	border: 2px solid transparent;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1.2;
}
.ea58f3-nav a:hover,
.ea58f3-nav .current-menu-item > a {
	background: var(--accent);
	color: #fff;
	border-color: var(--ink);
}

.ea58f3-head-tools { flex: 0 0 auto; }

/* Search form */
.ea58f3-search { display: flex; gap: 0; margin: 0; }
.ea58f3-search input[type="search"] {
	width: 148px;
	height: 38px;
	padding: 0 10px;
	border: 2px solid var(--ink);
	border-right: 0;
	border-radius: 0;
	background: #fff;
	color: var(--text);
	font-family: var(--font);
	font-size: 13px;
}
.ea58f3-search input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: -4px; }
.ea58f3-search button {
	height: 38px;
	padding: 0 14px;
	border: 2px solid var(--ink);
	border-radius: 0;
	background: var(--ink);
	color: #fff;
	font-family: var(--font);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
}
.ea58f3-search button:hover { background: var(--accent); }

/* ---------------------------------------------------------------
   4. Shared elements
--------------------------------------------------------------- */
.ea58f3-kicker {
	display: inline-block;
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--accent);
}

.ea58f3-btn {
	display: inline-block;
	padding: 14px 22px;
	border: var(--line) solid var(--ink);
	border-radius: 0;
	background: var(--accent);
	color: #fff;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	line-height: 1.2;
	box-shadow: var(--shadow);
	transition: transform .08s linear, background .08s linear, color .08s linear, box-shadow .08s linear;
}
.ea58f3-btn:hover {
	background: #fff;
	color: var(--ink);
	transform: translate(3px, 3px);
	box-shadow: 0 0 0 var(--ink);
}
.ea58f3-btn-ghost { background: #fff; color: var(--ink); }
.ea58f3-btn-ghost:hover { background: var(--accent); color: #fff; }

.ea58f3-sec { margin: 0 0 64px; }

.ea58f3-sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	border-bottom: var(--line) solid var(--ink);
	padding-bottom: 12px;
	margin: 0 0 28px;
}
.ea58f3-sec-title {
	margin: 0;
	font-size: clamp(21px, 2.6vw, 29px);
	font-weight: 800;
	letter-spacing: -.01em;
	text-transform: uppercase;
	line-height: 1.1;
}
.ea58f3-sec-more {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent);
	white-space: nowrap;
	border-bottom: 2px solid var(--accent);
	padding-bottom: 2px;
}
.ea58f3-sec-more:hover { color: var(--text); border-color: var(--text); }

/* ---------------------------------------------------------------
   5. Cards (style A: 16:9 cover + category + title + excerpt)
--------------------------------------------------------------- */
.ea58f3-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.ea58f3-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: var(--line) solid var(--ink);
	box-shadow: var(--shadow);
	transition: transform .08s linear, box-shadow .08s linear;
}
.ea58f3-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }

.ea58f3-card-media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--bg-deep);
	border-bottom: var(--line) solid var(--ink);
}
.ea58f3-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}
.ea58f3-card:hover .ea58f3-card-media img { transform: scale(1.03); }

.ea58f3-card-tag {
	position: absolute;
	left: 0;
	bottom: 0;
	display: inline-block;
	padding: 5px 9px;
	background: var(--accent);
	color: #fff;
	border-top: 2px solid var(--ink);
	border-right: 2px solid var(--ink);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1.3;
}

.ea58f3-card-body {
	display: flex;
	flex-direction: column;
	gap: 9px;
	flex: 1 1 auto;
	padding: 16px 16px 18px;
}
.ea58f3-card-title {
	margin: 0;
	font-size: 17.5px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -.005em;
}
.ea58f3-card-title a:hover { color: var(--accent); }
.ea58f3-card-excerpt {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.62;
	color: var(--text-muted);
}
.ea58f3-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
	padding-top: 6px;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-muted);
}
.ea58f3-card-meta span::before { content: ""; }
.ea58f3-card-meta .ea58f3-dot { color: var(--border); }

/* ---------------------------------------------------------------
   6. Archive / index
--------------------------------------------------------------- */
.ea58f3-arch-head {
	border-bottom: var(--line) solid var(--ink);
	padding: 46px 0 26px;
	margin: 0 0 36px;
}
.ea58f3-arch-head h1 {
	margin: 0 0 12px;
	font-size: clamp(30px, 4.4vw, 48px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -.02em;
	text-transform: uppercase;
}
.ea58f3-arch-head p { margin: 0; max-width: 640px; color: var(--text-muted); font-size: 15.5px; }

.ea58f3-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 44px 0 0;
}
.ea58f3-pager .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 9px 12px;
	border: 2px solid var(--ink);
	background: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-align: center;
}
.ea58f3-pager .current { background: var(--accent); color: #fff; }
.ea58f3-pager a:hover { background: var(--ink); color: #fff; }

.ea58f3-empty {
	border: var(--line) solid var(--ink);
	box-shadow: var(--shadow);
	padding: 32px;
	background: var(--bg-alt);
}
.ea58f3-empty p { margin: 0 0 18px; max-width: 560px; }

/* ---------------------------------------------------------------
   7. Single post and pages
--------------------------------------------------------------- */
.ea58f3-single { padding: 46px 0 72px; }

.ea58f3-single-head { margin: 0 0 26px; }
.ea58f3-single-head h1 {
	margin: 0 0 18px;
	font-size: clamp(28px, 4.1vw, 46px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -.02em;
	text-transform: uppercase;
	max-width: 880px;
}

.ea58f3-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	border-top: 2px solid var(--ink);
	border-bottom: 2px solid var(--ink);
	padding: 11px 0;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-muted);
}
.ea58f3-meta .ea58f3-avatar {
	width: 34px;
	height: 34px;
	border: 2px solid var(--ink);
	object-fit: cover;
}
.ea58f3-meta a { color: var(--text); }
.ea58f3-meta a:hover { color: var(--accent); }
.ea58f3-meta .ea58f3-sep { color: var(--border); }

.ea58f3-fig {
	margin: 30px 0 34px;
	border: var(--line) solid var(--ink);
	box-shadow: var(--shadow);
	background: #fff;
}
.ea58f3-fig img { width: 100%; height: auto; }
.ea58f3-fig figcaption {
	padding: 9px 12px;
	border-top: 2px solid var(--ink);
	font-size: 11.5px;
	line-height: 1.55;
	color: var(--text-muted);
	background: var(--bg-alt);
}
.ea58f3-fig figcaption a { color: var(--accent); text-decoration: underline; }

.ea58f3-prose { max-width: 760px; }
.ea58f3-prose p {
	margin: 0 0 var(--spacing);
	font-size: 18px;
	line-height: 1.78;
}
.ea58f3-prose h2 {
	margin: calc(var(--spacing) * 1.6) 0 14px;
	padding-left: 13px;
	border-left: 9px solid var(--accent);
	font-size: clamp(20px, 2.3vw, 26px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
	text-transform: uppercase;
}
.ea58f3-prose h3 {
	margin: calc(var(--spacing) * 1.2) 0 10px;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.3;
	text-transform: uppercase;
}
.ea58f3-prose ul,
.ea58f3-prose ol { margin: 0 0 var(--spacing); padding-left: 22px; }
.ea58f3-prose li { margin: 0 0 9px; font-size: 17.5px; line-height: 1.72; }
.ea58f3-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ea58f3-prose blockquote {
	margin: 0 0 var(--spacing);
	padding: 18px 20px;
	border: var(--line) solid var(--ink);
	box-shadow: var(--shadow-sm);
	background: var(--bg-alt);
	font-size: 17.5px;
}
.ea58f3-prose img { border: 2px solid var(--ink); }

.ea58f3-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 34px 0 0;
	padding-top: 22px;
	border-top: 2px solid var(--ink);
	max-width: 760px;
}
.ea58f3-tags a {
	display: inline-block;
	padding: 6px 10px;
	border: 2px solid var(--ink);
	background: #fff;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.ea58f3-tags a:hover { background: var(--accent); color: #fff; }

.ea58f3-postnav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 40px 0 0;
	max-width: 760px;
}
.ea58f3-postnav a {
	display: block;
	padding: 16px;
	border: var(--line) solid var(--ink);
	box-shadow: var(--shadow-sm);
	background: #fff;
}
.ea58f3-postnav a:hover { background: var(--bg-alt); }
.ea58f3-postnav small {
	display: block;
	margin-bottom: 6px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent);
}
.ea58f3-postnav .ea58f3-navt { font-size: 15px; font-weight: 800; line-height: 1.35; display: block; }
.ea58f3-postnav .ea58f3-next { text-align: right; }

/* ---------------------------------------------------------------
   8. 404
--------------------------------------------------------------- */
.ea58f3-404 { padding: 76px 0 90px; }
.ea58f3-404 .ea58f3-code {
	display: inline-block;
	margin: 0 0 18px;
	padding: 6px 10px;
	border: var(--line) solid var(--ink);
	box-shadow: var(--shadow-sm);
	background: var(--accent);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.ea58f3-404 h1 {
	margin: 0 0 14px;
	font-size: clamp(28px, 4.2vw, 46px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.02em;
	text-transform: uppercase;
	max-width: 700px;
}
.ea58f3-404 p { max-width: 560px; color: var(--text-muted); }
.ea58f3-404 .ea58f3-search { margin: 22px 0 26px; }
.ea58f3-404 .ea58f3-search input[type="search"] { width: 260px; }

.ea58f3-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ea58f3-chips a {
	display: inline-block;
	padding: 7px 11px;
	border: 2px solid var(--ink);
	background: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.ea58f3-chips a:hover { background: var(--ink); color: #fff; }

/* ---------------------------------------------------------------
   9. Footer
--------------------------------------------------------------- */
.ea58f3-foot {
	margin-top: 72px;
	border-top: var(--line) solid var(--ink);
	background: var(--bg-alt);
}
.ea58f3-foot-in {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 28px;
	padding: 42px 0 30px;
}
.ea58f3-foot-brand {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -.01em;
	text-transform: uppercase;
}
.ea58f3-foot-note { margin: 0; max-width: 420px; font-size: 13.5px; line-height: 1.65; color: var(--text-muted); }
.ea58f3-foot-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; justify-content: flex-end; align-content: flex-start; }
.ea58f3-foot-links a {
	display: inline-block;
	padding: 6px 10px;
	border: 2px solid var(--ink);
	background: #fff;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.ea58f3-foot-links a:hover { background: var(--accent); color: #fff; }
.ea58f3-foot-bottom {
	border-top: 2px solid var(--ink);
	background: var(--ink);
	color: #fff;
}
.ea58f3-foot-bottom .ea58f3-wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	padding-top: 13px;
	padding-bottom: 13px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------
   10. Responsive
--------------------------------------------------------------- */
@media (max-width: 1000px) {
	.ea58f3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.ea58f3-head-in { flex-wrap: wrap; gap: 12px; }
	.ea58f3-nav { order: 3; margin-left: 0; width: 100%; }
	.ea58f3-head-tools { margin-left: auto; }
}

@media (max-width: 720px) {
	body { font-size: 16.5px; }
	:root { --spacing: 24px; }
	.ea58f3-wrap { padding: 0 18px; }
	.ea58f3-grid { grid-template-columns: minmax(0, 1fr); }
	.ea58f3-prose p { font-size: 17px; }
	.ea58f3-postnav { grid-template-columns: minmax(0, 1fr); }
	.ea58f3-postnav .ea58f3-next { text-align: left; }
	.ea58f3-foot-in { grid-template-columns: minmax(0, 1fr); }
	.ea58f3-foot-links { justify-content: flex-start; }
	.ea58f3-search input[type="search"] { width: 120px; }
	.ea58f3-sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
