@page { size: A4; margin: 15mm; }
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
    width: calc(100% - 48px);
    max-width: 1040px;
    margin: 32px auto;
    color: #2b2b2b;
    background: #fff;
    font-family: Arial, 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.header { border-bottom: 2px solid #2c3e50; padding-bottom: 16px; margin-bottom: 20px; }
h1 { margin: 0 0 4px; color: #2c3e50; font-size: 32px; line-height: 1.2; text-transform: uppercase; }
.contact-details { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; color: #444; font-size: 15px; }
.contact-details a { color: inherit; text-underline-offset: 3px; }
h2 {
    margin: 24px 0 12px;
    border-bottom: 1px solid #d3d3d3;
    padding-bottom: 4px;
    color: #2c3e50;
    font-size: 19px;
    line-height: 1.3;
    text-transform: uppercase;
}
.summary { margin: 0 0 16px; }
table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
td { padding: 6px 12px 6px 0; vertical-align: top; }
td:last-child { padding-right: 0; }
.col-year { width: 20%; font-weight: bold; }
.col-school { width: 27%; font-weight: bold; }
.col-degree { width: 24%; font-style: italic; }
.col-major { width: 29%; }
.experience-item { margin-bottom: 16px; }
.experience-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 16px;
    margin-bottom: 6px;
}
.experience-title { font-weight: bold; }
.experience-role { color: #555; font-style: italic; }
ul { margin: 0; padding-left: 20px; }
li { margin-bottom: 5px; }
.skills-container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.skills-col > strong { display: block; margin-bottom: 6px; }

@media screen and (max-width: 640px) {
    body { width: calc(100% - 32px); margin: 24px auto; }
    h1 { font-size: 28px; }
    table, tbody, tr, td { display: block; width: 100%; }
    .col-year, .col-school, .col-degree, .col-major { width: 100%; }
    tr { padding: 8px 0 12px; }
    tr + tr { border-top: 1px solid #e5e5e5; }
    td, td:last-child { padding: 2px 0; }
    .experience-header { display: block; }
    .experience-title, .experience-role { display: block; }
    .skills-container { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media print {
    body { width: 100%; max-width: none; margin: 0; font-size: 11pt; line-height: 1.3; }
    h1 { font-size: 22pt; }
    h2 { margin: 14px 0 8px; font-size: 13pt; break-after: avoid; }
    .contact-details { font-size: 10pt; }
    .header { padding-bottom: 10px; margin-bottom: 12px; }
    .experience-item, tr, .skills-col { break-inside: avoid; }
    .experience-item { margin-bottom: 10px; }
}
