@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Newsreader:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* ─── Base ─── */
body {
  font-family: 'Inter', system-ui, sans-serif;
}

/* ─── Button shimmer ─── */
.btn-outline {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(128,128,128,0.15) 50%, transparent 100%);
  transition: none;
}
.btn-outline:hover::before {
  animation: shimmer 0.5s ease forwards;
}
@keyframes shimmer {
  from { left: -100%; }
  to { left: 100%; }
}

/* ─── Blog card ─── */
.article-card {
  transition: transform 0.2s ease;
}
.article-card:hover {
  transform: translateY(-2px);
}

/* ─── Article prose (Newsreader serif body) ─── */
.prose-body {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
}
.prose-body p {
  margin-bottom: 1.5em;
  line-height: 1.85;
}
.prose-body h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
}
.prose-body blockquote {
  border-left: 2px solid;
  padding-left: 1.25em;
  margin: 2em 0;
  font-style: italic;
}
.prose-body hr {
  border: none;
  text-align: center;
  margin: 2.5em 0;
}
.prose-body hr::after {
  content: '* * *';
  letter-spacing: 0.5em;
  font-size: 0.75rem;
}

/* ─── Reading progress bar ─── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: #9ca3af;
  z-index: 100;
  transition: width 0.1s linear;
}
.dark .progress-bar {
  background: #4b5563;
}

/* ─── Graph background (splash only) ─── */
#graph-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
