/*
Theme Name: Mystic Forest Studio
Theme URI: https://irenpins.com
Author: IrenPins
Author URI: https://irenpins.com
Description: Dark forest botanical aesthetic for digital crafts affiliate blog. Deep forest palette with golden accents, Cinzel/Newsreader typography.
Version: 1.9.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mystic-forest-studio
Tags: blog, custom-background, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* =====================================================
   DESIGN TOKENS — dark forest with golden sun-through-leaves accent
   ===================================================== */
:root {
  --bg:        oklch(0.18 0.04 148);
  --bg-2:      oklch(0.22 0.05 145);
  --surface:   oklch(0.25 0.06 145);
  --surface-2: oklch(0.30 0.07 144);
  --edge:      oklch(0.40 0.07 145);

  --ink:       oklch(0.94 0.020 90);
  --ink-mute:  oklch(0.78 0.025 90);
  --ink-dim:   oklch(0.60 0.030 95);
  --bone:      oklch(0.97 0.014 85);

  --moss:      oklch(0.55 0.13 145);
  --moss-deep: oklch(0.40 0.10 145);

  --gold:      oklch(0.86 0.18 110);
  --gold-deep: oklch(0.72 0.19 100);
  --gold-fg:   oklch(0.15 0.06 140);

  --blood:     oklch(0.58 0.20 30);

  --hairline:        rgba(180,200,160,.12);
  --hairline-strong: rgba(180,200,160,.26);

  --shadow: 0 18px 40px -10px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.25);

  --bg-radial-1: oklch(0.45 0.15 110 / .42);
  --bg-radial-2: oklch(0.30 0.08 200 / .30);
  --bg-radial-3: oklch(0.50 0.18 125 / .22);

  --ph-stripe-a: oklch(0.32 0.07 145);
  --ph-stripe-b: oklch(0.28 0.06 145);
  --ph-label-bg: oklch(0.20 0.04 145 / .82);
  --ph-label-bd: rgba(180,200,160,.20);

  --heart-bg:    oklch(0.20 0.04 145 / .65);
  --veil-bg:     rgba(8,18,8,.72);
  --grain-tint:  rgba(20,30,15,.18);
  --sticky-grad: linear-gradient(180deg, oklch(0.21 0.05 145 / .92), oklch(0.18 0.04 145 / .98));
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }

body {
  font-family: 'Newsreader', 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--bg-radial-1), transparent 60%),
    radial-gradient(900px 500px at -10% 30%,  var(--bg-radial-2), transparent 65%),
    radial-gradient(700px 400px at 50% 120%, var(--bg-radial-3), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

::selection { background: var(--gold); color: var(--gold-fg); }

/* =====================================================
   TYPOGRAPHY SYSTEM
   ===================================================== */
.font-display { font-family: 'Cinzel', 'Newsreader', serif; letter-spacing: .02em; }
.font-script  { font-family: 'Italianno', cursive; }
.font-mono    { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .04em; }
.smallcaps    { font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 500; }

h1, h2, h3, h4, h5, h6 {
  color: var(--bone);
  margin: 0 0 .5em;
  line-height: 1.15;
}

h1 { font-family: 'Cinzel', serif; font-size: clamp(36px, 5vw, 64px); font-weight: 500; letter-spacing: .02em; }
h2 { font-family: 'Cinzel', serif; font-size: clamp(24px, 3vw, 36px); font-weight: 500; }
h3 { font-family: 'Cinzel', serif; font-size: 22px; font-weight: 500; }
h4 { font-family: 'Newsreader', serif; font-size: 20px; font-weight: 600; font-style: italic; }

p { margin: 0 0 20px; }

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--bone); }

blockquote {
  border-left: 2px solid var(--gold);
  margin: 32px 0;
  padding: 8px 0 8px 22px;
  font-style: italic;
  font-size: 22px;
  color: var(--bone);
  font-family: 'Newsreader', serif;
}

strong { color: var(--bone); font-weight: 600; }
em { font-style: italic; }

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

/* =====================================================
   LAYOUT CONTAINERS
   ===================================================== */
.wrap   { max-width: 1220px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 720px;  margin: 0 auto; padding: 0 28px; }
.site-container { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

/* =====================================================
   UTILITY
   ===================================================== */
.row  { display: flex; }
.col  { display: flex; flex-direction: column; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.ai-c   { align-items: center; }
.jc-sb  { justify-content: space-between; }
.jc-c   { justify-content: center; }

/* =====================================================
   GRAIN TEXTURE
   ===================================================== */
.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .85 0 0 0 0 .92 0 0 0 0 .72 0 0 0 .05 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen; opacity: .35;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes goldpulse {
  0%,100% { box-shadow: 0 0 0 0   color-mix(in oklch, var(--gold) 55%, transparent),
                        0 8px 28px -10px color-mix(in oklch, var(--gold) 70%, transparent),
                        inset 0 1px 0 rgba(255,255,255,.18); }
  50%     { box-shadow: 0 0 0 8px color-mix(in oklch, var(--gold) 0%, transparent),
                        0 12px 36px -10px color-mix(in oklch, var(--gold) 90%, transparent),
                        inset 0 1px 0 rgba(255,255,255,.18); }
}
@keyframes flicker {
  0%,100% { opacity: 1; } 50% { opacity: .86; } 73% { opacity: .94; }
}
@keyframes drift {
  0%   { transform: translateY(0) rotate(-2deg); }
  50%  { transform: translateY(-6px) rotate(2deg); }
  100% { transform: translateY(0) rotate(-2deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.cta-gold {
  appearance: none; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--gold-fg);
  font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  font-size: 12.5px; padding: 13px 22px; border-radius: 2px;
  box-shadow: 0 8px 24px -8px color-mix(in oklch, var(--gold) 55%, transparent),
              inset 0 1px 0 rgba(255,255,255,.22);
  position: relative; overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.cta-gold::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.30) 50%, transparent 70%);
  background-size: 200% 100%; animation: shimmer 4.5s linear infinite;
  pointer-events: none;
}
.cta-gold.pulse { animation: goldpulse 2.4s ease-in-out infinite; }
.cta-gold:hover { transform: translateY(-1px); filter: brightness(1.05); }

.cta-ghost {
  appearance: none; cursor: pointer; background: transparent;
  border: 1px solid var(--hairline-strong); color: var(--ink);
  font-family: 'Cinzel', serif; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  font-size: 11.5px; padding: 11px 18px; border-radius: 2px;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.cta-ghost:hover {
  border-color: var(--gold); color: var(--gold);
  background: color-mix(in oklch, var(--gold) 6%, transparent);
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--hairline);
  border-radius: 3px;
  box-shadow: var(--shadow);
  overflow: hidden; position: relative;
}
.card.ornate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 3px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, transparent 35%, color-mix(in oklch, var(--gold) 30%, transparent), transparent 65%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card-corner { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.card-corner.tl { top: 6px; left: 6px;   border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.card-corner.tr { top: 6px; right: 6px;  border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.card-corner.bl { bottom: 6px; left: 6px;  border-bottom: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.card-corner.br { bottom: 6px; right: 6px; border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); }

.lift { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.lift:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklch, var(--gold) 40%, var(--hairline-strong));
  box-shadow: 0 18px 50px -10px rgba(40,28,16,.22),
              0 0 0 1px color-mix(in oklch, var(--gold) 20%, transparent);
}

/* =====================================================
   BADGES & TAGS
   ===================================================== */
.badge-off {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: var(--blood); color: var(--gold-fg);
  font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: .12em;
  font-size: 11px; padding: 6px 10px; text-transform: uppercase;
  box-shadow: 0 6px 18px -6px color-mix(in oklch, var(--blood) 70%, transparent);
}
.badge-off.gold {
  background: var(--gold); color: var(--gold-fg);
  box-shadow: 0 6px 18px -6px color-mix(in oklch, var(--gold) 70%, transparent);
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--hairline-strong);
  color: var(--ink-mute); font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .14em; cursor: pointer;
  background: transparent; transition: .15s;
}
.pill:hover { color: var(--gold); border-color: var(--gold); }
.pill.on { color: var(--gold-fg); background: var(--gold); border-color: var(--gold); }

/* =====================================================
   WISHLIST HEART
   ===================================================== */
.heart {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--hairline);
  background: var(--heart-bg); color: var(--ink-mute);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  backdrop-filter: blur(4px); transition: .15s; font-size: 14px;
}
.heart:hover { color: var(--blood); border-color: var(--blood); }
.heart.on {
  color: var(--blood); border-color: var(--blood);
  background: color-mix(in oklch, var(--blood) 18%, var(--heart-bg));
}

/* =====================================================
   STARS
   ===================================================== */
.stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }

/* =====================================================
   IMAGE PLACEHOLDER
   ===================================================== */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      var(--ph-stripe-a) 0 8px,
      var(--ph-stripe-b) 8px 16px);
  color: var(--ink-dim);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.10), transparent 60%);
  pointer-events: none;
}
.ph-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-dim);
  background: var(--ph-label-bg); padding: 5px 10px; border: 1px solid var(--ph-label-bd);
  border-radius: 2px; backdrop-filter: blur(2px);
  position: relative; z-index: 1;
}

/* inline link */
a.inline {
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid color-mix(in oklch, var(--gold) 45%, transparent);
  transition: border-color .2s, color .2s;
}
a.inline:hover { color: var(--bone); border-color: var(--bone); }

/* .body shortcuts (used in JSX post sections) */
.body p { margin: 0 0 20px; }
.body p.lede {
  font-size: 24px; line-height: 1.5; color: var(--ink); margin-bottom: 32px;
  font-style: italic; font-weight: 400;
}
.body p.lede::first-letter {
  font-family: 'Cinzel', serif; font-style: normal; font-weight: 600;
  font-size: 74px; line-height: .85; float: left;
  color: var(--gold); padding: 6px 10px 0 0; margin-top: 4px;
}
.body h2 {
  font-family: 'Cinzel', serif; font-weight: 600; font-size: 28px; letter-spacing: .04em;
  margin: 56px 0 8px; color: var(--bone);
}
.body h2 .num {
  display: inline-block; min-width: 1.2em; color: var(--gold); font-style: italic;
  font-family: 'Newsreader', serif; font-weight: 500; padding-right: .18em;
}
.body .sub { color: var(--ink-mute); font-style: italic; margin: 0 0 22px; font-size: 18px; }
.body blockquote {
  border-left: 2px solid var(--gold); margin: 32px 0; padding: 8px 0 8px 22px;
  font-style: italic; font-size: 22px; color: var(--bone);
  font-family: 'Newsreader', serif;
}
.body strong { color: var(--bone); font-weight: 600; }

/* =====================================================
   GLYPH ORNAMENTS
   ===================================================== */
.float-glyph {
  position: absolute; color: var(--gold); opacity: .5; font-size: 22px;
  animation: drift 7s ease-in-out infinite, flicker 4s ease-in-out infinite;
  pointer-events: none; user-select: none;
}

.glyph-rule {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink-dim); margin: 48px auto;
}
.glyph-rule::before, .glyph-rule::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-strong) 50%, transparent);
}
.glyph-rule .g { font-size: 14px; color: var(--gold); letter-spacing: .5em; padding-left: .5em; }

/* =====================================================
   SCROLL PROGRESS BAR
   ===================================================== */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; background: var(--gold);
  z-index: 200; box-shadow: 0 0 12px var(--gold);
  transition: width .12s linear;
}

/* =====================================================
   TOP PROMO BAR
   ===================================================== */
.promo-bar {
  position: sticky; top: 0; z-index: 120;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 50%, var(--gold) 100%);
  border-bottom: 1px solid color-mix(in oklch, #000 18%, transparent);
  color: var(--gold-fg);
}
.promo-bar .wrap { height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }

/* =====================================================
   SITE HEADER
   ===================================================== */
.site-header {
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0 18px;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.site-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.site-logo .logo-icon {
  color: var(--gold); flex-shrink: 0;
}
.site-logo .logo-text-top { font-family: 'Cinzel', serif; font-size: 16px; color: var(--bone); font-weight: 600; letter-spacing: .22em; line-height: 1.0; }
.site-logo .logo-text-sub { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--gold); letter-spacing: .42em; margin-top: 5px; text-transform: uppercase; line-height: 1; }

.main-nav { display: flex; gap: 24px; color: var(--ink-mute); }
.main-nav a {
  font-family: 'JetBrains Mono', monospace; text-transform: uppercase;
  letter-spacing: .18em; font-size: 11px; font-weight: 500;
  color: var(--ink-mute); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 4px;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover,
.main-nav a.current-menu-item,
.main-nav a.current-page-ancestor { color: var(--gold); border-color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* =====================================================
   AFFILIATE DISCLOSURE
   ===================================================== */
.affiliate-disclosure {
  border: 1px dashed var(--hairline-strong); border-radius: 2px;
  padding: 10px 14px; color: var(--ink-dim);
  font-size: 12px; font-style: italic;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2);
  margin: 22px 0;
}
.affiliate-disclosure .icon { color: var(--gold); font-size: 14px; flex-shrink: 0; }

/* =====================================================
   ARTICLE HERO
   ===================================================== */
.article-hero { position: relative; padding: 64px 0 36px; overflow: hidden; }
.article-hero .hero-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; color: var(--ink-dim); font-size: 13px; flex-wrap: wrap; margin-top: 30px;
}
.hero-meta .sep { width: 4px; height: 4px; border-radius: 999px; background: var(--ink-dim); }

.entry-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.06;
  font-weight: 500;
  margin: 0;
  color: var(--bone);
  letter-spacing: .01em;
}

.hero-featured-image {
  margin-top: 56px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.hero-featured-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* =====================================================
   ARTICLE BODY
   ===================================================== */
.entry-content { position: relative; }
.entry-content p { margin: 0 0 20px; }
.entry-content .lede {
  font-size: 24px; line-height: 1.5; color: var(--ink); margin-bottom: 32px;
  font-style: italic; font-weight: 400;
}
.entry-content .lede::first-letter {
  font-family: 'Cinzel', serif; font-style: normal; font-weight: 600;
  font-size: 74px; line-height: .85; float: left;
  color: var(--gold); padding: 6px 10px 0 0; margin-top: 4px;
}
.entry-content h2 {
  font-family: 'Cinzel', serif; font-weight: 600; font-size: 28px; letter-spacing: .04em;
  margin: 56px 0 8px; color: var(--bone);
}
.entry-content h2 .num {
  display: inline-block; min-width: 1.2em; color: var(--gold); font-style: italic;
  font-family: 'Newsreader', serif; font-weight: 500; padding-right: .18em;
}
.entry-content .sub { color: var(--ink-mute); font-style: italic; margin: 0 0 22px; font-size: 18px; }
.entry-content blockquote {
  border-left: 2px solid var(--gold); margin: 32px 0; padding: 8px 0 8px 22px;
  font-style: italic; font-size: 22px; color: var(--bone);
}
.entry-content strong { color: var(--bone); font-weight: 600; }
.entry-content a { color: var(--gold); border-bottom: 1px solid color-mix(in oklch, var(--gold) 45%, transparent); transition: color .2s, border-color .2s; }
.entry-content a:hover { color: var(--bone); border-color: var(--bone); }

/* =====================================================
   BLOG INDEX — POST GRID
   ===================================================== */
.blog-hero { position: relative; padding: 64px 0 32px; overflow: hidden; text-align: center; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin: 36px 0;
}

.post-card { text-decoration: none; color: inherit; display: block; }
.post-card .card-thumb { position: relative; }
.post-card .card-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.post-card .card-body { padding: 18px 18px 20px; }
.post-card .card-cat { color: var(--gold); margin-bottom: 6px; display: block; }
.post-card .card-title {
  font-family: 'Cinzel', serif; font-size: 18px; color: var(--bone);
  font-weight: 500; line-height: 1.3; margin: 0 0 8px; letter-spacing: .01em;
}
.post-card .card-excerpt { color: var(--ink-mute); font-size: 15px; font-style: italic; line-height: 1.5; margin: 0 0 12px; }
.post-card .card-meta { color: var(--ink-dim); font-size: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* =====================================================
   FEATURED POST (blog index large card)
   ===================================================== */
.featured-post {
  margin: 36px 0 56px;
  text-decoration: none; color: inherit; display: block;
}
.featured-post .fp-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0;
}
.featured-post .fp-image { position: relative; min-height: 440px; }
.featured-post .fp-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-post .fp-body {
  padding: 40px 44px 36px;
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--hairline);
}
.featured-post .fp-title {
  font-family: 'Cinzel', serif; font-size: 32px; font-weight: 500;
  color: var(--bone); margin: 8px 0; letter-spacing: .01em; line-height: 1.2;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar-layout {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 48px;
  margin: 0;
}
.widget { margin-bottom: 40px; }
.widget-title {
  font-family: 'JetBrains Mono', monospace; text-transform: uppercase;
  letter-spacing: .18em; font-size: 11px; font-weight: 500;
  color: var(--gold); margin: 0 0 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--hairline);
}

/* =====================================================
   CHIPS / TAGS
   ===================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* =====================================================
   CHIP BUTTON
   ===================================================== */
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border: 1px solid var(--hairline-strong);
  background: transparent; color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .16em; cursor: pointer; border-radius: 2px;
  transition: .15s;
}
.chip-btn:hover { color: var(--gold); border-color: var(--gold); }

/* =====================================================
   NEWSLETTER / LEAD MAGNET BLOCK
   ===================================================== */
.newsletter-block {
  margin: 52px 0; padding: 36px 36px 32px; border-radius: 3px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid color-mix(in oklch, var(--gold) 35%, var(--hairline));
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--gold) 15%, transparent), 0 30px 70px -20px rgba(40,28,16,.18), inset 0 1px 0 color-mix(in oklch, var(--gold) 25%, transparent);
  position: relative; overflow: hidden;
}
.newsletter-block input[type="email"] {
  flex: 2 1 240px; min-width: 0;
  padding: 14px 16px; border-radius: 2px;
  border: 1px solid var(--hairline-strong); background: var(--surface-2); color: var(--ink);
  font-family: 'Newsreader', serif; font-size: 17px; outline: none;
}
.newsletter-block form { display: flex; gap: 12px; flex-wrap: wrap; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  margin-top: 96px; border-top: 1px solid var(--hairline);
  padding-top: 56px; padding-bottom: 56px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px;
  border-top: 1px solid var(--hairline); padding-top: 36px;
}
.footer-colophon {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--hairline); margin-top: 36px; padding-top: 18px;
  color: var(--ink-dim); font-size: 12px; font-style: italic; flex-wrap: wrap; gap: 12px;
}
.footer-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.footer-nav-list a { color: var(--ink-mute); font-size: 14.5px; }
.footer-nav-list a:hover { color: var(--gold); }

/* =====================================================
   STICKY BOTTOM BAR
   ===================================================== */
.sticky-bot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--sticky-grad);
  border-top: 1px solid var(--hairline-strong);
  backdrop-filter: blur(8px);
  box-shadow: 0 -10px 30px -8px rgba(40,28,16,.2);
  animation: fadein .5s ease;
}

/* =====================================================
   POPUP / MODAL
   ===================================================== */
.popup-veil {
  position: fixed; inset: 0; background: var(--veil-bg); backdrop-filter: blur(6px);
  z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadein .35s ease;
}
.popup {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--hairline-strong); border-radius: 4px;
  max-width: 520px; width: 100%; padding: 40px 36px; position: relative;
  box-shadow: 0 30px 80px -20px rgba(40,28,16,.35),
              inset 0 1px 0 color-mix(in oklch, var(--gold) 18%, transparent);
}
.popup .close {
  position: absolute; top: 12px; right: 14px; background: transparent; border: 0;
  color: var(--ink-dim); cursor: pointer; font-size: 20px; line-height: 1;
}
.popup .close:hover { color: var(--ink); }

/* =====================================================
   COMMENTS
   ===================================================== */
.comments-area { margin-top: 88px; }
.comment-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.comment-body-inner { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.comment-avatar {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--moss-deep);
  display: flex; align-items: center; justify-content: center;
  color: var(--bone); font-family: 'Italianno', cursive; font-size: 24px;
  flex-shrink: 0;
}
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.comment-author-name { color: var(--bone); font-weight: 600; }
.comment-date { color: var(--ink-dim); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; }
.comment-content p { color: var(--ink-mute); line-height: 1.55; margin: 0 0 8px; }
.comment-actions { display: flex; gap: 12px; color: var(--ink-dim); font-size: 12px; }
.comment-actions button { background: none; border: 0; color: inherit; cursor: pointer; font-family: inherit; }

.comment-respond { margin-top: 48px; }
.comment-form-wrap {
  border: 1px solid var(--hairline); border-radius: 2px;
  background: var(--surface-2); padding: 14px 14px 12px;
}
.comment-form-wrap textarea {
  width: 100%; min-height: 84px; background: transparent; border: 0; outline: none;
  color: var(--ink); font-family: 'Newsreader', serif; font-size: 17px; resize: vertical;
}
.comment-form-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--hairline); padding-top: 10px; margin-top: 6px;
}
.comment-form-note { color: var(--ink-dim); font-size: 12px; font-style: italic; }

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 56px 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--hairline); border-radius: 2px;
  color: var(--ink-mute); font-family: 'JetBrains Mono', monospace; font-size: 12px;
  text-decoration: none; transition: .15s;
}
.pagination a:hover { color: var(--gold); border-color: var(--gold); }
.pagination .current { background: var(--gold); color: var(--gold-fg); border-color: var(--gold); }

/* =====================================================
   WP BLOCKS & ALIGNMENT
   ===================================================== */
.wp-block-image { margin: 32px 0; }
.wp-block-image img { border-radius: 2px; border: 1px solid var(--hairline); }
.alignleft  { float: left; margin-right: 28px; margin-bottom: 12px; }
.alignright { float: right; margin-left: 28px; margin-bottom: 12px; }
.aligncenter { text-align: center; margin: 0 auto; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px) {
  .sidebar-layout { grid-template-columns: 1fr; }
  .featured-post .fp-grid { grid-template-columns: 1fr; }
  .featured-post .fp-image { min-height: 280px; }
}
@media (max-width: 880px) {
  .wrap   { padding: 0 18px; }
  .narrow { padding: 0 18px; }
  .entry-content .lede { font-size: 20px; }
  .entry-content h2 { font-size: 22px; }
  .main-nav { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header-actions .cta-ghost { display: none; }
}
