/* ipv6only.nl — Dutch-modernist grid, PTT green, monospace data */

:root {
  --paper: #f7f8f6;
  --card: #ffffff;
  --ink: #14181c;
  --muted: #5a646d;
  --line: #dbe0e3;
  --green: #009a49;
  --green-ink: #007338;
  --green-tint: #e8f5ee;
  --amber: #b35a00;
  --amber-tint: #fbf1e6;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Archivo", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* No smooth scrolling: anchor jumps travel the full 700k-px directory,
   and animating that is slow and races the lazy row renderer. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--green-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}

.mono { font-family: var(--mono); font-size: 0.92em; }

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

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark-colons { color: var(--green); font-weight: 600; }

.masthead-nav { display: flex; gap: 28px; align-items: center; }
.masthead-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.masthead-nav a:hover { color: var(--green-ink); }

.lang-switch { display: flex; border: 1px solid var(--line); }

.lang-switch button {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 10px;
  background: var(--card);
  color: var(--muted);
  border: none;
  cursor: pointer;
}

.lang-switch button:hover { color: var(--green-ink); }

.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 64px) clamp(40px, 6vw, 72px);
  max-width: 1280px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-ink);
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 .count {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.05em;
}

.hero-sub {
  margin-top: 24px;
  max-width: 34em;
  font-size: 17px;
  color: var(--muted);
}

/* probe card — the live connectivity check */

.probe {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  padding: 24px 26px 26px;
}

.probe-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 14px;
}

.probe-status {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
}

.probe-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  align-self: center;
}

.is-checking .probe-dot { background: var(--muted); animation: pulse 1.1s ease-in-out infinite; }
.is-v6 .probe-dot { background: var(--green); }
.is-v4 .probe-dot { background: var(--amber); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.probe-addr {
  display: block;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--green-ink);
  background: var(--green-tint);
  padding: 8px 12px;
  margin-top: 14px;
  overflow-wrap: anywhere;
}

.probe-note {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--muted);
}

.probe.state-v4 { border-top-color: var(--amber); }
.probe.state-v4 .probe-addr { color: var(--amber); background: var(--amber-tint); }

/* ---------- directory ---------- */

.directory {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px) clamp(56px, 8vw, 96px);
}

/* proportional TLD share bar */
.tld-bar {
  display: flex;
  height: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}

.tld-bar span {
  display: block;
  height: 100%;
  min-width: 3px;
  background: var(--green);
}

.tld-bar span:nth-child(even) { background: var(--green-ink); }
.tld-bar span:nth-child(8n+3) { background: #33b06e; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 18px;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 4;
  border-bottom: 1px solid var(--line);
}

.tld-filters { display: flex; flex-wrap: wrap; gap: 6px; }

.tld-filters button {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 7px 12px;
  cursor: pointer;
}

.tld-filters button .n { color: var(--muted); margin-left: 6px; font-size: 12px; }

.tld-filters button:hover { border-color: var(--green); }

.tld-filters button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.tld-filters button[aria-pressed="true"] .n { color: #9fe0bd; }

.search-wrap { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; max-width: 380px; }

#search {
  flex: 1;
  font-family: var(--mono);
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}

#search::placeholder { color: var(--muted); }
#search:focus { outline: 2px solid var(--green); outline-offset: -1px; }

.search-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

/* listing */

.listing-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  padding: 16px 14px 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* Row heights are fixed and the list's full height is reserved up front
   (--row-count set from JS), so lazy loading never shifts the page below. */
.rows {
  list-style: none;
  min-height: calc(var(--row-count, 0) * 42px);
}

.rows li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  height: 42px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  align-items: center;
}

.rows li.sentinel { height: 0; border: 0; padding: 0; }

.rows li:hover { background: var(--green-tint); }

.rows a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rows a:hover { color: var(--green-ink); text-decoration: underline; }

.rows .addr {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rows .addr b { color: var(--green); font-weight: 600; }

.listing-empty {
  padding: 48px 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- about ---------- */

.about {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px);
}

.about h2 {
  max-width: 1152px;
  margin: 0 auto 36px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.02em;
}

.about-grid {
  max-width: 1152px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.about-block h3 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-ink);
  margin-bottom: 12px;
}

.about-block p { color: var(--muted); font-size: 15.5px; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 32px clamp(20px, 5vw, 64px) 48px;
  font-family: var(--mono);
  font-size: 13.5px;
}

.footer-meta { color: var(--muted); margin-top: 6px; }

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .masthead { flex-wrap: wrap; gap: 10px 20px; }
  .masthead-nav { gap: 18px; }
  .hero { grid-template-columns: 1fr; align-items: start; }
  .probe { max-width: 480px; }
  .about-grid { grid-template-columns: 1fr; }
  .listing-head { display: none; }
  .rows { min-height: calc(var(--row-count, 0) * 70px); }
  .rows li {
    grid-template-columns: 1fr;
    gap: 2px;
    height: 70px;
    padding: 0 10px;
    align-content: center;
  }
  .rows li.sentinel { height: 0; }
}

/* ============================================================
   Methodology page + Dutch ISP comparison
   ============================================================ */

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px) 0;
}

.page-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-ink);
  margin-bottom: 18px;
}

.page h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.03;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-bottom: 20px;
}

.page-lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 40em;
}

/* ordered pipeline — the build really is a sequence, so it's numbered */
.pipeline {
  max-width: 920px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding: 0 clamp(20px, 5vw, 64px);
  list-style: none;
  counter-reset: step;
}

.pipeline > li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(24px, 4vw, 36px) 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.pipeline > li:last-child { border-bottom: 1px solid var(--line); }

.pipeline > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  padding-top: 4px;
}

.pipeline h3 {
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.pipeline p { color: var(--muted); font-size: 16px; margin-bottom: 10px; }
.pipeline p:last-child { margin-bottom: 0; }
.pipeline .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green-ink);
  background: var(--green-tint);
  padding: 3px 8px;
  margin: 2px 4px 2px 0;
}

.prose {
  max-width: 920px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding: 0 clamp(20px, 5vw, 64px);
}
.prose h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.prose p { color: var(--muted); font-size: 16px; margin-bottom: 14px; max-width: 42em; }
.prose .mono { color: var(--ink); }

/* ---- Dutch ISP comparison — the signature visual ---- */

.isps {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 4px solid var(--green);
  background: var(--card);
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 80px);
}
.isps-inner { max-width: 920px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

.isps h2 {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin-bottom: 14px;
}
.isps-lead { color: var(--muted); font-size: 17px; max-width: 42em; margin-bottom: 36px; }

.isp-grid { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.isp {
  display: grid;
  grid-template-columns: 128px 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 16px 22px 16px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

/* brand-color tile, logo knocked out in white */
.isp-logo {
  width: 128px;
  height: 62px;
  border-radius: 10px;
  background: var(--brand, var(--ink));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
}
.isp-logo img { max-width: 100%; max-height: 100%; display: block; }

.isp-note {
  min-width: 0;
  font-size: 15.5px;
  color: var(--muted);
}
.isp-note b { color: var(--ink); font-weight: 700; }
.isp-note a { color: var(--green-ink); font-weight: 600; }

.isp-mark { width: 34px; height: 34px; flex: none; }
.isp-mark svg { width: 100%; height: 100%; display: block; }

.isp-stat { text-align: right; white-space: nowrap; }
.isp-pct { font-family: var(--mono); font-size: clamp(23px, 3vw, 31px); font-weight: 600; letter-spacing: -0.03em; }
.isp--yes .isp-pct { color: var(--green); }
.isp--part .isp-pct { color: var(--amber); }
.isp--no .isp-pct { color: #c0322b; }
.isp-stat small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

.isp-source { margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.isp-source a { color: var(--green-ink); }

.backlink {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 64px) 0;
  font-family: var(--mono);
  font-size: 14px;
}
.backlink a { color: var(--green-ink); text-decoration: none; }
.backlink a:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .pipeline > li { grid-template-columns: 1fr; gap: 6px; }
  .pipeline > li::before { padding-top: 0; }
  .isp {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo note mark" "logo stat mark";
    gap: 2px 16px;
    padding: 14px 16px;
  }
  .isp-logo { grid-area: logo; width: 96px; height: 50px; padding: 10px 12px; align-self: center; }
  .isp-note { grid-area: note; font-size: 14px; align-self: end; }
  .isp-mark { grid-area: mark; align-self: center; }
  .isp-stat { grid-area: stat; text-align: left; align-self: start; }
  .isp-pct { font-size: 22px; }
  .isp-stat small { display: inline; margin-left: 6px; }
}
