@import "tailwindcss";

@theme {
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;

  --color-bg: #030303;
  --color-fg: #f5f5f5;
  --color-muted: #8a8a8a;
  --color-accent: #d4d4d4;
}

html,
body {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-fg);
  color: var(--color-bg);
}

/* Documentation prose styles. Scoped via .prose-docs to avoid bleeding
   into the landing page. */
.prose-docs {
  font-size: 15px;
  line-height: 1.7;
  color: #d4d4d4;
}

.prose-docs h1 {
  font-size: 2.25rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #fafafa;
  margin: 0 0 0.5rem;
}

.prose-docs > p:first-of-type {
  color: #a3a3a3;
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 2.5rem;
}

.prose-docs h2 {
  font-size: 1.4rem;
  font-weight: 400;
  color: #fafafa;
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #262626;
  letter-spacing: -0.01em;
}

.prose-docs h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: #fafafa;
  margin: 2rem 0 0.75rem;
}

.prose-docs h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: #e5e5e5;
  margin: 1.5rem 0 0.5rem;
}

.prose-docs p {
  margin: 0 0 1.25rem;
}

.prose-docs a {
  color: #f5f5f5;
  text-decoration: underline;
  text-decoration-color: #525252;
  text-underline-offset: 3px;
}

.prose-docs a:hover {
  text-decoration-color: #a3a3a3;
}

.prose-docs strong {
  color: #fafafa;
  font-weight: 500;
}

.prose-docs ul,
.prose-docs ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.prose-docs ul {
  list-style-type: disc;
}

.prose-docs ol {
  list-style-type: decimal;
}

.prose-docs li {
  margin: 0.4rem 0;
}

.prose-docs li > ul,
.prose-docs li > ol {
  margin: 0.4rem 0;
}

.prose-docs code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: #171717;
  border: 1px solid #262626;
  border-radius: 4px;
  padding: 0.1em 0.4em;
  color: #f5f5f5;
}

.prose-docs pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 1.75rem;
  overflow-x: auto;
  color: #e5e5e5;
}

.prose-docs pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.prose-docs blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 2px solid #525252;
  color: #a3a3a3;
  background: #0a0a0a;
}

.prose-docs hr {
  margin: 3rem 0;
  border: 0;
  border-top: 1px solid #262626;
}

.prose-docs table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 14px;
}

.prose-docs th,
.prose-docs td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #1f1f1f;
}

.prose-docs th {
  font-weight: 500;
  color: #fafafa;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #0a0a0a;
  border-bottom-color: #262626;
}

.prose-docs td {
  color: #d4d4d4;
  vertical-align: top;
}

.prose-docs td code,
.prose-docs th code {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
}
