:root {
  color-scheme: light;
  --desk: #f4f7ff;
  --ink: #152646;
  --pencil: #475b7a;
  --rule: #cfd9ec;
  --sheet: #fff;
  --accent: #244dc1;
  --ok: #237359;
}

.top, main, footer { max-width: 1000px; padding-inline: clamp(16px, 4vw, 36px); }
.top { padding-block: 18px 10px; }
.top nav:empty { display: none; }
.brand { font-size: 19px; }
.lang-menu summary { background: var(--sheet); border: 1px solid var(--rule); border-radius: 9px; }
.lang-menu ul { max-height: min(60vh, 30rem); }

.hero { padding: clamp(22px, 4vw, 52px) 0 22px; max-width: 44rem; }
.hero h1 { font-size: clamp(34px, 6vw, 62px); letter-spacing: -.045em; overflow-wrap: anywhere; }
.hero .lead { font-size: clamp(16px, 2.4vw, 19px); }
.tool.sheet { margin: 0; padding: 0; border-radius: 18px; border: 0; box-shadow: 0 12px 35px #1526460c; }
.tool.sheet::before { content: none; }

.word-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-radius: 18px 18px 0 0;
  background: #152646;
  color: #fff;
}
.word-metrics div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 5px;
  padding: clamp(14px, 2.5vw, 26px);
  overflow-wrap: anywhere;
}
.word-metrics div + div { border-inline-start: 1px solid #ffffff29; }
.word-metrics dt { color: #d3def4; font-size: 15px; line-height: 1.3; }
.word-metrics dd {
  margin: 0;
  font: 650 clamp(25px, 4.7vw, 45px)/1.12 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}
.word-metrics div:first-of-type dd { color: #a9cbff; }
.word-metrics [data-metric="reading"] { font-size: clamp(20px, 3.2vw, 36px); }

.word-editor { padding: 14px clamp(14px, 2.5vw, 24px) 0; }
.word-editor-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.word-editor-bar label { font-weight: 700; }
.word-clear {
  min-height: 44px;
  padding: 4px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.word-clear:not(:disabled):hover { background: var(--desk); }
.word-clear:disabled { color: var(--pencil); cursor: default; }
.word-editor textarea {
  display: block;
  width: 100%;
  min-height: clamp(148px, 29vh, 274px);
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: #fbfcff;
  color: var(--ink);
  font: inherit;
  overflow-wrap: anywhere;
}
.word-editor textarea::placeholder { color: var(--pencil); }
.tool .local-note, .word-unsupported { margin: 0; padding: 13px clamp(14px, 2.5vw, 24px) 16px; }
.word-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.info { padding-bottom: 8px; }

@media (max-width: 620px) {
  .word-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .word-metrics div:nth-of-type(3) { border-inline-start: 0; }
  .word-metrics div:nth-of-type(n+3) { border-block-start: 1px solid #ffffff29; }
  .word-metrics dt { font-size: 14px; }
  .word-editor { padding-top: 6px; }
}
