/*
Theme Name: HomeHaven
Theme URI: https://homehaven.com
Author: HomeHaven
Author URI: https://homehaven.com
Description: A warm editorial WordPress theme for home decor Amazon affiliate blogs. Drop any Amazon link into a post and it auto-renders as a beautiful product card. Built for Pinterest-driven affiliate traffic.
Version: 1.0.0
Requires at least: 6.0
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: homehaven
Tags: blog, one-column, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, sticky-post, translation-ready
*/

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --hh-cream:      #F8F4EF;
  --hh-warm:       #FDFAF7;
  --hh-clay:       #B5613E;
  --hh-clay-l:     #D4876A;
  --hh-sage:       #6D9478;
  --hh-charcoal:   #2A2420;
  --hh-mid:        #6B605A;
  --hh-light:      #C2B9B0;
  --hh-border:     #E8E0D8;
  --hh-serif:      'Cormorant Garamond', Georgia, serif;
  --hh-sans:       'DM Sans', 'Helvetica Neue', sans-serif;
  --hh-shadow:     0 4px 24px rgba(42,36,32,.10);
  --hh-r:          10px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--hh-sans);
  background: var(--hh-cream);
  color: var(--hh-charcoal);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

a { color: var(--hh-clay); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--hh-clay-l); }

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

p { margin-bottom: 1.4rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--hh-serif);
  color: var(--hh-charcoal);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

ul, ol { margin: 0 0 1.4rem 1.5rem; line-height: 1.8; }
li { margin-bottom: 0.4rem; }

blockquote {
  border-left: 3px solid var(--hh-clay);
  padding: 16px 22px;
  margin: 32px 0;
  background: var(--hh-warm);
  border-radius: 0 var(--hh-r) var(--hh-r) 0;
  font-family: var(--hh-serif);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--hh-mid);
}

/* =============================================
   LAYOUT
   ============================================= */
.hh-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.hh-site-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  max-width: 1180px;
  margin: 48px auto;
  padding: 0 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .hh-site-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hh-sidebar { display: none; }
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--hh-warm);
  border-bottom: 1px solid var(--hh-border);
  box-shadow: 0 2px 12px rgba(42,36,32,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hh-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-branding .site-title {
  font-family: var(--hh-serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
}

.site-branding .site-title a {
  color: var(--hh-charcoal);
  text-decoration: none;
}

.site-branding .site-title a span { color: var(--hh-clay); }

.site-branding .site-description {
  font-size: 0.72rem;
  color: var(--hh-mid);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

/* Custom logo */
.custom-logo { max-height: 48px; width: auto; }

/* =============================================
   NAVIGATION
   ============================================= */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}

.main-navigation ul li { position: relative; }

.main-navigation ul li a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hh-mid);
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0;
  display: block;
}

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

/* Dropdown */
.main-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--hh-warm);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-r);
  box-shadow: var(--hh-shadow);
  min-width: 180px;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
  display: none;
  z-index: 200;
}

.main-navigation ul ul li a {
  padding: 8px 16px;
  font-size: 0.78rem;
}

.main-navigation ul ul li a:hover { background: var(--hh-cream); }

.main-navigation ul li:hover > ul { display: flex; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hh-border);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--hh-mid);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-navigation ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--hh-warm);
    border-bottom: 1px solid var(--hh-border);
    padding: 16px 24px;
    gap: 0;
  }
  .main-navigation ul.toggled { display: flex; }
  .main-navigation ul li a { padding: 10px 0; border-bottom: 1px solid var(--hh-border); }
  .main-navigation ul ul { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; display: none; }
}

/* =============================================
   HERO SECTION (front page template)
   ============================================= */
.hh-hero {
  background: var(--hh-charcoal);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.hh-hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hh-clay-l);
  margin-bottom: 16px;
  display: block;
  position: relative;
}

.hh-hero h1 {
  font-family: var(--hh-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  line-height: 1.15;
}

.hh-hero h1 em { font-style: italic; color: var(--hh-clay-l); }

.hh-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
  position: relative;
}

.hh-hero-btn {
  display: inline-block;
  background: var(--hh-clay);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  position: relative;
}

.hh-hero-btn:hover { background: var(--hh-clay-l); transform: translateY(-2px); color: #fff; }

/* =============================================
   CATEGORY NAV
   ============================================= */
.hh-cat-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 24px 20px;
  background: var(--hh-warm);
  border-bottom: 1px solid var(--hh-border);
}

.hh-cat-pill {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hh-mid);
  text-decoration: none;
  padding: 7px 16px;
  border: 1px solid var(--hh-border);
  border-radius: 50px;
  background: var(--hh-cream);
  transition: all 0.2s;
}

.hh-cat-pill:hover,
.hh-cat-pill.current-cat {
  background: var(--hh-clay);
  border-color: var(--hh-clay);
  color: #fff;
}

/* =============================================
   BLOG ARCHIVE / LOOP
   ============================================= */
.hh-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Post card */
.hh-card {
  background: var(--hh-warm);
  border-radius: var(--hh-r);
  border: 1px solid var(--hh-border);
  overflow: hidden;
  box-shadow: var(--hh-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.hh-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(42,36,32,.16);
}

.hh-card-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--hh-border);
}

.hh-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.hh-card:hover .hh-card-thumb img { transform: scale(1.04); }

.hh-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hh-card-cat {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hh-clay);
  text-decoration: none;
  margin-bottom: 8px;
  display: block;
}

.hh-card-title {
  font-family: var(--hh-serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}

.hh-card-title a { color: var(--hh-charcoal); text-decoration: none; }
.hh-card-title a:hover { color: var(--hh-clay); }

.hh-card-excerpt {
  font-size: 0.87rem;
  color: var(--hh-mid);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.hh-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 0.7rem;
  color: var(--hh-light);
  border-top: 1px solid var(--hh-border);
  padding-top: 12px;
  margin-top: auto;
}

.hh-card-meta span + span::before { content: ' · '; }

/* Featured card */
.hh-card.hh-featured {
  grid-column: 1 / -1;
  flex-direction: row;
  max-height: 380px;
}

.hh-card.hh-featured .hh-card-thumb {
  width: 52%;
  flex-shrink: 0;
  aspect-ratio: auto;
}

.hh-card.hh-featured .hh-card-body { padding: 36px; justify-content: center; }
.hh-card.hh-featured .hh-card-title { font-size: 1.8rem; }

@media (max-width: 700px) {
  .hh-card.hh-featured { flex-direction: column; max-height: none; }
  .hh-card.hh-featured .hh-card-thumb { width: 100%; aspect-ratio: 16/10; }
}

/* =============================================
   SINGLE POST
   ============================================= */
.hh-single-article { min-width: 0; }

.hh-post-breadcrumb {
  font-size: 0.72rem;
  color: var(--hh-light);
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hh-post-breadcrumb a { color: var(--hh-mid); }
.hh-post-breadcrumb a:hover { color: var(--hh-clay); }

.hh-post-cat-badge {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hh-clay);
  background: rgba(181,97,62,.08);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.hh-post-title {
  font-family: var(--hh-serif);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--hh-charcoal);
  margin-bottom: 18px;
}

.hh-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  font-size: 0.76rem;
  color: var(--hh-mid);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hh-border);
}

.hh-author-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--hh-charcoal);
}

.hh-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hh-clay-l);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: #fff;
  font-weight: 500;
  flex-shrink: 0;
  overflow: hidden;
}

.hh-author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.hh-read-time {
  background: var(--hh-cream);
  border: 1px solid var(--hh-border);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.68rem;
}

/* Post thumbnail */
.hh-post-thumbnail {
  border-radius: var(--hh-r);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--hh-shadow);
}

.hh-post-thumbnail img { width: 100%; height: auto; display: block; }

.hh-post-thumbnail figcaption {
  padding: 9px 14px;
  font-size: 0.72rem;
  color: var(--hh-light);
  font-style: italic;
  background: var(--hh-warm);
  border: 1px solid var(--hh-border);
  border-top: none;
  border-radius: 0 0 var(--hh-r) var(--hh-r);
}

/* Table of contents */
.hh-toc {
  background: var(--hh-warm);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-r);
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: var(--hh-shadow);
}

.hh-toc-title {
  font-family: var(--hh-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--hh-charcoal);
  margin-bottom: 12px;
}

.hh-toc ol { margin: 0 0 0 18px; }
.hh-toc li { margin-bottom: 6px; }
.hh-toc a { font-size: 0.88rem; color: var(--hh-clay); }
.hh-toc a:hover { color: var(--hh-clay-l); }

/* Post content */
.entry-content {
  font-size: 1.04rem;
  line-height: 1.82;
  color: var(--hh-charcoal);
}

.entry-content > p:first-of-type {
  font-size: 1.12rem;
  color: var(--hh-mid);
  font-style: italic;
  border-left: 3px solid var(--hh-clay-l);
  padding-left: 18px;
  margin-bottom: 28px;
  border-radius: 0;
}

.entry-content h2 {
  font-family: var(--hh-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--hh-charcoal);
  margin: 44px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hh-border);
  scroll-margin-top: 80px;
}

.entry-content h3 {
  font-family: var(--hh-serif);
  font-size: 1.22rem;
  color: var(--hh-charcoal);
  margin: 28px 0 10px;
}

.entry-content a {
  color: var(--hh-clay);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content strong { font-weight: 500; color: var(--hh-charcoal); }

/* =============================================
   PRODUCT CARDS (Amazon affiliate)
   ============================================= */
.hh-product-card {
  display: flex;
  background: var(--hh-warm);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-r);
  overflow: hidden;
  box-shadow: var(--hh-shadow);
  margin: 32px 0;
  position: relative;
  transition: box-shadow 0.25s;
}

.hh-product-card:hover { box-shadow: 0 10px 36px rgba(42,36,32,.16); }

.hh-product-card::before {
  content: 'Amazon Pick';
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--hh-clay);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 2;
}

.hh-product-img {
  width: 200px;
  flex-shrink: 0;
  background: #f0ebe5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 180px;
}

.hh-product-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }

.hh-product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--hh-light);
}

.hh-product-info {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.hh-product-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hh-sage);
  margin-bottom: 5px;
  display: block;
}

.hh-product-title {
  font-family: var(--hh-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--hh-charcoal);
  line-height: 1.3;
  margin-bottom: 8px;
  display: block;
  text-decoration: none;
}

.hh-product-title:hover { color: var(--hh-clay); }

.hh-product-desc {
  font-size: 0.87rem;
  color: var(--hh-mid);
  line-height: 1.6;
  margin-bottom: 14px;
}

.hh-product-price {
  font-family: var(--hh-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--hh-clay);
  margin-bottom: 14px;
}

.hh-product-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--hh-clay);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.hh-product-btn:hover { background: var(--hh-clay-l); transform: translateY(-1px); color: #fff; }

.hh-affiliate-note {
  font-size: 0.68rem;
  color: var(--hh-light);
  margin-top: 10px;
  font-style: italic;
}

@media (max-width: 600px) {
  .hh-product-card { flex-direction: column; }
  .hh-product-img { width: 100%; height: 180px; }
}

/* Mini product grid */
.hh-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin: 32px 0;
}

.hh-product-mini {
  background: var(--hh-warm);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-r);
  overflow: hidden;
  box-shadow: var(--hh-shadow);
  transition: transform 0.2s;
  text-align: center;
}

.hh-product-mini:hover { transform: translateY(-3px); }

.hh-product-mini-img {
  background: #f0ebe5;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.hh-product-mini-img img { max-height: 100px; object-fit: contain; }

.hh-product-mini-body { padding: 16px; }

.hh-product-mini-title {
  font-family: var(--hh-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hh-charcoal);
  margin-bottom: 6px;
  line-height: 1.3;
}

.hh-product-mini-price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--hh-clay);
  margin-bottom: 10px;
}

.hh-product-mini-btn {
  display: block;
  background: var(--hh-charcoal);
  color: #fff;
  padding: 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}

.hh-product-mini-btn:hover { background: var(--hh-clay); color: #fff; }

/* =============================================
   ROUNDUP TABLE
   ============================================= */
.hh-roundup {
  background: var(--hh-warm);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-r);
  overflow: hidden;
  margin: 32px 0;
  box-shadow: var(--hh-shadow);
}

.hh-roundup-header {
  background: var(--hh-charcoal);
  color: #fff;
  padding: 18px 24px;
  font-family: var(--hh-serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.hh-roundup-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--hh-border);
  transition: background 0.15s;
}

.hh-roundup-item:last-child { border-bottom: none; }
.hh-roundup-item:hover { background: var(--hh-cream); }

.hh-roundup-rank {
  font-family: var(--hh-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--hh-clay);
  width: 24px;
  flex-shrink: 0;
}

.hh-roundup-name {
  flex: 1;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--hh-charcoal);
}

.hh-roundup-badge {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #EAF3EC;
  color: var(--hh-sage);
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
}

.hh-roundup-link {
  background: var(--hh-clay);
  color: #fff;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.hh-roundup-link:hover { background: var(--hh-clay-l); color: #fff; }

/* =============================================
   TIP BOX
   ============================================= */
.hh-tip-box {
  background: rgba(109,148,120,.07);
  border: 1px solid rgba(109,148,120,.25);
  border-radius: var(--hh-r);
  padding: 18px 20px;
  margin: 28px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.hh-tip-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

.hh-tip-box p { margin: 0; font-size: 0.9rem; color: var(--hh-mid); line-height: 1.65; }

.hh-tip-box strong {
  color: var(--hh-sage);
  display: block;
  margin-bottom: 3px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =============================================
   AUTHOR BOX
   ============================================= */
.hh-author-box {
  background: var(--hh-warm);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-r);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 40px 0;
  box-shadow: var(--hh-shadow);
}

.hh-author-box-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hh-clay-l), var(--hh-clay));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hh-serif);
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.hh-author-box-pic img { width: 100%; height: 100%; object-fit: cover; }
.hh-author-box-name { font-family: var(--hh-serif); font-size: 1.05rem; font-weight: 600; color: var(--hh-charcoal); margin-bottom: 4px; }
.hh-author-box-bio { font-size: 0.85rem; color: var(--hh-mid); line-height: 1.6; }

/* =============================================
   POST TAGS
   ============================================= */
.hh-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0;
  padding-top: 24px;
  border-top: 1px solid var(--hh-border);
}

.hh-post-tags .label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hh-mid);
  align-self: center;
  margin-right: 4px;
}

.hh-tag {
  display: inline-block;
  padding: 5px 13px;
  border: 1px solid var(--hh-border);
  border-radius: 50px;
  font-size: 0.72rem;
  color: var(--hh-mid);
  text-decoration: none;
  transition: all 0.2s;
  background: var(--hh-cream);
}

.hh-tag:hover { border-color: var(--hh-clay); color: var(--hh-clay); }

/* =============================================
   RELATED POSTS
   ============================================= */
.hh-related { margin-top: 40px; }

.hh-related-title {
  font-family: var(--hh-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--hh-charcoal);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hh-border);
}

.hh-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 500px) { .hh-related-grid { grid-template-columns: 1fr; } }

.hh-related-card {
  background: var(--hh-warm);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-r);
  overflow: hidden;
  box-shadow: var(--hh-shadow);
  transition: transform 0.2s;
  text-decoration: none;
  display: block;
}

.hh-related-card:hover { transform: translateY(-3px); }

.hh-related-img { height: 120px; overflow: hidden; background: var(--hh-border); }
.hh-related-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.hh-related-card:hover .hh-related-img img { transform: scale(1.05); }

.hh-related-body { padding: 13px; }

.hh-related-cat {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hh-clay);
  display: block;
  margin-bottom: 4px;
}

.hh-related-title-text {
  font-family: var(--hh-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hh-charcoal);
  line-height: 1.3;
}

/* =============================================
   PAGINATION
   ============================================= */
.hh-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 48px 0;
  flex-wrap: wrap;
}

.hh-pagination a,
.hh-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--hh-border);
  background: var(--hh-warm);
  color: var(--hh-mid);
  text-decoration: none;
  transition: all 0.2s;
}

.hh-pagination a:hover,
.hh-pagination .current {
  background: var(--hh-clay);
  border-color: var(--hh-clay);
  color: #fff;
}

/* =============================================
   SIDEBAR
   ============================================= */
.hh-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 88px;
}

.widget {
  background: var(--hh-warm);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-r);
  padding: 22px;
  box-shadow: var(--hh-shadow);
}

.widget-title {
  font-family: var(--hh-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--hh-charcoal);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hh-border);
}

.widget a { color: var(--hh-mid); text-decoration: none; transition: color 0.2s; }
.widget a:hover { color: var(--hh-clay); }

/* Sidebar category list */
.widget_categories ul,
.widget_recent_entries ul,
.widget_recent_comments ul,
.widget_pages ul,
.widget_archive ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget_categories ul li,
.widget_recent_entries ul li,
.widget_archive ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--hh-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin: 0;
}

.widget_categories ul li:last-child,
.widget_recent_entries ul li:last-child,
.widget_archive ul li:last-child { border-bottom: none; }

/* Newsletter widget */
.widget.hh-newsletter-widget {
  background: linear-gradient(135deg, var(--hh-charcoal), #3d2f28);
  border: none;
  color: #fff;
}

.widget.hh-newsletter-widget .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,.1); }
.widget.hh-newsletter-widget p { font-size: 0.83rem; color: rgba(255,255,255,.6); line-height: 1.6; margin-bottom: 14px; }

.hh-nl-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: var(--hh-sans);
  font-size: 0.85rem;
  margin-bottom: 10px;
  outline: none;
}

.hh-nl-input::placeholder { color: rgba(255,255,255,.35); }

.hh-nl-btn {
  width: 100%;
  padding: 11px;
  background: var(--hh-clay);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--hh-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.hh-nl-btn:hover { background: var(--hh-clay-l); }

/* =============================================
   UTILITY CLASSES
   ============================================= */
.hh-section-title {
  font-family: var(--hh-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--hh-charcoal);
  margin-bottom: 6px;
}

.hh-section-subtitle {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hh-clay);
  margin-bottom: 6px;
  display: block;
}

.hh-divider {
  width: 40px;
  height: 2px;
  background: var(--hh-clay);
  border: none;
  margin: 10px 0 24px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--hh-charcoal);
  color: rgba(255,255,255,.5);
  margin-top: 64px;
}

.hh-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  padding: 48px 24px 40px;
}

.hh-footer-col h4 {
  font-family: var(--hh-serif);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 14px;
}

.hh-footer-col a {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 8px;
  text-decoration: none;
  transition: color 0.2s;
}

.hh-footer-col a:hover { color: var(--hh-clay-l); }
.hh-footer-col p { font-size: 0.82rem; line-height: 1.7; color: rgba(255,255,255,.4); }

.hh-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,.3);
  max-width: 1180px;
  margin: 0 auto;
}

.hh-footer-disclaimer {
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 16px 24px;
  font-size: 0.72rem;
  color: rgba(255,255,255,.3);
  text-align: center;
  line-height: 1.6;
}

/* =============================================
   WORDPRESS CORE COMPATIBILITY
   ============================================= */
.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; width: 1px;
  word-wrap: normal !important;
}

.alignleft  { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.alignwide  { margin-left: -40px; margin-right: -40px; }
.alignfull  { margin-left: calc(-24px); margin-right: calc(-24px); }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--hh-light); font-style: italic; margin-top: 6px; }

img.wp-post-image { border-radius: var(--hh-r); }

.sticky { border-left: 3px solid var(--hh-clay); padding-left: 16px; }

/* Comments */
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-body { background: var(--hh-warm); border: 1px solid var(--hh-border); border-radius: var(--hh-r); padding: 20px; margin-bottom: 16px; }
.comment-author .fn { font-family: var(--hh-serif); font-weight: 600; color: var(--hh-charcoal); }
.comment-metadata { font-size: 0.75rem; color: var(--hh-light); margin-bottom: 10px; }
.comment-content p { font-size: 0.92rem; color: var(--hh-mid); margin-bottom: 0; }

/* Reply link */
.reply a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hh-clay);
  text-decoration: none;
}

/* Comment form */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--hh-border);
  border-radius: 6px;
  background: var(--hh-warm);
  font-family: var(--hh-sans);
  font-size: 0.9rem;
  color: var(--hh-charcoal);
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--hh-clay); }

.comment-form .submit {
  background: var(--hh-clay);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--hh-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.comment-form .submit:hover { background: var(--hh-clay-l); }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--hh-border);
  border-radius: 6px;
  font-family: var(--hh-sans);
  font-size: 0.9rem;
  background: var(--hh-cream);
  color: var(--hh-charcoal);
  outline: none;
}

.search-form button {
  background: var(--hh-clay);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.search-form button:hover { background: var(--hh-clay-l); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .hh-posts-grid { grid-template-columns: 1fr; gap: 18px; }
  .hh-product-grid { grid-template-columns: 1fr 1fr; }
  .hh-roundup-badge { display: none; }
}

@media (max-width: 480px) {
  .hh-product-grid { grid-template-columns: 1fr; }
  .hh-footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
