/* Base typography */
html {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

/* Subtle dark scrollbar for WebKit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

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

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

/* Gradient text utility */
.text-gradient {
    background-image: linear-gradient(to right, #facc15, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Article typography helpers */
.prose-content p {
    color: #d1d5db;
    font-size: 1.125rem;
    line-height: 1.75rem;
    margin: 1.5rem 0;
}

.prose-content h2 {
    color: #ffffff;
    font-size: clamp(2.25rem, 3vw, 2.75rem);
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.prose-content h3 {
    color: #f3f4f6;
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.prose-content ul,
.prose-content ol {
    color: #d1d5db;
    font-size: 1.125rem;
    line-height: 1.75rem;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

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

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

.prose-content li {
    padding-left: 0.5rem;
}

.prose-content blockquote {
    margin: 2rem 0;
    padding: 0.75rem 1rem 0.75rem 1.5rem;
    border-left: 4px solid #facc15;
    font-style: italic;
    font-size: 1.25rem;
    color: #9ca3af;
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 0 0.75rem 0.75rem 0;
}

.prose-content a {
    color: #facc15;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25rem;
    transition: color 150ms ease;
}

.prose-content a:hover {
    color: #fbbf24;
}

.prose-content strong {
    color: #ffffff;
    font-weight: 600;
}

.prose-content code {
    background-color: #334155;
    color: #facc15;
    border-radius: 0.375rem;
    padding: 0.15rem 0.4rem;
    font-size: 1rem;
}

body {
    opacity: 0;
    transition: opacity 0.4s ease;
}

html[data-render="ready"] body {
    opacity: 1;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
