/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0f0f0f;
    color: #e0e0e0;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container - centered with narrow margins */
.container {
    max-width: 650px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Header */
header {
    margin-bottom: 12px;
}

/* Back link */
.back-link {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #888888;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 24px;
}

.back-link:hover {
    background-color: transparent;
    color: #d96930;
}

h1 {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 26px;
    font-weight: normal;
    margin-bottom: 16px;
    color: #e0e0e0;
}

.tagline {
    color: #e0e0e0;
    margin-bottom: 0;
}

.coffee-animation {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 12px;
    line-height: 1.2;
    color: #888888;
    white-space: pre;
    margin-top: 16px;
}

/* Main content */
main {
    margin-top: 0;
}

/* Bio section */
.bio {
    margin-bottom: 40px;
}

/* Project detail page */
.project-detail h1 {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 8px;
    color: #e0e0e0;
}

.project-date {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    color: #888888;
    font-size: 13px;
    margin-bottom: 24px;
}

.project-content {
    margin-top: 24px;
}

.project-content p {
    margin-bottom: 16px;
}

.project-content h2 {
    margin-top: 32px;
    margin-bottom: 12px;
}

.project-banner {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 24px;
    margin-bottom: 8px;
    display: block;
}

.small-video {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.pdf-viewer {
    width: 100%;
    height: 600px;
    border: 1px solid #333;
    margin-top: 16px;
    margin-bottom: 16px;
}

.image-row {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 8px;
}

.image-row .project-banner {
    margin-top: 0;
    margin-bottom: 0;
    width: calc(50% - 8px);
}

.video-caption {
    text-align: center;
    font-style: italic;
    color: #888888;
    font-size: 14px;
    margin-bottom: 24px;
}

.refresh-button {
    display: block;
    margin: 0 auto 24px auto;
    background: none;
    border: none;
    color: #888888;
    font-size: 14px;
    font-style: italic;
    font-family: 'EB Garamond', Georgia, serif;
    cursor: pointer;
    transition: color 0.15s ease;
}

.refresh-button:hover {
    color: #d96930;
}

.refresh-button span {
    font-style: normal;
    display: inline-block;
    margin-right: 4px;
}



.bio p {
    margin-bottom: 16px;
}

.interests {
    color: #e0e0e0;
}

.interests em {
    font-style: italic;
}

/* Links */
a {
    color: #d96930;
    text-decoration: none;
    padding: 1px 0;
    margin: -1px 0;
    display: inline-block;
    transition: all 0.15s ease;
}

a:hover {
    background-color: #d96930;
    color: #ffffff;
}

sup {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 0.8em;
    vertical-align: super;
}

/* Notes and Projects sections */
.notes,
.projects {
    margin-bottom: 40px;
}

h2 {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: normal;
    color: #e0e0e0;
    margin-bottom: 8px;
}

ul {
    list-style: none;
}

li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    gap: 20px;
}

li a {
    flex: 0 0 auto;
}

.date {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    color: #888888;
    white-space: nowrap;
    font-size: 13px;
}

/* Separator */
.separator {
    border: none;
    border-top: 1px solid #888888;
    margin: 48px 0 16px 0;
    width: 200px;
}

/* Footer image */
.footer-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 1;
    overflow: hidden;
    margin-bottom: 4px;
}

.footer-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Footer */
footer {
    margin-top: 16px;
}

.links {
    margin-bottom: 16px;
}

.links li {
    display: inline;
    margin-right: 8px;
}

.links li:not(:last-child)::after {
    content: ",";
}

.updated {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    color: #888888;
    font-size: 13px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    li {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin-bottom: 12px;
    }

    .date {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .container {
        padding: 30px 16px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 13px;
    }
}