/* =========================================================
   HORA — Homological Reading Activities
   ========================================================= */


/* ---------- Base ---------- */

:root {
    --blue-dark: #002a58;
    --blue: #1460a7;
    --blue-light: #ebf2fa;

    --text: #1a1c1c;
    --text-light: #424750;

    --background: #f9f9f9;
    --surface: #ffffff;
    --border: #d9dce2;

    --serif: "Source Serif 4", Georgia, serif;
    --sans: "Hanken Grotesk", Arial, sans-serif;

    --content-width: 960px;
    --narrow-width: 720px;
}


/* ---------- Reset ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.65;
}

img {
    max-width: 100%;
}

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

a:hover {
    text-decoration: underline;
}


/* ---------- Layout ---------- */

.container {
    width: min(var(--content-width), calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    width: min(var(--narrow-width), 100%);
}


/* ---------- Header ---------- */

.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.header-inner {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo {
    color: #004080;
    font-family: "STIX Two Math", "Source Serif 4", "Times New Roman", serif;
    font-size: 42px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0;
}

.logo-strong {
    font-weight: 700;
}

.logo-soft {
    font-weight: 400;
    opacity: 0.35;
}

.math-space {
    display: inline-block;
    width: 0.18em;
}

.logo:hover {
    text-decoration: none;
}

.site-title {
    margin-top: 6px;
    color: #6b7280;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.17em;
    line-height: 1.2;
    text-transform: uppercase;
}


/* ---------- Intro ---------- */

.intro {
    padding: 42px 0 34px;
    text-align: center;
    color: var(--text-light);
}

.intro p {
    margin: 5px 0;
    font-size: 17px;
}

.intro .meeting-time {
    margin-bottom: 14px;
    color: var(--blue-dark);
    font-size: 19px;
    font-weight: 600;
}


/* ---------- Sections ---------- */


.section {
    padding: 42px 0;
}

.section + .section {
    padding-top: 55px;
}

.section h2 {
    margin: 0 0 30px;
    color: var(--blue-dark);
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section p {
    margin: 0 0 18px;
    color: var(--text-light);
}

.section .lead {
    font-size: 18px;
    line-height: 1.7;
}


/* ---------- About ---------- */

.about h2 {
    text-align: center;
}

.about p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}


/* ---------- Section headings ---------- */

#forthcoming h2,
#past h2 {
    text-align: center;
}


/* ---------- Forthcoming talk ---------- */

.talk {
    display: grid;
    grid-template-columns: 250px 1fr;
    border-top: 2px solid var(--blue);
    border-bottom: 1px solid var(--border);
}

.talk-meta {
    padding: 28px 30px 28px 0;
    border-right: 1px solid var(--border);
}

.talk-meta time {
    display: block;
    margin-bottom: 12px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 600;
}

.talk-meta h3 {
    margin: 0;
    color: var(--blue-dark);
    font-family: var(--serif);
    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;
}

.affiliation {
    margin-top: 5px !important;
    color: var(--text-light) !important;
    font-family: var(--sans);
    font-size: 14px;
}


/* ---------- Talk content ---------- */

.talk-content {
    padding: 28px 0 28px 35px;
}

.talk-title {
    margin: 0 0 16px;
    max-width: 650px;
    color: var(--text);
    font-family: var(--serif);
    font-size: 28px;
    line-height: 1.3;
    font-weight: 600;
}

.talk-content p {
    max-width: 650px;
    margin: 0;
    color: var(--text-light);
}


/* ---------- Past talks ---------- */

.past-list {
    border-top: 1px solid var(--border);
}

.past-talk {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.past-talk time {
    color: var(--blue);
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 400;
}

.past-talk h3 {
    margin: 0;
    color: var(--blue-dark);
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;
}

.past-talk p {
    margin: 4px 0 0;
    color: var(--text-light);
    font-family: var(--serif);
    font-size: 15px;
}


/* ---------- Archive ---------- */

.archive-link {
    margin-top: 25px !important;
    text-align: right;
}

.archive-link a {
    color: var(--blue);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.archive-link a:hover {
    text-decoration: underline;
}


/* ---------- Footer ---------- */

.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--border);
    background: #f1f2f3;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 35px 0 25px;
}

.footer-logo {
    color: var(--blue-dark);
    font-family: "STIX Two Math", "Source Serif 4", "Times New Roman", serif;
    font-size: 26px;
    line-height: 1;
    font-weight: 400;
}

.footer-logo .logo-strong {
    font-weight: 700;
}

.footer-logo .logo-soft {
    font-weight: 400;
    opacity: 0.35;
}

.footer-inner p {
    margin: 2px 0;
    color: var(--text-light);
    font-size: 14px;
}

.footer-nav {
    display: flex;
    gap: 25px;
    font-size: 14px;
}

.footer-nav a {
    color: var(--text-light);
}

.footer-nav a:hover {
    color: var(--blue);
}

.copyright {
    padding: 0 0 25px;
    color: #737781;
    font-size: 12px;
}


/* ---------- Mobile ---------- */

@media (max-width: 700px) {

    .container {
        width: min(var(--content-width), calc(100% - 30px));
    }

    .header-inner {
        min-height: 95px;
    }

    .logo {
        font-size: 32px;
    }

    .site-title {
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .intro {
        padding: 30px 0 20px;
    }

    .section {
        padding: 30px 0;
    }

    .section + .section {
        padding-top: 40px;
    }
    .section h2 {
        font-size: 22px;
        margin-bottom: 22px;
    }

    .talk {
        display: block;
    }

    .talk-meta {
        padding: 22px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .talk-content {
        padding: 22px;
    }

    .talk-title {
        font-size: 25px;
    }

    .past-talk {
        display: block;
    }

    .past-talk time {
        display: block;
        margin-bottom: 5px;
    }

    .past-talk h3 {
        font-size: 19px;
    }

    .archive-link {
        text-align: center;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 15px 25px;
    }

    .copyright {
        padding-bottom: 20px;
    }
}