:root {
    --ink:        #1b1b1f;
    --paper:      #faf6ef;
    --panel:      #ffffff;
    --accent:     #1f6f5c;
    --accent-soft:#e4efe9;
    --line:       #e7e1d4;
    --gap:        1.25rem;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
     font-family: 'Georgia', 'Times New Roman', serif;
     background: var(--paper);
     color: var(--ink);
     line-height: 1.6;
}
.mono{
    font-family: 'Courier New', monospace;
}
a{ color: var(--accent);}
img{
    max-width: 100%;
    display: block;
    border-radius: 10px;
}
.wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
section {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--line);
}
h1, h2, h3 { font-weight: 700; }
h2 {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
h2 .num {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 50%;
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
p { margin-bottom: 1rem;}
nav {
    position: sticky;
    top: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    z-index: 10;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    max-width: 780px;
    margin: 0 auto;
}
.nav-name {
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.25rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--ink);
    font-size: 0.95rem;
}
.nav-links a:hover { color: var(--accent);}
.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ink);
}
@media (max-width: 640px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper);
        flex-direction: column;
        padding: 1rem 1.25rem;
        display: none;
        border-bottom: 1px solid var(--line);
    }
    .nav-links.open{display: flex; }
    .menu-btn{display: block; }
}
.hero {
    padding-top: 3rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}
.hero img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border: 3px solid var(--accent);
}
.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}
.hero .role {
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.tag {
    background: var(--accent-soft);
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--gap);
}
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.card img { border-radius: 0; height: 140px; width: 100%; object-fit: cover; }
.card-body { padding: 1rem; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.card-body p { font-size: 0.92rem; margin-bottom: 0.6rem; }
.status {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}
.status.live    { background: #e4efe9; color: #1f6f5c; }
.status.testing { background: #fdf1de; color: #a15c00; }
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn.ghost {
    background: none;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
footer {
    text-align: center;
    padding: 2rem 1.25rem;
    font-size: 0.85rem;
    color: #6b6b6b;
}
#topBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: none;
}
body.dark {
    --ink: #f1efe6;
    --paper: #16181a;
    --panel: #1f2225;
    --line: #33363a;
    --accent-soft: #1e2c27;
}
