:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-light: #7f8c8d;
    --border-color: #ecf0f1;
}

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

body {
    font-family: Georgia, serif;
    line-height: 1.6;
    color: var(--primary-color);
    max-width: 210mm;
    margin: 0 auto;
    padding: 2rem;
}

header {
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: normal;
}

h2 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

address {
    font-style: normal;
    color: var(--text-light);
}

address h3 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

address p {
    margin-bottom: 0.25rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.experience-item, .education-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.experience-item:last-child, .education-item:last-child {
    border-bottom: none;
}

.job-header, .edu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.company, .institution {
    color: var(--accent-color);
    font-weight: 600;
}

time {
    color: var(--text-light);
    font-variant: small-caps;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-category h3 {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-list li {
    background: var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.9rem;
}

dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
}

dt {
    font-weight: 600;
    color: var(--accent-color);
}

.achievements {
    list-style: none;
}

.achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.achievements li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

@media print {
    body { padding: 0; max-width: none; }
    h2 { break-after: avoid; }
    .experience-item, .education-item { break-inside: avoid; }
}

@media (max-width: 768px) {
    body { padding: 1rem; }
    h1 { font-size: 2rem; }
    .job-header, .edu-header { flex-direction: column; align-items: flex-start; }
}