/* =========================================================
   SOVEREIGN-TERMINAL — Pet Parent Wellness Theme
   Warm & playful-premium: friendly, energetic, photography-forward.
   ========================================================= */

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

:root {
  /* Base surfaces & text */
  --bg:                #FBF6EF;
  --surface:            #FFFFFF;
  --text:              #2A241E;
  --text-muted:        #7C7167;
  --border:            #EAE1D2;
  --on-color:          #FFFFFF;

  /* Dark sections — warm espresso, not neutral gray/black */
  --dark:              #26201B;
  --dark-surface:      #332B24;

  /* Primary — pine green (nav/links/UI, grounded counterweight to orange) */
  --primary:           #3A6B5C;
  --primary-strong:    #2A4E43; /* darker pine, used for text/hover fills where --primary alone lacks contrast */
  --primary-light:     #E4EDE9;

  /* Secondary — warm tan (dog-coat tone) */
  --secondary:         #C9A66B;
  --secondary-strong:  #8A6435;
  --secondary-light:   #F3E7D2;

  /* Accent — marigold orange (CTA / pop color) */
  --accent:            #F2872F;
  --accent-strong:     #D66E24;
  --accent-light:      #FDE7D3;

  /* Highlight — golden mustard */
  --highlight:         #F2C14E;
  --highlight-strong:  #8A6A1E;
  --highlight-light:   #FBF0CE;

  /* Radius scale */
  --radius-sm:   12px;
  --radius-md:   18px;
  --radius-lg:   24px;
  --radius-xl:   36px;
  --radius-pill: 999px;

  /* Soft, warm ink-tinted shadows */
  --shadow-xs:   0 1px 2px rgba(42,36,30,.06);
  --shadow-sm:   0 4px 16px rgba(42,36,30,.07);
  --shadow-md:   0 12px 32px rgba(42,36,30,.10);
  --shadow-lg:   0 24px 64px rgba(42,36,30,.12);
  --shadow-hero: 0 4px 14px rgba(58,107,92,.12), 0 30px 70px rgba(42,36,30,.08);

  /* Typography — solid weights only, no thin/hairline strokes */
  --font-headline: "Fredoka", system-ui, sans-serif;
  --font-body:     "Nunito", system-ui, sans-serif;
  --font-script:   "Caveat", cursive;

  /* Layout */
  --container-w: 1200px;
  --section-py:  96px;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.site-main { flex: 1; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary-strong); text-decoration: none; }
a:hover { color: var(--accent-strong); }

/* ── UTILITY ──────────────────────────────────────────── */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s, filter .2s;
  border: 1.5px solid transparent;
  line-height: 1;
}
.btn--accent  { background: var(--accent-strong); color: var(--on-color); }
.btn--accent:hover { filter: brightness(.92); color: var(--on-color); }
.btn--outline { background: transparent; border-color: var(--accent); color: var(--accent-strong); }
.btn--outline:hover { background: var(--accent); color: var(--on-color); }
/* For use over a photo/dark scrim (e.g. the hero banner) where the
   accent-outline .btn--outline wouldn't have enough contrast. */
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: var(--on-color); }
.btn--outline-light:hover { background: rgba(255,255,255,.16); border-color: var(--on-color); color: var(--on-color); }

.section-heading { margin-bottom: 40px; }
.section-heading--center { text-align: center; }
.section-title {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.section-sub {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── TOP BAR ──────────────────────────────────────────── */
.top-bar {
  background: var(--dark);
  text-align: center;
  padding: 8px 16px;
  color: var(--on-color);
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── HEADER ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.header-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 0 24px;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.header-logo { display: flex; align-items: center; }
.header-logo img { height: 48px; width: auto; object-fit: contain; }
.header-logo .custom-logo-link { display: flex; align-items: center; }
.header-logo .site-title-text {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.header-nav { justify-self: center; }
.header-nav .nav-list { display: flex; list-style: none; gap: 8px; }
.header-nav .nav-list a {
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.header-nav .nav-list a:hover { color: var(--accent-strong); background: var(--accent-light); }

/* Desktop dropdown */
.header-nav .nav-list > li {
  position: relative;
}
.header-nav .nav-list > li > a.menu-item-has-children-toggle::after,
.header-nav .nav-list li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  margin-left: 5px;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
  transition: transform .2s;
}
.header-nav .nav-list li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}
.header-nav .nav-list li.menu-item-has-children .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
}
.header-nav .nav-list li.menu-item-has-children:hover .sub-menu,
.header-nav .nav-list li.menu-item-has-children:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* The first/last top-level items sit near the edge of the header — a
   center-anchored dropdown there would spill past the viewport edge,
   clipping its rounded corner off-screen. Anchor those two to the item's
   own edge instead of centering under it. */
.header-nav .nav-list > li:first-child .sub-menu {
  left: 0;
  transform: translateY(6px);
}
.header-nav .nav-list > li:first-child:hover .sub-menu,
.header-nav .nav-list > li:first-child:focus-within .sub-menu {
  transform: translateY(0);
}
.header-nav .nav-list > li:last-child .sub-menu {
  left: auto;
  right: 0;
  transform: translateY(6px);
}
.header-nav .nav-list > li:last-child:hover .sub-menu,
.header-nav .nav-list > li:last-child:focus-within .sub-menu {
  transform: translateY(0);
}
.header-nav .nav-list .sub-menu a {
  display: block;
  padding: 9px 18px;
  font-size: .87rem;
  color: var(--text);
  border-radius: 0;
  background: none;
  white-space: nowrap;
}
.header-nav .nav-list .sub-menu a:hover { color: var(--accent-strong); background: var(--accent-light); }
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.header-membership-btn {
  padding: 9px 22px;
  font-size: .78rem;
  white-space: nowrap;
}
.header-search-btn, .burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.header-search-btn:hover, .burger-btn:hover { color: var(--accent-strong); background: var(--accent-light); }
.burger-btn { display: none; }

.header-search-btn {
  position: relative;
  top: 2px;
}

/* Search Bar */
.header-search-bar {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 12px 0;
  display: flex;
  justify-content: center;
}
.header-search-bar[hidden] { display: none; }
.header-search-bar .search-form {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: var(--container-w);
  padding-inline: 24px;
}
.header-search-bar input[type="search"] {
  flex: 1;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  background: var(--surface);
  color: var(--text);
  transition: border-color .2s;
  min-width: 0;
}
.header-search-bar input[type="search"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242,135,47,.18);
}
.header-search-bar input[type="search"]::placeholder { color: var(--text-muted); opacity: .7; }
.header-search-bar button[type="submit"] {
  background: var(--accent-strong);
  color: var(--on-color);
  border: 1.5px solid var(--accent-strong);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 28px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: filter .2s;
  flex-shrink: 0;
}
.header-search-bar button[type="submit"]:hover { filter: brightness(.92); }
.header-search-bar button[type="submit"] svg { display: block; }

/* Mobile nav backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 299;
}
.nav-backdrop.is-open { display: block; }

/* Mobile nav drawer — slides from left */
.nav-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(300px, 85vw);
  background: var(--surface);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(-110%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.nav-menu.is-open { transform: translateX(0); }
.nav-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-menu__brand {
  display: flex;
  align-items: center;
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.nav-menu__brand img { height: 36px; width: auto; object-fit: contain; }
.nav-menu__brand .custom-logo-link { display: flex; align-items: center; }
.nav-menu__brand .site-title-text { color: inherit; }
.nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, background .2s;
}
.nav-close:hover { color: var(--accent-strong); background: var(--accent-light); }
.nav-menu__body { padding: 8px 0; }

/* Mobile nav dropdown: items expand inline */
.nav-menu .menu li.menu-item-has-children > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-menu .menu li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  flex-shrink: 0;
  transition: transform .25s;
}
.nav-menu .menu li.menu-item-has-children.is-open > a::after {
  transform: rotate(180deg);
}
.nav-menu .menu .sub-menu {
  display: none;
  list-style: none;
  background: var(--accent-light);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  overflow: hidden;
}
.nav-menu .menu li.menu-item-has-children.is-open > .sub-menu {
  display: block;
}
.nav-menu .menu .sub-menu a {
  padding: 10px 24px 10px 32px;
  font-size: .93rem;
  border-left-color: transparent;
}
.nav-menu .menu { list-style: none; display: flex; flex-direction: column; gap: 0; }
.nav-menu .menu li a {
  display: block;
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 600;
  color: var(--text);
  padding: 14px 24px;
  border-left: 3px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.nav-menu .menu li a:hover {
  color: var(--accent-strong);
  background: var(--accent-light);
  border-left-color: var(--accent);
}
.nav-menu__subscribe {
  padding: 20px 20px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-menu__subscribe .btn { display: block; text-align: center; }

/* ── HERO BANNER — full-width photo band, 2 CTAs ──────── */
.hero-banner {
  position: relative;
  min-height: clamp(440px, 48vw, 700px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
}
.hero-banner__media { position: absolute; inset: 0; z-index: 0; }
.hero-banner__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(38,32,27,.82) 0%, rgba(38,32,27,.45) 45%, rgba(38,32,27,.22) 100%);
  z-index: 1;
}
.hero-banner .container { position: relative; z-index: 2; }
.hero-banner__content { max-width: 720px; }
.hero-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--on-color);
  font-family: var(--font-headline);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
}
.hero-banner__title {
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--on-color);
  text-shadow: 0 2px 10px rgba(38,32,27,.8);
  margin-bottom: 18px;
}
.hero-banner__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.88);
  line-height: 1.65;
  max-width: 560px;
  text-shadow: 0 1px 8px rgba(38,32,27,.8);
  margin-bottom: 32px;
}
.hero-banner__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ── RECIPES GRID ─────────────────────────────────────── */
.recipes-section {
  padding: var(--section-py) 0;
  background: var(--surface);
}
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.recipe-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.recipe-card__img-link { display: block; aspect-ratio: 4/5; overflow: hidden; }
/* The homepage "more stories" row, the archive/search grid (search.php
   shares the .archive-main wrapper class), and the single-post
   "You May Also Like" row use a shorter ratio than the base portrait crop. */
.recipes-section .recipe-card__img-link,
.archive-main .recipe-card__img-link,
.related-posts .recipe-card__img-link { aspect-ratio: 5/4; }
.recipe-card__img, .recipe-card__img-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.recipe-card__img-placeholder { background: var(--secondary-light); }
.recipe-card:hover .recipe-card__img { transform: scale(1.04); }
.recipe-card__body { padding: 18px 18px 22px; }
.recipe-card__cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary-strong);
  margin-bottom: 10px;
}
.recipe-card__title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.recipe-card__title a { color: inherit; }
.recipe-card__title a:hover { color: var(--accent-strong); }

/* Bento spotlight block — first 4 posts, asymmetric feature/wide/standard mix.
   Fixed row height + spans (not real masonry) keeps it deterministic and
   image-agnostic via object-fit: cover. */
.post-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 28px;
  margin-bottom: 28px;
}
.post-bento__item--feature { grid-column: span 2; grid-row: span 2; }
.post-bento__item--wide    { grid-column: span 2; grid-row: span 1; }
.post-bento__item--standard { grid-column: span 1; grid-row: span 1; }

.post-bento__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.post-bento__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.post-bento__media { position: absolute; inset: 0; display: block; }
.post-bento__img,
.post-bento__img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.post-bento__img-placeholder { background: var(--secondary-light); }

/* Bottom scrim so light or busy photos still keep the title legible */
.post-bento__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,36,30,.88) 0%, rgba(42,36,30,.4) 45%, rgba(42,36,30,0) 75%);
  pointer-events: none;
}

.post-bento__cat {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 3;
}

.post-bento__body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 22px;
}
.post-bento__title {
  font-family: var(--font-headline);
  font-weight: 600;
  line-height: 1.25;
  color: var(--on-color);
}
.post-bento__item--feature .post-bento__title { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 10px; }
.post-bento__item--wide .post-bento__title,
.post-bento__item--standard .post-bento__title { font-size: 1rem; }
.post-bento__title a { color: inherit; transition: color .2s; }
.post-bento__title a:hover { color: var(--highlight); }
.post-bento__excerpt {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  line-height: 1.6;
  max-width: 44ch;
}

/* Bottom row of "Fresh From the Pack" — same photo+title-on-image language
   as the bento above it, but a plain 3-col grid of aspect-ratio tiles
   (not the bento's fixed-row-height layout), for a deliberately different
   rhythm from the top part. */
.post-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 28px;
}
.post-feed__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  transition: transform .2s, box-shadow .2s;
}
.post-feed__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-feed__media { position: absolute; inset: 0; display: block; }
.post-feed__img,
.post-feed__img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.post-feed__img-placeholder { background: var(--secondary-light); }
.post-feed__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,36,30,.88) 0%, rgba(42,36,30,.42) 48%, rgba(42,36,30,0) 76%);
  pointer-events: none;
}
.post-feed__cat { position: absolute; top: 16px; left: 16px; z-index: 3; }
.post-feed__body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px;
}
.post-feed__title {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--on-color);
}
.post-feed__title a { color: inherit; transition: color .2s; }
.post-feed__title a:hover { color: var(--highlight); }

/* ── TIPS SECTION — dark divider band between the two post sections ──── */
.tips-section {
  background: var(--dark);
  padding: 128px 0;
  position: relative;
  overflow: hidden;
}

/* Two soft radial glows (sage + terracotta) keep the dark band from
   feeling flat without introducing any new colors to the palette. */
.tips-section::before,
.tips-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.tips-section::before {
  top: -120px; left: -80px;
  width: 360px; height: 360px;
  background: rgba(58,107,92,.30);
}
.tips-section::after {
  bottom: -140px; right: -100px;
  width: 420px; height: 420px;
  background: rgba(242,135,47,.22);
}

.tips-section .container { position: relative; z-index: 1; }

.tips-section .section-title { color: var(--on-color); }
.tips-section .section-sub { color: rgba(255,255,255,.7); max-width: 560px; margin-inline: auto; }

/* 2 wide "featured" cards side by side, then 4 standard cards below —
   an asymmetric arrangement instead of a uniform grid. */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.tip-card--wide { grid-column: span 2; }

/* Cycle through the palette for the icon badge + eyebrow via a local
   custom property, so each card gets a color without repeating CSS. */
.tip-card--a { --tip-accent: var(--primary); }
.tip-card--b { --tip-accent: var(--accent); }
.tip-card--c { --tip-accent: var(--secondary); }
.tip-card--d { --tip-accent: var(--highlight); }

.tip-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: left;
  transition: transform .2s, background .2s;
}
.tip-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); }
/* Wide cards lay the icon beside the text instead of above it */
.tip-card--wide {
  display: flex;
  align-items: center;
  gap: 28px;
}
.tip-card--wide .tip-card__icon { margin-bottom: 0; flex-shrink: 0; }
.tip-card--wide .tip-card__body { flex: 1; min-width: 0; }
.tip-card__icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 50%;
  background: var(--tip-accent);
  margin-bottom: 20px;
}
.tip-card__eyebrow {
  display: block;
  font-family: var(--font-headline);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tip-accent);
  margin-bottom: 8px;
}
.tip-card__title {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--on-color);
  line-height: 1.3;
}
.tip-card__text { font-size: .92rem; color: rgba(255,255,255,.68); line-height: 1.65; }

/* ── CATEGORIES SECTION ──────────────────────────────── */
.categories-section {
  padding: var(--section-py) 0;
  background: var(--bg);
}
/* Two side-by-side blocks (left/right). Left: big tile on top, 2 small
   tiles side by side underneath. Right: mirrored — 2 small tiles on top,
   big tile underneath. Every row of this stack holds only equal-width
   siblings (either 1 full-width tile, or 2 evenly-split tiles), so every
   tile keeps the SAME aspect-ratio and there's no shared-row height
   mismatch to cause gaps — each row is simply sized by its own content. */
.cat-grid {
  display: flex;
  gap: 24px;
}
.cat-block {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  gap: 24px;
  min-width: 0;
}
.cat-stack {
  display: flex;
  gap: 24px;
}
.cat-card--big,
.cat-card--small { aspect-ratio: 4 / 3; }
.cat-card--small { flex: 1 1 0; min-width: 0; }

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card__media { position: absolute; inset: 0; }
.cat-card__img,
.cat-card__img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.cat-card__img { transition: transform .45s; }
.cat-card:hover .cat-card__img { transform: scale(1.06); }
.cat-card__img-placeholder {
  background: var(--secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}
.cat-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,36,30,.82) 0%, rgba(42,36,30,.3) 45%, rgba(42,36,30,0) 72%);
  pointer-events: none;
}
.cat-card__title {
  position: relative;
  z-index: 2;
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--on-color);
  line-height: 1.3;
  padding: 22px 24px;
  margin: 0;
}
.cat-card--big .cat-card__title { font-size: 1.35rem; }

/* ── SECTION DIVIDER — thin fading rule + mark, between sections ─
   The wrap is full-bleed and carries whatever background the two
   flanking sections use, so the divider never shows a mismatched
   sliver of the page's default background behind it. */
.section-divider-wrap { background: var(--bg); }
.section-divider-wrap--surface { background: var(--surface); }
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 220px;
  margin: 0 auto;
  padding: 8px 0 24px;
}
.section-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-light));
}
.section-divider__line:last-child { background: linear-gradient(to left, transparent, var(--accent-light)); }
.section-divider__mark {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── TAIL TALES — scrapbook-style polaroid grid ───────── */
.scrapbook-section {
  padding: var(--section-py) 0;
  background: var(--surface);
}
.scrapbook-section .section-heading { max-width: 620px; }

.scrapbook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 32px;
  padding: 16px 0 24px;
}

/* Each card sits at a slight, alternating tilt — like photos pinned to a
   corkboard — and straightens out on hover. A CSS custom property carries
   the tilt so a single :hover rule can reset every card to 0 uniformly. */
.scrapbook-card {
  position: relative;
  --tilt: -2deg;
  transform: rotate(var(--tilt));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 12px 12px 20px;
  transition: transform .25s, box-shadow .25s;
}
.scrapbook-card:nth-child(3n+2) { --tilt: 2deg; }
.scrapbook-card:nth-child(3n+3) { --tilt: -1.5deg; }
.scrapbook-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

/* Small washi-tape accent pinning the card in place, colored per category
   via chip--{slug} (falls back to accent-light if a post has no category) */
.scrapbook-card__tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 56px;
  height: 22px;
  border-radius: 2px;
  background: var(--accent-light);
  opacity: .9;
  box-shadow: var(--shadow-xs);
}

.scrapbook-card__media {
  display: block;
  aspect-ratio: 4/4;
  overflow: hidden;
  border-radius: 2px;
  background: var(--secondary-light);
}
.scrapbook-card__img,
.scrapbook-card__img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.scrapbook-card__img-placeholder { background: var(--secondary-light); }

.scrapbook-card__caption { padding-top: 14px; text-align: center; }
.scrapbook-card__cat { margin-bottom: 10px; }
.scrapbook-card__title {
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}
.scrapbook-card__title a { color: inherit; transition: color .2s; }
.scrapbook-card__title a:hover { color: var(--accent-strong); }

/* ── READER FAVORITES — staggered row (non-standard grid #3) ─
   Alternating cards sit offset up/down via translateY — a plain CSS
   trick (no masonry engine, no JS) for a playful staggered strip that
   reads differently from the bento grid and the editorial rows above it. */
.favorites-section {
  padding: var(--section-py) 0;
  background: var(--bg);
}
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 28px; /* room for offset cards to shift up without clipping */
}
.favorite-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.favorite-card--offset { transform: translateY(28px); }
.favorite-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.favorite-card--offset:hover { transform: translateY(24px); box-shadow: var(--shadow-md); }
.favorite-card__media { display: block; aspect-ratio: 4/4; overflow: hidden; }
.favorite-card__img,
.favorite-card__img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.favorite-card__img-placeholder { background: var(--secondary-light); }
.favorite-card__body { padding: 18px 18px 22px; }
.favorite-card__title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-top: 10px;
}
.favorite-card__title a { color: inherit; }
.favorite-card__title a:hover { color: var(--accent-strong); }

/* ── TESTIMONIALS ─────────────────────────────────────── */
.testimonials-section {
  background: var(--bg);
  padding: var(--section-py) 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-card__stars { color: var(--highlight-strong); font-size: 1.1rem; letter-spacing: 2px; }
.testimonial-card__text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
  font-style: italic;
}
.testimonial-card__author {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial-card__name { font-weight: 700; font-size: .95rem; color: var(--text); }

/* ── NEWSLETTER ───────────────────────────────────────── */
.newsletter-section {
  background: var(--bg);
  padding: var(--section-py) 0;
}
.newsletter-inner {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 56px 48px;
}
.newsletter-inner__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-strong);
  margin-bottom: 20px;
}
.newsletter-inner__title {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem,2.6vw,2.1rem);
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}
.newsletter-inner__sub { color: var(--text-muted); margin-bottom: 24px; }
/* Shared CF7 styling — used by the homepage newsletter block and the
   membership-funnel template's signup/download panels. */
.newsletter-inner .wpcf7-form,
.funnel-form-panel .wpcf7-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-inner .wpcf7-form input[type="email"],
.newsletter-inner .wpcf7-form input[type="text"],
.funnel-form-panel .wpcf7-form input[type="email"],
.funnel-form-panel .wpcf7-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}
.newsletter-inner .wpcf7-form input[type="submit"],
.funnel-form-panel .wpcf7-form input[type="submit"] {
  background: var(--accent-strong);
  color: var(--on-color);
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 32px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: filter .2s;
}
.newsletter-inner .wpcf7-form input[type="submit"]:hover,
.funnel-form-panel .wpcf7-form input[type="submit"]:hover { filter: brightness(.92); color: var(--on-color); }

.wpcf7-spinner {
  display: none;
}

/* Form layout: stack email + button with gap, suppress the raw <br> */
.newsletter-inner .form-fields p,
.funnel-form-panel .form-fields p {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.newsletter-inner .form-fields p br,
.funnel-form-panel .form-fields p br { display: none; }
.newsletter-inner .form-privacy p,
.funnel-form-panel .form-privacy p { margin: 0; }

/* Validation: red border on invalid email, hide CF7 tip text */
.newsletter-inner .wpcf7-not-valid-tip,
.funnel-form-panel .wpcf7-not-valid-tip { display: none !important; }
.newsletter-inner .wpcf7-form input.wpcf7-not-valid,
.funnel-form-panel .wpcf7-form input.wpcf7-not-valid {
  border-color: #c0392b;
}
/* Red underline on privacy label when acceptance is invalid */
.newsletter-inner .wpcf7-acceptance.wpcf7-not-valid .wpcf7-list-item-label,
.funnel-form-panel .wpcf7-acceptance.wpcf7-not-valid .wpcf7-list-item-label {
  text-decoration: underline;
  text-decoration-color: #c0392b;
  text-underline-offset: 2px;
}

/* ── EDITOR SECTION — flush-photo founder-story panel ─── */
.editor-section {
  background: var(--bg);
  padding: var(--section-py) 0;
}

/* Photo runs flush to the card edge as a wide banner on top, text below —
   the same stacked layout and aspect-ratio at every breakpoint, so the
   crop of the photo never changes between desktop and mobile. */
.founder-panel {
  max-width: 720px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.founder-panel__media { position: relative; aspect-ratio: 16/9; }
.founder-panel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.founder-panel__body {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
}
/* Flex-column children default to stretch (full width); opt the button
   out so it sizes to its own content instead of spanning the column. */
.founder-panel__body .btn { align-self: flex-start; }
.founder-panel__eyebrow {
  display: block;
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--accent-strong);
  margin-bottom: 6px;
}
.founder-panel__name {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}
.founder-panel__desc {
  color: var(--text-muted);
  font-size: 1.03rem;
  line-height: 1.75;
  margin-bottom: 20px;
}
/* Medical-disclaimer callout, visually set apart from the main bio copy */
.founder-panel__disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-muted);
  font-size: .85rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 28px;
}
.founder-panel__disclaimer svg { flex-shrink: 0; margin-top: 2px; color: var(--accent-strong); }
.founder-panel__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

/* ── FOOTER — dark espresso band ──────────────────────── */
.site-footer {
  background: var(--dark);
  padding-top: 56px;
}

/* Top: brand+blurb (left) + two vertical menu columns (center/right) */
.footer-top {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand-logo { display: inline-block; margin-bottom: 14px; }
.footer-brand-logo img { height: 40px; width: auto; }
.footer-brand-logo.site-title-text {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--on-color);
}
.footer-brand__desc {
  color: rgba(255,255,255,.7);
  font-size: .92rem;
  line-height: 1.65;
  max-width: 32ch;
}
.footer-col__heading {
  font-family: var(--font-headline);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--on-color);
  margin-bottom: 18px;
}
.footer-col__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col__list a { color: rgba(255,255,255,.75); font-size: .92rem; }
.footer-col__list a:hover { color: var(--accent); }

/* Bottom: divider + centered copyright, unchanged from before */
.footer-bottom {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
  padding-bottom: 24px;
}
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.12); margin: 0 0 20px; }
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.6); text-align: center; }

/* ── SHARED INNER-PAGE UTILITIES ─────────────────────── */
.container--narrow {
  max-width: 780px;
  margin-inline: auto;
  padding-inline: 24px;
}
.section-pad { padding: var(--section-py) 0; }

/* Category pill badge — all badges share the one accent-orange color now
   (was previously color-coded per category, which is why some looked
   green/pine — that per-category hue system is gone). */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  color: var(--accent-strong);
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 1.5px solid var(--accent);
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { background: var(--accent-strong); color: var(--on-color); border-color: var(--accent-strong); }

/* All category slugs now resolve to the same accent styling as the base
   .chip — kept as explicit rules (rather than deleting them and the PHP
   that emits chip--{slug}) so a future per-category scheme is a one-line
   change away. */
.chip--dog-cat-health,
.chip--puppy-kitten-care,
.chip--nutrition-recipes,
.chip--training-behavior,
.chip--pet-parent-life {
  background: var(--accent-light);
  color: var(--accent-strong);
  border-color: var(--accent);
}

/* Frosted variant for chips sitting on top of a photo (legible regardless of
   the underlying image) — overrides whichever slug color was set above. */
.chip--on-photo,
.chip--on-photo:hover {
  background: rgba(255,255,255,.85);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── POST GRID & TILE (archive, index, related) ──────── */
.post-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 56px;
}
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }
.post-grid--2 { grid-template-columns: repeat(2, 1fr); }

.post-tile {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.post-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-tile__thumb-link { display: block; aspect-ratio: 4/5; overflow: hidden; }
.post-tile__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-tile:hover .post-tile__thumb { transform: scale(1.04); }
.post-tile__body { padding: 20px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.post-tile__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.post-tile__title {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 8px;
}
.post-tile__title a { color: inherit; }
.post-tile__title a:hover { color: var(--accent-strong); }
.post-tile__excerpt { font-size: .9rem; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.post-tile__meta { font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.post-tile__meta time { }

/* ── PAGINATION ──────────────────────────────────────── */
.pagination { margin-top: 26px; margin-bottom: 72px; }
.pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: .9rem; font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  transition: background .2s, color .2s, border-color .2s;
}
.pagination .page-numbers:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent-strong); }
.pagination .page-numbers.current { background: var(--accent); color: var(--on-color); border-color: var(--accent); }
.pagination .page-numbers.dots { border: none; background: none; min-width: auto; padding: 0 4px; }

/* ── NO RESULTS ──────────────────────────────────────── */
.no-results { text-align: center; padding: 72px 0; }
.no-results p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 24px; }

/* ── ARCHIVE / CATEGORY PAGE ─────────────────────────── */
.archive-main { padding: 56px 0 80px; }

.archive-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 32px 36px;
  margin-bottom: 40px;
}
/* .chip already supplies the pill look (padding/radius/bg/color); this
   class only adds the spacing above the title. */
.archive-header__eyebrow { margin-bottom: 0; }
.archive-header__rule {
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin: 14px 0;
}
.archive-header__title {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 8px;
}
.archive-header__desc {
  color: var(--text-muted);
  font-size: .98rem;
  max-width: 560px;
  line-height: 1.6;
}

/* ── SINGLE POST ─────────────────────────────────────── */

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 9999;
  transition: width .1s linear;
}

.single-main { padding: 56px 0 80px; }
.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

/* Article header */
.article-header { margin-bottom: 32px; }
.article-header__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.article-header__title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}
.article-header__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--text-muted);
}

/* Featured image */
.article-hero { margin-bottom: 40px; border-radius: var(--radius-lg); overflow: hidden; }
.article-hero__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.article-hero__caption {
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 0;
  font-style: italic;
}

/* Prose content */
.entry-content {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--text);
  margin: 1.8em 0 .6em;
  line-height: 1.25;
}
.entry-content h2 { font-size: 1.55rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content h4 { font-size: 1.05rem; }
.entry-content p { margin-bottom: 1.4em; }
.entry-content ul,
.entry-content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--accent); }
.entry-content img { border-radius: var(--radius-lg); margin: 1.5em 0; }
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 2em 0;
  padding: 1em 1.5em;
  background: var(--bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}
.entry-content blockquote p { margin: 0; }
.entry-content code {
  background: var(--secondary-light);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: .88em;
}
.entry-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

/* Prev / Next post nav */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article-nav__prev { text-align: left; }
.article-nav__next { text-align: right; }
.article-nav__label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-strong);
  margin-bottom: 6px;
}
.article-nav__link {
  font-family: var(--font-headline);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.article-nav__link:hover { color: var(--accent-strong); }

/* Related posts */
.related-posts { margin-top: 56px; }
.related-posts__heading {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Sticky sidebar */
.single-sidebar { position: sticky; top: calc(var(--header-h, 64px) + 24px); }
.sidebar-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.sidebar-panel__heading {
  font-family: var(--font-headline);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-strong);
  margin-bottom: 20px;
}
.side-article {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.side-article:last-child { border-bottom: none; padding-bottom: 0; }
.side-article__thumb-link {
  display: block;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.side-article__thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.side-article__thumb-link:hover .side-article__thumb { transform: scale(1.05); }
.side-article__body { flex: 1; min-width: 0; margin-top: -5px; }
/* The base .chip size is tuned for full-size post cards; scaled down here
   so it doesn't overpower this compact 72px-thumbnail list item. */
.side-article__body .post-tile__chips { margin-bottom: 5px; }
.side-article__body .chip { font-size: .6rem; padding: 3px 10px; }
.side-article__title {
  font-family: var(--font-headline);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 4px;
}
.side-article__title a { color: var(--text); }
.side-article__title a:hover { color: var(--accent-strong); }

/* ── STATIC PAGE ─────────────────────────────────────── */
.page-main { padding: 56px 0 80px; }
.page-header { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.page-header__title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.page-hero { margin-bottom: 40px; border-radius: var(--radius-lg); overflow: hidden; }
.page-hero__img { width: 100%; aspect-ratio: 16/6; object-fit: cover; }

/* ── 404 PAGE ────────────────────────────────────────── */
.error-main { padding: 80px 0 100px; }
.error-page { text-align: center; }
.error-page__code {
  font-family: var(--font-headline);
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 8px;
  user-select: none;
}
.error-page__title {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.error-page__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin-inline: auto;
  line-height: 1.7;
  margin-bottom: 36px;
}
.error-page__actions { margin-bottom: 64px; }
.btn--primary { background: var(--accent-strong); color: var(--on-color); border-color: var(--accent-strong); }
.btn--primary:hover { filter: brightness(.92); color: var(--on-color); }

.error-recent {
  max-width: 500px;
  margin-inline: auto;
  text-align: left;
}
.error-recent__heading {
  font-family: var(--font-headline);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-strong);
  margin-bottom: 16px;
}
.error-recent__list { list-style: none; }
.error-recent__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.error-recent__list li:last-child { border-bottom: none; }
.error-recent__list a {
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
  flex: 1;
}
.error-recent__list a:hover { color: var(--accent-strong); }
.error-recent__list time { font-size: .78rem; color: var(--text-muted); white-space: nowrap; }

/* ── MEMBERSHIP FUNNEL TEMPLATE ───────────────────────── */
.funnel-hero {
  background: var(--bg);
  padding: 72px 0 48px;
  text-align: center;
}
.funnel-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: var(--highlight-light);
  color: var(--highlight-strong);
  font-family: var(--font-headline);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
}
.funnel-hero__title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.12;
  margin-bottom: 18px;
}
.funnel-hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 32px;
}
.funnel-hero__cta { padding: 16px 40px; font-size: .95rem; }

.funnel-section { padding: 64px 0; background: var(--bg); }
.funnel-section--alt { background: var(--surface); }
.funnel-section--cta { padding: 24px 0 64px; background: var(--bg); }

.funnel-eyebrow {
  display: block;
  font-family: var(--font-headline);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-strong);
  margin-bottom: 10px;
}
.funnel-subheading {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 32px;
}

.funnel-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  margin-bottom: 36px;
}
/* Free-guide style lists: a single centered column instead of the 2-col
   grid used for longer course/membership lists. */
.funnel-checklist--accent {
  grid-template-columns: 1fr;
  max-width: 360px;
  margin-inline: auto;
  margin-bottom: 36px;
}
.funnel-checklist__item { display: flex; gap: 14px; align-items: flex-start; }
.funnel-checklist__icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent-strong);
}
.funnel-checklist__body { display: flex; flex-direction: column; }
.funnel-checklist__title {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: .98rem;
  color: var(--text);
  margin-bottom: 2px;
}
.funnel-checklist__desc { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }

.funnel-highlight-box {
  background: var(--secondary-light);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  text-align: center;
}
.funnel-highlight-box__title {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 12px;
}
.funnel-highlight-box__text {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
  max-width: 60ch;
  margin: 0 auto;
}

.funnel-form-panel {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 56px 48px;
}
.funnel-form-panel__title {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.funnel-form-panel__sub { color: var(--text-muted); margin-bottom: 24px; }

.funnel-extra-content { padding-bottom: var(--section-py); }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Header — flex so logo stays left, icons stay right */
  .header-inner { display: flex; justify-content: space-between; padding: 0 16px; }
  .header-nav { display: none; }
  .header-membership-btn { display: none; }
  .burger-btn { display: flex; }

  .recipes-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  /* Below desktop, just stack the left/right blocks — each block keeps
     its own internal big-tile + small-row layout and aspect-ratio as-is. */
  .scrapbook-grid { grid-template-columns: repeat(2, 1fr); }
  .favorites-grid { grid-template-columns: repeat(2, 1fr); }

  /* Bento block — asymmetry only makes sense at full desktop width;
     collapse to a plain uniform 2-col grid below that. Row height switches
     from a fixed px value to a shared 5/3 aspect-ratio on every item, so
     "Fresh From the Pack" and "Reader Favorites" all crop consistently
     below desktop width. */
  .post-bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-rows: auto; }
  .post-bento__item--feature,
  .post-bento__item--wide,
  .post-bento__item--standard { grid-column: span 1; grid-row: span 1; }
  .post-bento__item { aspect-ratio: 5/3; }
  .post-feed { grid-template-columns: repeat(2, 1fr); }
  .post-feed__item { aspect-ratio: 5/3; }
  .favorite-card__media { aspect-ratio: 5/3; }

  /* Last 3 sections had too much accumulated whitespace between them below
     desktop width — tighten their own padding and the dividers between them. */
  .favorites-section,
  .testimonials-section,
  .editor-section { padding: 64px 0; }
  .section-divider { padding: 4px 0 12px; }

  /* Inner pages */
  .post-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
  /* Recipe/archive/related grids: 2-col at tablet */
  .recipes-grid { grid-template-columns: repeat(2, 1fr); }

  .cat-card__title {
    padding: 18px 18px;
  }
}

@media (max-width: 768px) {

  /* Hero banner — shorter band, tighter type */
  .hero-banner { min-height: 0; padding: 64px 0; }
  .hero-banner__title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero-banner__actions { flex-direction: column; align-items: stretch; }
  .hero-banner__actions .btn { text-align: center; }
  .post-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .post-bento__excerpt { display: none; }
  .post-feed { grid-template-columns: 1fr; }
  .tips-section { padding: 64px 0; }
  .tips-grid { grid-template-columns: 1fr; }
  .tip-card--wide { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .tip-card--wide .tip-card__icon { margin-bottom: 20px; }
  .funnel-hero { padding: 56px 0 40px; }
  .funnel-checklist { grid-template-columns: 1fr; gap: 20px; }
  .funnel-form-panel { padding: 36px 24px; }
  .funnel-highlight-box { padding: 28px 24px; }
  .newsletter-inner { padding: 36px 24px; }
  .scrapbook-grid { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }

  .favorites-grid { grid-template-columns: 1fr; }
  .favorite-card--offset { transform: none; }
  .founder-panel__body { padding: 32px 24px; text-align: center; }
  .founder-panel__body .btn { align-self: center; }
  .founder-panel__credentials { justify-content: center; }
  .founder-panel__disclaimer { text-align: left; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-brand__desc { max-width: none; margin-inline: auto; }

  /* Inner pages */
  .post-grid--3 { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; gap: 16px; }
  .article-nav__next { text-align: left; }
  .article-hero__img { aspect-ratio: 4/3; }
  .archive-header { padding: 28px 24px; margin-bottom: 40px; }

  .cat-grid { flex-direction: column; }
  .cat-stack { gap: 15px; }
}

@media (max-width: 560px) {
  .recipes-grid { grid-template-columns: repeat(2, 1fr); }

  .recipe-card__body { padding: 18px 12px 22px; }
  .recipe-card__cat { padding: 4px 10px; }

  .cat-card__title {
    padding: 15px 15px;
  }
  .cat-card__scrim {
    background: linear-gradient(to top, rgba(42, 36, 30, .82) 0%, rgba(42, 36, 30, .3) 50%, rgba(42, 36, 30, 0) 80%);
  }
}
