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

* {
    box-sizing: border-box;
}

body {
    font-family: "JetBrains Mono", monospace;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: #222;
    background: #f5f2ec;
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #222;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.logo {
    font-weight: 700;
    font-size: 16px;
    color: #000;
}

nav a {
    margin-left: 1.25rem;
    color: #666;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
}

nav a:hover {
    color: #000;
    text-decoration: underline;
}

nav a.active {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Bio */
.bio {
    margin: 0 0 2rem 0;
    color: #333;
    line-height: 1.7;
}

.bio a {
    color: #8b2500;
    text-decoration: underline;
}

.bio a:hover {
    color: #000;
}

/* Sections */
h2 {
    font-size: 14px;
    font-weight: 700;
    margin: 2.5rem 0 1rem 0;
    color: #000;
    text-transform: lowercase;
}

h2::before {
    content: "▸ ";
}

/* Project cards */
.project {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 3px solid #8b2500;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.project:hover {
    border-left-color: #c75b39;
}

.project dt {
    margin: 0;
}

.project dt a {
    color: #8b2500;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.project dt a:hover {
    text-decoration: underline;
}

.lang {
    color: #999;
    font-size: 13px;
}

.lang::before {
    content: ":: ";
    color: #ccc;
}

.project dd {
    margin: 0.2rem 0 0 0;
    color: #777;
    font-size: 14px;
}

/* Fallback dl items */
dl { margin: 0; }

dl > dt {
    margin-top: 1rem;
}

dl > dt a {
    color: #8b2500;
    text-decoration: none;
    font-weight: 700;
}

dl > dt a:hover {
    text-decoration: underline;
}

dd {
    margin: 0.25rem 0 0 0;
    color: #777;
    font-size: 14px;
}

/* Body text */
p {
    margin: 1rem 0;
    color: #555;
}

p a {
    color: #8b2500;
    text-decoration: underline;
}

p a:hover {
    color: #000;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    color: #999;
    font-size: 13px;
    text-align: center;
}

/* Responsive */
@media (max-width: 500px) {
    body {
        padding: 1.5rem 1rem;
    }
    header {
        flex-direction: column;
        gap: 0.5rem;
    }
    nav a {
        margin-left: 0;
        margin-right: 1rem;
    }
}
