:root {
  color-scheme: light;
  --ink: #263c32;
  --paper: #f6f5ef;
  --green: #557963;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.8 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    sans-serif;
}
header {
  position: sticky;
  top: 0;
  background: #f6f5eff5;
  border-bottom: 1px solid #dce1d7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  z-index: 2;
}
header > div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}
.mark {
  background: var(--green);
  color: white;
  border-radius: 9px;
  padding: 1px 9px;
}
small {
  font-size: 8px;
  letter-spacing: 1.5px;
  display: block;
  margin-left: 4px;
}
#status {
  font-size: 11px;
  color: var(--green);
}
main {
  max-width: 760px;
  margin: 30px auto;
  padding: 0 22px 70px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: #7b8b79;
}
h1 {
  font:
    32px/1.5 "Songti SC",
    serif;
  margin: 8px 0;
}
#hint {
  color: #7b8177;
  font-size: 13px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #dce1d7;
  padding: 16px 0;
  font-size: 12px;
  position: sticky;
  top: 70px;
  background: var(--paper);
}
.toolbar > span {
  margin-right: auto;
}
button {
  font: inherit;
  border: 1px solid #cbd4c7;
  background: transparent;
  border-radius: 7px;
  padding: 5px 10px;
  color: inherit;
}
article {
  padding: 26px 0;
  border-bottom: 1px solid #dce1d7;
}
.question {
  font-size: 13px;
  color: #7a8277;
  white-space: pre-wrap;
  margin-bottom: 16px;
}
.answer {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}
.error {
  color: #a35c49;
}
footer {
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
  color: #9a9f94;
  padding: 24px;
}
.large .answer {
  font-size: 21px;
}
.toolbar label {
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  article {
    animation: appear 0.25s ease;
  }
  @keyframes appear {
    from {
      opacity: 0.5;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
