:root {
  color: #202724;
  background: #f7f7f2;
  font:
    16px/1.5 "Inter",
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --border: #d2d7cc;
  --green: #244d3b;
  --quiet: #536057;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1080px;
  margin: auto;
  padding: 24px clamp(16px, 4vw, 46px) 30px;
}
header,
footer,
.identity,
.footer,
.examples,
.settings,
.scale {
  display: flex;
  align-items: center;
  gap: 12px;
}
header,
footer,
.settings,
.scale {
  justify-content: space-between;
}
header {
  min-height: 50px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.identity {
  font-weight: 650;
}
.monogram {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font:
    italic 24px/1 Georgia,
    serif;
}
.identity a,
.headerlink {
  color: inherit;
  text-decoration: none;
}
.headerlink,
footer,
small,
.scale,
#size {
  font-size: 0.83rem;
  color: var(--quiet);
}
a:hover {
  text-decoration: underline;
}
h1 {
  font:
    normal clamp(37px, 6vw, 64px) / 1.06 Georgia,
    serif;
  letter-spacing: -0.045em;
  margin: 38px 0 12px;
}
.lead {
  font-size: 1.08rem;
  color: #424e46;
  max-width: 690px;
  margin: 0 0 27px;
}
.examples {
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.examples strong {
  font-size: 0.86rem;
  margin-right: 4px;
}
button {
  font: 600 0.87rem inherit;
  font-family: inherit;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--green);
  min-height: 36px;
  padding: 6px 12px;
}
.examples button {
  border-radius: 24px;
  min-height: 32px;
}
button:hover:enabled {
  background: #e8efe7;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
:focus-visible {
  outline: 3px solid #147262;
  outline-offset: 3px;
}
.editors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.panel,
.threshold {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  padding: 18px 20px;
}
.panel {
  display: flex;
  flex-direction: column;
}
.output {
  background: #f0f4ed;
}
.panel label,
h2,
.settings label {
  font-size: 1.03rem;
  font-weight: 650;
  margin: 0;
}
.footer {
  margin-top: auto;
  justify-content: space-between;
}
.output .footer {
  justify-content: start;
  gap: 8px;
}
textarea,
#out {
  width: 100%;
  font: 1.05rem/1.55 inherit;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 13px 0 16px;
  min-height: 130px;
}
textarea {
  resize: vertical;
  border: 1px solid #c4cbbf;
  border-radius: 6px;
  padding: 10px;
  max-height: 40vh;
}
#out {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
mark {
  background: #d6e8cf;
  color: #22432c;
  padding: 1px 3px;
  border-radius: 4px;
  font-weight: 600;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover:enabled {
  background: #163b2a;
}
#status {
  min-height: 35px;
  margin: 8px 2px 8px;
  font-size: 0.86rem;
  color: var(--quiet);
}
.threshold {
  max-width: 100%;
}
.threshold p,
#findings p {
  font-size: 0.9rem;
  color: var(--quiet);
  margin: 10px 0 0;
}
output {
  font-variant-numeric: tabular-nums;
  color: var(--green);
  font-weight: 700;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--green);
  margin: 12px 0 0;
}
#findings {
  margin-top: 23px;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  text-align: left;
  font-size: 0.9rem;
}
th,
td {
  padding: 7px 5px;
  border-bottom: 1px solid var(--border);
}
th {
  color: var(--quiet);
  font-weight: 500;
}
footer {
  margin-top: 26px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
footer a {
  color: var(--green);
}
@media (max-width: 640px) {
  .editors {
    grid-template-columns: 1fr;
  }
  .panel,
  .threshold {
    padding: 15px;
  }
  main {
    padding-top: 12px;
  }
  .headerlink {
    max-width: 130px;
    text-align: right;
  }
  .examples strong {
    flex-basis: 100%;
  }
  textarea,
  #out {
    min-height: 72px;
  }
  .scale {
    gap: 5px;
  }
  .scale span:last-child {
    text-align: right;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

.previous {margin: 14px 0;display: grid;gap: 5px;}
.previous label {font-weight: 600;font-size: .9rem;}
.previous input {box-sizing: border-box;width: 100%;font: inherit;border: 1px solid var(--border);border-radius: 7px;padding: 8px 12px;background: white;color: inherit;}
