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

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --border: #e5e5e5;
  --accent: #1e4d3a;
  --accent-hover: #163a2c;
  --code-bg: #f3f4f6;
  --error: #9b2c2c;
  --max-width: 42rem;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header.site-header {
  margin-bottom: 2.5rem;
}

.site-name {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.site-tagline {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.5;
}

nav.footer-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

nav.footer-links a {
  color: var(--accent);
  text-decoration: none;
  margin-right: 1.25rem;
}

nav.footer-links a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.doc-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  line-height: 1.35;
}

h2:first-of-type {
  margin-top: 0;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

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

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

/* Callback page */
.callback-status {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.callback-status p {
  margin-bottom: 0.75rem;
}

.callback-status p:last-child {
  margin-bottom: 0;
}

.code-block {
  display: block;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.875rem 1rem;
  word-break: break-all;
  margin: 0.75rem 0 0;
  user-select: all;
}

.error-message {
  color: var(--error);
  font-weight: 500;
}

.hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}
