/* Stapel — one stylesheet. No imports, no remote fonts, no JavaScript anywhere on this site. */

:root {
  color-scheme: light dark;

  --paper:      #FBFAF8;
  --surface:    #FFFFFF;
  --sunken:     #F3F1ED;
  --ink:        #14171C;
  --ink-soft:   #4C535B;
  --ink-faint:  #6E767F;
  --rule:       #E3DFD8;
  --rule-firm:  #CFC9C0;
  --blue:       #1D4E8F;
  --blue-ink:   #163C6E;
  --blue-wash:  #EDF2F9;
  --blue-edge:  #C6D7EC;

  --measure:    38rem;
  --wide:       64rem;
  --radius:     10px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #0F1216;
    --surface:   #161A20;
    --sunken:    #1B2027;
    --ink:       #E8EAED;
    --ink-soft:  #A9B1BB;
    --ink-faint: #838C97;
    --rule:      #262C34;
    --rule-firm: #333B45;
    --blue:      #8CB4EA;
    --blue-ink:  #B9D2F4;
    --blue-wash: #15202E;
    --blue-edge: #24354A;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 106.25%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
}

/* ---------- skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
}

.skip:focus { left: 0; }

/* ---------- shell ---------- */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.4rem;
}

.band { padding: 3.2rem 0; }
.band + .band { border-top: 1px solid var(--rule); }
.band--wash { background: var(--blue-wash); }

.prose { max-width: var(--measure); }

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

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.6rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover { color: var(--blue); }
.brand svg { color: var(--blue); display: block; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.05rem;
  margin-left: auto;
  font-size: 0.92rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: var(--ink); }

.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--blue);
  font-weight: 600;
}

.lang {
  font-size: 0.86rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

.lang a { color: var(--blue); }

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

h1, h2, h3 {
  letter-spacing: -0.021em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.7rem;
  text-wrap: balance;
}

h1 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.65rem); font-weight: 700; margin-top: 2.6rem; }
h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.8rem; }

h2:first-child, h3:first-child { margin-top: 0; }

p, ul, ol, dl { margin: 0 0 1.05rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }
li > ul, li > ol { margin-top: 0.35rem; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 650; }
small { font-size: 0.86rem; }

code, kbd, samp, pre {
  font-family: var(--mono);
  font-size: 0.88em;
}

code {
  background: var(--sunken);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.08em 0.34em;
}

pre {
  background: var(--sunken);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  overflow-x: auto;
  line-height: 1.5;
  margin: 0 0 1.05rem;
}

pre code { background: none; border: 0; padding: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.4rem 0;
}

/* ---------- lede & eyebrow ---------- */

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.7rem;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

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

.hero { padding: 3.6rem 0 3rem; }

.hero__grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; }
}

.hero h1 { margin-bottom: 1rem; }

.claim {
  display: inline-block;
  font-weight: 650;
  color: var(--blue-ink);
  background: var(--blue-wash);
  border: 1px solid var(--blue-edge);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin: 1.5rem 0 0;
}

.btn {
  display: inline-block;
  font-weight: 620;
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
}

.btn:hover { background: var(--blue-wash); }

.btn--solid {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn--solid:hover { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }

@media (prefers-color-scheme: dark) {
  .btn--solid { color: #0F1216; }
  .btn--solid:hover { color: #0F1216; }
}

.btn--quiet {
  border-color: var(--rule-firm);
  color: var(--ink-soft);
  border-style: dashed;
  cursor: default;
}

.btn--quiet:hover { background: transparent; }

/* ---------- panels ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}

.panel h3 { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 56rem) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.note {
  border-left: 3px solid var(--blue);
  background: var(--blue-wash);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.95rem 1.15rem;
  margin: 0 0 1.05rem;
  max-width: var(--measure);
}

.note > :last-child { margin-bottom: 0; }

.note--caveat {
  border-left-color: var(--rule-firm);
  background: var(--sunken);
}

.note--wide { max-width: none; }

/* ---------- tables ---------- */

.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 0 0 1.2rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.93rem;
  min-width: 32rem;
}

caption {
  text-align: left;
  padding: 0.85rem 1rem 0;
  color: var(--ink-faint);
  font-size: 0.86rem;
}

th, td {
  text-align: left;
  padding: 0.62rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

thead th {
  font-size: 0.79rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  background: var(--sunken);
}

tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

th[scope="row"] { font-weight: 620; }

td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.col-us { background: var(--blue-wash); }

/* ---------- definition list ---------- */

.facts {
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0 1.2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 34rem) {
  .facts { grid-template-columns: 11rem 1fr; }
  .facts dd { border-top: 1px solid var(--rule); padding-top: 0.45rem; }
}

.facts dt {
  font-weight: 650;
  color: var(--ink-soft);
  padding: 0.45rem 0 0;
  border-top: 1px solid var(--rule);
}

.facts dd {
  margin: 0;
  padding: 0 0 0.7rem;
}

/* ---------- figures ---------- */

figure { margin: 0 0 1.2rem; }

figcaption {
  font-size: 0.86rem;
  color: var(--ink-faint);
  margin-top: 0.55rem;
  max-width: var(--measure);
}

.sketch {
  display: block;
  width: 100%;
  height: auto;
  max-width: 20rem;
}

.sketch--wide { max-width: 100%; }

/* ---------- release entries ---------- */

.release {
  border-top: 1px solid var(--rule);
  padding-top: 1.7rem;
  margin-top: 1.7rem;
  max-width: var(--measure);
}

.release:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.release h2 { margin: 0 0 0.2rem; font-size: 1.28rem; }

.release__meta {
  font-size: 0.86rem;
  color: var(--ink-faint);
  margin: 0 0 0.9rem;
}

.tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--rule-firm);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  color: var(--ink-faint);
  vertical-align: 0.12em;
  margin-left: 0.4rem;
}

/* ---------- table of contents ---------- */

.toc {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  max-width: var(--measure);
  font-size: 0.94rem;
}

@media (min-width: 34rem) {
  .toc { columns: 2; column-gap: 2rem; }
}

.toc li { break-inside: avoid; margin-bottom: 0.3rem; }

/* ---------- question and answer ---------- */

.qa { max-width: var(--measure); }
.qa h3 { margin-top: 2.2rem; }
.qa h3:first-of-type { margin-top: 0; }

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

.foot {
  border-top: 1px solid var(--rule);
  background: var(--surface);
  padding: 2.4rem 0 3rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.foot__grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}

@media (min-width: 46rem) {
  .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.foot h2 {
  font-size: 0.79rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 0.3rem; }
.foot a { color: var(--ink-soft); }
.foot a:hover { color: var(--blue); }

.colophon {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-size: 0.85rem;
  max-width: var(--measure);
}

.colophon p { margin-bottom: 0.5rem; }
.colophon > :last-child { margin-bottom: 0; }

/* ---------- misc ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

@media print {
  .masthead, .foot, .actions { display: none; }
  body { background: #fff; color: #000; }
}

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

.hero__art { margin: 0; }

.hero__art img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 26rem;
}

.hero__art figcaption {
  margin-top: 0.7rem;
  font-size: 0.84rem;
  color: var(--ink-faint);
}

.microcopy {
  margin: 1.1rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-faint);
  max-width: var(--measure);
}

/* ---------- stat strip ---------- */

.stats {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  padding: 1.7rem 0;
}

.stats__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 52rem) {
  .stats__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stats__row li { margin: 0; }

.stats__row b {
  display: block;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.stats__row span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 15rem;
}

/* ---------- numbered steps ---------- */

.steps {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}

@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.step {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}

.step h3 { margin: 0 0 0.45rem; }
.step > :last-child { margin-bottom: 0; }

.step__n {
  width: 2rem;
  height: 2rem;
  margin: 0 0 0.9rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-wash);
  border: 1px solid var(--blue-edge);
  color: var(--blue-ink);
  font-weight: 800;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- split layout ---------- */

.split {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.6rem; }
  .split--lead { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}

.split > div > :last-child { margin-bottom: 0; }
.split p { max-width: var(--measure); }

.panel--tight { padding: 1.1rem 1.2rem; }

.panel__tag {
  margin: 0 0 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.panel--tight h3 { font-size: 1rem; margin: 0 0 0.35rem; }
.panel--tight p { font-size: 0.93rem; margin: 0; color: var(--ink-soft); }

/* ---------- tribute to Bijdehand ---------- */

.tribute {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
}

.tribute__eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.tribute__body {
  margin: 0 0 1rem;
  font-size: 1.14rem;
  line-height: 1.55;
  text-wrap: balance;
}

.tribute__sign {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink-faint);
}

/* ---------- comparison pills ---------- */

.pill {
  display: inline-block;
  padding: 0.14rem 0.6rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
  border: 1px solid var(--rule-firm);
  color: var(--ink-soft);
}

.pill--good {
  background: #E7F3EA;
  border-color: #BCDBC4;
  color: #1B5E2B;
}

.pill--bad {
  background: var(--sunken);
  border-color: var(--rule-firm);
  color: var(--ink-faint);
}

.pill--warn {
  background: #FBF1DF;
  border-color: #E4CFA4;
  color: #6B4E12;
}

@media (prefers-color-scheme: dark) {
  .pill--good { background: #15281A; border-color: #2C4A34; color: #9BD3AA; }
  .pill--warn { background: #2A2213; border-color: #4A3D20; color: #DEBE79; }
}

.compare td { vertical-align: middle; }

/* ---------- closing call to action ---------- */

.cta {
  border-top: 1px solid var(--rule);
  padding: 3.4rem 0;
  text-align: center;
}

.cta h2 { margin-top: 0; text-wrap: balance; }
.cta .lede { margin-left: auto; margin-right: auto; }
.cta .actions { justify-content: center; }

/* ---------- the list of nos on the privacy page ---------- */

.nots {
  list-style: none;
  margin: 1.4rem 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
}

.nots li {
  margin: 0;
  padding: 0.55rem 0.85rem 0.55rem 2.1rem;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 620;
  color: var(--ink-soft);
}

.nots li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 0.72rem;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: var(--rule-firm);
}
