/* Core setup mimicking the 'charter' font and LaTeX geometry */
body {
    font-family: 'Bitstream Charter', 'serif', 'Georgia';
    line-height: 1.2;
    color: #000;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
    font-size: 11pt; /* Matching 11pt article class */
}

/* Page container mimicking A4 with 1.2cm margins */
.resume-container {
    background: #fff;
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 1cm 1.2cm;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* Header Styles */
.center { text-align: center; }
h1 { 
    font-size: 24pt; 
    margin: 0 0 5pt 0; 
    text-transform: uppercase; 
}
.subtitle { font-size: 11pt; margin-bottom: 2pt; }
.contact { font-size: 10pt; margin-top: 5pt; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Section Heading (mimicking titleformat) */
h2 {
    font-size: 12pt;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 1px solid #000;
    margin: 12pt 0 5pt 0;
    padding-bottom: 2pt;
}

.subsection-title {
    font-size: 11pt;
    font-weight: bold;
    margin: 8pt 0 4pt 0;
}

/* Row-based layout for Subheadings and Projects */
.row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 98%;
}

.subheading { margin-bottom: 8pt; }
.project-heading { margin-top: 5pt; }

/* List Styles */
ul {
    padding-left: 20px;
    margin: 4pt 0;
}

.item-list {
    list-style-type: disc;
    margin-bottom: 8pt;
}

.item-list li {
    font-size: 10pt;
    margin-bottom: 2pt;
}

.skills-list {
    list-style-type: none;
    padding-left: 0;
}

.skills-list li {
    font-size: 10pt;
    margin-bottom: 3pt;
}

/* Small text utility */
small, .small-text { font-size: 10pt; }

/* Print optimization */
@media print {
    body { background: none; padding: 0; }
    .resume-container { box-shadow: none; margin: 0; }
}