/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
}

/* ─── Base ───────────────────────────────────────────────── */
html {
    height: 100%;
    font-size: 16px;
}

body {
    background: #fff;
    color: #444;
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1.6;
    padding: 2rem 1.25rem;
}

/* ─── Layout container ───────────────────────────────────── */
.container {
    max-width: 760px;
    margin: 0 auto;
}

/* ─── Headings ───────────────────────────────────────────── */
h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e0e0e0;
}

/* ─── Photo ──────────────────────────────────────────────── */
.photo {
    width: 180px;
    max-width: 100%;
    float: right;
    margin: 0 0 1rem 1.5rem;
    border-radius: 3px;
}

/* ─── Body text ──────────────────────────────────────────── */
p {
    font-size: 0.9375rem;  /* 15px */
    line-height: 1.65;
    font-weight: 300;
    margin-bottom: 0.85rem;
    color: #555;
}

/* ─── Lists ──────────────────────────────────────────────── */
ul {
    list-style: disc;
    padding-left: 1.4rem;
    margin-bottom: 0.85rem;
}

ul li {
    font-size: 0.9375rem;
    line-height: 1.65;
    font-weight: 300;
    color: #555;
    margin-bottom: 0.3rem;
}

/* ─── Links ──────────────────────────────────────────────── */
a {
    color: #444;
    background: #fffa7a;
    text-decoration: none;
    padding: 0 2px;
    border-radius: 2px;
    transition: background 0.15s, color 0.15s;
    outline: none;
}

a:hover,
a:focus {
    color: #000;
    background: #ffe033;
}

/* ─── Section heading links (Publications) ───────────────── */
a.section-link {
    background: none;
    padding: 0;
}

a.section-link h2 {
    display: inline;
    color: #444;
    background: #fffa7a;
    padding: 0 2px;
    border-radius: 2px;
}

a.section-link:hover h2,
a.section-link:focus h2 {
    color: #000;
    background: #ffe033;
}

/* ─── Clearfix (clears the floated photo) ────────────────── */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ─── Desktop (≥ 700px) ──────────────────────────────────── */
@media (min-width: 700px) {
    body {
        padding: 3.5rem 2.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .photo {
        width: 220px;
    }
}

/* ─── Mobile (< 500px) ───────────────────────────────────── */
@media (max-width: 499px) {
    .photo {
        float: none;
        display: block;
        width: 140px;
        margin: 0 0 1rem 0;
    }
}
