/*
 * Larkmeadow front-end styles.
 * Mobile-first: base rules target small screens, min-width media queries
 * layer on enhancements for tablet (600px) and desktop (1024px).
 * No build step, no external font requests, no unused framework CSS.
 */

/* -------------------------------------------------------------------- */
/* Reset & base                                                          */
/* -------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--wp--preset--color--paper, #faf6ec);
	color: var(--wp--preset--color--ink, #2b2620);
	font-family: var(--wp--preset--font-family--body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

img[loading="lazy"] {
	background: var(--wp--preset--color--border, #e4dbc9);
}

a {
	color: var(--wp--preset--color--primary, #4b5a34);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--wp--preset--color--primary-dark, #3a4628);
}

h1,
h2,
h3,
h4 {
	font-family: var(--wp--preset--font-family--heading, Georgia, "Times New Roman", serif);
	line-height: 1.25;
	font-weight: 700;
	margin: 1.4em 0 0.6em;
}

h1:first-child,
h2:first-child,
h3:first-child {
	margin-top: 0;
}

p {
	margin: 0 0 1.2em;
}

ul,
ol {
	padding-left: 1.25em;
}

/* Table responsiveness: any table in article content gets a horizontal
   scroll container instead of overflowing or forcing tiny text. */
.table-scroll {
	overflow-x: auto;
	margin: 1.5em 0;
	-webkit-overflow-scrolling: touch;
}

.table-scroll table {
	width: 100%;
	border-collapse: collapse;
}

.table-scroll th,
.table-scroll td {
	padding: 0.6em 0.8em;
	border: 1px solid var(--wp--preset--color--border, #e4dbc9);
	text-align: left;
}

/* -------------------------------------------------------------------- */
/* Layout                                                                */
/* -------------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: 1100px;
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.container--narrow {
	max-width: 760px;
}

@media (min-width: 782px) {
	.container {
		padding-inline: 2rem;
	}
}

/* -------------------------------------------------------------------- */
/* Buttons & forms                                                       */
/* -------------------------------------------------------------------- */

.button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	min-height: 44px;
	padding: 0.7em 1.4em;
	border-radius: 6px;
	border: none;
	background: var(--wp--preset--color--primary, #4b5a34);
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
}

.button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover {
	background: var(--wp--preset--color--primary-dark, #3a4628);
	color: #fff;
}

.button--primary {
	background: var(--wp--preset--color--accent, #6b4f3b);
}

.button--primary:hover {
	background: #a34e2e;
}

label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea {
	width: 100%;
	min-height: 44px;
	padding: 0.65em 0.85em;
	border: 1px solid var(--wp--preset--color--border, #e4dbc9);
	border-radius: 6px;
	background: var(--wp--preset--color--surface, #fff);
	color: var(--wp--preset--color--ink, #2b2620);
	font-size: 1rem;
	font-family: inherit;
}

textarea {
	min-height: 140px;
}

.form-row {
	margin-bottom: 1.1em;
}

.contact-form {
	max-width: 560px;
	margin-top: 2rem;
}

.contact-form__honeypot {
	position: absolute;
	left: -9999px;
}

.form-notice {
	padding: 1em 1.2em;
	border-radius: 8px;
	margin-bottom: 1.5em;
}

.form-notice--success {
	background: #e6f2ec;
	color: #3a4628;
}

.form-notice--error {
	background: #fbeae5;
	color: #7a2f16;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
}

.search-form__input {
	flex: 1;
}

/* -------------------------------------------------------------------- */
/* Site header                                                           */
/* -------------------------------------------------------------------- */

.site-header {
	border-bottom: 1px solid var(--wp--preset--color--border, #e4dbc9);
	background: var(--wp--preset--color--surface, #fffdf8);
	position: sticky;
	top: 0;
	z-index: 30;
	transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 2px 14px rgba(43, 38, 32, 0.06);
}

.site-header__inner {
	max-width: 1200px;
	margin-inline: auto;
	padding: 1.1rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.6rem 1rem;
	transition: padding 0.2s ease;
}

.site-header.is-scrolled .site-header__inner {
	padding-block: 0.6rem;
}

/* Branding: custom logo once uploaded, or the placeholder mark + wordmark. */
.site-branding {
	display: flex;
	align-items: center;
	order: 1;
}

.site-logo-placeholder {
	display: inline-flex;
	align-items: center;
	gap: 0.65em;
	text-decoration: none;
	color: var(--wp--preset--color--primary, #4b5a34);
}

.site-logo-placeholder__mark {
	width: 40px;
	height: auto;
	flex-shrink: 0;
	transition: width 0.2s ease;
}

.site-header.is-scrolled .site-logo-placeholder__mark {
	width: 30px;
}

.site-logo-placeholder__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.site-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading, Georgia, serif);
	font-weight: 700;
	font-size: 1.5rem;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--ink, #2b2620);
}

.site-description {
	margin: 0.1rem 0 0;
	font-family: var(--wp--preset--font-family--body, sans-serif);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted, #726a5c);
}

.custom-logo-link img {
	max-height: 56px;
	width: auto;
	transition: max-height 0.2s ease;
}

.site-header.is-scrolled .custom-logo-link img {
	max-height: 42px;
}

/* Header tools: search toggle + mobile menu toggle. */
.site-header__tools {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	order: 2;
}

.search-toggle,
.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--wp--preset--color--border, #e4dbc9);
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--ink, #2b2620);
	cursor: pointer;
}

.search-toggle__icon {
	width: 15px;
	height: 15px;
	border: 2px solid currentColor;
	border-radius: 50%;
	position: relative;
}

.search-toggle__icon::after {
	content: "";
	position: absolute;
	width: 2px;
	height: 8px;
	background: currentColor;
	bottom: -7px;
	right: -3px;
	transform: rotate(-45deg);
}

.menu-toggle__icon {
	width: 18px;
	height: 2px;
	background: currentColor;
	position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: currentColor;
}

.menu-toggle__icon::before {
	top: -6px;
}

.menu-toggle__icon::after {
	top: 6px;
}

/* Collapsible search panel. */
.header-search {
	max-height: 0;
	overflow: hidden;
	max-width: 1200px;
	margin-inline: auto;
	transition: max-height 0.2s ease;
}

.header-search.is-open {
	max-height: 100px;
}

.header-search__inner {
	padding: 0 1.25rem 1.1rem;
}

/* Primary navigation: uppercase, letter-spaced category-style links. */
.main-navigation {
	display: none;
	width: 100%;
	order: 3;
}

.main-navigation.is-open {
	display: block;
}

.main-navigation ul {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	border-top: 1px solid var(--wp--preset--color--border, #e4dbc9);
	padding-top: 0.75rem;
}

.main-navigation a {
	display: block;
	padding: 0.6em 0.2em;
	color: var(--wp--preset--color--ink, #2b2620);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	min-height: 44px;
}

.main-navigation ul ul {
	padding-left: 1rem;
	border-top: none;
	padding-top: 0;
}

.main-navigation ul ul a {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 500;
	font-size: 0.95rem;
}

@media (min-width: 900px) {
	.search-toggle,
	.menu-toggle {
		display: none;
	}

	.site-header__tools {
		order: 3;
	}

	.main-navigation {
		display: flex;
		width: auto;
		order: 2;
		flex: 1;
		justify-content: center;
	}

	.main-navigation ul {
		flex-direction: row;
		gap: 2.1rem;
		border-top: none;
		padding-top: 0;
		margin: 0;
	}

	.main-navigation li {
		position: relative;
	}

	.main-navigation a {
		padding: 0.3em 0;
	}

	.main-navigation ul ul {
		display: none;
		position: absolute;
		top: 100%;
		left: 50%;
		transform: translateX(-50%);
		background: var(--wp--preset--color--surface, #fffdf8);
		border: 1px solid var(--wp--preset--color--border, #e4dbc9);
		border-radius: 6px;
		padding: 0.5rem;
		min-width: 200px;
		flex-direction: column;
		gap: 0;
		box-shadow: 0 8px 20px rgba(43, 38, 32, 0.1);
	}

	.main-navigation li:hover > ul,
	.main-navigation li:focus-within > ul {
		display: flex;
	}
}

@media (min-width: 900px) {
	.site-header__inner {
		flex-wrap: nowrap;
	}
}

/* -------------------------------------------------------------------- */
/* Breadcrumbs                                                          */
/* -------------------------------------------------------------------- */

.breadcrumbs {
	margin: 1.25rem 0;
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted, #726a5c);
}

.breadcrumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em;
	margin: 0;
	padding: 0;
}

.breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 0.35em;
	color: var(--wp--preset--color--border, #e4dbc9);
}

.breadcrumbs a {
	color: var(--wp--preset--color--muted, #726a5c);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--wp--preset--color--primary, #4b5a34);
}

/* -------------------------------------------------------------------- */
/* Post grid & cards                                                     */
/* -------------------------------------------------------------------- */

.post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
	margin: 1.5rem 0 2.5rem;
}

@media (min-width: 600px) {
	.post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.post-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.post-card {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--surface, #fff);
	border: 1px solid var(--wp--preset--color--border, #e4dbc9);
	border-radius: 10px;
	overflow: hidden;
}

.post-card__image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--wp--preset--color--border, #e4dbc9);
}

.post-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__body {
	padding: 1.1rem 1.25rem 1.4rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.post-card__category {
	margin: 0 0 0.4em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.75rem;
	font-weight: 700;
}

.post-card__category a {
	color: var(--wp--preset--color--accent, #6b4f3b);
	text-decoration: none;
}

.post-card__title {
	margin: 0 0 0.5em;
	font-size: 1.2rem;
	line-height: 1.3;
}

.post-card__title a {
	color: var(--wp--preset--color--ink, #2b2620);
	text-decoration: none;
}

.post-card__excerpt {
	color: var(--wp--preset--color--muted, #726a5c);
	font-size: 0.95rem;
	margin-bottom: 0.9em;
}

.post-card__meta {
	margin: auto 0 0;
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted, #726a5c);
}

/* -------------------------------------------------------------------- */
/* Archive / blog index headers                                         */
/* -------------------------------------------------------------------- */

.archive-header {
	padding-top: 1.5rem;
}

.archive-header__title {
	margin-bottom: 0.3em;
}

.archive-header__description {
	color: var(--wp--preset--color--muted, #726a5c);
	max-width: 60ch;
}

/* -------------------------------------------------------------------- */
/* Homepage hero                                                         */
/* -------------------------------------------------------------------- */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 60vh;
	padding: 3rem 1.25rem;
	background:
		radial-gradient(ellipse at 80% 20%, rgba(143, 160, 124, 0.35), transparent 55%),
		linear-gradient(160deg, var(--wp--preset--color--sand, #e4d5b7) 0%, var(--wp--preset--color--paper, #faf6ec) 65%);
	background-size: cover;
	background-position: center;
	color: var(--wp--preset--color--ink, #2b2620);
}

.hero--has-image {
	color: #fff;
	background-size: cover;
	background-position: center;
}

.hero__inner {
	max-width: 46rem;
}

.hero__title {
	font-size: 2rem;
	line-height: 1.2;
	margin: 0 0 0.6rem;
}

.hero--has-image .hero__title {
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero__subtitle {
	font-size: 1.05rem;
	max-width: 40ch;
	margin: 0 auto 1.5rem;
	opacity: 0.9;
}

.hero__scroll {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 0.2em;
}

@media (min-width: 782px) {
	.hero {
		min-height: 70vh;
		padding: 4rem 2rem;
	}

	.hero__title {
		font-size: 2.75rem;
	}
}

/* -------------------------------------------------------------------- */
/* Featured story + compact grid                                        */
/* -------------------------------------------------------------------- */

.featured-layout {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.featured-article {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--surface, #fffdf8);
	border: 1px solid var(--wp--preset--color--border, #e4dbc9);
	border-radius: 12px;
	overflow: hidden;
}

.featured-article__image {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--wp--preset--color--border, #e4dbc9);
}

.featured-article__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.featured-article__body {
	padding: 1.5rem 1.5rem 1.75rem;
}

.featured-article__category a {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent, #6b4f3b);
	text-decoration: none;
}

.featured-article__title {
	margin: 0.4em 0 0.5em;
	font-size: 1.5rem;
	line-height: 1.25;
}

.featured-article__title a {
	color: var(--wp--preset--color--ink, #2b2620);
	text-decoration: none;
}

.featured-article__excerpt {
	color: var(--wp--preset--color--muted, #726a5c);
	margin-bottom: 0.75em;
}

.featured-article__meta {
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted, #726a5c);
	margin: 0;
}

.post-grid--compact {
	margin: 0;
	gap: 1.5rem;
}

@media (min-width: 900px) {
	.featured-layout {
		flex-direction: row;
		align-items: flex-start;
	}

	.featured-article {
		flex: 1.1;
	}

	.featured-article__image {
		aspect-ratio: 4 / 3;
	}

	.post-grid--compact {
		flex: 1;
		display: grid;
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------- */
/* Home page sections                                                    */
/* -------------------------------------------------------------------- */

.home-intro {
	padding: 2.5rem 0 1rem;
	max-width: 65ch;
}

.home-intro h1 {
	font-size: 2rem;
}

.home-section {
	padding: 2.5rem 0;
}

.home-section--muted {
	background: var(--wp--preset--color--surface, #fff);
	border-top: 1px solid var(--wp--preset--color--border, #e4dbc9);
	border-bottom: 1px solid var(--wp--preset--color--border, #e4dbc9);
}

.home-section__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin-bottom: 0.5rem;
}

.home-section__header h2 {
	margin: 0;
}

.home-section__view-all {
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
}

.category-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1rem;
}

.category-pill {
	display: inline-block;
	padding: 0.5em 1em;
	border-radius: 999px;
	background: var(--wp--preset--color--paper, #faf6ec);
	border: 1px solid var(--wp--preset--color--border, #e4dbc9);
	color: var(--wp--preset--color--ink, #2b2620);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
}

.category-pill:hover {
	border-color: var(--wp--preset--color--primary, #4b5a34);
	color: var(--wp--preset--color--primary, #4b5a34);
}

.home-closing {
	background: var(--wp--preset--color--sand, #e4d5b7);
	padding: 3.5rem 0;
	text-align: center;
}

.home-closing__inner {
	max-width: 55ch;
	margin-inline: auto;
}

.home-closing h2 {
	margin-top: 0;
}

.home-closing p {
	color: var(--wp--preset--color--ink, #2b2620);
	opacity: 0.85;
}

.home-closing__link {
	display: inline-block;
	margin-top: 0.4rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary, #4b5a34);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* -------------------------------------------------------------------- */
/* Single article                                                        */
/* -------------------------------------------------------------------- */

.single-article__header {
	padding-top: 1rem;
}

.single-article__category a {
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent, #6b4f3b);
	text-decoration: none;
}

.single-article__title {
	font-size: 2rem;
	margin: 0.3em 0 0.5em;
}

@media (min-width: 782px) {
	.single-article__title {
		font-size: 2.5rem;
	}
}

.single-article__meta {
	color: var(--wp--preset--color--muted, #726a5c);
	font-size: 0.9rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3em;
	margin-bottom: 1.5rem;
}

.single-article__featured-image {
	position: relative;
	margin: 0 0 2rem;
}

.single-article__featured-image img {
	border-radius: 10px;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.pin-save-button {
	position: absolute;
	top: 1rem;
	right: 1rem;
	padding: 0.55em 1.1em;
	border-radius: 999px;
	background: #e60023;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transition: opacity 0.15s ease;
}

.single-article__featured-image:hover .pin-save-button,
.single-article__featured-image:focus-within .pin-save-button {
	opacity: 1;
}

@media (hover: none) {
	.pin-save-button {
		opacity: 1;
	}
}

.single-article__featured-image figcaption {
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted, #726a5c);
	margin-top: 0.5em;
}

.table-of-contents {
	background: var(--wp--preset--color--surface, #fff);
	border: 1px solid var(--wp--preset--color--border, #e4dbc9);
	border-radius: 10px;
	padding: 1.25rem 1.5rem;
	margin: 0 0 2rem;
}

.table-of-contents__title {
	margin: 0 0 0.5em;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
}

.table-of-contents ol {
	margin: 0;
	padding-left: 1.1em;
}

.table-of-contents a {
	text-decoration: none;
}

.entry-content {
	font-size: 1.0625rem;
	line-height: 1.75;
	max-width: 100%;
}

.entry-content > * {
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.entry-content > .alignwide,
.entry-content > .alignfull {
	max-width: none;
}

.entry-content h2 {
	scroll-margin-top: 90px;
}

.entry-content h3 {
	scroll-margin-top: 90px;
}

/* A single long word (e.g. "Misunderstandings") can be wider than a phone
   screen at heading size: hyphenate where the browser can, and otherwise
   break the word rather than push the page sideways. */
.entry-content h2,
.entry-content h3 {
	overflow-wrap: break-word;
	-webkit-hyphens: auto;
	hyphens: auto;
}

.entry-content img {
	border-radius: 8px;
}

.entry-content blockquote {
	border-left: 4px solid var(--wp--preset--color--primary, #4b5a34);
	margin: 1.5em 0;
	padding: 0.2em 0 0.2em 1.2em;
	font-style: italic;
	color: var(--wp--preset--color--muted, #726a5c);
}

.faq-section,
.cta-box {
	background: var(--wp--preset--color--surface, #fff);
	border: 1px solid var(--wp--preset--color--border, #e4dbc9);
	border-radius: 10px;
	padding: 1.5rem 1.75rem;
	margin: 2rem auto;
}

.cta-box {
	background: #f3ecdb;
	border-color: var(--wp--preset--color--sand, #e4d5b7);
	text-align: center;
}

.product-box {
	background: var(--wp--preset--color--surface, #fffdf8);
	border: 1px solid var(--wp--preset--color--border, #e4dbc9);
	border-radius: 10px;
	padding: 1.5rem 1.75rem;
	margin: 2rem auto;
}

.product-box img {
	border-radius: 8px;
}

.product-box__eyebrow {
	margin: 0 0 0.2em;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent, #6b4f3b);
}

.pros-cons {
	margin: 2rem auto;
	gap: 1.5rem;
}

.pros-cons__column {
	padding: 1.25rem 1.5rem;
	border-radius: 10px;
}

.pros-cons__column--pros {
	background: rgba(143, 160, 124, 0.16);
}

.pros-cons__column--cons {
	background: rgba(107, 79, 59, 0.1);
}

.pros-cons__column h4 {
	margin-top: 0;
}

.single-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 2rem 0;
	max-width: 700px;
	margin-inline: auto;
}

.tag-pill {
	display: inline-block;
	padding: 0.35em 0.85em;
	border-radius: 999px;
	background: var(--wp--preset--color--paper, #faf6ec);
	border: 1px solid var(--wp--preset--color--border, #e4dbc9);
	font-size: 0.85rem;
	text-decoration: none;
	color: var(--wp--preset--color--ink, #2b2620);
}

/* -------------------------------------------------------------------- */
/* Author box                                                            */
/* -------------------------------------------------------------------- */

.author-box {
	display: flex;
	gap: 1.1rem;
	align-items: flex-start;
	max-width: 700px;
	margin: 2.5rem auto;
	padding: 1.5rem;
	background: var(--wp--preset--color--surface, #fff);
	border: 1px solid var(--wp--preset--color--border, #e4dbc9);
	border-radius: 10px;
}

.author-box__avatar {
	border-radius: 50%;
	flex-shrink: 0;
}

.author-box__label {
	margin: 0;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted, #726a5c);
}

.author-box__name {
	margin: 0.1em 0 0.4em;
	font-size: 1.1rem;
	font-weight: 700;
}

.author-box__name a {
	color: var(--wp--preset--color--ink, #2b2620);
	text-decoration: none;
}

.author-box__bio {
	margin: 0;
	color: var(--wp--preset--color--muted, #726a5c);
	font-size: 0.95rem;
}

/* -------------------------------------------------------------------- */
/* Related articles                                                      */
/* -------------------------------------------------------------------- */

.related-articles {
	margin: 3rem 0;
	padding-top: 2rem;
	border-top: 1px solid var(--wp--preset--color--border, #e4dbc9);
}

.related-articles__title {
	margin-bottom: 1rem;
}

.related-articles__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 600px) {
	.related-articles__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* -------------------------------------------------------------------- */
/* Comments                                                              */
/* -------------------------------------------------------------------- */

.comments-area {
	max-width: 700px;
	margin: 2.5rem auto;
}

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

.comment-list .children {
	list-style: none;
	padding-left: 1.5rem;
}

.comment-list > li {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--wp--preset--color--border, #e4dbc9);
}

/* -------------------------------------------------------------------- */
/* 404                                                                   */
/* -------------------------------------------------------------------- */

.error-404 {
	padding: 3rem 0;
	text-align: center;
}

.error-404 .search-form {
	justify-content: center;
	max-width: 420px;
	margin-inline: auto;
}

.error-404 .post-grid {
	text-align: left;
}

/* -------------------------------------------------------------------- */
/* Footer                                                                */
/* -------------------------------------------------------------------- */

.site-footer {
	background: var(--wp--preset--color--primary-dark, #3a4628);
	color: rgba(255, 255, 255, 0.85);
	margin-top: 3rem;
}

.site-footer__widgets {
	max-width: 1100px;
	margin-inline: auto;
	padding: 2.5rem 1.25rem 1.5rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
}

@media (min-width: 782px) {
	.site-footer__widgets {
		grid-template-columns: repeat(3, 1fr);
		padding-inline: 2rem;
	}
}

.footer-widget__title,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
	color: #fff;
	font-size: 1rem;
	margin-top: 0;
}

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

.site-footer__bottom {
	max-width: 1100px;
	margin-inline: auto;
	padding: 1.25rem 1.25rem 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 0.85rem;
}

@media (min-width: 782px) {
	.site-footer__bottom {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding-inline: 2rem;
	}
}

.site-footer__copyright {
	margin: 0;
	opacity: 0.8;
}

.footer-navigation ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0;
	padding: 0;
}

.footer-navigation a {
	text-decoration: none;
	opacity: 0.85;
}

.footer-navigation a:hover {
	opacity: 1;
}

/* -------------------------------------------------------------------- */
/* Accessibility: visible focus states everywhere                       */
/* -------------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent, #6b4f3b);
	outline-offset: 2px;
}
