/* ============================================================
   Rebecca Muze — BLOG
   Self-contained, lightweight stylesheet for long-form SEO pages.
   Matches the main site (black / lime / mono) but loads no JS,
   no Three.js and no custom cursor — keeps Core Web Vitals fast.
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --fg: #f4f4f0;
  --muted: #8a8a82;
  --lime: #d4ff3a;
  --pink: #ff5ebc;
  --line: rgba(244, 244, 240, 0.12);
  --maxw: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* texture layers — match the main site */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.dotgrid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(244,244,240,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
}

/* ---- nav ---- */
.bnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem clamp(1rem, 4vw, 2rem);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bnav__logo {
  font-family: 'Space Mono', monospace; font-weight: 700;
  letter-spacing: 0.1em; color: var(--fg); text-decoration: none;
  font-size: 1rem;
}
.bnav__logo:hover { color: var(--lime); }
.bnav__back {
  font-family: 'Space Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lime); text-decoration: none;
  border: 1px solid rgba(212, 255, 58, 0.5); border-radius: 999px;
  padding: 0.5rem 1rem; transition: all 0.2s;
}
.bnav__back:hover { background: var(--lime); color: #0a0a0a; }

/* ---- layout ---- */
.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 5vw, 1.5rem); }

/* ---- blog index hero ---- */
.bhero { padding: clamp(3rem, 9vw, 6rem) 0 clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--line); }
.bhero__kicker {
  font-family: 'Space Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--lime); margin-bottom: 1rem;
}
.bhero__title {
  font-family: 'Bricolage Grotesque', 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: clamp(2.4rem, 8vw, 4rem); line-height: 0.95;
  letter-spacing: -0.02em;
}
.bhero__title .dot { color: var(--lime); }
.bhero__sub { color: var(--muted); margin-top: 1.1rem; font-size: 1.05rem; max-width: 34rem; }

/* ---- post cards (index) ---- */
.cards { display: grid; gap: 1.2rem; padding: clamp(2rem, 5vw, 3rem) 0 4rem; }
.card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(1.4rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.card:hover {
  border-color: rgba(212, 255, 58, 0.5);
  background: rgba(212, 255, 58, 0.04);
  transform: translateY(-3px);
}
.card__meta {
  font-family: 'Space Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--lime);
  margin-bottom: 0.8rem; display: flex; gap: 0.8rem; flex-wrap: wrap;
}
.card__meta span { color: var(--muted); }
.card__title {
  font-family: 'Bricolage Grotesque', 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: clamp(1.3rem, 4vw, 1.7rem);
  line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 0.6rem;
}
.card__excerpt { color: var(--muted); font-size: 0.98rem; }
.card__more {
  display: inline-block; margin-top: 1rem;
  font-family: 'Space Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime);
}

/* ---- article ---- */
.article { padding: clamp(2.5rem, 7vw, 4.5rem) 0 2rem; }
.article__meta {
  font-family: 'Space Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--lime);
  margin-bottom: 1.2rem; display: flex; gap: 0.9rem; flex-wrap: wrap;
}
.article__meta span { color: var(--muted); }
.article__title {
  font-family: 'Bricolage Grotesque', 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: clamp(2rem, 6.5vw, 3.2rem); line-height: 1.02;
  letter-spacing: -0.02em; margin-bottom: 1rem;
}
.article__lede {
  font-size: clamp(1.1rem, 3vw, 1.3rem); line-height: 1.5;
  color: rgba(244, 244, 240, 0.86); font-weight: 300;
  border-left: 2px solid var(--lime); padding-left: 1.1rem; margin: 1.5rem 0 2.5rem;
}

/* article body typography */
.prose { font-size: 1.06rem; }
.prose > * + * { margin-top: 1.3rem; }
.prose h2 {
  font-family: 'Bricolage Grotesque', 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: clamp(1.4rem, 4.5vw, 2rem); line-height: 1.1;
  letter-spacing: -0.01em; margin-top: 3rem; color: var(--fg);
}
.prose h3 {
  font-family: 'Bricolage Grotesque', 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.2rem; margin-top: 2rem; color: var(--fg);
}
.prose p { color: rgba(244, 244, 240, 0.82); }
.prose a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--pink); }
.prose strong { color: var(--fg); font-weight: 700; }
.prose em { color: rgba(244, 244, 240, 0.92); }
.prose ul, .prose ol { padding-left: 1.4rem; color: rgba(244, 244, 240, 0.82); }
.prose li + li { margin-top: 0.5rem; }
.prose blockquote {
  border-left: 2px solid rgba(212, 255, 58, 0.55);
  padding: 0.4rem 0 0.4rem 1.2rem; margin: 2rem 0;
  font-style: italic; color: rgba(244, 244, 240, 0.9);
  font-size: 1.15rem; line-height: 1.5;
}

/* track-stage list used in the album post */
.stages { list-style: none; padding: 0; margin: 2rem 0; border-top: 1px solid var(--line); }
.stages li {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 1rem 0.2rem; border-bottom: 1px solid var(--line);
}
.stages__num {
  font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--lime);
  min-width: 1.8rem; letter-spacing: 0.1em;
}
.stages__name { font-weight: 600; color: var(--fg); }
.stages__desc { color: var(--muted); display: block; font-size: 0.95rem; margin-top: 0.15rem; }

/* CTA block */
.cta {
  margin: 3rem 0 1rem; padding: clamp(1.6rem, 5vw, 2.4rem);
  border: 1px solid rgba(212, 255, 58, 0.3); border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(212,255,58,0.08), transparent 60%);
  text-align: center;
}
.cta__title {
  font-family: 'Bricolage Grotesque', 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.4rem; margin-bottom: 0.5rem;
}
.cta__sub { color: var(--muted); margin-bottom: 1.4rem; font-size: 0.98rem; }
.cta__row { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
.btn {
  font-family: 'Space Mono', monospace; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.8rem 1.4rem; border-radius: 999px; text-decoration: none;
  transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn--primary {
  background: rgba(212, 255, 58, 0.15); color: var(--lime);
  border: 1px solid var(--lime); box-shadow: 0 0 16px rgba(212, 255, 58, 0.2);
}
.btn--primary:hover { background: var(--lime); color: #0a0a0a; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: rgba(244,244,240,0.85); border: 1px solid rgba(244,244,240,0.35); }
.btn--ghost:hover { border-color: var(--fg); color: var(--fg); transform: translateY(-2px); }

/* related / read-next */
.readnext { padding: 2.5rem 0 4rem; border-top: 1px solid var(--line); margin-top: 3rem; }
.readnext__label {
  font-family: 'Space Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem;
}

/* footer */
.bfooter {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  padding: 2.5rem clamp(1rem, 5vw, 2rem); text-align: center;
  font-family: 'Space Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.12em; color: var(--muted);
  display: flex; flex-direction: column; gap: 0.6rem; align-items: center;
}
.bfooter a { color: var(--lime); text-decoration: none; }
.bfooter__star { color: var(--lime); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
