/*
Theme Name: Ranting Reflections
Theme URI: https://rantingreflections.com
Author: Travis (for Ryan)
Description: A warm, editorial personal blog and community platform for Ranting Reflections. Features a full homepage, blog archive, single post templates, contact form, and custom widgets.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: ranting-reflections
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --ink: #1a1410;
  --ink-muted: #6b5e52;
  --ink-faint: #c4b8ad;
  --paper: #f7f3ee;
  --paper-warm: #efe9e0;
  --paper-card: #faf7f3;
  --accent: #8b5e3c;
  --accent-deep: #5c3a1e;
  --accent-gold: #c9964a;
  --accent-sage: #6b7c5e;
  --accent-clay: #b87351;
  --border: rgba(139, 94, 60, 0.18);
  --border-strong: rgba(139, 94, 60, 0.35);
  --shadow: 0 2px 24px rgba(26, 20, 16, 0.08);
  --shadow-hover: 0 8px 40px rgba(26, 20, 16, 0.14);
  --radius: 4px;
  --radius-lg: 12px;
  --serif: 'Playfair Display', Georgia, serif;
  --body-font: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --nav-height: 64px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 19px;
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-deep); }
ul { list-style: none; }

/* Paper texture overlay - decorative only, no pointer events */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .4;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; letter-spacing: -.025em; }
h1 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: 1.25rem; }
h2 em { font-style: italic; color: var(--accent); }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.3; margin-bottom: .5rem; }
h4 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); margin: 1.75rem 0 .5rem; }
p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }
blockquote {
  border-left: 2px solid var(--accent-gold);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--accent);
  font-size: 1.2rem;
  margin: 1.75rem 0;
  font-family: var(--serif);
  font-weight: 300;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 6rem 2.5rem; }
.section-label {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--accent-gold);
}
.section-lead {
  font-size: 1.1rem;
  color: var(--ink-muted);
  line-height: 1.8;
  font-weight: 300;
  max-width: 55ch;
  margin-bottom: 3rem;
}

/* Buttons */
.btn-primary {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  background: var(--accent-deep);
  color: var(--paper) !important;
  border-radius: var(--radius);
  transition: all .25s;
  border: 1.5px solid var(--accent-deep);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn-secondary {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  background: transparent;
  color: var(--accent-deep) !important;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-strong);
  transition: all .25s;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent) !important; }

/* Pill tags */
.pill {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: var(--radius);
  border: .5px solid var(--border-strong);
  color: var(--accent-deep);
  background: transparent;
  display: inline-block;
}

/* Animate in on scroll */
.animate-in { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 243, 238, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: .5px solid var(--border);
  transition: background .3s, box-shadow .3s;
  height: var(--nav-height);
}
#site-header.scrolled {
  background: rgba(247, 243, 238, 0.97);
  box-shadow: 0 1px 20px rgba(26, 20, 16, 0.08);
}
.site-branding a {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-deep) !important;
  letter-spacing: -.02em;
}
.site-branding a span { color: var(--accent-gold); font-style: italic; }
#primary-menu { display: flex; gap: 2rem; align-items: center; }
#primary-menu a {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted) !important;
  transition: color .2s;
}
#primary-menu a:hover { color: var(--accent) !important; }
#primary-menu .nav-cta {
  background: var(--accent-deep) !important;
  color: var(--paper) !important;
  padding: .45rem 1.1rem;
  border-radius: var(--radius);
}
#primary-menu .nav-cta:hover { background: var(--accent) !important; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink-muted); transition: all .3s; }

/* Mobile nav */
#mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
#mobile-nav.open { display: flex; }
#mobile-nav a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink) !important;
}
.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--ink-muted);
  background: none;
  border: none;
  line-height: 1;
}

/* ============================================================
   HERO — FRONT PAGE ONLY
   ============================================================ */
.rr-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-height);
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem 6rem 6rem;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-eyebrow::before { content: ''; display: block; width: 2rem; height: 1px; background: var(--accent-gold); }
.hero-desc { font-size: 1.15rem; line-height: 1.8; color: var(--ink-muted); max-width: 42ch; margin-bottom: 2.5rem; font-weight: 300; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 6rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.scroll-line { width: 1px; height: 2.5rem; background: var(--ink-faint); position: relative; overflow: hidden; }
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown { 0% { top: -100%; } 100% { top: 100%; } }
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--paper-warm) 0%, #e8ddd2 100%);
}
.hero-quote-card {
  position: relative;
  z-index: 2;
  background: var(--paper-card);
  border: .5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 380px;
  box-shadow: var(--shadow-hover);
  margin: 2rem;
}
.hero-quote-mark { font-family: var(--serif); font-size: 5rem; line-height: .6; color: var(--accent-gold); margin-bottom: 1rem; display: block; }
.hero-quote-text { font-size: 1.2rem; font-style: italic; line-height: 1.65; color: var(--ink); margin-bottom: 1.5rem; font-weight: 300; font-family: var(--serif); }
.hero-quote-author {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-quote-author::before { content: ''; display: block; width: 1.5rem; height: 1px; background: var(--accent); }

/* ============================================================
   STATS BAR
   ============================================================ */
.rr-stats-bar {
  background: var(--accent-deep);
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--accent-gold); display: block; font-style: italic; }
.stat-label { font-family: var(--sans); font-size: .65rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: rgba(247,243,238,.5); }
.stat-divider { width: 1px; height: 2.5rem; background: rgba(247,243,238,.12); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-image-wrap { position: relative; }
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: .5px solid var(--border);
}
.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--paper-warm) 0%, #ddd0c0 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: .5px solid var(--border);
}
.about-initials { font-family: var(--serif); font-size: 5rem; font-weight: 700; color: var(--accent-gold); opacity: .4; font-style: italic; }
.about-frame-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-gold); top: -6px; right: -6px; opacity: .6; }
.about-pull {
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: var(--accent);
  border-left: 2px solid var(--accent-gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--serif);
}
.about-body { font-size: 1.05rem; line-height: 1.9; color: var(--ink-muted); font-weight: 300; }
.about-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }

/* ============================================================
   BLOG GRID — HOME + ARCHIVE
   ============================================================ */
#reflections, .blog-archive-section { background: var(--paper-warm); }
.reflections-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card {
  background: var(--paper-card);
  border: .5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s;
  cursor: pointer;
  display: block;
  color: inherit;
  text-decoration: none;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--border-strong); }
.blog-card-featured { grid-column: span 2; }
.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--paper-warm) 0%, #ddd0c0 100%);
  position: relative;
  overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-featured .blog-card-img { height: 280px; }
.blog-card-img-icon { font-size: 3rem; opacity: .25; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.blog-card-body { padding: 1.5rem; }
.blog-card-tag {
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.blog-card-featured h3 { font-size: 1.6rem; }
.blog-card-excerpt { font-size: .95rem; color: var(--ink-muted); line-height: 1.7; font-weight: 300; margin-bottom: 1rem; }
.blog-card-meta { font-family: var(--sans); font-size: .7rem; color: var(--ink-faint); letter-spacing: .08em; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-hero {
  padding-top: calc(var(--nav-height) + 4rem);
  background: var(--paper);
  padding-bottom: 0;
}
.single-post-header { max-width: 760px; margin: 0 auto; padding: 0 2.5rem 3rem; }
.post-category-tag {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.post-category-tag::before { content: ''; display: block; width: 1.5rem; height: 1px; background: var(--accent-gold); }
.single-post-header h1 { margin-bottom: 1.25rem; line-height: 1.1; }
.post-meta-bar {
  font-family: var(--sans);
  font-size: .75rem;
  color: var(--ink-faint);
  letter-spacing: .08em;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: .5px solid var(--border);
  margin-bottom: 0;
}
.post-featured-image { max-width: 960px; margin: 0 auto; padding: 0 2.5rem; }
.post-featured-image img { width: 100%; border-radius: var(--radius-lg); border: .5px solid var(--border); }
.post-content-wrap { max-width: 760px; margin: 0 auto; padding: 3rem 2.5rem 6rem; }
.post-content { font-size: 1.1rem; line-height: 1.9; color: var(--ink-muted); font-weight: 300; }
.post-content h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.post-content h3 { font-size: 1.3rem; margin: 2rem 0 .75rem; }
.post-content p + p { margin-top: 0; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin: 1rem 0; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: .5rem; }
.post-content img { border-radius: var(--radius); margin: 2rem 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; padding-top: 2rem; border-top: .5px solid var(--border); }

/* Author bio box on single post */
.author-bio-box {
  max-width: 760px;
  margin: 0 auto 4rem;
  padding: 0 2.5rem;
}
.author-bio-inner {
  background: var(--paper-warm);
  border: .5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.author-bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-clay));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--paper);
  flex-shrink: 0;
}
.author-bio-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.author-bio-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.author-bio-text { font-size: .95rem; color: var(--ink-muted); line-height: 1.7; font-weight: 300; }

/* Related posts */
.related-posts-section { background: var(--paper-warm); }

/* ============================================================
   TOPICS / CATEGORIES
   ============================================================ */
#topics { background: var(--paper); }
.topics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.topic-card {
  background: var(--paper-card);
  border: .5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all .3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.topic-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.topic-icon { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.3rem; }
.topic-icon-recovery { background: rgba(201,150,74,.12); }
.topic-icon-mindfulness { background: rgba(107,124,94,.12); }
.topic-icon-life { background: rgba(139,94,60,.12); }
.topic-icon-identity { background: rgba(184,115,81,.12); }
.topic-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.topic-desc { font-size: .9rem; color: var(--ink-muted); line-height: 1.7; font-weight: 300; }
.topic-count { font-family: var(--sans); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-top: 1rem; }

/* ============================================================
   MINDFULNESS SECTION
   ============================================================ */
#mindfulness { background: var(--paper-warm); }
.mindfulness-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.mindfulness-practices { display: flex; flex-direction: column; gap: 1rem; }
.practice-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--paper-card);
  border: .5px solid var(--border);
  transition: all .25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.practice-item:hover { border-color: var(--accent); transform: translateX(4px); }
.practice-num { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--accent-gold); opacity: .4; min-width: 2rem; font-style: italic; }
.practice-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: .2rem; }
.practice-desc { font-size: .88rem; color: var(--ink-muted); line-height: 1.6; font-weight: 300; }
.mindfulness-quote { padding: 3rem; background: var(--paper-card); border-radius: var(--radius-lg); border: .5px solid var(--border); position: relative; }
.mindfulness-quote::before { content: '"'; position: absolute; top: 1rem; right: 1.5rem; font-family: var(--serif); font-size: 8rem; line-height: 1; color: var(--accent-gold); opacity: .12; }
.mindfulness-quote-text { font-family: var(--serif); font-size: 1.35rem; font-style: italic; font-weight: 300; line-height: 1.65; color: var(--ink); margin-bottom: 1.5rem; }
.mindfulness-quote-sig { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* ============================================================
   CONNECT / CONTACT
   ============================================================ */
#connect, .contact-page-section { background: var(--accent-deep); color: var(--paper); position: relative; overflow: hidden; }
#connect::before, .contact-page-section::before { content: ''; position: absolute; top: -50%; right: -20%; width: 500px; height: 500px; border-radius: 50%; border: 1px solid rgba(201,150,74,.15); pointer-events: none; }
#connect::after, .contact-page-section::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; border-radius: 50%; border: 1px solid rgba(201,150,74,.1); pointer-events: none; }
#connect .section-inner, .contact-page-section .section-inner { position: relative; z-index: 1; }
#connect .section-label, .contact-page-section .section-label { color: var(--accent-gold); }
#connect .section-label::before, .contact-page-section .section-label::before { background: var(--accent-gold); }
#connect h2, .contact-page-section h2 { color: var(--paper); }
#connect h2 em, .contact-page-section h2 em { color: var(--accent-gold); }
#connect .section-lead, .contact-page-section .section-lead { color: rgba(247,243,238,.7); }
.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.connect-cards { display: flex; flex-direction: column; gap: 1rem; }
.connect-card {
  background: rgba(247,243,238,.07);
  border: .5px solid rgba(247,243,238,.18);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all .3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.connect-card:hover { background: rgba(247,243,238,.12); border-color: var(--accent-gold); transform: translateX(4px); }
.connect-card-icon { font-size: 1.5rem; flex-shrink: 0; width: 44px; height: 44px; border-radius: 8px; background: rgba(201,150,74,.18); display: flex; align-items: center; justify-content: center; }
.connect-card-title { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--paper); margin-bottom: .25rem; }
.connect-card-desc { font-size: .9rem; color: rgba(247,243,238,.6); line-height: 1.6; font-weight: 300; }

/* Contact Form */
.connect-form { background: rgba(247,243,238,.05); border: .5px solid rgba(247,243,238,.15); border-radius: var(--radius-lg); padding: 2rem; }
.form-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--paper); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { font-family: var(--sans); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,243,238,.5); display: block; margin-bottom: .4rem; }
.form-group input,
.form-group textarea,
.form-group select,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  background: rgba(247,243,238,.08);
  border: .5px solid rgba(247,243,238,.2);
  border-radius: var(--radius);
  padding: .7rem .9rem;
  color: var(--paper);
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 300;
  outline: none;
  transition: border-color .2s;
}
.form-group input::placeholder, .form-group textarea::placeholder,
.wpcf7 input::placeholder, .wpcf7 textarea::placeholder { color: rgba(247,243,238,.3); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus,
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--accent-gold); }
.form-group textarea, .wpcf7 textarea { min-height: 110px; resize: vertical; }
.form-group select, .wpcf7 select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--accent-deep); color: var(--paper); }
.wpcf7-submit, .form-submit-btn {
  width: 100%;
  padding: .85rem;
  background: var(--accent-gold);
  color: var(--accent-deep) !important;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: .5rem;
  transition: all .25s;
}
.wpcf7-submit:hover, .form-submit-btn:hover { background: #e0ac5a; transform: translateY(-1px); }
.wpcf7-response-output { margin-top: 1rem; padding: .75rem 1rem; border-radius: var(--radius); font-family: var(--sans); font-size: .8rem; }

/* ============================================================
   COMMUNITY / TESTIMONIALS
   ============================================================ */
#community { background: var(--paper); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.testimonial-card { background: var(--paper-card); border: .5px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; position: relative; }
.testimonial-card::before { content: '"'; position: absolute; top: 1rem; left: 1.5rem; font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--accent-gold); opacity: .3; }
.testimonial-text { font-size: .98rem; font-style: italic; font-weight: 300; line-height: 1.8; color: var(--ink); margin-top: 1.5rem; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-clay));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  color: var(--paper);
  flex-shrink: 0;
  overflow: hidden;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-family: var(--sans); font-size: .8rem; font-weight: 500; color: var(--ink); }
.testimonial-handle { font-family: var(--sans); font-size: .7rem; color: var(--ink-faint); }

/* ============================================================
   NEWSLETTER
   ============================================================ */
#newsletter, .newsletter-section { background: var(--paper-warm); border-top: .5px solid var(--border); }
.newsletter-inner { max-width: 600px; margin: 0 auto; text-align: center; padding: 5rem 2.5rem; }
.newsletter-form { display: flex; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.newsletter-input, .mc4wp-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: .75rem 1rem;
  background: var(--paper-card);
  border: .5px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  outline: none;
}
.newsletter-input:focus, .mc4wp-form input:focus { border-color: var(--accent); }
.newsletter-btn, .mc4wp-form button {
  padding: .75rem 1.75rem;
  background: var(--accent-deep);
  color: var(--paper) !important;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .25s;
}
.newsletter-btn:hover, .mc4wp-form button:hover { background: var(--accent); transform: translateY(-1px); }
.newsletter-note { font-family: var(--sans); font-size: .72rem; color: var(--ink-faint); margin-top: .75rem; letter-spacing: .04em; }

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: var(--ink);
  color: rgba(247,243,238,.6);
  padding: 3rem 2.5rem 2rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--paper); margin-bottom: .75rem; letter-spacing: -.02em; }
.footer-brand-name span { font-style: italic; color: var(--accent-gold); }
.footer-tagline { font-size: .9rem; font-weight: 300; line-height: 1.7; max-width: 28ch; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: .5px solid rgba(247,243,238,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 500;
  color: rgba(247,243,238,.5) !important;
  transition: all .2s;
  letter-spacing: .05em;
}
.footer-social a:hover { border-color: var(--accent-gold); color: var(--accent-gold) !important; }
.footer-col h4 { font-family: var(--sans); font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(247,243,238,.3); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { font-family: var(--sans); font-size: .82rem; color: rgba(247,243,238,.55) !important; transition: color .2s; }
.footer-col a:hover { color: var(--accent-gold) !important; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: .5px solid rgba(247,243,238,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-family: var(--sans); font-size: .72rem; color: rgba(247,243,238,.3); letter-spacing: .04em; }
.footer-heart { color: var(--accent-clay); }
.footer-copy a { color: var(--accent-gold) !important; }

/* ============================================================
   ARCHIVE / CATEGORY PAGES
   ============================================================ */
.archive-header { padding-top: calc(var(--nav-height) + 4rem); background: var(--paper); }
.archive-header .section-inner { padding-bottom: 3rem; }
.archive-description { font-size: 1.05rem; color: var(--ink-muted); font-weight: 300; line-height: 1.8; max-width: 60ch; margin-top: 1rem; }
.archive-posts-wrap { background: var(--paper-warm); }
.blog-pagination { text-align: center; padding: 3rem 0 0; display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.blog-pagination a, .blog-pagination span {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  padding: .6rem 1rem;
  border-radius: var(--radius);
  border: .5px solid var(--border-strong);
  color: var(--ink-muted) !important;
  transition: all .2s;
}
.blog-pagination a:hover, .blog-pagination .current {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--paper) !important;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.rr-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: .8rem;
  padding: .7rem 1.5rem;
  border-radius: 24px;
  letter-spacing: .04em;
  opacity: 0;
  transition: all .3s;
  pointer-events: none;
  z-index: 2000;
  white-space: nowrap;
}
.rr-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-results-wrap { padding-top: calc(var(--nav-height) + 4rem); }
.search-results-wrap .section-inner { padding-bottom: 6rem; }
.search-form-wrap { margin-bottom: 3rem; }
.search-form-wrap input[type="search"] {
  font-family: var(--body-font);
  font-size: 1.1rem;
  padding: .85rem 1.25rem;
  border: .5px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--paper-card);
  color: var(--ink);
  outline: none;
  width: 100%;
  max-width: 500px;
}

/* ============================================================
   PAGE TEMPLATE — GENERIC
   ============================================================ */
.page-content-wrap { padding-top: calc(var(--nav-height) + 5rem); }
.page-content-inner { max-width: 760px; margin: 0 auto; padding: 0 2.5rem 6rem; }

/* ============================================================
   WORDPRESS CORE OVERRIDES
   ============================================================ */
.wp-block-image img { border-radius: var(--radius); }
.wp-block-quote { border-left: 2px solid var(--accent-gold); padding-left: 1.5rem; font-style: italic; color: var(--accent); margin: 1.75rem 0; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-family: var(--sans); font-size: .75rem; color: var(--ink-faint); text-align: center; margin-top: .5rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .rr-hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 4rem 2rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-featured { grid-column: span 1; }
  .connect-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .mindfulness-grid { grid-template-columns: 1fr; }
  #site-header { padding: 1rem 1.5rem; }
  #primary-menu { display: none; }
  .menu-toggle { display: flex; }
  .hero-scroll { display: none; }
}
@media (max-width: 600px) {
  .topics-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section-inner { padding: 4rem 1.5rem; }
  .rr-stats-bar { gap: 2rem; }
  .stat-divider { display: none; }
}
