/* CONTENTUM Check web UI. Light Contentum look: paper, ink, one signal red. No external requests. */
@font-face { font-family: "Anton"; src: url(fonts/anton.woff2) format("woff2"); font-display: swap; }
:root {
  --paper: #f3f1ea; --surface: #ffffff; --ink: #0a0a0b; --text: #1a1a1c; --muted: #5c5a55;
  --hair: rgba(10, 10, 11, .12); --hair2: rgba(10, 10, 11, .24);
  --signal: #e5484d; --signal-deep: #b8262b; --ok: #0b7a4b; --warn: #a14a00;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: Anton, Impact, "Arial Narrow", sans-serif;
  --pad: clamp(20px, 3.4vw, 48px);
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--sans); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 0 var(--pad); border-bottom: 1px solid var(--hair); }
.brand { display: flex; align-items: baseline; gap: 12px; }
.wm { font-weight: 600; font-size: 16px; letter-spacing: .14em; color: var(--ink); }
.wm i { font-style: normal; color: var(--signal); }
.tag { font: 12px var(--mono); color: var(--muted); }
.top nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--ink); }
.ver { font: 12px var(--mono); color: var(--ink); }
.lang { font: 12px var(--mono); color: var(--ink); background: transparent; border: 1px solid var(--muted); border-radius: 4px; padding: 2px 4px; max-width: 11em; min-width: 0; }
.lang option { color: #000; }

main { flex: 1; display: flex; flex-direction: column; }
.intro { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px var(--pad); gap: 24px; }
.kicker { margin: 0; font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--signal-deep); }
h1 { margin: 0; max-width: 1100px; font: 400 clamp(52px, 8.4vw, 112px)/1 var(--display); letter-spacing: -.01em; text-transform: uppercase; color: var(--ink); }
.lede { margin: 0; max-width: 640px; font-size: 20px; line-height: 30px; color: var(--muted); }
.form { margin-top: 16px; width: min(760px, 100%); }
.row { display: flex; gap: 8px; height: 64px; }
input#domain { flex: 1; min-width: 0; padding: 0 24px; font: 20px var(--mono); color: var(--ink); background: var(--surface); border: 1px solid var(--hair2); border-radius: 4px; }
input#domain::placeholder { color: var(--muted); }
button { font-family: var(--sans); cursor: pointer; }
#go { padding: 0 32px; font-weight: 500; font-size: 16px; color: var(--paper); background: var(--ink); border: 0; border-radius: 4px; }
#go:hover { background: #26262b; }
#go[disabled] { opacity: .6; cursor: progress; }
.note { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.error { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: var(--signal-deep); }

.result .rhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 32px var(--pad) 0; }
.label { font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rdomain { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.dom { font: 500 24px var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.ghost { height: 40px; padding: 0 20px; font-weight: 500; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--hair2); border-radius: 4px; white-space: nowrap; }
.ghost:hover { border-color: var(--ink); }
.rbody { display: flex; gap: 64px; padding: 40px var(--pad) 64px; }
.grade { display: flex; flex-direction: column; gap: 24px; width: 320px; flex-shrink: 0; }
.letter { margin-top: -24px; font: 400 288px/300px var(--display); color: var(--signal-deep); }
.letter.good { color: var(--ok); }
.score { margin-top: -8px; font: 500 32px var(--mono); color: var(--muted); }
.score b { color: var(--ink); font-weight: 500; }
.counts { margin: 0; padding-top: 24px; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.counts div { display: flex; justify-content: space-between; }
.counts dt { margin: 0; } .counts dd { margin: 0; font-family: var(--mono); color: var(--ink); }
.c-fail dt { color: var(--signal-deep); } .c-warn dt { color: var(--warn); } .c-pass dt { color: var(--ok); }
.meta { margin: 0; font: 12px/18px var(--mono); color: var(--muted); }
.linkbtn { align-self: flex-start; padding: 0; font-size: 14px; color: var(--ink); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }

.findings { flex: 1; min-width: 0; }
.fgroup { margin: 0 0 40px; }
.fgroup h3 { margin: 0 0 12px; font: 400 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.fgroup.fail h3 { color: var(--signal-deep); } .fgroup.warn h3 { color: var(--warn); } .fgroup.pass h3 { color: var(--ok); }
.f { display: flex; gap: 24px; padding: 14px 0; border-top: 1px solid var(--hair); }
.fgroup:last-child .f:last-child { border-bottom: 1px solid var(--hair); }
.f .st { width: 48px; flex-shrink: 0; font: 500 12px/22px var(--mono); text-transform: uppercase; }
.f.fail .st { color: var(--signal-deep); } .f.warn .st { color: var(--warn); } .f.pass .st { color: var(--ok); }
.f .ti { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.f .ti b { font-weight: 500; font-size: 15px; line-height: 22px; color: var(--ink); }
.f .ti small { font: 12px var(--mono); color: var(--muted); text-transform: uppercase; }
.f .tx { flex: 1; min-width: 0; font-size: 14px; line-height: 22px; color: var(--muted); }
.f.fail { padding: 20px 0; } .f.fail .tx { color: var(--text); }
.f .fixline { margin-top: 12px; padding-inline-start: 14px; border-inline-start: 2px solid var(--signal-deep); color: var(--muted); overflow-wrap: anywhere; }
.f.warn .fixline { border-inline-start-color: var(--warn); }
.f code { font: 13px var(--mono); color: var(--ink); }
.f .tg { width: 64px; flex-shrink: 0; text-align: end; }
.f .tg button { padding: 0; font-size: 14px; line-height: 22px; color: var(--ink); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px var(--pad); background: var(--ink); }
.cta h2 { margin: 0 0 12px; font: 400 clamp(36px, 4vw, 56px)/1.07 var(--display); text-transform: uppercase; color: var(--paper); }
.cta p { margin: 0; max-width: 760px; font-size: 16px; line-height: 24px; color: #a3a19a; }
.btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; font-weight: 600; font-size: 16px; color: var(--ink); background: var(--signal); border-radius: 4px; text-decoration: none; }
.btn:hover { background: #ee6a6e; }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 16px var(--pad); border-top: 1px solid var(--hair); font: 12px var(--mono); color: var(--muted); }
.foot p { margin: 0; } .foot code { font: inherit; color: var(--ink); }
.groups { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; text-transform: uppercase; color: var(--ink); }
.groups span { color: var(--muted); }

@media (max-width: 640px) {
  .top nav { gap: 12px; }
  .top nav a:nth-child(2) { display: none; }
  .lang { max-width: 9em; }
}
@media (max-width: 900px) {
  .top nav { gap: 16px; } .top nav a:nth-child(3), .ver { display: none; }
  .row { flex-direction: column; height: auto; } input#domain { height: 56px; } #go { height: 52px; }
  .lede { font-size: 18px; line-height: 28px; }
  .result .rhead { flex-direction: column; align-items: flex-start; } .rdomain { flex-direction: column; gap: 4px; }
  .rbody { flex-direction: column; gap: 32px; }
  .grade { width: 100%; display: grid; grid-template-columns: auto 1fr; column-gap: 24px; row-gap: 12px; align-items: end; }
  .grade .label { grid-column: 1 / -1; } .letter { margin-top: 0; font-size: 160px; line-height: 168px; grid-row: 2 / 4; }
  .score { margin: 0; font-size: 24px; } .counts { grid-column: 1 / -1; flex-direction: row; gap: 24px; }
  .counts div { gap: 8px; } .meta, .linkbtn { grid-column: 1 / -1; }
  .f { flex-wrap: wrap; gap: 8px 16px; } .f .ti { width: calc(100% - 64px); } .f .tx { flex-basis: 100%; }
  .f .tg { margin-inline-start: auto; width: auto; }
  .cta { flex-direction: column; align-items: flex-start; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .ghost, #go { transition: background-color .15s ease, border-color .15s ease; } }

.f.pass .ti small { display: none; }
