/* syllabus.css — hannokaiser.com teaching pages
   Screen: clean, readable single column
   Print:  well-formatted, ready for paper
   -------------------------------------------- */

:root {
    --text:     #1a1a1a;
    --muted:    #707070;
    --rule:     #e8e8e8;
    --bg:       #fefefe;
    --max-width: 720px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #444;
    background: var(--bg);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4em 2em 7em;
}

/* ── Links ──────────────────────────────── */

a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: #c8c8c8;
}

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

/* ── Back link ──────────────────────────── */

.back {
    display: inline-block;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--muted);
    margin-bottom: 3em;
}

.back:hover {
    color: var(--text);
}

/* ── Course header ──────────────────────── */

h1 {
    font-size: 1.55em;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.4em;
}

.course-meta {
    font-size: 1.0em;
    color: var(--muted);
    margin-bottom: 0.25em;
}

.course-note {
    font-size: 1.0em;
    color: var(--muted);
    font-style: italic;
    margin-top: 0.75em;
    margin-bottom: 0;
    max-width: 56ch;
}

/* ── Class session headings ─────────────── */

h2 {
    font-size: 1.15em;
    font-weight: 500;
    line-height: 1.3;
    border-top: 1px solid var(--rule);
    padding-top: 1.5em;
    margin-top: 2.75em;
    margin-bottom: 0.6em;
}

.class-date {
    display: block;
    font-size: 0.8em;
    font-weight: 400;
    color: var(--muted);
    margin-top: 0.25em;
    margin-bottom: 1em;
}

/* ── Subsection labels ──────────────────── */

h3 {
    font-size: 0.82em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-top: 1.25em;
    margin-bottom: 0.6em;
}

/* ── Lists ──────────────────────────────── */

ul, ol {
    padding-left: 1.4em;
    margin-bottom: 0.5em;
}

li {
    margin-bottom: 0.4em;
    padding-left: 0.2em;
}

ul ul, ol ol, ul ol, ol ul {
    margin-top: 0.3em;
    margin-bottom: 0;
}

/* ── Appendix sections ──────────────────── */

.appendix h2 {
    margin-top: 3.5em;
}

/* ── Footer note ────────────────────────── */

.license {
    margin-top: 4em;
    padding-top: 1.5em;
    border-top: 1px solid var(--rule);
    font-size: 0.8em;
    color: var(--muted);
}

/* ── Mobile ─────────────────────────────── */

@media (max-width: 600px) {
    body {
        padding: 2em 1.25em 5em;
        font-size: 16px;
    }

    h1 { font-size: 1.3em; }
    h2 { font-size: 1em; }
}

/* ── Print ──────────────────────────────── */

@media print {
    @page {
        margin: 2.5cm 2.5cm 2.5cm 2.5cm;
    }

    body {
        font-size: 11pt;
        line-height: 1.55;
        color: #000;
        background: #fff;
        max-width: none;
        padding: 0;
    }

    .back {
        display: none;
    }

    h1 {
        font-size: 16pt;
        margin-bottom: 0.3em;
    }

    h2 {
        font-size: 11pt;
        font-weight: 600;
        page-break-after: avoid;
        margin-top: 1.75em;
        padding-top: 1em;
    }

    h3 {
        font-size: 8.5pt;
        page-break-after: avoid;
    }

    ul, ol {
        page-break-inside: avoid;
    }

    li {
        page-break-inside: avoid;
    }

    a {
        color: #000;
        text-decoration: none;
    }

    .license {
        margin-top: 2em;
    }
}