/*
Theme Name: Scouse Kitchen
Description: A warm, personal recipe-book theme. Built as a moving-in present. Pairs with the ScouseKitchen Recipes plugin.
Version: 1.0.0
Author: Tony
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: scousekitchen-theme
*/

:root {
	--cream: #fbf6ee;
	--paper: #fffdf8;
	--ink: #2b2420;
	--ink-soft: #6a5e56;
	--tomato: #d9482b;
	--tomato-dark: #b83a20;
	--herb: #3f6b4f;
	--butter: #f4c95d;
	--blush: #f3d9cc;
	--line: #eadfd1;
	--radius: 18px;
	--shadow: 0 1px 2px rgba(43, 36, 32, .06), 0 8px 24px rgba(43, 36, 32, .07);
	--serif: "Fraunces", Georgia, serif;
	--sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--hand: "Caveat", "Comic Sans MS", cursive;
}

/* Plugin colours follow the theme */
body {
	--sk-accent: var(--tomato);
	--sk-accent-2: var(--herb);
	--sk-soft: var(--paper);
	--sk-line: var(--line);
	--sk-star: #e9a23b;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--tomato-dark); text-underline-offset: 3px; }
a:hover { color: var(--tomato); }

h1, h2, h3 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.skt-wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skt-narrow { width: min(780px, 100% - 40px); }
.skt-muted { color: var(--ink-soft); font-size: .92em; }

.skt-skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skt-skip:focus { left: 12px; }

:focus-visible { outline: 3px solid var(--butter); outline-offset: 2px; }

/* Buttons */
.skt-btn, body .sk-btn {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	padding: .8em 1.4em;
	border-radius: 999px;
	border: 2px solid var(--tomato);
	background: var(--tomato);
	color: #fff !important;
	font-family: var(--sans);
	font-weight: 700;
	font-size: .98rem;
	text-decoration: none !important;
	line-height: 1.2;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease;
}
.skt-btn:hover, body .sk-btn:hover { background: var(--tomato-dark); border-color: var(--tomato-dark); transform: translateY(-1px); }
.skt-btn-ghost { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.skt-btn-ghost:hover { background: var(--ink); color: #fff !important; border-color: var(--ink); }
.skt-btn-sm { padding: .5em 1em; font-size: .9rem; }
body .sk-btn-alt { background: var(--herb); border-color: var(--herb); }
body .sk-btn-alt:hover { background: #335a41; border-color: #335a41; }

/* Header */
.skt-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(251, 246, 238, .92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .skt-header { top: 32px; }
.skt-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.skt-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.skt-brand-mark { width: 36px; height: 36px; color: var(--tomato); }
.skt-brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; }
.skt-logo-img { max-height: 48px; width: auto; }

.skt-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; }
.skt-menu a:not(.skt-btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.skt-menu a:not(.skt-btn):hover { color: var(--tomato); }
.skt-nav-toggle { display: none; }

/* Hero */
.skt-hero { padding: clamp(40px, 7vw, 90px) 0 clamp(30px, 5vw, 60px); overflow: hidden; }
.skt-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.skt-badge {
	display: inline-block;
	margin: 0 0 18px;
	padding: .35em .9em;
	border-radius: 999px;
	background: var(--paper);
	border: 1px solid var(--line);
	font-size: .9rem;
	font-weight: 500;
}
.skt-hero-title { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 700; margin-bottom: .35em; }
.skt-hero-title span { color: var(--tomato); font-style: italic; font-weight: 600; }
.skt-hero-intro { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; margin: 0 0 28px; }
.skt-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.skt-hero-svg { width: 100%; max-width: 440px; margin-inline: auto; display: block; }
.skt-hero-svg .skt-sun { fill: var(--butter); opacity: .55; }
.skt-hero-svg .skt-ink { fill: var(--ink); }
.skt-hero-svg .skt-pot { fill: var(--tomato); }
.skt-hero-svg .skt-shine { stroke: rgba(255, 255, 255, .35); fill: none; }
.skt-hero-svg .skt-steam { stroke: var(--ink); opacity: .55; }
.skt-hero-svg .skt-heart { fill: var(--tomato); }
.skt-hero-svg .skt-key { stroke: var(--herb); }

@media (prefers-reduced-motion: no-preference) {
	.skt-steam path { animation: skt-rise 3.2s ease-in-out infinite; }
	.skt-steam path:nth-child(2) { animation-delay: .5s; }
	.skt-steam path:nth-child(3) { animation-delay: 1s; }
	.skt-heart { animation: skt-float 3.2s ease-in-out infinite; transform-origin: 180px 85px; }
	.skt-key { animation: skt-swing 4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
}
@keyframes skt-rise { 0%, 100% { transform: translateY(6px); opacity: .25; } 50% { transform: translateY(-6px); opacity: .7; } }
@keyframes skt-float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.06); } }
@keyframes skt-swing { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }

.skt-polaroid {
	margin: 0 auto;
	max-width: 400px;
	background: #fff;
	padding: 14px 14px 18px;
	border-radius: 6px;
	box-shadow: var(--shadow);
	transform: rotate(2.5deg);
	position: relative;
}
.skt-polaroid::before {
	content: "";
	position: absolute;
	top: -14px;
	left: 50%;
	width: 110px;
	height: 28px;
	transform: translateX(-50%) rotate(-3deg);
	background: rgba(244, 201, 93, .7);
}
.skt-polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.skt-polaroid figcaption { font-family: var(--hand); font-size: 1.6rem; text-align: center; margin-top: 8px; }

/* Sections */
.skt-section { padding: clamp(50px, 8vw, 96px) 0; }
.skt-section-tight { padding: 30px 0 70px; }
.skt-section-tint { background: var(--paper); border-block: 1px solid var(--line); }
.skt-section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.skt-section-head h2 { margin: 0; }
.skt-kicker {
	margin: 0 0 6px;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--herb);
}
.skt-kicker a { color: inherit; text-decoration: none; }
.skt-link-arrow { font-weight: 700; text-decoration: none; }

/* Letter */
.skt-letter {
	position: relative;
	background:
		repeating-linear-gradient(to bottom, transparent 0 33px, rgba(63, 107, 79, .12) 33px 34px),
		var(--paper);
	background-position: 0 14px;
	border-radius: 6px;
	padding: 48px clamp(24px, 6vw, 64px) 40px;
	box-shadow: var(--shadow);
	transform: rotate(-.6deg);
	font-size: 1.08rem;
	line-height: 34px;
}
.skt-letter::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 40px;
	width: 96px;
	height: 26px;
	background: rgba(217, 72, 43, .25);
	transform: rotate(-4deg);
}
.skt-letter p { margin: 0 0 17px; }
.skt-letter-to { font-family: var(--hand); font-size: 2rem; color: var(--tomato-dark); line-height: 1.2; margin-bottom: 20px !important; }
.skt-letter-sign { font-family: var(--hand); font-size: 2.2rem; color: var(--tomato-dark); text-align: right; line-height: 1.2; margin-top: 24px !important; }

/* Cards */
.skt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.skt-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.skt-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(43, 36, 32, .06), 0 16px 36px rgba(43, 36, 32, .12); }
.skt-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.skt-card-link:hover { color: inherit; }
.skt-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--blush); }
.skt-card-media img { width: 100%; height: 100%; object-fit: cover; }
.skt-card-ph { width: 100%; height: 100%; display: grid; place-items: center; }
.skt-ph-pot { width: 34%; height: auto; }
.skt-ph-0 { background: #f6dccf; color: var(--tomato); }
.skt-ph-1 { background: #dfe9dc; color: var(--herb); }
.skt-ph-2 { background: #fbebc0; color: #b9822a; }
.skt-ph-3 { background: #ecdfd4; color: var(--ink-soft); }
.skt-tag {
	position: absolute;
	left: 12px;
	top: 12px;
	background: rgba(255, 253, 248, .94);
	padding: .2em .75em;
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 700;
}
.skt-card-body { padding: 18px 20px 20px; }
.skt-card-title { margin: 0 0 4px; font-size: 1.22rem; }
.skt-card-by { margin: 0 0 10px; color: var(--ink-soft); font-size: .92rem; }
.skt-card-meta { margin: 0; display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; color: var(--ink-soft); }
.skt-card-rating { white-space: nowrap; }

.skt-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 34px; }
.skt-chips-label { font-weight: 500; margin-right: 4px; }
.skt-chip { padding: .45em 1.05em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.skt-chip:hover { border-color: var(--tomato); color: var(--tomato); }

.skt-empty { text-align: center; padding: 40px 20px; color: var(--ink-soft); }
.skt-empty-pot { width: 70px; color: var(--tomato); margin: 0 auto 12px; display: block; opacity: .8; }

/* Steps */
.skt-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.skt-steps li { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.skt-steps h3 { margin: 14px 0 6px; }
.skt-steps p { margin: 0; color: var(--ink-soft); }
.skt-step-n {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--butter);
	font-family: var(--serif);
	font-weight: 700;
	font-size: 1.3rem;
}
.skt-cta {
	margin-top: 34px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 32px;
	border-radius: var(--radius);
	background: var(--herb);
	color: #fff;
	flex-wrap: wrap;
}
.skt-cta h3 { margin: 0 0 4px; color: #fff; }
.skt-cta p { margin: 0; opacity: .9; max-width: 40em; }
.skt-cta .skt-btn { background: var(--butter); border-color: var(--butter); color: var(--ink) !important; }
.skt-cta .skt-btn:hover { background: #fff; border-color: #fff; }

/* Starter kit */
.skt-kit { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.skt-kit-intro p:last-child { color: var(--ink-soft); }
.skt-kit-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.skt-kit-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.skt-kit-list label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.skt-kit-list input { width: 18px; height: 18px; accent-color: var(--herb); }
.skt-kit-list label:has(input:checked) { color: var(--ink-soft); text-decoration: line-through; }

/* Page / single */
.skt-page-head { padding: clamp(40px, 6vw, 70px) 0 10px; }
.skt-page-head h1 { margin-bottom: .2em; }
.skt-page-desc { color: var(--ink-soft); max-width: 40em; }
.skt-single-photo { margin: 20px 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.skt-content { padding-bottom: 60px; }
.skt-content > * + * { margin-top: 1em; }

/* Plugin recipe card polish */
body .sk-recipe h3 { font-size: 1.5rem; margin-top: 1.6em; }
body .sk-credit-box, body .sk-rating, body .sk-box, body .sk-credit { background: #fff; box-shadow: var(--shadow); border-color: transparent; border-radius: var(--radius); }
body .sk-credit-box { border-left: 6px solid var(--tomato); }
body .sk-support { background: #fff; border-radius: var(--radius); border: 0; border-left: 6px solid var(--herb); box-shadow: var(--shadow); }
body .sk-meta { background: #fff; border-radius: 999px; padding: 10px 22px !important; box-shadow: var(--shadow); }
body .sk-ingredients li { padding: .55em 0; }
body .sk-ingredients input { accent-color: var(--herb); width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
body .sk-steps { counter-reset: step; list-style: none; padding-left: 0; }
body .sk-steps li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 1.1em; }
body .sk-steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: -2px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--butter);
	display: grid;
	place-items: center;
	font-family: var(--serif);
	font-weight: 700;
}
body .sk-form fieldset { background: #fff; border: 0; box-shadow: var(--shadow); border-radius: var(--radius); padding: 24px 28px; }
body .sk-table { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.nav-links { display: flex; gap: 16px; justify-content: center; margin-top: 40px; }
.nav-links .page-numbers { padding: .4em .9em; border-radius: 999px; background: #fff; text-decoration: none; }
.nav-links .current { background: var(--ink); color: #fff; }

/* Footer */
.skt-footer { background: var(--ink); color: #efe6dc; padding: 50px 0 30px; }
.skt-footer .sk-support { border: 0; border-left: 6px solid var(--herb); background: #3a312c; color: #efe6dc; box-shadow: none; margin: 0 0 30px; }
.skt-footer .sk-support h3 { color: #fff; }
.skt-footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; }
.skt-footer-bottom p { margin: 0; }
.skt-footer-love { font-family: var(--hand); font-size: 1.7rem; line-height: 1.2; color: var(--butter); }
.skt-footer .skt-muted { color: #b9aca1; }

/* Mobile */
@media (max-width: 860px) {
	.skt-hero-grid, .skt-kit { grid-template-columns: 1fr; }
	.skt-hero-art { order: -1; }
	.skt-hero-svg { max-width: 280px; }
	.skt-steps { grid-template-columns: 1fr; }
	.skt-nav-toggle {
		display: inline-block;
		background: none;
		border: 2px solid var(--ink);
		border-radius: 999px;
		padding: .4em 1em;
		font: 700 .9rem var(--sans);
		color: var(--ink);
		cursor: pointer;
	}
	.skt-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 16px 20px 22px; }
	.skt-nav-open .skt-nav { display: block; }
	.skt-header-inner { position: relative; }
	.skt-menu { flex-direction: column; align-items: flex-start; gap: 14px; }
	.skt-letter { transform: none; }
}
@media (max-width: 520px) {
	.skt-kit-list { columns: 1; }
	.skt-hero-actions .skt-btn { width: 100%; justify-content: center; }
}

@media print {
	.skt-header, .skt-footer, .skt-single-photo { display: none !important; }
	body { background: #fff; }
}
