:root {
  color-scheme: light;
  --paper: #f6f1e6;
  --ink: #171714;
  --red: #ff6b57;
  --lime: #b8f34a;
  --muted: #625f57;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.72;
  background-image: radial-gradient(#17171414 1px, transparent 1px);
  background-size: 22px 22px;
}

main {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 38px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--red);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.legal-nav a {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #1717142b;
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

h1 {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: clamp(36px, 7vw, 68px);
  line-height: .98;
  letter-spacing: -.06em;
}

.updated { color: var(--muted); font-size: 14px; }

.summary {
  margin-top: 28px;
  padding: 18px 20px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 14px;
}

.summary strong { display: block; margin-bottom: 4px; }

article {
  margin-top: 28px;
  padding: clamp(20px, 5vw, 32px);
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 6px 6px 0 var(--ink);
}

h2 { margin: 30px 0 8px; font-size: 22px; line-height: 1.25; }
h2:first-child { margin-top: 0; }
p { margin: 8px 0 14px; }
ul { padding-left: 24px; }
li + li { margin-top: 5px; }
a { color: #8f3c31; font-weight: 700; }
code { border-radius: 5px; background: #17171410; padding: 2px 5px; }
footer { margin-top: 32px; color: var(--muted); font-size: 13px; }

@media (max-width: 680px) {
  main { padding-top: 26px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .legal-nav { justify-content: flex-start; }
}
