/* ===========================================
   resume.css — styles for the resume page
   matches the main site aesthetic
   =========================================== */

/* --- Resume Hero --- */
.resume-hero {
    padding: 120px 0 40px;
}

.back-link {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    display: inline-block;
    margin-bottom: 20px;
    transition: color 0.2s;
}

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

.resume-hero-title {
    font-family: var(--mono);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 10px;
}

.resume-hero-desc {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 24px;
}

/* --- Resume Paper --- */
.resume-section {
    padding: 0 0 80px;
}

.resume-paper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Resume Header --- */
.resume-header {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.resume-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 4px;
}

.resume-tagline {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--accent);
}

.resume-contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.resume-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.resume-contact-item svg {
    flex-shrink: 0;
    color: var(--text-dim);
}

/* --- Divider --- */
.resume-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

/* --- Resume Blocks --- */
.resume-block {
    /* nothing fancy */
}

.resume-block-title {
    font-family: var(--mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.resume-text {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.7;
}

/* --- Entries --- */
.resume-entry {
    margin-bottom: 16px;
}

.resume-entry:last-child {
    margin-bottom: 0;
}

.resume-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 4px;
}

.resume-entry-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-bright);
}

.resume-entry-place {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-dim);
}

.resume-entry-date {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    white-space: nowrap;
    flex-shrink: 0;
}

.resume-entry-desc {
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.6;
}

.resume-entry-desc a {
    color: var(--accent);
    font-size: 0.78rem;
}

/* --- Skills Grid --- */
.resume-skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.resume-skill-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.resume-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.resume-tags span {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text);
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .resume-paper {
        padding: 28px 20px;
    }

    .resume-header {
        flex-direction: column;
        gap: 16px;
    }

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

    .resume-entry-header {
        flex-direction: column;
        gap: 4px;
    }
}

/* ===========================================
   PRINT STYLES
   When someone hits Ctrl+P or the download button
   =========================================== */
@media print {

    /* hide stuff that doesn't belong on paper */
    #navbar,
    .hamburger,
    .nav-links,
    .resume-hero,
    .back-link,
    #printResume,
    footer,
    .scroll-top {
        display: none !important;
    }

    /* reset dark theme for print */
    body {
        background: #fff !important;
        color: #1a1a1a !important;
        font-size: 10pt;
        line-height: 1.5;
    }

    .resume-section {
        padding: 0 !important;
    }

    .resume-paper {
        background: #fff !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        box-shadow: none !important;
    }

    .resume-name {
        color: #000 !important;
        font-size: 18pt;
    }

    .resume-tagline {
        color: #444 !important;
    }

    .resume-block-title {
        color: #333 !important;
        font-size: 10pt;
        border-bottom: 1px solid #ccc;
        padding-bottom: 4px;
    }

    .resume-entry-title {
        color: #1a1a1a !important;
    }

    .resume-text,
    .resume-entry-desc,
    .resume-entry-place,
    .resume-entry-date,
    .resume-contact-item {
        color: #333 !important;
    }

    .resume-tags span {
        color: #333 !important;
        border-color: #ccc !important;
        background: #f5f5f5 !important;
    }

    .resume-divider {
        background: #ddd !important;
    }

    .resume-contact-item svg {
        color: #333 !important;
    }

    .resume-entry-desc a {
        color: #333 !important;
        text-decoration: underline;
    }

    /* page margins */
    @page {
        margin: 0.5in;
        size: A4;
    }

    /* avoid breaks inside entries */
    .resume-entry {
        break-inside: avoid;
    }

    .resume-block {
        break-inside: avoid;
    }
}