:root {
  --blue: #00b7ff;
  --pink: #ff89a0;
  --blue-text: #1da7dd;
  --pink-text: #da2a3b;
  --bg: #eeeeee;
  --fg: #272226;
  --b2: #e1e1e1;
  --f2: #505050;
  --hl: #000000;
  --ov: rgba(0, 0, 0, 0.15);
  --transition: 75ms linear;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  width: 56ch;
  max-width: 100%;
  margin: auto;
  padding: 1em;
  background: var(--bg);
  color: var(--fg);
  font-family: "Source Serif Pro", "Noto Serif", serif;
  font-size: max(1.6rem, min(1.2rem + 0.75vw, 1.95rem));
  line-height: 1.35;
  letter-spacing: 0;
}

header,
main,
footer {
  width: 100%;
}

header {
  margin: 0 0 2em;
}

main {
  margin: 0 auto;
}

section,
hgroup,
p,
blockquote,
dl {
  margin: 1em 0;
}

h1,
h2,
h3 {
  color: var(--pink-text);
  font-family: Lato, "Source Sans Pro", "Noto Sans", "Segoe UI", sans-serif;
  line-height: 1.1;
  overflow-wrap: break-word;
}

h1 {
  margin: 1em 0;
  text-align: center;
  font-size: 1.55em;
  font-weight: 900;
}

h2 {
  margin-top: 2em;
  font-size: 1.2em;
  font-weight: 800;
}

h3 {
  margin: 1.25em 0 0.35em;
  color: var(--f2);
  font-size: 1em;
  font-weight: 700;
}

hgroup {
  text-align: center;
}

hgroup p {
  margin: 1em 0;
  color: var(--f2);
  font-family: Inconsolata, "Source Code Pro", monospace;
}

a {
  color: var(--blue-text);
  text-decoration: none;
  transition: color var(--transition), text-decoration var(--transition);
}

a:visited {
  color: var(--blue-text);
}

a:hover,
a:focus-visible {
  color: var(--blue);
  text-decoration: underline;
}

blockquote {
  margin-left: 0.5ch;
  padding-left: 1.4ch;
  border-left: 0.2ch solid var(--pink-text);
  color: var(--f2);
}

blockquote p {
  margin: 0.75em 0;
}

code,
pre,
.ascii-art,
.key-value,
.link-line,
footer {
  font-family: Inconsolata, "Source Code Pro", "Noto Mono", monospace;
}

code {
  color: var(--blue-text);
}

code::before,
code::after {
  color: var(--f2);
}

code::before {
  content: "`";
}

code::after {
  content: "`";
}

.ascii-art {
  margin: 0 auto 1.5em;
  padding: 1.5em 0 0.25em;
  color: var(--pink-text);
  font-size: 0.82em;
  line-height: 1;
  text-align: center;
  white-space: pre;
  overflow-x: auto;
}

.link-line {
  color: var(--pink-text);
}

.key-value {
  display: block;
}

.key-value div {
  display: grid;
  grid-template-columns: minmax(8ch, max-content) minmax(0, 1fr);
  column-gap: 1ch;
  margin: 0.35em 0;
}

.key-value dt {
  color: var(--hl);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.key-value dt::after {
  content: "=";
  margin-left: 0.5ch;
  color: var(--f2);
  font-weight: 400;
}

.key-value dd {
  margin: 0;
}

.pdf-frame {
  display: block;
  width: 100%;
  height: 82vh;
  min-height: 620px;
  margin: 1.5em 0;
  background: #ffffff;
  border: 1px solid var(--ov);
}

footer {
  margin: 2em 0;
  padding-top: 1em;
  border-top: 1px solid var(--ov);
  color: var(--f2);
  text-align: center;
}

footer p {
  margin: 0;
}

@media (max-width: 560px) {
  body {
    width: 100%;
    font-size: 1.58rem;
  }

  .ascii-art {
    font-size: 0.68em;
  }

  .key-value div {
    grid-template-columns: 1fr;
  }

  .key-value dt {
    text-align: left;
  }
}

@media (max-width: 380px) {
  .ascii-art {
    font-size: 0.58em;
  }
}
