:root {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #555555;
    --accent: #000000;
    --border-color: #000000;
    --spacing-unit: 1.5rem;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

h1.name {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 0.9;
    margin-bottom: var(--spacing-unit);
}

.tagline {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: -1rem;
    margin-bottom: 3rem;
    border-bottom: 4px solid var(--accent);
    padding-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-size: 1.25rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Layout */
.resume-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 4rem;
}

@media (min-width: 768px) {
    .resume-grid {
        grid-template-columns: 300px 1fr;
        padding: 4rem;
    }
    
    .header {
        grid-column: 1 / -1;
    }
}

/* Sidebar Elements */
.sidebar {
    font-size: 0.95rem;
}

.list-unstyled {
    list-style: none;
    padding: 0;
}

.list-unstyled li {
    margin-bottom: 0.5rem;
}

.link {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: all 0.2s;
}

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

.education-item {
    margin-bottom: 1.5rem;
}

.education-item .year {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.tag-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-list li {
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #ddd;
}

/* Main Content Elements */
.lead {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 3rem;
}

.job {
    margin-bottom: 3rem;
}

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

.job-role {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.company {
    font-weight: 600;
    display: block;
}

.date {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    font-family: monospace;
}

.job-details {
    padding-left: 1.2rem;
    color: #333;
}

.job-details li {
    margin-bottom: 0.5rem;
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.project-card {
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    transition: transform 0.2s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 4px 4px 0px var(--accent);
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Button Styles */
.btn-primary {
    display: block;
    padding: 0.8rem 1rem;
    background: var(--text-primary);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 2px solid var(--text-primary);
    text-align: center;
    transition: all 0.2s;
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    background: var(--bg-color);
    color: var(--text-primary);
    box-shadow: 4px 4px 0px var(--accent);
    transform: translateY(-2px);
}

/* Print Styles */
@media print {
    body {
        font-size: 12pt;
    }
    
    .resume-grid {
        display: block;
        padding: 0;
        max-width: none;
    }

    .header, .sidebar, .main-content {
        margin-bottom: 2rem;
    }

    .name {
        font-size: 36pt;
    }

    .project-card {
        border: 1px solid #000;
        break-inside: avoid;
    }

    a {
        text-decoration: none;
        color: #000;
    }
}
