/* linkspect.com. System fonts only: no requests to third-party servers. */
:root {
  --paper: #f6f4ef;
  --paper-2: #ecE8df;
  --ink: #1b1d1f;
  --ink-2: #4a4d52;
  --rule: #d6d1c5;
  --link: #1d4fa3;
  --ok: #2f6b3a;
  --warn: #8a5d00;
  --bad: #b3261e;
  --muted: #6d7076;
  --code-bg: #1e1f22;
  --code-ink: #e6e3dc;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17181a;
    --paper-2: #202124;
    --ink: #e8e5de;
    --ink-2: #b4b1aa;
    --rule: #34363a;
    --link: #8db4ff;
    --ok: #6fbf7c;
    --warn: #e0b04a;
    --bad: #ff8a80;
    --muted: #8e9096;
    --code-bg: #0f1012;
    --code-ink: #e6e3dc;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; height: auto; }
code, pre, kbd { font-family: var(--mono); font-size: 0.88em; }
:not(pre) > code { background: var(--paper-2); padding: 0.08em 0.3em; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin: 2.2em 0 0.6em; }
h3 { font-size: 1.2rem; margin: 1.8em 0 0.4em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
/* Text pages keep the left edge of the header; only the measure is limited. */
.prose > * { max-width: 760px; }
.prose > .table, .prose > pre.code { max-width: 900px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 6px 10px; z-index: 10; }

/* Header */
header.site { border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; gap: 12px 22px; min-height: 60px; flex-wrap: wrap; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.mark { width: 18px; height: 18px; border: 2.5px solid var(--ink); border-radius: 50%; position: relative; display: inline-block; }
.mark::after { content: ""; position: absolute; width: 9px; height: 2.5px; background: var(--ink); right: -7px; bottom: -3px; transform: rotate(45deg); }
nav.top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 0.95rem; margin-left: auto; }
nav.top a { color: var(--ink-2); text-decoration: none; padding: 4px 0; }
nav.top a:hover, nav.top a[aria-current] { color: var(--ink); text-decoration: underline; }
a.cta-sm { color: var(--paper); background: var(--ink); padding: 6px 12px; border-radius: 4px; text-decoration: none; font-size: 0.95rem; }
@media (max-width: 640px) {
  .bar { padding-top: 12px; padding-bottom: 8px; }
  a.cta-sm { margin-left: auto; }
  nav.top { order: 3; width: 100%; margin-left: 0; gap: 2px 16px; font-size: 0.92rem; }
}

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 auto; max-width: 1080px; padding: 18px 20px 0; font-size: 0.85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { color: var(--muted); }

main { padding-bottom: 4rem; }
article.wrap, section.wrap { padding-top: 2.5rem; }

/* Home hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; padding-top: 3.5rem; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.lede { font-size: 1.15rem; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 1.6rem; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 4px; text-decoration: none; font-weight: 600; }
.btn:hover { opacity: 0.9; }
.note { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 2rem; } }

/* Result card: an example of what the API returns, rendered as a report. */
.result { border: 1px solid var(--rule); background: var(--paper-2); border-radius: 6px; font-size: 0.9rem; overflow: hidden; }
.result header { padding: 12px 14px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 0.82rem; color: var(--ink-2); overflow-wrap: anywhere; }
.result header b { color: var(--ink); font-weight: 600; }
.result table { width: 100%; border-collapse: collapse; }
.result td { padding: 9px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.result tr:last-child td { border-bottom: 0; }
.result td.op { white-space: nowrap; }
.result td.op small { display: block; color: var(--muted); }
.result .why { color: var(--ink-2); font-size: 0.84rem; margin-top: 2px; }
.result footer { padding: 10px 14px; border-top: 1px solid var(--rule); font-size: 0.8rem; color: var(--muted); }
.tag { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.tag::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: currentColor; vertical-align: 1px; }
.tag.ok { color: var(--ok); }
.tag.warn { color: var(--warn); }
.tag.bad { color: var(--bad); }
.tag.na { color: var(--muted); }
.tag.na::before { background: transparent; border: 1.5px solid currentColor; }

/* Generic sections */
.split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; padding-top: 3.5rem; }
.split > h2 { margin-top: 0; }
@media (max-width: 800px) { .split { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-top: 2.5rem; } }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 14px 0; border-top: 1px solid var(--rule); }
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.facts b { font-family: var(--serif); font-size: 1.05rem; }
.src { font-size: 0.82rem; color: var(--muted); }
.src a { color: var(--muted); }

dl.layers { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; margin: 0; }
dl.layers dt, dl.layers dd { padding: 12px 0; border-top: 1px solid var(--rule); margin: 0; }
dl.layers dt { font-family: var(--mono); font-size: 0.88rem; padding-right: 22px; font-weight: 600; }
@media (max-width: 560px) {
  dl.layers { grid-template-columns: minmax(0, 1fr); }
  dl.layers dd { border-top: 0; padding-top: 0; }
}

.table { overflow-x: auto; margin: 1.2rem 0 1.6rem; }
table.grid { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
table.grid th, table.grid td, .prose table th, .prose table td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.grid th, .prose table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
.y { color: var(--ok); font-weight: 600; }
.n { color: var(--muted); }

pre.code { background: var(--code-bg); color: var(--code-ink); padding: 16px 18px; border-radius: 6px; overflow-x: auto; font-size: 0.84rem; line-height: 1.55; margin: 0 0 1.4rem; }
pre.code .c { color: #8f948f; }
pre.code .k { color: #9ecbff; }
pre.code .s { color: #b5d99c; }

.eyebrow { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.6rem; }
.callout { border-left: 3px solid var(--ink); padding: 4px 0 4px 16px; margin: 1.6rem 0; color: var(--ink-2); }
.cases p { margin-bottom: 1.2em; }
.cases b { font-family: var(--serif); }
.closing { border-top: 1px solid var(--rule); margin-top: 4rem; padding-top: 2.5rem; }
.closing h2 { margin-top: 0; }
.updated { font-size: 0.85rem; color: var(--muted); }
ol.refs { font-size: 0.88rem; color: var(--ink-2); padding-left: 1.4em; }
ol.refs li { margin-bottom: 0.4em; overflow-wrap: anywhere; }

/* Form */
form.access { display: grid; gap: 18px; max-width: 560px; margin-top: 1.5rem; }
form.access label { font-weight: 600; display: block; margin-bottom: 6px; }
form.access .hint { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
form.access input[type=email], form.access input[type=text], form.access textarea, form.access select {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink);
}
form.access textarea { min-height: 110px; resize: vertical; }
form.access fieldset { border: 0; padding: 0; margin: 0; }
form.access legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
form.access .checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
form.access .checks label { font-weight: 400; display: inline-flex; gap: 6px; align-items: center; margin: 0; }
form.access button { justify-self: start; font: inherit; font-weight: 600; background: var(--ink); color: var(--paper); border: 0; padding: 11px 20px; border-radius: 4px; cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error { border: 1px solid var(--bad); color: var(--bad); padding: 10px 14px; border-radius: 4px; display: none; }
.error:target, .error.on { display: block; }

/* Footer */
footer.site { border-top: 1px solid var(--rule); padding: 2.5rem 0 1.5rem; font-size: 0.9rem; color: var(--ink-2); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 28px; }
.foot a { display: block; color: var(--ink-2); text-decoration: none; padding: 3px 0; }
.foot a:hover { text-decoration: underline; }
.fh { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.5em; }
.logo-foot { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--ink); margin-bottom: 0.4em; }
.fine { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 2rem; font-size: 0.82rem; color: var(--muted); }
.fine a { color: var(--muted); }
@media (max-width: 800px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot { grid-template-columns: minmax(0, 1fr); } }
.result { margin: 0; }
.more { margin-top: 1rem; }

/* Home page: country list under the "Is my site blocked in …?" headline. */
.h-q { text-wrap: balance; }
.h-countries { margin: 0 0 1.4rem; }
.h-countries dt { margin: 0 0 0.2rem; }
.h-countries dd { margin: 0 0 0.9rem; display: flex; flex-wrap: wrap; gap: 2px 18px; }
.h-countries dd:last-child { margin-bottom: 0; }
.h-countries a { white-space: nowrap; }
.h-open a { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.h-rest { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.h-later { font-size: 0.9rem; }

/* URL checker (public/checker.js). */
.checker { border: 1px solid var(--rule); border-radius: 6px; padding: 18px 20px 20px; margin: 1.8rem 0 2.4rem; background: var(--paper-2); }
.checker h2 { margin: 0 0 0.4rem; font-size: 1.35rem; }
.checker > p { margin-bottom: 0.8rem; }
.checker-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.checker-form .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.checker-row { display: flex; flex-wrap: wrap; gap: 10px; }
.checker-row input { flex: 1 1 240px; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); }
.checker-row select { font: inherit; padding: 10px 8px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); }
.checker-row button { font: inherit; font-weight: 600; background: var(--ink); color: var(--paper); border: 0; padding: 10px 20px; border-radius: 4px; cursor: pointer; }
.checker-row button[aria-disabled="true"] { opacity: 0.55; cursor: progress; }
.checker-captcha:not(:empty) { margin-top: 12px; }
.checker-msg { margin: 10px 0 0; min-height: 1.2em; color: var(--ink-2); }
.checker-out .tag, .checker-out td.op { white-space: normal; }
.checker-out .result { overflow-x: auto; }
.checker-out .result { margin-top: 1rem; background: var(--paper); }
.checker-filters { margin-top: 0.9rem; font-size: 0.92rem; }
.checker-filters ul { margin: 0; padding-left: 1.2em; }
.checker-next { margin: 0.9rem 0 0; font-size: 0.95rem; }
.tag.run { color: var(--muted); }
.tag.run::before { background: transparent; border: 1.5px dashed currentColor; animation: ck-spin 1.6s linear infinite; }
@keyframes ck-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tag.run::before { animation: none; } }
