/* 90s Minimal CSS with Graphik font */
@font-face {
    font-family: 'Graphik';
    src: url('fonts/Graphik-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Graphik';
    src: url('fonts/Graphik-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Graphik';
    src: url('fonts/Graphik-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Graphik';
    src: url('fonts/Graphik-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Graphik', 'Inter', 'Segoe UI', Arial, sans-serif;
    background: #fff;
    color: #000;
    margin: 0;
    padding: 0;
}

header, nav, main, footer {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

header {
    border-bottom: 1px solid #000;
    padding: 1em 0 0.5em 0;
    text-align: left;
    margin: 0 2em;
}

.main-nav {
    margin-bottom: 1em;
    margin-left: 2em;
    margin-right: 2em;
}

.nav-brand h1 {
    font-size: 2em;
    font-weight: 600;
    margin: 0 0 0.2em 0;
    display: inline;
}

.tagline {
    font-size: 1em;
    font-weight: 300;
    margin-left: 1em;
    display: inline;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 1em 0 0 0;
    display: block;
}

.nav-links li {
    display: inline;
    margin-right: 1.5em;
}

.nav-links a {
    color: #00f;
    text-decoration: underline;
    font-weight: 400;
}

.nav-links a:hover {
    color: #f00;
}

.section {
    padding: 1.5em 0 1.5em 0;
    border-bottom: 1px solid #ccc;
    margin: 0;
}

.section h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin: 0 0 1em 0;
}

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

footer {
    border-top: 1px solid #000;
    text-align: left;
    font-size: 0.9em;
    padding: 1em 0;
    margin-top: 2em;
}

img {
    max-width: 100%;
    height: auto;
    border: none;
    display: block;
    margin: 1em 0;
}

/* Remove all modern extras */
.mobile-menu-btn, .work-filters {
    display: none;
}

.work-grid {
    display: block;
}

.featured-grid, .writing-grid, .code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin: 2em 0;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 1em;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 1em 0;
}

.social-links li {
    margin-bottom: 0.5em;
}

.social-links a {
    color: #00f;
    text-decoration: underline;
}

.social-links a:hover {
    color: #f00;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #333;
}

.project {
    margin-bottom: 2.5em;
    padding-bottom: 2em;
    border-bottom: 1px solid #eee;
}
.project img {
    width: 640px;
    height: 400px;
    object-fit: cover;
    display: block;
    margin: 1em 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.project h3 {
    margin-bottom: 0.2em;
}
.project > div {
    margin-bottom: 0.5em;
}

/* Teaching Section */
.teaching-content {
    max-width: 700px;
    margin: 0 auto;
}

.course {
    margin-bottom: 2em;
}

.course h3 {
    margin-bottom: 0.5em;
}

.course h3 a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.course h3 a:hover {
    opacity: 0.7;
}

.course p {
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    body {
        font-size: 1em;
        padding: 0;
    }
    .container, .teaching-content, .contact-content {
        padding: 0 1em;
        width: 100%;
    }
    .project img {
        width: 100%;
        max-width: 100vw;
        height: auto;
        min-width: 0;
        min-height: 0;
    }
    .nav-links {
        display: block;
        margin: 1em 0 0 0;
        padding: 0;
        text-align: left;
    }
    .nav-links li {
        display: block;
        margin: 0 0 0.5em 0;
    }
    header {
        padding: 1em 0 0.5em 0;
    }
} 