/* ==========================================================
   Symbiont Conversion
   Modern Scientific Layout
   ========================================================== */

:root {
    --primary: #1f5d8c;
    --primary-dark: #17496d;
    --accent: #2e8b57;
    --text: #333;
    --light-text: #666;
    --background: #f5f7fa;
    --white: #ffffff;
    --border: #d8dde5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.75;
}


/* ==========================================================
   Main content
   ========================================================== */

body {
    max-width: 980px;
    margin: 40px auto;
    padding: 50px 70px;
    background: white;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
    border-radius: 10px;
}


/* ==========================================================
   Headings
   ========================================================== */

h1 {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 3.1rem;
    margin-top: 0;
    margin-bottom: .2em;
    color: var(--primary);
    text-align: center;
}

h2 {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 1.65rem;
    color: var(--primary-dark);
    margin-top: 2.4em;
    margin-bottom: .8em;
    padding-bottom: .3em;
    border-bottom: 2px solid #dfe6ee;
}

h1 + h2 {
    text-align: center;
    border: none;
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 2em;
}

h3 {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--primary-dark);
    margin-top: 2em;
    margin-bottom: .5em;
    font-size: 1.25rem;
}


/* ==========================================================
   Paragraphs
   ========================================================== */

p {
    margin: 1.2em 0;
    text-align: justify;
}


/* ==========================================================
   Links
   ========================================================== */

a {
    color: var(--primary);
    text-decoration: none;
    transition: .2s;
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
}


/* ==========================================================
   Publication lists
   ========================================================== */

h2 + p,
h2 + p + p,
h2 + p + p + p {
    margin-top: 1em;
}

p:has(a) {
    padding-left: .8em;
}

p:has(a)::before {
    content: "▸ ";
    color: var(--accent);
    font-weight: bold;
}


/* ==========================================================
   Footer
   ========================================================== */

p[style] {
    margin-top: 4em;
    color: var(--light-text);
    font-style: italic;
    font-size: .95rem;
}


/* ==========================================================
   Selection
   ========================================================== */

::selection {
    background: #cfe8ff;
}


/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 900px) {

    body {
        margin: 0;
        padding: 30px;
        border-radius: 0;
    }

    h1 {
        font-size: 2.3rem;
    }

    h2 {
        font-size: 1.45rem;
    }

    body {
        font-size: 17px;
    }

}

@media (max-width: 600px) {

    body {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

}