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

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #f9f9f9;
    --gray-100: #f0f0f0;
    --gray-200: #e0e0e0;
    --gray-300: #c0c0c0;
    --gray-400: #909090;
    --gray-500: #707070;
    --gray-600: #505050;
    --gray-700: #303030;
    --gray-800: #202020;
    --gray-900: #101010;
    
    --primary: #4d7cff;         
    --primary-light: #6b8cff;   
    --primary-dark: #3a6bff;    
    --primary-muted: rgba(77, 124, 255, 0.2); 
    
    --secondary: var(--gray-400);
    --accent: var(--primary-light);
    --text: var(--white);
    --text-light: var(--gray-400);
    --bg: var(--gray-900);
    --bg-transparent: rgba(16, 16, 16, 0.85);
    --border: var(--gray-800);
    --shadow: rgba(0, 0, 0, 0.4);
    --code-bg: var(--gray-800);
}

html {
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    color: var(--text);
    font-weight: 300;
}

body {
    background: var(--bg-transparent);
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    line-height: 1.6;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 2px 4px var(--shadow);
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.content a:not(.nav-link):not(.site-title):not(.tag-link) {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Header */
.header-container {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.site-title-wrapper {
    border: 1px solid var(--white);
    padding: 0.5rem 1rem;
    background: var(--gray-800);
}

.site-title-wrapper:hover {
    border-color: var(--primary);
}

.site-title-wrapper a {
    color: var(--white);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.site-title-wrapper a::before {
    content: "$";
    color: var(--primary);
    font-weight: bold;
}

/* Navigation */
.site-nav {
    display: flex;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-light);
    font-weight: 300;
    padding: 0.25rem 0;
}

.nav-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-weight: 400;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.25rem;
    font-weight: 300;
    padding-bottom: 0.5rem;
    text-align: center;
}

h2 {
    font-size: 1.75rem;
    font-weight: 300;
}

h3 {
    font-size: 1.25rem;
    font-weight: 400;
}

/* Images */
.image-container {
    margin: 2rem 0;
}

.image-figure {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-element {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.image-caption {
    margin-top: 0.75rem;
    font-size: 0.9em;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
    max-width: 100%;
    line-height: 1.4;
}

/* Divider */
hr {
    border: none;
    text-align: center;
    height: 1.5rem;
    margin: 2rem 0;
    overflow: visible;
}

hr::after {
    content: "•••";
    color: var(--text-light);
    display: inline-block;
    position: relative;
    top: -0.5rem;
    padding: 0 1rem;
    background: var(--bg-transparent);
    letter-spacing: 0.5em;
}

/* Code and pre blocks */
code {
    background: var(--code-bg);
    color: var(--primary-light);
    padding: 0.1rem 0.3rem;
    font-size: 1rem;
    border: 1px solid var(--border);
}

pre {
    background: var(--code-bg);
    padding: 1rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    margin: 1.5rem 0;
}

pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text);
}

/* Lists */
ul, ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

li {
    margin: 0.5rem 0;
}

li::marker {
    color: var(--primary);
}

/* Blockquotes */
blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-style: italic;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--code-bg);
    color: var(--text);
    font-weight: 400;
    border-bottom: 2px solid var(--primary);
}

tr:hover {
    background: var(--primary-muted);
}

/* Buttons */
button, .button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-weight: 400;
    cursor: pointer;
}

button:hover, .button:hover {
    background: var(--primary-dark);
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9em;
}

@media (max-width: 768px) {
    body {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Selection color */
::selection {
    background: var(--primary-muted);
    color: var(--text);
}

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

::-webkit-scrollbar-track {
    background: var(--code-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Custom Header Styles */
.custom-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.avatar-container {
    flex-shrink: 0;
}

.avatar {
    width: 180px;
    height: 180px;
    object-fit: cover;
}

.welcome-text {
    flex: 1;
}

.welcome-title {
    color: var(--text);
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0 0 0.5rem 0;
    border-bottom: none;
    padding-bottom: 0;
}

.welcome-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
		text-align: center;
}

@media (max-width: 768px) {
    .custom-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
}
