:root {
    --paper: #ffffff;
    --ink: #111111;
    --muted: #555555;
    --line: #d8d8d8;
    --accent: #111111;
    --accent-strong: #050505;
    --accent-muted: #777777;
    --accent-soft: #f5f5f5;
    --header-muted: #e4e4e4;
}

* {
    box-sizing: border-box;
}

html {
    background: #ededed;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10.5pt;
    line-height: 1.4;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid #111111;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #ffffff;
}

.resume-skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 40;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #ffffff;
    color: #050505;
    font-weight: 700;
    transform: translateY(-180%);
}

.resume-skip-link:focus {
    transform: translateY(0);
}

#resume-content:focus {
    outline: none;
}

.resume-actions {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(5, 5, 5, 0.82);
    backdrop-filter: blur(10px);
}

.resume-action-link,
.resume-action-button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.7rem 1.1rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-strong);
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
}

.resume-action-button {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.resume {
    width: 8.5in;
    min-height: 11in;
    margin: 0 auto;
    padding: 0.48in;
    background: var(--paper);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.24);
}

.hero {
    margin-bottom: 0.16in;
    padding: 0.22in 0.24in 0.2in;
    border: 1px solid rgba(0, 0, 0, 0.28);
    border-left: 0.08in solid var(--accent);
    border-radius: 0.18in;
    background: #111111;
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 0.08in;
    font-size: 9pt;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
}

h1 {
    margin: 0;
    font-size: 27pt;
    line-height: 1;
    letter-spacing: -0.02em;
}

.summary {
    margin: 0.14in 0 0.12in;
    max-width: none;
    color: var(--header-muted);
    font-size: 10.4pt;
}

.contact-card {
    display: flex;
    flex-wrap: wrap;
    gap: 0.05in 0.16in;
    padding: 0;
    color: var(--header-muted);
    font-size: 9.5pt;
}

.contact-card p {
    margin: 0;
}

.contact-card p + p {
    margin-top: 0;
}

.section {
    margin-top: 0.15in;
}

h2 {
    margin: 0 0 0.09in;
    padding-bottom: 0.04in;
    border-bottom: 1px solid var(--line);
    font-size: 10pt;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-strong);
    position: relative;
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0.82in;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-muted));
}

.skills-grid {
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.skills-grid p,
.detail,
.project p {
    margin: 0;
}

.skills-grid p + p {
    margin-top: 0.035in;
}

.skills-grid span {
    display: inline-block;
    min-width: 0.9in;
    margin-right: 0.08in;
    font-weight: 700;
    color: var(--accent-strong);
}

.entry,
.project {
    break-inside: avoid;
}

.entry + .entry,
.project + .project {
    margin-top: 0.12in;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    gap: 0.2in;
    align-items: baseline;
}

h3 {
    margin: 0;
    font-size: 11pt;
    line-height: 1.2;
    color: var(--ink);
}

.meta,
.date,
.project-subtitle,
.detail,
.project-link {
    color: var(--muted);
}

.meta,
.project-subtitle {
    margin-top: 0.02in;
    font-weight: 600;
    color: #444444;
}

.date {
    white-space: nowrap;
    font-size: 9.5pt;
    text-align: right;
}

ul {
    margin: 0.06in 0 0;
    padding-left: 0.18in;
}

li::marker {
    color: var(--accent);
}

li + li {
    margin-top: 0.04in;
}

.compact .detail + .detail {
    margin-top: 0.03in;
}

.project {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.project-link {
    margin-top: 0.06in;
    font-size: 9.2pt;
    color: #111111;
}

.resume-footer {
    display: flex;
    width: min(8.5in, 100%);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
    color: #111111;
    font-size: 0.9rem;
}

.resume-footer p {
    margin: 0;
}

.resume-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.resume-footer a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.resume-footer a:hover {
    background: rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
    .resume-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem;
    }

    .resume-action-link,
    .resume-action-button {
        text-align: center;
    }

    .resume {
        width: 100%;
        min-height: auto;
        padding: 1rem;
    }

    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .date {
        white-space: normal;
    }

    .resume-footer {
        flex-direction: column;
        text-align: center;
    }
}
