:root {
  --body-sans-font: Arial, sans-serif;
  --body-preformatted-font: "Courier New", monospace;
  --body-title-font: TrajanProRegular, trajan, serif;

  --background: #1d497d;
  --text: #fff;
  --text-selection: #99c2ff;
  --preformatted-background: #1d497d;
  --link-foreground: #fff;
  --link-background: initial;
  --blockquote-border-left: 1px solid #aabacd;

  --progress-bar-outline: #99c2ff solid 4px;
  --progress-bar-fill: #99c2ff;
}
@media (prefers-color-scheme: light) {
  :root {
    --background: #fff;
    --text: #212529;
    --text-selection: #99c2ff;
    --preformatted-background: #fff;
    --link-foreground: #2c6bac;
    --link-background: initial;
    --blockquote-border-left: 1px solid #ddd;
  }
}

@font-face {
  font-family: "TrajanProRegular";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://cdn.cul.columbia.edu/ldpd-toolkit/fonts/trajanpro-regular-webfont.woff") format("woff2");
}

main {
  font-family: var(--body-sans-font);
  max-width: 50rem;
  padding: 2rem;
  margin: auto;
}

::selection {
  background: var(--text-selection);
}

body {
  background: var(--background);
  color: var(--text);
}

body,
html {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.centered-div {
  text-align: center;
}

#status {
  font-variant-numeric: tabular-nums;
}

.centered-div {
  text-align: center;
}

#status {
  font-variant-numeric: tabular-nums;
}

#progress {
  display: none;
  width: min(20rem, 90%);
  height: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  margin: 1rem 0 2rem;
  outline-color: var(--progress-bar-outline) !important;
  outline-offset: 2px;
  outline-style: solid;
  outline-width: 4px;
}

.bar-inner {
  background-color: var(--progress-bar-fill) !important;
  height: 100%;
  width: 0;
  transition: width 0.25s ease-in;
}

@media (prefers-reduced-motion: no-preference) {
  .bar-inner {
    transition: width 0.25s ease-in;
  }
}

pre {
  background-color: var(--preformatted-background);
  padding: 1em;
  border: 0;
  font-family: var(--body-preformatted-font);
}

a,
a:active,
a:visited {
  color: var(--link-foreground);
  background-color: var(--link-background);
}

h1,
h2,
h3,
h4,
h5 {
  margin-bottom: 0.1rem;
  font-family: var(--body-title-font);
}

blockquote {
  border-left: var(--blockquote-border-left);
  margin: 0.5em 10px;
  padding: 0.5em 10px;
}

footer {
  text-align: center;
}
