/* Serene-inspired Resume Styles */

:root {
    /* Colors - Light theme */
    --primary-color: #2c3e50;
    --primary-pale-color: #7f8c8d;
    --text-color: #2c3e50;
    --text-pale-color: #7f8c8d;
    --bg-color: #ffffff;
    --border-color: #ecf0f1;
    --hover-bg: #f8f9fa;

    /* Typography */
    --main-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --line-height: 1.7;

    /* Spacing */
    --content-max-width: 46rem;
    --spacing-unit: 1rem;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #e0e0e0;
        --primary-pale-color: #a0a0a0;
        --text-color: #e0e0e0;
        --text-pale-color: #a0a0a0;
        --bg-color: #1a1a1a;
        --border-color: #2d2d2d;
        --hover-bg: #242424;
    }
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
body {
    font-family: var(--main-font);
    font-size: 15px;
    line-height: var(--line-height);
    color: var(--text-color);
    background: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Container */
.container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Header */
.header {
    margin-bottom: 3rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.header-text {
    flex: 1;
}

.name {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.handle {
    color: var(--text-pale-color);
    font-weight: 400;
}

.about {
    font-size: 1rem;
    color: var(--text-pale-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.location {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-pale-color);
}

.location a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s;
}

.location a:hover {
    border-bottom-color: var(--primary-color);
}

.avatar {
    display: none; /* Remove avatar */
}

/* Contact buttons */
.contact-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.contact-print {
    display: none;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    color: var(--text-color);
    background: transparent;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.button:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

.icon {
    width: 0.95rem;
    height: 0.95rem;
}

/* Sections */
.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-pale-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1.5px solid var(--border-color);
}

.summary {
    font-size: 0.95rem;
    line-height: var(--line-height);
    color: var(--text-color);
}

/* Timeline - for chronological work/education */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: var(--border-color);
}

.timeline .card {
    position: relative;
}

.timeline .card::before {
    content: '';
    position: absolute;
    left: -1.6875rem;
    top: 0.6rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--bg-color);
    box-shadow: 0 0 0 2px var(--border-color);
}

/* List - for publications/awards */
.list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
}

.card-header-content {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.card-title a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s;
}

.card-title a:hover {
    border-bottom-color: var(--primary-color);
}

.title-with-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.job-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-pale-color);
    margin-bottom: 0.5rem;
}

.award-org,
.pub-meta {
    font-size: 0.85rem;
    color: var(--text-pale-color);
    line-height: 1.5;
    margin-top: 0.3rem;
}

.badges {
    display: inline-flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--text-pale-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.date-range {
    font-size: 0.85rem;
    color: var(--text-pale-color);
    white-space: nowrap;
    font-weight: 500;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.description {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 2rem 1rem;
    }

    .header {
        margin-bottom: 2rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .name {
        font-size: 1.5rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .date-range {
        order: -1;
        font-size: 0.8rem;
    }

    .section {
        margin-bottom: 2.5rem;
    }

    .timeline {
        gap: 1.75rem;
        padding-left: 1rem;
    }

    .timeline .card::before {
        left: -1.1875rem;
    }
}

/* Print Styles */
@media print {
    :root {
        --bg-color: #ffffff;
        --text-color: #000000;
        --text-pale-color: #666666;
        --primary-color: #000000;
        --border-color: #cccccc;
    }

    body {
        font-size: 11pt;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .header {
        margin-bottom: 1.5rem;
    }

    .name {
        font-size: 1.3rem;
    }

    .section {
        margin-bottom: 1.5rem;
        page-break-inside: avoid;
    }

    .section-title {
        font-size: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 0.3rem;
    }

    .card {
        page-break-inside: avoid;
    }

    .timeline {
        gap: 1.25rem;
        padding-left: 0;
    }

    .timeline::before,
    .timeline .card::before {
        display: none;
    }

    .list {
        gap: 1rem;
    }

    .contact-buttons {
        display: none;
    }

    .contact-print {
        display: block;
        font-size: 0.85rem;
        color: var(--text-pale-color);
        margin-top: 0.5rem;
    }

    a {
        color: var(--text-color);
        text-decoration: none;
        border-bottom: none;
    }

    .button {
        display: none;
    }

    .badge {
        background: transparent;
    }
}
