/* Base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

p {
    margin: 0 0 1rem 0;
}

ul {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
    min-height: 44px;
    display: inline-block;
    padding: 0.25rem 0;
}

a:hover {
    text-decoration: underline;
}

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

.title {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0.5rem 0;
    color: #666;
}

.location {
    font-size: 1rem;
    margin: 0.5rem 0 1rem 0;
    color: #666;
}

.email-display {
    font-size: 1rem;
    margin: 0.5rem 0 0 0;
    color: #666;
}

.links {
    font-size: 1rem;
    margin: 0;
}

/* Section spacing */
section {
    margin-bottom: 2.5rem;
}

.bio p {
    font-size: 1.0625rem;
}

.case-study {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.case-study:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.skill-group {
    margin-bottom: 1.5rem;
}

.skill-group h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.resume-profile p,
.contact p {
    margin: 0.75rem 0;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: #666;
    font-size: 0.875rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
        margin: 1.75rem 0 0.875rem 0;
    }

    h3 {
        font-size: 1.125rem;
    }

    .bio p {
        font-size: 1rem;
    }

    section {
        margin-bottom: 2rem;
    }

    .case-study {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.375rem;
        margin: 1.5rem 0 0.75rem 0;
    }

    h3 {
        font-size: 1rem;
    }

    ul {
        padding-left: 1.25rem;
    }

    li {
        margin-bottom: 0.375rem;
    }

    .links {
        font-size: 0.9375rem;
    }

    .title {
        font-size: 1rem;
    }

    .location {
        font-size: 0.9375rem;
    }
}

/* Print styles */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    h1 {
        font-size: 24pt;
        page-break-after: avoid;
    }

    h2 {
        font-size: 18pt;
        page-break-after: avoid;
    }

    h3 {
        font-size: 14pt;
        page-break-after: avoid;
    }

    section {
        page-break-inside: avoid;
    }

    .case-study {
        page-break-inside: avoid;
        border-bottom: 1px solid #000;
    }

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

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }

    footer {
        page-break-before: always;
    }
}
