:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #5f5f5f;
  --faint: #8c8c8c;
  --line: #e7e7e7;
  --line-strong: #cfcfcf;
  --soft: #f6f6f6;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

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

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

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.2;
}

code,
pre {
  font-family: var(--mono);
}

code {
  font-size: 0.86em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--soft);
  overflow-wrap: anywhere;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
}

.skip:focus {
  left: 16px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}

.brand {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  background: #333333;
  border-color: #333333;
}

.button.outline {
  border-color: var(--line-strong);
  background: var(--bg);
  color: var(--text);
}

.button.outline:hover {
  border-color: var(--text);
  background: var(--bg);
}

.button.small {
  padding: 7px 15px;
  font-size: 14px;
}

.button svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.hero {
  padding: 112px 0 72px;
}

.hero h1 {
  font-size: clamp(52px, 9vw, 104px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.tagline {
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.45;
}

.tagline strong {
  color: var(--text);
  font-weight: 600;
}

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

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-top: 22px;
  color: var(--faint);
  font-size: 14px;
}

.meta span + span::before {
  content: "/";
  margin: 0 12px;
  color: var(--line-strong);
}

.shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}

.shot.lifted {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 32px 64px -32px rgba(0, 0, 0, 0.18);
}

.showcase {
  padding-bottom: 104px;
}

section.block {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.head h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.5;
  text-wrap: balance;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 36px;
}

.columns.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item {
  padding-top: 18px;
  border-top: 1px solid var(--text);
}

.item h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15.5px;
}

.item .kicker {
  margin: 0 0 6px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12.5px;
}

.item .button {
  margin-top: 20px;
}

.item .note {
  color: var(--faint);
  font-size: 13.5px;
}

.list {
  margin-top: 14px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15.5px;
}

.list li {
  position: relative;
  padding-left: 18px;
}

.list li + li {
  margin-top: 6px;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--faint);
}

.steps {
  display: grid;
  gap: 80px;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.step.wide {
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.step > div:first-child {
  max-width: 600px;
}

.step h3 {
  font-size: 22px;
  font-weight: 600;
}

.step .kicker {
  margin-bottom: 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12.5px;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.step .shot.narrow {
  justify-self: end;
  max-width: 320px;
}

.code {
  display: flex;
  align-items: flex-start;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.code pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 13px 6px 13px 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.6;
}

.copy {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 8px 8px 8px 2px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
}

.copy:hover {
  border-color: var(--text);
  color: var(--text);
}

.copy svg {
  width: 14px;
  height: 14px;
}

.copy .done,
.copy.copied .idle {
  display: none;
}

.copy.copied .done {
  display: block;
}

.editor {
  margin-top: 56px;
  border-radius: 12px;
  background: var(--text);
  color: #f2f2f2;
  overflow: hidden;
}

.editor-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid #2a2a2a;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}

.editor-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3a3a;
}

.editor-bar span {
  margin-left: 8px;
}

.editor ol {
  margin: 0;
  padding: 12px 0;
  list-style: none;
  counter-reset: line;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}

.editor li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  padding-right: 12px;
  counter-increment: line;
  overflow-wrap: anywhere;
}

.editor li::before {
  content: counter(line);
  padding-right: 16px;
  color: var(--muted);
  text-align: right;
  user-select: none;
}

.editor .comment {
  color: var(--faint);
}

.editor code {
  padding: 0;
  background: none;
  font-size: inherit;
}

.editor .copy {
  width: 22px;
  height: 22px;
  margin: 0 0 0 10px;
  border-color: #3a3a3a;
  border-radius: 6px;
  background: #161616;
  color: #b5b5b5;
}

.editor .copy svg {
  width: 12px;
  height: 12px;
}

.editor .copy:hover {
  border-color: #f2f2f2;
  color: #f2f2f2;
}

details > summary {
  cursor: pointer;
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

.accordion {
  border-top: 1px solid var(--text);
}

.accordion > details {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: baseline;
  gap: 4px 20px;
  padding: 20px 0;
}

.accordion summary:hover .title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.accordion .title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.accordion .hint {
  grid-column: 1;
  color: var(--faint);
  font-size: 14.5px;
  line-height: 1.5;
}

.accordion .count {
  grid-row: 1;
  grid-column: 2;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
}

.accordion summary::after {
  content: "";
  grid-row: 1;
  grid-column: 3;
  align-self: center;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--text), var(--text)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1.5px 12px no-repeat;
}

.accordion details[open] > summary::after {
  background: linear-gradient(var(--text), var(--text)) center / 12px 1.5px no-repeat;
}

.answer {
  max-width: 680px;
  padding: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
}

.answer p + p,
.answer p + ol,
.answer p + ul,
.answer ol + p,
.answer ul + p,
.answer p + .code,
.answer .code + p {
  margin-top: 12px;
}

.answer h4 {
  margin: 22px 0 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.answer h4:first-child {
  margin-top: 0;
}

.answer ol,
.answer ul {
  padding-left: 20px;
}

.answer li + li {
  margin-top: 5px;
}

.audience {
  margin: 48px 0 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0;
}

.toolbar + .audience {
  margin-top: 28px;
}

.toolbar .button {
  flex: none;
  white-space: nowrap;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--faint);
  font-size: 14px;
}

.targets {
  margin: 0;
  padding: 0 0 22px;
  list-style: none;
}

.targets li {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.targets .name {
  font-weight: 550;
}

.targets .removes {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.targets .removes b {
  color: var(--faint);
  font-weight: 400;
  user-select: none;
}

.targets .state {
  padding: 1px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.table {
  width: 100%;
  margin-top: 40px;
  border-collapse: collapse;
  font-size: 15px;
}

.table th,
.table td {
  padding: 12px 16px 12px 0;
  text-align: left;
  vertical-align: top;
}

.table th {
  border-bottom: 1px solid var(--text);
  color: var(--faint);
  font-size: 13px;
  font-weight: 500;
}

.table td {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.table td:first-child {
  color: var(--text);
  font-weight: 550;
}

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 56px;
  color: var(--faint);
  font-size: 14px;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-left: auto;
}

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

footer a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav .button {
    margin-left: auto;
  }

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

  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .step .shot.narrow {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 72px 0 52px;
  }

  .showcase {
    padding-bottom: 68px;
  }

  section.block {
    padding: 64px 0;
  }

  .head {
    margin-bottom: 40px;
  }

  .columns,
  .columns.two {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .actions .button {
    width: 100%;
  }

  .editor li {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .meta {
    flex-direction: column;
  }

  .meta span + span::before {
    display: none;
  }

  .targets li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .targets .removes {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .table th:nth-child(3),
  .table td:nth-child(3) {
    display: none;
  }

  footer .links {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

.item .note {
  margin-top: 12px;
}

.note span + span::before {
  content: "/";
  margin: 0 8px;
  color: var(--line-strong);
}

.options {
  border-top: 1px solid var(--text);
}

.option {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 18px 44px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.option h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.option p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15.5px;
}

.option .kicker {
  margin: 0 0 6px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12.5px;
}

.option .code {
  margin-top: 0;
}

.option .note {
  margin-top: 12px;
  color: var(--faint);
  font-size: 13.5px;
}

.accordion.follow {
  margin-top: 56px;
}

@media (max-width: 900px) {
  .option {
    grid-template-columns: minmax(0, 1fr);
  }
}
