
:root {
  color-scheme: light;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --page-background: #fefeff;
  --surface: #ffffff;
  --surface-muted: #fafafa;
  --foreground: #1f2328;
  --foreground-strong: #0f1218;
  --foreground-muted: #626266;
  --structure: #212a3e;
  --border: #d0d7de;
  --border-subtle: #e5e7eb;
  --success: #16a34a;
  --success-background: #ecfdf5;
  --success-foreground: #166534;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

body[data-tone="auth"] {
  --accent: #0f1218;
}

body[data-tone="center"] {
  --accent: #1f6266;
}

body[data-tone="marketplace"] {
  --accent: #0567ff;
}

body[data-tone="admin"] {
  --accent: #006366;
}

a {
  color: inherit;
}

.topbar {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-wordmark {
  display: block;
  width: 132px;
  height: 28px;
  max-width: 132px;
}

.api-label,
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.api-label {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--foreground-muted);
  font-size: 13px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--success);
}

.page {
  width: min(680px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0 48px;
  text-align: center;
}

h1 {
  margin: 0;
  color: var(--foreground-strong);
  font-size: clamp(34px, 5vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.description {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--foreground-muted);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

.package-name {
  margin-top: 10px;
  color: var(--foreground-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.status {
  min-height: 36px;
  margin-top: 24px;
  padding: 0 13px;
  background: var(--success-background);
  color: var(--success-foreground);
  font-size: 13px;
  font-weight: 600;
}

.endpoints {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
}

.endpoint-card {
  min-width: 0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.endpoint-card:hover {
  border-color: var(--border);
  background: var(--surface-muted);
}

.endpoint-card:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.endpoint-content {
  min-width: 0;
}

.endpoint-title {
  display: block;
  color: var(--foreground-strong);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

.endpoint-path {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--foreground-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-arrow {
  flex: 0 0 auto;
  color: var(--foreground-muted);
  font-size: 18px;
  line-height: 1;
}

.footer {
  margin-top: 52px;
  color: var(--foreground-muted);
  font-size: 12px;
}

.footer a {
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .topbar {
    width: min(100% - 32px, 1120px);
    min-height: 64px;
  }

  .brand-wordmark {
    width: 118px;
    height: 25px;
    max-width: 118px;
  }

  .page {
    width: min(100% - 32px, 680px);
    padding-top: 56px;
  }

  h1 {
    font-size: 34px;
  }

  .description {
    font-size: 16px;
  }

  .endpoints {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .endpoint-card {
    transition: none;
  }
}
