:root {
  --bg: #0a0a0a;
  --text: #ffffff;
  --text-dim: #8a8a8a;
  --text-dimmer: #5a5a5a;
  --accent: #3B82F6;
  --accent-soft: rgba(96, 165, 250, 0.92);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.18);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
  letter-spacing: -0.005em;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 32px; }

/* Nav */
nav.site-nav {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}
.wordmark {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.wordmark .dot { color: var(--accent); }
.nav-links { display: flex; gap: 32px; font-size: 14px; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Hero (home) */
.hero {
  padding: 160px 0 220px;
  position: relative;
  overflow: visible;
}
.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 3;
  opacity: 0;
  animation: fade-up 1.1s ease-out 0.15s forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 28px;
  font-weight: 500;
}
h1.hero-headline {
  font-size: 76px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.subhead {
  font-size: 20px;
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.5;
  font-weight: 400;
}

/* Ambient glow */
.glow-wrap {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1700px, 130vw);
  height: 1200px;
  pointer-events: none;
  z-index: 1;
}
.glow-base {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 42% at 42% 38%,
    rgba(59, 130, 246, 0.42) 0%,
    rgba(59, 130, 246, 0.24) 14%,
    rgba(59, 130, 246, 0.12) 28%,
    rgba(59, 130, 246, 0.05) 48%,
    rgba(59, 130, 246, 0.015) 68%,
    transparent 84%
  );
  filter: blur(56px);
  animation: drift-slow 17s ease-in-out infinite;
}
.glow-warm {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 38% 30% at 52% 30%,
    rgba(147, 197, 253, 0.28) 0%,
    rgba(96, 165, 250, 0.12) 28%,
    rgba(59, 130, 246, 0.04) 55%,
    transparent 72%
  );
  filter: blur(70px);
  mix-blend-mode: screen;
  animation: drift-slow-alt 23s ease-in-out infinite;
}
.glow-bright {
  position: absolute;
  top: 24%;
  left: 38%;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(219, 234, 254, 0.42) 0%,
    rgba(147, 197, 253, 0.18) 28%,
    rgba(96, 165, 250, 0.04) 55%,
    transparent 70%
  );
  filter: blur(48px);
  animation: pulse-soft 13s ease-in-out infinite;
}
@keyframes drift-slow {
  0%, 100% { transform: translate(0, 0); opacity: 0.94; }
  50%      { transform: translate(22px, -16px); opacity: 1; }
}
@keyframes drift-slow-alt {
  0%, 100% { transform: translate(0, 0); opacity: 0.86; }
  50%      { transform: translate(-26px, 20px); opacity: 1; }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 0.82; }
  50%      { opacity: 1; }
}

/* Block sections (home page) */
section.block {
  padding: 140px 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
}
.section-label {
  font-size: 12px;
  color: var(--text-dimmer);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  padding-top: 6px;
}
.about-body {
  font-size: 24px;
  line-height: 1.55;
  color: var(--text);
  max-width: 720px;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.about-body .muted { color: var(--text-dim); }

/* Contact */
.contact-email {
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-hover);
  padding-bottom: 6px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-email:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Post list (home preview + /blog) */
.post-list { display: grid; gap: 0; max-width: 760px; }
.post {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.18s ease;
}
.post:hover { opacity: 0.7; }
.post-meta {
  font-size: 12px;
  color: var(--text-dimmer);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.post-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.post-excerpt {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 640px;
}

/* Standalone page (blog index, privacy, essay) */
.page {
  padding: 80px 0 120px;
  position: relative;
}
.page-header {
  margin-bottom: 64px;
  max-width: 720px;
}
.page-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 20px;
  font-weight: 500;
}
h1.page-title {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.page-subtitle {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 560px;
}

/* Essay typography */
.essay {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 32px 120px;
}
.essay-meta {
  font-size: 12px;
  color: var(--text-dimmer);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}
h1.essay-title {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.essay-byline {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 56px;
}
.essay-body p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.4em;
  font-weight: 400;
}
.essay-body p:first-of-type {
  font-size: 22px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 1.2em;
  letter-spacing: -0.012em;
}
.essay-footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.essay-footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.18s ease;
}
.essay-footer a:hover { color: var(--text); }

/* Privacy body */
.prose {
  max-width: 680px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}
.prose p { margin-bottom: 1.2em; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s ease; }
.prose a:hover { border-bottom-color: var(--accent); }

/* Footer */
footer.site-footer {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
}
footer.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.18s ease;
}
footer.site-footer a:hover { color: var(--text); }
footer.site-footer .links { display: flex; gap: 24px; }

@media (max-width: 820px) {
  .container { padding: 0 24px; }
  h1.hero-headline { font-size: 44px; letter-spacing: -0.025em; }
  .hero { padding: 80px 0 120px; }
  .glow-wrap { width: 140vw; height: 900px; top: -80px; }
  .glow-bright { width: 240px; height: 240px; }
  .row { grid-template-columns: 1fr; gap: 16px; }
  .about-body { font-size: 20px; }
  .contact-email { font-size: 22px; }
  section.block { padding: 100px 0; }
  .subhead { font-size: 17px; }
  h1.page-title { font-size: 32px; }
  h1.essay-title { font-size: 30px; }
  .essay { padding: 48px 24px 80px; }
  .essay-body p { font-size: 17px; }
  .essay-body p:first-of-type { font-size: 19px; }
}
