/*
Theme Name: Home & Garden (Kadence Child)
Theme URI: https://example.com
Description: Warm Minimalism child theme for Kadence. Built for home decor, room styling, gardening and lawn care. Earthy palette, magazine contents layout, mono labels, and built in photo credits.
Author: Site Owner
Version: 1.0.0
Template: kadence
Text Domain: home-garden-child
*/

/* =========================================================
   1. TOKENS
   ========================================================= */
:root {
  --hd-ink:    #2B2721;
  --hd-olive:  #4A5741;
  --hd-olive-d:#39432F;
  --hd-sage:   #8B9A7C;
  --hd-terra:  #B5643C;
  --hd-clay:   #D4A17A;
  --hd-sand:   #EFE7DA;
  --hd-cream:  #FAF6EF;
  --hd-paper:  #FFFFFF;
  --hd-body:   #5D564B;
  --hd-line:   #E3DACB;

  --hd-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --hd-sans:    'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hd-mono:    'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --hd-r:   2px;
  --hd-max: 1300px;
}

/* =========================================================
   2. BASE
   ========================================================= */
[class*="hd-"], [class*="hd-"]::before, [class*="hd-"]::after,
[class*="hd-"] input, [class*="hd-"] textarea, [class*="hd-"] select,
[class*="hd-"] button { box-sizing: border-box; }

body {
  background-color: var(--hd-cream);
  color: var(--hd-body);
  font-family: var(--hd-sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--hd-display);
  font-optical-sizing: auto;
  color: var(--hd-ink);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.012em;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--hd-terra); outline-offset: 3px; }
img { max-width: 100%; height: auto; }

.hd-wrap { max-width: var(--hd-max); margin: 0 auto; padding: 0 30px; }
.hd-narrow { max-width: 760px; margin: 0 auto; }
.hd-section { padding: 82px 0; }
.hd-section--tight { padding: 46px 0; }

/* The mono label is this theme's signature. */
.hd-label {
  font-family: var(--hd-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hd-terra);
}
.hd-label--olive { color: var(--hd-olive); }
.hd-num {
  font-family: var(--hd-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--hd-sage);
}

.hd-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background-color: var(--hd-olive);
  color: var(--hd-paper);
  font-family: var(--hd-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 0;
  border-radius: var(--hd-r);
  cursor: pointer;
  transition: background-color .2s ease;
}
.hd-btn:hover { background-color: var(--hd-olive-d); color: var(--hd-paper); }
.hd-btn svg { width: 16px; height: 16px; }
.hd-btn--line {
  background-color: transparent;
  color: var(--hd-ink);
  border: 1px solid var(--hd-ink);
}
.hd-btn--line:hover { background-color: var(--hd-ink); color: var(--hd-paper); }

/* Section heading: label above, rule below, link on the right. */
.hd-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 42px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hd-ink);
}
.hd-head h2 { font-size: 38px; margin: 9px 0 0; }
.hd-head-link {
  font-family: var(--hd-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hd-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.hd-head-link:hover { color: var(--hd-terra); }
.hd-head-link svg { width: 15px; height: 15px; }

.hd-sand { background-color: var(--hd-sand); }
.hd-dark { background-color: var(--hd-olive); color: #D6DCCF; }
.hd-dark h1, .hd-dark h2, .hd-dark h3 { color: var(--hd-paper); }
.hd-dark .hd-label { color: var(--hd-clay); }
.hd-dark .hd-head { border-bottom-color: rgba(255,255,255,.22); }
.hd-dark .hd-head-link { color: var(--hd-paper); }

/* =========================================================
   3. TOP BAR
   ========================================================= */
.hd-topbar { background-color: var(--hd-ink); }
.hd-topbar-inner {
  max-width: var(--hd-max);
  margin: 0 auto;
  padding: 0 30px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.hd-topbar-note {
  margin: 0;
  font-family: var(--hd-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hd-clay);
}
.hd-topbar-right { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.hd-topbar-social { display: flex; align-items: center; gap: 15px; list-style: none; margin: 0; padding: 0; }
.hd-topbar-social a { display: inline-flex; color: #FFFFFF; opacity: .8; transition: opacity .16s ease; }
.hd-topbar-social a:hover { opacity: 1; }
.hd-topbar-social svg { width: 16px; height: 16px; display: block; }
.hd-topbar-social svg path[fill="#fff"] { fill: var(--hd-ink); }
.hd-topbar-cta {
  font-family: var(--hd-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hd-paper);
  border-bottom: 1px solid var(--hd-clay);
  padding-bottom: 2px;
  white-space: nowrap;
}
.hd-topbar-cta:hover { color: var(--hd-clay); }

/* =========================================================
   4. HERO, magazine contents layout
   ========================================================= */
.hd-hero { padding: 56px 0 78px; }
.hd-hero-top { margin-bottom: 38px; max-width: 780px; }
.hd-hero-top h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  margin: 14px 0 16px;
  letter-spacing: -0.025em;
}
.hd-hero-top p { font-size: 19px; max-width: 54ch; margin: 0; }

.hd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}
.hd-hero-lead { display: block; }
.hd-hero-lead img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: var(--hd-r); }
.hd-hero-lead-body { padding-top: 20px; }
.hd-hero-lead h2 { font-size: 32px; margin: 10px 0 12px; }
.hd-hero-lead p { margin: 0; font-size: 17px; }

/* Numbered contents list, the magazine cue. */
.hd-contents { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hd-ink); }
.hd-contents li { border-bottom: 1px solid var(--hd-line); }
.hd-contents a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  align-items: start;
  transition: padding-left .18s ease;
}
.hd-contents a:hover { padding-left: 8px; }
.hd-contents h3 { font-size: 19px; margin: 0 0 5px; line-height: 1.25; }
.hd-contents a:hover h3 { color: var(--hd-terra); }
/* Only the meta line, not the wrapper span around the title. */
.hd-contents h3 + span { display: block; font-family: var(--hd-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--hd-body); }

/* =========================================================
   5. CATEGORY INDEX, ruled rows not tiles
   ========================================================= */
.hd-index { border-top: 1px solid var(--hd-ink); }
.hd-index-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 110px 88px;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--hd-line);
  transition: background-color .18s ease, padding-left .18s ease;
}
.hd-index-row:hover { background-color: var(--hd-sand); padding-left: 14px; }
.hd-index-name { font-family: var(--hd-display); font-size: 27px; font-weight: 500; letter-spacing: -0.015em; color: var(--hd-ink); line-height: 1.15; }
.hd-index-row:hover .hd-index-name { color: var(--hd-terra); }
.hd-index-count { font-family: var(--hd-mono); font-size: 12px; letter-spacing: .08em; color: var(--hd-body); text-transform: uppercase; }
.hd-index-thumb { width: 88px; height: 62px; object-fit: cover; border-radius: var(--hd-r); display: block; opacity: .82; transition: opacity .18s ease; }
.hd-index-row:hover .hd-index-thumb { opacity: 1; }
.hd-index-group { margin-bottom: 62px; }
.hd-index-group h2 { font-size: 34px; margin: 8px 0 24px; }

/* =========================================================
   6. CARDS AND GRIDS
   ========================================================= */
.hd-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 52px 34px; }
.hd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Mixed sizes: the first card takes two columns and goes landscape. */
.hd-grid--mixed { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hd-grid--mixed > li:first-child { grid-column: span 2; }
.hd-grid--mixed > li:first-child .hd-card-thumb img { aspect-ratio: 3 / 2; }
.hd-grid--mixed > li:first-child .hd-card-title { font-size: 30px; }

.hd-card { position: relative; }
.hd-card-thumb { display: block; overflow: hidden; background-color: var(--hd-sand); border-radius: var(--hd-r); margin-bottom: 17px; }
.hd-card-thumb img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.hd-card:hover .hd-card-thumb img { transform: scale(1.04); }
.hd-card-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hd-card-kicker .hd-label { font-size: 10px; }
.hd-card-title { font-size: 22px; margin: 0 0 8px; line-height: 1.22; }
.hd-card:hover .hd-card-title { color: var(--hd-terra); }
.hd-card-excerpt { font-size: 16px; color: var(--hd-body); margin: 0 0 9px; }
.hd-card-meta { font-family: var(--hd-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--hd-sage); }

/* Horizontal rail for popular posts. */
.hd-rail { display: flex; gap: 30px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: thin; list-style: none; margin: 0; }
.hd-rail::-webkit-scrollbar { height: 4px; }
.hd-rail::-webkit-scrollbar-thumb { background-color: var(--hd-line); border-radius: 4px; }
.hd-rail > li { flex: 0 0 300px; }
.hd-rail .hd-card-thumb img { aspect-ratio: 1 / 1; }
.hd-rail .hd-card-title { font-size: 19px; }

/* =========================================================
   7. SPLIT BAND, used for the garden side
   ========================================================= */
.hd-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 62px; align-items: center; }
.hd-split-text h2 { font-size: 42px; margin: 12px 0 18px; }
.hd-split-text p { margin: 0 0 24px; font-size: 18px; }
.hd-split-img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; display: block; border-radius: var(--hd-r); }
.hd-split-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--hd-line); }
.hd-split-list li { border-bottom: 1px solid var(--hd-line); }
.hd-split-list a { display: flex; align-items: baseline; gap: 14px; padding: 13px 0; }
.hd-split-list a:hover { color: var(--hd-terra); }
.hd-split-list h3 { font-size: 19px; margin: 0; font-weight: 500; }

/* =========================================================
   8. ABOUT STRIP
   ========================================================= */
.hd-about { padding: 74px 0; }
.hd-about-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.hd-about-photo { width: 132px; height: 132px; object-fit: cover; border-radius: 50%; display: block; margin: 0 auto 24px; background-color: var(--hd-sand); }
.hd-about-inner h2 { font-size: 38px; margin: 12px 0 18px; }
.hd-about-inner p { font-size: 19px; max-width: 60ch; margin: 0 auto 20px; }
.hd-sign { font-family: var(--hd-display); font-style: italic; font-size: 22px; color: var(--hd-terra); margin-bottom: 24px; }

/* =========================================================
   9. SOCIAL ICONS
   ========================================================= */
.hd-socials { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 22px 0 0; padding: 0; }
.hd-socials--center { justify-content: center; }
.hd-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--hd-r);
  border: 1px solid var(--hd-line); color: var(--hd-ink);
  background-color: var(--hd-paper);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.hd-social svg { width: 19px; height: 19px; display: block; }
.hd-social:hover { background-color: var(--hd-ink); border-color: var(--hd-ink); color: var(--hd-paper); }
/* The YouTube play triangle must match the button background,
   not the icon colour, or it vanishes. */
.hd-social svg path[fill="#fff"] { fill: var(--hd-paper); }
.hd-social:hover svg path[fill="#fff"] { fill: var(--hd-ink); }
.hd-dark .hd-social svg path[fill="#fff"],
.hd-footer .hd-social svg path[fill="#fff"] { fill: var(--hd-ink); }
.hd-dark .hd-social:hover svg path[fill="#fff"],
.hd-footer .hd-social:hover svg path[fill="#fff"] { fill: var(--hd-paper); }
.hd-dark .hd-social, .hd-footer .hd-social { background-color: transparent; border-color: rgba(255,255,255,.28); color: var(--hd-paper); }
.hd-dark .hd-social:hover, .hd-footer .hd-social:hover { background-color: var(--hd-paper); color: var(--hd-ink); border-color: var(--hd-paper); }

/* =========================================================
   10. NEWSLETTER
   ========================================================= */
.hd-news { background-color: var(--hd-olive); padding: 78px 0; }
.hd-news-inner { max-width: var(--hd-max); margin: 0 auto; padding: 0 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 54px; align-items: center; }
.hd-news h2 { font-size: 40px; color: var(--hd-paper); margin: 12px 0 12px; }
.hd-news p { color: #CFD6C6; margin: 0; font-size: 18px; }
.hd-news .hd-label { color: var(--hd-clay); }
.hd-news-form input[type="email"], .hd-news-form input[type="text"] {
  border: 0; border-radius: var(--hd-r); padding: 15px 18px;
  font-family: var(--hd-sans); font-size: 16px; width: 100%; margin-bottom: 12px;
}
.hd-news-form input[type="submit"], .hd-news-form button {
  background-color: var(--hd-clay); color: var(--hd-ink);
  border: 0; border-radius: var(--hd-r); padding: 15px 28px;
  font-family: var(--hd-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}

/* =========================================================
   11. SINGLE POST
   No right sidebar. A sticky meta rail on the left,
   the article in a narrow measure, related bands below.
   ========================================================= */
.hd-post-head { padding: 60px 0 0; }
.hd-post-head-inner { max-width: 860px; }
.hd-post-head h1 { font-size: clamp(34px, 4.6vw, 58px); margin: 16px 0 20px; letter-spacing: -0.025em; }
.hd-post-dek { font-size: 21px; line-height: 1.55; color: var(--hd-body); max-width: 56ch; margin: 0 0 34px; }
.hd-post-cover { margin: 0 0 0; }
.hd-post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: var(--hd-r); }

.hd-post-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  max-width: 1060px;
  margin: 0 auto;
  padding: 56px 0 84px;
}

/* Left rail */
.hd-rail-meta { position: sticky; top: 30px; }
.hd-rail-block { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--hd-line); }
.hd-rail-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.hd-rail-block dt {
  font-family: var(--hd-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--hd-sage); margin: 0 0 6px;
}
.hd-rail-block dd { font-family: var(--hd-sans); font-size: 15px; color: var(--hd-ink); margin: 0; line-height: 1.45; }
.hd-rail-block dd a:hover { color: var(--hd-terra); }
.hd-rail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hd-rail-tags a {
  font-family: var(--hd-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--hd-line); border-radius: var(--hd-r); padding: 5px 9px; color: var(--hd-body);
}
.hd-rail-tags a:hover { background-color: var(--hd-ink); border-color: var(--hd-ink); color: var(--hd-paper); }

/* ---- Article typography ---- */
body .hd-content { font-size: 18px; line-height: 1.76; max-width: 100%; }
body .hd-content p { margin: 0 0 24px; }
body .hd-content strong { color: var(--hd-ink); font-weight: 600; }
body .hd-content a { color: var(--hd-terra); border-bottom: 1px solid var(--hd-clay); }

/* H2: mono kicker rule above, then a soft serif heading. */
body .hd-content h2 {
  font-family: var(--hd-display) !important;
  font-size: 32px !important;
  font-weight: 500 !important;
  letter-spacing: -0.018em;
  line-height: 1.16;
  color: var(--hd-ink);
  margin: 66px 0 20px;
  padding-top: 22px;
  border-top: 3px double var(--hd-line);
}
body .hd-content > h2:first-child { margin-top: 0; }

/* H3: sans, weighted, with a terracotta square marker. */
body .hd-content h3 {
  font-family: var(--hd-sans) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: -0.005em;
  color: var(--hd-ink);
  margin: 42px 0 12px;
  padding-left: 20px;
  position: relative;
}
body .hd-content h3::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px;
  background-color: var(--hd-terra);
  border-radius: 1px;
}

/* H4: mono, sage. */
body .hd-content h4 {
  font-family: var(--hd-mono) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hd-sage);
  margin: 32px 0 10px;
}

body .hd-content ul, body .hd-content ol { margin: 0 0 26px; padding-left: 22px; }
body .hd-content li { margin-bottom: 11px; padding-left: 6px; }
body .hd-content li::marker { color: var(--hd-terra); }

/* Quote: sand panel, no bar, centred mono attribution. */
body .hd-content blockquote {
  border: 0;
  background-color: var(--hd-sand);
  border-radius: var(--hd-r);
  margin: 40px 0;
  padding: 34px 38px;
  font-family: var(--hd-display);
  font-size: 24px;
  font-style: italic;
  line-height: 1.4;
  color: var(--hd-ink);
}
body .hd-content blockquote p:last-child { margin-bottom: 0; }
body .hd-content hr { border: 0; border-top: 3px double var(--hd-line); margin: 52px 0; }
body .hd-content img { border-radius: var(--hd-r); }
body .hd-content figure { margin: 40px 0; }

/* =========================================================
   12. PHOTO CREDITS
   Every image on this site can carry the photographer or
   the source, right under the picture, centred.
   ========================================================= */
.hd-credit,
body .hd-content figcaption,
.hd-post-cover figcaption,
.hd-page-hero figcaption,
.hd-hero-lead figcaption,
.hd-split-img figcaption,
.hd-ab-photo figcaption {
  display: block;
  font-family: var(--hd-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hd-sage);
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.5;
}
.hd-credit a,
body .hd-content figcaption a,
.hd-post-cover figcaption a,
.hd-page-hero figcaption a {
  color: var(--hd-terra);
  border-bottom: 1px solid var(--hd-clay);
}
.hd-credit a:hover, body .hd-content figcaption a:hover,
.hd-post-cover figcaption a:hover, .hd-page-hero figcaption a:hover { color: var(--hd-ink); border-bottom-color: var(--hd-ink); }

/* Credit sitting under an image inside the flow of a post. */
body .hd-content p.hd-credit { margin: -14px 0 30px; }

/* Roll up of every credit at the end of a post. */
.hd-credits-box { margin: 46px 0 0; padding: 24px 26px; background-color: var(--hd-sand); border-radius: var(--hd-r); }
.hd-credits-box h3 { font-family: var(--hd-mono); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--hd-body); margin: 0 0 12px; }
.hd-credits-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hd-credits-box li { font-family: var(--hd-mono); font-size: 12px; color: var(--hd-ink); }
.hd-credits-box a { color: var(--hd-terra); }

/* =========================================================
   13. AFTER THE ARTICLE
   ========================================================= */
.hd-author-band { background-color: var(--hd-sand); padding: 62px 0; }
.hd-author-inner { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 30px; align-items: center; }
.hd-author-inner img, .hd-author-ph { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; display: block; background-color: var(--hd-clay); }
.hd-author-inner h3 { font-size: 26px; margin: 8px 0 10px; }
.hd-author-inner p { margin: 0 0 14px; font-size: 17px; }
.hd-author-inner .hd-socials { margin-top: 14px; }

/* =========================================================
   14. PAGES
   ========================================================= */
.hd-page-head { padding: 66px 0 40px; border-bottom: 1px solid var(--hd-line); margin-bottom: 56px; }
.hd-page-head-inner { max-width: 860px; }
.hd-page-head h1 { font-size: clamp(36px, 5vw, 58px); margin: 14px 0 14px; letter-spacing: -0.025em; }
.hd-page-head p { margin: 0; font-size: 19px; max-width: 58ch; }
.hd-page-updated { font-family: var(--hd-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--hd-sage); margin: 10px 0 0; }

.hd-page > .hd-wrap { padding-bottom: 84px; }
.hd-archive > .hd-wrap { padding-bottom: 24px; }

.hd-page-content { max-width: 760px; margin: 0 auto; }
.hd-page-content > *:first-child { margin-top: 0; }
.hd-page-content > *:last-child { margin-bottom: 0; }
.hd-page--legal .hd-page-content { font-size: 17px; }
.hd-page-empty { text-align: center; padding: 40px 0; border: 1px dashed var(--hd-line); border-radius: var(--hd-r); max-width: 760px; margin: 0 auto; font-family: var(--hd-mono); font-size: 12px; }
.hd-page-hero { max-width: 1000px; margin: 0 auto 48px; }
.hd-page-hero img { width: 100%; border-radius: var(--hd-r); display: block; }
.hd-page-cta { max-width: 760px; margin: 44px auto 0; padding-top: 34px; border-top: 3px double var(--hd-line); text-align: center; }
.hd-page-cta p { font-family: var(--hd-display); font-size: 27px; color: var(--hd-ink); margin: 0 0 20px; }

.hd-pagination { margin: 58px 0 78px; text-align: center; font-family: var(--hd-mono); font-size: 13px; letter-spacing: .08em; }
.hd-pagination .page-numbers {
  display: inline-block; padding: 11px 16px; margin: 0 3px;
  border: 1px solid var(--hd-line); border-radius: var(--hd-r); color: var(--hd-ink);
  background-color: var(--hd-paper);
}
.hd-pagination .page-numbers.current, .hd-pagination .page-numbers:hover {
  background-color: var(--hd-ink); border-color: var(--hd-ink); color: var(--hd-paper);
}
.hd-empty { text-align: center; padding: 78px 0; }

/* =========================================================
   15. CONTACT FORM
   ========================================================= */
.hd-form { max-width: 720px; margin: 0 auto; }
.hd-form-title { font-size: 34px; margin: 10px 0 28px; }
.hd-note { font-family: var(--hd-sans); font-size: 16px; border-radius: var(--hd-r); padding: 15px 18px; margin: 0 0 26px; }
.hd-note--ok { background-color: var(--hd-sand); border-left: 3px solid var(--hd-olive); color: var(--hd-olive-d); }
.hd-note--bad { background-color: #F7EAE5; border-left: 3px solid var(--hd-terra); color: #8A4126; }

.hd-field { margin: 0 0 22px; }
.hd-field label { display: block; font-family: var(--hd-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--hd-ink); margin-bottom: 8px; }
.hd-field label span { text-transform: none; letter-spacing: .04em; color: var(--hd-sage); }
.hd-field input[type="text"], .hd-field input[type="email"], .hd-field textarea {
  width: 100%; font-family: var(--hd-sans); font-size: 17px; color: var(--hd-ink);
  background-color: var(--hd-paper); border: 1px solid var(--hd-line);
  border-radius: var(--hd-r); padding: 14px 16px;
  transition: border-color .15s ease;
}
.hd-field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.hd-field input:focus, .hd-field textarea:focus { outline: none; border-color: var(--hd-olive); }
.hd-field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 22px; }
.hd-field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hd-field--submit { margin: 30px 0 0; }
.hd-form-alt { font-family: var(--hd-sans); font-size: 16px; color: var(--hd-body); margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--hd-line); text-align: center; }
.hd-form-alt a { color: var(--hd-terra); border-bottom: 1px solid var(--hd-clay); }

.hd-cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin: 0 0 58px; padding: 0; list-style: none; }
.hd-cards-3 li { background-color: var(--hd-paper); border: 1px solid var(--hd-line); border-radius: var(--hd-r); padding: 26px 24px; }
.hd-cards-3 b { display: block; font-family: var(--hd-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--hd-terra); margin-bottom: 10px; font-weight: 500; }
.hd-cards-3 span { font-size: 16px; line-height: 1.55; }

/* =========================================================
   16. ABOUT PAGE
   ========================================================= */
.hd-ab-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 60px; align-items: start; padding-bottom: 20px; }
.hd-ab-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: var(--hd-r); }
.hd-ab-photo--empty { aspect-ratio: 4 / 5; background-color: var(--hd-sand); border-radius: var(--hd-r); display: flex; align-items: center; justify-content: center; text-align: center; padding: 26px; font-family: var(--hd-mono); font-size: 12px; }
.hd-ab-text h2 { font-size: 34px; margin: 12px 0 20px; }
.hd-ab-text p { font-size: 18px; margin: 0 0 20px; }

.hd-ab-facts { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--hd-ink); border-bottom: 1px solid var(--hd-line); }
.hd-ab-facts li { padding: 30px 26px; border-right: 1px solid var(--hd-line); }
.hd-ab-facts li:last-child { border-right: 0; }
.hd-ab-facts strong { display: block; font-family: var(--hd-display); font-size: 36px; font-weight: 500; color: var(--hd-terra); line-height: 1; margin-bottom: 10px; }
.hd-ab-facts span { font-size: 16px; line-height: 1.5; }

/* =========================================================
   17. FOOTER, asymmetric
   ========================================================= */
.hd-footer { background-color: var(--hd-ink); color: #A79E90; }
.hd-footer .hd-wrap { padding-top: 76px; padding-bottom: 34px; }
.hd-footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 54px; padding-bottom: 44px; }
.hd-footer-say h2 { font-family: var(--hd-display); font-size: 38px; color: var(--hd-paper); margin: 12px 0 16px; letter-spacing: -0.02em; }
.hd-footer-say p { font-size: 17px; line-height: 1.62; margin: 0; max-width: 40ch; color: #BDB4A6; }
.hd-footer .hd-label { color: var(--hd-clay); }
.hd-footer-col h3 { font-family: var(--hd-mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--hd-clay); margin: 0 0 16px; }
.hd-footer-col ul { list-style: none; margin: 0; padding: 0; }
.hd-footer-col li { margin-bottom: 10px; }
.hd-footer-col a { font-size: 16px; color: #D3CBBE; }
.hd-footer-col a:hover { color: var(--hd-clay); }
.hd-footer-rule { border: 0; border-top: 1px solid rgba(255,255,255,.16); margin: 0 0 26px; }
.hd-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; }
.hd-footer-fine { font-family: var(--hd-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8C8478; margin: 0; }
.hd-footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.hd-footer-legal a { font-family: var(--hd-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8C8478; }
.hd-footer-legal a:hover { color: var(--hd-clay); }
.hd-footer .hd-socials { margin: 0; }
.hd-footer-warn { font-family: var(--hd-sans); font-size: 15px; color: #BDB4A6; background-color: rgba(212,161,122,.14); border-radius: var(--hd-r); padding: 13px 16px; margin: 16px 0 0; }

/* =========================================================
   18. PLUGINS AND BUILDER
   ========================================================= */
.site-footer, #colophon { display: none !important; }
.hd-builder > .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.hd-builder > .alignwide { max-width: var(--hd-max); margin-left: auto; margin-right: auto; }
.hd-builder > *:not(.alignfull):not(.alignwide) { max-width: var(--hd-max); margin-left: auto; margin-right: auto; padding-left: 30px; padding-right: 30px; }
.hd-page-content .wp-block-buttons .wp-block-button__link { background-color: var(--hd-olive); border-radius: var(--hd-r); font-family: var(--hd-mono); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }

/* =========================================================
   19. RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .hd-post-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; max-width: 760px; padding-top: 40px; }
  .hd-rail-meta { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-bottom: 26px; border-bottom: 3px double var(--hd-line); }
  .hd-rail-block { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
  .hd-grid--mixed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hd-grid--mixed > li:first-child { grid-column: span 2; }
}

@media (max-width: 980px) {
  .hd-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hd-split { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hd-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hd-news-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hd-ab-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hd-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; }
  .hd-footer-say { grid-column: 1 / -1; }
  .hd-index-row { grid-template-columns: 38px minmax(0, 1fr) 88px; }
  .hd-index-thumb { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hd-section { padding: 54px 0; }
  .hd-wrap { padding: 0 22px; }
  .hd-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hd-head h2 { font-size: 29px; }
  .hd-grid { gap: 34px 18px; }
  .hd-grid--2, .hd-grid--3, .hd-grid--4, .hd-grid--mixed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hd-grid--mixed > li:first-child { grid-column: span 2; }
  .hd-card-title { font-size: 17px; }
  .hd-grid--mixed > li:first-child .hd-card-title { font-size: 22px; }
  .hd-card-excerpt { display: none; }
  .hd-rail > li { flex: 0 0 220px; }
  .hd-hero { padding: 36px 0 54px; }
  .hd-hero-lead h2 { font-size: 25px; }
  .hd-index-name { font-size: 21px; }
  .hd-index-row { grid-template-columns: 30px minmax(0, 1fr) 74px; gap: 12px; padding: 16px 0; }
  .hd-split-text h2, .hd-about-inner h2, .hd-news h2 { font-size: 29px; }
  .hd-post-head { padding-top: 38px; }
  .hd-post-dek { font-size: 18px; }
  .hd-rail-meta { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body .hd-content { font-size: 17px; }
  body .hd-content h2 { font-size: 25px !important; margin: 48px 0 16px; }
  body .hd-content h3 { font-size: 17px !important; }
  body .hd-content blockquote { font-size: 20px; padding: 24px 22px; }
  .hd-author-inner { grid-template-columns: minmax(0, 1fr); gap: 18px; text-align: center; }
  .hd-author-inner img, .hd-author-ph { margin: 0 auto; }
  .hd-author-inner .hd-socials { justify-content: center; }
  .hd-cards-3, .hd-ab-facts { grid-template-columns: minmax(0, 1fr); }
  .hd-ab-facts li { border-right: 0; border-bottom: 1px solid var(--hd-line); }
  .hd-ab-facts li:last-child { border-bottom: 0; }
  .hd-field-row { grid-template-columns: minmax(0, 1fr); }
  .hd-footer-top { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hd-footer-bottom { flex-direction: column; align-items: flex-start; }
  .hd-page-head { padding-top: 42px; margin-bottom: 40px; }
}

@media (max-width: 460px) {
  .hd-topbar-note { display: none; }
  .hd-topbar-inner { justify-content: center; }
  .hd-topbar-right { margin-left: 0; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
