/*
Theme Name: It's a Moe Thing
Theme URI: https://itsamoething.com
Author: Monika Loyd
Author URI: https://itsamoething.com
Description: A custom WordPress theme for It's a Moe Thing — literary, dramatic, unapologetic.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: itsamoething
Tags: blog, custom-logo, featured-images, threaded-comments
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand Colors */
  --forest:      #252820;
  --fern:        #6B7D50;
  --sage:        #B8C4A0;
  --sage-white:  #F4F5F0;
  --gold:        #C9952A;
  --terracotta:  #C4673A;
  --dusty-rose:  #D4A5A5;

  /* Template A — Fern/Gold */
  --ta-start:    #4a5e35;
  --ta-end:      #8fa872;

  /* Template B — Terracotta */
  --tb-start:    #a04828;
  --tb-end:      #d4845a;

  /* Template C — Dusty Rose */
  --tc-start:    #b07080;
  --tc-end:      #d4a5a5;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Quicksand', system-ui, sans-serif;

  /* Spacing */
  --container:   1180px;
  --gap:         2rem;
  --radius:      3px;
}

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

html { font-size: 100%; scroll-behavior: smooth; }

body {
  background: var(--sage-white);
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--fern); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  line-height: 1.2;
  color: var(--forest);
}

h1 { font-size: clamp(26px, 4vw, 42px); }
h2 { font-size: clamp(22px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2.5vw, 26px); }
h4 { font-size: 20px; }
h5 { font-size: 17px; }
h6 { font-size: 15px; }

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

blockquote {
  border-left: 3px solid var(--gold);
  background: linear-gradient(180deg, var(--sage-white) 0%, var(--sage) 100%);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
}

blockquote p { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
li { margin-bottom: 0.4rem; }

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
  margin: 2rem 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================================
   LABEL / PILL UTILITY
   ============================================================ */
.cat-label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--gold);
  padding: 3px 10px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.cat-label:hover { opacity: 0.85; color: var(--forest); }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: var(--sage-white);
  border-bottom: 1px solid var(--sage);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.site-logo img {
  height: 90px;
  width: auto;
}

.site-logo .text-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  color: var(--forest);
  text-decoration: none;
}
.site-logo .text-logo:hover { color: var(--fern); }

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Search form in header */
.header-search {
  position: relative;
}

.header-search input[type="search"] {
  background: var(--sage-white);
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 6px 32px 6px 10px;
  width: 180px;
  transition: border-color 0.2s, width 0.3s;
}

.header-search input[type="search"]:focus {
  outline: none;
  border-color: var(--fern);
  width: 220px;
}

.header-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fern);
  padding: 0;
  line-height: 1;
}

.header-search button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Primary Navigation */
.primary-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.primary-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  padding: 6px 10px;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav .current-menu-item a { color: var(--gold); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  padding: 6px 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fern);
}

/* ============================================================
   HOMEPAGE — MAGAZINE LAYOUT
   ============================================================ */

/* Hero section: big post left, 3 smaller right */
.magazine-hero {
  padding: 2.5rem 0 0;
}

/* Dusty rose accent strip under the hero */
.magazine-hero::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--tc-start), var(--dusty-rose), var(--gold));
  margin-top: 1.5px;
}

.magazine-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5px;
  background: var(--sage);
}

/* Featured main post */
.hero-main {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-main .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-main .hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(37,40,32,0.95) 0%, rgba(37,40,32,0.2) 60%, transparent 100%);
}

.hero-main-content {
  position: relative;
  z-index: 2;
  padding: 2rem 2rem 2rem;
}

.hero-main-content .cat-label { margin-bottom: 14px; }

.hero-main-content h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(24px, 3.5vw, 38px);
  color: var(--sage-white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero-main-content h2 a { color: inherit; text-decoration: none; }
.hero-main-content h2 a:hover { color: var(--sage); }

.hero-main-content .excerpt {
  font-size: 15px;
  color: rgba(244,245,240,0.75);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-main-content .post-meta-line {
  font-size: 11px;
  color: rgba(244,245,240,0.55);
  letter-spacing: 0.05em;
}

/* Right column — 3 stacked secondary posts */
.hero-secondary {
  display: flex;
  flex-direction: column;
}

.hero-secondary-item {
  flex: 1;
  background: var(--sage-white);
  padding: 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--sage);
  border-left: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.hero-secondary-item:last-child { border-bottom: none; }
.hero-secondary-item:hover {
  background: #eceee7;
  border-left-color: var(--dusty-rose);
}

.hero-secondary-item .cat-label { margin-bottom: 8px; }

.hero-secondary-item h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 17px;
  color: var(--forest);
  line-height: 1.3;
  margin-bottom: 6px;
}

.hero-secondary-item h3 a { color: inherit; text-decoration: none; }
.hero-secondary-item h3 a:hover { color: var(--gold); }

.hero-secondary-item .post-meta-line {
  font-size: 11px;
  color: var(--fern);
  letter-spacing: 0.04em;
}

/* Blog card grid below hero */
.blog-grid-section {
  padding: 3rem 0;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fern);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--dusty-rose), transparent);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--sage);
}

/* Post Cards */
.post-card {
  background: var(--sage-white);
  display: flex;
  flex-direction: column;
  border-left: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.post-card:hover {
  background: #eceee7;
  border-left-color: var(--dusty-rose);
}

.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ta-start), var(--ta-end));
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img { transform: scale(1.03); }

.post-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-body .cat-label { margin-bottom: 10px; }

.post-card-body h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 19px;
  color: var(--forest);
  line-height: 1.3;
  margin-bottom: 8px;
}

.post-card-body h3 a { color: inherit; text-decoration: none; }
.post-card-body h3 a:hover { color: var(--gold); }

.post-card-body .excerpt {
  font-size: 14px;
  color: var(--fern);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.post-card-body .post-meta-line {
  font-size: 11px;
  color: var(--sage);
  letter-spacing: 0.04em;
  margin-top: auto;
}

/* Pagination */
.pagination {
  padding: 2rem 0 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pagination a,
.pagination span {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border: 1px solid var(--sage);
  color: var(--fern);
  text-decoration: none;
  transition: all 0.2s;
}

.pagination a:hover,
.pagination span.current {
  background: var(--fern);
  border-color: var(--fern);
  color: var(--sage-white);
}

/* ============================================================
   SINGLE POST — SHARED STRUCTURE
   ============================================================ */
.post-wrap { max-width: 780px; margin: 0 auto; padding: 0 1.5rem 4rem; }

/* Full-width featured image hero */
.featured-hero {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  position: relative;
}

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

/* Post header — shared across all templates */
.post-header-ta {
  background: var(--sage-white);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid var(--sage);
  padding: 2.25rem 2.5rem 1.75rem;
}

.post-header-tb {
  background: linear-gradient(135deg, var(--tb-start) 0%, var(--tb-end) 100%);
  padding: 2.25rem 2.5rem 1.75rem;
  position: relative;
  overflow: hidden;
}

.post-header-tc {
  background: linear-gradient(135deg, var(--tc-start) 0%, var(--tc-end) 100%);
  padding: 2.25rem 2.5rem 1.75rem;
}

.post-header-rule {
  height: 1px;
  background: rgba(244,245,240,0.3);
  margin-bottom: 16px;
}

.post-header-rule-rose {
  height: 1px;
  background: rgba(244,245,240,0.35);
  margin-bottom: 16px;
}

.ghost-q {
  position: absolute;
  top: -16px; right: 24px;
  font-family: var(--font-display);
  font-size: 130px;
  font-weight: 600;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.post-header-ta .entry-title { color: var(--forest); }
.post-header-tb .entry-title { color: var(--sage-white); }

.post-header-tc .entry-title { color: var(--forest); }

.entry-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.2;
  margin: 0 0 12px;
}

.hook-line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(244,245,240,0.78);
  line-height: 1.5;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.post-meta-header {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.post-header-ta .post-meta-header { color: var(--fern); }
.post-header-tb .post-meta-header { color: rgba(244,245,240,0.85); }
.post-header-tc .post-meta-header { color: rgba(37,40,32,0.7); }

.cat-pill-frost {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-white);
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 3px 10px;
  margin-bottom: 14px;
  text-decoration: none;
}

.cat-pill-light {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(244,245,240,0.85);
  padding: 3px 10px;
  margin-bottom: 14px;
  text-decoration: none;
}

/* Post body */
.post-body {
  padding: 1.75rem 2.5rem 0;
  max-width: 780px;
}

.post-body p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--forest);
  margin-bottom: 1.2rem;
}

/* ── PULL QUOTE ─────────────────────────────────── */
.moe-pull-quote {
  border-left: 3px solid var(--gold);
  background: linear-gradient(180deg, var(--sage-white) 0%, var(--sage) 100%);
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
}
.moe-pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  color: var(--forest);
  line-height: 1.55;
  margin: 0;
}

/* ── DARK PULL QUOTE (statement/bold) ───────────── */
.moe-pull-quote-dark {
  background: var(--forest);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.moe-pull-quote-dark p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  color: var(--sage-white);
  line-height: 1.55;
  margin: 0;
}

/* ── ROSE PULL QUOTE (soft/personal) ────────────── */
.moe-pull-quote-rose {
  border-left: 3px solid var(--dusty-rose);
  background: linear-gradient(180deg, var(--sage-white) 0%, #eddcdc 100%);
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
}
.moe-pull-quote-rose p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  color: var(--forest);
  line-height: 1.55;
  margin: 0;
}

/* ── SCENE BREAK ─────────────────────────────────── */
.moe-scene-break {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2.25rem 0;
  color: var(--fern);
  font-size: 13px;
  letter-spacing: 0.3em;
}
.moe-scene-break::before,
.moe-scene-break::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
}

/* ── CALLOUT BOX ─────────────────────────────────── */
.moe-callout {
  background: linear-gradient(135deg, #f9f7f2 0%, #eef0e8 100%);
  border: 1px solid var(--sage);
  border-top: 3px solid var(--gold);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.moe-callout p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--forest);
  margin: 0;
}
.moe-callout-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* ── STYLED LIST (gold markers) ──────────────────── */
.moe-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.moe-list li {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--forest);
  padding: 0.6rem 0 0.6rem 1.5rem;
  border-bottom: 1px solid rgba(184,196,160,0.4);
  position: relative;
}
.moe-list li:last-child { border-bottom: none; }
.moe-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* ── TWO-COLUMN LIST (rose markers) ─────────────── */
.moe-list-2col {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
}
.moe-list-2col li {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--forest);
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-bottom: 1px solid rgba(184,196,160,0.35);
  position: relative;
}
.moe-list-2col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dusty-rose);
}

/* ── CHAPTER MARKER ──────────────────────────────── */
.moe-chapter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2.5rem 0 1.25rem;
}
.moe-chapter-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 36px;
  color: var(--dusty-rose);
  line-height: 1;
  flex-shrink: 0;
}
.moe-chapter-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fern);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  flex: 1;
}

/* ── SIDEBAR NOTE (aside) ────────────────────────── */
.moe-aside {
  float: right;
  width: 220px;
  margin: 0 0 1.5rem 2rem;
  background: var(--forest);
  padding: 1rem 1.25rem;
}
.moe-aside p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--sage);
  margin: 0;
  font-style: italic;
}
.moe-aside-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .moe-list-2col { grid-template-columns: 1fr; }
  .moe-aside { float: none; width: 100%; margin: 1.5rem 0; }
}

/* Section headings (Template A) */
.section-head {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fern);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 5px;
  margin: 2rem 0 1rem;
}

/* Quote block — used in all templates */
.quote-block-a {
  border-left: 3px solid var(--gold);
  background: linear-gradient(180deg, var(--sage-white) 0%, var(--sage) 100%);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.quote-block-b {
  border-left: 3px solid var(--terracotta);
  background: linear-gradient(180deg, var(--sage-white) 0%, #edddd7 100%);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.quote-block-c {
  border-left: 3px solid var(--dusty-rose);
  background: linear-gradient(180deg, var(--sage-white) 0%, #eddcdc 100%);
  padding: 1.25rem 1.5rem;
  margin: 0.5rem 0 1.5rem;
}

.quote-block-a p,
.quote-block-b p,
.quote-block-c p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--forest);
  line-height: 1.55;
  margin: 0;
}

/* Scene break (Template B) */
.scene-break {
  text-align: center;
  color: var(--terracotta);
  font-size: 13px;
  letter-spacing: 0.3em;
  margin: 1.75rem 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.scene-break::before, .scene-break::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--terracotta), transparent);
}

/* Listicle items (Template C) */
.list-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dusty-rose), transparent);
  margin: 1.25rem 0;
}

.list-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding-bottom: 1.25rem;
}

.list-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 50px;
  line-height: 1;
  color: var(--tc-start);
  flex-shrink: 0;
  width: 40px;
  text-align: right;
}

.list-content h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 21px;
  color: var(--forest);
  margin: 10px 0 6px;
  line-height: 1.3;
}

.list-content p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--forest);
  margin: 0;
}

/* Post footer — shared across all templates */
.post-footer-ta {
  background: var(--forest);
  padding: 1.4rem 2.5rem;
  margin-top: 0;
  border-top: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.post-footer-tb {
  background: linear-gradient(135deg, var(--tb-start) 0%, var(--tb-end) 100%);
  padding: 1.4rem 2.5rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.post-footer-tc {
  background: linear-gradient(135deg, var(--tc-start) 0%, var(--tc-end) 100%);
  padding: 1.4rem 2.5rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.post-footer-ta .footer-cta { color: var(--sage); }
.post-footer-tb .footer-cta { color: rgba(244,245,240,0.9); }
.post-footer-tc .footer-cta { color: rgba(37,40,32,0.8); }

.footer-cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
}

.post-footer-ta .footer-sig { color: var(--gold); }
.post-footer-tb .footer-sig { color: var(--sage-white); }
.post-footer-tc .footer-sig { color: var(--forest); }

.footer-sig {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
}

/* Post nav (prev/next) */
.post-navigation {
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--sage);
  max-width: 780px;
}

.post-navigation a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fern);
}

.post-navigation a:hover { color: var(--gold); }
.post-navigation .nav-next { text-align: right; }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-posts {
  padding: 2.5rem 0;
  border-top: 1px solid var(--sage);
  margin-top: 2rem;
}

.related-posts .section-eyebrow { margin-bottom: 1.5rem; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--sage);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 0;
  border-top: 1px solid var(--sage);
}

.comments-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  color: var(--forest);
  margin-bottom: 1.5rem;
}

.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }

.comment {
  border-bottom: 1px solid var(--sage);
  padding: 1.5rem 0;
}

.comment:last-child { border-bottom: none; }

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.comment-author-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--forest);
}

.comment-date {
  font-size: 11px;
  color: var(--fern);
  letter-spacing: 0.04em;
}

.comment-content p {
  font-size: 16px;
  line-height: 1.8;
}

.comment-reply-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fern);
}

.comment-reply-link:hover { color: var(--gold); }

/* Comment form */
.comment-respond {
  margin-top: 2rem;
}

.comment-reply-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  color: var(--forest);
  margin-bottom: 1.25rem;
}

.comment-form label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fern);
  margin-bottom: 5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  background: #fff;
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 12px;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--fern);
}

.comment-form textarea { min-height: 140px; resize: vertical; }

.comment-form .form-submit input[type="submit"] {
  background: linear-gradient(135deg, var(--ta-start), var(--ta-end));
  border: none;
  color: var(--sage-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 24px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.comment-form .form-submit input[type="submit"]:hover { opacity: 0.88; }

/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.archive-header {
  background: linear-gradient(135deg, var(--ta-start) 0%, var(--ta-end) 100%);
  padding: 3rem 0 2.5rem;
  margin-bottom: 3rem;
}

.archive-header .eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,245,240,0.6);
  margin-bottom: 8px;
}

.archive-header h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--sage-white);
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--sage);
  margin-bottom: 2.5rem;
}

.search-header h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
  color: var(--fern);
  margin-bottom: 1rem;
}

.search-form-full {
  display: flex;
  gap: 0;
  max-width: 500px;
}

.search-form-full input[type="search"] {
  flex: 1;
  border: 1px solid var(--sage);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--forest);
}

.search-form-full button {
  background: var(--fern);
  border: none;
  color: var(--sage-white);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: background 0.2s;
}

.search-form-full button:hover { background: var(--ta-start); }

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 {
  text-align: center;
  padding: 6rem 1.5rem;
}

.page-404 .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 120px;
  font-weight: 600;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 0;
}

.page-404 h1 {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--fern);
  margin-bottom: 1rem;
}

.page-404 p {
  font-size: 16px;
  color: var(--fern);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--ta-start), var(--ta-end));
  color: var(--sage-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 26px;
  text-decoration: none;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.88; color: var(--sage-white); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--forest);
  color: var(--sage);
  padding: 3rem 0 1.5rem;
  border-top: 3px solid var(--dusty-rose);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  color: var(--sage-white);
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-brand .tagline {
  font-size: 12px;
  color: rgba(184,196,160,0.7);
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(184,196,160,0.3);
  border-radius: var(--radius);
  color: var(--sage);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-cats h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
  margin-bottom: 1rem;
}

.footer-cat-links {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 1.5rem;
}

.footer-cat-links li { margin-bottom: 0.4rem; break-inside: avoid; }

.footer-cat-links a {
  font-size: 13px;
  color: rgba(184,196,160,0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-cat-links a:hover { color: var(--sage-white); }

.footer-bottom {
  border-top: 1px solid rgba(184,196,160,0.15);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 11px;
  color: rgba(184,196,160,0.7);
  letter-spacing: 0.05em;
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .magazine-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-secondary {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-secondary-item {
    flex: 1 1 calc(33.333% - 1px);
    border-bottom: none;
    border-right: 1px solid var(--sage);
  }

  .hero-secondary-item:last-child { border-right: none; }

  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .hero-secondary { flex-direction: column; }
  .hero-secondary-item { border-right: none; border-bottom: 1px solid var(--sage); }

  .post-body { padding: 1.25rem 1.25rem 0; }
  .post-header-ta, .post-header-tb, .post-header-tc { padding: 1.5rem 1.25rem; }
  .post-footer-ta, .post-footer-tb, .post-footer-tc { padding: 1.25rem; flex-direction: column; gap: 6px; }

  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav.is-open ul { flex-direction: column; gap: 0; padding: 0.5rem 0; }
  .primary-nav.is-open a { padding: 8px 0; }
  .menu-toggle { display: block; }

  .header-search input[type="search"] { width: 130px; }
  .header-search input[type="search"]:focus { width: 160px; }

  .post-navigation { padding: 1.5rem 1.25rem; }
  .comments-area { padding: 2rem 1.25rem 0; }
  .list-item { padding: 0 1.25rem 1rem; }
  .quote-block-a, .quote-block-b, .quote-block-c { margin: 1.25rem 0; }
}

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

/* ── HOOK BANNER (Template B opener) ────────────── */
.moe-hook-banner {
  background: linear-gradient(135deg, var(--dusty-rose) 0%, #c9a0a0 100%);
  padding: 1.5rem 1.75rem;
  margin: 0 0 1.75rem;
  text-align: center;
}
.moe-hook-banner p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--forest);
  line-height: 1.45;
  margin: 0;
}

/* ── MIC DROP ────────────────────────────────────── */
.moe-mic-drop {
  border-left: 4px solid var(--gold);
  background: var(--forest);
  padding: 1.75rem 2rem;
  margin: 1.75rem 0;
}
.moe-mic-drop .mic-drop-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 3.5vw, 30px);
  color: var(--sage-white);
  line-height: 1.45;
  margin: 0 0 14px;
}
.moe-mic-drop .mic-drop-text .never {
  color: var(--gold);
}
.moe-mic-drop .mic-drop-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0;
}

/* ── SERIES FOOTER ───────────────────────────────── */
.moe-series-footer {
  background: linear-gradient(135deg, var(--dusty-rose) 0%, #c9a0a0 100%);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0 0;
  text-align: center;
}
.moe-series-footer .sf-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  opacity: 0.7;
  margin: 0 0 8px;
}
.moe-series-footer .sf-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--forest);
  margin: 0;
}

/* ── GLOBAL SPACING TIGHTEN ──────────────────────── */
.post-body .moe-pull-quote,
.post-body .moe-pull-quote-dark,
.post-body .moe-pull-quote-rose { margin: 1.25rem 0; }
.post-body .moe-scene-break { margin: 1.5rem 0; }
.post-body .moe-callout,
.post-body .moe-chapter { margin: 1.25rem 0; }
.post-body p { margin-bottom: 1.1em; }

/* ── HERO LAYOUT OVERRIDES (pinned two-column) ───── */
.magazine-hero-grid {
  display: grid;
  grid-template-columns: 62% 38%;
  gap: 10px;
  background: #F4F5F0;
}

.hero-main {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

.hero-main .hero-image { display: none; }

.hero-secondary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-mini {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  flex: 1;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

.hero-mini .hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(37,40,32,0.92) 0%, rgba(37,40,32,0.3) 60%, transparent 100%);
}

.hero-card-content {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.5rem;
}

.hero-card-content .cat-label { margin-bottom: 10px; }

.hero-main .hero-card-content { padding: 2rem; }

.hero-card-content h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(20px, 3vw, 36px);
  color: var(--sage-white);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.hero-card-content h2 a { color: inherit; text-decoration: none; }
.hero-card-content h2 a:hover { color: var(--sage); }

.hero-mini .hero-card-content h2 {
  font-size: clamp(16px, 1.8vw, 20px);
}

.hero-hook {
  font-size: 14px;
  color: rgba(244,245,240,0.75);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.hero-meta {
  font-size: 11px;
  color: rgba(244,245,240,0.55);
  letter-spacing: 0.05em;
}

/* ── LOGO SIZE ───────────────────────────────────── */
.site-logo img {
  height: 140px;
  width: auto;
}

/* ── RESPONSIVE: mobile stacks hero cards ─────────── */
@media (max-width: 700px) {
  .magazine-hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-secondary {
    gap: 10px;
  }
  .hero-mini { min-height: 200px; }
}
