:root {
    --paper: #fcfbf7;
    --ink: #1f1a17;
    --muted: #6b625b;
    --line: #d9d0c6;
    --accent: #6b0f1a;
    --accent-soft: #efe4db;
    --panel: #f5efe8;
}

* {
    box-sizing: border-box;
}

html {
    background: #e9e3da;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
    font-size: 10.5pt;
    line-height: 1.42;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

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

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

.resume-action-link,
.resume-action-button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.7rem 1.1rem;
    background: #fffdf9;
    color: var(--ink);
    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.45in;
    background:
        radial-gradient(circle at top right, rgba(107, 15, 26, 0.07), transparent 28%),
        linear-gradient(180deg, rgba(239, 228, 219, 0.8), rgba(252, 251, 247, 1) 18%),
        var(--paper);
}

.hero {
    display: grid;
    grid-template-columns: 1.9fr 1fr;
    gap: 0.3in;
    align-items: start;
    padding-bottom: 0.24in;
    border-bottom: 2px solid var(--accent);
}

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

h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28pt;
    line-height: 1;
    letter-spacing: 0.01em;
}

.summary {
    margin: 0.16in 0 0;
    max-width: 5.25in;
    color: var(--muted);
    font-size: 10.8pt;
}

.contact-card {
    padding: 0.18in 0.2in;
    background: linear-gradient(180deg, rgba(245, 239, 232, 0.95), rgba(245, 239, 232, 0.55));
    border: 1px solid var(--line);
    border-radius: 14px;
}

.contact-card p {
    margin: 0;
}

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

.section {
    margin-top: 0.2in;
}

h2 {
    margin: 0 0 0.12in;
    padding-top: 0.03in;
    font-size: 10pt;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

.skills-grid {
    display: grid;
    gap: 0.08in;
    padding: 0.12in 0.14in;
    background: rgba(245, 239, 232, 0.55);
    border: 1px solid var(--line);
    border-radius: 14px;
}

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

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

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

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

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

h3 {
    margin: 0;
    font-size: 11.2pt;
    line-height: 1.2;
}

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

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

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

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

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

.page-break {
    padding-top: 0.02in;
}

.two-column {
    display: grid;
    grid-template-columns: 1.18fr 0.92fr;
    gap: 0.24in;
}

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

.project {
    padding: 0.12in 0.14in;
    background: rgba(239, 228, 219, 0.35);
    border: 1px solid rgba(217, 208, 198, 0.8);
    border-radius: 12px;
}

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

@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;
    }

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

    .two-column {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .date {
        white-space: normal;
    }
}
