/* Flat by design: no rounded corners, no blurred shadows, no gradients. System fonts only, so the site loads nothing from third parties. */

:root {
  color-scheme: light dark;
  --paper: #f3f0e8;
  --surface: #fbfaf6;
  --ink: #14161a;
  --muted: #5b5e66;
  --rule: #14161a;
  --hairline: #cfcabd;
  --accent: #1f5eff;
  --accent-ink: #ffffff;
  --add: #0a7f3f;
  --add-bg: #d9f2e3;
  --del: #c0262d;
  --del-bg: #f8dcdc;
  --block: #14161a;
  --block-ink: #f3f0e8;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101215;
    --surface: #171a1f;
    --ink: #eeeae0;
    --muted: #9a9ca3;
    --rule: #eeeae0;
    --hairline: #2c3038;
    --accent: #6f95ff;
    --accent-ink: #0b0d10;
    --add: #4fd18a;
    --add-bg: #11301f;
    --del: #ff7a7f;
    --del-bg: #3a1618;
    --block: #eeeae0;
    --block-ink: #101215;
  }
}

* {
  box-sizing: border-box;
  border-radius: 0;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  font: 17px/1.6 var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.9em;
}

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

/* ---------- header & footer ---------- */

header.site {
  border-bottom: 2px solid var(--rule);
}

header.site .wrap {
  display: flex;
  align-items: stretch;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  background: #fff;
  border: 2px solid var(--rule);
}

nav {
  display: flex;
}

nav a {
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-left: 2px solid var(--rule);
  font: 600 13px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

nav a:last-child {
  border-right: 2px solid var(--rule);
}

nav a:hover,
nav a[aria-current] {
  background: var(--ink);
  color: var(--paper);
}

footer.site {
  border-top: 2px solid var(--rule);
  font: 13px/1.5 var(--mono);
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-top: 22px;
  padding-bottom: 28px;
}

footer.site span {
  margin-right: auto;
  color: var(--muted);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.status {
  display: inline-block;
  margin: 0 0 22px;
  padding: 4px 10px;
  border: 2px solid var(--rule);
  font: 600 13px var(--mono);
  letter-spacing: 0.02em;
}

.status b {
  color: var(--add);
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.92;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .sub {
  margin: 26px 0 0;
  max-width: 470px;
  font-size: 20px;
  line-height: 1.45;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 2px solid var(--rule);
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.08s, box-shadow 0.08s;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.button:hover {
  color: inherit;
  transform: translate(-3px, -3px);
  box-shadow: 3px 3px 0 var(--rule);
}

.button.primary:hover {
  color: var(--accent-ink);
}

/* An HTTP exchange shown as a diff: the extension's whole idea in one card. */
.exchange {
  margin: 0;
  border: 2px solid var(--rule);
  background: var(--surface);
  box-shadow: 10px 10px 0 var(--accent);
  font: 13.5px/1.75 var(--mono);
}

.exchange .bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 2px solid var(--rule);
  font-weight: 700;
}

.exchange .bar span:last-child {
  color: var(--muted);
  font-weight: 400;
}

.exchange pre {
  margin: 0;
  padding: 12px 0;
  font: inherit;
  white-space: pre;
  overflow-x: auto;
}

.exchange .line {
  display: block;
  padding: 0 14px;
}

.exchange .line::before {
  display: inline-block;
  width: 1.6em;
  color: var(--muted);
}

.exchange .ctx::before {
  content: " ";
}

.exchange .add {
  background: var(--add-bg);
  color: var(--add);
}

.exchange .add::before {
  content: "+";
  color: var(--add);
}

.exchange .del {
  background: var(--del-bg);
  color: var(--del);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.exchange .del::before {
  content: "−";
  color: var(--del);
}

.exchange .blk {
  background: var(--block);
  color: var(--block-ink);
}

.exchange .blk::before {
  content: "×";
  color: var(--block-ink);
}

.exchange .gap {
  height: 10px;
}

/* ---------- the popup ---------- */

.tour {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  margin: 0 0 96px;
}

.shot {
  margin: 0;
  border: 2px solid var(--rule);
  box-shadow: 14px 14px 0 var(--ink);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--rule);
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  padding: 18px 0;
  border-bottom: 2px solid var(--rule);
  font-size: 18px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font: 700 13px/1.9 var(--mono);
  color: var(--accent);
}

.steps strong {
  display: block;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.steps span {
  color: var(--muted);
}

.steps kbd {
  padding: 1px 6px;
  border: 2px solid var(--rule);
  font: 700 13px var(--mono);
}

/* ---------- sections ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--rule);
}

.section-head h2 {
  margin: 0;
  white-space: nowrap;
  font-size: 34px;
  letter-spacing: -0.03em;
}

.section-head .mono {
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 96px;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--rule);
  border-left: 2px solid var(--rule);
}

.features li {
  padding: 22px 22px 26px;
  border-right: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  background: var(--surface);
}

.features .num {
  display: block;
  margin-bottom: 18px;
  font: 700 13px var(--mono);
  color: var(--accent);
}

.features strong {
  display: block;
  margin-bottom: 4px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.features span:last-child {
  color: var(--muted);
  font-size: 16px;
}

/* Privacy as a response: every collection header answers "none". */
.private {
  background: var(--block);
  color: var(--block-ink);
}

.private .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.private h2 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.private p {
  margin: 0 0 18px;
  font-size: 19px;
  opacity: 0.8;
}

.private a {
  font-weight: 700;
}

.private a:hover {
  color: inherit;
  opacity: 0.7;
}

.headers {
  margin: 0;
  padding: 0;
  border-top: 2px solid currentColor;
  list-style: none;
  font: 17px/1 var(--mono);
}

.headers li {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 2px solid currentColor;
}

.headers li span:last-child {
  font-weight: 700;
}

/* ---------- documents ---------- */

.doc {
  max-width: 760px;
  padding-top: 64px;
  padding-bottom: 96px;
}

.doc .status {
  margin-bottom: 18px;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.updated {
  margin: 0 0 40px;
  font: 13px var(--mono);
  color: var(--muted);
}

.lead {
  margin: 0 0 8px;
  padding: 20px 22px;
  border: 2px solid var(--rule);
  border-left-width: 8px;
  border-left-color: var(--accent);
  background: var(--surface);
  font-size: 20px;
  line-height: 1.5;
}

.doc {
  counter-reset: section;
}

.doc h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 44px 0 10px;
  padding-top: 14px;
  border-top: 2px solid var(--rule);
  font-size: 23px;
  letter-spacing: -0.02em;
}

.doc h2::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  font: 700 13px var(--mono);
  color: var(--accent);
}

.doc ul {
  padding-left: 0;
  list-style: none;
}

.doc li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.doc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

/* ---------- small screens ---------- */

@media (max-width: 820px) {
  .hero,
  .private .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero {
    padding-top: 48px;
  }

  .features,
  .tour {
    grid-template-columns: minmax(0, 1fr);
  }

  .tour {
    gap: 40px;
  }

  .exchange {
    font-size: 11.5px;
    box-shadow: 6px 6px 0 var(--accent);
  }

  .section-head {
    flex-wrap: wrap;
    gap: 4px 14px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .shot {
    box-shadow: 8px 8px 0 var(--ink);
    margin-bottom: 64px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  nav a {
    padding: 0 10px;
    font-size: 11px;
  }

  nav a:last-child {
    display: none;
  }

  .brand {
    font-size: 15px;
  }
}
