/* ===================================================
   BIOME FINDER – MAIN STYLESHEET
   Aesthetic: Dark editorial with earthy accent tones
   =================================================== */

:root {
  /* Colors */
  --bg-base:      #0a0e0c;
  --bg-surface:   #111815;
  --bg-elevated:  #172019;
  --bg-card:      #1a2620;
  --border:       rgba(74, 180, 100, 0.15);
  --border-hover: rgba(74, 180, 100, 0.35);

  --accent:       #4ab464;
  --accent-light: #6ed88a;
  --accent-dim:   rgba(74, 180, 100, 0.12);
  --accent-glow:  rgba(74, 180, 100, 0.3);

  --gold:         #d4a843;
  --gold-dim:     rgba(212, 168, 67, 0.15);

  --text-primary: #e8f0ea;
  --text-secondary:#9ab5a0;
  --text-muted:   #5a7a62;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --section-gap: clamp(4rem, 8vw, 8rem);
  --container:   1200px;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 40px rgba(74, 180, 100, 0.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; }

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

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ── Typography helpers ── */
.section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--accent);
  color: #0a0e0c;
}
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn--outline:hover {
  background: var(--accent-dim);
}
.btn--large { padding: 1rem 2rem; font-size: 1rem; }

/* ===================================================
   HEADER
   =================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 14, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text-primary);
  text-decoration: none;
}
.logo-icon { font-size: 1.4rem; line-height: 1; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.logo-text strong { color: var(--accent); font-weight: 800; }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-link {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--accent-dim);
}
.nav-link.active { color: var(--accent); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; padding: 0.6rem 1rem; }
  .nav-toggle { display: flex; }
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}
.hero-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #4ab464, transparent 70%);
  top: -200px; right: -100px;
}
.hero-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #1e6e3a, transparent 70%);
  bottom: -100px; left: -50px;
}
.hero-orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #d4a843, transparent 70%);
  top: 40%; left: 30%;
  opacity: 0.12;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.0;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease 0.1s both;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 50ch;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease 0.2s both;
}
.hero-cta {
  animation: fadeUp 0.6s ease 0.3s both;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ===================================================
   TOOL SECTION
   =================================================== */
.tool-section {
  padding: var(--section-gap) 0;
  background: var(--bg-surface);
  position: relative;
}
.tool-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex; align-items: center;
  justify-content: space-between;
}
.form-hint {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}
.input-wrapper { position: relative; }
.input-wrapper .form-input { width: 100%; padding-right: 2.8rem; }
.input-action {
  position: absolute; right: 0.6rem; top: 50%;
  transform: translateY(-50%);
  background: none;
  font-size: 1.1rem;
  padding: 0.2rem;
  border-radius: var(--radius-sm);
  transition: transform 0.2s;
  line-height: 1;
}
.input-action:hover { transform: translateY(-50%) scale(1.2); }

.form-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input::placeholder { color: var(--text-muted); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%235a7a62' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-select option, .form-select optgroup {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.tool-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  align-items: center;
}

/* Result */
.tool-result {
  margin-top: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: 0 0 30px var(--accent-dim);
  animation: resultSlide 0.35s ease;
}
.result-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.result-icon { font-size: 3rem; line-height: 1; flex-shrink: 0; }
.result-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.result-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.result-description { color: var(--text-secondary); font-size: 0.95rem; }
.result-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: 0.75rem;
}
.result-tag {
  padding: 0.2rem 0.6rem;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--accent-light);
}
.result-meta {
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.tool-error {
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(220, 80, 80, 0.1);
  border: 1px solid rgba(220, 80, 80, 0.3);
  border-radius: var(--radius-md);
  color: #f08080;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Quick coords */
.quick-coords {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.quick-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.quick-btn {
  padding: 0.35rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.quick-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ===================================================
   HOW IT WORKS
   =================================================== */
.how-section { padding: var(--section-gap) 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.step-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
}
.step-card:hover::before { opacity: 1; }
.step-number {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  position: absolute;
  top: 1rem; right: 1.5rem;
  user-select: none;
}
.step-icon { font-size: 2rem; margin-bottom: 1rem; line-height: 1; }
.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.step-body { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ===================================================
   BIOME LIST
   =================================================== */
.biomes-section {
  padding: var(--section-gap) 0;
  background: var(--bg-surface);
}
.biome-filter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.biome-search-input { max-width: 400px; }
.biome-cats {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.cat-btn {
  padding: 0.35rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
  transition: all 0.2s;
}
.cat-btn:hover, .cat-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.biome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.biome-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.biome-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.biome-card-stripe {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.biome-emoji { font-size: 1.8rem; margin-bottom: 0.6rem; line-height: 1; }
.biome-card-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.biome-card-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.biome-card[hidden] { display: none; }

/* ===================================================
   BLOG PREVIEW
   =================================================== */
.blog-preview-section { padding: var(--section-gap) 0; }
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.25s;
}
.blog-preview-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.blog-card-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--gold-dim);
  border: 1px solid rgba(212,168,67,0.25);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--accent-light); }
.blog-card-excerpt { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.25rem; }
.blog-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}
.blog-preview-card--cta {
  display: flex; flex-direction: column; justify-content: center;
  text-align: center;
  background: var(--bg-elevated);
  border-style: dashed;
}
.blog-cta-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.blog-cta-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.blog-cta-text { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.25rem; }

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}
.footer-nav-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   BLOG INDEX PAGE
   =================================================== */
.blog-hero {
  padding: 9rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(74,180,100,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.blog-hero .container { position: relative; }
.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.blog-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 50ch;
  margin: 0 auto;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  padding: var(--section-gap) 0;
}
.blog-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
}
.blog-article-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.blog-article-thumb {
  width: 100%; aspect-ratio: 16/9;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.blog-article-body { padding: 1.5rem; }
.blog-article-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.blog-article-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.blog-article-title a { color: inherit; }
.blog-article-title a:hover { color: var(--accent-light); }
.blog-article-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.blog-read-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

/* ===================================================
   BLOG POST PAGE
   =================================================== */
.blog-post-header {
  padding: 9rem 0 3rem;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}
.blog-post-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% -10%, rgba(74,180,100,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.blog-post-header .container { position: relative; }
.blog-post-cats { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.blog-post-cat {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  max-width: 20ch;
  margin-bottom: 1.25rem;
}
.blog-post-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex; gap: 1rem; flex-wrap: wrap;
  align-items: center;
}
.meta-sep { opacity: 0.4; }

.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  padding: 3rem 0 var(--section-gap);
  align-items: start;
}
.blog-post-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.prose { max-width: 72ch; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.prose h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  color: var(--text-primary);
}
.prose p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  list-style: disc;
  color: var(--text-secondary);
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.4rem; line-height: 1.7; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-light); }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose em { color: var(--accent-light); font-style: italic; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--accent-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}
.prose .callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex; gap: 0.75rem; align-items: flex-start;
}
.callout-icon { font-size: 1.25rem; flex-shrink: 0; }
.callout-body p { margin: 0; }
.prose .biome-table {
  width: 100%; border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.biome-table th {
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.biome-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.biome-table tr:last-child td { border-bottom: none; }
.biome-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* Sidebar */
.blog-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.sidebar-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-cta {
  background: var(--accent-dim);
  border-color: var(--accent);
  text-align: center;
}
.sidebar-cta .sidebar-title { border-color: rgba(74,180,100,0.2); }
.sidebar-cta-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.sidebar-cta p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }
.sidebar-links { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.sidebar-links a:last-child { border-bottom: none; }
.sidebar-links a:hover { color: var(--accent); }
.sidebar-links a::after { content: '→'; opacity: 0.5; }
.toc { display: flex; flex-direction: column; gap: 0.35rem; }
.toc a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  display: block;
  transition: all 0.2s;
}
.toc a:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

@media (max-width: 900px) {
  .blog-post-layout { grid-template-columns: 1fr; }
  .blog-sidebar { order: -1; }
}

/* ===================================================
   ANIMATIONS
   =================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}
@keyframes resultSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   RESPONSIVE UTILITIES
   =================================================== */
@media (max-width: 600px) {
  .result-inner { flex-direction: column; }
  .result-meta { margin-left: 0; text-align: left; }
  .tool-actions { flex-direction: column; }
  .tool-actions .btn { width: 100%; justify-content: center; }
}
