/*
Theme Name: Ittehad Flour Mills
Theme URI: https://www.ittehadflourmills.com
Author: Nahyaan Poonawala
Author URI: https://www.ittehadflourmills.com
Description: A minimal, editorial showcase theme built for Ittehad Roller Flour Mills, Karachi. Product led, no shop, fully editable through the Customizer and a Products post type.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ittehad
Tags: business, food, minimal, one-column, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--ifm-green: #123a28;
	--ifm-green-deep: #0b2418;
	--ifm-green-soft: #2b5642;
	--ifm-gold: #c69a45;
	--ifm-gold-soft: #e4ce9b;
	--ifm-cream: #f7f2e7;
	--ifm-paper: #fffdf8;
	--ifm-brown: #5a3620;
	--ifm-seal: #b32127;

	--ifm-ink: #1d2a22;
	--ifm-muted: #5f6b62;
	--ifm-line: rgba(18, 58, 40, 0.14);
	--ifm-line-soft: rgba(18, 58, 40, 0.08);

	--font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--font-body: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

	--step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.85rem);
	--step-0: clamp(0.98rem, 0.94rem + 0.18vw, 1.08rem);
	--step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem);
	--step-2: clamp(1.6rem, 1.35rem + 1.1vw, 2.3rem);
	--step-3: clamp(2.1rem, 1.6rem + 2.1vw, 3.4rem);
	--step-4: clamp(2.7rem, 1.8rem + 3.6vw, 4.9rem);

	--wrap: 1220px;
	--wrap-wide: 1400px;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--section-y: clamp(4.5rem, 9vw, 8.5rem);
	--radius: 2px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	overflow-x: hidden;
	max-width: 100%;
}

body {
	margin: 0;
	overflow-wrap: break-word;
	background: var(--ifm-cream);
	color: var(--ifm-ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	font-weight: 350;
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a {
	color: var(--ifm-green);
	text-decoration-color: rgba(198, 154, 69, 0.55);
	text-underline-offset: 0.25em;
}

a:hover {
	color: var(--ifm-brown);
}

h1,
h2,
h3,
h4,
h5 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.012em;
	color: var(--ifm-green);
	margin: 0 0 0.6em;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.2em; }

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

blockquote {
	margin: 2.2rem 0;
	padding: 0.4rem 0 0.4rem 1.6rem;
	border-left: 2px solid var(--ifm-gold);
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-style: italic;
	color: var(--ifm-green);
}

hr {
	border: 0;
	border-top: 1px solid var(--ifm-line);
	margin: 2.6rem 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--step--1);
}

th,
td {
	text-align: left;
	padding: 0.95rem 1rem;
	border-bottom: 1px solid var(--ifm-line);
}

th {
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: 0.72rem;
	color: var(--ifm-green);
	background: rgba(198, 154, 69, 0.08);
}

::selection {
	background: var(--ifm-gold-soft);
	color: var(--ifm-green-deep);
}

:focus-visible {
	outline: 2px solid var(--ifm-gold);
	outline-offset: 3px;
}

.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 {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--ifm-green);
	color: #fff;
	padding: 0.8rem 1.2rem;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
	color: #fff;
}

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap--wide { max-width: var(--wrap-wide); }
.wrap--narrow { max-width: 820px; }

.section {
	position: relative;
	padding-block: var(--section-y);
}

.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--paper { background: var(--ifm-paper); }
.section--cream { background: var(--ifm-cream); }

.section--green {
	background: var(--ifm-green);
	color: rgba(255, 253, 248, 0.86);
}

.section--green h2,
.section--green h3,
.section--green h4 { color: var(--ifm-paper); }

/* Woven sack texture, the surface the brand actually lives on */
.weave {
	position: relative;
}

.weave::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.5;
	background-image:
		repeating-linear-gradient(90deg, rgba(90, 54, 32, 0.05) 0 1px, transparent 1px 4px),
		repeating-linear-gradient(0deg, rgba(90, 54, 32, 0.05) 0 1px, transparent 1px 4px);
}

.weave > * { position: relative; z-index: 1; }

/* ==========================================================================
   4. Small type pieces
   ========================================================================== */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--ifm-brown);
	margin: 0 0 1.4rem;
}

.eyebrow::before {
	content: "";
	width: 26px;
	height: 1px;
	background: var(--ifm-gold);
}

.section--green .eyebrow { color: var(--ifm-gold-soft); }

.lede {
	font-size: var(--step-1);
	line-height: 1.6;
	font-weight: 300;
	color: var(--ifm-muted);
	max-width: 46ch;
}

.section--green .lede { color: rgba(255, 253, 248, 0.78); }

.section-head {
	max-width: 62ch;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
	margin-inline: auto;
	text-align: center;
}

.section-head--center .eyebrow { justify-content: center; }

.rule {
	width: 100%;
	height: 1px;
	background: var(--ifm-line);
	border: 0;
	margin: 0;
}

/* Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 1rem 1.9rem;
	font-family: var(--font-body);
	font-size: 0.76rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid var(--ifm-green);
	background: var(--ifm-green);
	color: var(--ifm-paper);
	border-radius: var(--radius);
	cursor: pointer;
	transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn:hover {
	background: var(--ifm-green-deep);
	border-color: var(--ifm-green-deep);
	color: var(--ifm-gold-soft);
	transform: translateY(-2px);
}

.btn--ghost {
	background: transparent;
	color: var(--ifm-green);
	border-color: rgba(18, 58, 40, 0.28);
}

.btn--ghost:hover {
	background: transparent;
	border-color: var(--ifm-gold);
	color: var(--ifm-brown);
}

.btn--gold {
	background: var(--ifm-gold);
	border-color: var(--ifm-gold);
	color: var(--ifm-green-deep);
}

.btn--gold:hover {
	background: var(--ifm-gold-soft);
	border-color: var(--ifm-gold-soft);
	color: var(--ifm-green-deep);
}

.btn--light {
	background: transparent;
	border-color: rgba(255, 253, 248, 0.4);
	color: var(--ifm-paper);
}

.btn--light:hover {
	background: rgba(255, 253, 248, 0.08);
	border-color: var(--ifm-gold-soft);
	color: var(--ifm-gold-soft);
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin-top: 2.2rem;
}

/* Text link with a moving gold rule */
.tlink {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ifm-green);
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--ifm-gold);
	transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}

.tlink:hover {
	gap: 1.1rem;
	color: var(--ifm-brown);
}

.section--green .tlink {
	color: var(--ifm-gold-soft);
	border-bottom-color: rgba(198, 154, 69, 0.6);
}

/* Stencil chip, borrowed from the weight stamp printed on every sack */
.chip {
	display: inline-flex;
	align-items: baseline;
	gap: 0.28rem;
	padding: 0.34rem 0.7rem;
	border: 1px solid rgba(18, 58, 40, 0.35);
	border-radius: 1px;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ifm-green);
	background: rgba(255, 253, 248, 0.6);
}

.chip--seal {
	border-color: rgba(179, 33, 39, 0.45);
	color: var(--ifm-seal);
}

.chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

/* ==========================================================================
   5. Header
   ========================================================================== */

.topbar {
	background: var(--ifm-green-deep);
	color: rgba(255, 253, 248, 0.72);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 40px;
	flex-wrap: wrap;
}

.topbar a {
	color: rgba(255, 253, 248, 0.82);
	text-decoration: none;
}

.topbar a:hover { color: var(--ifm-gold-soft); }

.topbar__list {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.site-header {
	position: sticky;
	isolation: isolate;
	top: 0;
	z-index: 60;
	background: rgba(247, 242, 231, 0.92);
	backdrop-filter: blur(9px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-stuck {
	border-bottom-color: var(--ifm-line);
	box-shadow: 0 10px 40px -30px rgba(11, 36, 24, 0.9);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: 86px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	text-decoration: none;
	flex-shrink: 0;
}

.brand img {
	height: 58px;
	width: auto;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.brand__name {
	font-family: var(--font-display);
	font-size: 1.45rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ifm-green);
}

.brand__sub {
	font-size: 0.6rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--ifm-brown);
}

.nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.nav ul {
	display: flex;
	align-items: center;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav li { position: relative; }

.nav a {
	position: relative;
	display: inline-block;
	padding: 0.4rem 0;
	font-size: 0.76rem;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ifm-green);
}

.nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 1px;
	background: var(--ifm-gold);
	transition: width 0.4s var(--ease);
}

.nav a:hover::after,
.nav .current-menu-item > a::after,
.nav .current_page_item > a::after {
	width: 100%;
}

.nav .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	min-width: 220px;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	padding: 0.6rem 0;
	background: var(--ifm-paper);
	border: 1px solid var(--ifm-line);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all 0.3s var(--ease);
}

.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav .sub-menu a {
	display: block;
	padding: 0.55rem 1.4rem;
	letter-spacing: 0.1em;
}

.header-cta { flex-shrink: 0; }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 46px;
	height: 46px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--ifm-line);
	border-radius: var(--radius);
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	width: 20px;
	height: 1px;
	margin-inline: auto;
	background: var(--ifm-green);
	transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
	position: relative;
	background: var(--ifm-cream);
	padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(3.5rem, 7vw, 6rem);
	overflow: hidden;
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 5.5rem);
	align-items: center;
}

.hero__title {
	margin: 0 0 1.6rem;
	font-size: var(--step-4);
	line-height: 1;
	letter-spacing: -0.02em;
}

.hero__title em {
	font-style: italic;
	color: var(--ifm-brown);
}

.hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	border-top: 1px solid var(--ifm-line);
}

.hero__fact {
	flex: 1 1 130px;
	padding: 1.4rem 1.4rem 0 0;
}

.hero__fact + .hero__fact {
	padding-left: 1.4rem;
	border-left: 1px solid var(--ifm-line);
}

.hero__fact strong {
	display: block;
	font-family: var(--font-display);
	font-size: var(--step-2);
	font-weight: 500;
	line-height: 1;
	color: var(--ifm-green);
}

.hero__fact span {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ifm-muted);
}

.hero__figure {
	position: relative;
	padding: 0.9rem;
	border: 1px solid rgba(198, 154, 69, 0.55);
}

.hero__figure::after {
	content: "";
	position: absolute;
	inset: -14px;
	border: 1px solid var(--ifm-line-soft);
	pointer-events: none;
}

.hero__figure img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.hero__seal {
	position: absolute;
	left: -28px;
	bottom: 34px;
	width: clamp(104px, 12vw, 132px);
	height: clamp(104px, 12vw, 132px);
	display: grid;
	place-items: center;
	text-align: center;
	padding: 0.8rem;
	border-radius: 50%;
	background: var(--ifm-green);
	color: var(--ifm-gold-soft);
	font-size: 0.6rem;
	line-height: 1.35;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	box-shadow: 0 24px 50px -30px rgba(11, 36, 24, 0.9);
}

.hero__seal b {
	display: block;
	font-family: var(--font-display);
	font-size: 1.5rem;
	letter-spacing: 0.02em;
	color: var(--ifm-paper);
	text-transform: none;
}

/* Brand rail */

.rail {
	background: var(--ifm-green);
	border-block: 1px solid rgba(198, 154, 69, 0.25);
	overflow: hidden;
	padding-block: 1.15rem;
}

.rail__track {
	display: flex;
	width: max-content;
	gap: 3.2rem;
	animation: ifm-rail 38s linear infinite;
}

.rail__item {
	display: inline-flex;
	align-items: center;
	gap: 3.2rem;
	font-family: var(--font-display);
	font-size: 1.32rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: rgba(228, 206, 155, 0.85);
	white-space: nowrap;
}

.rail__item::after {
	content: "";
	width: 5px;
	height: 5px;
	rotate: 45deg;
	background: var(--ifm-gold);
}

@keyframes ifm-rail {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* ==========================================================================
   7. Story and split blocks
   ========================================================================== */

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 5.5rem);
	align-items: center;
}

.split--reverse .split__media { order: 2; }

.split__media {
	position: relative;
	z-index: 0;
	padding-right: 1.4rem;
	padding-bottom: 1.4rem;
	margin: 0;
}

.split__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.split__media::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 62%;
	height: 62%;
	border: 1px solid var(--ifm-gold);
	z-index: -1;
}

.stat-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.6rem 2rem;
	margin-top: 2.6rem;
	padding-top: 2.2rem;
	border-top: 1px solid var(--ifm-line);
	list-style: none;
	padding-left: 0;
}

.stat-list li { margin: 0; }

.stat-list strong {
	display: block;
	font-family: var(--font-display);
	font-size: var(--step-2);
	font-weight: 500;
	color: var(--ifm-green);
	line-height: 1;
}

.stat-list span {
	display: block;
	margin-top: 0.45rem;
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ifm-muted);
}

/* ==========================================================================
   8. Products
   ========================================================================== */

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.filters button {
	padding: 0.6rem 1.25rem;
	font-family: var(--font-body);
	font-size: 0.7rem;
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ifm-muted);
	background: transparent;
	border: 1px solid var(--ifm-line);
	border-radius: 40px;
	cursor: pointer;
	transition: all 0.3s var(--ease);
}

.filters button:hover {
	color: var(--ifm-green);
	border-color: rgba(198, 154, 69, 0.7);
}

.filters button.is-active {
	color: var(--ifm-paper);
	background: var(--ifm-green);
	border-color: var(--ifm-green);
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
	gap: clamp(1.4rem, 3vw, 2.4rem);
}

.product-card {
	display: flex;
	flex-direction: column;
	background: var(--ifm-paper);
	border: 1px solid var(--ifm-line-soft);
	text-decoration: none;
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

.product-card:hover {
	transform: translateY(-6px);
	border-color: rgba(198, 154, 69, 0.55);
	box-shadow: 0 34px 60px -44px rgba(11, 36, 24, 0.75);
}

.product-card__media {
	position: relative;
	overflow: hidden;
	background: #efe9dc;
}

.product-card__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: transform 1.1s var(--ease);
}

.product-card:hover .product-card__media img { transform: scale(1.045); }

.product-card__flag {
	position: absolute;
	top: 0;
	left: 0;
	padding: 0.42rem 0.85rem;
	background: var(--ifm-green);
	color: var(--ifm-gold-soft);
	font-size: 0.62rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.product-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.85rem;
	padding: 1.5rem 1.5rem 1.7rem;
}

.product-card__brand {
	font-size: 0.64rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ifm-brown);
}

.product-card__title {
	margin: 0;
	font-size: var(--step-1);
	line-height: 1.15;
}

.product-card__note {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.6;
	color: var(--ifm-muted);
}

.product-card__foot {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid var(--ifm-line-soft);
}

.is-hidden { display: none !important; }

/* Single product */

.product-single {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: start;
}

.product-single__media {
	border: 1px solid var(--ifm-line);
	background: var(--ifm-paper);
	padding: 1rem;
}

.product-single__media img {
	width: 100%;
	object-fit: cover;
}

.spec-table { margin-top: 2.4rem; }

.spec-table th { width: 42%; }

.feature-list {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
}

.feature-list li {
	position: relative;
	padding-left: 1.7rem;
	margin-bottom: 0.85rem;
	line-height: 1.6;
}

.feature-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 7px;
	height: 7px;
	rotate: 45deg;
	border: 1px solid var(--ifm-gold);
}

/* ==========================================================================
   9. Process, values, quote
   ========================================================================== */

.process {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 0;
	counter-reset: step;
}

.process__step {
	position: relative;
	padding: 2.4rem clamp(1.2rem, 2.4vw, 2.2rem) 2.4rem;
	border-top: 1px solid rgba(228, 206, 155, 0.3);
}

.process__step + .process__step { border-left: 1px solid rgba(228, 206, 155, 0.22); }

.process__num {
	display: block;
	font-family: var(--font-display);
	font-size: 0.95rem;
	letter-spacing: 0.2em;
	color: var(--ifm-gold);
	margin-bottom: 1.6rem;
}

.process__step h3 {
	font-size: var(--step-1);
	margin-bottom: 0.7rem;
}

.process__step p {
	font-size: 0.9rem;
	line-height: 1.65;
	margin: 0;
	color: rgba(255, 253, 248, 0.72);
}

.values {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0;
}

.value {
	padding: 0 clamp(1.2rem, 2.5vw, 2.4rem);
	border-left: 1px solid var(--ifm-line);
}

.value:first-child { padding-left: 0; border-left: 0; }

.value h3 {
	font-size: var(--step-1);
	margin-bottom: 0.6rem;
}

.value p {
	font-size: 0.9rem;
	line-height: 1.65;
	color: var(--ifm-muted);
	margin: 0;
}

.quote-band {
	text-align: center;
}

.quote-band blockquote {
	border: 0;
	margin: 0 auto;
	padding: 0;
	max-width: 24ch;
	font-size: clamp(1.8rem, 4vw, 3.1rem);
	font-style: normal;
	line-height: 1.18;
	color: var(--ifm-paper);
}

.quote-band cite {
	display: block;
	margin-top: 2rem;
	font-family: var(--font-body);
	font-size: 0.7rem;
	font-style: normal;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ifm-gold-soft);
}

/* Packing table */

.packing {
	background: var(--ifm-paper);
	border: 1px solid var(--ifm-line);
}

.packing table { font-size: 0.88rem; }

.packing td:first-child {
	font-weight: 400;
	color: var(--ifm-green);
}

/* ==========================================================================
   10. Contact and CTA
   ========================================================================== */

.cta-band {
	position: relative;
	background: var(--ifm-green-deep);
	color: var(--ifm-paper);
	text-align: center;
}

.cta-band h2 {
	max-width: 20ch;
	margin-inline: auto;
	color: var(--ifm-paper);
}

.cta-band .btn-row { justify-content: center; }

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: clamp(2.5rem, 5vw, 4.5rem);
	align-items: start;
}

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

.contact-list li {
	padding: 1.35rem 0;
	border-bottom: 1px solid var(--ifm-line);
}

.contact-list li:first-child { padding-top: 0; }

.contact-list span {
	display: block;
	font-size: 0.66rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ifm-brown);
	margin-bottom: 0.5rem;
}

.contact-list a { text-decoration: none; }

.map-frame {
	border: 1px solid var(--ifm-line);
	padding: 0.75rem;
	background: var(--ifm-paper);
}

.map-frame iframe {
	display: block;
	width: 100%;
	height: clamp(320px, 42vw, 470px);
	border: 0;
	filter: grayscale(1) contrast(1.05);
	transition: filter 0.6s var(--ease);
}

.map-frame:hover iframe { filter: grayscale(0); }

/* ==========================================================================
   11. Page and post content
   ========================================================================== */

.page-hero {
	position: relative;
	padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
	background: var(--ifm-green);
	color: rgba(255, 253, 248, 0.8);
}

.page-hero h1 {
	color: var(--ifm-paper);
	max-width: 20ch;
	margin-bottom: 0;
}

.page-hero .lede { margin-top: 1.4rem; }

.breadcrumb {
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(228, 206, 155, 0.8);
	margin-bottom: 1.6rem;
}

.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--ifm-paper); }

.entry-content {
	max-width: 74ch;
	font-size: 1.03rem;
}

.entry-content > * + * { margin-top: 1.3em; }

.entry-content h2 {
	margin-top: 2.4em;
	font-size: var(--step-2);
}

.entry-content h3 {
	margin-top: 2em;
	font-size: var(--step-1);
	color: var(--ifm-brown);
}

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

.entry-content li { margin-bottom: 0.6rem; }

.entry-content img { margin-block: 2rem; }

.entry-content .wp-caption-text,
.entry-content figcaption {
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	color: var(--ifm-muted);
	margin-top: 0.7rem;
}

.post-card {
	display: block;
	padding: 2rem 0;
	border-bottom: 1px solid var(--ifm-line);
	text-decoration: none;
}

.post-card__meta {
	font-size: 0.68rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ifm-brown);
	margin-bottom: 0.7rem;
}

.pagination {
	display: flex;
	gap: 0.6rem;
	margin-top: 3rem;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 0.6rem;
	border: 1px solid var(--ifm-line);
	text-decoration: none;
	font-size: 0.8rem;
}

.pagination .current {
	background: var(--ifm-green);
	border-color: var(--ifm-green);
	color: var(--ifm-paper);
}

/* ==========================================================================
   12. Footer
   ========================================================================== */

.site-footer {
	background: var(--ifm-green-deep);
	color: rgba(255, 253, 248, 0.66);
	font-size: 0.9rem;
}

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

.site-footer a:hover { color: var(--ifm-gold-soft); }

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: clamp(2rem, 4vw, 3.5rem);
	padding-block: clamp(3.5rem, 6vw, 5rem);
}

.footer-grid h4 {
	font-family: var(--font-body);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ifm-gold-soft);
	margin-bottom: 1.4rem;
}

.footer-grid ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-grid li { margin-bottom: 0.7rem; }

.footer-brand img {
	height: 74px;
	width: auto;
	margin-bottom: 1.3rem;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.6rem;
	border-top: 1px solid rgba(255, 253, 248, 0.12);
	font-size: 0.74rem;
	letter-spacing: 0.06em;
	color: rgba(255, 253, 248, 0.5);
}

.social-row {
	display: flex;
	gap: 0.6rem;
	margin-top: 1.4rem;
}

.social-row a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 253, 248, 0.2);
	border-radius: 50%;
	transition: all 0.3s var(--ease);
}

.social-row a:hover {
	border-color: var(--ifm-gold);
	background: rgba(198, 154, 69, 0.12);
}

.social-row svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* Back to top */

.to-top {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 50;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--ifm-line);
	border-radius: 50%;
	background: var(--ifm-paper);
	color: var(--ifm-green);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: all 0.4s var(--ease);
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* ==========================================================================
   13. Scroll animation
   ========================================================================== */

[data-reveal] {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	transition-delay: var(--reveal-delay, 0ms);
	will-change: opacity, transform;
}

[data-reveal="fade"] { transform: none; }

[data-reveal="left"] { transform: translateX(-24px); }

[data-reveal="right"] { transform: translateX(24px); }

[data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

.parallax {
	transition: transform 0.25s linear;
	will-change: transform;
}

.count { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   14. Responsive
   ========================================================================== */

@media (max-width: 1080px) {
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.hero__grid,
	.split,
	.product-single,
	.contact-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.split--reverse .split__media { order: 0; }

	.hero__figure { order: -1; }

	.hero__seal { left: auto; right: -12px; bottom: -18px; }

	.value {
		padding: 1.8rem 0;
		border-left: 0;
		border-top: 1px solid var(--ifm-line);
	}

	.value:first-child { border-top: 0; padding-top: 0; }

	.process__step + .process__step { border-left: 0; }

	.nav-toggle {
		display: flex;
		position: relative;
		z-index: 3;
		background: var(--ifm-paper);
	}

	.header-cta { display: none; }

	/* The menu drops down inside the header instead of sliding in from the
	   right. A full width panel cannot push the page sideways, which is what
	   an off canvas panel does on some mobile browsers. */
	.nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: 100%;
		max-width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.6rem var(--gutter) 1.4rem;
		background: var(--ifm-paper);
		border-top: 1px solid var(--ifm-line);
		border-bottom: 1px solid var(--ifm-line);
		box-shadow: 0 30px 50px -40px rgba(11, 36, 24, 0.7);
		max-height: calc(100vh - 100%);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.nav.is-open {
		display: flex;
		animation: ifm-nav-in 0.36s var(--ease) both;
	}

	.nav.is-open li {
		animation: ifm-nav-item 0.4s var(--ease) both;
		animation-delay: calc(var(--i, 0) * 40ms + 80ms);
	}

	.nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		width: 100%;
	}

	.nav li {
		width: 100%;
		border-bottom: 1px solid var(--ifm-line-soft);
	}

	.nav a {
		display: block;
		padding: 1.05rem 0;
		font-size: 0.85rem;
	}

	.nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		background: transparent;
		padding: 0 0 0.6rem 1rem;
		min-width: 0;
	}
}

@media (max-width: 640px) {
	.footer-grid { grid-template-columns: minmax(0, 1fr); }
	.stat-list { grid-template-columns: minmax(0, 1fr); }
	.hero__fact + .hero__fact { padding-left: 1rem; }
	.topbar__inner { justify-content: center; }
	.topbar__list:last-child { display: none; }
	blockquote { margin: 1.6rem 0; }
}

/* ==========================================================================
   15. Reduced motion and print
   ========================================================================== */

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

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	[data-reveal] {
		opacity: 1;
		transform: none;
	}

	.rail__track { animation: none; }
}

@media print {
	.site-header,
	.topbar,
	.to-top,
	.cta-band { display: none; }

	body { background: #fff; }
}

/* ==========================================================================
   16. Journal cards
   ========================================================================== */

.journal-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: stretch;
}

.journal-lead {
	display: flex;
	flex-direction: column;
	background: var(--ifm-paper);
	border: 1px solid var(--ifm-line-soft);
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s var(--ease);
}

.journal-lead:hover {
	transform: translateY(-6px);
	border-color: rgba(198, 154, 69, 0.55);
	box-shadow: 0 40px 70px -50px rgba(11, 36, 24, 0.8);
}

.journal-lead__media {
	position: relative;
	overflow: hidden;
	background: #efe9dc;
}

.journal-lead__media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}

.journal-lead:hover .journal-lead__media img { transform: scale(1.05); }

.journal-lead__flag {
	position: absolute;
	top: 0;
	left: 0;
	padding: 0.45rem 0.95rem;
	background: var(--ifm-gold);
	color: var(--ifm-green-deep);
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.journal-lead__body {
	padding: clamp(1.6rem, 3vw, 2.4rem);
}

.journal-lead__body h3 {
	font-size: var(--step-2);
	margin-bottom: 0.7rem;
}

.journal-lead__body p {
	color: var(--ifm-muted);
	margin-bottom: 1.4rem;
}

.journal-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.journal-item {
	display: block;
	padding: 1.6rem 0;
	border-bottom: 1px solid var(--ifm-line);
	text-decoration: none;
	transition: padding-left 0.4s var(--ease);
}

.journal-item:first-child { padding-top: 0; }
.journal-item:hover { padding-left: 0.7rem; }

.journal-item h4 {
	font-size: var(--step-1);
	margin: 0.4rem 0 0.5rem;
	line-height: 1.2;
}

.journal-item p {
	font-size: 0.88rem;
	color: var(--ifm-muted);
	margin: 0;
}

.post-meta {
	font-size: 0.66rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ifm-brown);
}

.entry-content a {
	color: var(--ifm-brown);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: rgba(198, 154, 69, 0.7);
	transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}

.entry-content a:hover {
	color: var(--ifm-green);
	text-decoration-color: var(--ifm-green);
}

.entry-content a[target="_blank"]::after {
	content: "";
	display: inline-block;
	width: 0.5em;
	height: 0.5em;
	margin-left: 0.35em;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
	transform: rotate(45deg) translateY(-0.15em);
}

/* ==========================================================================
   17. Motion refinements
   ========================================================================== */

/* A hairline progress bar under the sticky header. */
.scroll-progress {
	position: absolute;
	left: 0;
	bottom: -1px;
	height: 2px;
	width: 100%;
	transform: scaleX(0);
	transform-origin: 0 50%;
	background: linear-gradient(90deg, var(--ifm-gold), var(--ifm-gold-soft));
	pointer-events: none;
}

/* Images settle in from a slight scale instead of just fading. */
[data-reveal-media] {
	overflow: hidden;
}

[data-reveal-media] img {
	transform: scale(1.08);
	opacity: 0;
	transition: transform 1.4s var(--ease), opacity 1s var(--ease);
}

[data-reveal-media].is-visible img {
	transform: scale(1);
	opacity: 1;
}

.hero__figure.is-visible .hero__seal {
	animation: ifm-seal 0.9s var(--ease) 0.35s both;
}

@keyframes ifm-seal {
	from { opacity: 0; transform: scale(0.8) rotate(-8deg); }
	to { opacity: 1; transform: none; }
}

.rail:hover .rail__track { animation-play-state: paused; }

.btn {
	position: relative;
	overflow: hidden;
}

.btn > span { position: relative; z-index: 1; }

.btn::before {
	content: "";
	position: absolute;
	inset: 0;
	background: currentColor;
	opacity: 0;
	transform: translateY(100%);
	transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.btn:hover::before {
	opacity: 0.08;
	transform: translateY(0);
}

.product-card,
.journal-lead,
.journal-item {
	-webkit-tap-highlight-color: transparent;
}

@media (hover: none) {
	.product-card:hover,
	.journal-lead:hover { transform: none; }
	.journal-item:hover { padding-left: 0; }
}

/* ==========================================================================
   18. Responsive, from large desktop down to small phones
   ========================================================================== */

@media (max-width: 1240px) {
	.hero__grid { gap: clamp(2rem, 4vw, 3.5rem); }
	.nav ul { gap: 1.4rem; }
}

@media (max-width: 1080px) {
	.journal-grid { grid-template-columns: minmax(0, 1fr); }
	.process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.process__step:nth-child(odd) { border-left: 0; }
	.values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.value:nth-child(odd) { border-left: 0; padding-left: 0; }
	.value:nth-child(n+3) { margin-top: 2.4rem; }
}

@media (max-width: 900px) {
	:root { --section-y: clamp(3.5rem, 8vw, 5.5rem); }

	.site-header__inner { min-height: 72px; }
	.brand img { height: 46px; }
	.brand__name { font-size: 1.2rem; }
	.brand__sub { font-size: 0.55rem; letter-spacing: 0.24em; }

	.hero { padding-block: 2.5rem 3.5rem; }
	.hero__grid { gap: 2.5rem; }
	.hero__figure { margin-bottom: 1rem; }

	.split__media { padding-right: 0; padding-bottom: 1rem; }
	.split__media::after { width: 100%; height: 40%; }
	.split__media img { aspect-ratio: 4 / 3; }

	.section-head { margin-bottom: 2.2rem; }

	.map-frame iframe { height: 320px; }
}

@media (max-width: 720px) {
	.topbar { font-size: 0.66rem; }
	.topbar__inner { justify-content: center; gap: 0.9rem; min-height: 36px; }
	.topbar__list { gap: 0.9rem; }
	.topbar__list:first-child { display: none; }
	.topbar__list:last-child { display: flex; }

	.process { grid-template-columns: minmax(0, 1fr); }
	.process__step {
		padding: 1.8rem 0;
		border-left: 0 !important;
	}

	.values { grid-template-columns: minmax(0, 1fr); }
	.value:nth-child(n+3) { margin-top: 0; }

	.packing { overflow-x: auto; }
	.packing table { min-width: 480px; }

	.entry-content { font-size: 1rem; }
	.entry-content table { display: block; overflow-x: auto; }

	.hero__seal {
		width: 96px;
		height: 96px;
		right: 0;
		bottom: -14px;
		font-size: 0.54rem;
	}

	.hero__seal b { font-size: 1.2rem; }
}

@media (max-width: 560px) {
	:root { --gutter: 1.15rem; }

	.hero__facts { margin-top: 2rem; }

	.hero__fact {
		flex: 1 1 100%;
		padding: 1rem 0;
		border-top: 1px solid var(--ifm-line-soft);
	}

	.hero__fact:first-child { border-top: 0; }

	.hero__fact + .hero__fact {
		padding-left: 0;
		border-left: 0;
	}

	.hero__fact strong { font-size: var(--step-1); }

	.btn { width: 100%; padding-inline: 1rem; }
	.btn-row { gap: 0.7rem; }
	.btn-row .btn { flex: 1 1 100%; }

	.filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		padding-bottom: 0.4rem;
	}

	.filters::-webkit-scrollbar { display: none; }
	.filters button { flex: 0 0 auto; }

	.product-card__body { padding: 1.2rem 1.2rem 1.4rem; }

	.spec-table th,
	.spec-table td {
		display: block;
		width: 100%;
		padding: 0.6rem 0.9rem;
	}

	.spec-table th { border-bottom: 0; }
	.spec-table td { padding-top: 0; }

	.product-single__media { padding: 0.6rem; }

	.contact-list li { padding: 1.1rem 0; }

	.map-frame { padding: 0.5rem; }
	.map-frame iframe { height: 260px; }

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

	.to-top { width: 42px; height: 42px; }

	blockquote { padding-left: 1.1rem; }

	.quote-band blockquote { max-width: none; }
}

@media (max-width: 380px) {
	.brand__sub { display: none; }
	.hero__seal { display: none; }
	.chip { font-size: 0.64rem; padding: 0.3rem 0.55rem; }
}

/* Landscape phones: keep the hero from filling the screen with the image. */
@media (max-height: 520px) and (orientation: landscape) {
	.hero__figure img { aspect-ratio: 16 / 9; }
	.nav { padding-top: 4.5rem; }
}

/* ==========================================================================
   19. Menu keyframes and small screen type scale
   ========================================================================== */

@keyframes ifm-nav-in {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: none; }
}

@keyframes ifm-nav-item {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

/* Headlines were still too large on the narrowest phones. */
@media (max-width: 560px) {
	:root {
		--step-4: clamp(2rem, 1.35rem + 3.4vw, 2.6rem);
		--step-3: clamp(1.65rem, 1.2rem + 2.6vw, 2.2rem);
		--step-2: clamp(1.35rem, 1.1rem + 1.6vw, 1.7rem);
		--step-1: clamp(1.08rem, 0.98rem + 0.7vw, 1.25rem);
	}

	.hero__title { line-height: 1.06; }

	.quote-band blockquote { font-size: clamp(1.5rem, 6vw, 2rem); }
}

@media (max-width: 380px) {
	:root { --step-4: clamp(1.8rem, 1.2rem + 3vw, 2.2rem); }
}

/* ==========================================================================
   20. Comments
   ========================================================================== */

.comments-area {
	max-width: 74ch;
	margin-top: clamp(3rem, 6vw, 4.5rem);
	padding-top: clamp(2.5rem, 5vw, 3.5rem);
	border-top: 1px solid var(--ifm-line);
}

.comments-area__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.comments-area__head h2,
.comment-respond .comment-reply-title {
	margin: 0;
	font-size: var(--step-2);
}

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

.comment-list ol.children {
	list-style: none;
	margin: 1.6rem 0 0;
	padding: 0 0 0 clamp(1rem, 4vw, 2.4rem);
	border-left: 1px solid var(--ifm-line);
}

.comment-body {
	position: relative;
	padding: 1.6rem 1.8rem;
	margin-bottom: 1.2rem;
	background: var(--ifm-paper);
	border: 1px solid var(--ifm-line-soft);
	border-radius: var(--radius);
}

.comment-body .avatar {
	float: left;
	width: 44px;
	height: 44px;
	margin: 0 1rem 0.4rem 0;
	border-radius: 50%;
	border: 1px solid var(--ifm-line);
}

.comment-author {
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--ifm-green);
	line-height: 1.3;
}

.comment-author .says { display: none; }

.comment-metadata {
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ifm-brown);
	margin-bottom: 1rem;
}

.comment-metadata a { text-decoration: none; }

.comment-content {
	clear: both;
	font-size: 0.95rem;
}

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

.comment-awaiting-moderation {
	display: inline-block;
	margin-bottom: 0.8rem;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ifm-brown);
}

.reply {
	margin-top: 1rem;
}

.reply a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ifm-green);
	padding-bottom: 0.25rem;
	border-bottom: 1px solid var(--ifm-gold);
	transition: color 0.3s var(--ease);
}

.reply a:hover { color: var(--ifm-brown); }

/* The form */

.comment-respond {
	padding: clamp(1.6rem, 4vw, 2.6rem);
	background: var(--ifm-paper);
	border: 1px solid var(--ifm-line);
	border-top: 2px solid var(--ifm-gold);
}

.comment-respond .comment-reply-title small {
	display: block;
	margin-top: 0.6rem;
	font-family: var(--font-body);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.comment-respond .comment-reply-title small a {
	color: var(--ifm-brown);
	text-decoration: none;
	border-bottom: 1px solid var(--ifm-gold);
}

.comment-form__intro {
	margin: 0.9rem 0 2rem;
	font-size: 0.9rem;
	color: var(--ifm-muted);
}

.comment-form {
	display: grid;
	gap: 1.3rem;
}

.comment-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.3rem;
	margin: 0;
}

.comment-form p { margin: 0; }

.comment-form label {
	display: block;
	margin-bottom: 0.55rem;
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ifm-brown);
}

.comment-form label .required { color: var(--ifm-seal); }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
	width: 100%;
	padding: 0.95rem 1.1rem;
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 350;
	color: var(--ifm-ink);
	background: var(--ifm-cream);
	border: 1px solid var(--ifm-line);
	border-radius: var(--radius);
	transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
	-webkit-appearance: none;
	appearance: none;
}

.comment-form textarea {
	min-height: 170px;
	resize: vertical;
	line-height: 1.65;
}

.comment-form input:focus,
.comment-form textarea:focus,
.search-form input:focus {
	outline: none;
	background: #fff;
	border-color: var(--ifm-gold);
	box-shadow: 0 0 0 3px rgba(198, 154, 69, 0.16);
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
	color: rgba(95, 107, 98, 0.6);
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
}

.comment-form .comment-form-cookies-consent input {
	margin-top: 0.28rem;
	accent-color: var(--ifm-green);
	width: 16px;
	height: 16px;
}

.comment-form .comment-form-cookies-consent label {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 350;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ifm-muted);
}

.comment-form .form-submit { margin: 0.4rem 0 0; }

.comment-form input[type="submit"] {
	display: inline-flex;
	padding: 1rem 2.2rem;
	font-family: var(--font-body);
	font-size: 0.76rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ifm-paper);
	background: var(--ifm-green);
	border: 1px solid var(--ifm-green);
	border-radius: var(--radius);
	cursor: pointer;
	transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
	-webkit-appearance: none;
	appearance: none;
}

.comment-form input[type="submit"]:hover {
	background: var(--ifm-green-deep);
	color: var(--ifm-gold-soft);
	transform: translateY(-2px);
}

.comment-notes,
.logged-in-as {
	font-size: 0.82rem;
	color: var(--ifm-muted);
}

.logged-in-as a,
.comment-notes a {
	color: var(--ifm-brown);
	text-decoration: none;
	border-bottom: 1px solid var(--ifm-gold);
}

.comment-navigation {
	display: flex;
	gap: 1rem;
	margin-bottom: 2rem;
	font-size: 0.78rem;
}

.no-comments {
	font-size: 0.9rem;
	color: var(--ifm-muted);
}

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

.search-form input[type="search"] { flex: 1 1 220px; width: auto; }

@media (max-width: 560px) {
	.comment-form__row { grid-template-columns: minmax(0, 1fr); }
	.comment-body { padding: 1.2rem 1.1rem; }
	.comment-form input[type="submit"] { width: 100%; justify-content: center; }
}

/* ==========================================================================
   21. Overflow guards
   ========================================================================== */

img,
iframe,
video,
table,
pre,
blockquote { max-width: 100%; }

.wrap { max-width: min(var(--wrap), 100%); }
.wrap--wide { max-width: min(var(--wrap-wide), 100%); }
.wrap--narrow { max-width: min(820px, 100%); }

/* Grid and flex children default to min-content width, which is what pushes
   long words and wide images past the edge of a phone screen. */
.hero__grid > *,
.split > *,
.contact-grid > *,
.journal-grid > *,
.product-grid > *,
.site-header__inner > *,
.footer-grid > * {
	min-width: 0;
}

.brand,
.brand__text {
	min-width: 0;
}

.brand__name,
.brand__sub {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-header__inner { flex-wrap: nowrap; }

.topbar__inner > * { min-width: 0; }
.topbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 480px) {
	.brand { gap: 0.6rem; }
	.brand img { height: 40px; }
	.brand__name { font-size: 1rem; letter-spacing: 0.04em; }
	.site-header__inner { min-height: 64px; }
}

/* ==========================================================================
   22. Journal index: featured post and card grid
   ========================================================================== */

.journal-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: stretch;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
	background: var(--ifm-paper);
	border: 1px solid var(--ifm-line-soft);
	text-decoration: none;
	overflow: hidden;
	transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.journal-hero:hover {
	border-color: rgba(198, 154, 69, 0.55);
	box-shadow: 0 40px 70px -50px rgba(11, 36, 24, 0.8);
}

.journal-hero__media {
	position: relative;
	overflow: hidden;
	background: #efe9dc;
	min-height: 260px;
}

.journal-hero__media img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}

.journal-hero:hover .journal-hero__media img { transform: scale(1.04); }

.journal-hero__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(1.6rem, 4vw, 3.2rem);
}

.journal-hero__body h2 {
	font-size: var(--step-2);
	margin: 0.6rem 0 0.9rem;
	line-height: 1.12;
}

.journal-hero__body p {
	color: var(--ifm-muted);
	margin-bottom: 1.6rem;
}

.journal-hero__body .tlink { align-self: flex-start; }

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: clamp(1.4rem, 3vw, 2.4rem);
}

.post-tile {
	display: flex;
	flex-direction: column;
	background: var(--ifm-paper);
	border: 1px solid var(--ifm-line-soft);
	text-decoration: none;
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

.post-tile:hover {
	transform: translateY(-6px);
	border-color: rgba(198, 154, 69, 0.55);
	box-shadow: 0 34px 60px -44px rgba(11, 36, 24, 0.75);
}

.post-tile__media {
	overflow: hidden;
	background: #efe9dc;
}

.post-tile__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 1.1s var(--ease);
}

.post-tile:hover .post-tile__media img { transform: scale(1.05); }

.post-tile__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.5rem 1.5rem 1.7rem;
}

.post-tile__body h3 {
	font-size: var(--step-1);
	line-height: 1.2;
	margin: 0.6rem 0 0.7rem;
}

.post-tile__body p {
	font-size: 0.88rem;
	color: var(--ifm-muted);
	margin: 0 0 1.2rem;
}

.post-tile__foot {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid var(--ifm-line-soft);
	font-size: 0.66rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ifm-brown);
}

@media (max-width: 860px) {
	.journal-hero { grid-template-columns: minmax(0, 1fr); }
	.journal-hero__media { min-height: 0; }
	.journal-hero__media img { aspect-ratio: 16 / 9; }
}

/* If a reveal never fires, the content must still be readable. */
.no-js [data-reveal],
.no-js [data-reveal-media] img {
	opacity: 1;
	transform: none;
}
