:root {
  color-scheme: light;
  --ink: #142c2c;
  --paper: #f7f5ed;
  --line: #cdd3c7;
  --accent: #a74224;
  --muted: #526560;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.65 Arial,
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
textarea:focus-visible {
  outline: 3px solid #137c81;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  background: white;
  padding: 10px;
  z-index: 2;
}
.skip:focus {
  top: 12px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 5%;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  text-decoration: none;
  letter-spacing: 0.13em;
  font: 700 12px/1.4 monospace;
  display: flex;
  align-items: center;
  gap: 16px;
}
.mark {
  font-size: 25px;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 10px;
}
.edition,
.eyebrow {
  font: 12px/1.6 monospace;
  letter-spacing: 0.12em;
}
main {
  max-width: 1210px;
  margin: auto;
  padding: 0 35px;
}
.hero {
  padding: 72px 0 42px;
}
.eyebrow {
  color: var(--accent);
  font-weight: bold;
}
h1 {
  font:
    normal clamp(35px, 5vw, 65px)/1.12 Georgia,
    serif;
  letter-spacing: -0.035em;
  margin: 20px 0 25px;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
.lede {
  max-width: 780px;
  font-size: 19px;
  color: var(--muted);
}
.facts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.facts span {
  border: 1px solid var(--line);
  padding: 7px 13px;
  font: 12px/1.6 monospace;
}
.boundary {
  border-left: 4px solid var(--accent);
  background: #eee9dc;
  padding: 20px 25px;
  font-size: 14px;
}
.boundary p {
  margin: 6px 0;
}
.section-head {
  margin: 56px 0 24px;
}
h2 {
  font:
    normal clamp(27px, 3vw, 36px)/1.2 Georgia,
    serif;
  margin: 10px 0;
}
h3 {
  font:
    normal 24px/1.25 Georgia,
    serif;
}
p {
  margin: 10px 0 16px;
}
.flow {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.flow li {
  padding: 24px;
  border-right: 1px solid var(--line);
}
.flow li:last-child {
  border: 0;
}
.flow b {
  font: 11px/1.6 monospace;
  color: var(--accent);
}
.flow strong {
  display: block;
  margin-top: 15px;
}
.flow p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}
.candidates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.candidates article {
  border: 1px solid var(--line);
  background: #fffef9;
  padding: 28px;
}
.pill {
  font: 11px/1.5 monospace;
  letter-spacing: 0.07em;
  padding: 5px 8px;
}
.safe {
  background: #dce7d9;
  color: #274c34;
}
.unsafe {
  background: #f1dcd2;
  color: #84351c;
}
code,
pre {
  font-family: monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.candidates code {
  display: block;
  margin: 25px 0 18px;
}
button {
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  padding: 12px 18px;
  cursor: pointer;
  font:
    700 14px/1.4 Arial,
    sans-serif;
  border-radius: 2px;
}
button:hover {
  background: #244d4d;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: transparent;
  color: var(--ink);
}
.result {
  background: var(--ink);
  color: #fcf9ed;
  padding: 24px 28px;
  margin: 24px 0;
}
.result p {
  font: 700 17px/1.5 monospace;
  margin: 0;
}
.result pre {
  white-space: pre-wrap;
  color: #f0c9a1;
  margin-bottom: 0;
}
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 25px;
  padding-left: 20px;
  font-size: 14px;
}
label {
  font-weight: bold;
  display: block;
  margin-top: 25px;
}
.hint {
  color: var(--muted);
  font-size: 13px;
}
#provenance {
  overflow-wrap: anywhere;
}
textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #89998f;
  background: white;
  color: var(--ink);
  font: 12px/1.55 monospace;
  resize: vertical;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
}
.actions a {
  font-size: 14px;
}
.lower {
  border-top: 1px solid var(--line);
  padding-top: 42px;
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 65px;
}
.ledger a {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 14px;
}
.lower p {
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding: 25px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font: 11px/1.6 monospace;
  color: var(--muted);
}
footer p {
  max-width: 65%;
}
@media (max-width: 760px) {
  header {
    padding: 18px 20px;
  }
  .edition {
    display: none;
  }
  main {
    padding: 0 20px;
  }
  .hero {
    padding-top: 40px;
  }
  .lede {
    font-size: 17px;
  }
  .flow {
    grid-template-columns: 1fr 1fr;
  }
  .flow li:nth-child(2) {
    border-right: 0;
  }
  .flow li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .candidates,
  .lower {
    grid-template-columns: 1fr;
  }
  .lower {
    gap: 20px;
  }
  .candidates article {
    padding: 23px;
  }
  .section-head {
    margin-top: 40px;
  }
  .result {
    padding: 20px;
  }
  .actions {
    align-items: stretch;
  }
  .actions button {
    width: 100%;
  }
  footer {
    display: block;
  }
  footer p {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
