:root {
  --font-sans: 'Work Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
}

/* Dotted page grid (24px) used as the default body background. */
.bg-dot-grid {
  background-image:
    linear-gradient(to right, #e5e5e5 1px, transparent 1px),
    linear-gradient(to bottom, #e5e5e5 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Warm stone-100 background with subtle red + stone radial highlights, used on long-form pages. */
.bg-pattern-warm {
  background-color: #f5f5f4;
  background-image:
    radial-gradient(at 0% 0%, rgba(239, 68, 68, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(120, 113, 108, 0.05) 0px, transparent 50%);
}

.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 229, 229, 0.6);
}

.glass-hover:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  border-color: rgba(239, 68, 68, 0.2);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 229, 229, 0.8);
}

@keyframes fade-in-up {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.animate-word {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(10px);
  animation: fade-in-up 0.8s cubic-bezier(0.2, 0.65, 0.3, 0.9) forwards;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up,
.animate-fade-in {
  animation: fade-up 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

.animate-marquee {
  animation: scroll 40s linear infinite;
}

.group:hover .animate-marquee {
  animation-play-state: paused;
}

.article-content p {
  margin-bottom: 1.5rem;
  line-height: 1.75;
  color: #57534e;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1c1917;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #1c1917;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.article-content ul {
  margin-bottom: 1.5rem;
  list-style: none;
  padding-left: 0;
}

.article-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #57534e;
}

.article-content li::before {
  content: "•";
  color: #ef4444;
  position: absolute;
  left: 0;
  font-weight: bold;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a29e;
}
