/* snub.download. Colors come from the icon: its light-to-deep blue, white, and a
   navy that is that blue taken down until it reads as ink (light) or ground (dark). No outside fonts or
   scripts: a site for a privacy-minded extension sends visitors to nobody else. */

:root {
  /* Dark is the default: a visitor gets it unless their system asks for light.
     Not near-black: the ground is the icon's blue taken down to night. */
  color-scheme: dark light;
  --hero-a: #3a78d0;
  --hero-b: #1c4c98;
  --blue: #3f80dc;
  --link: #8cc4fa;
  --ink: #e4eefb;
  --ink-soft: #a3b8d3;
  --paper: #0f2240;
  --wash: #172d52;
  --line: #24406b;
  --button-ink: #15365f;
  --button-hover: #eef5fd;
  --radius: 14px;
  --font: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --hero-a: #78b8f4;
    --hero-b: #3f80dc;
    --link: #3f80dc;
    --ink: #15365f;
    --ink-soft: #46607f;
    --paper: #ffffff;
    --wash: #eef5fd;
    --line: #d6e5f7;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--font);
}
a { color: var(--link); text-underline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; margin: 0; }
p, li { text-wrap: pretty; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Top: the icon's own ground, white on blue. */
.hero {
  background: linear-gradient(150deg, var(--hero-a), var(--hero-b));
  color: #fff;
  padding: 28px 0 32px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 8px rgb(21 54 95 / .25); }
.brand span { font-size: 22px; font-weight: 700; letter-spacing: .01em; }
.hero h1 { font-size: clamp(30px, 6.4vw, 46px); font-weight: 800; max-width: 21ch; }
.hero .lede { font-size: 19px; max-width: 34em; margin: 12px 0 20px; color: rgb(255 255 255 / .92); }

.get { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.button {
  display: inline-block;
  background: #fff;
  color: var(--button-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 22px;
  box-shadow: 0 2px 10px rgb(21 54 95 / .2);
}
.button:hover { background: var(--button-hover); }
.get small { color: rgb(255 255 255 / .9); font-size: 14px; white-space: nowrap; }

/* The demo: a streaming row where one tile drops out and the row closes up. */
.row-demo {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  overflow: hidden;
  padding: 4px 0 6px;
}
.tile {
  flex: 0 0 auto;
  width: 92px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  background: var(--g);
  box-shadow: 0 3px 10px rgb(21 54 95 / .22);
}
.tile:nth-child(1) { --g: linear-gradient(160deg, #f6d38a, #d9894f); }
.tile:nth-child(2) { --g: linear-gradient(160deg, #a8e0c6, #4f9c86); }
.tile:nth-child(3) { --g: linear-gradient(160deg, #c9c3f2, #7469c4); }
.tile:nth-child(5) { --g: linear-gradient(160deg, #f4b7b0, #c45f62); }
.tile:nth-child(6) { --g: linear-gradient(160deg, #bfe3f5, #4b93b9); }
.tile:nth-child(7) { --g: linear-gradient(160deg, #e9e1c9, #9b8a5e); }
.tile.snubbed {
  --g: linear-gradient(160deg, #dfe8f3, #9fb1c7);
  position: relative;
  animation: snub 6s ease-in-out infinite;
}
/* The same "no" sign as the icon: a ring with a bar through it. */
.tile.snubbed::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid #fff;
  background: linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%);
  opacity: 0;
  animation: sign 6s ease-in-out infinite;
}
@keyframes sign {
  0%, 18% { opacity: 0; transform: scale(.7); }
  28%, 52% { opacity: 1; transform: scale(1); }
  64%, 100% { opacity: 0; }
}
@keyframes snub {
  0%, 52% { width: 92px; margin-right: 0; opacity: 1; }
  66%, 92% { width: 0; margin-right: -10px; opacity: 0; }
  100% { width: 92px; margin-right: 0; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .tile.snubbed { display: none; animation: none; }
}

/* Body sections: tight, mobile first. */
section { padding: 28px 0; }
section + section { border-top: 1px solid var(--line); }
section h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
section p { margin: 0 0 10px; }
.muted { color: var(--ink-soft); }

.leaves { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.leaves li {
  background: var(--wash);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.leaves b { color: var(--ink); }

ol.steps { margin: 8px 0 0; padding-left: 22px; }
ol.steps li { margin: 4px 0; padding-left: 4px; }
code {
  font: 15px ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--wash);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}

.where { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.where span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 15px;
  color: var(--ink-soft);
}
.where span.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }

footer {
  background: var(--wash);
  color: var(--ink-soft);
  font-size: 14px;
  padding: 18px 0 22px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
footer p { margin: 0; }

/* Privacy page */
.page h1 { font-size: 32px; font-weight: 800; margin: 6px 0 12px; }
.page { padding: 28px 0 36px; }
.page p { max-width: 38em; }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; }
.back img { width: 28px; height: 28px; border-radius: 7px; }
