:root {
  --paper: #faf9f6;
  --ink: #262523;
  --muted: #706d67;
  --line: #dedbd4;
  --accent: #a33628;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: var(--ink); background: var(--paper); font: 16px/1.6 Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
button, a, input, summary { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .skip { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; margin: 0; clip-path: none; left: 12px; top: 12px; padding: 10px; background: var(--paper); z-index: 2; }
.top { width: 100%; max-width: 1120px; margin: 0 auto; padding: 26px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; flex-shrink: 0; text-decoration: none; }
.wordmark img { display: block; width: 44px; height: 44px; }
.header-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 24px; }
.language-picker { position: relative; border: 0; flex-shrink: 0; }
.language-picker summary { padding: 4px 0; font-size: 13px; font-weight: normal; }
.language-picker nav { position: absolute; right: 0; top: 100%; z-index: 3; display: grid; gap: 8px; min-width: 150px; padding: 15px 20px; border: 1px solid var(--line); background: var(--paper); }
.language-picker [aria-current] { color: var(--accent); font-weight: bold; }
.easter-egg { padding: 28px 0; }
.easter-egg h2 { font: normal clamp(28px, 5vw, 44px)/1.2 Georgia, serif; margin: 10px 0 18px; }
nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 13px; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
main { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 28px 80px; flex: 1; }
.intro { margin: clamp(65px, 12vh, 130px) auto 0; text-align: center; }
h1 { margin: 0; font: normal clamp(43px, 6.4vw, 76px)/1.12 Georgia, 'Times New Roman', serif; letter-spacing: -2px; text-wrap: balance; }
.lede { margin: 20px 0 32px; color: var(--muted); font-size: 17px; }
#scan-form { max-width: 700px; margin: auto; }
.input-row { display: flex; gap: 10px; }
input[type=url] { min-width: 0; flex: 1; width: 100%; padding: 15px 17px; color: var(--ink); background: #fff; border: 1px solid #aaa69f; border-radius: 3px; }
input::placeholder { color: #797670; opacity: 1; }
button { padding: 15px 22px; border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: #fff; font-weight: bold; cursor: pointer; white-space: nowrap; }
button:hover { background: #49463f; }
button:disabled { opacity: .6; cursor: wait; }
#scan-status { color: var(--muted); font-size: 14px; margin: 18px 0 0; }
#scan-status:empty { display: none; }
#scan-error { margin: 18px auto 0; max-width: 700px; text-align: left; color: #9b2920; }
.scanner-about { margin: 25px auto 0; max-width: 700px; text-align: center; color: var(--muted); font-size: 13px; }
footer { width: calc(100% - 56px); max-width: 1056px; margin: auto auto 0; padding: 22px 28px 32px; border-top: 1px solid var(--line); }
footer nav { justify-content: center; color: var(--muted); }
#report { max-width: 700px; margin: 50px auto 0; padding: 24px 0 0; border-top: 2px solid var(--ink); scroll-margin-top: 25px; outline: none; }
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font: 12px/1.5 'Courier New', monospace; color: var(--muted); }
.summary { display: flex; align-items: center; gap: 28px; margin: 25px 0; }
.score { display: flex; align-items: baseline; gap: 5px; flex-shrink: 0; }
.score strong { font: normal 84px/1 Georgia, serif; letter-spacing: -5px; }
.score span { font-size: 13px; color: var(--muted); }
.host { margin: 0 0 4px; color: var(--muted); overflow-wrap: anywhere; }
.summary h2 { margin: 0; font-size: 22px; line-height: 1.3; }
.summary p:not(.host) { margin: 8px 0 0; font-size: 14px; }
.bars { border-top: 1px solid var(--line); padding: 16px 0; }
.bar-row { display: grid; grid-template-columns: 80px 1fr 52px; align-items: center; gap: 16px; padding: 5px 0; font-size: 13px; }
.bar-row>span:last-child { text-align: right; color: var(--muted); }
progress { width: 100%; height: 7px; appearance: none; border: 0; background: var(--line); accent-color: var(--accent); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
details { border-top: 1px solid var(--line); }
summary { padding: 15px 0; cursor: pointer; font-size: 14px; font-weight: bold; }
.evidence { list-style: none; padding: 0; margin: 0; }
.evidence li { padding: 13px 0; border-top: 1px dotted var(--line); }
.evidence strong { font-size: 14px; }
.tag { display: inline-block; margin-right: 10px; font: 12px 'Courier New', monospace; color: var(--muted); }
code { font-size: .85em; overflow-wrap: anywhere; }
pre { padding: 16px; overflow-x: auto; background: #eeece6; border: 1px solid var(--line); font-size: 14px; }
.page-scores { margin-top: 12px; }
.page-scores summary { padding: 10px 0; font-size: 13px; }
.page-scores ul { list-style: none; margin: 0 0 12px; padding: 0; max-height: 260px; overflow-y: auto; }
.page-scores li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 0; border-top: 1px dotted var(--line); font-size: 13px; }
.page-scores li span { min-width: 0; overflow-wrap: anywhere; color: var(--muted); }
.page-scores li strong { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.evidence code { display: block; margin-top: 5px; color: var(--muted); white-space: pre-wrap; }
.proof { padding: 12px 0; }
.proof h3, .quality h3 { font-size: 15px; margin: 8px 0; }
.proof h4 { margin: 8px 0; font-size: 14px; }
.proof p, .quality p, .reference, .coverage, .fine { font-size: 13px; color: var(--muted); }
.quality { border-top: 1px solid var(--line); padding: 10px 0; }
.article { max-width: 800px; margin-top: 52px; }
.back { font-size: 12px; color: var(--muted); }
.article h1 { font-size: clamp(36px, 5vw, 58px); margin: 25px 0; letter-spacing: -1px; }
.article h2 { font: bold 25px/1.3 Georgia, serif; margin: 35px 0 12px; }
.article p { margin: 14px 0; }
.article table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rules ul { padding-left: 20px; }
.rules li { margin-bottom: 8px; font-size: 14px; }
.notice { border-left: 2px solid var(--line); padding-left: 16px; color: var(--muted); }
@media (max-width: 600px) {
  .top { padding: 22px 20px; }
  .top nav { gap: 14px; font-size: 12px; }
  main { padding: 0 20px 65px; }
  .intro { margin-top: 65px; }
  h1 { letter-spacing: -1.5px; }
  .lede { font-size: 16px; margin: 18px 0 27px; }
  .input-row { flex-direction: column; }
  button { width: 100%; }
  .scanner-about { max-width: 320px; }
  footer { width: calc(100% - 40px); margin: auto 20px 0; padding: 20px 0 28px; }
  footer nav { gap: 12px 20px; }
  .summary { gap: 18px; }
  .score strong { font-size: 64px; letter-spacing: -3px; }
  .summary h2 { font-size: 19px; }
  .bar-row { grid-template-columns: 85px 1fr 48px; gap: 10px; }
  th, td { padding: 8px 4px; font-size: 12px; }
}
@media (max-width: 360px) {
  .top { align-items: flex-start; }
  .top nav { flex-direction: column; gap: 4px; }
}
