@font-face {
    font-family: 'OCR-B';
    src: url('/assets/svg/fonts/OCR-B.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Instrument Serif';
    src: url('/assets/svg/fonts/instrumentserif-italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: block;
}



:root {
    --bg: #F5F1E8;
    --text: #1a1a1a;
    --accent: #FF0000;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.nav {
    position: absolute;
    top: 16rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    z-index: 100;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-left: calc(66.666% + 1.333rem);
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 1.5rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    font-weight: 400;
    position: relative;
}

.nav-triangle {
    padding: 0;
    line-height: 0;
    opacity: 1 !important;
    margin-left: -0.5rem;
}

.nav-triangle img {
    width: 32px;
    height: 32px;
    transform: rotate(180deg);
    display: block;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link.active {
    opacity: 1;
    font-weight: 600;
}

.logo {
    display: inline-block;
    color: var(--text);
    position: absolute;
    top: 2rem;
    left: calc(50% - 600px + 3rem);
    z-index: 100;
}

.logo img {
    transition: transform 0.5s ease;
}

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

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

.hero {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 16rem;
}

.hero h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    letter-spacing: normal;
}

.hero .subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text);
    opacity: 0.7;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.5;
}

.blog-post .logo img {
    transform: rotate(-90deg);
}

@media (max-width: 768px) {
    .nav {
        position: static;
        transform: none;
        width: 100%;
        padding: 0;
        max-width: none;
        margin: 3rem 0 2rem 0;
    }

    .nav-menu {
        margin-left: 0;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .nav-link {
        font-size: 1.25rem;
        opacity: 0.6;
    }

    .nav-link.active {
        opacity: 1;
        font-weight: 500;
    }

    .nav-triangle {
        margin-left: -0.5rem;
        opacity: 1 !important;
    }

    .nav-triangle img {
        width: 32px;
        height: 32px;
    }

    .logo {
        position: absolute;
        top: 2rem;
        left: 1.5rem;
        right: auto;
        padding: 0;
        display: block;
    }

    .logo img {
        width: 48px;
        height: 48px;
        transform: rotate(0deg);
        display: block;
    }

    .container {
        padding: 0 2rem;
    }

    .hero {
        padding-top: 8rem;
        min-height: auto;
        margin-bottom: 0;
    }
}

.experiments .hero h1 {
    font-family: 'OCR-B', monospace;
    letter-spacing: -0.05em;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.experiments h2 {
    font-family: 'OCR-B', monospace;
    letter-spacing: -0.05em;
}

.experiments-code {
    font-family: 'OCR-B', monospace;
}

.projects .hero h1 {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: clamp(2.2rem, 4.5vw, 2.7rem);
}

.thoughts .hero h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.about .hero h1 {
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Comic Neue', cursive, sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
}

