@font-face {
font-family: Charter;
font-style: normal;
font-weight: normal;
font-stretch: normal;
src: url('/fonts/charter/charter_regular.woff2') format('woff2');
}

@font-face {
font-family: Charter;
font-style: italic;
font-weight: normal;
font-stretch: normal;
src: url('/fonts/charter/charter_italic.woff2') format('woff2');
}

@font-face {
font-family: Charter;
font-style: normal;
font-weight: bold;
font-stretch: normal;
src: url('/fonts/charter/charter_bold.woff2') format('woff2');
}

@font-face {
font-family: Charter;
font-style: italic;
font-weight: bold;
font-stretch: normal;
src: url('/fonts/charter/charter_bold_italic.woff2') format('woff2');
}

:root {
  --background: #fff;
  --outer-background: #eae6df;
  --text: #111;
  --text-mute: #666;
  --link: #a14b05;
  --link-visited: #802060;
  --link-active: #a35f8d;
  --decorative-accent: #fc3;
  --decorative-mute: #ccc;
}

@media screen and (prefers-color-scheme: dark) {
  :root {
    --background: #000;
    --outer-background: #110;
    --text: #fff;
    --text-mute: #999;
    --link: #dd8c00;
    --link-visited: #cc3399;
    --link-active: #a65d8d;
    --decorative-accent: #fc3;
    --decorative-mute: #333;
  }
}

body, html {
  font-family: Charter, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--outer-background);
}

body {
  box-sizing: border-box;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 2rem;
  margin-bottom: 2rem;
  background: var(--background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: start;
  font-size: 1.15rem;
  line-height: 1.25;
}

body > header {
  font-size: 1rem;
  display: flex;
  align-items: first baseline;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.meta {
  color: var(--text-mute);
}

body > main {
  flex-grow: 1;
}

body > footer {
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--decorative-mute);
  text-align: center;
  font-size: 1rem;
  background: var(--background);
  color: var(--text-mute);
}

a:link {
  color: var(--link);
}

a:visited {
  color: var(--link-visited);
}

a:active, a:hover {
  color: var(--link-active);
}

body > main p {
  margin: 1rem 0;
}

body > main > aside:first-of-type {
  font-size: 1rem;
  float: right;
}

body > main :not(h1):first-of-type {
  clear: both;
}

body > main h1:first-of-type {
  margin-top: 0;
}

body > main h1, body > main h2, body > main h3, body > main h4, body > main h5 {
  margin: 1rem 0;
}

body > main h1, body > main h2, body > main h3 {
  margin-top: 1.5rem;
}

body > main p img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  height: auto;
  margin: 0;
  vertical-align: baseline;
}

@media screen and (max-width: 480px) {
  body {
    width: 100%;
    padding: 1rem 16px;
  }

  ul, ol {
    padding-left: 1em;
  }

  body > header .meta {
    text-align: right;
  }
}

@media screen and (min-width: 1200px) {
  body {
    width: 100%;
    padding: 2rem 4rem;
  }
}