html {
	-webkit-text-size-adjust: 100%;
	font-size: 100%;
}

@font-face {
    font-family: 'CMU Serif';
    src: url('/fonts/cmu-serif-500-roman.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'CMU Serif';
    src: url('/fonts/cmu-serif-700-roman.woff2') format('woff2');
    font-weight: bold;
    font-display: swap;
}
@font-face {
    font-family: 'CMU Serif';
    src: url('/fonts/cmu-serif-500-italic.woff2') format('woff2');
    font-style: italic;
    font-display: swap;
}

body {
    font-family: 'CMU Serif', 'Latin Modern Roman', Georgia, serif;
    font-size: 1.1875rem;
    line-height: 1.6;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 60px;
    margin-bottom: 120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 120px;
    padding-right: 120px;
    text-align: justify;
    hyphens: auto;
}

h1, h2, h3 {
    font-weight: bold;
    line-height: 1.2;
}

.post {
    margin-bottom: 3.5rem;
}

.post-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
    text-align: left;
}

.post-meta {
    font-style: italic;
    color: #555;
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 1.2rem;
    text-align: left;
}

.post-content p {
    margin-bottom: 1rem;
}

.post:not(:last-child)::after {
    content: "";
    display: block;
    margin: 2.5rem auto 0;
    width: 100%;
    border-top: 0.8pt solid #000;
}

hr {
    border: none;   
    border-top: 0.8pt solid #000;
    margin: 2.5rem auto;
    width: 100%;
}

.post-content sup a {
    color: inherit;
    font-size: 0.75em;
}

.footnotes {
    margin-top: 2rem;
    padding-top: 0.5rem;
    border-top: 0.5pt solid #000;
    font-size: 0.85rem;
    color: #333;
    counter-reset: footnote;
}

.footnote {
    margin-bottom: 0.4rem;
    display: flex;
    gap: 0.4rem;
}

.footnote-num {
    counter-increment: footnote;
    text-decoration: underline dotted;
    color: inherit;
    font-weight: bold;
    flex-shrink: 0;
}

.footnote-num::before {
    content: "←" counter(footnote) ".";
}

.footnote-num:hover {
    text-decoration: underline;
}

a {
	color: inherit;
	font-weight: bold;
	text-decoration: underline dotted;
}

a.nothing {
	border-bottom: none;
}

.footnotes, .footnote, .footnote-num, .footnote span {
	-webkit-text-size-adjust: 100%;
}

.font-controls {
	position: fixed;
	top: 24px;
	left: 24px;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-family: 'CMU Serif', serif;
	line-height: 30.4px;
	font-size: 13.6px;
	row-gap: 32px;
	column-gap: 32px;
	zoom: 0.667;
}

.font-controls button {
	background: none;
	border: 0.8pt dotted black;
	color: black;
	font-family: inherit;
	font-size: 20.4px;
	padding: 7.2px 14.4px;
	cursor: pointer;
	/* click behavior on mobile */
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	user-select: none;
}

.font-controls button:hover {
	background: #000;
	color: #fff;
}

.menu-toggle-container {
	position: fixed;
	bottom: 24px;
	left: 32px;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-family: 'CMU Serif', serif;
	line-height: 30.4px;
	row-gap: 32px;
	column-gap: 32px;
	zoom: 0.667;
}

.menu-toggle-container button {
	background: none;
	border: 0.8pt dotted black;
	color: black;
	font-family: inherit;
	font-size: 27.2px;
	padding: 7.2px 14.4px;
	cursor: pointer;
	/* click behavior on mobile */
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	user-select: none;
}

.menu-toggle-container button:hover {
    background: #000;
    color: #fff;
}

@media (max-width: 600px) {
    body {
        margin-top: 24px;
        margin-bottom: 24px;
        padding-left: 50px;
        padding-right: 50px;
    }

    .menu-toggle-container,.font-controls {
	    font-size: 6.8px;
	    zoom: 0.334;
    }

    .menu-toggle-container button {
	    font-size: 13.6px;
    }

    .font-controls button {
	    font-size: 10.2px;
    }
}
