@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@latest/latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@latest/latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@latest/latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  background-color: #ffffff;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #adb5bd;
  color: #000000;
}

@keyframes rotate-circle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.rotate-svg {
  animation: rotate-circle 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animate-on-scroll {
    transition: none;
    opacity: 1;
    transform: translateY(0);
  }
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.02em;
}

.prose h1 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #f3f4f6;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.125rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1.35rem;
  line-height: 1.8;
  color: #374151;
  font-size: 0.9375rem;
}

.prose a {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

.prose a:hover {
  color: #4f46e5;
}

.prose ul,
.prose ol {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  padding-left: 1.35rem;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: #374151;
  font-size: 0.9375rem;
}

.prose hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 3rem 0;
}

.prose pre {
  background-color: #f9fafb;
  padding: 1.125rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
  line-height: 1.65;
  border: 1px solid #e5e7eb;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background-color: #f3f4f6;
  color: #1f2937;
  padding: 0.15em 0.35em;
  border-radius: 0.25rem;
  border: 1px solid #e5e7eb;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  border: none;
  font-size: inherit;
  color: inherit;
}

.prose img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.75rem auto 0.75rem auto;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.prose blockquote {
  border-left: 3px solid #6366f1;
  background-color: #fbfbfe;
  padding: 0.875rem 1.125rem;
  border-radius: 0 0.375rem 0.375rem 0;
  color: #4b5563;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}