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

body {
    background: #fff;
    color: #111;
    font-family: 'Georgia', serif;
    font-size: 16px;
    line-height: 1.75;
}

main {
    max-width: 680px;
    margin: 0 auto;
    padding: 80px 24px 60px;
}

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

header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.9rem;
}

nav a:hover { color: #555; }

/* Sections */
section {
    margin-bottom: 56px;
}

h2 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

/* Experience */
article {
    margin-bottom: 36px;
}

article:last-child { margin-bottom: 0; }

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.item-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.item-date {
    color: #999;
    font-size: 0.82rem;
    white-space: nowrap;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

article ul {
    padding-left: 18px;
}

article ul li {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 4px;
}

.summary {
    font-size: 0.95rem;
    color: #333;
}

.stack {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #999;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-style: italic;
}

/* Skills */
dl { display: flex; flex-direction: column; gap: 0; }

.skill-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.skill-row:last-child { border-bottom: none; }

dt {
    color: #999;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.82rem;
    padding-top: 2px;
}

dd { color: #222; }

/* Certs & Education */
.plain-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.plain-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.plain-list li:last-child { border-bottom: none; }

/* Footer */
footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
    color: #999;
    font-size: 0.82rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

@media (max-width: 500px) {
    .skill-row { grid-template-columns: 1fr; gap: 2px; }
    .item-header { flex-direction: column; gap: 2px; }
}
