:root {
  --ink: #1a1f2b;
  --muted: #5b6472;
  --line: #e3e7ee;
  --accent: #1f6feb;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --warn-bg: #fff7e6;
  --warn-line: #f0c36d;
  --warn-ink: #6b4e0a;
  --maxw: 760px;
}

* { box-sizing: border-box; }

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

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
header.site .wrap {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
}
header.site .brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
header.site nav a {
  margin-left: 1.1rem;
  font-size: 0.95rem;
  text-decoration: none;
}
header.site nav a:first-child { margin-left: 0; }

h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}
h2 {
  font-size: 1.2rem;
  margin: 2.2rem 0 0.6rem;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.02rem;
  margin: 1.4rem 0 0.4rem;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.draft-notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-ink);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  margin: 0 0 1.75rem;
}
.draft-notice strong { color: var(--warn-ink); }

ul, ol { padding-left: 1.4rem; }
li { margin: 0.3rem 0; }

code, .ph {
  background: #eef1f6;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  font: 0.86em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #b3261e;
  white-space: nowrap;
}

footer.site {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.88rem;
}
footer.site .wrap {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  justify-content: space-between;
}
footer.site a { color: var(--muted); }

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 2rem;
}
.cardlinks {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 540px) {
  .cardlinks { grid-template-columns: 1fr; }
}
.cardlinks a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.cardlinks a:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 14px rgba(31,111,235,0.08);
  text-decoration: none;
}
.cardlinks .t { font-weight: 600; display: block; margin-bottom: 0.2rem; }
.cardlinks .d { color: var(--muted); font-size: 0.92rem; }
