/* meshnote — minimal reset layered on top of Tailwind CDN. */

html, body {
    font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.animate-fade-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@starting-style {
    .animate-fade-up {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Project card hover — lift + glow */
.brain-card {
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.18s ease,
                border-color 0.18s ease,
                background-color 0.15s ease;
}
.brain-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Prose block for rendered markdown pages — intentionally small so Tailwind utility
   classes do the heavy lifting for layout. */
.prose-meshnote {
    color: #d4d4d8;
    line-height: 1.65;
    font-size: 15px;
}
.prose-meshnote h1 { font-size: 1.6rem; font-weight: 600; color: #fafafa; margin: 1.6rem 0 0.8rem; }
.prose-meshnote h2 { font-size: 1.3rem; font-weight: 600; color: #f4f4f5; margin: 1.4rem 0 0.6rem; border-bottom: 1px solid #27272a; padding-bottom: 0.3rem; }
.prose-meshnote h3 { font-size: 1.1rem; font-weight: 600; color: #e4e4e7; margin: 1.1rem 0 0.4rem; }
.prose-meshnote h4 { font-size: 1rem; font-weight: 600; color: #d4d4d8; margin: 1rem 0 0.3rem; }
.prose-meshnote p { margin: 0.7rem 0; }
.prose-meshnote ul, .prose-meshnote ol { margin: 0.6rem 0 0.6rem 1.4rem; }
.prose-meshnote ul { list-style: disc; }
.prose-meshnote ol { list-style: decimal; }
.prose-meshnote li { margin: 0.25rem 0; }
.prose-meshnote a:not(.wikilink):not(.wikilink-missing) { color: #7dd3fc; text-decoration: underline; }
.prose-meshnote a:not(.wikilink):not(.wikilink-missing):hover { color: #bae6fd; }
.prose-meshnote code { background: #27272a; color: #e4e4e7; padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.85em; }
.prose-meshnote pre { background: #0a0a0a; border: 1px solid #27272a; border-radius: 6px; padding: 0.9rem 1.1rem; overflow-x: auto; font-size: 0.85rem; margin: 1rem 0; }
.prose-meshnote pre code { background: transparent; padding: 0; }
.prose-meshnote blockquote { border-left: 3px solid #3f3f46; padding-left: 1rem; color: #a1a1aa; margin: 0.9rem 0; }
.prose-meshnote hr { border: none; border-top: 1px solid #27272a; margin: 1.5rem 0; }

.prose-meshnote .wikilink {
    color: #6ee7b7;
    text-decoration: none;
    border-bottom: 1px dotted #10b981;
}
.prose-meshnote .wikilink:hover {
    color: #a7f3d0;
    border-bottom-color: #6ee7b7;
}
.prose-meshnote .wikilink-missing {
    color: #fca5a5;
    border-bottom: 1px dashed #f87171;
}

#blazor-error-ui { display: none; }
#blazor-error-ui.visible { display: block; }

.blazor-error-boundary {
    background: #7f1d1d;
    color: #fee2e2;
    padding: 1rem;
}
.blazor-error-boundary::after {
    content: "An error has occurred.";
}
