/* =============================================
   SKINCARE RITUALS THEME
   Botanical Luxury — Clean, Airy, Elegant
   Palette: Cream · Dusty Rose · Sage Green · Warm White
   ============================================= */

/* ─── Custom Properties ─────────────────────── */
:root {
  /* Colors */
  --cream:        #FAF7F2;
  --cream-dark:   #F3EDE3;
  --cream-border: #E8DDD0;
  --accent:       #C9937A;      /* Dusty rose — overridden by config */
  --accent-dark:  #B07860;
  --accent-light: #E8C4B0;
  --sage:         #8A9E85;
  --sage-light:   #B5C9B0;
  --sage-dark:    #5E7A59;
  --text-dark:    #2C2420;
  --text-mid:     #6B5B52;
  --text-muted:   #9C8880;
  --white:        #FFFFFF;

  /* Typography */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Jost', system-ui, -apple-system, sans-serif;

  /* Sizing */
  --max-width:   1200px;
  --max-prose:   720px;
  --nav-height:  72px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(44, 36, 32, 0.06), 0 1px 2px rgba(44, 36, 32, 0.04);
  --shadow-md:   0 4px 16px rgba(44, 36, 32, 0.08), 0 2px 8px rgba(44, 36, 32, 0.06);
  --shadow-lg:   0 8px 32px rgba(44, 36, 32, 0.10), 0 4px 16px rgba(44, 36, 32, 0.07);

  /* Transitions */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast: 150ms;
  --duration-mid:  250ms;
  --duration-slow: 400ms;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
}

input, textarea, select {
  font-family: inherit;
}

/* Skip to main content */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.875rem;
  z-index: 9999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── Typography ─────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.375rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; font-weight: 500; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
em { font-style: italic; }

/* ─── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: all var(--duration-mid) var(--ease-out);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 147, 122, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border-color: var(--cream-border);
}
.btn-ghost:hover {
  background: var(--cream-dark);
  color: var(--text-dark);
  border-color: var(--cream-border);
}

/* ─── Tag Pills ───────────────────────────────── */
.tag-pill {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: var(--cream-dark);
  color: var(--accent);
  border: 1px solid var(--accent-light);
  transition: all var(--duration-fast) var(--ease-out);
  /* Allow wrapping inside flex/grid containers on mobile */
  white-space: normal;
  word-break: break-word;
}
.tag-pill:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ─── Section Labels ──────────────────────────── */
.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header .section-heading {
  color: var(--text-dark);
}

/* ─── Header ──────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cream-border);
  transition: box-shadow var(--duration-mid) var(--ease-out);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-height);
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Desktop Nav */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.nav-link:hover,
.nav-item.is-active .nav-link {
  color: var(--accent);
}
.nav-item.is-active .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all var(--duration-mid) var(--ease-out);
  overflow: hidden;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-mid);
  transition: all var(--duration-fast);
}
.nav-dropdown a:hover {
  background: var(--cream);
  color: var(--accent);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 44×44px minimum touch target (up from 40px) */
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--text-mid);
  transition: all var(--duration-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn-icon:hover {
  background: var(--cream-dark);
  color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--duration-mid) var(--ease-out);
}
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.menu-toggle { display: none; }

/* Search Bar */
.search-bar {
  border-top: 1px solid var(--cream-border);
  background: var(--white);
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--duration-slow) var(--ease-out),
              opacity var(--duration-mid) var(--ease-out);
  opacity: 0;
}
.search-bar.is-open {
  max-height: 300px;
  opacity: 1;
}
.search-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  color: var(--text-muted);
}
#search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-dark);
}
#search-input::placeholder { color: var(--text-muted); }
.search-close {
  color: var(--text-muted);
  transition: color var(--duration-fast);
}
.search-close:hover { color: var(--accent); }
.search-results {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
}
.search-result-item {
  padding: 0.625rem 0;
  border-top: 1px solid var(--cream-border);
}
.search-result-item a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.search-result-item a:hover .search-result-title { color: var(--accent); }
.search-result-title { font-weight: 500; font-size: 0.9375rem; }
.search-result-date { font-size: 0.8125rem; color: var(--text-muted); }

/* ─── Mobile Nav ──────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: var(--nav-height);
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--white);
  border-left: 1px solid var(--cream-border);
  z-index: 99;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.mobile-nav.is-open {
  transform: translateX(0);
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
}
.mobile-nav-item > a {
  display: block;
  padding: 0.875rem 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  border-bottom: 1px solid var(--cream-border);
  color: var(--text-dark);
  transition: color var(--duration-fast);
}
.mobile-nav-item.is-active > a,
.mobile-nav-item > a:hover {
  color: var(--accent);
}
.mobile-nav-item ul {
  padding-left: 1rem;
}
.mobile-nav-item ul a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--cream-border);
}
.mobile-nav-social {
  display: flex;
  gap: 1rem;
}
.mobile-nav-social a {
  font-size: 0.875rem;
  color: var(--text-mid);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.mobile-nav-social a:hover { color: var(--accent); }

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 36, 32, 0.3);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-out);
  backdrop-filter: blur(2px);
}
.mobile-nav-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

/* ─── Hero Section ────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    165deg,
    var(--cream) 0%,
    var(--cream-dark) 50%,
    #EDE5DC 100%
  );
  overflow: hidden;
  padding: 4rem 1.5rem;
}

/* Subtle radial highlight */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 40%,
    rgba(232, 196, 176, 0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  width: 100%;
}

.hero-content {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-subheading {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  font-weight: 300;
  color: var(--text-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-botanical {
  flex-shrink: 0;
  width: 64px;
  color: var(--sage);
  opacity: 0.7;
  display: none;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-muted);
  animation: bounce 2s infinite;
  transition: color var(--duration-fast);
  z-index: 1;
  touch-action: manipulation;
}
.scroll-indicator:hover { color: var(--accent); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ─── Featured Post ───────────────────────────── */
.featured-post-section {
  padding: 5rem 1.5rem;
  background: var(--white);
}
.featured-post-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.featured-post-inner > .section-label {
  margin-bottom: 2rem;
}
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
  margin-top: 1rem;
}
.featured-post-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.featured-post-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.featured-post-image-link:hover img {
  transform: scale(1.04);
}
.featured-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.featured-post-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.featured-post-title a {
  color: var(--text-dark);
  transition: color var(--duration-fast);
}
.featured-post-title a:hover { color: var(--accent); }
.featured-post-excerpt {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.featured-post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* ─── Posts Grid Section ──────────────────────── */
.posts-section {
  padding: 5rem 1.5rem;
  background: var(--cream);
}
.posts-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.posts-grid {
  display: grid;
  gap: 2rem;
}
.posts-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}
.posts-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* ─── Post Card ───────────────────────────────── */
.post-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-mid) var(--ease-out),
              box-shadow var(--duration-mid) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card-image-link {
  display: block;
  overflow: hidden;
}
.post-card-image-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.post-card:hover .post-card-image {
  transform: scale(1.05);
}
.post-card-tags {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.post-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card:not(.has-image) .post-card-tags {
  position: static;
  margin-bottom: 0.75rem;
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.625rem;
  flex: 1;
}
.post-card-title a {
  color: var(--text-dark);
  transition: color var(--duration-fast);
}
.post-card-title a:hover { color: var(--accent); }

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-border);
}
.post-card-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.post-card-reading-time {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ─── Post Article ─────────────────────────────── */
.post {
  max-width: var(--max-width);
  margin: 0 auto;
}

.post-header {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
}
.post-header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.post-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.post-excerpt {
  font-size: 1.125rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.post-author {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-light);
}
.post-meta-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.reading-time {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Featured Image */
.post-featured-image {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.post-featured-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-height: 560px;
  object-fit: cover;
}

/* Post Content */
.post-content-wrapper {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.post-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-dark);
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Rich text styles */
.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.post-content h2 { font-size: 1.875rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; font-weight: 500; }

.post-content p { margin-bottom: 1.5rem; }

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-light);
  transition: all var(--duration-fast);
  overflow-wrap: break-word;
  word-break: break-word;
}
.post-content a:hover {
  text-decoration-color: var(--accent);
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.post-content ul { list-style: none; }
.post-content ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}
.post-content ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.6rem;
  top: 0.45rem;
}
.post-content ol { list-style: decimal; }
.post-content ol li { margin-bottom: 0.5rem; }

.post-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--accent);
  background: var(--cream-dark);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-mid);
}
.post-content blockquote p { margin-bottom: 0; }

.post-content img {
  border-radius: var(--radius-lg);
  margin: 2rem auto;
  box-shadow: var(--shadow-md);
}

.post-content figure {
  margin: 2rem 0;
}
.post-content figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.post-content hr {
  margin: 3rem 0;
  border: none;
  border-top: 1px solid var(--cream-border);
}

/* Table — scrollable on mobile to prevent overflow */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.post-content th,
.post-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--cream-border);
  text-align: left;
}
.post-content th {
  font-weight: 600;
  background: var(--cream-dark);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-content code {
  padding: 0.15em 0.4em;
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  font-size: 0.875em;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.post-content pre {
  background: var(--text-dark);
  color: var(--cream);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}
.post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
}

/* Post Footer */
.post-footer {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--cream-border);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.post-footer-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 0.5rem;
}
.post-footer-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }

/* Share Buttons */
.post-share { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.share-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--cream-border);
  background: var(--white);
  color: var(--text-mid);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  touch-action: manipulation;
  min-height: 44px;
}
.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.share-pinterest:hover {
  background: #E60023;
  border-color: #E60023;
  color: var(--white);
}

/* Author Card */
.author-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--cream-dark);
  border-radius: var(--radius-xl);
}
.author-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--accent-light);
}
.author-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.author-card-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.author-card-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
}
.author-card-bio {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Related Posts */
.related-posts {
  background: var(--cream-dark);
  padding: 5rem 1.5rem;
}
.related-posts-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ─── Page Article ────────────────────────────── */
.page-header {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
}
.page-header-inner {
  max-width: 700px;
  margin: 0 auto;
}
.page-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  overflow-wrap: break-word;
  word-break: break-word;
}
.page-featured-image {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.page-featured-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-height: 480px;
  object-fit: cover;
}
.page-content-wrapper {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.page-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  overflow-wrap: break-word;
  word-break: break-word;
}
.page-content h2,
.page-content h3,
.page-content h4 { margin-top: 2rem; margin-bottom: 0.75rem; }
.page-content p { margin-bottom: 1.25rem; }
.page-content ul, .page-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.page-content a {
  color: var(--accent);
  text-decoration: underline;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ─── Archive Headers ─────────────────────────── */
.archive-header {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--cream-border);
}
.archive-header-inner {
  max-width: 700px;
  margin: 0 auto;
}
.archive-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.archive-description {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}
.archive-count {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.author-header-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-light);
  margin: 0 auto 1rem;
}

/* ─── Breadcrumb ──────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--duration-fast);
}
.breadcrumb a:hover { color: var(--accent); }

/* ─── Pagination ──────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--cream-border);
}
.pagination-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid var(--cream-border);
  color: var(--text-mid);
  transition: all var(--duration-fast) var(--ease-out);
  min-height: 44px;
  touch-action: manipulation;
}
.pagination-link:not(.is-disabled):hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination-link.is-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.pagination-info {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ─── Newsletter Section ──────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--cream-dark) 0%, #EDE3D8 100%);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    rgba(201, 147, 122, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.botanical-divider {
  width: 120px;
  margin: 0 auto 1.5rem;
  color: var(--sage);
}
.newsletter-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-style: italic;
  margin-bottom: 0.75rem;
}
.newsletter-subtext {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.newsletter-form {}
.newsletter-input-group {
  display: flex;
  gap: 0;
  max-width: 480px;
  width: 100%;
  margin: 0 auto 0.75rem;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.newsletter-input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 147, 122, 0.15), var(--shadow-md);
}
.newsletter-input-group input {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9375rem;
  color: var(--text-dark);
  min-width: 0;
  width: 100%;
}
.newsletter-input-group input::placeholder { color: var(--text-muted); }
.newsletter-input-group .btn {
  border-radius: 0;
  border: none;
  padding: 0.875rem 1.75rem;
  flex-shrink: 0;
}
.newsletter-privacy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ─── Footer ──────────────────────────────────── */
.site-footer {
  background: var(--text-dark);
  color: var(--cream);
  padding: 3.5rem 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250, 247, 242, 0.1);
}
.footer-brand {}
.footer-logo { display: inline-block; margin-bottom: 0.75rem; }
.footer-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--cream);
  opacity: 0.9;
}
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(250, 247, 242, 0.55);
  line-height: 1.6;
  margin: 0.5rem 0 0;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}
.footer-nav-list a {
  font-size: 0.875rem;
  color: rgba(250, 247, 242, 0.65);
  transition: color var(--duration-fast);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-nav-list a:hover { color: var(--accent-light); }

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(250, 247, 242, 0.65);
  transition: color var(--duration-fast);
  min-height: 44px;
  touch-action: manipulation;
}
.social-link:hover { color: var(--accent-light); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(250, 247, 242, 0.4);
  margin: 0;
}

/* ─── Error Page ──────────────────────────────── */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  text-align: center;
}
.error-page-inner {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.error-botanical {
  color: var(--sage);
  opacity: 0.5;
  margin-bottom: 0.5rem;
}
.error-code {
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 300;
  color: var(--accent-light);
  line-height: 1;
  margin: 0;
}
.error-title {
  font-style: italic;
  margin-bottom: 0;
}
.error-description {
  color: var(--text-mid);
  line-height: 1.7;
}
.error-actions { margin-top: 0.5rem; }

/* ─── Utilities ───────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ─── Responsive ──────────────────────────────── */
@media (min-width: 1100px) {
  .hero-botanical { display: block; }
}

@media (max-width: 1024px) {
  .posts-grid--3col { grid-template-columns: repeat(2, 1fr); }
  .featured-post { gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  /* Prevent horizontal scroll blowout on mobile */
  body { overflow-x: hidden; }

  .site-nav { display: none; }
  .menu-toggle { display: flex; }

  .posts-grid--3col,
  .posts-grid--2col { grid-template-columns: 1fr; }

  .featured-post {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-section { min-height: 70vh; padding: 3rem 1.5rem; }

  /* Hero inner: stack on narrow viewports */
  .hero-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .newsletter-input-group {
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
  }
  .newsletter-input-group:focus-within {
    border: none;
    box-shadow: none;
  }
  .newsletter-input-group input {
    background: var(--white);
    border: 1.5px solid var(--cream-border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
  }
  .newsletter-input-group .btn {
    border-radius: var(--radius-full);
    width: 100%;
  }

  .post-meta { flex-direction: column; gap: 0.75rem; }
  .author-card { flex-direction: column; align-items: center; text-align: center; }

  .post-header { padding: 2.5rem 1.5rem 2rem; }
  .page-header { padding: 2.5rem 1.5rem 2rem; }
  .archive-header { padding: 2.5rem 1.5rem 2rem; }

  .post-content-wrapper { padding: 2rem 1.25rem 3rem; }
  .page-content-wrapper { padding: 2rem 1.25rem 3rem; }

  .featured-post-section { padding: 3rem 1.5rem; }
  .posts-section { padding: 3rem 1.5rem; }
  .related-posts { padding: 3rem 1.5rem; }
  .newsletter-section { padding: 3rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .post-footer { gap: 1.5rem; }
  .post-share { flex-direction: column; align-items: flex-start; }
  .pagination { gap: 1rem; }
  .pagination-info { display: none; }

  /* Stack footer nav links vertically so they don't overflow */
  .footer-nav-list { flex-direction: column; gap: 0; }

  .post-header { padding: 2rem 1.25rem 1.5rem; }
  .page-header { padding: 2rem 1.25rem 1.5rem; }
  .archive-header { padding: 2rem 1.25rem 1.5rem; }

  .post-content-wrapper { padding: 1.5rem 1.25rem 2.5rem; }
  .page-content-wrapper { padding: 1.5rem 1.25rem 2.5rem; }

  .section-header { margin-bottom: 2rem; }
  .featured-post-section { padding: 2.5rem 1.25rem; }
  .posts-section { padding: 2.5rem 1.25rem; }
  .related-posts { padding: 2.5rem 1.25rem; }
  .newsletter-section { padding: 2.5rem 1.25rem; }
}

/* ─── Small Phone Breakpoint (≤380px) ───────────── */
@media (max-width: 380px) {
  .header-inner { padding: 0 1rem; }
  .logo-text { font-size: 1.2rem; }
  .hero-heading { font-size: 2.5rem; }
  .section-header { margin-bottom: 2rem; }

  .post-header { padding: 1.75rem 1rem 1.25rem; }
  .page-header { padding: 1.75rem 1rem 1.25rem; }
  .archive-header { padding: 1.75rem 1rem 1.25rem; }

  .post-content-wrapper { padding: 1.25rem 1rem 2rem; }
  .page-content-wrapper { padding: 1.25rem 1rem 2rem; }

  .hero-section { padding: 2.5rem 1rem; }
  .newsletter-section { padding: 2rem 1rem; }
  .post-title { font-size: 1.875rem; }
}

/* ─── Animations ──────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .post-card,
  .featured-post-image-wrapper img {
    will-change: transform;
  }
}

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

/* ─── Print ───────────────────────────────────── */
@media print {
  .site-header, .site-footer, .newsletter-section,
  .hero-section, .related-posts, .post-share,
  .mobile-nav, .mobile-nav-overlay { display: none !important; }

  body { background: white; color: black; }
  .post-content a { color: black; text-decoration: underline; }
  .post-content a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
