/* ============================================
   Greta Schenke — Academic Website
   Plain HTML + one stylesheet. No build step.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* Colour palette — change these to re-theme the whole site */
:root {
    --link: #B31B1B;       /* links, nav hover (Cornell Carnelian) */
    --link-hover: #8A1414;  /* link hover */
    --accent: #B31B1B;    /* section underlines, active nav item */
    --bg: #FFFFFF;      /* page background */
    --rule: #DDDDDD;       /* thin lines */
    --ink: #000000;        /* body text */
    --muted: #000000;      /* secondary text (role line, dates, menu) */
}

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

body {
    font-family: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink);
    background-color: var(--bg);
}

p {
    margin-bottom: 14px;
}

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

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

/* Layout */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 28px;
}

/* Header */
header {
    padding: 48px 0 0;
}

.site-name {
    font-size: 2.1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: var(--ink);
}

.site-name a {
    color: inherit;
}

.site-name a:hover {
    color: var(--link);
    text-decoration: none;
}

.site-role {
    color: var(--muted);
    margin-top: 2px;
}

/* Navigation */
nav {
    margin-top: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin: 0;
}

nav li {
    margin: 0;
}

nav a {
    color: var(--muted);
    font-size: 1.05rem;
    font-variant: small-caps;
    letter-spacing: 0.1em;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

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

nav a.active {
    color: var(--ink);
    border-bottom-color: var(--accent);
}

/* Main Content */
main {
    padding: 44px 0 60px;
}

/* Landing Page — Bio */
.bio {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 12px;
}

/* Photo with contact links underneath */
/* Main text size for the bio and the Research/Teaching pages */
.bio-text,
.page-content {
    font-size: 17px;
    line-height: 1.6;
}

.bio-side {
    width: 180px;
    flex-shrink: 0;
}

.bio-photo {
    display: block;
    width: 180px;
    height: 216px;
    border-radius: 3px;
    object-fit: cover;
    background-color: var(--rule);
}

.bio-links {
    margin-top: 14px;
    font-size: 0.95rem;
}

.bio-links a {
    color: var(--muted);
}

.bio-email i {
    margin-right: 4px;
}

.bio-icons {
    display: flex;
    gap: 18px;
    margin-top: 8px;
    font-size: 1.2rem;
}

.bio-links a:hover {
    color: var(--link);
    text-decoration: none;
}

/* Sections */
section {
    margin-top: 48px;
}

h2 {
    font-size: 1.3rem;
    font-weight: 600;
    font-variant: small-caps;
    letter-spacing: 0.08em;
    color: var(--ink);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--accent);
    display: inline-block;
    margin-bottom: 22px;
}

h3 {
    font-size: 1.1rem;
    font-weight: 500;
    font-variant: small-caps;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

/* Paper / entry blocks */
.paper {
    margin-bottom: 24px;
}

.paper .title {
    font-weight: 600;
}

.paper .note {
    color: var(--muted);
    font-style: italic;
}

.paper .links {
    margin-top: 4px;
    font-size: 0.95rem;
}

details summary {
    cursor: pointer;
    color: var(--link);
    display: inline;
}

details[open] summary {
    margin-bottom: 6px;
}

details p {
    margin-top: 8px;
    max-width: 760px;
}

/* Simple dated list (education, teaching, service) */
.entries {
    list-style: none;
    margin: 0;
}

.entries li {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 10px;
}

.entries .when {
    color: var(--muted);
    white-space: nowrap;
}

/* Single-column page content */
.page-content {
    max-width: 760px;
}

ul {
    margin: 12px 0 20px 22px;
}

li {
    margin-bottom: 8px;
}

/* Footer */
footer {
    padding: 24px 0;
    border-top: 1px solid var(--rule);
    font-size: 0.9rem;
    color: var(--muted);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

footer a {
    color: var(--muted);
}

/* Responsive */
@media (max-width: 700px) {
    body {
        font-size: 17px;
    }

    .container {
        padding: 0 16px;
    }

    header {
        padding-top: 32px;
    }

    .site-name {
        font-size: 1.7rem;
    }

    nav ul {
        gap: 20px;
    }

    .bio {
        flex-direction: column;
        align-items: center;
    }

    .bio-side {
        text-align: center;
    }

    .bio-photo {
        margin: 0 auto;
    }

    .bio-icons {
        justify-content: center;
    }

    .entries li {
        flex-direction: column;
        gap: 0;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }
}

.subhead {
    margin-top: 28px;
}

/* Teaching: course name and term on one line, role underneath */
.entries li.course {
    display: block;
    margin-bottom: 14px;
}

.course-head {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    column-gap: 24px;
}
