:root {
  color-scheme: light;
  --paper: #f7faff;
  --ink: #1d304d;
  --muted: #4f6076;
  --line: #b9c9dd;
  --blue: #174d9f;
  --wash: #e8f0fc;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.site-header, main, footer { width: min(100% - 40px, 800px); margin-inline: auto; }
.site-header { padding-block: 24px; border-bottom: 1px solid var(--line); }
.site-header a { font-size: .94rem; font-weight: 650; text-decoration: none; }
.site-header span { color: var(--muted); font-weight: 400; }
main { padding-block: 34px 40px; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); line-height: 1.12; letter-spacing: -.035em; max-width: 17ch; margin: 0 0 20px; font-weight: 650; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 20px; font-weight: 650; }
p { margin: 0 0 1.1em; }
.intro { max-width: 49ch; color: var(--muted); font-size: 1.12rem; margin-bottom: 30px; }
.inspector { background: white; border: 1px solid var(--line); border-top: 5px solid var(--blue); padding: 24px; border-radius: 0 0 12px 12px; }
label { display: block; margin-bottom: 8px; font-weight: 600; }
textarea { display: block; width: 100%; min-height: 112px; padding: 12px; border: 1px solid #7890af; border-radius: 4px; font: inherit; font-size: 1.2rem; line-height: 1.5; color: var(--ink); background: var(--paper); resize: vertical; }
.note { color: var(--muted); font-size: .85rem; line-height: 1.5; margin: 10px 0 16px; }
.samples { display: flex; flex-wrap: wrap; gap: 8px; }
button { padding: 7px 11px; background: white; color: var(--blue); border: 1px solid var(--line); border-radius: 5px; font: inherit; font-size: .85rem; cursor: pointer; }
button:hover { background: var(--wash); border-color: var(--blue); }
button:disabled { color: var(--muted); cursor: not-allowed; }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 16px; padding-block: 18px; border-block: 1px solid var(--line); }
.counts dt { font-size: .78rem; color: var(--muted); line-height: 1.4; }
.counts dd { font-size: 2rem; font-weight: 650; font-variant-numeric: tabular-nums; margin: 5px 0 0; line-height: 1.2; }
.clusters { margin: 0; padding-left: 2.2em; }
.clusters li { padding: 10px 0 10px 8px; border-bottom: 1px solid #e0e7f0; overflow-wrap: anywhere; }
.clusters li::marker { color: var(--muted); font-size: .8rem; }
.cluster-glyph { display: block; font-size: 1.3rem; unicode-bidi: isolate; white-space: pre-wrap; min-height: 1.6em; }
.cluster-codes { display: block; color: var(--muted); font-family: ui-monospace, monospace; font-size: .78rem; }
.notice { margin-top: 18px; padding: 12px; background: var(--wash); }
.explanation { max-width: 68ch; padding-top: 42px; }
.explanation p { font-family: Georgia, 'Times New Roman', serif; font-size: 1.08rem; line-height: 1.75; }
footer { padding-block: 24px 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.publication-intro { max-width: 58ch; }
.article-link { margin-top: 32px; border-left: 5px solid var(--blue); padding: 10px 0 6px 20px; }
.article-link h2 { margin-bottom: 10px; }
.article-link p { color: var(--muted); max-width: 54ch; }
@media (max-width: 480px) {
  .site-header, main, footer { width: calc(100% - 32px); }
  .site-header { padding-block: 18px; }
  main { padding-top: 26px; }
  .inspector { padding: 18px 14px; }
  .counts { gap: 8px; }
  .counts dt { min-height: 2.8em; }
}
