/*
Theme Name: Nookworthy
Theme URI: https://nookworthy.com
Author: Nookworthy
Description: Small space and home decor blog theme.
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500&family=Dancing+Script:wght@500&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Palette — Airy & Light */
  --clr-bg:          #f8f7f4;
  --clr-surface:     #ffffff;
  --clr-surface-alt: #f2f0ec;
  --clr-mint:        #d8ede8;
  --clr-mint-deep:   #a8ccc5;
  --clr-sage:        #7aab9e;
  --clr-sage-dark:   #3d6b62;
  --clr-grey-soft:   #e8e5e0;
  --clr-grey-mid:    #b0a99e;
  --clr-text:        #2a2825;
  --clr-text-muted:  #7a746c;
  --clr-text-light:  #a09890;
  --clr-accent:      #c8a882;
  --clr-accent-deep: #9e7a52;

  /* Typography */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Jost', 'Helvetica Neue', sans-serif;
  --font-script:   'Dancing Script', cursive;

  /* Spacing */
  --gap-xs:  0.5rem;
  --gap-sm:  1rem;
  --gap-md:  2rem;
  --gap-lg:  4rem;
  --gap-xl:  6rem;

  /* Layout */
  --max-w:         1180px;
  --max-w-narrow:  760px;
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     16px;

  /* Transitions */
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.35s;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* ============================================
   UTILITY
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gap-md);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--clr-text);
}

.section-title em {
  font-style: italic;
  color: var(--clr-sage);
}

.script-accent {
  font-family: var(--font-script);
  font-size: 1.4em;
  color: var(--clr-sage);
  display: block;
  line-height: 1.2;
}

.wavy-line {
  width: 80px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 6'%3E%3Cpath d='M0 3 Q10 0 20 3 Q30 6 40 3 Q50 0 60 3 Q70 6 80 3' stroke='%23a8ccc5' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat center;
  display: inline-block;
  margin-block: var(--gap-sm);
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border: 1.5px solid currentColor;
  border-radius: 50px;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease);
  cursor: pointer;
}

.btn--dark {
  color: var(--clr-text);
  border-color: var(--clr-text);
}

.btn--dark:hover {
  background: var(--clr-text);
  color: var(--clr-surface);
}

.btn--sage {
  color: var(--clr-sage-dark);
  border-color: var(--clr-sage);
}

.btn--sage:hover {
  background: var(--clr-sage);
  color: var(--clr-surface);
}

.btn--filled {
  background: var(--clr-text);
  color: var(--clr-surface);
  border-color: var(--clr-text);
}

.btn--filled:hover {
  background: var(--clr-sage-dark);
  border-color: var(--clr-sage-dark);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--clr-grey-soft);
  transition: box-shadow var(--duration) var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(42, 40, 37, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-block: 1rem;
}

.header-nav--left,
.header-nav--right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-nav--right {
  justify-content: flex-end;
}

.nav-link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  position: relative;
  white-space: nowrap;
  transition: color var(--duration) var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-sage);
  transition: width var(--duration) var(--ease);
}

.nav-link:hover {
  color: var(--clr-text);
}

.nav-link:hover::after {
  width: 100%;
}

.site-logo {
  text-align: center;
}

.site-logo a {
  display: inline-block;
}

.site-logo__name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--clr-text);
  display: block;
  line-height: 1;
}

.site-logo__tagline {
  font-family: var(--font-script);
  font-size: 1.1rem;
  color: var(--clr-sage);
  display: block;
  margin-top: 3px;
  line-height: 1;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration) var(--ease);
  padding: 4px;
}

.header-icon-btn:hover {
  color: var(--clr-text);
}

.header-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--clr-text);
  transition: transform var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--clr-mint);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 204, 197, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
  padding-block: var(--gap-xl);
}

.hero-content {
  max-width: 520px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-sage-dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--clr-sage-dark);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--clr-text);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--clr-sage-dark);
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 400px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  flex-wrap: wrap;
}

.hero-actions .btn-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--duration) var(--ease);
}

.hero-actions .btn-link:hover {
  color: var(--clr-text);
}

.hero-image-stack {
  position: relative;
  height: 520px;
  min-height: 260px;
}

.hero-img-main {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  height: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-img-accent {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 48%;
  height: 300px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 4px solid var(--clr-bg);
  box-shadow: 0 12px 40px rgba(42, 40, 37, 0.12);
  display: block;
}

.hero-badge {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-surface);
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(42, 40, 37, 0.1);
  white-space: nowrap;
  z-index: 2;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-sage);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-badge span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--clr-text-muted);
}

/* ============================================
   FEATURED POSTS ROW (mirrors Culinary Echoes)
   ============================================ */
.section--posts-featured {
  padding-block: var(--gap-xl);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--gap-lg);
  gap: var(--gap-md);
}

.section-header-text {}

.section-see-all {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--duration) var(--ease);
  flex-shrink: 0;
}

.section-see-all svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform var(--duration) var(--ease);
}

.section-see-all:hover {
  color: var(--clr-text);
}

.section-see-all:hover svg {
  transform: translateX(4px);
}

/* Post grid: 3 portrait cards */
.posts-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

/* Post grid: 2+2 or featured layout */
.posts-grid--featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--gap-md);
}

.posts-grid--featured .post-card:first-child {
  grid-row: span 1;
}

/* Post Card */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(42, 40, 37, 0.1);
}

.post-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
}

.post-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.post-card:hover .post-card__image-wrap img {
  transform: scale(1.04);
}

.post-card__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--clr-surface);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-sage-dark);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.post-card__body {
  padding: 1.4rem 1.4rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--clr-text);
  margin-bottom: 0.75rem;
  transition: color var(--duration) var(--ease);
}

.post-card:hover .post-card__title {
  color: var(--clr-sage-dark);
}

.post-card__excerpt {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--clr-text);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-grey-soft);
}

.post-card__date {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--clr-text-muted);
  letter-spacing: 0.05em;
}

.post-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--clr-grey-soft);
  color: var(--clr-text-muted);
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}

.post-card__arrow svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.post-card:hover .post-card__arrow {
  background: var(--clr-sage);
  border-color: var(--clr-sage);
  color: white;
}

/* ============================================
   MOST POPULAR — TABBED (mirrors Culinary Echoes)
   ============================================ */
.section--popular {
  background: var(--clr-surface-alt);
  padding-block: var(--gap-xl);
}

.popular-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap-lg);
  align-items: start;
  margin-bottom: var(--gap-lg);
}

.popular-header-aside {}

.popular-header-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--clr-text-muted);
  margin-top: var(--gap-sm);
  line-height: 1.7;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-self: flex-end;
}

.tab-btn {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem 1.35rem;
  border-radius: 50px;
  border: 1.5px solid var(--clr-grey-soft);
  background: transparent;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--clr-text);
  border-color: var(--clr-text);
  color: var(--clr-surface);
}

.tabs-content {}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* 4-col horizontal cards for popular posts */
.posts-grid--popular {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
}

/* ============================================
   AUTHOR / ABOUT
   ============================================ */
.section--author {
  padding-block: var(--gap-xl);
}

.author-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--gap-xl);
  align-items: center;
}

.author-image-wrap {
  position: relative;
}

.author-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.author-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-image-deco {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--clr-mint);
  z-index: -1;
}

.author-image-quote {
  position: absolute;
  top: -16px;
  left: 20px;
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(42, 40, 37, 0.08);
}

.author-image-quote span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--clr-text-muted);
}

.author-image-quote svg {
  width: 16px;
  height: 16px;
  color: var(--clr-sage);
  flex-shrink: 0;
}

.author-content {}

.author-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: var(--gap-sm);
}

.author-name strong {
  font-style: italic;
  font-weight: 400;
  color: var(--clr-sage-dark);
}

.author-bio {
  font-size: 1rem;
  font-weight: 300;
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: var(--gap-md);
}

.author-stats {
  display: flex;
  gap: var(--gap-md);
  margin-bottom: var(--gap-md);
  padding-block: var(--gap-md);
  border-top: 1px solid var(--clr-grey-soft);
  border-bottom: 1px solid var(--clr-grey-soft);
}

.author-stat {}

.author-stat__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--clr-text);
  line-height: 1;
}

.author-stat__label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-light);
  margin-top: 3px;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.section--newsletter {
  background: var(--clr-text);
  padding-block: var(--gap-lg);
  position: relative;
  overflow: hidden;
}

.section--newsletter::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(122, 171, 158, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.section--newsletter::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(168, 204, 197, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.newsletter-content {}

.newsletter-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-sage);
  display: block;
  margin-bottom: 0.5rem;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.newsletter-title em {
  font-style: italic;
  color: var(--clr-mint-deep);
}

.newsletter-desc {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.newsletter-form-wrap {}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.newsletter-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.newsletter-field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  outline: none;
  transition: border-color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.newsletter-input:focus {
  border-color: var(--clr-sage);
  background: rgba(255, 255, 255, 0.1);
}

.newsletter-form .btn {
  align-self: flex-start;
  background: var(--clr-sage);
  color: white;
  border-color: var(--clr-sage);
  margin-top: 0.5rem;
}

.newsletter-form .btn:hover {
  background: var(--clr-mint-deep);
  border-color: var(--clr-mint-deep);
}

.newsletter-note {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.5rem;
}

/* ============================================
   RECENT POSTS SECTION
   ============================================ */
.section--recent {
  padding-block: var(--gap-xl);
}

/* 3-col grid at bottom */
.posts-grid--recent {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

/* ============================================
   PULL QUOTE / MANIFESTO BLOCK
   ============================================ */
.section--manifesto {
  background: var(--clr-mint);
  padding-block: var(--gap-xl);
  text-align: center;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--clr-text);
  line-height: 1.45;
  max-width: 820px;
  margin-inline: auto;
}

.manifesto-attribution {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-sage-dark);
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.manifesto-attribution::before,
.manifesto-attribution::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--clr-sage-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--clr-text);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--gap-xl);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--gap-lg);
  padding-bottom: var(--gap-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: #ffffff;
  display: block;
  margin-bottom: 0.25rem;
}

.footer-brand-tag {
  font-family: var(--font-script);
  font-size: 0.9rem;
  color: var(--clr-sage);
  display: block;
  margin-bottom: 1.2rem;
}

.footer-brand-desc {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 260px;
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--duration) var(--ease);
}

.social-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.social-link:hover {
  border-color: var(--clr-sage);
  color: var(--clr-sage);
  background: rgba(122, 171, 158, 0.1);
}

.footer-bottom {
  padding-block: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
}

.footer-copyright {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
}

.footer-legal {
  display: flex;
  gap: var(--gap-md);
}

.footer-legal a {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--duration) var(--ease);
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(248, 247, 244, 0.97);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.search-overlay-inner {
  width: 100%;
  max-width: 600px;
  padding: var(--gap-md);
  text-align: center;
}

.search-overlay-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--clr-text-muted);
  margin-bottom: var(--gap-sm);
}

.search-input-wrap {
  position: relative;
}

.search-input {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--clr-grey-soft);
  background: transparent;
  padding: 1rem 3rem 1rem 0;
  color: var(--clr-text);
  outline: none;
  transition: border-color var(--duration) var(--ease);
}

.search-input:focus {
  border-color: var(--clr-sage);
}

.search-input::placeholder {
  color: var(--clr-grey-mid);
}

.search-submit {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-text-muted);
}

.search-submit svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.search-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--duration) var(--ease);
}

.search-close:hover { color: var(--clr-text); }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(1) { transition-delay: 0.0s; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
    text-align: center;
    padding-block: var(--gap-lg);
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-content {
    max-width: 600px;
    margin-inline: auto;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image-stack {
    height: 340px;
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }

  .hero-img-main {
    width: 72%;
    height: 100%;
  }

  .hero-img-accent {
    width: 44%;
    height: 220px;
    bottom: 20px;
  }

  .posts-grid--popular {
    grid-template-columns: repeat(2, 1fr);
  }

  .popular-header {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
  }

  .author-inner {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }

  .author-image-wrap {
    max-width: 400px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-md);
  }

  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }
}

@media (max-width: 900px) {
  html {
    font-size: 16px; /* Slight reduction on tablet */
  }

  /* Hide nav links earlier to prevent wrapping on tablet */
  .header-nav--left,
  .header-nav--right .nav-link,
  .header-nav--right .nav-dropdown-wrap,
  .nav-link--about {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  /* Keep search icon visible */
  .header-icons {
    display: flex;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px; /* Base on mobile */
  }

  .hero-img-accent {
    display: none; /* Hide overlapping accent image on mobile — single image is cleaner */
  }

  :root {
    --gap-lg: 3rem;
    --gap-xl: 4rem;
  }

  .header-nav--left,
  .header-nav--right .nav-link,
  .header-nav--right .nav-dropdown-wrap,
  .nav-link--about {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .site-logo {
    text-align: left;
    grid-column: 2;
  }

  .posts-grid--3,
  .posts-grid--featured,
  .posts-grid--recent {
    grid-template-columns: 1fr 1fr;
  }

  .posts-grid--popular {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px; /* Slightly smaller on very small phones */
  }

  .posts-grid--3,
  .posts-grid--featured,
  .posts-grid--recent,
  .posts-grid--popular {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-block: var(--gap-md);
  }

  .hero-image-stack {
    height: 280px;
    max-width: 100%;
    width: 100%;
  }

  .hero-img-main {
    width: 100%;
    right: 0;
    left: 0;
    border-radius: var(--radius-md);
  }

  .hero-img-accent {
    display: none; /* Hide accent image on mobile — too cramped */
  }

  .hero-badge {
    display: none; /* Hide badge on mobile */
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }
}

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

.mobile-nav-drawer.open {
  pointer-events: all;
}

.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 40, 37, 0);
  transition: background 0.4s var(--ease);
}

.mobile-nav-drawer.open .mobile-nav-overlay {
  background: rgba(42, 40, 37, 0.5);
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--clr-surface);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
}

.mobile-nav-drawer.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--clr-grey-soft);
}

.mobile-nav-logo__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--clr-text);
  display: block;
  line-height: 1;
}

.mobile-nav-logo__tag {
  font-family: var(--font-script);
  font-size: 0.8rem;
  color: var(--clr-sage);
  display: block;
  margin-top: 2px;
}

.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration) var(--ease);
}

.mobile-nav-close:hover {
  color: var(--clr-text);
}

.mobile-nav-links {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.mobile-nav-link {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--clr-text-muted);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease);
  letter-spacing: 0.05em;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--clr-mint);
  color: var(--clr-sage-dark);
}

.mobile-nav-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--clr-grey-soft);
  display: flex;
  gap: 1.5rem;
}

.mobile-nav-meta-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  transition: color var(--duration) var(--ease);
}

.mobile-nav-meta-link:hover {
  color: var(--clr-text);
}

/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.archive-hero {
  background: var(--clr-mint);
  padding: var(--gap-lg) 0;
  text-align: center;
}

.archive-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-sage-dark);
  display: block;
  margin-bottom: 0.5rem;
}

.archive-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--clr-text);
  line-height: 1.1;
}

.archive-title em {
  font-style: italic;
  color: var(--clr-sage-dark);
}

.archive-desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--clr-text-muted);
  margin-top: 1rem;
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
}

.archive-count {
  font-size: 0.78rem;
  color: var(--clr-text-light);
  margin-top: 0.75rem;
}

.archive-posts {
  padding-block: var(--gap-xl);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

.archive-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: var(--gap-lg) 0 var(--gap-xl);
}

.archive-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--clr-grey-soft);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--clr-text-muted);
  transition: all var(--duration) var(--ease);
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
  background: var(--clr-text);
  border-color: var(--clr-text);
  color: white;
}

.archive-pagination .page-numbers.dots {
  border: none;
  background: none;
}

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

@media (max-width: 480px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */
.search-hero {
  background: var(--clr-surface-alt);
  padding: var(--gap-lg) 0;
  border-bottom: 1px solid var(--clr-grey-soft);
}

.search-hero-inner {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

.search-hero-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  display: block;
  margin-bottom: 0.4rem;
}

.search-hero-query {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--clr-text);
  line-height: 1.1;
}

.search-hero-query em {
  font-style: italic;
  color: var(--clr-sage-dark);
}

.search-count {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  margin-top: 0.5rem;
}

.search-form-inline {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  max-width: 480px;
}

.search-form-inline input[type="search"] {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.75rem 1.2rem;
  border: 1.5px solid var(--clr-grey-soft);
  border-radius: 50px;
  background: var(--clr-surface);
  color: var(--clr-text);
  outline: none;
  transition: border-color var(--duration) var(--ease);
}

.search-form-inline input[type="search"]:focus {
  border-color: var(--clr-sage);
}

.search-form-inline button {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: none;
  background: var(--clr-text);
  color: white;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.search-form-inline button:hover {
  background: var(--clr-sage-dark);
}

.search-results {
  padding-block: var(--gap-xl);
}

.search-no-results {
  text-align: center;
  padding: var(--gap-xl) 0;
}

.search-no-results-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--clr-text);
}

.search-no-results p {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  background: var(--clr-mint);
  padding: var(--gap-xl) 0;
  overflow: hidden;
  position: relative;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 204, 197, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

.about-hero-content {}

.about-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--clr-text);
  margin-bottom: 1.5rem;
}

.about-hero-title em {
  font-style: italic;
  color: var(--clr-sage-dark);
}

.about-hero-bio {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-values {
  padding-block: var(--gap-xl);
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  margin-top: var(--gap-lg);
}

.about-value-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--clr-grey-soft);
}

.about-value-icon {
  width: 44px;
  height: 44px;
  background: var(--clr-mint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.about-value-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--clr-sage-dark);
  fill: none;
  stroke-width: 1.5;
}

.about-value-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--clr-text);
  margin-bottom: 0.6rem;
}

.about-value-desc {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

.about-story {
  background: var(--clr-surface-alt);
  padding-block: var(--gap-xl);
}

.about-story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

.about-story-content {}

.about-story-text {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--clr-text-muted);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.about-story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
}

.about-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-cta {
  padding-block: var(--gap-xl);
  text-align: center;
  background: var(--clr-text);
}

.about-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: white;
  margin-bottom: 1rem;
}

.about-cta-title em {
  font-style: italic;
  color: var(--clr-mint-deep);
}

.about-cta-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-inline: auto;
}

.about-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn--light {
  color: white;
  border-color: rgba(255,255,255,0.4);
}

.btn--light:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

@media (max-width: 768px) {
  .about-hero-inner,
  .about-story-inner {
    grid-template-columns: 1fr;
  }
  .about-values-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-block: var(--gap-xl);
}

.page-404-inner {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

.page-404-number {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 300;
  line-height: 1;
  color: var(--clr-grey-soft);
  display: block;
  margin-bottom: 0.5rem;
}

.page-404-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--clr-text);
  margin-bottom: 1rem;
}

.page-404-title em {
  font-style: italic;
  color: var(--clr-sage-dark);
}

.page-404-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.page-404-search {
  max-width: 400px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.page-404-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.page-404-cat {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-sage-dark);
  background: var(--clr-mint);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  transition: background var(--duration) var(--ease);
}

.page-404-cat:hover {
  background: var(--clr-mint-deep);
  color: white;
}

/* ============================================================
   NAV TOGGLE OPEN STATE
   ============================================================ */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   ARCHIVE 4-COL GRID
   ============================================================ */
.archive-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.archive-grid--4 .post-card__title {
  font-size: 1.1rem;
  font-weight: 500;
}

.archive-grid--4 .post-card__excerpt {
  display: none;
}

@media (max-width: 1024px) {
  .archive-grid--4 { grid-template-columns: repeat(3, 1fr); }
}

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

@media (max-width: 480px) {
  .archive-grid--4 { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
}

/* ═══════════════════════════════════════════════
   SUBCATEGORY — Nav Dropdown (A)
═══════════════════════════════════════════════ */
.nav-dropdown-wrap {
  position: relative;
  display: inline-block;
}
.nav-link--has-dropdown .nav-caret {
  font-size: .55rem;
  margin-left: .25rem;
  vertical-align: middle;
  display: inline-block;
  transition: transform .2s;
}
/* Caret rotation handled by JS via .is-open class */
.nav-dropdown-wrap.is-open .nav-caret {
  transform: rotate(180deg);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--clr-grey-soft);
  border-radius: var(--radius-md);
  padding: .5rem 0;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(42,40,37,.1);
  z-index: 200;
  white-space: nowrap;
}
/* Dropdown opens via JS — .is-open class toggled on click */
.nav-dropdown-wrap.is-open .nav-dropdown {
  display: block;
  animation: nw-dropdown-in .18s ease;
}
@keyframes nw-dropdown-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-dropdown__item {
  display: block;
  padding: .6rem 1.2rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-text);
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-dropdown__item:hover {
  background: var(--clr-mint);
  color: var(--clr-sage-dark);
}

/* ═══════════════════════════════════════════════
   SUBCATEGORY — Mobile Accordion (A mobile)
═══════════════════════════════════════════════ */
.mobile-nav-accordion {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-text);
  text-align: left;
}
.mobile-nav-caret {
  font-size: .6rem;
  transition: transform .25s;
}
.mobile-nav-accordion[aria-expanded="true"] .mobile-nav-caret {
  transform: rotate(180deg);
}
.mobile-nav-sublist {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--clr-mint);
}
.mobile-nav-sublist.is-open {
  display: block;
}
.mobile-nav-sublink {
  display: block;
  padding: .7rem 1.5rem .7rem 2.2rem;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--clr-sage-dark);
  text-decoration: none;
  transition: background .15s;
}
.mobile-nav-sublink:hover {
  background: rgba(122,171,158,.2);
}

/* ═══════════════════════════════════════════════
   SUBCATEGORY — Archive Cards (C) hover
═══════════════════════════════════════════════ */
.subcat-card:hover img {
  transform: scale(1.04);
}
@media (max-width: 600px) {
  .subcat-cards {
    grid-template-columns: 1fr !important;
  }
}
@media (min-width: 601px) and (max-width: 900px) {
  .subcat-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* About link in header nav — bold to distinguish from category links */
.nav-link--about {
  font-weight: 700;
  color: var(--clr-text);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.nav-link--about:hover {
  color: var(--clr-sage-dark);
}

/* ============================================================
   TABLE OF CONTENTS (auto-generated in blog posts)
   ============================================================ */
.toc {
  background: var(--clr-surface-alt);
  border-left: 3px solid var(--clr-sage);
  padding: 1.5rem 1.75rem 1.25rem;
  margin: 2rem 0 2.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.toc__title {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-sage-dark);
  margin-bottom: 0.85rem;
}
.toc__list {
  list-style: decimal inside;
  margin: 0;
  padding: 0;
  color: var(--clr-text-muted);
}
.toc__item {
  padding: 0.4rem 0;
  font-size: 1rem;
  line-height: 1.5;
}
.toc__link {
  color: var(--clr-text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color var(--duration) var(--ease), text-decoration-color var(--duration) var(--ease);
}
.toc__link:hover,
.toc__link.active {
  color: var(--clr-sage-dark);
  text-decoration-color: var(--clr-sage);
}

/* Collapse behavior — hidden items animate in when revealed */
.toc__item--hidden {
  display: none;
}
.toc__item--revealed {
  display: list-item;
  animation: toc-reveal 0.25s ease;
}
@keyframes toc-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.toc__toggle {
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 0.75rem;
  padding: 0.4rem 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-sage-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--duration) var(--ease);
}
.toc__toggle:hover {
  color: var(--clr-text);
}
.toc__toggle-caret {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}
.toc__toggle[aria-expanded="true"] .toc__toggle-caret {
  transform: rotate(180deg);
}

/* ============================================================
   SINGLE POST — 2-COLUMN LAYOUT WITH SIDEBAR
   ============================================================ */
.post-layout {
  padding: 2rem 0 var(--gap-xl);
}

.post-layout-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap-lg);
}

@media (min-width: 960px) {
  .post-layout-inner {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: var(--gap-lg);
    align-items: start;
  }
}

.post-content {
  max-width: 100%;
  min-width: 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--clr-text);
}
.post-content p {
  margin-bottom: 1.25rem;
}
.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--clr-text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}
.post-content h2 { font-size: 1.9rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }
.post-content img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}
.post-content a {
  color: var(--clr-sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration) var(--ease);
}
.post-content a:hover {
  color: var(--clr-text);
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

@media (min-width: 960px) {
  .post-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 4px;
  }
  .post-sidebar::-webkit-scrollbar {
    width: 4px;
  }
  .post-sidebar::-webkit-scrollbar-thumb {
    background: var(--clr-grey-soft);
    border-radius: 2px;
  }
}

.sidebar-widget {
  background: var(--clr-surface);
  border: 1px solid var(--clr-grey-soft);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.sidebar-widget__title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 0.85rem;
}

/* Browse by Room list */
.sidebar-cats {
  margin: 0;
  padding: 0;
}
.sidebar-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  font-size: 0.92rem;
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-grey-soft);
  transition: color var(--duration) var(--ease);
}
.sidebar-cats li:last-child .sidebar-cat-link {
  border-bottom: none;
}
.sidebar-cat-link:hover,
.sidebar-cat-link.active {
  color: var(--clr-sage-dark);
}
.sidebar-cat-count {
  font-size: 0.78rem;
  color: var(--clr-text-light);
  font-weight: 300;
}

/* You Might Also Like */
.sidebar-related {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sidebar-related__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.sidebar-related__img {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sidebar-related__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-related__body {
  flex: 1;
  min-width: 0;
}
.sidebar-related__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.sidebar-related__title a {
  color: var(--clr-text);
  transition: color var(--duration) var(--ease);
}
.sidebar-related__title a:hover {
  color: var(--clr-sage-dark);
}
.sidebar-related__date {
  font-size: 0.75rem;
  color: var(--clr-text-light);
}

/* Sidebar newsletter */
.sidebar-newsletter {
  background: var(--clr-mint);
  border-color: var(--clr-mint-deep);
}
.sidebar-newsletter__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-sage-dark);
  display: block;
  margin-bottom: 0.5rem;
}
.sidebar-newsletter__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--clr-text);
  margin-bottom: 0.6rem;
}
.sidebar-newsletter__desc {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.sidebar-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-newsletter__input {
  padding: 0.75rem 1rem;
  background: #fff;
  color: var(--clr-text);
  border: 1px solid var(--clr-grey-soft);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
}
.sidebar-newsletter__form .btn {
  width: 100%;
  font-size: 0.78rem;
  padding: 0.75rem 1rem;
}

/* ============================================================
   AD ZONES — render placeholder space only when enabled
   ============================================================ */
.nw-ad-zone {
  display: block;
  width: 100%;
  margin: 2rem 0;
  min-height: 90px;
  text-align: center;
  overflow: hidden;
}

/* In-content ad sits inside post body, needs visual separation */
.nw-ad-in-content {
  margin: 2.5rem auto;
  max-width: 100%;
}

/* Below-post ad */
.nw-ad-below-post {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-grey-soft);
}

/* Sidebar ad zones */
.nw-ad-sidebar-top,
.nw-ad-sidebar-sticky {
  min-height: 250px;
  margin: 0 0 1.25rem;
}

/* Sticky sidebar ad — stays visible as user scrolls */
@media (min-width: 960px) {
  .nw-ad-sticky {
    position: sticky;
    top: 110px;
  }
}

/* Archive mid ad */
.nw-ad-archive-mid {
  max-width: 728px;
  margin: 2rem auto;
}

/* Homepage mid ad */
.nw-ad-homepage-mid {
  max-width: 728px;
  margin: 0 auto;
}
