:root {
  color-scheme: light dark;
  --accent: #2456e6;
  --line: #8884;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, sans-serif;
}
header, main, footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 16px 20px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.brand { font-weight: 700; text-decoration: none; color: inherit; }
h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.15; margin: 12px 0; text-wrap: balance; }
h2 { margin-top: 2.2rem; }
h3 { margin-bottom: 0; font-size: 1rem; }
.lede { font-size: 1.1rem; }
.drop {
  display: block;
  margin: 20px 0 12px;
  padding: 36px 20px;
  border: 2px dashed var(--drop-border, var(--accent));
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
}
.drop.over { background: #2456e61a; }
.drop input { display: block; margin: 14px auto 0; max-width: 100%; }
.quality { display: flex; align-items: center; gap: 12px; }
.quality input { flex: 1; }
#results { list-style: none; padding: 0; }
#results li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
#results .error { color: #c53030; }
.button {
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.links { padding-left: 1.2rem; }
.links.big { font-size: 1.1rem; line-height: 2; }
.ad { margin: 28px 0; min-height: 100px; }
.ad small { display: block; opacity: .6; font-size: .75rem; }
footer { margin-top: 40px; opacity: .7; font-size: .9rem; }
:focus-visible { outline: 3px solid var(--focus-ring, var(--accent)); outline-offset: 2px; }
.field { display: block; margin: 16px 0; }
.field input[type="text"] { display: block; margin-top: 4px; width: 100%; max-width: 12rem; padding: 8px 10px; font: inherit; border: 1px solid var(--line); border-radius: 6px; }
.check { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.field input:disabled { opacity: .5; }
.drop strong { display: block; }
.drop .hint { display: block; font-size: .9rem; opacity: .75; }
#fontlist { list-style: none; padding: 0; margin: 0 0 12px; }
#fontlist li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
#fontlist button { font: inherit; font-size: .9rem; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; color: inherit; cursor: pointer; }
button.button { border: 0; font: inherit; font-weight: 600; padding: 10px 22px; cursor: pointer; }
button.button:disabled { opacity: .45; cursor: not-allowed; }
#report { margin: 20px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; }
#report:empty { margin: 0; padding: 0; border: 0; }
#report p { margin: 4px 0; }
#report .miss, #report .error, #fontlist .error { color: #c53030; font-weight: 600; }
#report .size { opacity: .75; font-size: .9rem; }
#report .button { display: inline-block; margin: 10px 0 4px; }
.limits { font-size: .9rem; opacity: .8; }
.drop, .brand { overflow-wrap: anywhere; }
.field input[type="text"], #fontlist button { border-color: #767676; }
.drop:has(input:disabled) { opacity: .45; cursor: default; }
@media (prefers-color-scheme: dark) {
  :root { --focus-ring: #7194ff; }
  .drop { --drop-border: #7194ff; }
  #report .miss, #report .error, #fontlist .error { color: #ff8a8a; }
}
