@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --primary: #020617;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.05);
    --border-base: #e2e8f0;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.011em;
}

.responsive-padding {
    padding: 1rem;
}

@media (min-width: 1024px) {
    .responsive-padding {
        padding: 3rem;
    }
}

.font-mono-tech {
    font-family: 'JetBrains Mono', monospace;
}

/* Professional Card Styling */
.journal-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-base);
    background: white;
}

.journal-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    transform: translateY(-2px);
}

/* Refined Typography */
h1,
h2,
h3,
h4 {
    font-family: inherit;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.text-technical {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    font-family: 'JetBrains Mono', monospace;
}

/* Subtle Background Patterns */
.bg-grid-subtle {
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Buttons */
.btn-journal {
    font-family: inherit;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.65rem;
    border-radius: 0;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-journal:hover {
    background: var(--primary);
    color: white;
}

/* Shadow Tech - Neobrutalism Style */
.shadow-tech {
    box-shadow: 6px 6px 0px 0px rgba(15, 23, 42, 1);
}

.shadow-tech-accent {
    box-shadow: 6px 6px 0px 0px rgba(37, 99, 235, 1);
}

/* Prose refinement */
.prose-normal {
    font-family: inherit;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #334155;
}

.prose-normal h1,
.prose-normal h2,
.prose-normal h3 {
    color: #0f172a;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.prose-normal img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    border: 2px solid var(--primary);
}

.prose-normal pre,
.prose-normal code {
    white-space: pre-wrap;
    word-break: break-all;
    max-width: 100%;
    overflow-x: auto;
}

/* Mobile Polish */
@media (max-width: 640px) {
    .prose-normal {
        font-size: 1rem;
        line-height: 1.6;
    }

    h1 {
        font-size: 2.25rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    .shadow-tech {
        box-shadow: 4px 4px 0px 0px rgba(15, 23, 42, 1) !important;
    }

    .shadow-tech-accent {
        box-shadow: 4px 4px 0px 0px rgba(37, 99, 235, 1) !important;
    }
}

/* Smooth Image Loading */
img {
    transition: opacity 0.5s ease-in-out;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Interactive Elements */
.tap-highlight-none {
    -webkit-tap-highlight-color: transparent;
}

.btn-journal:active {
    transform: scale(0.98);
}

/* Animation for Scroller */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}