@font-face {
  font-display: swap;
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 400;
  src: url('ibm-plex-serif-v20-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'IBM Plex Serif';
  font-style: italic;
  font-weight: 400;
  src: url('ibm-plex-serif-v20-latin-italic.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 500;
  src: url('ibm-plex-serif-v20-latin-500.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  src: url('ibm-plex-sans-v23-latin-regular.woff2') format('woff2');
}

:root {
  --fg: #c8d0e0;
  --fg-light: #e5e9f0;
  --bg: #2e3440;
  --bg-dark: #2a303b;
  --gray: #646a76;
  --light-gray: #6c7a96;
  --cyan: #88c0d0;
  --blue: #81a1c1;
  --dark-blue: #5e81ac;
  --navy-blue: #6279b2;
  --green: #a3be8c;
  --dark-red: #bf616a;
  --red: #d57780;
  --orange: #d08f70;
  --yellow: #ebcb8b;
  --purple: #b988b0;
  --light-purple: #b589d3;
  --hl0: #353B49;
  --hl1: #3B4252;
  --hl2: #3F4758;
  --hl3: #434C5E;
  --hl4: #4C566A;
  --hl5: #57657B;
}

html {
  color: var(--fg-light);
  font-family: "IBM Plex Serif", serif;
  font-size: 1.2em;
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: var(--bg);
  min-height: 100vh;
  scrollbar-color: var(--fg) var(--bg);
}

body {
  width: 100%;
  max-width: 800px;
  overflow-x: hidden;
  display: flex;
  margin: 30px;
  flex-direction: column;
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: 1.2em;
}

#footer-links {
  display: flex;
  gap: 20px;
}

p {
  margin: 10px 0;
}

b,
strong {
  font-weight: 500;
}

ul,
ol {
  margin: 5px 0;
}

h1 {
  color: var(--fg-light);
  font-family: "IBM Plex Sans", sans-serif;
  margin-bottom: 0;
  font-size: 1.3em;
}

h2,
h3,
h4,
h5 {
  color: var(--fg-light);
  font-family: "IBM Plex Sans", sans-serif;
  margin-bottom: 0;
  font-size: 1.1em;
}

b,
strong {
  color: var(--fg-light);
}

a {
  color: var(--fg-light);
}

.tufte-content p a:link,
.tufte-content p a:visited,
.tufte-content ul a:link,
.tufte-content ul a:visited,
.tufte-content ol a:link,
.tufte-content ol a:visited,
.tufte-content .sidenote a:link,
.tufte-content .sidenote a:visited,
.tufte-content .marginnote a:link,
.tufte-content .marginnote a:visited {
  color: var(--cyan);
}

figure {
  align-self: center;
  text-align: center;
  font-style: italic;
  margin: auto 0;
}

img {
  max-width: 100%;
}

footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer hr {
  width: 100%;
  color: var(--hl4);
}

.blog-entry {
  margin-top: 20px;
  font-size: 1.18rem;
}

.header-link {
  color: inherit;
  text-decoration: none;
}

h1:hover .header-link,
h2:hover .header-link,
h3:hover .header-link {
  text-decoration: underline;
}

@media (max-width: 992px) {
  body {
    margin: 20px;
  }
}
