/*
Theme Name: Hawaiian Dress Guide
Theme URI: https://hawaiiandresses.net/
Author: Hawaiian Dress Guide Editorial Team
Author URI: https://hawaiiandresses.net/
Description: A warm island-editorial magazine theme for long-form content about Hawaiian dresses — styles, fabrics, fit, occasions, and care. Elegant serif display type, a spacious editorial grid, tasteful motion, and a showpiece front page.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hdg-theme
Tags: blog, news, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   1. Fonts (self-hosted)
   ========================================================= */
@font-face {
	font-family: 'Playfair Display';
	src: url('assets/fonts/playfair-display-latin-400-normal.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Playfair Display';
	src: url('assets/fonts/playfair-display-latin-400-italic.woff2') format('woff2');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: 'Playfair Display';
	src: url('assets/fonts/playfair-display-latin-700-normal.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Playfair Display';
	src: url('assets/fonts/playfair-display-latin-900-normal.woff2') format('woff2');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Source Sans 3';
	src: url('assets/fonts/source-sans-3-latin-400-normal.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Source Sans 3';
	src: url('assets/fonts/source-sans-3-latin-400-italic.woff2') format('woff2');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: 'Source Sans 3';
	src: url('assets/fonts/source-sans-3-latin-600-normal.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Source Sans 3';
	src: url('assets/fonts/source-sans-3-latin-700-normal.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* =========================================================
   2. Design tokens
   ========================================================= */
:root {
	--hdg-bg: #FAF6F1;
	--hdg-surface: #FFFFFF;
	--hdg-sand: #F1E9DC;
	--hdg-sand-deep: #E7DCCA;
	--hdg-ink: #2A2721;
	--hdg-ink-soft: #5A544A;
	--hdg-palm: #1F3A34;
	--hdg-palm-soft: #2C4C44;
	--hdg-on-palm: #F5EFE4;
	--hdg-accent: #B04E33;
	--hdg-accent-dark: #94402A;
	--hdg-lagoon: #3E6B64;
	--hdg-gold: #C9A227;
	--hdg-line: #E4DACA;
	--hdg-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--hdg-sans: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--hdg-space-1: 0.5rem;
	--hdg-space-2: 1rem;
	--hdg-space-3: 1.5rem;
	--hdg-space-4: 2.5rem;
	--hdg-space-5: 4rem;
	--hdg-space-6: 6.5rem;
	--hdg-radius: 6px;
	--hdg-radius-lg: 14px;
	--hdg-shadow: 0 2px 6px rgba(42, 39, 33, 0.06), 0 14px 34px rgba(42, 39, 33, 0.08);
	--hdg-shadow-lift: 0 6px 14px rgba(42, 39, 33, 0.10), 0 24px 48px rgba(42, 39, 33, 0.14);
	--hdg-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--hdg-measure: 68ch;
}

/* =========================================================
   3. Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--hdg-bg);
	color: var(--hdg-ink);
	font-family: var(--hdg-sans);
	font-size: 1.0625rem;
	line-height: 1.7;
	overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--hdg-serif);
	font-weight: 700;
	line-height: 1.18;
	color: var(--hdg-ink);
	margin: 0 0 0.6em;
	overflow-wrap: break-word;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
p { margin: 0 0 1.4em; }
a { color: var(--hdg-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s ease; }
a:hover { color: var(--hdg-accent-dark); }
:focus-visible { outline: 3px solid var(--hdg-lagoon); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--hdg-sand-deep); }
button { font-family: inherit; cursor: pointer; }
blockquote {
	margin: 2.2em 0;
	padding: 0.4em 0 0.4em 1.6em;
	border-left: 3px solid var(--hdg-gold);
	font-family: var(--hdg-serif);
	font-size: 1.25em;
	font-style: italic;
	color: var(--hdg-palm);
}
blockquote cite { display: block; margin-top: 0.6em; font-family: var(--hdg-sans); font-style: normal; font-size: 0.78em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hdg-ink-soft); }
hr { border: 0; border-top: 1px solid var(--hdg-line); margin: 3em auto; max-width: 12rem; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.6em; }
th, td { border: 1px solid var(--hdg-line); padding: 0.6em 0.9em; text-align: left; }
th { background: var(--hdg-sand); font-weight: 600; }
code, kbd { background: var(--hdg-sand); border-radius: 3px; padding: 0.1em 0.4em; font-size: 0.9em; }
pre { background: var(--hdg-palm); color: var(--hdg-on-palm); padding: 1.2em; border-radius: var(--hdg-radius); overflow-x: auto; }
pre code { background: none; padding: 0; }

.hdg-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 10000;
	background: var(--hdg-palm);
	color: var(--hdg-on-palm);
	padding: 0.8em 1.4em;
	border-radius: 0 0 var(--hdg-radius) 0;
	text-decoration: none;
}
.hdg-skip-link:focus { left: 0; color: var(--hdg-on-palm); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--hdg-surface); clip: auto !important; clip-path: none;
	color: var(--hdg-ink); display: block; font-size: 0.9rem; font-weight: 700;
	height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px;
	text-decoration: none; top: 5px; width: auto; z-index: 100000;
}

.hdg-container { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.hdg-container--narrow { width: min(100% - 3rem, 46rem); }
.hdg-container--wide { width: min(100% - 3rem, 82rem); }

/* Small-caps editorial kicker */
.hdg-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.7em;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--hdg-lagoon);
	margin-bottom: var(--hdg-space-2);
}
.hdg-kicker::before { content: ''; width: 2.2rem; height: 1px; background: var(--hdg-gold); }

.hdg-btn {
	display: inline-block;
	background: var(--hdg-accent);
	color: #FFFFFF;
	font-family: var(--hdg-sans);
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 0.03em;
	padding: 0.85em 1.9em;
	border: 2px solid var(--hdg-accent);
	border-radius: 999px;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s var(--hdg-ease), box-shadow 0.25s ease;
	min-height: 44px;
}
.hdg-btn:hover { background: var(--hdg-accent-dark); border-color: var(--hdg-accent-dark); color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(148, 64, 42, 0.28); }
.hdg-btn:active { transform: translateY(0) scale(0.98); }
.hdg-btn--ghost { background: transparent; color: var(--hdg-palm); border-color: var(--hdg-palm); }
.hdg-btn--ghost:hover { background: var(--hdg-palm); color: var(--hdg-on-palm); box-shadow: 0 10px 22px rgba(31, 58, 52, 0.24); }
.hdg-btn--light { background: var(--hdg-on-palm); border-color: var(--hdg-on-palm); color: var(--hdg-palm); }
.hdg-btn--light:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--hdg-palm); }

/* =========================================================
   4. Header
   ========================================================= */
.hdg-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(250, 246, 241, 0.92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--hdg-line);
}
.hdg-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--hdg-space-3);
	min-height: 4.4rem;
}
.hdg-brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.hdg-brand__logo img { max-height: 3rem; width: auto; }
.hdg-brand__name {
	font-family: var(--hdg-serif);
	font-weight: 900;
	font-size: 1.45rem;
	color: var(--hdg-ink);
	letter-spacing: 0.01em;
	line-height: 1.1;
}
.hdg-brand:hover .hdg-brand__name { color: var(--hdg-palm); }
.hdg-brand__tag { display: block; font-family: var(--hdg-sans); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--hdg-lagoon); margin-top: 0.15rem; }

.hdg-nav ul { list-style: none; display: flex; gap: 0.4rem; margin: 0; padding: 0; }
.hdg-nav a {
	display: inline-block;
	padding: 0.7em 0.9em;
	font-weight: 600;
	font-size: 0.98rem;
	color: var(--hdg-ink);
	text-decoration: none;
	border-radius: var(--hdg-radius);
	position: relative;
}
.hdg-nav a::after {
	content: '';
	position: absolute;
	left: 0.9em; right: 0.9em; bottom: 0.45em;
	height: 2px;
	background: var(--hdg-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s var(--hdg-ease);
}
.hdg-nav a:hover::after, .hdg-nav .current-menu-item > a::after { transform: scaleX(1); }
.hdg-nav a:hover { color: var(--hdg-palm); }
.hdg-nav .sub-menu { display: none; }

.hdg-nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--hdg-line);
	border-radius: var(--hdg-radius);
	width: 44px; height: 44px;
	align-items: center; justify-content: center;
	color: var(--hdg-ink);
}
.hdg-nav-toggle svg { width: 22px; height: 22px; }
.hdg-nav-toggle .hdg-icon-close { display: none; }
.hdg-nav-toggle[aria-expanded="true"] .hdg-icon-close { display: block; }
.hdg-nav-toggle[aria-expanded="true"] .hdg-icon-menu { display: none; }

@media (max-width: 860px) {
	.hdg-nav-toggle { display: inline-flex; }
	.hdg-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--hdg-bg);
		border-bottom: 1px solid var(--hdg-line);
		box-shadow: var(--hdg-shadow);
		display: none;
		padding: var(--hdg-space-2) var(--hdg-space-3) var(--hdg-space-3);
	}
	.hdg-nav.is-open { display: block; }
	.hdg-nav ul { flex-direction: column; gap: 0; }
	.hdg-nav a { display: block; padding: 0.85em 0.4em; font-size: 1.05rem; border-bottom: 1px solid var(--hdg-line); border-radius: 0; }
	.hdg-nav li:last-child a { border-bottom: 0; }
	.hdg-nav a::after { display: none; }
}

/* =========================================================
   5. Front page — hero
   ========================================================= */
.hdg-hero {
	position: relative;
	min-height: min(92vh, 56rem);
	display: flex;
	align-items: center;
	overflow: hidden;
	padding: var(--hdg-space-5) 0 7.5rem;
	background:
		radial-gradient(52rem 30rem at 112% -8%, rgba(62, 107, 100, 0.10), transparent 60%),
		radial-gradient(40rem 26rem at -12% 110%, rgba(201, 162, 39, 0.10), transparent 60%),
		var(--hdg-bg);
}
.hdg-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
	position: relative;
	z-index: 3;
}
.hdg-hero__title {
	font-size: clamp(2.5rem, 5.6vw, 4.35rem);
	font-weight: 900;
	line-height: 1.06;
	letter-spacing: -0.015em;
	margin-bottom: 0.45em;
}
.hdg-hero__title em { font-style: italic; color: var(--hdg-accent); }
.hdg-hero__sub {
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	color: var(--hdg-ink-soft);
	max-width: 34rem;
	margin-bottom: var(--hdg-space-4);
}
.hdg-hero__actions { display: flex; flex-wrap: wrap; gap: var(--hdg-space-2); }

.hdg-hero__media {
	position: relative;
	justify-self: center;
	width: min(100%, 26rem);
}
.hdg-hero__frame {
	position: relative;
	border-radius: 12rem 12rem var(--hdg-radius-lg) var(--hdg-radius-lg);
	overflow: hidden;
	box-shadow: var(--hdg-shadow-lift);
	aspect-ratio: 3 / 4.6;
	background: var(--hdg-sand);
}
.hdg-hero__frame img, .hdg-hero__frame video {
	width: 100%; height: 112%;
	object-fit: cover;
	will-change: transform;
}
.hdg-hero__frame::after {
	content: '';
	position: absolute; inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
	pointer-events: none;
}
.hdg-hero__media::before {
	content: '';
	position: absolute;
	inset: -1.1rem -1.1rem auto auto;
	width: 62%; height: 62%;
	border: 1px solid var(--hdg-gold);
	border-radius: 10rem 10rem 0 0;
	z-index: -1;
}
.hdg-hero__caption {
	margin-top: 0.9rem;
	font-size: 0.78rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hdg-ink-soft);
	text-align: center;
}

/* Drifting botanicals */
.hdg-botanicals { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hdg-botanical { position: absolute; opacity: 0.16; color: var(--hdg-palm); }
.hdg-botanical--gold { color: var(--hdg-gold); opacity: 0.22; }
.hdg-botanical--coral { color: var(--hdg-accent); opacity: 0.14; }
.hdg-botanical svg { width: 100%; height: 100%; display: block; }
.hdg-anim-drift { animation: hdg-drift 14s ease-in-out infinite alternate; }
.hdg-anim-drift-slow { animation: hdg-drift 22s ease-in-out infinite alternate; }
.hdg-anim-sway { animation: hdg-sway 17s ease-in-out infinite alternate; }
@keyframes hdg-drift {
	from { transform: translate3d(0, 0, 0) rotate(0deg); }
	to { transform: translate3d(2.2rem, -1.6rem, 0) rotate(9deg); }
}
@keyframes hdg-sway {
	from { transform: translate3d(0, 0, 0) rotate(-5deg); }
	to { transform: translate3d(-1.8rem, 1.2rem, 0) rotate(6deg); }
}

/* Ocean wave divider */
.hdg-waves {
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	z-index: 2;
	line-height: 0;
	pointer-events: none;
}
.hdg-waves svg { width: 100%; height: clamp(3.5rem, 8vw, 6.5rem); display: block; }
.hdg-wave-back, .hdg-wave-front { will-change: transform; }
.hdg-wave-back { animation: hdg-wave-slide 18s linear infinite; }
.hdg-wave-front { animation: hdg-wave-slide 11s linear infinite reverse; }
@keyframes hdg-wave-slide {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-25%, 0, 0); }
}

@media (max-width: 860px) {
	.hdg-hero { min-height: 0; padding-bottom: 6rem; }
	.hdg-hero__inner { grid-template-columns: 1fr; gap: var(--hdg-space-4); }
	.hdg-hero__media { width: min(100%, 20rem); order: -1; }
	.hdg-hero__frame { aspect-ratio: 3 / 4; }
}

/* =========================================================
   6. Front page — sections
   ========================================================= */
.hdg-section { padding: var(--hdg-space-6) 0; }
.hdg-section__head { max-width: 44rem; margin-bottom: var(--hdg-space-5); }
.hdg-section__head--center { margin-inline: auto; text-align: center; }
.hdg-section__head--center .hdg-kicker { justify-content: center; }
.hdg-section__head--center .hdg-kicker::before { display: none; }
.hdg-section__lede { color: var(--hdg-ink-soft); font-size: 1.1rem; }

/* Scroll reveal */
.hdg-reveal { opacity: 0; transform: translate3d(0, 2.2rem, 0); transition: opacity 0.7s var(--hdg-ease), transform 0.7s var(--hdg-ease); }
.hdg-reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }

/* Style explorer */
.hdg-styles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--hdg-space-3);
}
.hdg-style-card {
	position: relative;
	display: block;
	border-radius: var(--hdg-radius-lg);
	overflow: hidden;
	text-decoration: none;
	box-shadow: var(--hdg-shadow);
	transition: transform 0.45s var(--hdg-ease), box-shadow 0.45s ease;
	background: var(--hdg-sand);
}
.hdg-style-card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--hdg-shadow-lift); }
.hdg-style-card__img { aspect-ratio: 3 / 4; overflow: hidden; }
.hdg-style-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--hdg-ease); will-change: transform; }
.hdg-style-card:hover .hdg-style-card__img img { transform: scale(1.06); }
.hdg-style-card__body {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 3.6rem 1.4rem 1.2rem;
	background: linear-gradient(to top, rgba(23, 32, 29, 0.88), rgba(23, 32, 29, 0.42) 55%, transparent);
}
.hdg-style-card__title { display: block; font-family: var(--hdg-serif); font-size: 1.5rem; font-weight: 700; color: #FFFFFF; margin: 0 0 0.25em; }
.hdg-style-card__meta { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); display: inline-flex; align-items: center; gap: 0.5em; }
.hdg-style-card__meta svg { width: 1em; height: 1em; transition: transform 0.3s var(--hdg-ease); }
.hdg-style-card:hover .hdg-style-card__meta svg { transform: translateX(4px); }
@media (max-width: 960px) { .hdg-styles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hdg-styles-grid { grid-template-columns: 1fr; } }

/* Featured articles */
.hdg-featured { background: var(--hdg-surface); border-top: 1px solid var(--hdg-line); border-bottom: 1px solid var(--hdg-line); }
.hdg-articles-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: var(--hdg-space-3);
}
.hdg-post-card { grid-column: span 4; display: flex; flex-direction: column; background: var(--hdg-bg); border-radius: var(--hdg-radius-lg); overflow: hidden; box-shadow: var(--hdg-shadow); transition: transform 0.45s var(--hdg-ease), box-shadow 0.45s ease; }
.hdg-post-card:hover { transform: translateY(-6px); box-shadow: var(--hdg-shadow-lift); }
.hdg-post-card--lead { grid-column: span 8; grid-row: span 2; }
.hdg-post-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--hdg-sand); }
.hdg-post-card--lead .hdg-post-card__img { aspect-ratio: 16 / 11; }
.hdg-post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--hdg-ease); }
.hdg-post-card:hover .hdg-post-card__img img { transform: scale(1.05); }
.hdg-post-card__body { padding: var(--hdg-space-3); display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.hdg-post-card__cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hdg-lagoon); }
.hdg-post-card__cat a { color: inherit; text-decoration: none; }
.hdg-post-card__cat a:hover { color: var(--hdg-accent); }
.hdg-post-card__title { font-size: 1.3rem; margin: 0; }
.hdg-post-card--lead .hdg-post-card__title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.hdg-articles-grid .hdg-post-card:nth-child(4), .hdg-articles-grid .hdg-post-card:nth-child(5) { grid-column: span 6; }
.hdg-post-card__title a { color: var(--hdg-ink); text-decoration: none; }
.hdg-post-card__title a:hover { color: var(--hdg-accent); }
.hdg-post-card__excerpt { color: var(--hdg-ink-soft); font-size: 0.98rem; margin: 0; }
.hdg-post-card__date { margin-top: auto; padding-top: 0.6rem; font-size: 0.82rem; letter-spacing: 0.06em; color: var(--hdg-ink-soft); }
@media (max-width: 960px) {
	.hdg-post-card, .hdg-post-card--lead { grid-column: span 6; grid-row: auto; }
}
@media (max-width: 640px) {
	.hdg-post-card, .hdg-post-card--lead { grid-column: span 12; }
}

/* Story band */
.hdg-story {
	position: relative;
	background: var(--hdg-palm);
	color: var(--hdg-on-palm);
	overflow: hidden;
}
.hdg-story .hdg-kicker { color: var(--hdg-gold); }
.hdg-story__inner {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
	position: relative;
	z-index: 2;
}
.hdg-story h2 { color: #FFFFFF; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.hdg-story p { color: rgba(245, 239, 228, 0.88); font-size: 1.08rem; }
.hdg-story__media { position: relative; }
.hdg-story__media figure { position: relative; z-index: 1; }
.hdg-story__media figure {
	border-radius: var(--hdg-radius-lg);
	overflow: hidden;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
	transform: rotate(1.5deg);
}
.hdg-story__media img { width: 100%; height: auto; will-change: transform; }
.hdg-story__media::before {
	content: '';
	position: absolute;
	inset: auto auto -1.4rem -1.4rem;
	width: 55%; height: 55%;
	border: 1px solid rgba(201, 162, 39, 0.55);
	border-radius: var(--hdg-radius-lg);
	z-index: 0;
}
.hdg-story .hdg-botanical { opacity: 0.08; color: #FFFFFF; }
@media (max-width: 860px) {
	.hdg-story__inner { grid-template-columns: 1fr; }
	.hdg-story__media { max-width: 24rem; }
}

/* Guides teaser */
.hdg-guides-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--hdg-space-3); }
.hdg-guide-card {
	display: block;
	text-align: center;
	text-decoration: none;
	background: var(--hdg-surface);
	border: 1px solid var(--hdg-line);
	border-radius: var(--hdg-radius-lg);
	padding: var(--hdg-space-4) var(--hdg-space-3);
	transition: transform 0.4s var(--hdg-ease), box-shadow 0.4s ease, border-color 0.3s ease;
}
.hdg-guide-card:hover { transform: translateY(-5px); box-shadow: var(--hdg-shadow); border-color: var(--hdg-sand-deep); }
.hdg-guide-card__icon {
	width: 3.4rem; height: 3.4rem;
	margin: 0 auto var(--hdg-space-2);
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--hdg-sand);
	color: var(--hdg-palm);
	transition: background 0.3s ease, color 0.3s ease, transform 0.4s var(--hdg-ease);
}
.hdg-guide-card:hover .hdg-guide-card__icon { background: var(--hdg-palm); color: var(--hdg-on-palm); transform: scale(1.08); }
.hdg-guide-card__icon svg { width: 1.7rem; height: 1.7rem; }
.hdg-guide-card__title { font-family: var(--hdg-serif); font-size: 1.2rem; font-weight: 700; color: var(--hdg-ink); margin-bottom: 0.3em; }
.hdg-guide-card__text { font-size: 0.92rem; color: var(--hdg-ink-soft); margin: 0; }
@media (max-width: 960px) { .hdg-guides-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hdg-guides-grid { grid-template-columns: 1fr; } }

/* Newsletter */
.hdg-newsletter { background: linear-gradient(160deg, var(--hdg-sand) 0%, var(--hdg-bg) 100%); border-top: 1px solid var(--hdg-line); }
.hdg-newsletter__box { max-width: 40rem; margin-inline: auto; text-align: center; }
.hdg-newsletter__form { display: flex; gap: 0.6rem; max-width: 30rem; margin: var(--hdg-space-3) auto 0; }
.hdg-newsletter__form input[type="email"] {
	flex: 1;
	min-width: 0;
	font-family: var(--hdg-sans);
	font-size: 1rem;
	padding: 0.85em 1.2em;
	border: 1px solid var(--hdg-sand-deep);
	border-radius: 999px;
	background: var(--hdg-surface);
	color: var(--hdg-ink);
	min-height: 44px;
}
.hdg-newsletter__form input[type="email"]:focus { outline: 3px solid var(--hdg-lagoon); outline-offset: 1px; }
.hdg-newsletter__note { font-size: 0.85rem; color: var(--hdg-ink-soft); margin-top: var(--hdg-space-2); }
@media (max-width: 520px) { .hdg-newsletter__form { flex-direction: column; } }

/* =========================================================
   7. Footer
   ========================================================= */
.hdg-footer { background: var(--hdg-palm); color: var(--hdg-on-palm); position: relative; margin-top: 0; }
.hdg-footer__pattern { height: 14px; width: 100%; background-repeat: repeat-x; background-size: auto 14px; opacity: 0.9; line-height: 0; }
.hdg-footer__inner {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: var(--hdg-space-4);
	padding: var(--hdg-space-5) 0 var(--hdg-space-4);
}
.hdg-footer__brand .hdg-brand__name { color: #FFFFFF; }
.hdg-footer__brand p { color: rgba(245, 239, 228, 0.78); font-size: 0.95rem; max-width: 26rem; }
.hdg-footer h3 { color: var(--hdg-gold); font-family: var(--hdg-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 1.1em; }
.hdg-footer ul { list-style: none; margin: 0; padding: 0; }
.hdg-footer li { margin-bottom: 0.55em; }
.hdg-footer a { color: rgba(245, 239, 228, 0.88); text-decoration: none; }
.hdg-footer a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.hdg-footer__bottom {
	border-top: 1px solid rgba(245, 239, 228, 0.16);
	padding: var(--hdg-space-3) 0;
	font-size: 0.85rem;
	color: rgba(245, 239, 228, 0.6);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--hdg-space-2);
}
@media (max-width: 760px) { .hdg-footer__inner { grid-template-columns: 1fr; gap: var(--hdg-space-3); } }

.hdg-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--hdg-space-4); padding: var(--hdg-space-5) 0 0; }
.hdg-widgets:empty { display: none; }
@media (max-width: 760px) { .hdg-widgets { grid-template-columns: 1fr; } }

/* =========================================================
   8. Blog / archive
   ========================================================= */
.hdg-page-head { padding: var(--hdg-space-5) 0 var(--hdg-space-4); text-align: center; }
.hdg-page-head__title { margin-bottom: 0.2em; }
.hdg-page-head__desc { color: var(--hdg-ink-soft); max-width: 40rem; margin-inline: auto; }
.hdg-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--hdg-space-3); padding-bottom: var(--hdg-space-5); }
@media (max-width: 960px) { .hdg-archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hdg-archive-grid { grid-template-columns: 1fr; } }

.hdg-pagination { display: flex; justify-content: center; gap: 0.4rem; padding: 0 0 var(--hdg-space-5); flex-wrap: wrap; }
.hdg-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; padding: 0 0.6em;
	border: 1px solid var(--hdg-line); border-radius: var(--hdg-radius);
	text-decoration: none; color: var(--hdg-ink); font-weight: 600;
}
.hdg-pagination .page-numbers.current { background: var(--hdg-palm); border-color: var(--hdg-palm); color: var(--hdg-on-palm); }
.hdg-pagination a.page-numbers:hover { border-color: var(--hdg-accent); color: var(--hdg-accent); }

/* =========================================================
   9. Single article
   ========================================================= */
.hdg-article-hero { padding: var(--hdg-space-5) 0 var(--hdg-space-3); text-align: center; }
.hdg-article-hero .hdg-kicker { justify-content: center; }
.hdg-article-hero .hdg-kicker::before { display: none; }
.hdg-article-hero__title { max-width: 22ch; margin-inline: auto; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.hdg-article-hero__meta { font-size: 0.9rem; letter-spacing: 0.08em; color: var(--hdg-ink-soft); text-transform: uppercase; }
.hdg-article-hero__meta a { color: var(--hdg-lagoon); text-decoration: none; }
.hdg-article-hero__meta a:hover { color: var(--hdg-accent); }
.hdg-article-thumb { max-width: 56rem; margin: var(--hdg-space-3) auto var(--hdg-space-4); border-radius: var(--hdg-radius-lg); overflow: hidden; box-shadow: var(--hdg-shadow-lift); }
.hdg-article-thumb img { width: 100%; height: auto; }

.hdg-entry { max-width: var(--hdg-measure); margin-inline: auto; font-size: 1.125rem; }
.hdg-entry > * { margin-left: auto; margin-right: auto; }
.hdg-entry h2 { margin-top: 1.8em; scroll-margin-top: 6rem; }
.hdg-entry h3 { margin-top: 1.5em; }
.hdg-entry img { border-radius: var(--hdg-radius); }
.hdg-entry figcaption, .wp-caption-text { font-size: 0.85rem; color: var(--hdg-ink-soft); text-align: center; margin-top: 0.6em; }
.hdg-entry .alignwide { max-width: min(82rem, 100%); width: 100%; }
.hdg-entry .alignfull { max-width: 100vw; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.hdg-entry ul, .hdg-entry ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.hdg-entry li { margin-bottom: 0.4em; }
.hdg-entry a { font-weight: 600; }

/* Callout */
.hdg-callout, .hdg-entry .hdg-callout {
	background: var(--hdg-sand);
	border-left: 3px solid var(--hdg-lagoon);
	border-radius: 0 var(--hdg-radius) var(--hdg-radius) 0;
	padding: 1.2em 1.5em;
	margin: 2em auto;
}
.hdg-callout p:last-child { margin-bottom: 0; }

/* Table of contents */
.hdg-toc {
	background: var(--hdg-surface);
	border: 1px solid var(--hdg-line);
	border-radius: var(--hdg-radius-lg);
	padding: var(--hdg-space-3) var(--hdg-space-4);
	margin: 0 auto var(--hdg-space-4);
	max-width: var(--hdg-measure);
}
.hdg-toc__title { font-family: var(--hdg-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hdg-lagoon); margin-bottom: 0.9em; }
.hdg-toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 2.5rem; }
.hdg-toc li { margin-bottom: 0.45em; break-inside: avoid; }
.hdg-toc a { color: var(--hdg-ink); text-decoration: none; font-weight: 400; font-size: 0.98rem; }
.hdg-toc a:hover { color: var(--hdg-accent); text-decoration: underline; }
@media (max-width: 640px) { .hdg-toc ol { columns: 1; } }

/* Post navigation + related */
.hdg-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--hdg-space-3); max-width: var(--hdg-measure); margin: var(--hdg-space-5) auto 0; }
.hdg-post-nav a {
	display: block; text-decoration: none;
	border: 1px solid var(--hdg-line); border-radius: var(--hdg-radius-lg);
	padding: var(--hdg-space-3);
	transition: border-color 0.3s ease, transform 0.35s var(--hdg-ease);
	background: var(--hdg-surface);
}
.hdg-post-nav a:hover { border-color: var(--hdg-accent); transform: translateY(-3px); }
.hdg-post-nav__label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hdg-lagoon); margin-bottom: 0.5em; }
.hdg-post-nav__title { font-family: var(--hdg-serif); font-weight: 700; color: var(--hdg-ink); font-size: 1.05rem; line-height: 1.3; }
.hdg-post-nav .hdg-post-nav__next { text-align: right; }
@media (max-width: 640px) { .hdg-post-nav { grid-template-columns: 1fr; } }

.hdg-related { padding: var(--hdg-space-5) 0; }
.hdg-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--hdg-space-3); }
@media (max-width: 960px) { .hdg-related__grid { grid-template-columns: 1fr; } }

/* =========================================================
   10. Comments, forms, misc
   ========================================================= */
.hdg-comments { max-width: var(--hdg-measure); margin: var(--hdg-space-5) auto 0; padding-top: var(--hdg-space-4); border-top: 1px solid var(--hdg-line); }
.hdg-comments .comment-list { list-style: none; margin: 0; padding: 0; }
.hdg-comments .comment { border-bottom: 1px solid var(--hdg-line); padding: var(--hdg-space-3) 0; }
.hdg-comments .children { list-style: none; padding-left: var(--hdg-space-4); }
.comment-author img { border-radius: 50%; float: left; margin-right: 1rem; }
.comment-metadata { font-size: 0.82rem; color: var(--hdg-ink-soft); }
.comment-metadata a { color: inherit; }
.comment-content { clear: both; padding-top: 0.5rem; }
.comment-reply-link { font-size: 0.88rem; font-weight: 600; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 0.3em; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; font-family: var(--hdg-sans); font-size: 1rem;
	padding: 0.7em 1em; border: 1px solid var(--hdg-sand-deep);
	border-radius: var(--hdg-radius); background: var(--hdg-surface); color: var(--hdg-ink);
	margin-bottom: 1em;
}
.comment-form .submit { border: 0; }

.hdg-search-form { display: flex; gap: 0.6rem; max-width: 28rem; margin-inline: auto; }
.hdg-search-form input[type="search"] {
	flex: 1; min-width: 0; font-family: var(--hdg-sans); font-size: 1rem;
	padding: 0.8em 1.2em; border: 1px solid var(--hdg-sand-deep);
	border-radius: 999px; background: var(--hdg-surface); color: var(--hdg-ink);
	min-height: 44px;
}

.hdg-404 { text-align: center; padding: var(--hdg-space-6) 0; }
.hdg-404__num { font-family: var(--hdg-serif); font-weight: 900; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--hdg-sand-deep); margin-bottom: 0.1em; }

.hdg-sidebar .widget { margin-bottom: var(--hdg-space-4); }
.hdg-sidebar .widget-title, .hdg-widgets .widget-title { font-family: var(--hdg-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hdg-lagoon); margin-bottom: 1em; }
.hdg-widgets .widget-title { color: var(--hdg-gold); }
.hdg-sidebar ul { list-style: none; margin: 0; padding: 0; }
.hdg-sidebar li { padding: 0.45em 0; border-bottom: 1px solid var(--hdg-line); }

/* Sticky posts, alignment, WP core requirements */
.sticky { position: relative; }
.bypostauthor { font-style: normal; }
.alignleft { float: left; margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.gallery-caption { font-size: 0.85rem; }

/* =========================================================
   11. Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-dura