:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-muted: #f4f2ec;
  --text: #2b2d31;
  --heading: #1f2328;
  --muted: #79746c;
  --line: #ded9cf;
  --primary: #0f6b78;
  --primary-dark: #0b515b;
  --pdf: #d92d20;
  --pdf-soft: #fff0ed;
}

* {
  box-sizing: border-box;
}

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

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(222, 217, 207, 0.8);
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  display: flex;
  width: 100%;
  max-width: 1240px;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto;
  padding: 8px 32px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 24px;
  font-weight: 900;
  color: var(--heading);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 24px;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--heading);
  text-decoration: none;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  padding: 0 18px;
  font-weight: 900;
}

.button:hover {
  color: #fff;
}

.page {
  min-height: 100vh;
}

.hero,
.section,
.footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px;
}

.hero {
  padding-top: 72px;
  padding-bottom: 28px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 0;
  color: var(--heading);
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
}

h2 {
  margin: 0 0 16px;
  color: var(--heading);
  font-size: 26px;
  line-height: 1.25;
}

h3 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 17px;
}

p {
  line-height: 1.85;
}

.intro {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.card p,
.card ul,
.card ol {
  margin-bottom: 0;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  background: var(--surface-muted);
  color: var(--heading);
  font-weight: 900;
}

tr:last-child td {
  border-bottom: 0;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code {
  border-radius: 5px;
  background: #e4f3f5;
  color: var(--primary-dark);
  padding: 2px 6px;
  font-size: 0.92em;
}

pre {
  overflow-x: auto;
  margin: 14px 0 0;
  border-radius: 8px;
  background: #1f2328;
  color: #fbfaf7;
  padding: 18px 20px;
  font-size: 13px;
  line-height: 1.65;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.method {
  display: inline-flex;
  min-width: 48px;
  justify-content: center;
  border-radius: 6px;
  background: #e4f3f5;
  color: var(--primary-dark);
  padding: 6px 8px;
  font: 900 12px/1 ui-monospace, monospace;
}

.method.post {
  background: var(--pdf-soft);
  color: #b42318;
}

.flow {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.step-no {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.error-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.error-list code {
  background: var(--pdf-soft);
  color: #b42318;
  font-weight: 900;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .site-header-inner {
    padding: 8px 16px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 0 18px;
  }

  .hero,
  .section,
  .footer {
    padding: 24px 16px;
  }

  .hero {
    padding-top: 44px;
  }

  .grid,
  .error-list {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }
}
