/* NetRadar site styles.
   No web fonts, no analytics, no third-party requests of any kind — which is
   the same promise the product makes, and worth keeping literally true on the
   privacy policy page itself. */

:root {
  --ground: #FBFCFD;
  --surface: #FFFFFF;
  --sunken: #F1F4F7;
  --ink: #14181F;
  --ink-muted: #57616E;
  --ink-faint: #8B95A3;
  --rule: #E2E7EC;
  --accent: #0E7490;
  --accent-soft: #E3F1F6;
  --warn-soft: #FBEEDC;
  --warn-ink: #8A4B06;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0E1420;
    --surface: #16202F;
    --sunken: #1B2635;
    --ink: #E8EDF5;
    --ink-muted: #98A5B6;
    --ink-faint: #6B7889;
    --rule: #24303F;
    --accent: #3FB8D6;
    --accent-soft: #10333F;
    --warn-soft: #33260F;
    --warn-ink: #E2A33C;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px 96px; }

/* ---- masthead ---- */

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 38px;
}

header.site .mark { flex: none; }

header.site a.name {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}

header.site nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 15px;
}

header.site nav a {
  color: var(--ink-muted);
  text-decoration: none;
}
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--accent); }

/* ---- type ---- */

h1 {
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.lede {
  font-size: 19px;
  color: var(--ink-muted);
  margin: 0 0 12px;
  max-width: 58ch;
}

.updated {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 0 0 36px;
}

h2 {
  font-size: 21px;
  letter-spacing: -0.012em;
  margin: 40px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  text-wrap: balance;
}

h3 { font-size: 17px; margin: 26px 0 6px; }

p, li { max-width: 68ch; }
p { margin: 0 0 15px; }

ul, ol { padding-left: 22px; margin: 0 0 15px; }
li { margin-bottom: 7px; }

a { color: var(--accent); text-underline-offset: 2px; }

strong { font-weight: 650; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.87em;
  background: var(--sunken);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ---- components ---- */

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px 22px;
  margin: 22px 0;
}
.card :last-child { margin-bottom: 0; }

.card.accent { border-left: 3px solid var(--accent); }

.note {
  background: var(--warn-soft);
  color: var(--warn-ink);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 22px 0;
  font-size: 15.5px;
}
.note :last-child { margin-bottom: 0; }

/* The marker is positioned rather than laid out as a grid item: every inline
   node inside a grid container becomes its own grid item, which put each word
   of a step onto its own line. */
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 38px;
  margin-bottom: 12px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

dl.facts { margin: 22px 0; }
dl.facts div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
dl.facts dt { color: var(--ink-muted); font-size: 15px; }
dl.facts dd { margin: 0; }

.yes::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.no::before  { content: "✗ "; color: var(--ink-faint); font-weight: 700; }

footer.site {
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 14.5px;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer.site a { color: var(--ink-muted); text-decoration: none; }
footer.site a:hover { color: var(--accent); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  dl.facts div { grid-template-columns: 1fr; gap: 2px; }
  header.site nav { width: 100%; margin-left: 0; padding-top: 6px; }
}
