@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lora:ital,wght@0,400;0,500;1,400&family=Noto+Serif+SC:wght@400;500&display=swap');

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    font-family: 'Lora', 'Noto Serif SC', Georgia, serif;
    background-color: #fffef6;
    min-height: 100vh;
}

.sidebar {
    width: 135px;
    background-color: #fffef6;
    padding: 20px 20px;
    border-right-style: solid;
    border-color: #bdbdbd;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100%;
    overflow-x: clip;
    white-space: nowrap;
    left: 0;
    transition: 0.3s;
}

.sidebar h3 {
    margin-top: -6px;
    color: #2f2f2f;
    font-family: 'Playfair Display', Georgia, serif;
}

.sidebar a {
    text-decoration: none;
    color: #2f2f2f;
    display: block;
    margin-left: 0px;
    font-family: 'Lora', 'Noto Serif SC', Georgia, serif;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin-top: -15px;
}

.sidebar ul li {
    margin-left: 10px;
    margin-top: 4px;
    font-family: 'Lora', 'Noto Serif SC', Georgia, serif;
}

.content {
    margin-left: 200px;
    padding: 60px 20px;
    color: #2f2f2f;
    flex: 1;
    font-family: 'Lora', 'Noto Serif SC', Georgia, serif;
    transition: margin-left 0.3s;
}

.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 5px;
    left: 7px;
}

.closebtn {
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 4px;
    right: 15px;
    display: none;
    transition: 0.3s;
}

@media screen and (max-width: 768px) {
    .sidebar {
        width: 0;
        height: 100%;
        overflow-x: clip;
        padding: 20px 0px;
    }

    .content {
        margin-left: 45px;
    }

    .hamburger {
        display: block;
        visibility: visible;
        opacity: 1;
    }

    .closebtn {
        display: block;
        visibility: hidden;
        opacity: 0;
    }
}

.sidebar ul li {
    list-style-type: none;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
}

h1 {
    margin-bottom: 3px;
}

p {
    line-height: 1.7;
}

.date {
    color: #2f2f2f;
    font-style: italic;
    font-size: 0.85em;
    margin-top: 0;
    margin-bottom: 1.5em;
}

a {
    color: inherit; /* inherits text color, overrides default browser link color */
    text-decoration: underline;
}

article.prose {
    max-width: 65%;
    margin: 0 auto;
    padding-bottom: 80px;
}

ol.reasons {
    padding-left: 1.5em;
    margin: 1em 0;
}

ol.reasons li,
ul.reasons li {
    line-height: 1.7;
    margin-bottom: 0.75em;
}

p.signature {
    text-align: right;
    margin-top: 2em;
}

p.section-break {
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

h2 {
    margin-top: 2em;
    margin-bottom: 0.25em;
    font-size: 1.3em;
}

hr.footnote-divider {
    border: none;
    border-top: 1px solid #bdbdbd;
    margin: 3em 0 1.5em;
}

ol.footnotes {
    padding-left: 1.5em;
    font-size: 0.8em;
    color: #555;
    line-height: 1.6;
}

ol.footnotes li {
    margin-bottom: 0.5em;
}

.fig-row {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin: 2em 0;
}

.fig-block {
    flex: 1;
    min-width: 0;
}

.fig-block svg {
    display: block;
    width: 100%;
}

.fig-label {
    font-size: 0.92em;
    color: #2f2f2f;
    margin-bottom: 6px;
    line-height: 1.35;
    font-family: 'Lora', 'Noto Serif SC', Georgia, serif;
}

.fig-source {
    font-size: 0.65em;
    color: #aaa;
    margin-top: 6px;
    line-height: 1.4;
}

@media screen and (max-width: 768px) {
    .fig-row {
        flex-direction: column;
    }
}

table.prose-table {
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95em;
    width: 100%;
}

table.prose-table th,
table.prose-table td {
    border: 1px solid #bdbdbd;
    padding: 0.5em 0.75em;
    text-align: left;
    line-height: 1.6;
}

table.prose-table thead th {
    background-color: #f5f4ec;
    font-weight: 600;
}

sup {
    font-size: 0.6em;
    line-height: 0;
    vertical-align: super;
}

span.changed {
    color: inherit;
}

sup a {
    text-decoration: none;
    color: #555;
}

@media screen and (max-width: 768px) {
    article.prose {
        max-width: 100%;
    }
}
