/*
Theme Name: WHG Revival
Theme URI: https://whg-revival.ddev.site
Author: WHG Revival
Description: A standalone, Genesis-free presentation layer for Whimsical Home and Garden.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: whg-revival
*/

@font-face {
	font-family: "WHG Literata";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/literata-regular.woff2") format("woff2");
}

@font-face {
	font-family: "WHG Literata";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/literata-italic.woff2") format("woff2");
}

:root {
	--whg-gold: #b88e52;
	--whg-gold-dark: #805e30;
	--whg-ink: #332f2a;
	--whg-muted: #756e64;
	--whg-paper: #f4f2e7;
	--whg-white: #fff;
	--whg-width: 1140px;
	--whg-content: 760px;
}

* {
	box-sizing: border-box;
}

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

body {
	background: #f4f1e7 url("assets/images/linen-gold.gif") repeat;
	color: var(--whg-ink);
	font-family: "WHG Literata", Georgia, "Times New Roman", serif;
	font-size: 17px;
	line-height: 1.7;
	margin: 0;
	overflow-wrap: break-word;
}

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

a {
	color: var(--whg-gold-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover,
a:focus {
	color: #211d18;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.screen-reader-text:focus {
	background: #fff;
	clip: auto;
	clip-path: none;
	height: auto;
	left: 1rem;
	padding: 0.75rem 1rem;
	top: 1rem;
	width: auto;
	z-index: 10000;
}

.site-header {
	background: #000;
	color: #f2e5c5;
}

.site-branding {
	--whg-title-size: clamp(2.35rem, 5vw, 4rem);
	margin: 0 auto;
	max-width: var(--whg-width);
	padding: 20px 24px 12px;
	position: relative;
	z-index: 2;
}

.site-title {
	font-family: "Snell Roundhand", "Segoe Script", cursive;
	font-size: var(--whg-title-size);
	font-weight: 400;
	letter-spacing: -0.04em;
	line-height: 1;
	margin: 0;
	text-shadow: 1px 2px 2px #000;
}

.site-title a {
	color: #e7cba4;
	text-decoration: none;
}

.site-title-mark {
	display: inline-block;
	font-size: 0.5em;
	margin-left: 0.25em;
	vertical-align: super;
}

.site-description {
	font-size: clamp(0.9rem, 2vw, 1.25rem);
	font-style: italic;
	margin: 0.15rem 0 0 calc(var(--whg-title-size) * 1.8);
	text-shadow: 1px 1px #000;
}

.header-image-wrap {
	background: #000;
	margin: 0 auto;
	max-width: var(--whg-width);
	position: relative;
}

.header-image-wrap::after {
	background: linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, 0.3));
	content: "";
	inset: 0;
	position: absolute;
}

.header-image {
	display: block;
	height: clamp(190px, 31vw, 350px);
	object-fit: cover;
	width: 100%;
}

.primary-navigation {
	background: #0d0c0b;
	border-bottom: 1px solid #423a31;
	border-top: 1px solid #332e28;
}

.menu-toggle {
	display: none;
}

.primary-navigation .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	list-style: none;
	margin: 0 auto;
	max-width: var(--whg-width);
	padding: 0 14px;
}

.primary-navigation li {
	position: relative;
}

.primary-navigation a {
	color: #e6ddcf;
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.065em;
	line-height: 1.2;
	padding: 0.9rem 0.58rem;
	text-decoration: none;
	text-transform: uppercase;
}

.primary-navigation a:hover,
.primary-navigation a:focus {
	background: #27221d;
	color: #fff;
}

.primary-navigation .sub-menu {
	background: #171411;
	display: none;
	left: 0;
	list-style: none;
	margin: 0;
	min-width: 220px;
	padding: 0;
	position: absolute;
	top: 100%;
	z-index: 20;
}

.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu {
	display: block;
}

.site-content {
	display: grid;
	gap: 30px;
	grid-template-columns: minmax(0, 1fr) 300px;
	margin: 34px auto 54px;
	max-width: var(--whg-width);
	padding: 0 20px;
}

.content-area {
	min-width: 0;
}

.entry-card,
.page-header,
.comments-area {
	background: var(--whg-paper) url("assets/images/post-swirl.png") no-repeat right bottom;
	border: 3px solid #fff;
	box-shadow: 0 1px 8px rgba(34, 29, 22, 0.25);
	margin: 0 0 38px;
	padding: 34px;
	position: relative;
}

.entry-card::before,
.entry-card::after {
	background-repeat: no-repeat;
	content: "";
	height: 47px;
	position: absolute;
	top: -8px;
	width: 47px;
}

.entry-card::before {
	background-image: url("assets/images/left-corner.png");
	left: -8px;
}

.entry-card::after {
	background-image: url("assets/images/right-corner.png");
	right: -8px;
}

.post-photo {
	display: block;
	margin: -34px -34px 28px;
	overflow: hidden;
	position: relative;
}

.post-photo img {
	aspect-ratio: 730 / 285;
	display: block;
	object-fit: cover;
	width: 100%;
}

.post-date-badge {
	background: rgba(244, 242, 231, 0.96);
	box-shadow: 0 3px 5px rgba(0, 0, 0, 0.55);
	color: var(--whg-muted);
	font-size: 0.72rem;
	line-height: 1.25;
	padding: 14px 8px;
	position: absolute;
	right: 22px;
	text-align: center;
	text-transform: uppercase;
	top: 0;
	width: 92px;
}

.post-date-badge strong {
	color: var(--whg-gold);
	display: block;
	font-family: "Snell Roundhand", "Segoe Script", cursive;
	font-size: 2.8rem;
	font-weight: 400;
	line-height: 0.9;
}

.entry-header {
	margin-bottom: 1.25rem;
}

.rabbit-title {
	align-items: center;
	display: flex;
	gap: 0.85rem;
}

.rabbit-title::before {
	background: url("assets/images/rabbit-watercolor-gold.png") center / contain no-repeat;
	content: "";
	flex: 0 0 clamp(54px, 8vw, 80px);
	height: clamp(54px, 8vw, 80px);
}

.rabbit-title > .entry-title {
	min-width: 0;
}

.entry-title,
.page-title {
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: 400;
	letter-spacing: -0.035em;
	line-height: 1.15;
	margin: 0;
}

.entry-title a {
	color: var(--whg-gold-dark);
	text-decoration: none;
}

.entry-meta {
	color: var(--whg-muted);
	font-size: 0.8rem;
	font-style: italic;
	margin: 0.7rem 0 0;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

.entry-content hr {
	background: var(--whg-gold);
	border: 0;
	height: 1px;
	margin: 2rem 0;
}

.entry-content .more-link {
	font-family: "Snell Roundhand", "Segoe Script", cursive;
	font-size: 1.35rem;
}

.entry-footer {
	border-top: 1px solid #ddd6c5;
	color: var(--whg-muted);
	font-size: 0.78rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
}

.sidebar .widget {
	background: rgba(244, 242, 231, 0.95);
	border: 1px solid #ded8c9;
	box-shadow: 0 1px 5px rgba(34, 29, 22, 0.16);
	margin-bottom: 24px;
	padding: 26px 26px 60px;
	position: relative;
}

.sidebar .widget::after {
	background: url("assets/images/post-swirl-thin-v03.png") center / 115px 37px no-repeat;
	bottom: 10px;
	content: "";
	height: 37px;
	left: 26px;
	opacity: 0.58;
	pointer-events: none;
	position: absolute;
	right: 26px;
}

.sidebar .widget-title,
.sidebar h2 {
	font-size: 1.35rem;
	font-weight: 400;
	margin-top: 0;
	text-align: center;
}

.sidebar ul {
	list-style: none;
	padding-left: 0;
}

.sidebar li {
	border-bottom: 1px dotted #c9c0ae;
	padding: 0.45rem 0;
}

.whg-subscribe-widget form {
	text-align: center;
}

.whg-subscribe-widget input[type="email"] {
	margin: 0.35rem 0 0.75rem;
	width: 100%;
}

.whg-subscribe-widget input[type="submit"] {
	width: 100%;
}

.whg-pet-widget,
.whg-sidebar-rabbit {
	text-align: center;
}

.whg-pet-widget a {
	display: block;
	margin-top: 0.45rem;
}

.whg-sidebar-rabbit img {
	height: auto;
	width: 80px;
}

input,
textarea,
select,
button {
	font: inherit;
}

input[type="search"],
input[type="text"],
input[type="email"],
textarea {
	background: #fff;
	border: 1px solid #bcb3a4;
	max-width: 100%;
	padding: 0.65rem;
}

button,
input[type="submit"] {
	background: var(--whg-gold);
	border: 0;
	color: #fff;
	cursor: pointer;
	padding: 0.7rem 1rem;
}

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

.archive-grid .entry-card {
	margin-bottom: 0;
	padding: 24px;
}

.archive-grid .post-photo {
	margin: -24px -24px 20px;
}

.archive-grid .rabbit-title::before {
	display: none;
}

.archive-grid .entry-title {
	font-size: 1.45rem;
}

.navigation.pagination {
	grid-column: 1 / -1;
	margin: 2rem 0;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.page-numbers {
	background: var(--whg-paper);
	border: 1px solid #d4cbb9;
	padding: 0.4rem 0.75rem;
}

.site-footer {
	background: #181512 url("assets/images/footer-texture.jpg") repeat;
	border-top: 2px solid #fff;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
	color: #d7cec0;
	padding: 32px 20px;
	text-align: center;
}

.site-footer a {
	color: #e7cba4;
}

.site-footer p {
	margin: 0;
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-list .children {
	list-style: none;
}

.comment-body {
	border-bottom: 1px solid #ddd6c5;
	padding: 1rem 0;
}

@media (max-width: 860px) {
	.site-content {
		grid-template-columns: minmax(0, 1fr);
	}

	.primary-navigation a {
		padding-bottom: 0.48rem;
		padding-top: 0.48rem;
	}

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

	.sidebar .widget {
		margin: 0;
	}
}

@media (max-width: 620px) {
	.site-branding {
		padding-inline: 18px;
	}

	.site-description {
		margin-left: calc(var(--whg-title-size) * 1.8);
	}

	.header-image-wrap {
		margin-top: 0;
	}

	.primary-navigation .menu {
		display: block;
		padding: 0;
	}

	.menu-toggle {
		background: transparent;
		color: #e7cba4;
		display: block;
		letter-spacing: 0.08em;
		padding: 0.85rem 20px;
		text-align: left;
		text-transform: uppercase;
		width: 100%;
	}

	.menu-toggle::after {
		content: "+";
		float: right;
		font-size: 1.2rem;
		line-height: 1;
	}

	.menu-toggle[aria-expanded="true"]::after {
		content: "−";
	}

	.whg-menu-ready .primary-navigation .menu {
		display: none;
	}

	.whg-menu-ready .primary-navigation .menu.is-open {
		display: block;
	}

	.primary-navigation a {
		border-bottom: 1px solid #28231e;
		padding-bottom: 0.68rem;
		padding-inline: 20px;
		padding-top: 0.68rem;
	}

	.primary-navigation .sub-menu {
		display: block;
		padding-left: 1rem;
		position: static;
	}

	.site-content {
		margin-top: 22px;
		padding: 0 12px;
	}

	.entry-card,
	.page-header,
	.comments-area {
		padding: 22px;
	}

	.post-photo {
		margin: -22px -22px 22px;
	}

	.post-date-badge {
		display: none;
	}

	.archive-grid,
	.sidebar {
		grid-template-columns: minmax(0, 1fr);
	}
}
