/* Inter Variable Font */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/InterVariable.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/InterVariable-Italic.woff2') format('woff2');
}

/* NASA Worm-inspired horizontal accent line */
.nasa-line {
    width: 40px;
    height: 3px;
    background: #FC3D21;
    border-radius: 2px;
}

/* Subtle star field background for dark mode */
.dark .stars-bg {
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.1) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.12) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.08) 0%, transparent 100%), 
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.1) 0%, transparent 100%),
        radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.07) 0%, transparent 100%),
        radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,0.09) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.11) 0%, transparent 100%);
}

/* Post content heading styles — !important needed to override Tailwind CDN injection */
.post-content h2 {
    position: relative !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    /* text-transform: uppercase !important; */
    color: #111827 !important;
    margin-top: 2.5em !important;
    margin-bottom: 0.75em !important;
    padding-top: 1.5em !important;
}

@media (min-width: 640px) {
    .post-content h2 {
        font-size: 1.375rem !important;
    }
}

.dark .post-content h2 {
    color: #f9fafb !important;
}

.post-content h2::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 28px !important;
    height: 3px !important;
    background: #FC3D21 !important;
    border-radius: 2px !important;
}

.post-content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.post-content p:last-child {
    margin-bottom: 0;
}

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

/* Selection color */
::selection {
    background: rgba(252, 61, 33, 0.2);
}

/* Blog post link hover effect */
.post-link {
    position: relative;
}

.post-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FC3D21;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.post-link:hover::after {
    width: 100%;
}
