@font-face{
  font-family: 'TX-02 Berkeley Mono';
  src:url('/fonts/TX02BerkeleyMono-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/Nunito-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/Nunito-Italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
}

@font-face {
  font-family: 'Fira Sans';
  src: url('/fonts/FiraSans-Medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'GitLab Mono';
  src: url('/fonts/GitLabMono-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
	margin: 0;
	padding: 0;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

body {
    font-family: "Nunito", sans-serif;
}

header {
	top: 0;
    /* background-color: #f8f9fa; */
    border-bottom: 1px solid #e5e5e5;
}

.headercontent {
	max-width: 650px;
	padding: 0 1.5rem;
	margin: 0 auto;
	height: 56px;

	display: flex;
    align-items: center;
    justify-content: space-between;
}

.logotext a {
	font-family: "TX-02 Berkeley Mono";
	text-decoration: none;
}

.logotext a, .logotext a:visited {
	color: rgb(68, 73, 82);
}

nav {
	display: flex;
    align-items: center;
    gap: 1rem;
}

nav a, nav a:visited {
	color: rgb(107, 114, 128);
}

main {
	max-width: 650px;
	margin: 0 auto;
    padding: 1rem 20px 3rem 20px;
}

main img {
    display: block;
    margin: 1rem auto 2rem auto;
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #212529;
	font-family: "Fira Sans", sans-serif;
	font-weight: 500;
}

h1 {
    font-size: 1.75rem;
    line-height: 1.25;
    padding-top: 3px;
    padding-bottom: 9px;
}

h2 {
    line-height: 1.25;
    padding-top: 3px;
    padding-bottom: 9px;
	font-size: 1.375rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.3rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:visited {
    color: #551a8b;
}

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #dee2e6;
    background-color: #f8f9fa;
    font-style: italic;
}

blockquote p {
    margin-bottom: 0;
}

code {
    font-family: "GitLab Mono", monospace;
    background-color: #ececef;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.9em;
    /* color: #e83e8c; */
}

pre {
    /* background-color: #f8f9fa; */
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 16px;
    border: 1px solid #dee2e6;
}

pre code {
    background-color: transparent;
    padding: 0;
    color: #212529;
    font-size: 0.875rem;
}

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

footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1.5rem 0;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

@media only screen and (max-width: 800px) {
	.katex-display { overflow: auto hidden; }
}

.katex {
  white-space: nowrap;
}
