:root {
  --bg: #ffffff;
  --surface: #f6f5fa;
  --text: #1c1b22;
  --muted: #5f5c6b;
  --border: #e3e0ec;
  --accent: #6d4fd8;
  --accent-soft: #efeafd;
  --notice-bg: #fff6e0;
  --notice-border: #e2b84a;
  --notice-text: #5c4300;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131217;
    --surface: #1d1b24;
    --text: #edebf3;
    --muted: #a7a3b5;
    --border: #312e3c;
    --accent: #a892f5;
    --accent-soft: #272238;
    --notice-bg: #33290c;
    --notice-border: #8a6d1c;
    --notice-text: #f3dfa3;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 15px;
}

nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }

main { padding: 40px 0 56px; }

h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 40px 0 10px;
}

h3 {
  font-size: 18px;
  margin: 28px 0 6px;
}

p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

a { color: var(--accent); }

.lead {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 28px;
}

.muted { color: var(--muted); }
.small { font-size: 15px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0 0 16px;
}

.card h2, .card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.card:hover { border-color: var(--accent); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.grid .card { margin: 0; }

.pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 14px;
  font-weight: 600;
}

.notice {
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  color: var(--notice-text);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 28px;
  font-size: 15px;
}

.table-scroll { overflow-x: auto; margin: 0 0 16px; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
}

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

th { font-weight: 600; }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

footer.site .wrap {
  padding-top: 20px;
  padding-bottom: 32px;
}

footer.site a { color: var(--muted); }

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  .lead { font-size: 18px; }
}
