:root {
  --paper: #f5f6f2;
  --surface: #ffffff;
  --ink: #18222d;
  --ink-soft: #46515d;
  --blue: #234a68;
  --red: #a63a3a;
  --line: #d7dde0;
  --wash: #edf1f3;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
}

body > header,
body > main,
body > footer {
  width: min(100% - 2rem, 52rem);
  margin-inline: auto;
}

body > header {
  padding: 2.25rem 0 1rem;
}

.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  margin: 0;
}

.brand small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.crumb {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.crumb a {
  color: var(--blue);
}

main {
  padding: 2rem 0 3rem;
}

.index-intro p {
  max-width: 46em;
}

.issue-list {
  margin: 1.6rem 0 2.4rem;
}

.issue {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 1.1rem 1.4rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
}

.issue:last-child {
  border-bottom: 1px solid var(--line);
}

.issue-date {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--blue);
}

.issue-date small {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.issue h2 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.issue h2 a {
  color: var(--ink);
  text-decoration: none;
}

.issue h2 a:hover,
.issue h2 a:focus-visible {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.issue p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.issue-meta {
  font-size: 0.84rem;
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
}

.framework-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.7rem;
  margin: 1.2rem 0 2rem;
}

.framework {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}

.framework strong {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--blue);
}

.doc-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.2rem;
  margin-bottom: 1.8rem;
}

.doc-head h1 {
  margin: 0.5rem 0 0.5rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  line-height: 1.4;
}

.doc-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 0;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.92rem;
}

.pager a {
  color: var(--blue);
  text-decoration: none;
}

.pager a:hover,
.pager a:focus-visible {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.pager .next {
  margin-left: auto;
}

main h2 {
  margin: 2rem 0 0.8rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}

main h3 {
  margin: 1.6rem 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--blue);
}

main p {
  margin: 0 0 0.8rem;
}

main code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88em;
  background: var(--wash);
  padding: 0.08em 0.35em;
  border-radius: 0.2em;
}

main ul {
  margin: 0.4rem 0 1rem;
  padding-left: 1.2rem;
}

main li {
  margin-bottom: 0.45rem;
}

main li::marker {
  color: var(--red);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.94rem;
}

caption {
  caption-side: top;
  text-align: left;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

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

thead th {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

tbody tr:nth-child(even) {
  background: var(--wash);
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2.5rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

footer p {
  margin: 0.2rem 0;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .issue {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .issue-meta {
    text-align: left;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 12px;
  }

  .pager,
  .crumb {
    display: none;
  }

  main h2 {
    page-break-after: avoid;
  }

  tr,
  li {
    page-break-inside: avoid;
  }
}
