/*
Theme Name: Green
Description: A fresh, nature-focused theme for Gardens and Gardening. Full-width photographic hero with a transparent header, an about section, service cards, soft lime green accents and rounded, modern details. Front page content is edited in Appearance > Customize > Front page.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.3
Requires PHP: 7.4
Author: Gardens and Gardening
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: green
Tags: one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--green-lime: #9bc53d;          /* buttons, highlights */
	--green-lime-hover: #8ab42f;
	--green-deep: #4c7a16;          /* small labels and links on white (readable contrast) */
	--green-deep-hover: #3b6110;
	--green-tint: #f1f7e4;

	--white: #ffffff;
	--grey-light: #f5f6f3;          /* alternate sections */
	--grey-line: #e4e7e1;
	--charcoal: #2b2f2c;            /* headings and body text */
	--charcoal-soft: #5b625c;

	--font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--radius: 18px;
	--radius-small: 10px;
	--radius-pill: 999px;
	--shadow: 0 10px 30px rgba(28, 40, 20, 0.08);
	--shadow-hover: 0 18px 40px rgba(28, 40, 20, 0.13);

	--container: 1200px;
	--gutter: clamp(20px, 4vw, 40px);
	--section-space: clamp(64px, 9vw, 120px);
	--header-height: 88px;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-height);
}

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

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}

body {
	margin: 0;
	background: var(--white);
	color: var(--charcoal-soft);
	font-family: var(--font);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding-top: var(--header-height);
}

body.has-hero {
	padding-top: 0;
}

body.menu-open {
	overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	color: var(--charcoal);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
	margin: 0 0 1.25em;
}

a {
	color: var(--green-deep);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--green-deep-hover);
}

:focus-visible {
	outline: 3px solid var(--green-lime);
	outline-offset: 3px;
	border-radius: 4px;
}

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

img {
	display: block;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: calc(780px + var(--gutter) * 2);
}

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

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 20px;
	clip: auto;
	background: var(--white);
	color: var(--charcoal);
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button,
button.button,
input[type="submit"],
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.95em 2.1em;
	border: 2px solid var(--green-lime);
	border-radius: var(--radius-pill);
	background: var(--green-lime);
	color: var(--charcoal);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
	background: var(--green-lime-hover);
	border-color: var(--green-lime-hover);
	color: var(--charcoal);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(110, 150, 30, 0.3);
}

.button--outline-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.85);
	color: var(--white);
}

.button--outline-light:hover {
	background: var(--white);
	border-color: var(--white);
	color: var(--charcoal);
	box-shadow: none;
}

.button-group {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

/* ==========================================================================
   Header and navigation
   ========================================================================== */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: var(--white);
	box-shadow: 0 1px 0 var(--grey-line);
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: var(--header-height);
	gap: 24px;
}

/* Transparent over the hero until the page is scrolled. */
.has-hero .site-header:not(.is-scrolled):not(.is-menu-open) {
	background: transparent;
	box-shadow: none;
}

.has-hero .site-header:not(.is-scrolled):not(.is-menu-open) .site-logo,
.has-hero .site-header:not(.is-scrolled):not(.is-menu-open) .main-navigation > ul > li > a,
.has-hero .site-header:not(.is-scrolled):not(.is-menu-open) .main-navigation > ul > li > .submenu-toggle,
.has-hero .site-header:not(.is-scrolled):not(.is-menu-open) .menu-toggle {
	color: var(--white);
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--charcoal);
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	text-decoration: none;
}

.site-logo:hover {
	color: inherit;
}

.site-logo__icon {
	flex: none;
	color: var(--green-lime);
}

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

.main-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation > ul {
	display: flex;
	align-items: center;
	gap: 4px;
}

.main-navigation li {
	position: relative;
}

.main-navigation > ul > li {
	display: flex;
	align-items: center;
}

.main-navigation a {
	display: block;
	color: var(--charcoal);
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
}

.main-navigation > ul > li > a {
	padding: 10px 12px;
	border-radius: var(--radius-pill);
}

.main-navigation > ul > li > a:hover,
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current-menu-ancestor > a {
	color: var(--green-deep);
}

.has-hero .site-header:not(.is-scrolled):not(.is-menu-open) .main-navigation > ul > li > a:hover {
	color: var(--white);
	background: rgba(255, 255, 255, 0.14);
}

/* Dropdown indicator */
.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 32px;
	margin-left: -8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--charcoal);
	cursor: pointer;
}

.submenu-toggle::before {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.2s ease;
}

.is-open > .submenu-toggle::before {
	transform: translateY(2px) rotate(-135deg);
}

.sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	z-index: 10;
	min-width: 240px;
	padding: 12px;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-hover);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Bridge the gap so the menu stays open while the pointer moves down. */
.sub-menu::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 0;
	right: 0;
	height: 12px;
}

/* Long lists, such as the Blog categories, use two columns. */
.sub-menu:has(> li:nth-child(9)) {
	display: grid;
	grid-template-columns: repeat(2, minmax(240px, 1fr));
	column-gap: 4px;
	min-width: 520px;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu,
.main-navigation li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.sub-menu a {
	padding: 8px 14px;
	border-radius: var(--radius-small);
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.4;
}

.sub-menu a:hover,
.sub-menu .current-menu-item > a {
	background: var(--green-tint);
	color: var(--green-deep);
}

.sub-menu .sub-menu {
	position: static;
	box-shadow: none;
	padding: 0 0 0 12px;
	opacity: 1;
	visibility: visible;
	transform: none;
	min-width: 0;
}

.sub-menu .submenu-toggle {
	display: none;
}

/* Mobile menu button */
.menu-toggle {
	display: none;
	justify-self: end;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	background: none;
	color: var(--charcoal);
	cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	display: block;
	width: 22px;
	height: 2px;
	margin-inline: auto;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.25s ease, background-color 0.25s ease;
}

.menu-toggle__bars {
	position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1100px) {
	:root {
		--header-height: 76px;
	}

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

	.menu-toggle {
		display: block;
	}

	.main-navigation {
		position: fixed;
		top: var(--header-height);
		left: 0;
		right: 0;
		bottom: 0;
		overflow-y: auto;
		padding: 12px var(--gutter) 40px;
		background: var(--white);
		border-top: 1px solid var(--grey-line);
		display: none;
	}

	.admin-bar .main-navigation {
		top: calc(var(--header-height) + 46px);
	}

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

	.main-navigation > ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.main-navigation > ul > li {
		flex-wrap: wrap;
		border-bottom: 1px solid var(--grey-line);
	}

	.main-navigation > ul > li > a {
		flex: 1;
		padding: 16px 0;
		border-radius: 0;
		font-size: 1.05rem;
	}

	.submenu-toggle {
		width: 46px;
		height: 46px;
		margin: 0;
	}

	.sub-menu,
	.sub-menu:has(> li:nth-child(9)) {
		position: static;
		display: none;
		flex-basis: 100%;
		min-width: 0;
		padding: 0 0 14px;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		grid-template-columns: 1fr;
	}

	.main-navigation li.is-open > .sub-menu {
		display: grid;
		transform: none;
	}

	.main-navigation li:hover > .sub-menu,
	.main-navigation li:focus-within > .sub-menu {
		transform: none;
	}

	.sub-menu::before {
		display: none;
	}
}

@media (max-width: 1100px) and (min-width: 783px) {
	.admin-bar .main-navigation {
		top: calc(var(--header-height) + 32px);
	}
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: min(92vh, 860px);
	padding-block: calc(var(--header-height) + 60px) 100px;
	background-color: #37502a;
	background-image:
		linear-gradient(180deg, rgba(20, 30, 15, 0.55) 0%, rgba(20, 30, 15, 0.3) 45%, rgba(20, 30, 15, 0.5) 100%),
		var(--hero-image);
	background-position: center;
	background-size: cover;
	color: var(--white);
	text-align: center;
}

.hero__inner {
	max-width: 960px;
}

.hero__eyebrow {
	margin-bottom: 18px;
	color: var(--white);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
	content: "";
	display: inline-block;
	width: 28px;
	height: 2px;
	margin: 0 14px;
	background: var(--green-lime);
	vertical-align: middle;
}

.hero__title {
	max-width: 13ch;
	margin: 0 auto 24px;
	color: var(--white);
	font-size: clamp(2.6rem, 7.2vw, 5.25rem);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.035em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.hero__text {
	max-width: 620px;
	margin: 0 auto 40px;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	font-weight: 300;
}

/* ==========================================================================
   Sections
   ========================================================================== */

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

.section--grey {
	background: var(--grey-light);
}

.section-header {
	max-width: 640px;
	margin: 0 auto clamp(40px, 6vw, 64px);
	text-align: center;
}

.section-label {
	margin-bottom: 12px;
	color: var(--green-deep);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.section-label a {
	color: inherit;
	text-decoration: none;
}

.section-title {
	margin-bottom: 0.5em;
	font-size: clamp(2rem, 4vw, 2.85rem);
}

.section-header .section-title {
	margin-bottom: 0;
}

/* About */
.about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(40px, 7vw, 96px);
}

.about__content .section-title {
	max-width: 15ch;
}

.about__text {
	margin-bottom: 32px;
	font-size: 1.025rem;
}

.about__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: calc(var(--radius) + 6px);
	box-shadow: var(--shadow);
}

@media (max-width: 860px) {
	.about__grid {
		grid-template-columns: 1fr;
	}

	.about__media {
		order: -1;
	}
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(20px, 3vw, 32px);
}

@media (max-width: 960px) {
	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 620px) {
	.card-grid {
		grid-template-columns: 1fr;
	}
}

.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card__media {
	display: block;
	overflow: hidden;
}

.card__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.card:hover .card__media img {
	transform: scale(1.04);
}

.card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 28px 30px 32px;
}

.card__meta {
	margin-bottom: 8px;
	font-size: 0.8rem;
}

.card__category {
	color: var(--green-deep);
	font-weight: 600;
}

.card__title {
	margin-bottom: 12px;
	font-size: 1.3rem;
}

.card__title a {
	color: inherit;
	text-decoration: none;
}

.card__title a:hover {
	color: var(--green-deep);
}

.card__text {
	flex: 1;
	margin-bottom: 20px;
	font-size: 0.95rem;
}

.card__text p:last-child {
	margin-bottom: 0;
}

.card__link {
	align-self: flex-start;
	color: var(--green-deep);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
}

.card__link span[aria-hidden] {
	display: inline-block;
	transition: transform 0.2s ease;
}

.card__link:hover span[aria-hidden] {
	transform: translateX(4px);
}

/* Placeholder when a post has no featured image */
.card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 2;
	background: linear-gradient(135deg, var(--green-tint) 0%, #e2efc8 100%);
	color: var(--green-lime);
}

.card__placeholder .site-logo__icon {
	width: 56px;
	height: 56px;
	transition: transform 0.5s ease;
}

.card:hover .card__placeholder .site-logo__icon {
	transform: scale(1.08) rotate(-6deg);
}

.section-footer {
	margin: clamp(40px, 5vw, 56px) 0 0;
	text-align: center;
}

/* ==========================================================================
   Posts layout with category sidebar
   ========================================================================== */

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	align-items: start;
	gap: clamp(32px, 4vw, 56px);
}

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

.card-grid--two {
	grid-template-columns: repeat(2, 1fr);
}

.sidebar {
	position: sticky;
	top: calc(var(--header-height) + 24px);
}

.admin-bar .sidebar {
	top: calc(var(--header-height) + 56px);
}

.sidebar-box {
	padding: 28px 24px;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* On white pages (single posts) give the box a tint instead of floating it. */
.section:not(.section--grey) .sidebar-box {
	background: var(--grey-light);
	box-shadow: none;
}

.sidebar-box__title {
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--green-lime);
	font-size: 1.15rem;
}

.category-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.category-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 12px;
	border-radius: var(--radius-small);
	color: var(--charcoal);
	font-size: 0.95rem;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.category-menu a:hover {
	background: var(--green-tint);
	color: var(--green-deep);
}

.category-menu__count {
	flex: none;
	min-width: 30px;
	padding: 2px 8px;
	border-radius: var(--radius-pill);
	background: var(--grey-light);
	color: var(--charcoal-soft);
	font-size: 0.75rem;
	font-weight: 500;
	text-align: center;
}

.section:not(.section--grey) .category-menu__count {
	background: var(--white);
}

.category-menu .is-current > a {
	background: var(--green-lime);
	color: var(--charcoal);
	font-weight: 600;
}

.category-menu .is-current .category-menu__count {
	background: rgba(255, 255, 255, 0.6);
	color: var(--charcoal);
}

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

	.card-grid--two {
		grid-template-columns: 1fr;
	}
}

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

	.sidebar {
		position: static;
	}

	.card-grid--two {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 620px) {
	.card-grid--two {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

.page-banner {
	padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px);
	background: linear-gradient(180deg, var(--green-tint) 0%, var(--white) 100%);
	text-align: center;
}

.page-banner__title {
	margin-bottom: 0;
}

.page-banner__description {
	max-width: 620px;
	margin: 16px auto 0;
}

.page-banner__description p:last-child {
	margin-bottom: 0;
}

.entry-meta {
	margin: 14px 0 0;
	font-size: 0.9rem;
}

.page-banner + .section,
.page-banner + .section--grey {
	padding-top: clamp(40px, 6vw, 64px);
}

.entry-thumbnail {
	margin: 0 0 40px;
}

.entry-thumbnail img {
	width: 100%;
	border-radius: var(--radius);
}

.entry-content {
	font-size: 1.05rem;
}

.entry-content > * + h2,
.entry-content > * + h3 {
	margin-top: 1.6em;
}

.entry-content img {
	border-radius: var(--radius-small);
}

.entry-content blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 24px;
	border-left: 4px solid var(--green-lime);
	color: var(--charcoal);
	font-size: 1.15rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}

.entry-content li::marker {
	color: var(--green-deep);
}

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

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--grey-line);
	text-align: left;
}

.alignwide {
	margin-inline: calc(-1 * min(120px, 8vw));
}

.alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
}

.wp-caption-text,
figcaption {
	margin-top: 8px;
	font-size: 0.85rem;
	text-align: center;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
	width: 100%;
	padding: 0.85em 1.2em;
	border: 1px solid var(--grey-line);
	border-radius: var(--radius-small);
	background: var(--white);
	color: var(--charcoal);
	font: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
	border-color: var(--green-lime);
	box-shadow: 0 0 0 3px rgba(155, 197, 61, 0.25);
	outline: none;
}

.search-form {
	display: flex;
	gap: 10px;
	max-width: 520px;
	margin: 0 auto 24px;
}

.search-form label {
	flex: 1;
}

.search-form .search-field {
	border-radius: var(--radius-pill);
}

.empty-state {
	text-align: center;
}

/* Pagination and post navigation */
.pagination,
.post-navigation {
	margin-top: 56px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 16px;
	border-radius: var(--radius-pill);
	background: var(--white);
	color: var(--charcoal);
	font-weight: 500;
	text-decoration: none;
	box-shadow: var(--shadow);
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--green-lime);
	color: var(--charcoal);
}

.post-navigation .nav-links {
	justify-content: space-between;
	padding-top: 32px;
	border-top: 1px solid var(--grey-line);
}

.post-navigation a {
	color: var(--charcoal);
	font-weight: 600;
	text-decoration: none;
}

.post-navigation .nav-label {
	display: block;
	color: var(--green-deep);
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.post-navigation .nav-next {
	margin-left: auto;
	text-align: right;
}

/* Comments */
.comments {
	margin-top: 56px;
}

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

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

.comment-body {
	margin-bottom: 24px;
	padding: 24px;
	background: var(--grey-light);
	border-radius: var(--radius);
}

.comment-author img {
	display: inline-block;
	margin-right: 10px;
	border-radius: 50%;
	vertical-align: middle;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	padding-block: 64px 32px;
	background: var(--charcoal);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.95rem;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

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

.site-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-logo--footer,
.site-logo--footer:hover {
	color: var(--white);
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
	padding-block: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-widget__title {
	color: var(--white);
	font-size: 1rem;
}

.site-footer__copyright {
	margin: 28px 0 0;
	font-size: 0.85rem;
}
