/* ============================================
   Bioplastics Guide — Main Stylesheet
   Aesthetic: Botanical Scientific Editorial
   Fonts: Instrument Serif + Plus Jakarta Sans
   ============================================ */

/* ── Reset & Foundation ─────────────────────────── */

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

:root {
	--forest:        #163b2c;
	--forest-deep:   #0d2a1e;
	--forest-90:     rgba(22, 59, 44, 0.9);
	--leaf:          #2a9d5c;
	--leaf-muted:    #35b86a;
	--leaf-pale:     rgba(42, 157, 92, 0.07);
	--leaf-glow:     rgba(42, 157, 92, 0.15);
	--amber:         #c08b30;
	--amber-pale:    rgba(192, 139, 48, 0.1);
	--parchment:     #faf7f2;
	--cream:         #f3ede4;
	--paper:         #ffffff;
	--ink:           #1a1f16;
	--ink-soft:      #3d4a38;
	--ink-muted:     #6b7a64;
	--ink-faint:     #a3b09c;
	--rule:          #ddd8cf;
	--rule-light:    #ece8e0;

	--serif:         'Instrument Serif', Georgia, serif;
	--sans:          'Plus Jakarta Sans', system-ui, sans-serif;

	--container:     1180px;
	--radius:        6px;
	--radius-lg:     10px;
	--ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink-soft);
	background: var(--parchment);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

/* ── Reading Progress ───────────────────────────── */

.progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 1000;
	pointer-events: none;
}

.progress__bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--leaf) 0%, var(--amber) 100%);
	transition: width 0.08s linear;
}

/* ── Header ─────────────────────────────────────── */

.header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(250, 247, 242, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--rule-light);
	transition: box-shadow 0.3s var(--ease);
}

.header--scrolled {
	box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.header__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--forest);
	flex-shrink: 0;
}

.header__logo {
	color: var(--leaf);
}

.header__title {
	font-family: var(--serif);
	font-size: 1.15rem;
	font-weight: 400;
	letter-spacing: -0.01em;
}

/* Mobile toggle */
.header__toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px 4px;
	z-index: 110;
}

.header__toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: all 0.3s var(--ease);
}

.header__toggle[aria-expanded="true"] span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}
.header__toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}
.header__toggle[aria-expanded="true"] span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation */
.nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
}

.nav__link {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 14px;
	font-family: var(--sans);
	font-size: 0.84rem;
	font-weight: 500;
	color: var(--ink-soft);
	text-decoration: none;
	border-radius: var(--radius);
	transition: all 0.2s var(--ease);
	white-space: nowrap;
}

.nav__link:hover {
	background: var(--leaf-pale);
	color: var(--forest);
}

.nav__item--active > .nav__link {
	color: var(--forest);
	font-weight: 600;
}

.nav__chevron {
	transition: transform 0.2s var(--ease);
	opacity: 0.5;
}

/* Dropdown */
.nav__item--parent {
	position: relative;
}

.nav__dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--paper);
	border: 1px solid var(--rule-light);
	border-radius: var(--radius-lg);
	box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
	padding: 8px;
	min-width: 240px;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(6px);
	transition: all 0.25s var(--ease);
	z-index: 50;
}

.nav__item--parent:hover .nav__dropdown,
.nav__item--parent:focus-within .nav__dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.nav__item--parent:hover .nav__chevron {
	transform: rotate(180deg);
}

.nav__item--child .nav__link {
	font-size: 0.82rem;
	padding: 7px 12px;
	border-radius: var(--radius);
}

.nav__item--child .nav__link:hover {
	background: var(--leaf-pale);
}

.nav__item--child.nav__item--active .nav__link {
	background: var(--leaf-pale);
	color: var(--forest);
	font-weight: 600;
}

/* ── Hero ───────────────────────────────────────── */

.hero {
	position: relative;
	min-height: 340px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.hero--home {
	min-height: 540px;
	align-items: center;
}

.hero--minimal {
	min-height: auto;
	background: var(--forest-deep);
	padding: 0;
}

.hero__img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 35%;
	animation: heroKen 18s var(--ease) forwards;
}

@keyframes heroKen {
	from { transform: scale(1.06); }
	to   { transform: scale(1.0); }
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		170deg,
		rgba(13, 42, 30, 0.15) 0%,
		rgba(13, 42, 30, 0.50) 45%,
		rgba(13, 42, 30, 0.82) 100%
	);
}

.hero--home .hero__overlay {
	background: linear-gradient(
		175deg,
		rgba(13, 42, 30, 0.12) 0%,
		rgba(13, 42, 30, 0.45) 35%,
		rgba(13, 42, 30, 0.88) 100%
	);
}

.hero__fade {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient(to bottom, transparent, var(--parchment));
	z-index: 2;
}

.hero__inner {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 52px 32px 44px;
}

.hero--home .hero__inner {
	text-align: center;
	padding: 64px 32px 72px;
}

.hero--minimal .hero__inner {
	padding: 48px 32px 40px;
}

.hero__eyebrow {
	display: inline-block;
	font-family: var(--sans);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--leaf-muted);
	margin-bottom: 20px;
	padding: 5px 16px;
	border: 1px solid rgba(53, 184, 106, 0.25);
	border-radius: 100px;
	background: rgba(42, 157, 92, 0.08);
	animation: fadeUp 0.7s var(--ease-out) 0.15s both;
}

.hero__title {
	font-family: var(--serif);
	color: var(--paper);
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 400;
	line-height: 1.15;
	margin: 0 0 8px;
	letter-spacing: -0.01em;
	animation: fadeUp 0.7s var(--ease-out) 0.25s both;
}

.hero--home .hero__title {
	font-size: clamp(2.4rem, 6vw, 4rem);
	line-height: 1.08;
	margin-bottom: 20px;
}

.hero__title em {
	font-style: italic;
	color: var(--leaf-muted);
}

.hero__subtitle {
	font-family: var(--sans);
	color: rgba(255, 255, 255, 0.68);
	font-size: clamp(0.92rem, 1.6vw, 1.1rem);
	font-weight: 400;
	line-height: 1.6;
	margin: 0 auto 32px;
	max-width: 520px;
	animation: fadeUp 0.7s var(--ease-out) 0.4s both;
}

@keyframes fadeUp {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Breadcrumb ─────────────────────────────────── */

.breadcrumb {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 14px;
	font-family: var(--sans);
	font-size: 0.76rem;
	font-weight: 500;
	animation: fadeUp 0.5s var(--ease-out) 0.05s both;
}

.breadcrumb a {
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	transition: color 0.2s;
}

.breadcrumb a:hover {
	color: var(--paper);
}

.breadcrumb svg {
	color: rgba(255, 255, 255, 0.2);
	flex-shrink: 0;
}

.breadcrumb span[aria-current] {
	color: rgba(255, 255, 255, 0.8);
}

.hero--minimal .breadcrumb a { color: rgba(255,255,255,0.45); }
.hero--minimal .breadcrumb span[aria-current] { color: rgba(255,255,255,0.75); }

/* ── Buttons ────────────────────────────────────── */

.hero__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	animation: fadeUp 0.7s var(--ease-out) 0.55s both;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 26px;
	border-radius: 100px;
	font-family: var(--sans);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s var(--ease);
	cursor: pointer;
	border: none;
}

.btn svg { transition: transform 0.3s var(--ease); }

.btn--primary {
	background: var(--leaf);
	color: var(--paper);
	box-shadow: 0 2px 12px rgba(42, 157, 92, 0.25);
}

.btn--primary:hover {
	background: var(--leaf-muted);
	color: var(--paper);
	box-shadow: 0 4px 20px rgba(42, 157, 92, 0.35);
	transform: translateY(-1px);
}

.btn--primary:hover svg { transform: translateX(3px); }

.btn--ghost {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(6px);
}

.btn--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	color: var(--paper);
	border-color: rgba(255, 255, 255, 0.35);
}

/* ── Section / Cards ────────────────────────────── */

.section {
	padding: 64px 0 72px;
}

.section__title {
	font-family: var(--serif);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 400;
	color: var(--ink);
	text-align: center;
	margin-bottom: 40px;
	letter-spacing: -0.01em;
}

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

.card {
	display: flex;
	flex-direction: column;
	padding: 28px 24px;
	background: var(--paper);
	border: 1px solid var(--rule-light);
	border-radius: var(--radius-lg);
	text-decoration: none;
	color: inherit;
	transition: all 0.3s var(--ease);
	position: relative;
}

.card:hover {
	border-color: var(--leaf);
	box-shadow: 0 4px 24px rgba(42, 157, 92, 0.08);
	transform: translateY(-3px);
}

.card__icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius);
	background: var(--leaf-pale);
	color: var(--leaf);
	margin-bottom: 16px;
}

.card__title {
	font-family: var(--serif);
	font-size: 1.15rem;
	font-weight: 400;
	color: var(--forest);
	margin-bottom: 8px;
	line-height: 1.3;
}

.card__desc {
	font-size: 0.88rem;
	color: var(--ink-muted);
	line-height: 1.6;
	flex: 1;
}

.card__arrow {
	display: flex;
	align-items: center;
	margin-top: 16px;
	color: var(--leaf);
	opacity: 0;
	transform: translateX(-6px);
	transition: all 0.3s var(--ease);
}

.card:hover .card__arrow {
	opacity: 1;
	transform: translateX(0);
}

/* ── Content Layout ─────────────────────────────── */

.content-wrap {
	padding: 52px 0 80px;
}

.content-wrap--sidebar .container {
	display: grid;
	grid-template-columns: 248px 1fr;
	gap: 52px;
	align-items: start;
}

/* ── Sidebar ────────────────────────────────────── */

.sidebar {
	position: sticky;
	top: 88px;
}

.sidebar__nav {
	background: var(--paper);
	border-radius: var(--radius-lg);
	padding: 22px;
	border: 1px solid var(--rule-light);
}

.sidebar__heading {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--sans);
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ink-muted);
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--rule-light);
}

.sidebar__heading svg { color: var(--leaf); flex-shrink: 0; }
.sidebar__heading a { color: inherit; text-decoration: none; }
.sidebar__heading a:hover { color: var(--leaf); }

.sidebar__item > a {
	display: block;
	padding: 7px 12px;
	font-size: 0.83rem;
	font-weight: 500;
	color: var(--ink-soft);
	text-decoration: none;
	border-radius: var(--radius);
	border-left: 2px solid transparent;
	transition: all 0.15s var(--ease);
	margin-bottom: 1px;
}

.sidebar__item > a:hover {
	background: var(--leaf-pale);
	color: var(--forest);
	border-left-color: var(--leaf);
}

.sidebar__item--active > a {
	background: var(--leaf-pale);
	color: var(--forest);
	font-weight: 600;
	border-left-color: var(--leaf);
}

.sidebar__sub {
	margin: 2px 0 6px 14px;
	padding-left: 0;
	border-left: 1px solid var(--rule-light);
}

.sidebar__sub a {
	display: block;
	padding: 4px 12px;
	font-size: 0.78rem;
	color: var(--ink-muted);
	text-decoration: none;
	transition: color 0.15s;
}

.sidebar__sub a:hover { color: var(--leaf); }
.sidebar__sub-active a { color: var(--forest); font-weight: 600; }

/* ── Article Content ────────────────────────────── */

.article__body {
	font-family: var(--sans);
	font-size: 1.02rem;
	line-height: 1.78;
	color: var(--ink-soft);
}

.article__body > * {
	max-width: 100%;
}

/* Headings */
.article__body h2,
.article__body .wp-block-heading:where(h2) {
	font-family: var(--serif);
	font-size: 1.65rem;
	font-weight: 400;
	color: var(--ink);
	margin: 2.8rem 0 0.75rem;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--rule);
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.article__body h3,
.article__body .wp-block-heading:where(h3) {
	font-family: var(--serif);
	font-size: 1.25rem;
	font-weight: 400;
	font-style: italic;
	color: var(--ink);
	margin: 2rem 0 0.5rem;
	line-height: 1.3;
}

.article__body h4 {
	font-family: var(--sans);
	font-size: 0.88rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ink-muted);
	margin: 1.8rem 0 0.5rem;
}

/* Paragraphs */
.article__body p {
	margin-bottom: 1.3rem;
}

.article__body > p:first-child {
	font-size: 1.1rem;
	color: var(--ink);
	line-height: 1.72;
}

/* Links */
.article__body a {
	color: var(--forest);
	text-decoration: underline;
	text-decoration-color: var(--leaf-muted);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: all 0.2s;
}

.article__body a:hover {
	color: var(--leaf);
	text-decoration-color: var(--leaf);
}

/* Lists */
.article__body ul,
.article__body ol {
	margin-bottom: 1.3rem;
	padding-left: 0;
}

.article__body ul > li {
	position: relative;
	padding-left: 1.3em;
	margin-bottom: 0.45rem;
}

.article__body ul > li::before {
	content: '';
	position: absolute;
	left: 0.2em;
	top: 0.65em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--leaf);
}

.article__body ol {
	counter-reset: ol-counter;
	padding-left: 0;
}

.article__body ol > li {
	counter-increment: ol-counter;
	position: relative;
	padding-left: 1.6em;
	margin-bottom: 0.45rem;
}

.article__body ol > li::before {
	content: counter(ol-counter) ".";
	position: absolute;
	left: 0;
	font-weight: 600;
	color: var(--leaf);
	font-size: 0.9em;
}

/* Blockquote */
.article__body blockquote {
	margin: 2rem 0;
	padding: 1.4rem 1.8rem;
	background: var(--paper);
	border-left: 3px solid var(--leaf);
	border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
	font-family: var(--serif);
	font-size: 1.08rem;
	font-style: italic;
	color: var(--ink);
	line-height: 1.6;
}

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

/* Tables */
.article__body table,
.article__body .wp-block-table table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 2rem 0;
	font-size: 0.88rem;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--rule);
}

.article__body th {
	background: var(--forest);
	color: var(--cream);
	padding: 10px 14px;
	text-align: left;
	font-weight: 600;
	font-size: 0.76rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.article__body td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--rule-light);
}

.article__body tr:last-child td { border-bottom: none; }
.article__body tr:nth-child(even) td { background: rgba(250, 247, 242, 0.5); }
.article__body tr:hover td { background: var(--leaf-pale); }

/* Code */
.article__body code {
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 0.86em;
	padding: 2px 6px;
	background: var(--cream);
	border-radius: 4px;
	color: var(--forest-deep);
}

/* Images inside article */
.article__body .wp-block-image {
	margin: 2rem 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.article__body .wp-block-image.hero-image { display: none; }

/* Columns in article (homepage cards fallback) */
.article__body .wp-block-columns {
	gap: 20px;
	margin-bottom: 1.5rem;
}

.article__body .wp-block-column {
	background: var(--paper);
	border: 1px solid var(--rule-light);
	border-radius: var(--radius-lg);
	padding: 24px;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.article__body .wp-block-column:hover {
	border-color: var(--leaf);
	box-shadow: 0 4px 16px rgba(42,157,92,0.06);
}

/* ── Pager (Prev / Next) ───────────────────────── */

.pager {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 52px;
	padding-top: 28px;
	border-top: 1px solid var(--rule);
}

.pager__link {
	display: flex;
	flex-direction: column;
	padding: 18px 22px;
	background: var(--paper);
	border: 1px solid var(--rule-light);
	border-radius: var(--radius-lg);
	text-decoration: none;
	transition: all 0.3s var(--ease);
	max-width: 48%;
}

.pager__link:hover {
	border-color: var(--leaf);
	box-shadow: 0 4px 16px rgba(42,157,92,0.08);
	transform: translateY(-2px);
}

.pager__link--next {
	margin-left: auto;
	text-align: right;
}

.pager__label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink-muted);
	margin-bottom: 4px;
}

.pager__link--next .pager__label { justify-content: flex-end; }

.pager__title {
	font-family: var(--serif);
	font-size: 1rem;
	color: var(--forest);
	line-height: 1.3;
}

/* ── Footer ─────────────────────────────────────── */

.footer {
	background: var(--forest-deep);
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.88rem;
}

.footer__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.footer__top {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 48px;
	padding: 52px 0 40px;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer__logo-link {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--paper);
	font-family: var(--serif);
	font-size: 1.1rem;
}

.footer__logo-link svg { color: var(--leaf-muted); }

.footer__tagline {
	font-size: 0.84rem;
	color: rgba(255,255,255,0.4);
	line-height: 1.5;
	max-width: 280px;
}

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

.footer__heading {
	font-family: var(--sans);
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255,255,255,0.3);
	margin-bottom: 14px;
}

.footer__col ul { padding: 0; }

.footer__col li {
	margin-bottom: 8px;
}

.footer__col a {
	text-decoration: none;
	color: rgba(255,255,255,0.55);
	font-size: 0.84rem;
	transition: color 0.2s;
}

.footer__col a:hover {
	color: var(--leaf-muted);
}

.footer__bottom {
	padding: 20px 0;
	font-size: 0.78rem;
	color: rgba(255,255,255,0.25);
}

/* ── Scroll Reveal ──────────────────────────────── */

.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal--visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────── */

@media (max-width: 960px) {
	.content-wrap--sidebar .container {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.sidebar {
		position: static;
		margin-bottom: 28px;
	}

	.sidebar__nav {
		padding: 14px 18px;
	}

	.sidebar__list {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
	}

	.sidebar__item > a {
		font-size: 0.76rem;
		padding: 5px 10px;
		white-space: nowrap;
		border-left: none;
		border-radius: 100px;
		background: var(--cream);
	}

	.sidebar__item > a:hover,
	.sidebar__item--active > a {
		border-left: none;
	}

	.sidebar__sub { display: none; }

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

	.footer__top {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.footer__nav {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	/* Mobile nav */
	.header__toggle {
		display: flex;
	}

	.nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: 300px;
		max-width: 85vw;
		background: var(--paper);
		padding: 80px 24px 32px;
		transform: translateX(100%);
		transition: transform 0.35s var(--ease-out);
		box-shadow: -8px 0 32px rgba(0,0,0,0.08);
		overflow-y: auto;
		z-index: 100;
	}

	.nav--open {
		transform: translateX(0);
	}

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

	.nav__link {
		padding: 10px 0;
		font-size: 0.92rem;
		border-bottom: 1px solid var(--rule-light);
	}

	.nav__dropdown {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		border-radius: 0;
		padding: 0 0 0 16px;
		min-width: auto;
	}

	.nav__item--child .nav__link {
		padding: 8px 0;
		font-size: 0.84rem;
		border-bottom: 1px solid var(--rule-light);
	}

	/* Hero adjustments */
	.hero { min-height: 260px; }
	.hero--home { min-height: 400px; }

	.hero__inner { padding: 36px 20px 32px; }
	.hero--home .hero__inner { padding: 48px 20px 56px; }
	.hero--minimal .hero__inner { padding: 36px 20px 28px; }

	.hero--home .hero__title { font-size: 2rem; }

	/* Section */
	.section { padding: 48px 0 56px; }

	.card-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.card { padding: 22px 20px; }

	/* Content */
	.content-wrap { padding: 36px 0 56px; }

	/* Pager */
	.pager { flex-direction: column; }
	.pager__link { max-width: 100%; }
	.pager__link--next { text-align: left; }
	.pager__link--next .pager__label { justify-content: flex-start; }

	/* Footer */
	.footer__nav {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}
}

@media (max-width: 480px) {
	.hero--home .hero__title { font-size: 1.7rem; }
	.hero__title { font-size: 1.5rem; }

	.footer__nav {
		grid-template-columns: 1fr;
	}
}

/* ── Blog: Post Meta ────────────────────────────── */

.post-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--sans);
	font-size: 0.82rem;
	color: var(--ink-muted);
}

.post-meta--hero {
	color: rgba(255, 255, 255, 0.55);
	margin-top: 12px;
	animation: fadeUp 0.7s var(--ease-out) 0.4s both;
}

.post-meta__sep {
	opacity: 0.4;
}

/* ── Blog: Post Badge ──────────────────────────── */

.post-badge {
	display: inline-block;
	font-family: var(--sans);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 4px 14px;
	border-radius: 100px;
	background: rgba(42, 157, 92, 0.12);
	color: var(--leaf-muted);
	border: 1px solid rgba(53, 184, 106, 0.2);
	margin-bottom: 14px;
	transition: all 0.2s var(--ease);
	animation: fadeUp 0.7s var(--ease-out) 0.15s both;
}

.post-badge:hover {
	background: rgba(42, 157, 92, 0.2);
	color: var(--paper);
}

/* ── Blog: Hero subtitle (minimal) ─────────────── */

.hero__subtitle-minimal {
	font-family: var(--sans);
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.95rem;
	margin-top: 8px;
	animation: fadeUp 0.7s var(--ease-out) 0.35s both;
}

/* ── Blog: Narrow Container ────────────────────── */

.container--narrow {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ── Blog: Post Grid ───────────────────────────── */

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.post-grid__empty {
	text-align: center;
	padding: 80px 24px;
	color: var(--ink-muted);
	font-size: 1rem;
}

/* ── Blog: Post Card ───────────────────────────── */

.post-card {
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border: 1px solid var(--rule-light);
	border-radius: var(--radius-lg);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: all 0.3s var(--ease);
}

.post-card:hover {
	border-color: var(--leaf);
	box-shadow: 0 6px 28px rgba(42, 157, 92, 0.1);
	transform: translateY(-4px);
}

.post-card__img {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
}

.post-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.post-card:hover .post-card__img img {
	transform: scale(1.04);
}

.post-card__body {
	display: flex;
	flex-direction: column;
	padding: 20px 22px 22px;
	flex: 1;
}

.post-card__badge {
	display: inline-block;
	align-self: flex-start;
	font-family: var(--sans);
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--leaf);
	background: var(--leaf-pale);
	padding: 3px 10px;
	border-radius: 100px;
	margin-bottom: 10px;
}

.post-card__title {
	font-family: var(--serif);
	font-size: 1.08rem;
	font-weight: 400;
	color: var(--forest);
	line-height: 1.3;
	margin-bottom: 8px;
	letter-spacing: -0.01em;
}

.post-card__excerpt {
	font-size: 0.84rem;
	color: var(--ink-muted);
	line-height: 1.55;
	flex: 1;
	margin-bottom: 12px;
}

.post-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.72rem;
	color: var(--ink-faint);
	padding-top: 12px;
	border-top: 1px solid var(--rule-light);
}

/* ── Blog: Category Filter ─────────────────────── */

.cat-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}

.cat-filter__pill {
	display: inline-block;
	font-family: var(--sans);
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--ink-muted);
	text-decoration: none;
	padding: 6px 16px;
	border-radius: 100px;
	border: 1px solid var(--rule);
	background: var(--paper);
	transition: all 0.2s var(--ease);
	white-space: nowrap;
}

.cat-filter__pill:hover {
	border-color: var(--leaf);
	color: var(--leaf);
	background: var(--leaf-pale);
}

.cat-filter__pill--active {
	background: var(--forest);
	color: var(--paper);
	border-color: var(--forest);
}

.cat-filter__pill--active:hover {
	background: var(--forest);
	color: var(--paper);
	border-color: var(--forest);
}

/* ── Blog: Post Tags ───────────────────────────── */

.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--rule-light);
}

.post-tags__pill {
	display: inline-block;
	font-family: var(--sans);
	font-size: 0.74rem;
	font-weight: 500;
	color: var(--ink-muted);
	text-decoration: none;
	padding: 4px 14px;
	border-radius: 100px;
	background: var(--cream);
	transition: all 0.2s var(--ease);
}

.post-tags__pill:hover {
	background: var(--leaf-pale);
	color: var(--leaf);
}

/* ── Blog: Pagination ──────────────────────────── */

.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--rule-light);
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	font-family: var(--sans);
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--ink-muted);
	text-decoration: none;
	border-radius: var(--radius);
	border: 1px solid transparent;
	transition: all 0.2s var(--ease);
}

.pagination a:hover {
	border-color: var(--leaf);
	color: var(--forest);
	background: var(--leaf-pale);
}

.pagination .current {
	background: var(--forest);
	color: var(--paper);
	border-color: var(--forest);
	font-weight: 600;
}

.pagination .dots {
	border: none;
	color: var(--ink-faint);
}

.pagination .prev,
.pagination .next {
	color: var(--leaf);
}

.pagination .prev:hover,
.pagination .next:hover {
	background: var(--leaf-pale);
	border-color: var(--leaf);
}

/* ── Blog: Related Posts Section ────────────────── */

.section--related {
	background: var(--cream);
	border-top: 1px solid var(--rule-light);
}

/* ── Blog: Post Hero variant ───────────────────── */

.hero--post {
	min-height: 380px;
}

/* ── Blog Responsive ───────────────────────────── */

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

@media (max-width: 768px) {
	.post-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.hero--post { min-height: 280px; }

	.cat-filter {
		gap: 6px;
		margin-bottom: 24px;
	}

	.cat-filter__pill {
		font-size: 0.72rem;
		padding: 5px 12px;
	}

	.container--narrow {
		padding: 0 20px;
	}
}

@media (max-width: 480px) {
	.post-card__body {
		padding: 16px 18px 18px;
	}

	.post-card__title {
		font-size: 0.98rem;
	}
}

/* ── Print ──────────────────────────────────────── */

@media print {
	.header, .progress, .sidebar, .pager, .footer, .hero { display: none !important; }
	.content-wrap { padding: 0; }
	.content-wrap--sidebar .container { grid-template-columns: 1fr; }
	body { background: white; color: black; }
}
