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

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #171717;
  background: #fafafa;
  line-height: 1.6;
}

a {
  color: #ff5733;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

.site-header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.125rem;
  font-weight: 600;
  color: #171717;
}

.brand:hover {
  color: #ff5733;
  text-decoration: none;
}

.page-shell {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.page-shell article h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: #171717;
}

.page-shell article h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: #171717;
}

.page-shell article h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: #171717;
}

.page-shell article p,
.page-shell article li {
  color: #404040;
  margin: 0 0 1rem;
}

.page-shell article ul,
.page-shell article ol {
  margin: 0 0 1rem 1.5rem;
  padding: 0;
}

.page-shell article blockquote {
  border-left: 4px solid #ff5733;
  margin: 1.5rem 0;
  padding-left: 1rem;
  color: #525252;
  font-style: italic;
}

.page-shell article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.page-shell article th,
.page-shell article td {
  border: 1px solid #e5e5e5;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.page-shell article th {
  background: #f5f5f5;
  font-weight: 600;
}

.page-shell article code {
  background: #f5f5f5;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.loading {
  color: #737373;
  font-size: 0.875rem;
}

.error {
  color: #b91c1c;
  font-size: 0.875rem;
}

.site-footer {
  border-top: 1px solid #e5e5e5;
  background: #fff;
  padding: 4rem 1.5rem 2rem;
}

.site-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  justify-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: start;
    text-align: left;
  }
}

.footer-column {
  width: 100%;
  max-width: 200px;
}

.footer-column h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #171717;
  margin: 0 0 1rem;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li + li {
  margin-top: 0.5rem;
}

.footer-column a,
.footer-column span {
  font-size: 0.875rem;
  color: #737373;
}

.footer-column a:hover {
  color: #ff5733;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #f5f5f5;
  padding-top: 2rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-copy {
  font-size: 0.75rem;
  color: #a3a3a3;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #737373;
}

.footer-status-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: #22c55e;
}
