/* Paper and ink. The favicon disc uses the same paper hex. */
:root {
  --paper: #f4f1ea;
  --ink: #1c1915;
  --soft: #534e45;
  --whisper: #949088;
  color-scheme: light only;
}

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/CourierPrime-Regular.woff2") format("woff2"),
    url("../fonts/CourierPrime-Regular.ttf") format("truetype");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0 auto;
  max-width: 44rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 2.75rem 1.2rem 3.5rem;
  font-family: "Courier Prime", "Courier New", Courier, ui-monospace, monospace;
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 400;
  hyphens: manual;
}

@media (min-width: 720px) {
  body {
    padding: 8vh 2.25rem 4.5rem;
    font-size: 1.0625rem;
  }
}

h1,
h2,
p {
  margin: 0;
  font-weight: 400;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

main > * {
  flex-shrink: 0;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

#main:focus {
  outline: none;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 3;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.4rem 0.65rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  background: var(--paper);
  color: var(--ink);
}

.sr-only {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.seal {
  display: block;
  width: 84px;
  height: 84px;
  color: var(--ink);
}

.seal-line,
.seal-iris {
  fill: none;
  stroke: currentColor;
}

.seal-node,
.seal-pupil {
  fill: currentColor;
  stroke: none;
}

.seal-eye {
  fill: var(--paper);
  stroke: currentColor;
}

.kicker {
  margin-top: 1.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin-top: 1.25rem;
  font-size: 1.28rem;
  line-height: 1.4;
}

@media (max-width: 540px) {
  h1 .rest {
    display: block;
  }
}

hr {
  width: 100%;
  height: 0;
  margin: 1.55rem 0 1.45rem;
  border: 0;
  border-top: 1px solid var(--ink);
}

h2 {
  margin-bottom: 0.95rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

section + section {
  margin-top: 3.15rem;
}

.field {
  position: relative;
  display: grid;
  grid-template-columns: 11ch minmax(0, 1fr);
  column-gap: 1rem;
  align-items: baseline;
  line-height: 1.5;
}

.field-val {
  min-width: 0;
  overflow-wrap: anywhere;
}

.assessment {
  margin-top: 1.45rem;
  max-width: 38em;
}

.caret {
  display: inline-block;
  width: 0.56ch;
  height: 0.95em;
  margin-left: 0.04em;
  background: currentColor;
  transform: translateY(0.12em);
  animation: blink 1.05s steps(1, end) infinite;
}

@keyframes blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.redact {
  padding: 0.02em 0.1em;
  border-radius: 1px;
  background: var(--ink);
  color: transparent;
  cursor: help;
  white-space: nowrap;
}

.redact:hover,
.redact:focus {
  background: transparent;
  color: inherit;
  outline: 1px dashed var(--ink);
  outline-offset: 3px;
}

.footnote {
  margin-top: 1.2rem;
  max-width: 36em;
  color: var(--soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

noscript p {
  margin-top: 0.35rem;
}

main > p + p:not(.whisper) {
  margin-top: 1.05rem;
}

.orders {
  margin: 0;
  padding: 0;
  list-style: none;
}

.orders li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  column-gap: 0.35rem;
  margin: 0.82rem 0;
  line-height: 1.45;
}

.colophon {
  margin-top: 3.25rem;
}

.whisper {
  margin-top: auto;
  padding-top: 3.5rem;
  color: var(--whisper);
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  user-select: all;
}

@media (prefers-reduced-motion: reduce) {
  .caret {
    display: none;
    animation: none;
  }
}

@media (forced-colors: active) {
  .seal-eye {
    fill: Canvas;
    stroke: CanvasText;
  }

  .seal-line,
  .seal-iris {
    stroke: CanvasText;
  }

  .seal-node,
  .seal-pupil {
    fill: CanvasText;
  }

  .redact {
    background: CanvasText;
    color: transparent;
    forced-color-adjust: none;
  }

  .redact:hover,
  .redact:focus {
    background: transparent;
    color: CanvasText;
    outline-color: CanvasText;
  }
}

@media print {
  body {
    min-height: 0;
    padding: 0;
  }

  .caret {
    display: none;
  }

  .redact {
    background: transparent;
    color: inherit;
  }

  .whisper {
    color: var(--ink);
  }
}
