:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --card: #ffffff;
  --link: #1565c0;
  --max: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.92rem;
}

.doc h1,
.home h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.lead {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 60ch;
}

.doc article,
.home article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 24px;
}

.doc h2,
.home h2 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
  font-weight: 650;
}

.doc article > h2:first-child,
.home article > h2:first-child {
  margin-top: 0;
}

.doc h3 {
  margin: 20px 0 8px;
  font-size: 1.02rem;
}

.doc p, .doc li,
.home p, .home li {
  color: #1e293b;
}

.doc ul, .home ul, .home ol {
  padding-left: 1.2rem;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.link-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.link-list li:first-child {
  padding-top: 0;
}

.link-list a {
  font-weight: 600;
  font-size: 1.02rem;
}

.link-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.contact-table th,
.contact-table td {
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.contact-table th {
  width: 8.5rem;
  color: var(--muted);
  font-weight: 500;
}

.contact-table tr:last-child th,
.contact-table tr:last-child td {
  border-bottom: none;
}

.site-footer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
