/* Proxy Leak Judge — one family (Archivo, self-hosted so no visitor IP goes
   to a font CDN), two widths: condensed for the verdict, normal for the rest.
   Cards are fill only: no borders, no shadows. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ground: #f1f2f4;
  --card: #ffffff;
  --ink: #17191e;
  --slate: #5f6673;
  --faint: #ebedf0;
  --leak: #c42b2b;
  --tell: #a8650a;
  --clean: #1d7a4c;
  --note: #3d5f94;
  --skip: #8a909b;
  --focus: #3d5f94;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0f1114;
    --card: #181b20;
    --ink: #e9ebee;
    --slate: #959ca7;
    --faint: #22262d;
    --leak: #ff6b6b;
    --tell: #f2b04c;
    --clean: #4cd18a;
    --note: #8fb0e6;
    --skip: #6e7581;
    --focus: #8fb0e6;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 100%;
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

main { max-width: 720px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 16px 72px; }

/* ---- header ---- */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.mark { font-weight: 750; font-size: 17px; letter-spacing: -.01em; text-decoration: none; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--slate); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* ---- type ---- */
h1 { font-size: clamp(30px, 6.4vw, 44px); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; margin: 0 0 14px; max-width: 18ch; }
h2 { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; font-weight: 650; margin: 0 0 14px; }
h3 { font-size: 16px; font-weight: 650; margin: 22px 0 6px; }
p { margin: 0 0 12px; max-width: 66ch; }
.lede { font-size: 18px; line-height: 1.5; color: var(--slate); max-width: 52ch; margin-bottom: 28px; }
.small { font-size: 14px; color: var(--slate); }
ul, ol { padding-left: 20px; margin: 0 0 12px; }
li { margin: 3px 0; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86em; background: var(--faint); border-radius: 6px; padding: 1px 6px; }
pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.55; background: var(--faint); border-radius: var(--r-md); padding: 14px 16px; overflow: auto; margin: 0 0 14px; }
pre code { background: none; padding: 0; }

/* ---- cards: fill only ---- */
.card { background: var(--card); border-radius: var(--r-lg); padding: 26px 26px 22px; margin: 0 0 12px; }
.card > :last-child { margin-bottom: 0; }
@media (max-width: 520px) { .card { padding: 20px 18px 18px; border-radius: 18px; } }

/* ---- buttons ---- */
.btn, button {
  font: inherit; font-weight: 650; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--ground);
  border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn.quiet, button.quiet { background: var(--faint); color: var(--ink); }
button:disabled { opacity: .45; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---- status colours ---- */
.c-fail { color: var(--leak); } .c-warn { color: var(--tell); } .c-pass { color: var(--clean); }
.c-info { color: var(--note); } .c-skip { color: var(--skip); }
.pill {
  display: inline-block; font-size: 12.5px; font-weight: 650; line-height: 1;
  padding: 6px 0; width: 52px; text-align: center; border-radius: 999px; text-transform: capitalize;
  background: color-mix(in srgb, currentColor 13%, transparent);
}

/* ---- tables (docs) ---- */
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 8px; }
th { text-align: left; font-size: 13.5px; font-weight: 600; color: var(--slate); padding: 0 16px 10px 0; }
td { padding: 9px 16px 9px 0; vertical-align: top; line-height: 1.45; }
td:first-child { font-weight: 600; }

.credit { font-size: 13px; color: var(--slate); margin: 28px 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
