@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Mono:wght@300;400&display=swap');

:root {
    --bg: #111110;
    --surface: #191918;
    --text: #c9c5bc;
    --strong: #e8e4dc;
    --muted: #5a5750;
    --faint: #1e1d1b;
    --accent: #00add8;
    --dot-on: #00add8;
    --dot-off: #232220;
    --dot-soon: #2a2518;
    --ul-color: #3a3630;
    --tag-bg: #1a1917;
    --tag-border: #2e2b26;
}

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

html {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 44px 100px;
    position: relative;
}

/* ── Accent rule ── */
body::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 48px;
}

/* ── Print button ── */
.print-btn {
    position: fixed;
    top: 22px;
    left: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #252422;
    background: var(--surface);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.print-btn:hover {
    border-color: var(--muted);
    color: var(--strong);
}

.print-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* ── Header ── */
header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    gap: 24px;
    flex-wrap: wrap;
}

h1 {
    font-size: 1.85rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--strong);
    line-height: 1;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.15s;
    border-bottom: 1px solid var(--ul-color);
    padding-bottom: 1px;
}

.header-link:hover {
    color: var(--strong);
    border-bottom-color: var(--muted);
}

.header-link svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ── Divider ── */
.divider {
    width: 100%;
    height: 1px;
    background: var(--faint);
    margin-bottom: 48px;
}

/* ── Two-column layout ── */
.body-grid {
    display: grid;
    grid-template-columns: 172px 1fr;
    gap: 0 56px;
}

/* ── Section labels ── */
.section-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}

/* ── Left col ── */
.left-col .section {
    margin-bottom: 42px;
}

/* Skills — now with category groups */
.skill-group-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    margin-top: 14px;
    opacity: 0.6;
}

.skill-group-label:first-child {
    margin-top: 0;
}

.skill-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
}

.skill-name {
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 400;
}

.skill-dots {
    display: flex;
    gap: 3px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dot-off);
}

.dot.on {
    background: var(--dot-on);
}

/* "learning" dot — dimmer accent, signals intent not mastery */
.dot.soon {
    background: var(--dot-soon);
    border: 1px solid #4a3e1a;
}

/* tag pill — used for homelab/infra interests */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

.tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    color: var(--muted);
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    border-radius: 3px;
    padding: 1px 6px;
    letter-spacing: 0.02em;
    transition: color 0.15s, border-color 0.15s;
}

.tag:hover {
    color: var(--text);
    border-color: var(--ul-color);
}

.tag.learning {
    color: #7a6a3a;
    border-color: #3a3018;
    border-style: dashed;
}

/* small inline note */
.aside-note {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 6px;
    font-weight: 300;
}

/* Education */
.edu-school {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--strong);
}

.edu-year {
    font-size: 0.82rem;
    color: var(--muted);
    margin-left: 5px;
    font-weight: 300;
}

.edu-detail {
    font-size: 0.84rem;
    color: var(--muted);
    margin-top: 2px;
    line-height: 1.5;
}

/* ── Right col ── */
.job {
    margin-bottom: 26px;
}

.job-header {
    margin-bottom: 4px;
    line-height: 1.4;
}

.job-title {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--strong);
}

.job-sep {
    color: var(--faint);
    margin: 0 4px;
}

.job-company {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--accent);
}

.job-period {
    font-size: 0.8rem;
    color: var(--muted);
    margin-left: 8px;
    font-weight: 300;
}

/* stack tags on jobs — monospaced, very quiet */
.job-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 5px;
}

.job-stack .tag {
    font-size: 0.68rem;
    padding: 1px 5px;
}

.job-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 300;
}

.job-desc a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--ul-color);
    transition: color 0.15s, border-color 0.15s;
}

.job-desc a:hover {
    color: var(--strong);
    border-color: var(--muted);
}

/* ── Footer ── */
footer {
    margin-top: 64px;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 10px;
}

footer::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 1px;
    background: var(--muted);
}

/* uptime dot — a little server nod in the footer */
.uptime-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4a7c4a;
    margin-left: 6px;
    box-shadow: 0 0 4px #2a5a2a;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* ── Print ── */
@media print {
    :root {
        --bg: #fff;
        --surface: #fff;
        --text: #333;
        --strong: #111;
        --muted: #666;
        --faint: #e5e5e5;
        --accent: #9a7a40;
        --dot-on: #9a7a40;
        --dot-off: #ddd;
        --dot-soon: #f0e8d0;
        --ul-color: #ccc;
        --tag-bg: #f5f5f5;
        --tag-border: #ddd;
    }

    body::before {
        background: var(--accent);
    }

    .print-btn {
        display: none;
    }

    body {
        padding: 24px 32px;
    }

    .uptime-dot {
        display: none;
    }
}

@media (max-width: 600px) {
    body {
        padding: 40px 20px 60px;
    }

    .body-grid {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }
}