:root {
  --root-deep: #0F2A1D;
  --forest: #1F4D2B;
  --sprout: #5FBE3E;
  --sprout-soft: #8FD56E;
  --sky: #A8D8F0;
  --sky-soft: #D5EAF5;
  --mist: #E8F4F8;
  --paper: #FBFEFF;
  --line: rgba(31, 77, 43, 0.12);
  --shadow: 0 1px 2px rgba(15, 42, 29, 0.04), 0 8px 24px rgba(15, 42, 29, 0.06);

  --serif: 'Iosevka', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.75;
  color: var(--root-deep);
  background: #020204;
  background-image:
    radial-gradient(ellipse at 20% 15%, rgba(25, 10, 50, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(5, 15, 35, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 60% 40%, rgba(10, 30, 15, 0.20) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}



/* ── Top Nav ─────────────────────────────────── */
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15,42,29,0.88);
  border: 1.5px solid rgba(95,190,62,0.48);
  box-shadow: 0 0 10px rgba(95,190,62,0.20);
  object-fit: contain;
  padding: 4px;
  display: block;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.brand:hover .brand-mark {
  box-shadow: 0 0 18px rgba(95,190,62,0.38);
  border-color: rgba(95,190,62,0.72);
}

/* ── Article ─────────────────────────────────── */
article {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px 100px;
  background: #1d5a35;
  color: #000000;
  position: relative;
  z-index: 1;
}
article h1, article h2, article h3, article h4, article h5, article h6 { color: #000000; font-weight: 700; }

.meta-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.series-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 100px;
  color: #000000;
  font-family: var(--mono);
  font-weight: 600;
}

.meta-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sprout);
  animation: blink 1.6s infinite;
  box-shadow: 0 0 8px var(--sprout);
}

.series-tag .meta-dot {
  background: #000000;
  box-shadow: none;
}

@keyframes blink { 0%, 49%, 100% { opacity: 1; } 50%, 99% { opacity: 0.3; } }

.difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}


/* ── Headline ────────────────────────────────── */
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--root-deep);
  margin-bottom: 24px;
}

h1 em {
  font-style: italic;
  color: #000000;
  font-weight: 400;
}

.deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  color: #000000;
  line-height: 1.4;
  margin-bottom: 32px;
  max-width: 600px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag {
  padding: 5px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #000000;
  font-weight: 500;
}

/* ── Body Prose ──────────────────────────────── */
.prose p {
  margin-bottom: 24px;
  font-size: 18px;
  color: rgba(15, 42, 29, 0.9);
}


.prose p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 600;
  color: #000000;
  float: left;
  line-height: 0.85;
  margin: 8px 12px 0 0;
  padding-top: 4px;
}

.prose strong {
  color: var(--root-deep);
  font-weight: 600;
}

.prose em {
  color: #000000;
  font-style: italic;
}

/* ── Section Break ───────────────────────────── */
.break {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 56px 0;
  gap: 16px;
}

.break .line {
  height: 1px;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}

/* ── Mantra Block ────────────────────────────── */
.mantra {
  margin: 64px 0;
  padding: 56px 40px;
  background: linear-gradient(135deg, var(--root-deep) 0%, var(--forest) 100%);
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 42, 29, 0.15), 0 20px 50px rgba(15, 42, 29, 0.18);
}

.mantra::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(95, 190, 62, 0.25), transparent 70%);
  border-radius: 50%;
}

.mantra::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(168, 216, 240, 0.15), transparent 70%);
  border-radius: 50%;
}

.mantra-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sprout-soft);
  font-weight: 500;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.mantra-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.3;
  color: var(--paper);
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}


/* ── Math Equation Block ─────────────────────── */
.equation {
  margin: 48px 0;
  padding: 36px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.equation-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sprout);
  font-weight: 500;
  margin-bottom: 18px;
}

.equation-formula {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 500;
  color: var(--root-deep);
  line-height: 1.6;
  letter-spacing: -0.005em;
}

.equation-formula .plus {
  color: var(--sprout);
  font-weight: 400;
  margin: 0 6px;
}

.equation-formula .equals {
  color: var(--sprout);
  font-weight: 400;
  margin: 0 6px;
}

.equation-formula em {
  font-style: italic;
  color: #000000;
}

/* ── Shoutouts ───────────────────────────────── */
.shoutouts {
  margin: 64px 0 32px;
  padding: 36px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.shoutouts-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sprout);
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shoutouts-label::before {
  content: '↳';
  font-size: 14px;
}

.shoutouts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.shoutout {
  padding: 16px 18px;
  background: var(--mist);
  border-radius: 8px;
  border-left: 3px solid var(--sprout);
}

.shoutout-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--root-deep);
  margin-bottom: 4px;
}

.shoutout-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000000;
  opacity: 0.8;
}

/* ── Verdict Bar ─────────────────────────────── */
.verdict-bar {
  margin: 64px 0 32px;
  padding: 32px 36px;
  background: linear-gradient(135deg, var(--paper) 0%, var(--mist) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.verdict-bar::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(95, 190, 62, 0.12), transparent 70%);
  border-radius: 50%;
}

.verdict-block {
  position: relative;
  z-index: 1;
}

.verdict-mini-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sprout);
  font-weight: 500;
  margin-bottom: 6px;
}

.verdict-stars {
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--sprout);
}

.verdict-difficulty {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--root-deep);
  font-style: italic;
}

/* ── Up Next ─────────────────────────────────── */
.up-next {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.up-next-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sprout);
  font-weight: 500;
  margin-bottom: 12px;
}

.up-next-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--root-deep);
  margin-bottom: 8px;
}

.up-next-desc {
  font-size: 15px;
  color: #000000;
}
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.post-nav-link { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; color: inherit; opacity: 0.55; transition: opacity 0.2s; }
.post-nav-link:hover { opacity: 1; }
.post-nav-next { margin-left: auto; }

/* ── Sign-off ────────────────────────────────── */
.signoff {
  margin: 56px 0 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: #000000;
}

.signoff-name {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 500;
  font-size: 22px;
  color: var(--root-deep);
  letter-spacing: 0.02em;
}

/* ── Animations ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

article > * {
  animation: fadeUp 0.6s ease-out backwards;
}
article > *:nth-child(1) { animation-delay: 0.05s; }
article > *:nth-child(2) { animation-delay: 0.12s; }
article > *:nth-child(3) { animation-delay: 0.19s; }
article > *:nth-child(4) { animation-delay: 0.26s; }
article > *:nth-child(5) { animation-delay: 0.33s; }

@media (prefers-reduced-motion: reduce) {
  article > * { animation: none; }
}


/* ── Responsive ──────────────────────────────── */
@media (max-width: 640px) {
  article { padding: 24px 58px 80px 22px; }
  body { font-size: 17px; }
  h1 { font-size: 40px; }
  .deck { font-size: 21px; }
  .mantra { padding: 40px 28px; }
  .mantra-text { font-size: 24px; }
  .verdict-bar { flex-direction: column; align-items: flex-start; padding: 24px 26px; }
}

/* ── Up Next Link ────────────────────────────── */
.up-next-title a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s;
}
.up-next-title a:hover {
  color: var(--sprout);
  transform: translateY(-2px);
}

/* ── Back to Top ─────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: #000000;
  border: 1px solid var(--line);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: opacity 0.25s, transform 0.25s, border-color 0.2s, color 0.2s;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { border-color: var(--sprout); color: var(--sprout); }
.back-to-top svg { width: 18px; height: 18px; }
body.dark .back-to-top { background: var(--paper); border-color: rgba(95,190,62,0.3); }

/* ── SIDE DOCK ── */
.side-dock { position: fixed; right: 1.25rem; top: 50%; transform: translateY(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 0.4rem; background: rgba(4,6,14,0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(26,127,168,0.22); border-radius: 18px; padding: 0.65rem 0.5rem; box-shadow: 0 8px 32px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.04), 0 0 28px rgba(0,200,150,0.05); }
.dock-item { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; text-decoration: none; color: rgba(139,160,180,0.65); transform-origin: right center; transition: color 0.22s ease, background 0.22s ease, transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease; outline: none; }
.dock-item::before { content: ''; position: absolute; inset: 0; border-radius: 12px; background: radial-gradient(ellipse at center, rgba(0,200,150,0.26) 0%, transparent 72%); opacity: 0; transition: opacity 0.25s ease; }
.dock-item:hover::before, .dock-item.active::before { opacity: 1; }
.dock-item:hover { color: #00c896; background: rgba(0,200,150,0.1); transform: scale(1.18); box-shadow: 0 0 22px rgba(0,200,150,0.48), 0 0 9px rgba(0,200,150,0.3), 0 4px 14px rgba(0,0,0,0.32); }
.dock-item:focus-visible { outline: 2px solid #00c896; outline-offset: 2px; }
.dock-item.active { color: #00c896; background: rgba(0,200,150,0.08); box-shadow: 0 0 12px rgba(0,200,150,0.22); }
.dock-item.active::after { content: ''; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: #00c896; box-shadow: 0 0 7px rgba(0,200,150,0.9); }
.dock-icon { width: 22px; height: 22px; display: block; flex-shrink: 0; }
.dock-label { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(8px); background: rgba(4,6,14,0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #dde6f4; font-family: 'Inter', system-ui, sans-serif; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.26rem 0.62rem; border-radius: 6px; border: 1px solid rgba(26,127,168,0.28); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.18s ease, transform 0.18s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.38); }
.dock-item:hover .dock-label { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 768px) {
  .side-dock { right: 0.55rem; padding: 0.5rem 0.35rem; gap: 0.3rem; border-radius: 14px; }
  .dock-item { width: 36px; height: 36px; border-radius: 10px; }
  .dock-item:hover { transform: scale(1.1); }
  .dock-icon { width: 17px; height: 17px; }
  .dock-label { display: none; }
  .dock-item.active::after { width: 3px; height: 3px; bottom: 2px; }
}

@media (max-width: 768px) {
  body { background-attachment: scroll; }
}

#canopy-glass {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100vw - 40px), 1160px);
  height: 100%;
  background: linear-gradient(90deg, rgba(10,4,8,0) 0%, rgba(196,30,58,.045) 20%, rgba(212,175,55,.09) 50%, rgba(196,30,58,.045) 80%, rgba(10,4,8,0) 100%);
  border-left: 1px solid rgba(212,175,55,.07);
  border-right: 1px solid rgba(212,175,55,.07);
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 768px) { #canopy-glass { display: none; } }
nav, article, main, header, footer { position: relative; z-index: 1; }
/* ── Footer ── */
footer {
  width: 100%;
  max-width: none;
  background: #090308;
  border-top: 1px solid #1a0a10;
  padding: 2.5rem 3rem 2rem;
  text-align: center;
}
.footer-logo-img { width: 44px; height: auto; margin: 0 auto 0.6rem; display: block; opacity: 0.8; filter: drop-shadow(0 0 6px rgba(212,175,55,0.2)); }
.footer-logo { font-family: 'Cinzel', serif; font-size: 1.3rem; font-weight: 700; color: #dde6f4; margin-bottom: 0.4rem; }
.footer-logo span { color: #D4AF37; }
.footer-tagline { font-size: 0.78rem; color: #7a6570; font-style: italic; margin-bottom: 1.5rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-links a { color: #7a6570; text-decoration: none; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.3s ease; }
.footer-links a:hover { color: #D4AF37; }
.footer-coffee-link { color: #f4b400 !important; }
.footer-coffee-link:hover { color: #D4AF37 !important; }
.footer-bottom { font-size: 0.7rem; color: #7a6570; border-top: 1px solid #1a0a10; padding-top: 1.2rem; }
.copyright-disclaimer { font-size: 0.68rem; color: #7a6570; font-style: italic; margin: 1rem auto 1.5rem; max-width: 560px; line-height: 1.6; }
@media (max-width: 768px) {
  article { padding: 24px 58px 60px 20px; }
  footer { padding: 2.5rem 1.25rem 2rem; padding-right: 70px; }
}
