:root {
	--sc-ink: #232925;
	--sc-forest: #355448;
	--sc-forest-dark: #263f36;
	--sc-sage: #83998d;
	--sc-sand: #d8c6aa;
	--sc-linen: #f4efe6;
	--sc-paper: #fffdf8;
	--sc-white: #fff;
	--sc-line: rgba(35, 41, 37, 0.14);
	--sc-shadow: 0 20px 60px rgba(28, 42, 35, 0.10);
	--sc-radius: 1.25rem;
	--sc-content: 760px;
	--sc-wide: 1180px;
	--sc-header-height: 84px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--sc-paper);
	color: var(--sc-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.75;
	text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
	top: 32px;
}

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

figure {
	margin: 0;
}

a {
	color: var(--sc-forest);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
	color: var(--sc-forest-dark);
}

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

button,
.button,
.button-link,
.wp-element-button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	border: 0;
	border-radius: 999px;
	background: var(--sc-forest);
	color: var(--sc-white);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	line-height: 1.2;
	padding: 0.85rem 1.4rem;
	text-decoration: none;
	transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

button:hover,
.button:hover,
.button-link:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--sc-forest-dark);
	box-shadow: 0 8px 24px rgba(38, 63, 54, 0.18);
	color: var(--sc-white);
	transform: translateY(-1px);
}

:focus-visible {
	outline: 3px solid var(--sc-sand);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	clip: auto;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.8rem 1rem;
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100000;
	background: var(--sc-white);
	color: var(--sc-ink);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--sc-ink);
	font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
	font-weight: 400;
	line-height: 1.1;
	margin-top: 0;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.7rem, 7vw, 5.8rem);
	letter-spacing: -0.035em;
}

h2 {
	font-size: clamp(2.1rem, 4vw, 3.6rem);
	letter-spacing: -0.025em;
}

h3 {
	font-size: clamp(1.55rem, 2.7vw, 2.2rem);
}

p {
	margin-top: 0;
}

.eyebrow {
	color: var(--sc-forest);
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	margin-bottom: 1rem;
	text-transform: uppercase;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 253, 248, 0.92);
	border-bottom: 1px solid var(--sc-line);
	backdrop-filter: blur(14px);
}

.site-header__inner {
	width: min(calc(100% - 2rem), var(--sc-wide));
	min-height: var(--sc-header-height);
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.custom-logo {
	max-height: 56px;
	width: auto;
}

.site-title {
	color: var(--sc-ink);
	font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
	font-size: 1.6rem;
	letter-spacing: -0.025em;
	text-decoration: none;
}

.site-title span {
	color: var(--sc-forest);
	font-weight: 500;
}

.site-menu,
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-menu {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.5vw, 2rem);
}

.site-menu a {
	color: var(--sc-ink);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
}

.site-menu a:hover,
.site-menu .current-menu-item > a {
	color: var(--sc-forest);
}

.menu-toggle {
	display: none;
	padding: 0.65rem 0.9rem;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
	display: block;
	width: 18px;
	height: 1px;
	background: currentColor;
	content: "";
	transition: transform 160ms ease;
}

.menu-toggle__icon {
	margin-left: 0.5rem;
	position: relative;
}

.menu-toggle__icon::before {
	position: absolute;
	transform: translateY(-5px);
}

.menu-toggle__icon::after {
	position: absolute;
	transform: translateY(5px);
}

.site-main {
	min-height: 65vh;
	overflow: clip;
}

.entry-content > * {
	max-width: var(--sc-content);
	margin-left: auto;
	margin-right: auto;
}

.entry-content > .alignwide {
	max-width: var(--sc-wide);
}

.entry-content > .alignfull {
	max-width: none;
	width: 100%;
}

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

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

.page-entry,
.single-entry {
	padding: clamp(3.5rem, 8vw, 7rem) 1rem;
}

.front-page-entry .entry-content > .wp-block-cover:first-child,
.front-page-entry .entry-content > .wp-block-group:first-child {
	margin-top: 0;
}

.entry-header,
.entry-featured,
.entry-footer,
.post-navigation,
.comments-area {
	width: min(calc(100% - 2rem), var(--sc-content));
	margin-inline: auto;
}

.entry-header {
	margin-bottom: clamp(2rem, 5vw, 4rem);
	text-align: center;
}

.entry-featured {
	margin-bottom: 3rem;
}

.entry-featured img,
.page-hero-image img {
	border-radius: var(--sc-radius);
	box-shadow: var(--sc-shadow);
}

.entry-content {
	font-size: clamp(1rem, 1.25vw, 1.125rem);
}

.entry-content blockquote {
	border-left: 2px solid var(--sc-sand);
	color: var(--sc-forest);
	font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
	font-size: clamp(1.4rem, 3vw, 2rem);
	line-height: 1.35;
	margin-block: 2.5rem;
	padding-left: 1.5rem;
}

.entry-content hr {
	border: 0;
	border-top: 1px solid var(--sc-line);
	margin-block: 3.5rem;
}

.page-shell {
	width: min(calc(100% - 2rem), var(--sc-wide));
	margin-inline: auto;
	padding-block: clamp(3.5rem, 8vw, 7rem);
}

.archive-header {
	max-width: 760px;
	margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.post-card {
	background: var(--sc-white);
	border: 1px solid var(--sc-line);
	border-radius: var(--sc-radius);
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
	box-shadow: var(--sc-shadow);
	transform: translateY(-4px);
}

.post-card__link {
	color: inherit;
	display: block;
	height: 100%;
	text-decoration: none;
}

.post-card__image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.post-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}

.post-card:hover .post-card__image img {
	transform: scale(1.025);
}

.post-card__body {
	padding: 1.5rem;
}

.post-card__meta {
	color: var(--sc-sage);
	font-size: 0.78rem;
	margin-bottom: 0.6rem;
}

.post-card__title {
	font-size: 1.8rem;
	margin-bottom: 0.75rem;
}

.post-card__excerpt {
	color: #505953;
	font-size: 0.95rem;
}

.post-card__more {
	color: var(--sc-forest);
	font-size: 0.86rem;
	font-weight: 600;
}

.navigation.pagination {
	margin-top: 3rem;
}

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

.page-numbers {
	border: 1px solid var(--sc-line);
	border-radius: 999px;
	min-width: 2.5rem;
	padding: 0.35rem 0.8rem;
	text-align: center;
	text-decoration: none;
}

.page-numbers.current {
	background: var(--sc-forest);
	border-color: var(--sc-forest);
	color: var(--sc-white);
}

.post-navigation {
	border-top: 1px solid var(--sc-line);
	margin-top: 4rem;
	padding-top: 2rem;
}

.post-navigation .nav-links {
	justify-content: space-between;
}

.post-navigation a {
	text-decoration: none;
}

.comments-area {
	border-top: 1px solid var(--sc-line);
	margin-top: 3rem;
	padding-top: 3rem;
}

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

.comment-body {
	background: var(--sc-linen);
	border-radius: 1rem;
	margin-block: 1rem;
	padding: 1.25rem;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
select,
textarea {
	width: 100%;
	border: 1px solid var(--sc-line);
	border-radius: 0.75rem;
	background: var(--sc-white);
	color: var(--sc-ink);
	padding: 0.8rem 0.9rem;
}

.empty-state {
	width: min(calc(100% - 2rem), 680px);
	margin-inline: auto;
	padding-block: clamp(5rem, 12vw, 10rem);
	text-align: center;
}

.empty-state h1,
.empty-state h2 {
	margin-bottom: 1rem;
}

.site-footer {
	background: var(--sc-ink);
	color: rgba(255, 255, 255, 0.72);
	padding-block: 4rem 2rem;
}

.site-footer__inner {
	width: min(calc(100% - 2rem), var(--sc-wide));
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2rem;
	align-items: start;
}

.site-title--footer {
	color: var(--sc-white);
}

.site-footer__about p {
	margin-top: 0.5rem;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.75rem 1.5rem;
}

.footer-menu a {
	color: var(--sc-white);
	font-size: 0.88rem;
	text-decoration: none;
}

.site-footer__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	grid-column: 1 / -1;
	margin: 1rem 0 0;
	padding-top: 1.5rem;
	font-size: 0.8rem;
}

/* WooCommerce: quiet defaults that inherit the visual system. */
.woocommerce .woocommerce-breadcrumb {
	color: var(--sc-sage);
	font-size: 0.82rem;
	margin-bottom: 2rem;
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

.woocommerce ul.products li.product {
	width: auto;
	margin: 0;
	background: var(--sc-white);
	border: 1px solid var(--sc-line);
	border-radius: var(--sc-radius);
	padding: 1rem;
}

.woocommerce ul.products li.product a img {
	border-radius: 0.85rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.5rem;
}

.woocommerce div.product {
	display: flow-root;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--sc-forest);
}

.woocommerce-message,
.woocommerce-info {
	border-top-color: var(--sc-forest);
	background: var(--sc-linen);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--sc-forest);
}

.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce-checkout-review-order,
.woocommerce-MyAccount-content {
	border: 1px solid var(--sc-line);
	border-radius: var(--sc-radius);
	background: var(--sc-white);
	padding: clamp(1rem, 3vw, 2rem);
}

@media (max-width: 900px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.primary-navigation {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background: var(--sc-paper);
		border-bottom: 1px solid var(--sc-line);
		box-shadow: 0 18px 30px rgba(35, 41, 37, 0.08);
		padding: 1rem;
	}

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

	.menu-is-open .menu-toggle__icon {
		background: transparent;
	}

	.menu-is-open .menu-toggle__icon::before {
		transform: rotate(45deg);
	}

	.menu-is-open .menu-toggle__icon::after {
		transform: rotate(-45deg);
	}

	.site-menu {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.site-menu a {
		display: block;
		padding: 0.75rem;
	}

	.post-grid,
	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	:root {
		--sc-header-height: 72px;
	}

	body.admin-bar .site-header {
		top: 0;
	}

	.site-title {
		font-size: 1.35rem;
	}

	.menu-toggle__label {
		font-size: 0.82rem;
	}

	.post-grid,
	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.footer-menu {
		justify-content: flex-start;
	}

	.site-footer__legal {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
