/*
Theme Name: Heartgrain Home
Theme URI: https://example.com/heartgrain-home
Author: Heartgrain Home Workshop
Author URI: https://example.com
Description: A hand-written WooCommerce template with a full-height hero, a configurable comparison chart, selling-point strip, image and text blocks, numbered steps, testimonials and a free-form specification table. Every word, picture and figure is edited in the admin. No page builder, no framework, no external requests.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.9
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: heartgrain
Tags: e-commerce, custom-menu, custom-logo, featured-images, full-width-template, translation-ready, block-styles
*/

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

:root {
	--hg-ink: #1e1a16;
	--hg-ink-2: #453d34;
	--hg-muted: #7b6f61;
	--hg-line: #ded5c6;
	--hg-line-2: #ece4d7;
	--hg-paper: #f7f3ec;
	--hg-paper-2: #efe8dc;
	--hg-paper-3: #e6dccc;
	--hg-accent: #d9b98c;
	--hg-honey: #c08b4a;
	--hg-brass: #a97e3f;
	--hg-deep: #4a342a;
	--hg-deep-2: #5e4030;
	--hg-graphite: #2a2724;

	--hg-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
	--hg-sans: "Helvetica Neue", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--hg-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--hg-wrap: 1280px;
	--hg-gut: 32px;
	--hg-radius: 3px;
	--hg-shadow: 0 22px 60px -34px rgba(42, 39, 36, 0.55);
	--hg-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =========================================================================
   2. Reset and base
   ====================================================================== */

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

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

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

body {
	margin: 0;
	background: var(--hg-paper);
	color: var(--hg-ink);
	font-family: var(--hg-sans);
	font-size: 16px;
	line-height: 1.62;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

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

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

h1, h2, h3, h4 { font-family: var(--hg-serif); font-weight: 400; margin: 0; letter-spacing: -0.015em; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0; padding: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

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

.hg-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0);
	clip-path: inset(50%); white-space: nowrap; border: 0;
}

.hg-skip {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--hg-ink); color: var(--hg-paper);
	padding: 12px 20px; font-size: 14px;
}
.hg-skip:focus { left: 12px; top: 12px; }

.hg-wrap {
	width: 100%;
	max-width: var(--hg-wrap);
	margin: 0 auto;
	padding: 0 var(--hg-gut);
}
.hg-wrap--narrow { max-width: 760px; }

.hg-main { display: block; overflow-x: clip; }

/* =========================================================================
   3. Reveal animation — nothing is hidden unless .hg-anim is on <html>
   ====================================================================== */

.hg-anim [data-reveal] {
	opacity: 0;
	transform: translate3d(0, 20px, 0);
	transition: opacity 0.75s var(--hg-ease), transform 0.75s var(--hg-ease);
	transition-delay: var(--hg-delay, 0ms);
}
.hg-anim [data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================================
   4. Type primitives
   ====================================================================== */

.hg-eyebrow {
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hg-brass);
	margin: 0 0 14px;
	font-weight: 500;
}

.hg-head { margin: 0 0 46px; max-width: 780px; }
.hg-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.hg-head__title {
	font-size: clamp(1.95rem, 3.6vw, 3.05rem);
	line-height: 1.06;
	margin: 0 0 16px;
}
.hg-head__lead {
	font-size: 17px;
	color: var(--hg-ink-2);
	margin: 0;
	max-width: 62ch;
}

.hg-rule { display: block; width: 46px; height: 1px; background: var(--hg-line); margin: 26px 0; }

.hg-link {
	display: inline-block;
	font-size: 14px;
	letter-spacing: 0.04em;
	border-bottom: 1px solid var(--hg-brass);
	padding-bottom: 2px;
	color: var(--hg-ink);
	transition: color 0.25s var(--hg-ease), border-color 0.25s var(--hg-ease);
}
.hg-link:hover { color: var(--hg-brass); }

.hg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	font-size: 13px;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	border: 1px solid var(--hg-ink);
	border-radius: 999px;
	background: transparent;
	color: var(--hg-ink);
	cursor: pointer;
	transition: background 0.3s var(--hg-ease), color 0.3s var(--hg-ease), border-color 0.3s var(--hg-ease);
}
.hg-btn--solid { background: var(--hg-ink); color: var(--hg-paper); border-color: var(--hg-ink); }
.hg-btn--solid:hover { background: var(--hg-deep); border-color: var(--hg-deep); }
.hg-btn--ghost:hover { background: var(--hg-ink); color: var(--hg-paper); }

.hg-list { list-style: none; margin: 0; padding: 0; counter-reset: hg; }
.hg-list li {
	position: relative;
	counter-increment: hg;
	padding: 0 0 14px 34px;
	font-size: 15px;
	color: var(--hg-ink-2);
}
.hg-list li::before {
	content: counter(hg, decimal-leading-zero);
	position: absolute;
	left: 0; top: 1px;
	font-family: var(--hg-mono);
	font-size: 11px;
	color: var(--hg-brass);
	letter-spacing: 0.06em;
}

/* =========================================================================
   5. Ticker + header
   ====================================================================== */

.hg-ticker {
	background: var(--hg-graphite);
	color: #d9cdba;
	font-size: 11.5px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}
.hg-ticker__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 38px;
}
.hg-ticker__item { margin: 0; white-space: nowrap; }

.hg-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--hg-paper);
	border-bottom: 1px solid var(--hg-line);
}
.hg-header__inner {
	display: flex;
	align-items: center;
	gap: 26px;
	min-height: 78px;
}

.hg-brand { display: flex; align-items: center; gap: 12px; }
.hg-brand__mark { color: var(--hg-deep); display: block; flex: none; }
.hg-brand__mark svg { display: block; }
.hg-brand__text { display: block; }
.hg-brand__name {
	display: block;
	font-family: var(--hg-serif);
	font-size: 21px;
	line-height: 1.1;
	letter-spacing: -0.01em;
}
.hg-brand__line {
	display: block;
	font-size: 10.5px;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--hg-muted);
	margin-top: 2px;
}

.hg-nav { margin-left: auto; }
.hg-nav__list { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; }
.hg-nav__list > li { position: relative; }
.hg-nav__list > li > a {
	display: block;
	font-size: 13.5px;
	letter-spacing: 0.03em;
	padding: 28px 0;
	color: var(--hg-ink-2);
	transition: color 0.25s var(--hg-ease);
}
.hg-nav__list > li > a:hover,
.hg-nav__list > li.current-menu-item > a,
.hg-nav__list > li.current_page_item > a { color: var(--hg-ink); }
.hg-nav__list > li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 5px; height: 5px;
	margin-left: 7px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.hg-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: -18px;
	min-width: 268px;
	list-style: none;
	margin: 0;
	padding: 12px 0;
	background: var(--hg-paper);
	border: 1px solid var(--hg-line);
	box-shadow: var(--hg-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.24s var(--hg-ease), transform 0.24s var(--hg-ease), visibility 0.24s;
	z-index: 5;
}
.hg-nav__list > li:hover > .sub-menu,
.hg-nav__list > li:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.hg-nav .sub-menu a {
	display: block;
	padding: 9px 22px;
	font-size: 13.5px;
	color: var(--hg-ink-2);
	transition: background 0.2s var(--hg-ease), color 0.2s var(--hg-ease);
}
.hg-nav .sub-menu a:hover { background: var(--hg-paper-2); color: var(--hg-ink); }

.hg-header__tools { display: flex; align-items: center; gap: 6px; }

.hg-iconbtn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: var(--hg-ink);
	cursor: pointer;
	transition: background 0.25s var(--hg-ease), border-color 0.25s var(--hg-ease);
}
.hg-iconbtn:hover { background: var(--hg-paper-2); border-color: var(--hg-line); }
.hg-iconbtn__icon { display: block; line-height: 0; }

.hg-cartcount {
	position: absolute;
	top: 1px; right: 0;
	min-width: 17px; height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--hg-deep);
	color: var(--hg-paper);
	font-size: 10px;
	line-height: 17px;
	text-align: center;
	font-family: var(--hg-mono);
}

.hg-burger {
	display: none;
	width: 42px; height: 40px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px solid var(--hg-line);
	border-radius: 999px;
	background: transparent;
	cursor: pointer;
}
.hg-burger__bar { display: block; width: 16px; height: 1px; background: var(--hg-ink); }

.hg-searchpanel {
	display: none;
	border-top: 1px solid var(--hg-line);
	background: var(--hg-paper-2);
	padding: 22px 0;
}
.hg-searchpanel.is-open { display: block; }

.hg-search { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--hg-line); }
.hg-search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 12px 4px;
	font-size: 17px;
	font-family: var(--hg-serif);
}
.hg-search__input::placeholder { color: var(--hg-muted); }
.hg-search__submit {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	border: 0;
	background: transparent;
	color: var(--hg-ink);
	cursor: pointer;
}

/* Mobile drawer — deliberately a sibling of the header, never a child, and
   the header carries no backdrop-filter, so position:fixed is not trapped. */
.hg-drawer {
	position: fixed;
	inset: 0;
	z-index: 200;
	visibility: hidden;
	pointer-events: none;
}
.hg-drawer.is-open { visibility: visible; pointer-events: auto; }
.hg-drawer__scrim {
	position: absolute;
	inset: 0;
	border: 0;
	padding: 0;
	background: rgba(30, 26, 22, 0.42);
	opacity: 0;
	transition: opacity 0.32s var(--hg-ease);
	cursor: pointer;
}
.hg-drawer.is-open .hg-drawer__scrim { opacity: 1; }
.hg-drawer__panel {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: min(400px, 88vw);
	background: var(--hg-paper);
	border-left: 1px solid var(--hg-line);
	transform: translate3d(100%, 0, 0);
	transition: transform 0.36s var(--hg-ease);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	z-index: 1;
}
.hg-drawer.is-open .hg-drawer__panel { transform: none; }
.hg-drawer__top {
	display: flex; align-items: center; justify-content: space-between;
	padding: 22px 26px;
	border-bottom: 1px solid var(--hg-line);
}
.hg-drawer__title { font-family: var(--hg-serif); font-size: 19px; }
.hg-drawer__close {
	width: 38px; height: 38px;
	border: 1px solid var(--hg-line);
	border-radius: 999px;
	background: transparent;
	font-size: 21px;
	line-height: 1;
	cursor: pointer;
}
.hg-drawer__nav { padding: 12px 26px 6px; }
.hg-drawer__list { list-style: none; margin: 0; padding: 0; }
.hg-drawer__list > li { border-bottom: 1px solid var(--hg-line-2); }
.hg-drawer__list a { display: block; padding: 15px 0; font-size: 16px; }
.hg-drawer__list .sub-menu { list-style: none; margin: 0 0 12px; padding: 0 0 0 16px; border-left: 1px solid var(--hg-line-2); }
.hg-drawer__list .sub-menu a { padding: 9px 0; font-size: 14px; color: var(--hg-muted); }
.hg-drawer__foot {
	margin-top: auto;
	padding: 24px 26px 34px;
	border-top: 1px solid var(--hg-line);
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.hg-drawer__contact { font-size: 14px; color: var(--hg-ink-2); }

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

.hg-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(92vh, 860px);
	padding: 120px 0 74px;
	overflow: hidden;
	background: var(--hg-deep);
	isolation: isolate;
}
.hg-hero__media {
	position: absolute;
	left: 0; right: 0;
	top: -14%;
	height: 128%;
	z-index: -2;
	will-change: transform;
}
.hg-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 55%;
	transform: scale(1.06);
}
.hg-hero__veil {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(28, 22, 17, 0.62) 0%, rgba(28, 22, 17, 0.26) 38%, rgba(28, 22, 17, 0.8) 100%),
		linear-gradient(96deg, rgba(28, 22, 17, 0.44) 0%, rgba(28, 22, 17, 0) 62%);
}
.hg-hero__inner { position: relative; color: var(--hg-paper); }
.hg-hero__eyebrow {
	color: rgba(247, 243, 236, 0.72);
	font-size: 11px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	margin: 0 0 22px;
}
.hg-hero__title {
	font-size: clamp(2.7rem, 7vw, 5.6rem);
	line-height: 0.98;
	letter-spacing: -0.028em;
	margin: 0 0 22px;
	max-width: 15ch;
	text-wrap: balance;
}
.hg-hero__lead {
	font-size: clamp(15px, 1.5vw, 18px);
	color: rgba(247, 243, 236, 0.86);
	max-width: 54ch;
	margin: 0 0 32px;
}
.hg-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 52px; }
.hg-hero__actions .hg-btn--solid { background: var(--hg-paper); color: var(--hg-ink); border-color: var(--hg-paper); }
.hg-hero__actions .hg-btn--solid:hover { background: var(--hg-accent); border-color: var(--hg-accent); color: var(--hg-ink); }
.hg-hero__actions .hg-btn--ghost { border-color: rgba(247, 243, 236, 0.5); color: var(--hg-paper); }
.hg-hero__actions .hg-btn--ghost:hover { background: rgba(247, 243, 236, 0.12); color: var(--hg-paper); }

.hg-hero__facts {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	max-width: 760px;
	margin: 0;
	padding: 26px 0 0;
	border-top: 1px solid rgba(247, 243, 236, 0.25);
}
.hg-hero__facts li { min-width: 0; }
.hg-hero__facts strong {
	display: block;
	font-family: var(--hg-serif);
	font-weight: 400;
	font-size: 25px;
	line-height: 1.1;
	margin-bottom: 5px;
}
.hg-hero__facts span {
	display: block;
	font-size: 12px;
	letter-spacing: 0.05em;
	color: rgba(247, 243, 236, 0.66);
}

.hg-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 26px;
	width: 1px;
	height: 44px;
	background: linear-gradient(180deg, rgba(247, 243, 236, 0) 0%, rgba(247, 243, 236, 0.7) 100%);
}

/* =========================================================================
   7. Homepage sections
   ====================================================================== */

.hg-promise { padding: 78px 0 10px; }
.hg-promise__text {
	font-family: var(--hg-serif);
	font-size: clamp(1.25rem, 2.5vw, 1.95rem);
	line-height: 1.42;
	max-width: 30ch;
	margin: 0;
	text-wrap: balance;
}

.hg-featured { padding: 74px 0; background: var(--hg-paper-2); }
.hg-featured__more { margin: 44px 0 0; text-align: center; }

.hg-grid { list-style: none; display: grid; gap: 30px; margin: 0; padding: 0; }
.hg-grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hg-catsec { padding: 82px 0; }
.hg-cats {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
}
/* Rules drawn per cell rather than by a background showing through 1px
   gaps: an odd number of categories would otherwise leave a filled
   phantom cell at the end of the last row. */
.hg-cats__item {
	background: var(--hg-paper);
	min-width: 0;
	box-shadow: 0 0 0 1px var(--hg-line);
}
.hg-cats__link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 30px 28px 34px;
	height: 100%;
	position: relative;
	transition: background 0.3s var(--hg-ease);
}
.hg-cats__link:hover { background: var(--hg-paper-2); }
.hg-cats__name { font-family: var(--hg-serif); font-size: 21px; line-height: 1.2; }
.hg-cats__count {
	font-family: var(--hg-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	color: var(--hg-brass);
	text-transform: uppercase;
}
.hg-cats__desc { font-size: 13.5px; color: var(--hg-muted); margin-top: 4px; }
.hg-cats__arrow {
	position: absolute;
	right: 26px;
	bottom: 30px;
	width: 18px; height: 1px;
	background: var(--hg-ink);
	transition: width 0.3s var(--hg-ease);
}
.hg-cats__arrow::after {
	content: "";
	position: absolute;
	right: 0; top: -3px;
	width: 7px; height: 7px;
	border-top: 1px solid var(--hg-ink);
	border-right: 1px solid var(--hg-ink);
	transform: rotate(45deg);
}
.hg-cats__link:hover .hg-cats__arrow { width: 30px; }

.hg-journal { padding: 84px 0; }
.hg-journal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.hg-jcard { min-width: 0; }
.hg-jcard__link { display: block; }
.hg-jcard__media { display: block; overflow: hidden; border-radius: var(--hg-radius); }
.hg-jcard__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.7s var(--hg-ease); }
.hg-jcard__link:hover .hg-jcard__img { transform: scale(1.04); }
.hg-jcard__body { display: block; padding-top: 18px; }
.hg-jcard__date {
	display: block;
	font-family: var(--hg-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	color: var(--hg-brass);
	margin-bottom: 8px;
}
.hg-jcard__title { display: block; font-family: var(--hg-serif); font-size: 20px; line-height: 1.25; margin-bottom: 8px; }
.hg-jcard__excerpt { display: block; font-size: 14px; color: var(--hg-muted); }

.hg-cta { padding: 0 0 90px; }
.hg-cta__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
	gap: clamp(32px, 5vw, 70px);
	align-items: center;
	padding: clamp(38px, 5vw, 64px);
	background: var(--hg-paper-2);
	border: 1px solid var(--hg-line);
	border-radius: var(--hg-radius);
}
.hg-cta__title { font-size: clamp(1.55rem, 2.8vw, 2.25rem); line-height: 1.16; margin: 0 0 18px; max-width: 20ch; }
.hg-cta__text p { color: var(--hg-ink-2); font-size: 15.5px; }
.hg-cta__lines { display: flex; gap: 26px; flex-wrap: wrap; margin: 24px 0 12px; }
.hg-cta__hours { font-size: 13px; color: var(--hg-muted); margin: 0; }
.hg-cta__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--hg-radius); }

/* =========================================================================
   8. Page heads, prose, listings
   ====================================================================== */

.hg-pagehead {
	padding: 74px 0 44px;
	border-bottom: 1px solid var(--hg-line);
	margin-bottom: 52px;
}
.hg-pagehead__title {
	font-size: clamp(2.1rem, 4.6vw, 3.5rem);
	line-height: 1.04;
	margin: 0 0 16px;
	max-width: 18ch;
	text-wrap: balance;
}
.hg-pagehead__lead { font-size: 17px; color: var(--hg-ink-2); max-width: 62ch; margin: 0; }
.hg-pagehead__search { margin-top: 26px; max-width: 520px; }

.hg-page__hero, .hg-article__hero { margin: 0 0 48px; }
.hg-page__img, .hg-article__img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--hg-radius);
}

.hg-prose { font-size: 17px; line-height: 1.72; color: var(--hg-ink-2); padding-bottom: 76px; }
.hg-prose > * { margin-bottom: 1.3em; }
.hg-prose h2 {
	font-size: clamp(1.4rem, 2.4vw, 1.95rem);
	line-height: 1.2;
	color: var(--hg-ink);
	margin: 2.1em 0 0.6em;
}
.hg-prose h3 {
	font-size: clamp(1.15rem, 1.9vw, 1.4rem);
	color: var(--hg-ink);
	margin: 1.7em 0 0.5em;
}
.hg-prose h2:first-child, .hg-prose h3:first-child { margin-top: 0; }
.hg-prose ul, .hg-prose ol { padding-left: 1.25em; margin-bottom: 1.4em; }
.hg-prose li { margin-bottom: 0.5em; }
.hg-prose a { border-bottom: 1px solid var(--hg-brass); }
.hg-prose a:hover { color: var(--hg-brass); }
.hg-prose blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 26px;
	border-left: 2px solid var(--hg-brass);
	font-family: var(--hg-serif);
	font-size: 1.2em;
	line-height: 1.45;
	color: var(--hg-ink);
}
.hg-prose blockquote p:last-child { margin-bottom: 0; }
.hg-prose img { border-radius: var(--hg-radius); margin: 1.6em 0; }
.hg-prose figure { margin: 2em 0; }
.hg-prose figcaption { font-size: 13px; color: var(--hg-muted); margin-top: 10px; }
.hg-prose code {
	font-family: var(--hg-mono);
	font-size: 0.86em;
	background: var(--hg-paper-2);
	padding: 2px 6px;
	border-radius: 2px;
}
.hg-prose hr { border: 0; border-top: 1px solid var(--hg-line); margin: 2.6em 0; }
.hg-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hg-prose th, .hg-prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--hg-line); }
.hg-prose th { font-weight: 500; color: var(--hg-ink); }

.hg-listwrap { padding-bottom: 86px; }

.hg-postlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.hg-postcard { min-width: 0; }
.hg-postcard__link { display: block; }
.hg-postcard__media { display: block; overflow: hidden; border-radius: var(--hg-radius); }
.hg-postcard__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.7s var(--hg-ease); }
.hg-postcard__link:hover .hg-postcard__img { transform: scale(1.04); }
.hg-postcard__body { display: block; padding-top: 18px; }
.hg-postcard__date {
	display: block; font-family: var(--hg-mono); font-size: 11px;
	letter-spacing: 0.08em; color: var(--hg-brass); margin-bottom: 8px;
}
.hg-postcard__title { display: block; font-family: var(--hg-serif); font-size: 21px; line-height: 1.24; margin-bottom: 9px; }
.hg-postcard__excerpt { display: block; font-size: 14px; color: var(--hg-muted); margin-bottom: 12px; }
.hg-postcard__more { display: inline-block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--hg-brass); padding-bottom: 2px; }

.hg-article__head { padding: 74px 0 30px; }
.hg-article__title { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.06; margin: 0 0 18px; text-wrap: balance; }
.hg-postmeta {
	display: flex; align-items: center; gap: 10px;
	font-family: var(--hg-mono); font-size: 11.5px;
	letter-spacing: 0.07em; text-transform: uppercase; color: var(--hg-muted);
	margin: 0;
}
.hg-postmeta__dot { color: var(--hg-line); }

.hg-article__foot { padding-bottom: 80px; }
.hg-adjacent {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	padding-top: 34px;
	border-top: 1px solid var(--hg-line);
}
.hg-adjacent__item {
	display: block; min-width: 0;
	padding: 20px 22px;
	border: 1px solid var(--hg-line);
	border-radius: var(--hg-radius);
	transition: background 0.28s var(--hg-ease);
}
.hg-adjacent__item:hover { background: var(--hg-paper-2); }
.hg-adjacent__item--next { text-align: right; }
.hg-adjacent__dir {
	display: block; font-size: 10.5px; letter-spacing: 0.15em;
	text-transform: uppercase; color: var(--hg-brass); margin-bottom: 7px;
}
.hg-adjacent__title { display: block; font-family: var(--hg-serif); font-size: 17px; line-height: 1.3; }

.hg-results { list-style: none; display: grid; gap: 18px; margin: 0; padding: 0; }
.hg-result { min-width: 0; }
.hg-result__link {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: 26px;
	align-items: center;
	padding: 18px;
	border: 1px solid var(--hg-line);
	border-radius: var(--hg-radius);
	transition: background 0.28s var(--hg-ease);
}
.hg-result__link:hover { background: var(--hg-paper-2); }
.hg-result__media { display: block; overflow: hidden; border-radius: 2px; }
.hg-result__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hg-result__body { display: block; min-width: 0; }
.hg-result__kind {
	display: inline-block; font-family: var(--hg-mono); font-size: 10.5px;
	letter-spacing: 0.12em; text-transform: uppercase; color: var(--hg-brass); margin-bottom: 7px;
}
.hg-result__title { display: block; font-family: var(--hg-serif); font-size: 20px; line-height: 1.24; margin-bottom: 7px; }
.hg-result__excerpt { display: block; font-size: 14px; color: var(--hg-muted); }
.hg-result__price { display: block; margin-top: 9px; font-size: 15px; }

.hg-none { padding: 20px 0 90px; max-width: 620px; }
.hg-none__title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 14px; }
.hg-none__text { color: var(--hg-ink-2); margin-bottom: 26px; }
.hg-none__links { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 26px; }

.hg-404 {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
	gap: clamp(30px, 5vw, 70px);
	align-items: center;
	padding: 82px 0 100px;
}
.hg-404__title { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; margin: 0 0 16px; max-width: 16ch; }
.hg-404__lead { color: var(--hg-ink-2); max-width: 50ch; }
.hg-404__search { max-width: 460px; margin: 28px 0; }
.hg-404__links { list-style: none; display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; }
.hg-404__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--hg-radius); }

.hg-pagination { padding: 56px 0 0; }
.hg-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hg-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--hg-line); border-radius: 999px;
	font-size: 13px; color: var(--hg-ink-2);
	transition: background 0.25s var(--hg-ease), color 0.25s var(--hg-ease);
}
.hg-pagination .page-numbers:hover { background: var(--hg-paper-2); }
.hg-pagination .page-numbers.current { background: var(--hg-ink); border-color: var(--hg-ink); color: var(--hg-paper); }
.hg-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }

/* =========================================================================
   9. Comments
   ====================================================================== */

.comment-respond { padding-top: 40px; }
.comment-reply-title { font-size: 1.4rem; margin-bottom: 14px; }
.comment-form label { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hg-muted); margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--hg-line);
	border-radius: var(--hg-radius);
	background: var(--hg-paper);
	font-size: 15px;
	margin-bottom: 16px;
}
.comment-form .submit {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 14px 28px; border: 1px solid var(--hg-ink); border-radius: 999px;
	background: var(--hg-ink); color: var(--hg-paper);
	font-size: 12.5px; letter-spacing: 0.11em; text-transform: uppercase; cursor: pointer;
}
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list li { border-top: 1px solid var(--hg-line); padding: 22px 0; }

/* =========================================================================
   10. Footer
   ====================================================================== */

.hg-footer { background: var(--hg-graphite); color: rgba(247, 243, 236, 0.78); }
.hg-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr;
	gap: clamp(28px, 4vw, 60px);
	padding-top: 74px;
	padding-bottom: 62px;
}
.hg-footer__col { min-width: 0; }
.hg-footer__name { font-family: var(--hg-serif); font-size: 24px; color: var(--hg-paper); margin: 0 0 14px; }
.hg-footer__h {
	font-family: var(--hg-sans);
	font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--hg-accent); margin: 0 0 18px;
}
.hg-footer__note { font-size: 13.5px; line-height: 1.65; color: rgba(247, 243, 236, 0.62); }
.hg-footer__list { list-style: none; margin: 0; padding: 0; }
.hg-footer__list li { margin-bottom: 10px; }
.hg-footer__list a { font-size: 14px; color: rgba(247, 243, 236, 0.76); transition: color 0.25s var(--hg-ease); }
.hg-footer__list a:hover { color: var(--hg-accent); }
.hg-footer__address { font-style: normal; font-size: 14px; line-height: 1.6; color: rgba(247, 243, 236, 0.76); margin-bottom: 14px; }
.hg-footer__hours { font-size: 13px; color: rgba(247, 243, 236, 0.55); }
.hg-footer__contact a { font-size: 14px; color: var(--hg-accent); border-bottom: 1px solid rgba(217, 185, 140, 0.35); }
.hg-widget__title { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hg-accent); font-family: var(--hg-sans); margin: 0 0 16px; }
.hg-widget ul { list-style: none; }
.hg-widget li { margin-bottom: 9px; font-size: 14px; }

.hg-footer__bar { border-top: 1px solid rgba(247, 243, 236, 0.13); }
.hg-footer__barinner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px;
}
.hg-footer__copy, .hg-footer__made { margin: 0; font-size: 12px; color: rgba(247, 243, 236, 0.45); }

/* =========================================================================
   11. Responsive
   ====================================================================== */

@media (max-width: 1180px) {
	.hg-grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hg-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
}

@media (max-width: 1024px) {
	:root { --hg-gut: 26px; }
	.hg-nav { display: none; }
	.hg-burger { display: inline-flex; }
	.hg-header__tools { margin-left: auto; }
	.hg-ticker__item--mid { display: none; }
	.hg-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hg-cta__inner, .hg-404 { grid-template-columns: minmax(0, 1fr); }
	.hg-postlist, .hg-journal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
	:root { --hg-gut: 20px; }
	body { font-size: 15.5px; }
	.hg-ticker__inner { justify-content: center; }
	.hg-ticker__item:not(:first-child) { display: none; }
	.hg-header__inner { min-height: 66px; }
	.hg-brand__line { display: none; }
	.hg-hero { min-height: 86vh; padding: 92px 0 56px; }
	.hg-hero__facts { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.hg-hero__facts li { display: flex; align-items: baseline; gap: 12px; }
	.hg-hero__facts strong { font-size: 20px; margin: 0; flex: none; }
	.hg-grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.hg-cats { grid-template-columns: minmax(0, 1fr); }
	.hg-postlist, .hg-journal__grid { grid-template-columns: minmax(0, 1fr); }
	.hg-result__link { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
	.hg-adjacent { grid-template-columns: minmax(0, 1fr); }
	.hg-adjacent__item--next { text-align: left; }
	.hg-footer__inner { grid-template-columns: minmax(0, 1fr); }
	.hg-pagehead { padding: 48px 0 32px; margin-bottom: 38px; }
	.hg-promise { padding: 54px 0 0; }
	.hg-featured, .hg-catsec, .hg-journal { padding: 56px 0; }
	.hg-prose { font-size: 16px; }
}

@media (max-width: 420px) {
	.hg-grid--products { grid-template-columns: minmax(0, 1fr); }
	.hg-hero__actions .hg-btn { width: 100%; }
}

/* Belt and braces: if scripting is off, nothing stays invisible. */
@media (prefers-reduced-motion: reduce) {
	.hg-anim [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
	.hg-jcard__img, .hg-postcard__img { transition: none; }
}

