:root {
    --bg-primary: #ffffff;
    --text-primary: #060b11;
    --accent-1: #76b092;
    --accent-2: #c656bf;
    --accent-3: #fc782e;
    --accent-4: #5f74c1;
}

@font-face {
    font-family: 'Iosevka';
    src: url('./static/iosevka-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Iosevka', sans-serif;
    line-height: 1.6;
    font-size: 24px;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
    padding: 2rem;
}

@media screen and (max-width: 1200px) {
    .container {
        width: 70%;
        padding: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 18px;
        line-height: 1.8;
    }

    h1,
    h2,
    h3 {
        font-size: 1.4rem;
        /* Adjust heading sizes for mobile */
    }

    .container {
        width: 90%;
        padding: 1rem;
    }

    .social-links {
        justify-content: left;
        gap: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0.75rem;
    }
}


.highlight {
    color: var(--accent-1);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 5px;
    background-color: var(--accent-1);
    animation: underline 2.0s ease forwards;
}

@keyframes underline {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 10rem;
}

a {
    color: var(--text-primary);
    transition: color 0.2s ease;
    border: 1px solid transparent;
}

a:hover {
    color: var(--accent-1);
}

h1 {
    color: var(--accent-1);
}

h2 {
    color: var(--accent-1);
}

h3 {
    color: var(--accent-4);
}

strong {
    font-weight: bold;
}

.blog .quote {
    /* color: var(--accent-4); */
    border-left: 4px solid var(--accent);
    padding: 1rem 2rem;
    margin: 1.5rem 0;
    /* background-color: rgba(171, 90, 108, 0.1); */
    background-color: rgba(95, 116, 193, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: --var(--accent-1);
}

.nav> :first-child {
    margin-right: auto;
}

.nav> :not(:first-child) {
    margin-left: 1rem;
}

.inline-emoji {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

.banner-image {
    width: 100%;
}

.dopamine-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.dopamine-column {
    /* padding: 20px; */
    width: 45%;
    /* box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); */
}

/* Code block styling */
pre {
    background-color: #fdf6e3;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Iosevka', monospace !important;
    font-size: 0.9em;
    line-height: 1.45;
    font-weight: normal;
}

code {
    font-family: 'Iosevka', monospace !important;
    font-size: 0.9em;
    background-color: #f6f8fa;
    padding: 2px 4px;
    border-radius: 3px;
    color: #d73a49;
    font-weight: normal;
}

pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit;
    font-weight: normal;
    font-family: 'Iosevka', monospace !important;
}

/* Override Prism.js font styling */
pre[class*="language-"],
code[class*="language-"] {
    font-family: 'Iosevka', monospace !important;
}

/* Ensure all code elements use Iosevka */
.token {
    font-family: 'Iosevka', monospace !important;
}

/* Diff highlighting styles */
.token.inserted {
    background-color: rgba(118, 176, 146, 0.2) !important;
    color: #2d5a2d !important;
}

.token.deleted {
    background-color: rgba(198, 86, 191, 0.2) !important;
    color: #8a2a8a !important;
}

/* Additional diff highlighting styles for better visibility */
pre[class*="language-diff"] .token.inserted {
    background-color: rgba(118, 176, 146, 0.3) !important;
    color: #1a3d1a !important;
    font-weight: 500 !important;
}

pre[class*="language-diff"] .token.deleted {
    background-color: rgba(198, 86, 191, 0.3) !important;
    color: #5a1a5a !important;
    font-weight: 500 !important;
}

/* Custom text selection for code blocks */
pre::selection,
pre *::selection,
code::selection,
code *::selection {
    background-color: rgba(118, 176, 146, 0.3) !important;
    color: inherit !important;
}

/* Webkit browsers (Chrome, Safari) */
pre::-moz-selection,
pre *::-moz-selection,
code::-moz-selection,
code *::-moz-selection {
    background-color: rgba(118, 176, 146, 0.3) !important;
    color: inherit !important;
}

/* Blockquote styling */
blockquote {
    border-left: 4px solid var(--accent-1);
    padding: 1rem 2rem;
    margin: 1.5rem 0;
    background-color: rgba(118, 176, 146, 0.1);
    font-style: italic;
}

/* List styling improvements */
ul, ol {
    padding-left: 2rem;
    margin: 1rem 0;
    list-style-position: outside;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Checkbox styling */
input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Inline code styling */
p code, li code {
    background-color: #f6f8fa;
    padding: 2px 4px;
    border-radius: 3px;
    color: #d73a49;
    font-size: 0.9em;
}