:root {
  color-scheme: dark;
  --paper: #13161b;
  --band: #1b1f26;
  --ink: #eef0f3;
  --ink-2: #9aa3af;
  --ink-3: #c9ced6;
  --rule: #2b3039;
  --link: #8db0ff;
  --button-hover: #d9dde3;
  --nugget: #f0b429;
  --nugget-ink: #f0b429;
  --useful: #2f9e6f;
  --useful-ink: #4cc08b;
  --slop: #d9534f;
  --slop-ink: #f07a76;
  --max: 1080px;
  --gutter: 20px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #ffffff;
  --band: #f4f5f7;
  --ink: #171b21;
  --ink-2: #4f5865;
  --ink-3: #2b3038;
  --rule: #e3e6eb;
  --link: #1f5fd0;
  --button-hover: #2a3039;
  --nugget-ink: #8a5f00;
  --useful-ink: #1f7a53;
  --slop-ink: #b23834;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

code {
  font: 0.86em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--band);
  border: 1px solid var(--rule);
  padding: 1px 5px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 600;
}

h1 {
  font-size: clamp(36px, 5.2vw, 58px);
  max-width: 14ch;
}

h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  margin-bottom: 18px;
}

h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

p {
  margin: 0 0 14px;
}

img {
  max-width: 100%;
  height: auto;
}

.fineprint {
  color: var(--ink-2);
  font-size: 14px;
}

/* ------------------------------------------------------------- site chrome */

.site-header,
main,
.privacy-inner,
.site-footer {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  flex-wrap: wrap;
}

.site-header nav a {
  color: var(--ink-2);
}

@media (max-width: 600px) {
  .site-header {
    flex-wrap: wrap;
    gap: 14px;
  }

  .site-header nav {
    flex-basis: 100%;
    margin-left: 0;
    gap: 16px;
  }
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--ink);
  background: var(--band);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .sun,
:root[data-theme="light"] .theme-toggle .moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle .sun {
  display: block;
}

.site-footer {
  padding-top: 28px;
  padding-bottom: 48px;
  color: var(--ink-2);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer nav a {
  color: var(--ink-2);
}

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

.hero {
  display: grid;
  gap: 40px;
  padding: 36px 0 56px;
  align-items: center;
}

.hero > *,
.split > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    padding: 64px 0 80px;
  }
}

.lede {
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 44ch;
  margin: 22px 0 28px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--ink);
}

.button:hover {
  text-decoration: none;
  background: var(--button-hover);
}

.button--secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--rule);
}

.button--secondary:hover {
  background: var(--band);
}

.hero .fineprint {
  max-width: 46ch;
}

.hero-video {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: var(--band);
}

.hero-video video,
.hero-video img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------- verdicts */

.verdicts {
  border-top: 1px solid var(--rule);
  padding: 40px 0 8px;
}

.verdicts dl {
  display: grid;
  gap: 24px;
  margin: 0;
}

@media (min-width: 760px) {
  .verdicts dl {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.verdict {
  padding-left: 16px;
  box-shadow: inset 4px 0 0 0 var(--tint);
}

.verdict--nugget {
  --tint: var(--nugget);
  --tint-ink: var(--nugget-ink);
}

.verdict--useful {
  --tint: var(--useful);
  --tint-ink: var(--useful-ink);
}

.verdict--slop {
  --tint: var(--slop);
  --tint-ink: var(--slop-ink);
}

.verdict dt {
  font-weight: 600;
  font-size: 18px;
  color: var(--tint-ink);
  margin-bottom: 4px;
}

.verdict dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}

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

.section {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}

.section:first-of-type {
  border-top: 0;
}

.section p {
  color: var(--ink-2);
  max-width: 60ch;
}

.section .intro {
  margin-bottom: 28px;
}

/* A numbered sequence: a post is read, then asked about, then decided. */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.steps li {
  counter-increment: step;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}

.steps li::before {
  content: counter(step);
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.steps p {
  margin: 0;
  font-size: 16px;
}

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
  }

  .split--reverse .split-copy {
    order: 2;
  }
}

.split-copy p:last-child {
  margin-bottom: 0;
}

.plain {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-2);
}

.plain li {
  margin-bottom: 8px;
}

.shot {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--band);
}

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

.shot--tall {
  max-width: 560px;
}

.install {
  display: grid;
  gap: 32px;
}

@media (min-width: 760px) {
  .install {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

.install ol {
  margin: 0 0 12px;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 16px;
}

.install li {
  margin-bottom: 8px;
}

.install .fineprint {
  margin: 0;
}

.install + .fineprint {
  margin: 28px 0 0;
}

.privacy {
  background: var(--band);
  padding: 56px 0;
}

.privacy p {
  color: var(--ink-2);
  max-width: 60ch;
}

/* --------------------------------------------------------- policy document */

.doc .prose {
  max-width: 70ch;
  padding: 12px var(--gutter) 24px;
}

.doc .prose h1 {
  font-size: 36px;
  max-width: none;
  margin-bottom: 20px;
}

.doc .prose h2 {
  font-size: 22px;
  margin: 38px 0 12px;
}

.doc .prose p,
.doc .prose li {
  color: var(--ink-3);
}

.doc .prose ul,
.doc .prose ol {
  padding-left: 22px;
}

.doc .prose li {
  margin-bottom: 7px;
}

.doc .prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 32px 0;
}

.doc .prose em {
  color: var(--ink-2);
}
