@font-face {
    font-family: 'JetBrains Mono';
    src: url('/static/fonts/JetBrainsMono-Regular.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/static/fonts/JetBrainsMono-Bold.ttf') format('truetype');
    font-weight: bold;
}

:root {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --accent-color: #64ffda;
    --nav-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

nav {
    height: var(--nav-height);
    border-bottom: 1px solid #1a1a1a;
    background-color: var(--bg-color);
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-item {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: var(--accent-color);
}

main {
    min-height: calc(100vh - var(--nav-height) - 100px);
    padding: 4rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

footer {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #1a1a1a;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.icon-link img {
    width: 36px;
    height: 36px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.icon-link:hover img {
    opacity: 1;
}

.post-preview {
    margin-bottom: 3rem;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2rem;
}

.post-preview h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-preview h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-preview h2 a:hover {
    color: var(--accent-color);
}

.post-preview time {
    color: #888;
    font-size: 0.9rem;
}

.project-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.project-card:hover {
    border-color: var(--accent-color);
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

.post-header {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.post-content {
    max-width: 700px;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 4px;
}

.post-content p img {
    margin: 0;  /* override margin if image is the only thing in a p tag */
}

.empty-state {
    font-style: italic;
    margin-top: 2rem;
}

.cursor-wrap {
    position: relative;
    display: inline-block;
}

.cursor-wrap::after {
    content: '';
    position: absolute;
    bottom: 0.4em;
    left: 0;
    width: 100%;
    height: 0.9em;
    background-color: var(--text-color);
    animation: blink 1s step-end infinite;
    /* force animation on mobile */
    -webkit-animation: blink 1s step-end infinite;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
}

/* add webkit version of the keyframes for safari */
@-webkit-keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}
