:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f7;
  --fg: #16161a;
  --fg-muted: #5c5c66;
  --border: #e3e3e7;
  --accent: #d81f26;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --bg-alt: #17171a;
    --fg: #f4f4f5;
    --fg-muted: #a1a1aa;
    --border: #27272b;
    --accent: #ff4b52;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration: none;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}

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

nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 1.1rem;
}

nav a:hover {
  color: var(--fg);
}

main {
  padding: 3rem 0 4rem;
}

h1 {
  font-size: 2.35rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 2.6rem 0 0.6rem;
}

h3 {
  font-size: 1rem;
  margin: 1.6rem 0 0.4rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--fg-muted);
  margin: 0 0 2rem;
}

.meta {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

.card h3 {
  margin-top: 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin: 0.35rem 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}

footer.site {
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.9rem;
  padding: 1.5rem 0 2.5rem;
}

footer.site a {
  color: var(--fg-muted);
}

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
  margin: 1rem 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg);
}
