@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --invert: 0;
  --bg: light-dark(#ffffff, #0a0a0a);
  --ink: light-dark(#0a0a0a, #f5f5f4);
  --muted: light-dark(#5c5c5c, #a3a3a3);
  --line: light-dark(#0a0a0a, #f5f5f4);
  --hairline: light-dark(#0a0a0a1a, #f5f5f41f);
  --grid: light-dark(#0a0a0a0d, #f5f5f40f);
  --on-ink: light-dark(#ffffff, #0a0a0a);
  --lavender: #ab9ff2;
  --violet: #4e44ce;
  --mint: #2ec08b;
  --peach: #ffb38a;
  --sky: #7cc4ff;
  --butter: #ffdc62;
  --wash: #ab9ff21f;
  --check-bg: #2ec08b26;
  --link: light-dark(var(--violet), var(--lavender));
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --page: 1200px;
  --gutter: 16px;
  --ease: 150ms ease;
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --invert: 1;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --invert: 1;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: min(var(--page), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 63px;
}

.logo {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.027em;
}

.nav-links {
  display: none;
  gap: 40px;
  font-size: 15px;
  color: var(--muted);
}

.nav-links a,
.footer-links a,
.menu-links a {
  transition: color var(--ease);
}

.nav-links a:hover,
.footer-links a:hover,
.menu-links a:hover {
  color: var(--ink);
}

.nav .nav-github {
  display: none;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background-color var(--ease);
}

:root[data-theme] .theme-toggle {
  display: grid;
}

.theme-toggle:hover {
  background: var(--hairline);
}

.theme-toggle .icon {
  width: 18px;
  height: 18px;
}

.theme-toggle[aria-pressed="true"] .icon-moon,
.theme-toggle[aria-pressed="false"] .icon-sun {
  display: none;
}

.menu {
  position: relative;
}

.menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
}

.menu summary .icon {
  width: 18px;
  height: 18px;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu .icon-close,
.menu[open] .icon-open {
  display: none;
}

.menu[open] .icon-close {
  display: block;
}

.menu-links {
  position: absolute;
  right: 0;
  top: 54px;
  z-index: 5;
  display: grid;
  min-width: 200px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
  font-size: 16px;
}

.menu-links a {
  padding: 10px 14px;
  border-radius: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 16px;
  white-space: nowrap;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}

.pill .icon {
  width: 18px;
  height: 18px;
}

.pill-solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}

.pill-solid:hover {
  background: color-mix(in srgb, var(--ink) 82%, var(--lavender));
}

.pill-line:hover {
  background: var(--wash);
}

.pill-sm {
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.lede {
  color: var(--muted);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.5;
}

.table-scroll {
  position: relative;
  margin-top: 40px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.compare col.label-col {
  width: 152px;
}

.compare col.whale-col {
  width: 92px;
}

.compare th,
.compare td {
  padding: 8px;
  border-bottom: 1px solid var(--hairline);
  text-align: center;
  vertical-align: middle;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 400;
}

.compare thead th {
  height: 60px;
  border-bottom-color: var(--line);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
}

.compare thead th.whale {
  font-weight: 400;
  color: var(--ink);
}

.compare tbody th {
  height: 64px;
  text-align: left;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 300;
  color: var(--ink);
}

.compare tbody th small {
  display: none;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.compare .whale {
  border-left: 1.5px solid var(--lavender);
  border-right: 1.5px solid var(--lavender);
}

.compare thead .whale {
  border-top: 1.5px solid var(--lavender);
  border-radius: 20px 20px 0 0;
}

.compare tbody tr:last-child .whale {
  border-bottom: 1.5px solid var(--lavender);
  border-radius: 0 0 20px 20px;
}

.compare tbody tr:last-child > * {
  border-bottom-color: var(--hairline);
}

.compare .na {
  color: var(--muted);
}

.compare .cell-long {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.compare .sticky {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg);
}

.yes {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--check-bg);
  vertical-align: middle;
}

.yes .icon {
  width: 14px;
  height: 14px;
}

.whale .yes .icon {
  width: 15px;
  height: 15px;
}

.swipe-hint {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.issues-head {
  margin-top: 40px;
}

.issues-head h3 {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.issues-head p {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.issues {
  display: grid;
  margin-top: 20px;
}

.issue-group {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
}

.issue-group.ours {
  border-top: 1.5px solid var(--lavender);
}

.issue-group h4 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 20px;
  font-weight: 300;
}

.issue-group.ours h4 {
  font-weight: 400;
}

.issue-group h4 span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.issue-group ul {
  display: grid;
  gap: 14px;
}

.issue-group li {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
}

.cite {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.cite a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--ease);
}

.cite a:hover {
  text-decoration-color: currentColor;
}

.ours .cite {
  color: var(--link);
}

.footnote {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.footnote a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--muted);
}

.paste-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.paste-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 14px 24px;
  border-bottom: 1px solid var(--hairline);
}

.traffic {
  display: flex;
  gap: 10px;
}

.traffic i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--peach);
}

.traffic i:nth-child(2) {
  background: var(--butter);
}

.traffic i:nth-child(3) {
  background: var(--mint);
}

.paste-label {
  flex: 1;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 14px;
  transition: background-color var(--ease);
}

.copy-btn .icon {
  width: 15px;
  height: 15px;
}

.copy-btn:hover {
  background: color-mix(in srgb, var(--ink) 82%, var(--lavender));
}

.paste-body {
  padding: 22px 20px 24px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.65;
}

.paste-body pre {
  font-size: inherit;
  line-height: inherit;
}

.paste-body .wide {
  display: none;
}

.cmd {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
}

.cmd::before {
  content: "$";
  color: var(--lavender);
}

.cmd code {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

.cmd-copy {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  margin: -6px -8px -6px 0;
  border-radius: 10px;
  color: var(--muted);
  transition: color var(--ease), background-color var(--ease);
}

.cmd-copy:hover {
  color: var(--ink);
  background: var(--wash);
}

.cmd-copy .icon {
  width: 16px;
  height: 16px;
}

.site-footer {
  padding-bottom: 48px;
}

.footer-row {
  display: grid;
  justify-items: start;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.footer-row .logo {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 24px;
  font-size: 15px;
  color: var(--muted);
}

.footer-links .mono {
  font-size: 12px;
}

.footer-links .kofi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
}

.kofi .icon {
  width: 17px;
  height: 17px;
  color: var(--peach);
}

.kofi:hover .icon {
  color: var(--ink);
}

.footer-tag {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
}

.mono-logo {
  filter: invert(var(--invert));
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }

  .issues {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .issue-group {
    padding-bottom: 0;
  }

  .footer-row {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-items: stretch;
  }

  .footer-tag {
    text-align: right;
  }
}

@media (min-width: 1080px) {
  :root {
    --gutter: 120px;
  }

  .nav {
    height: 87px;
  }

  .logo {
    font-size: 26px;
    letter-spacing: -0.03em;
  }

  .nav-links,
  .nav .nav-github {
    display: flex;
  }

  .menu {
    display: none;
  }

  .table-scroll {
    margin-top: 72px;
    overflow: visible;
  }

  .compare {
    min-width: 0;
  }

  .compare col.label-col {
    width: 37.2%;
  }

  .compare col.whale-col {
    width: 14.8%;
  }

  .compare th,
  .compare td {
    padding: 0 16px;
    font-size: 13px;
  }

  .compare thead th {
    height: 88px;
    font-size: 20px;
  }

  .compare tbody th {
    height: 76px;
    font-size: 19px;
  }

  .compare tbody th small {
    display: block;
    font-size: 12px;
  }

  .compare thead .whale {
    border-radius: 24px 24px 0 0;
  }

  .compare tbody tr:last-child .whale {
    border-radius: 0 0 24px 24px;
  }

  .yes {
    width: 34px;
    height: 34px;
  }

  .yes .icon {
    width: 17px;
    height: 17px;
  }

  .whale .yes .icon {
    width: 18px;
    height: 18px;
  }

  .compare .sticky {
    position: static;
  }

  .compare .cell-long {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }

  .compare .cell-short {
    display: none;
  }

  .swipe-hint {
    display: none;
  }

  .issues-head {
    margin-top: 72px;
  }

  .issues-head h3 {
    font-size: 32px;
    letter-spacing: -0.025em;
  }

  .issues {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 28px;
  }

  .footnote {
    margin-top: 72px;
    font-size: 13px;
  }

  .paste-card {
    border-radius: 28px;
  }

  .paste-label {
    font-size: 13px;
  }

  .paste-body {
    padding: 28px 32px 32px;
    font-size: 14px;
    line-height: 1.75;
  }

  .paste-body .wide {
    display: block;
  }

  .paste-body .narrow {
    display: none;
  }

  .site-footer {
    padding: 48px 0 64px;
  }

  .footer-row {
    padding-top: 40px;
  }

  .footer-row .logo {
    font-size: 26px;
  }

  .footer-links {
    gap: 32px;
  }

  .footer-links .mono {
    font-size: 13px;
  }

  .footer-tag {
    font-size: 15px;
  }
}
