body {
  width: 87.5%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12.5%;
  font-family: "Alegreya", serif;
  max-width: 1400px;
  background-color: #fcf7ef;
  color: #242521;
}
@media (prefers-color-scheme: dark) {
  body {
    background-color: #0f0e06;
    color: #cfbcba;
  }
}

a {
  color: inherit;
  text-decoration-color: #c4c0b6;
  font-family: "Alegreya SC", serif;
}
@media (prefers-color-scheme: dark) {
  a {
    text-decoration-color: #58514f;
  }
}

h1, h2, h3 {
  font-family: "Alegreya Sans", sans-serif;
}

h1 {
  font-weight: 400;
  margin-top: 4rem;
  margin-bottom: 1rem;
  font-size: 3rem;
  line-height: 1;
}

h2 {
  font-weight: 400;
  margin-top: 2rem;
  font-size: 2.2rem;
  line-height: 1;
}

h3 {
  font-weight: 500;
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

h4 {
  font-weight: 500;
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: "Alegreya Sans SC", sans-serif;
  line-height: 1;
}

hr {
  display: block;
  height: 1px;
  width: 55%;
  border: 0;
  border-top: 1px solid #c4c0b6;
  margin: 1em 0;
  padding: 0;
}
@media (prefers-color-scheme: dark) {
  hr {
    border-color: #58514f;
  }
}

p,
dl,
ol,
ul {
  font-size: 1.333rem;
  line-height: 1.6rem;
}

footer p {
  font-family: "Alegreya Sans", sans-serif;
  margin-block-start: 0;
  font-size: 1.2rem;
  color: #59786f;
}
@media (prefers-color-scheme: dark) {
  footer p {
    color: #887c8a;
  }
}

p {
  margin-top: 1.4rem;
  margin-bottom: 1.4rem;
  padding-right: 0;
  vertical-align: baseline;
  width: 55%;
}

p.subtitle {
  margin-top: -1rem;
  color: #59786f;
  font-family: "Alegreya Sans", sans-serif;
  font-style: italic;
}
@media (prefers-color-scheme: dark) {
  p.subtitle {
    color: #887c8a;
  }
}

blockquote {
  background-color: #f0ece0;
  border-left: 3px solid #7f475a;
  padding: 0.5em 1em;
  margin: 0;
  margin-inline-start: -1em;
  width: 55%;
}
blockquote p {
  width: 100%;
}
blockquote p:first-child {
  margin-block-start: 0;
}
blockquote p:last-child {
  margin-block-end: 0;
}
@media (prefers-color-scheme: dark) {
  blockquote {
    background-color: #26211d;
    border-color: #70a89f;
  }
}

nav > ul {
  list-style-type: none;
  padding: 0;
}
nav > ul > li > a {
  font-family: "Alegreya Sans SC", sans-serif;
}

code {
  color: #7f475a;
  font-family: "Roboto Mono", monospace, monospace;
  font-size: 0.75em;
}
@media (prefers-color-scheme: dark) {
  code {
    color: #70a89f;
  }
}

pre > code {
  width: 70%;
  overflow-x: auto;
  display: block;
  font-size: 1em;
}

pre.fullwidth > code {
  width: 90%;
}

.fullwidth {
  max-width: 90%;
  clear: both;
}

@media (max-width: 760px) {
  body {
    width: 84%;
    padding-left: 8%;
    padding-right: 8%;
  }
  hr,
  p,
  pre > code,
  blockquote {
    width: 100%;
  }
}
/** Yip! */
yip-repl {
  display: block;
  margin: 1.4rem 0;
}

yip-repl:not(:defined) {
  box-sizing: border-box;
  width: 55%;
  padding: 0.5rem 0.7rem;
  background-color: #f0ece0;
  color: #242521;
  font: 0.9rem/1.35 "Roboto Mono", monospace, monospace;
  white-space: pre-wrap;
}

yip-repl textarea,
yip-repl pre {
  box-sizing: border-box;
  width: 55%;
  border: 0;
  border-radius: 0;
  color: #242521;
  font: 0.9rem/1.35 "Roboto Mono", monospace, monospace;
}

yip-repl textarea {
  display: block;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: scroll;
  background-color: #f0ece0;
  margin: 0.5rem 0 0.35rem;
  padding: 0.5rem;
  field-sizing: content;
  min-height: 3lh;
  max-height: 16lh;
  resize: none;
  caret-color: #7f475a;
}

yip-repl button {
  appearance: none;
  margin: 0 0 0.65rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid #7f475a;
  border-radius: 0;
  background-color: #7f475a;
  color: #fcf7ef;
  font: 700 0.9rem/1.2 "Alegreya Sans", sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

yip-repl button:hover {
  border-color: #242521;
  background-color: #242521;
}

yip-repl button:disabled {
  cursor: progress;
  opacity: 0.7;
}

yip-repl pre {
  min-height: 1.35rem;
  margin: 0;
  background: none;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

yip-repl pre[hidden] {
  display: none;
}

yip-repl pre > code {
  width: 100%;
  color: inherit;
  font: inherit;
}

yip-repl[data-empty] pre > code::after {
  content: "no output";
  color: #59786f;
  font-family: "Alegreya Sans", sans-serif;
  font-style: italic;
}

yip-repl[data-error] pre {
  padding-left: calc(0.7rem - 3px);
  border-left: 3px solid #dd0020;
  color: #dd0020;
}

yip-repl textarea:focus-visible,
yip-repl button:focus-visible {
  outline: 2px solid #7f475a;
  outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  yip-repl:not(:defined),
  yip-repl textarea {
    background-color: #26211d;
  }
  yip-repl:not(:defined),
  yip-repl textarea,
  yip-repl pre {
    color: #cfbcba;
  }
  yip-repl textarea {
    caret-color: #70a89f;
  }
  yip-repl button {
    border-color: #70a89f;
    background-color: #70a89f;
    color: #0f0e06;
  }
  yip-repl button:hover {
    border-color: #cfbcba;
    background-color: #cfbcba;
  }
  yip-repl[data-empty] pre > code::after {
    color: #887c8a;
  }
  yip-repl[data-error] pre {
    border-color: #f06a3f;
    color: #f06a3f;
  }
  yip-repl textarea:focus-visible,
  yip-repl button:focus-visible {
    outline-color: #70a89f;
  }
}
@media (max-width: 760px) {
  yip-repl:not(:defined),
  yip-repl textarea,
  yip-repl pre {
    width: 100%;
    max-width: none;
  }
}
