:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-soft: #f0f3f8;
  --text: #111827;
  --muted: #5f6b7a;
  --line: #d9e0ea;
  --accent: #0f2a44;
  --accent-2: #8b1e24;
  --code-bg: #101827;
  --code-text: #e5eefc;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: linear-gradient(135deg, #0f2a44, #111827);
  color: #ffffff;
  padding: 56px 7vw 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.eyebrow,
.section-label {
  margin: 0 0 8px;
  color: #b9c7d8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.subtitle {
  max-width: 820px;
  color: #d7e0ec;
  font-size: 1.12rem;
  line-height: 1.7;
}

.top-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.9rem;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: -24px auto 56px;
}

.hero-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
  box-shadow: 0 16px 40px rgba(15, 42, 68, 0.12);
}

.hero-card > div {
  background: var(--panel);
  padding: 24px;
}

.hero-card .section-label {
  color: var(--muted);
}

.content-section {
  margin-top: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}

h2 {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 1.6rem;
}

h3 {
  margin: 0 0 12px;
  color: var(--accent);
}

p,
li {
  color: var(--muted);
  line-height: 1.7;
}

code {
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.92rem;
}

pre {
  overflow-x: auto;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 14px;
  padding: 18px;
  line-height: 1.6;
}

pre code {
  color: var(--code-text);
}

.notice {
  background: #fff8e7;
  border: 1px solid #f2d185;
  color: #6f4f00;
  border-radius: 14px;
  padding: 16px;
  line-height: 1.6;
}

.endpoint-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.endpoint-grid article {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.endpoint-grid article code {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-2);
  font-weight: 700;
}

.link-list {
  padding-left: 20px;
}

footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 40px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero-card,
  .endpoint-grid {
    grid-template-columns: 1fr;
  }
}
