
:root {
	color-scheme: light dark;
	--bg: #f8f7f4;
	--surface: #ffffff;
	--sunken: #f1efea;
	--ink: #1d1c1a;
	--ink-2: #54514b;
	--ink-3: #6e6a63;
	--line: #e2dfd8;
	--line-strong: #c9c5bc;
	--accent: #1c5fb8;
	--on-ink: #ffffff;
	--bad: #ae2a20;
	--bad-soft: #fbeeec;
	--warn: #8f5500;
	--warn-soft: #fbf3e4;
	--info: #2a6390;
	--info-soft: #edf3f8;
	--ok: #24704a;
	--ok-soft: #eaf4ee;
	--unknown: #6a665f;
	--unknown-soft: #efede8;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #151412;
		--surface: #1e1d1a;
		--sunken: #262521;
		--ink: #f1efea;
		--ink-2: #bdb9b0;
		--ink-3: #a09b91;
		--line: #33312c;
		--line-strong: #4a4740;
		--accent: #7fb2f0;
		--on-ink: #151412;
		--bad: #f28b80;
		--bad-soft: #33201d;
		--warn: #e3ac55;
		--warn-soft: #2f2719;
		--info: #85b7de;
		--info-soft: #1c2831;
		--ok: #70c28f;
		--ok-soft: #1a2a21;
		--unknown: #a8a399;
		--unknown-soft: #2a2925;
	}
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	overflow-wrap: anywhere;
}
a { color: var(--accent); text-underline-offset: 0.15em; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
code, .record { font-family: var(--mono); font-size: 0.9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 44rem; margin: 0 auto; padding: 0 1rem; }
.wrap-wide { max-width: 56rem; }
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; min-height: 3.25rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.brand { color: var(--ink); font-weight: 650; text-decoration: none; letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.125rem 1rem; font-size: 0.9375rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
main { padding: 2rem 0 3.5rem; }
.site-foot { border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.875rem; padding: 1.25rem 0 2rem; }
.site-foot .version { margin: 0.5rem 0 0; font-size: 0.75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* Type: the verdict, then the finding's title. Everything else stays quiet so those two are what the eye lands on. */
h1 { font-size: clamp(1.625rem, 1.3rem + 1.5vw, 2.125rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 680; }
h2 { font-size: 1.125rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.005em; }
h3 { font-size: 1rem; font-weight: 620; }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }
.faint { color: var(--ink-3); }
.stack > * + * { margin-top: 0.75rem; }
.section-tight { margin-top: 1rem; }
.section { margin-top: 2.5rem; }
.section > h2 { margin-bottom: 0.75rem; }
.section-intro { color: var(--ink-2); margin-bottom: 0.875rem; }
h1 + .status-line { margin-top: 0.5rem; }

/* Health is said in words and in a shape, never in colour alone. */
.mark { display: inline-block; flex: none; width: 0.72em; height: 0.72em; background: currentColor; vertical-align: 0.02em; }
.tone-ok { color: var(--ok); }
.tone-info { color: var(--info); }
.tone-warn { color: var(--warn); }
.tone-bad { color: var(--bad); }
.tone-unknown { color: var(--unknown); }
.tone-done { color: var(--ink-2); }
.mark.tone-ok, .mark.tone-done { border-radius: 50%; }
.mark.tone-done { width: 0.55em; height: 0.55em; vertical-align: 0.08em; }
.mark.tone-info { border-radius: 50%; background: transparent; border: 0.16em solid currentColor; }
.mark.tone-warn { clip-path: polygon(50% 4%, 100% 96%, 0 96%); width: 0.82em; height: 0.78em; }
.mark.tone-bad { transform: rotate(45deg) scale(0.86); }
.mark.tone-unknown { border-radius: 50%; background: transparent; border: 0.13em dashed currentColor; }
.status { display: inline-flex; align-items: baseline; gap: 0.45em; font-weight: 620; }
.row-title .status { color: var(--ink); font-weight: 560; }
.row-title .status .mark { color: var(--unknown); }

/* Verdict */
.back { margin-bottom: 1.25rem; }
.verdict { padding-bottom: 0.25rem; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; color: var(--ink-2); margin-bottom: 0.5rem; }
.eyebrow strong { color: var(--ink); font-weight: 620; }
.verdict .status-line { margin-top: 0.625rem; font-size: 1.0625rem; color: var(--ink-2); max-width: 38rem; }
.verdict .asof { margin-top: 0.5rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.625rem; margin-top: 1rem; }

/* Controls */
.button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 2.5rem; padding: 0.5rem 0.875rem;
	font: inherit; font-size: 0.9375rem; font-weight: 560; line-height: 1.2; text-decoration: none; text-align: center;
	color: var(--ink); background: var(--surface);
	border: 1px solid var(--line-strong); border-radius: 7px; cursor: pointer;
}
.button:hover { background: var(--sunken); }
.button.primary { color: var(--on-ink); background: var(--ink); border-color: var(--ink); }
.button.primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.button.danger { color: var(--bad); border-color: currentColor; background: transparent; }
.button.danger:hover { background: var(--bad-soft); }
.button[disabled] { opacity: 0.55; cursor: not-allowed; }
.button[aria-pressed="true"] { background: var(--sunken); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 640; }
.button.small { min-height: 2rem; padding: 0.25rem 0.625rem; font-size: 0.8125rem; }
label { display: block; font-weight: 560; margin-bottom: 0.3rem; }
input[type="text"], input[type="email"], textarea {
	width: 100%; min-height: 2.75rem; padding: 0.5rem 0.75rem;
	font: inherit; color: var(--ink); background: var(--surface);
	border: 1px solid var(--line-strong); border-radius: 7px;
}
input[type="file"] { font: inherit; font-size: 0.9375rem; max-width: 100%; }
textarea { min-height: 7rem; font-family: var(--mono); font-size: 0.9rem; }
.inline-form { display: flex; gap: 0.5rem; }
.inline-form input { flex: 1; min-width: 0; }
.inline-form .button { flex: none; min-height: 2.75rem; }
.hint { color: var(--ink-3); font-size: 0.875rem; margin-top: 0.3rem; }

/* Messages. role=status or role=alert; the words say what kind. */
.notice { padding: 0.625rem 0.875rem; border-radius: 7px; background: var(--sunken); border: 1px solid var(--line); margin-bottom: 1.25rem; }
.notice.good { background: var(--ok-soft); border-color: transparent; }
.notice.problem { background: var(--bad-soft); border-color: transparent; }
.say { margin-top: 0.5rem; font-size: 0.9375rem; }
.say[data-kind="problem"] { color: var(--bad); font-weight: 560; }
.say[data-kind="good"] { color: var(--ok); }

/* Finding card: the product. */
.findings { display: grid; gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.125rem 1.125rem 1.25rem; }
.card-kicker { display: inline-flex; align-items: baseline; gap: 0.45em; font-size: 0.8125rem; font-weight: 640; letter-spacing: 0.01em; }
.card h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; margin-top: 0.3rem; }
.card-target { margin-top: 0.2rem; }
.card-detail { margin-top: 0.5rem; color: var(--ink-2); }
.fix { margin-top: 0.875rem; padding: 0.75rem 0.875rem; background: var(--sunken); border-radius: 7px; }
.fix-label { font-size: 0.8125rem; font-weight: 640; color: var(--ink-2); margin-bottom: 0.2rem; }
.fix-body { white-space: pre-line; }
.record-chip.keep { white-space: nowrap; }
.record { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 0.05em 0.3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.copy { font: inherit; font-size: 0.75rem; font-weight: 560; color: var(--accent); background: none; border: 0; padding: 0.1em 0.3em; margin-left: 0.1em; cursor: pointer; text-decoration: underline; text-underline-offset: 0.15em; }
.decide { margin-top: 1rem; display: grid; gap: 0.75rem; }
.decide-row { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.75rem; align-items: center; }
.decide-row .button { width: 100%; }
.decide-why { color: var(--ink-2); font-size: 0.875rem; line-height: 1.4; }
.card.quiet { background: transparent; }
.card.quiet h3 { font-size: 1.0625rem; }

/* Lists of checks and history */
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.rows > li { padding: 0.75rem 1rem; }
.rows > li + li { border-top: 1px solid var(--line); }
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.125rem 0.75rem; align-items: baseline; }
.row-title { font-weight: 560; }
.row-sub { color: var(--ink-2); font-size: 0.9375rem; margin-top: 0.125rem; }
.row-meta { color: var(--ink-3); font-size: 0.875rem; }
.plainlist { list-style: disc; padding-left: 1.25rem; color: var(--ink-2); }
.plainlist li + li { margin-top: 0.25rem; }
.chips { display: grid; gap: 0.375rem; color: var(--ink-2); }
.chips li { display: flex; gap: 0.5rem; align-items: baseline; }
details > summary { cursor: pointer; font-weight: 560; }
details[open] > summary { margin-bottom: 0.75rem; }

/* Scanner */
.home-hero { padding-top: clamp(1rem, 6vw, 3.5rem); }
.home-hero h1 { font-size: clamp(1.875rem, 1.4rem + 2.4vw, 2.75rem); }
.home-hero .lead { margin-top: 0.75rem; font-size: 1.125rem; color: var(--ink-2); max-width: 34rem; }
.scan-form { margin-top: 1.75rem; }
.scan-form input { font-size: 1.0625rem; min-height: 3.125rem; }
.scan-form .button { min-height: 3.125rem; padding: 0.5rem 1.25rem; font-size: 1rem; }
.progress { height: 3px; margin-top: 1.25rem; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; }
.progress::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 35%; border-radius: 2px; background: var(--ink-2); animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) { .progress::after { animation: none; width: 100%; opacity: 0.4; } }
.watch { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.125rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; justify-content: space-between; }
.watch p { flex: 1 1 16rem; }
.watch h2 { margin-bottom: 0.125rem; }

/* Domain list */
.tabs { display: flex; gap: 0.25rem; margin-top: 1.25rem; border-bottom: 1px solid var(--line); }
.tabs a { padding: 0.5rem 0.75rem; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 620; border-bottom-color: var(--ink); }
.domain-row { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; gap: 0.25rem 1.25rem; padding: 0.875rem 1rem; color: inherit; text-decoration: none; align-items: baseline; }
.domain-row:hover { background: var(--sunken); }
.rows > li.domain-item { padding: 0; }
.rows > li.domain-item:first-child .domain-row { border-radius: 10px 10px 0 0; }
.rows > li.domain-item:last-child .domain-row { border-radius: 0 0 10px 10px; }
.domain-name { font-weight: 620; }
.domain-label { display: block; font-weight: 400; color: var(--ink-3); font-size: 0.875rem; }
.domain-state .status { font-size: 0.9375rem; }
.domain-worst { display: block; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.4; margin-top: 0.1rem; }
.domain-when { color: var(--ink-3); font-size: 0.8125rem; white-space: nowrap; }
.pager { margin-top: 1rem; }
.addbox { margin-top: 1.5rem; }
.empty { padding: 1.25rem; text-align: left; }

.manage > li { display: grid; gap: 0.5rem; }
.manage h3 { margin-bottom: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.results { margin-top: 0.75rem; }
.results li { padding: 0.5rem 0.75rem; }
.result-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.125rem 0.75rem; }
.log { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.log th { text-align: left; font-weight: 600; color: var(--ink-2); }
.log th, .log td { padding: 0.375rem 0.5rem 0.375rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Status tiles (D66). Six small buttons, so a problem is visible before anyone clicks. */
.glyph { display: inline-block; flex: none; font-weight: 700; line-height: 1; min-width: 0.7em; text-align: center; }
h1 .glyph { margin-right: 0.35em; font-size: 0.72em; vertical-align: 0.1em; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-top: 1.5rem; }
.tile { display: block; font: inherit; color: inherit; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.625rem 0.75rem; cursor: pointer; }
.tile:hover { border-color: var(--line-strong); }
.tile[aria-pressed="true"] { border: 2px solid var(--ink-2); padding: calc(0.625rem - 1px) calc(0.75rem - 1px); }
.tile-name { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
.tile-state { display: flex; align-items: baseline; gap: 0.375rem; font-size: 0.9375rem; font-weight: 620; }
.tile-fact { display: block; font-size: 0.75rem; line-height: 1.35; color: var(--ink-2); margin-top: 0.0625rem; }
.tile-clear { font: inherit; font-size: 0.8125rem; color: inherit; background: none; border: 1px solid var(--line-strong); border-radius: 7px; padding: 0.25rem 0.625rem; margin-top: 0.75rem; cursor: pointer; }
.tile-clear:hover { background: var(--sunken); }
.tiled { margin-top: 1.25rem; }
.group-label { font-size: 0.8125rem; color: var(--ink-2); margin-top: 0.25rem; margin-bottom: -0.5rem; }
.area-detail { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.area-detail:empty { display: none; }
.detail-card { padding: 0.75rem 1rem; }
p.detail-card { font-size: 0.9375rem; }
.fact-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.125rem 0.75rem; padding: 0.375rem 0; font-size: 0.875rem; }
.fact-row + .fact-row { border-top: 1px solid var(--line); }
.fact-row:first-child { padding-top: 0; }
.fact-row:last-child { padding-bottom: 0; }
.fact-label { min-width: 0; }
.fact-value { min-width: 0; color: var(--ink-2); }
.fact-value code { background: var(--sunken); border-radius: 4px; padding: 0.05em 0.3em; }
.track { display: block; width: 100%; height: 8px; border-radius: 4px; overflow: hidden; margin: 0.375rem 0 0.5rem; }
.track:last-child { margin-bottom: 0; }
.track-bg { fill: var(--sunken); }
.fill-ok { fill: var(--ok); }
.fill-warn { fill: var(--warn); }
.fill-bad { fill: var(--bad); }
.strip { display: block; width: 100%; height: 28px; margin-top: 0.375rem; }
.strip-up { fill: var(--ok); }
.strip-down { fill: var(--bad); }
.strip-none { fill: var(--line-strong); }
.pills { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.pill { display: inline-flex; align-items: baseline; gap: 0.3em; font-size: 0.8125rem; font-weight: 500; padding: 0.1875rem 0.625rem; border-radius: 8px; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-unknown { background: var(--unknown-soft); color: var(--unknown); }
.pill .glyph { color: inherit; }
.quiet-section { margin-top: 2rem; font-size: 0.875rem; }
.quiet-section > h2 { font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); margin-bottom: 0.5rem; }
.quiet-section .rows > li { padding: 0.5rem 0.75rem; }
.quiet-section .row-sub { font-size: 0.875rem; }

@media (max-width: 560px) {
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
	main { padding-top: 1.5rem; }
	.domain-row { grid-template-columns: minmax(0, 1fr); }
	.domain-when { white-space: normal; }
	.decide-row { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
	.scan-form .inline-form { flex-direction: column; }
	.scan-form .button { width: 100%; }
	.watch .button { width: 100%; }
	.log-hide { display: none; }
}
