:root {
  --bg: #0e0e10;
  --fg: #f2f0ea;
  --muted: #8d8b85;
  --rule: #26262a;
  --card: #17171a;
  --accent: #ff5a1f;
  --accent-2: #ffd23f;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f4ee;
    --fg: #141414;
    --muted: #6b6a65;
    --rule: #dcd9cf;
    --card: #ffffff;
    --accent: #e0440e;
    --accent-2: #b8860b;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 4rem;
}
.wrap.single { grid-template-columns: minmax(0, 700px); justify-content: center; }
@media (max-width: 800px) {
  .wrap { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2.5rem; }
}

/* hero */
.kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font: 600 0.78rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.kicker a { text-decoration: none; }
h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 5.75rem);
  font-weight: 850;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
h1 .dot { color: var(--accent); }
.wrap.single h1 { font-size: clamp(2.4rem, 6.5vw, 3.75rem); line-height: 1; }
.tag {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font: 0.95rem/1.4 var(--mono);
}
.meta {
  margin: 1rem 0 0;
  color: var(--muted);
  font: 0.82rem/1.4 var(--mono);
}

/* status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2rem 0 0;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  font: 0.85rem/1.3 var(--mono);
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

/* sections */
h2 {
  margin: 3rem 0 1rem;
  font: 600 0.78rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
h2::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
ul.pts { list-style: none; padding: 0; margin: 0; }
ul.pts li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.4rem;
}
ul.pts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 0.55rem;
  height: 2px;
  background: var(--accent);
}
strong { font-weight: 700; }

/* tldr / callouts */
.tldr {
  margin: 2.25rem 0 0;
  padding: 1.25rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.tldr h3, aside h3 {
  margin: 0 0 0.6rem;
  font: 600 0.75rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.note {
  margin: 1.5rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent-2);
  background: var(--card);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}
.note b {
  display: block;
  margin-bottom: 0.2rem;
  font: 600 0.72rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.closer {
  margin: 3rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* sidebar */
aside {
  align-self: start;
  position: sticky;
  top: 2rem;
  padding: 1.4rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  font-size: 0.93rem;
}
aside ul.pts li { padding-top: 0.25rem; padding-bottom: 0.25rem; }
aside .more {
  display: inline-block;
  margin-top: 1rem;
  font: 600 0.85rem/1 var(--mono);
  text-decoration: none;
}

figure { margin: 2rem 0 0; }
figure img[src*="inbox"] { max-width: 544px; width: 100%; }
figure img[src*="verify-email"] { max-width: 460px; width: 100%; }
figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}
figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font: 0.8rem/1.4 var(--mono);
}

footer {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font: 0.78rem/1.4 var(--mono);
}

/* table of contents */
html { scroll-behavior: smooth; }
h2[id], aside[id] { scroll-margin-top: 1.5rem; }
.toc {
  margin: 2rem 0 0;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.toc h3 {
  margin: 0 0 0.6rem;
  font: 600 0.75rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  font: 0.9rem/1.5 var(--mono);
}
.toc li { counter-increment: toc; padding: 0.15rem 0; }
.toc li::before {
  content: counter(toc, decimal-leading-zero) "  ";
  color: var(--accent);
  white-space: pre;
}
.toc a { color: var(--fg); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.toc.inline { border: 0; padding: 0; }
.toc.inline ol { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }

/* nested bullets */
ul.pts ul.pts { margin: 0.35rem 0 0.1rem; }
ul.pts ul.pts li { padding-top: 0.2rem; padding-bottom: 0.2rem; color: var(--fg); opacity: 0.88; }
ul.pts ul.pts li::before {
  width: 0.4rem;
  height: 0.4rem;
  top: 0.8em;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: transparent;
}
.toc.side { margin: 0; padding: 0; border: 0; }
.tldr { margin-top: 2rem; }

/* privacy orgs: grayscale logo strip */
.orgs {
  grid-column: 1 / -1;
  margin-top: 2rem;
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--rule);
}
.orgs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.orgs-head h3 {
  margin: 0;
  font: 600 0.75rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.donate { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.donate a {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font: 600 0.78rem/1 var(--mono);
  text-decoration: none;
}
.donate a:hover { background: var(--accent); color: var(--bg); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.track {
  display: flex;
  width: max-content;
  animation: orgs-scroll 40s linear infinite;
}
.marquee:hover .track { animation-play-state: paused; }
.set { display: flex; align-items: center; gap: 4rem; padding-right: 4rem; }
@keyframes orgs-scroll { to { transform: translateX(-50%); } }
.logo {
  color: var(--muted);
  opacity: 0.7;
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.6rem;
  line-height: 1;
  filter: grayscale(1);
  transition: opacity 0.2s, color 0.2s;
}
.logo:hover { opacity: 1; color: var(--fg); }
.l-eff { font-weight: 900; letter-spacing: 0.04em; }
.l-badger { font-weight: 700; font-style: italic; }
.l-le { font-weight: 300; letter-spacing: -0.02em; }
.l-proton { font-weight: 800; letter-spacing: -0.03em; }
.l-signal { font-weight: 600; }
.l-crypt { font: 500 1.4rem/1 var(--mono); }
.l-ddg { font-weight: 700; letter-spacing: -0.02em; }
@media (prefers-reduced-motion: reduce) {
  .track { animation: none; width: auto; }
  .set { flex-wrap: wrap; gap: 1.5rem 3rem; }
  .set[aria-hidden="true"] { display: none; }
}

/* quip under tagline */
.quip {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font: italic 0.9rem/1.4 var(--sans);
  opacity: 0.85;
}

/* popcorn */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.hero-vid {
  width: clamp(110px, 18vw, 180px);
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid var(--rule);
  object-fit: cover;
  transform: rotate(3deg);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.7);
}
aside .thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 60%;
  margin: 0 0 1rem;
  border-radius: 8px;
  border: 1px solid var(--rule);
}

/* smaller sidebar thumbnail */
aside .thumb {
  float: right;
  width: 84px;
  aspect-ratio: 1;
  margin: -0.25rem 0 0.5rem 0.75rem;
  object-position: 50% 50%;
}
aside h3 { min-height: 1rem; }

/* article video with sound toggle */
.hero-media { position: relative; flex: none; }
.hero-vid { cursor: pointer; display: block; }
.sound {
  position: absolute;
  left: 50%;
  bottom: -0.9rem;
  transform: translateX(-50%);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--bg);
  color: var(--accent);
  font: 600 0.72rem/1 var(--mono);
  cursor: pointer;
  white-space: nowrap;
}
.sound:hover { background: var(--accent); color: var(--bg); }

/* scroller under the hero */
main .orgs {
  margin-top: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}
main .orgs .orgs-head { margin-bottom: 1.1rem; }
main .orgs .logo { font-size: 1.35rem; }
