/* ===========================================================
   David Guzman Piedrahita — academic minimal theme
   Inspired by the al-folio aesthetic, recolored to a
   readable lime-green accent.
   =========================================================== */

:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --text-light: #6b6b6b;
    --divider: rgba(0, 0, 0, 0.1);

    /* Readable lime-green accent (replaces the original pink) */
    --accent: #3c8c1f;          /* links, dashes, badges — AA on white */
    --accent-bright: #57a818;   /* large headings — limish, lively */
    --accent-hover: #2f6f17;    /* hover / pressed */
    --highlight-bg: rgba(124, 197, 51, 0.22); /* inline highlight tint */
    --highlight-text: #2f6f17;

    --footer-bg: #1c1c1d;
    --footer-text: #e8e8e8;
    --code-bg: rgba(60, 140, 31, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding-top: 56px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

h1, h2, h3, h4 {
    font-family: 'Roboto Slab', 'Roboto', serif;
    font-weight: 500;
    line-height: 1.25;
    color: var(--text);
}

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

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

section { scroll-margin-top: 66px; }

/* ----------------------------- Navbar ----------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--divider);
    z-index: 100;
    backdrop-filter: saturate(180%) blur(6px);
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    height: 100%;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: 'Roboto Slab', serif;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text);
}
.nav-brand:hover { color: var(--accent); text-decoration: none; }

.nav-menu { display: flex; gap: 1.25rem; }

.nav-link {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 400;
}
.nav-link:hover { color: var(--accent); text-decoration: none; }

/* ----------------------------- About ----------------------------- */
.about { padding-top: 2.5rem; }

.page-title {
    font-size: 2.6rem;
    margin: 0 0 0.25rem;
    color: var(--accent-bright);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0 0 1.5rem;
    font-weight: 300;
}

.profile {
    float: right;
    width: 39%;
    margin: 0 0 1rem 1.5rem;
}

.profile-img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    display: block;
}

.address {
    margin-top: 0.6rem;
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--text-light);
    text-align: center;
}
.address p { margin: 0; }
.address strong { color: var(--text); }

.bio p { margin: 0 0 1rem; }

.contact-inline { clear: none; }
.contact-inline a { margin-right: 1.1rem; white-space: nowrap; }
.contact-inline i { margin-right: 0.3rem; }

/* Inline highlight — the limish-green "highlighter" */
.hl {
    background: var(--highlight-bg);
    color: var(--highlight-text);
    padding: 0.05em 0.3em;
    border-radius: 3px;
    font-weight: 400;
}

/* ----------------------------- Publications ----------------------------- */
.publications { clear: both; margin-top: 3rem; }

.publications > h1 {
    color: var(--accent-bright);
    font-size: 2rem;
    text-align: center;
    margin: 1.5em 0 1em;
}

ol.bibliography {
    list-style: none;
    padding: 0;
    margin: 0;
}

ol.bibliography li {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--divider);
}

.bib-abbr {
    flex: 0 0 92px;
    padding-top: 0.15rem;
}

.bib-abbr abbr {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.15rem 0.55rem;
    border-radius: 3px;
    text-decoration: none;
}

.bib-body { flex: 1 1 auto; min-width: 0; }

.bib-title {
    font-family: 'Roboto Slab', serif;
    font-weight: 500;
    font-size: 1.02rem;
    margin-bottom: 0.2rem;
    color: var(--text);
}

.bib-author {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.35rem;
}
.bib-author em {
    font-style: normal;
    color: var(--text);
    border-bottom: 1px solid var(--accent);
}

.bib-award {
    font-size: 0.82rem;
    color: var(--highlight-text);
    font-weight: 500;
    margin-bottom: 0.35rem;
}
.bib-award i { margin-right: 0.25rem; }

.bib-abstract {
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.5;
    margin: 0.35rem 0 0.55rem;
}

.bib-links a {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--text);
    border: 1px solid var(--text-light);
    border-radius: 3px;
    padding: 0.12rem 0.7rem;
    margin-right: 0.4rem;
}
.bib-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    text-decoration: none;
}

/* ----------------------------- Resume sections ----------------------------- */
.resume-section, .contact { margin-top: 1rem; }

.languages {
    font-size: 0.95rem;
    line-height: 2;
}

/* Compact one-line CV entries (experience, awards, service) */
.cv-list { list-style: none; padding: 0; margin: 0; }

.cv-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--divider);
    font-size: 0.95rem;
}

.cv-list .cv-role strong { font-weight: 500; }

.cv-list .cv-note {
    color: var(--text-light);
    font-size: 0.85rem;
}

.cv-list .cv-date {
    color: var(--text-light);
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

h2.year {
    color: var(--text-light);
    border-top: 1px solid var(--divider);
    padding-top: 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: right;
    font-size: 1.4rem;
}

.post-list { list-style: none; padding: 0; margin: 0; }

.post-list > li {
    border-bottom: 1px solid var(--divider);
    padding: 1.5rem 0;
}

.post-list h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 0.15rem;
}

.post-list h3 .org {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--accent);
}

.post-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0 0 0.5rem;
}

.achievements {
    margin: 0;
    padding-left: 1.2rem;
}
.achievements li {
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
}

/* ----------------------------- Contact ----------------------------- */
.contact p { margin-bottom: 1rem; }

.social {
    text-align: center;
    margin: 1.5rem 0 2rem;
}
.social a {
    font-size: 2.2rem;
    color: var(--text);
    margin: 0 0.7rem;
    transition: color 0.2s ease;
}
.social a:hover { color: var(--accent); text-decoration: none; }

/* ----------------------------- Footer ----------------------------- */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: 0.75rem;
    padding: 0.6rem 0;
    text-align: center;
    margin-top: 3rem;
}
.footer p { margin: 0; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 576px) {
    .nav-menu { gap: 0.85rem; }
    .nav-link { font-size: 0.85rem; }
    .nav-brand { font-size: 0.95rem; }
    .profile {
        float: none;
        width: 45%;
        max-width: 180px;
        margin: 0 auto 1.5rem;
    }
    .page-title { font-size: 2rem; }
    ol.bibliography li { flex-direction: column; gap: 0.4rem; }
    .bib-abbr { flex-basis: auto; }
    h2.year { text-align: left; }
    .cv-list li { flex-direction: column; gap: 0.15rem; }
}
