/* Custom styles for Yawning Chasm - christolagomorph (Easter) theme */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Link styling - underlines and external indicators */
.prose a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.prose a:hover {
    text-decoration-thickness: 2px;
}

/* External link indicator */
.prose a[href*="://"]:not([href*="yawningchasm.com"])::after {
    content: " ↗";
    font-size: 0.85em;
    vertical-align: super;
    line-height: 0;
    opacity: 0.7;
}

/* Selection color */
::selection {
    background-color: rgba(233, 30, 140, 0.2);
}

/* Custom scrollbar for dark mode */
@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar {
        width: 12px;
    }

    ::-webkit-scrollbar-track {
        background: #1f0f2a;
    }

    ::-webkit-scrollbar-thumb {
        background: #6b3a7a;
        border-radius: 6px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #8b5a9a;
    }
}

/* Code block improvements */
pre {
    position: relative;
}

pre code {
    font-size: 0.9em;
    line-height: 1.6;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #e91e8c;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header,
    footer,
    aside,
    nav {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}
