:root {
  --bg: #fafafa;
  --fg: #171717;
  --muted: #737373;
  --line: #ececec;
  --link: #171717;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  width: min(38rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.75rem 0 5rem;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}

.logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: inherit;
}

time, .meta, footer {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

h2 {
  margin: 0 0 1.5rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

section + section {
  margin-top: 3.25rem;
}

article + article {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

h3 {
  margin: 0 0 0.2rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

h3 a {
  color: inherit;
  text-decoration: none;
}

h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.meta { margin: 0 0 0.55rem; }

article p {
  margin: 0;
  color: #3f3f3f;
}

footer {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

footer p { margin: 0; }

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

@media (max-width: 520px) {
  .page { width: min(38rem, calc(100% - 2rem)); padding-top: 1.75rem; }
  h3 { font-size: 1.05rem; }
}
