@font-face {
  font-family: "Inter";
  src: url("/assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f1f5f9;
  --card: #ffffff;
  --ink: #1b2b45;
  --text: #475569;
  --muted: #64748b;
  --border: #cbd5e1;
  --link: #1d4ed8;
  --accent: #d97706;
  --button: #1b2b45;
  --button-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --card: #1e293b;
    --ink: #f1f5f9;
    --text: #cbd5e1;
    --muted: #94a3b8;
    --border: #334155;
    --link: #93c5fd;
    --accent: #ffa94d;
    --button: #f1f5f9;
    --button-ink: #0f172a;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  padding-top: 28px;
  padding-bottom: 28px;
}

header.site a {
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

header.site a span {
  color: var(--accent);
}

main {
  padding-bottom: 56px;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(32px, 7vw, 44px);
  margin: 32px 0 12px;
}

h2 {
  font-size: 22px;
  margin: 48px 0 16px;
}

h3 {
  font-size: 18px;
  margin: 0;
}

.lede {
  font-size: 19px;
  margin: 0;
}

.card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.card img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex: none;
}

.card p {
  margin: 4px 0 12px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 15px;
}

.button {
  display: inline-block;
  background: var(--button);
  color: var(--button-ink);
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
}

.doc h2 {
  font-size: 19px;
  margin: 32px 0 8px;
}

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

.muted {
  color: var(--muted);
  font-size: 15px;
}

footer.site {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 8px;
}

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

@media (max-width: 480px) {
  .card {
    flex-direction: column;
  }
}
