/* ============================================
   Resume - Benjamin Burger
   Design: Dark mode (web), light mode (print)
   Accent: Muted teal
   ============================================ */

:root {
    --bg: #1a1d23;
    --bg-surface: #22262e;
    --text: #d4d7dd;
    --text-muted: #8b919a;
    --text-heading: #f0f2f5;
    --accent: #5ba3a3;
    --accent-subtle: rgba(91, 163, 163, 0.12);
    --border: #2e333b;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --max-width: 780px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 3rem 1.5rem;
}

/* Layout */
.resume {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Header */
.header {
    margin-bottom: 2rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}

.header .title {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.download-btn {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--accent);
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    margin-top: 0.3rem;
}

.download-btn:hover {
    background: var(--accent);
    color: var(--bg);
}

.contact {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: 0.875rem;
}

.contact li {
    display: flex;
    align-items: center;
}

.contact li:not(:last-child)::after {
    content: '·';
    margin: 0 0.75rem;
    color: var(--border);
    font-weight: 700;
    font-size: 1.1rem;
}

.contact a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.contact a:hover {
    color: var(--accent);
}

/* Summary */
.summary {
    margin-bottom: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-surface);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
}

.summary p {
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--text);
}

/* Section headings */
h2 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* Jobs */
.experience {
    margin-bottom: 2.5rem;
}

.job {
    margin-bottom: 2rem;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.job-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
}

.job-header .company {
    font-size: 0.9rem;
    color: var(--text);
}

.job-header .company .note {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.job-header .location {
    font-size: 0.825rem;
    color: var(--text-muted);
}

.job-header .dates {
    font-size: 0.825rem;
    color: var(--text-muted);
    white-space: nowrap;
    padding-top: 0.15rem;
}

/* Projects within a job */
.project {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border);
}

.project h4 {
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.project h4 .project-date {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.825rem;
    margin-left: 0.5rem;
}

/* Bullet lists */
ul {
    list-style: none;
    padding: 0;
}

.job ul li,
.project ul li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text);
}

.job ul li::before,
.project ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

/* Skills */
.skills {
    margin-bottom: 2.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.skill-group {
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border-radius: 4px;
}

.skill-group dt {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.skill-group dd {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.5;
}

/* Education */
.education .gpa {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.education-line {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.education-line .gpa-inline {
    color: var(--text-muted);
    font-weight: 400;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 600px) {
    body {
        padding: 2rem 1rem;
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .header-top {
        flex-direction: column;
        gap: 0.75rem;
    }

    .download-btn {
        align-self: flex-start;
    }

    .job-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .job-header .dates {
        font-size: 0.8rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .contact li:not(:last-child)::after {
        display: none;
    }
}

/* ============================================
   Print - Tight, dense, 2-page max target
   ============================================ */

@media print {
    :root {
        --bg: #ffffff;
        --bg-surface: transparent;
        --text: #222222;
        --text-muted: #555555;
        --text-heading: #000000;
        --accent: #1a6363;
        --accent-subtle: transparent;
        --border: #cccccc;
    }

    html {
        font-size: 9pt;
    }

    body {
        padding: 0;
        background: white;
        line-height: 1.35;
    }

    .resume {
        max-width: 100%;
    }

    /* Header - compact */
    .header {
        margin-bottom: 0.3rem;
    }

    .header h1 {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .header .title {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .contact {
        gap: 0.75rem;
        font-size: 0.75rem;
    }

    /* Summary - minimal */
    .summary {
        margin-bottom: 0.6rem;
        padding: 0.4rem 0.6rem;
        border-left: 2px solid var(--accent);
        background: none;
        border-radius: 0;
    }

    .summary p {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    /* Section headings */
    h2 {
        font-size: 0.65rem;
        margin-bottom: 0.4rem;
        padding-bottom: 0.2rem;
    }

    /* Jobs - tight */
    .experience {
        margin-bottom: 0.5rem;
    }

    .job {
        margin-bottom: 0.5rem;
    }

    .job-header {
        margin-bottom: 0.15rem;
    }

    .job-header h3 {
        font-size: 0.85rem;
    }

    .job-header .company {
        font-size: 0.75rem;
    }

    .job-header .company .note {
        font-size: 0.7rem;
    }

    .job-header .location {
        font-size: 0.65rem;
    }

    .job-header .dates {
        font-size: 0.65rem;
    }

    /* Projects - minimal indent */
    .project {
        margin-bottom: 0.4rem;
        padding-left: 0.5rem;
        border-left: 1px solid var(--border);
    }

    .project h4 {
        font-size: 0.78rem;
        margin-bottom: 0.15rem;
    }

    .project h4 .project-date {
        font-size: 0.65rem;
    }

    /* Bullets - dense */
    .job ul li,
    .project ul li {
        padding-left: 0.6rem;
        margin-bottom: 0.1rem;
        font-size: 0.73rem;
        line-height: 1.35;
    }

    .job ul li::before,
    .project ul li::before {
        width: 2.5px;
        height: 2.5px;
        top: 0.45em;
        background: var(--accent);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Skills - flat, no cards */
    .skills {
        margin-bottom: 0.5rem;
    }

    .skills-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.15rem 0.75rem;
    }

    .skill-group {
        padding: 0.1rem 0;
        background: none;
        border-radius: 0;
    }

    .skill-group dt {
        font-size: 0.65rem;
        margin-bottom: 0;
    }

    .skill-group dd {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    /* Education - inline */
    .education-line {
        margin-top: 0.3rem;
        padding-top: 0.25rem;
        font-size: 0.7rem;
        border-top: 1px solid var(--border);
    }

    .education-line .gpa-inline {
        font-size: 0.65rem;
    }

    /* Links - plain */
    a {
        color: var(--text);
        text-decoration: none;
    }

    /* Hide download button in print */
    .download-btn {
        display: none;
    }

    /* Contact separators in print */
    .contact li:not(:last-child)::after {
        color: #999999;
    }

    /* Page control */
    .project {
        break-inside: avoid;
    }

    .job {
        break-inside: avoid;
    }

    @page {
        size: letter;
        margin: 0.4in 0.5in;
    }
}
