@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 600 700;
	font-display: swap;
	src: url("../fonts/fraunces-latin-variable.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/inter-latin-variable.woff2") format("woff2");
}

:root {
	--bg: #f5f1e8;
	--surface: #fff;
	--ink: #1e2a24;
	--green: #1f4d3a;
	--green-dark: #153526;
	--body: #3c4a42;
	--muted: #5b6b62;
	--accent: #b5652b;
	--line: #e2d9c6;
	--sage: #c9d3c4;
	--sage-light: #d8e3da;
	--sand: #e6dcc8;
	--soft-clay: #e8d3be;
	--disabled: #879188;
	--font-display: "Fraunces", Georgia, serif;
	--font-body: "Inter", Arial, sans-serif;
	--content-width: 1280px;
	--reading-width: 66ch;
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--section-space: clamp(3.5rem, 7vw, 4.5rem);
}

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

html {
	background: var(--bg);
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
}

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

a {
	color: var(--green);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

.site-width {
	width: min(calc(100% - 3rem), var(--content-width));
	margin-inline: auto;
}

.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;
}

.skip-link {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100;
	padding: 0.6rem 0.9rem;
	transform: translateY(-160%);
	background: var(--green-dark);
	color: var(--surface);
}

.skip-link:focus {
	transform: translateY(0);
}

.site-header__inner {
	width: min(calc(100% - 3rem), var(--content-width));
	min-height: 5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin-inline: auto;
	padding-block: 1.25rem;
}

.site-brand {
	flex: 0 0 auto;
	color: var(--green);
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.site-brand:hover {
	color: var(--green);
}

.site-brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.site-brand .custom-logo {
	width: auto;
	max-height: 4rem;
}

.site-brand__domain {
	color: var(--accent);
}

.primary-nav__list,
.footer-nav__list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav__list {
	justify-content: flex-end;
	font-size: 0.9375rem;
}

.primary-nav a,
.footer-nav a {
	color: var(--body);
	text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.footer-nav a:hover {
	color: var(--green);
}

.hero {
	padding-block: 2rem 3rem;
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.92fr);
	align-items: center;
	gap: clamp(2.5rem, 5vw, 4rem);
}

.hero__copy {
	max-width: 41rem;
}

.eyebrow {
	margin: 0 0 0.65rem;
	color: var(--muted);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.hero__title,
.section-title,
.hero-feature__card h2,
.archive-heading h1,
.entry__header h1,
.guide-card__title,
.contact-panel h2,
.empty-state h2 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.025em;
}

.hero__title {
	max-width: 13ch;
	font-size: clamp(2.75rem, 5.1vw, 4rem);
	line-height: 1.08;
}

.hero__description {
	max-width: 40rem;
	margin: 1.25rem 0 1.5rem;
	color: var(--body);
	font-size: 1.125rem;
	line-height: 1.65;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.button {
	min-height: 3rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.25rem;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.button--primary {
	background: var(--green);
	color: var(--surface);
}

.button--primary:hover {
	background: var(--green-dark);
	color: var(--surface);
}

.button--secondary {
	border-color: var(--green);
	background: transparent;
	color: var(--green);
}

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

.hero-feature {
	position: relative;
	min-height: 23rem;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	padding: 1.5rem;
	border-radius: var(--radius-lg);
	background: var(--sand);
}

.hero-feature__art {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.hero-feature__media {
	position: absolute;
	inset: 0;
	display: block;
	background: var(--sand);
}

.hero-feature__image {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.hero-feature__window {
	position: absolute;
	top: 12%;
	right: 14%;
	width: 40%;
	height: 64%;
	border: 0.55rem solid var(--green);
	background: linear-gradient(145deg, #f5f1e8 0 43%, #c9d3c4 44% 100%);
	box-shadow: inset 0 0 0 0.35rem var(--surface);
}

.hero-feature__window::before,
.hero-feature__window::after {
	position: absolute;
	content: "";
	background: var(--green);
}

.hero-feature__window::before {
	top: 0;
	bottom: 0;
	left: 50%;
	width: 0.2rem;
}

.hero-feature__window::after {
	top: 50%;
	right: 0;
	left: 0;
	height: 0.2rem;
}

.hero-feature__plant {
	position: absolute;
	right: 8%;
	bottom: 0;
	width: 5.5rem;
	height: 9rem;
	border-bottom: 0.45rem solid var(--green);
}

.hero-feature__plant::before {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	width: 4rem;
	height: 5rem;
	border-radius: 100% 0 100% 0;
	background: var(--green);
	content: "";
	transform: rotate(-24deg);
}

.hero-feature__card {
	position: relative;
	z-index: 1;
	width: min(100%, 22rem);
	padding: 1.2rem 1.25rem;
	border-radius: var(--radius-md);
	background: var(--surface);
	box-shadow: 0 1px 2px rgb(30 42 36 / 6%);
}

.hero-feature__card .eyebrow {
	margin-bottom: 0.35rem;
	color: var(--accent);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
}

.hero-feature__card h2 {
	font-size: 1.5rem;
	line-height: 1.25;
}

.hero-feature__card h2 a {
	color: var(--ink);
	text-decoration: none;
}

.hero-feature__card p:last-child {
	margin: 0.55rem 0 0;
	color: var(--muted);
	font-size: 0.875rem;
}

.section {
	padding-block: var(--section-space);
}

.section--guides {
	background: rgb(255 255 255 / 45%);
}

.section-heading {
	margin-bottom: 1.5rem;
}

.section-heading--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
}

.section-title {
	font-size: clamp(1.85rem, 3vw, 2.25rem);
	line-height: 1.2;
}

.text-link {
	flex: 0 0 auto;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.topic-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	gap: 1rem;
}

.topic-card {
	position: relative;
	min-height: 11rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 1.35rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
	transition: border-color 140ms ease, transform 140ms ease;
}

.topic-card:hover {
	transform: translateY(-2px);
	border-color: var(--green);
	color: var(--ink);
}

.topic-card__mark {
	width: 2rem;
	height: 2rem;
	margin-bottom: 0.25rem;
	border-radius: 50%;
	background: var(--sage);
}

.topic-card--2 .topic-card__mark { background: var(--soft-clay); }
.topic-card--3 .topic-card__mark { background: var(--sand); }
.topic-card--4 .topic-card__mark { background: var(--sage-light); }

.topic-card__title {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.25;
}

.topic-card__copy {
	color: var(--muted);
	font-size: 0.875rem;
	line-height: 1.5;
}

.topic-card__arrow {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	color: var(--accent);
	font-size: 1.1rem;
}

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

.guide-grid--archive {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
	gap: 1.5rem;
}

.guide-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface);
}

.guide-card__visual {
	position: relative;
	height: 10.625rem;
	overflow: hidden;
	background: var(--sand);
}

.guide-card__placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--soft-clay), var(--sand));
}

.guide-card:nth-child(3n + 2) .guide-card__placeholder { background: linear-gradient(135deg, var(--sage), var(--sage-light)); }
.guide-card:nth-child(3n) .guide-card__placeholder { background: linear-gradient(135deg, var(--sand), #e8d3be); }

.guide-card__image {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.guide-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 1.2rem;
}

.guide-card__category {
	margin: 0;
	color: var(--accent);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.guide-card__title {
	font-size: 1.3rem;
	line-height: 1.3;
}

.guide-card__title a {
	color: var(--ink);
	text-decoration: none;
}

.guide-card__title a:hover {
	color: var(--green);
	text-decoration: underline;
}

.guide-card__meta {
	margin: 0;
	color: var(--muted);
	font-size: 0.8rem;
}

.guide-card__excerpt {
	margin: 0.1rem 0 0;
	color: var(--body);
	font-size: 0.9rem;
}

.empty-state {
	padding: 1.5rem 0;
	border-top: 1px solid var(--line);
	color: var(--muted);
}

.empty-state p {
	margin: 0.5rem 0 0;
}

.contact-panel {
	width: min(calc(100% - 3rem), var(--content-width));
	margin-block: var(--section-space);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-radius: var(--radius-lg);
	background: var(--green);
	color: var(--bg);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.contact-panel .eyebrow,
.contact-panel p {
	color: #d8e3da;
}

.contact-panel h2 {
	font-size: clamp(1.75rem, 3vw, 2rem);
	line-height: 1.2;
}

.contact-panel p:last-child {
	max-width: 34rem;
	margin: 0.5rem 0 0;
}

.button--light {
	background: var(--bg);
	color: var(--green-dark);
}

.button--light:hover {
	background: var(--surface);
	color: var(--green-dark);
}

.archive-page {
	padding-block: 3.25rem var(--section-space);
}

.archive-heading {
	max-width: 48rem;
	margin-bottom: 1.75rem;
}

.archive-heading h1,
.entry__header h1 {
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	line-height: 1.12;
}

.archive-heading > p:last-child,
.archive-heading__intro {
	max-width: 40rem;
	margin: 0.65rem 0 0;
	color: var(--body);
	font-size: 1.0625rem;
}

.archive-tools {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.topic-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.topic-filter {
	min-height: 2.35rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font-size: 0.875rem;
	text-decoration: none;
}

.topic-filter:hover,
.topic-filter.is-current {
	border-color: var(--green);
	background: var(--green);
	color: var(--surface);
}

.guide-search {
	display: flex;
	gap: 0.5rem;
}

.guide-search input,
.search-form input[type="search"] {
	min-height: 2.75rem;
	width: min(18rem, 100%);
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
}

.button--search {
	min-height: 2.75rem;
	padding-inline: 1rem;
	background: var(--green);
	color: var(--surface);
}

.button--search:hover {
	background: var(--green-dark);
	color: var(--surface);
}

.pagination,
.pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2rem;
	color: var(--muted);
}

.pagination a,
.pagination .page-numbers,
.pagination__button {
	min-height: 2.6rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--ink);
	font-size: 0.9rem;
	text-decoration: none;
}

.pagination .current,
.pagination__button--next {
	border-color: var(--green);
	background: var(--green);
	color: var(--surface);
}

.pagination .page-numbers.dots {
	border: 0;
	background: transparent;
}

.pagination .is-disabled {
	color: var(--disabled);
}

.pagination__status {
	padding-inline: 0.75rem;
	font-size: 0.9rem;
}

.latest-guides-pagination {
	max-width: 100%;
	padding-inline: 0.25rem;
}

.latest-guides-pagination a,
.latest-guides-pagination .page-numbers {
	min-width: 2.75rem;
}

.empty-state--archive {
	min-height: 12rem;
	padding-block: 2rem;
}

.page-content {
	min-height: 55vh;
	padding-block: 3.5rem var(--section-space);
}

.entry {
	max-width: var(--reading-width);
	margin-inline: auto;
}

.entry__header {
	margin-bottom: 1.5rem;
}

.entry__featured {
	margin: 0 0 1.75rem;
}

.entry__featured-image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--radius-md);
}

.entry__meta {
	margin: 0 0 0.75rem;
	color: var(--muted);
	font-size: 0.875rem;
}

.entry__content {
	color: var(--body);
	font-size: 1.0625rem;
}

.author-box {
	display: grid;
	grid-template-columns: 7rem minmax(0, 1fr);
	align-items: start;
	gap: 1.25rem;
	margin-top: 3rem;
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.author-box--archive {
	max-width: 52rem;
	margin: 0 0 2rem;
}

.author-box--founder {
	max-width: 52rem;
	margin-top: 2.5rem;
}

.author-box__portrait .avatar {
	width: 7rem;
	height: 7rem;
	display: block;
	border-radius: 50%;
	object-fit: cover;
}

.author-box__copy .eyebrow {
	margin-bottom: 0.35rem;
	color: var(--accent);
}

.author-box__name {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.5rem;
	line-height: 1.2;
}

.author-box__name a {
	color: var(--ink);
	text-decoration: none;
}

.author-box__bio {
	margin: 0.55rem 0 0.75rem;
	color: var(--body);
	font-size: 0.95rem;
}

.author-box__more {
	font-size: 0.9rem;
	font-weight: 600;
}

.entry__content h2,
.entry__content h3 {
	margin: 2rem 0 0.7rem;
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.25;
}

.entry__content h2 { font-size: 1.75rem; }
.entry__content h3 { font-size: 1.35rem; }

.entry__content p,
.entry__content ul,
.entry__content ol {
	max-width: var(--reading-width);
}

.entry__content li + li {
	margin-top: 0.45rem;
}

.entry__content a {
	color: var(--green);
}

.site-footer {
	padding-block: 1.5rem 1.75rem;
	color: var(--muted);
}

.site-footer__inner {
	width: min(calc(100% - 3rem), var(--content-width));
	margin-inline: auto;
}

.footer-nav__list {
	gap: 0.75rem 1.25rem;
	font-size: 0.875rem;
}

.site-footer__end {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
	font-size: 0.8125rem;
}

.site-footer__note,
.site-footer__credit {
	margin: 0;
}

.site-footer__credit a {
	font-weight: 600;
}

.site-footer a {
	color: var(--muted);
}

.site-footer a:hover {
	color: var(--green);
}

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.search-form input[type="submit"] {
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--green);
	color: var(--surface);
	font: inherit;
	font-weight: 600;
}

@media (max-width: 900px) {
	.site-header__inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 1rem;
	}

	.primary-nav__list {
		justify-content: flex-start;
	}

	.hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.85fr);
		gap: 2rem;
	}

	.topic-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.guide-grid--featured {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.site-width,
	.site-header__inner,
	.site-footer__inner,
	.contact-panel {
		width: min(calc(100% - 2rem), var(--content-width));
	}

	.site-header__inner {
		min-height: 0;
		padding-block: 1.1rem;
	}

	.primary-nav__list {
		gap: 0.4rem 1rem;
		font-size: 0.875rem;
	}

	.hero {
		padding-block: 1rem 1.5rem;
	}

	.hero__inner {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.hero__title {
		max-width: 12ch;
		font-size: clamp(2.65rem, 12vw, 3.6rem);
	}

	.hero-feature {
		min-height: 19rem;
	}

	.section-heading--row,
	.archive-tools {
		align-items: flex-start;
		flex-direction: column;
	}

	.topic-grid,
	.guide-grid,
	.guide-grid--featured {
		grid-template-columns: 1fr;
	}

	.topic-card {
		min-height: 9.5rem;
	}

	.guide-card__visual {
		height: 12rem;
	}

	.guide-search {
		width: 100%;
	}

	.guide-search input {
		flex: 1;
		width: auto;
	}

	.contact-panel {
		align-items: flex-start;
		flex-direction: column;
		margin-block: 3rem;
	}

	.archive-page,
	.page-content {
		padding-block: 2.5rem 3.5rem;
	}

	.latest-guides-pagination {
		gap: 0.4rem;
		margin-top: 1.5rem;
	}

	.latest-guides-pagination a,
	.latest-guides-pagination .page-numbers {
		min-height: 2.75rem;
		padding-inline: 0.7rem;
	}

	.author-box {
		grid-template-columns: 4.5rem minmax(0, 1fr);
		gap: 0.9rem;
		padding: 1rem;
	}

	.author-box__portrait .avatar {
		width: 4.5rem;
		height: 4.5rem;
	}

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

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		 scroll-behavior: auto !important;
		 transition-duration: 0.01ms !important;
	}
}
