:root {
  --paper: #f1f4f2;
  --ink: #17211d;
  --quiet: #5c6a64;
  --signal: #0e5c4a;
  --line: #d3dbd6;
  --sans: "Space Grotesk", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Literata", "Iowan Old Style", Palatino, "Palatino Linotype", "Songti SC", "Noto Serif SC", "SimSun", serif;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.6;
}

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4.5rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0 0 2.75rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.4;
}

.nav a {
  color: var(--quiet);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--signal);
}

h1 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.page-title {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
}

.suffix {
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--quiet);
}

.bridge {
  width: 4.5rem;
  height: 2px;
  margin-top: 1.15rem;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left center;
  animation: link 800ms ease 120ms forwards;
}

.lead {
  max-width: 38rem;
  margin: 2.75rem 0 0;
}

.langs {
  margin: 1.5rem 0 0;
  font-family: var(--sans);
  font-size: 0.98rem;
}

.langs a { margin-right: 1rem; }

h2 {
  margin: 3rem 0 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h3 {
  margin: 1.75rem 0 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

dl { margin: 1.25rem 0 0; }

.fact {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

dt {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--quiet);
}

dd {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.45;
}

.work,
.points {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 38rem;
}

.work li,
.points li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.sic {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--quiet);
}

.policy p,
.policy li {
  max-width: 40rem;
}

.policy ul,
.policy ol {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.policy li { margin: 0.45rem 0; }

.policy li strong { font-weight: 500; }

.table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.45;
}

th,
td {
  padding: 0.75rem 0.85rem 0.75rem 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 500;
  color: var(--quiet);
}

td:first-child,
th:first-child { width: 38%; }

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--quiet);
}

footer p { margin: 0; }

footer p + p { margin-top: 0.35rem; }

a {
  color: var(--signal);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--ink); }

a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

code {
  font-family: "Segoe UI", ui-monospace, monospace;
  font-size: 0.92em;
}

::selection {
  background: #c9e4db;
  color: var(--ink);
}

@keyframes link {
  to { transform: scaleX(1); }
}

@media (max-width: 640px) {
  .fact { grid-template-columns: 1fr; gap: 0.15rem; }
  td:first-child,
  th:first-child { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .bridge {
    animation: none;
    transform: none;
  }
}
