@import url('https://fonts.bunny.net/css?family=inter:400,500,600,700,800');

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    [x-cloak] { display: none !important; }
    body { background: theme('colors.ink'); }
    /* Slim dark scrollbars to match the admin theme */
    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-thumb { background: theme('colors.edge'); border-radius: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
}

@layer components {
    .admin-card { @apply rounded-2xl border border-edge bg-card shadow-card; }
    .admin-chip { @apply inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 text-xs font-semibold; }
}

/* Rendered Markdown (blog articles, custom pages, and the admin live preview). */
.prose-blog { color: #cbd5e1; line-height: 1.75; word-wrap: break-word; }
.prose-blog > :first-child { margin-top: 0; }
.prose-blog h1, .prose-blog h2, .prose-blog h3, .prose-blog h4 { color: #fff; font-weight: 700; line-height: 1.3; margin: 1.6em 0 0.6em; }
.prose-blog h1 { font-size: 1.7em; }
.prose-blog h2 { font-size: 1.4em; }
.prose-blog h3 { font-size: 1.2em; }
.prose-blog h4 { font-size: 1.05em; }
.prose-blog p { margin: 0 0 1.1em; }
.prose-blog a { color: #a78bfa; text-decoration: underline; text-underline-offset: 2px; }
.prose-blog a:hover { color: #c4b5fd; }
.prose-blog strong { color: #f1f5f9; font-weight: 700; }
.prose-blog ul, .prose-blog ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.prose-blog ul { list-style: disc; }
.prose-blog ol { list-style: decimal; }
.prose-blog li { margin: 0.35em 0; }
.prose-blog li::marker { color: #64748b; }
.prose-blog blockquote { border-left: 3px solid #7c3aed; margin: 1.2em 0; padding: 0.2em 0 0.2em 1em; color: #94a3b8; font-style: italic; }
.prose-blog code { background: rgba(148,163,184,0.14); border-radius: 5px; padding: 0.15em 0.4em; font-size: 0.88em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #e2e8f0; }
.prose-blog pre { background: #0b1220; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 1em 1.2em; overflow-x: auto; margin: 0 0 1.2em; }
.prose-blog pre code { background: none; padding: 0; font-size: 0.85em; }
.prose-blog img { border-radius: 12px; margin: 1.2em 0; max-width: 100%; height: auto; }
.prose-blog hr { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 2em 0; }
.prose-blog h1:first-child, .prose-blog h2:first-child { margin-top: 0; }
