:root {
    --primary: #1f2933;
    --secondary: #4b5563;
    --light: #f9fafb;
    --accent: #2563eb;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    color: var(--primary);
    line-height: 1.65;
    font-size: 15px;
}

.page {
    width: 210mm;
    min-height: 297mm;
    margin: 24px auto;
    padding: 45px 55px;
    background: #ffffff;
    border: 1px solid var(--border);
    page-break-after: always;
}

.page:last-child {
    page-break-after: auto;
}

/* Headings */
h1 {
    font-size: 34px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.4px;
}

h2 {
    font-size: 16px;
    margin-top: 42px;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

/* Text */
p {
    margin: 0 0 12px 0;
    color: var(--secondary);
}

small {
    font-size: 13px;
    color: var(--secondary);
}

ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

li {
    margin-bottom: 6px;
    color: var(--secondary);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 22px;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--border);
}

.header-left {
    max-width: 65%;
}

.subtitle {
    font-size: 16px;
    color: var(--secondary);
    margin-top: 6px;
}

.header-right {
    text-align: right;
    font-size: 14px;
    color: var(--secondary);
    line-height: 1.6;
}

/* Grids */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 50px;
    row-gap: 14px;
}

.label {
    font-weight: 600;
    color: var(--primary);
}

.value {
    color: var(--secondary);
}

.skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 50px;
}

/* Entries */
.entry {
    margin-bottom: 26px;
}

.entry p strong {
    color: var(--primary);
}

/* Footer */
.footer {
    margin-top: 70px;
    font-size: 13px;
    color: var(--secondary);
}

/* Print */
@media print {
    body {
        background: none;
    }

    .page {
        margin: 0;
        border: none;
        width: auto;
        min-height: auto;
        padding: 40px 50px;
    }

    .navbar {
        display: none !important;
    }
}
