:root {
  --bg: #fafaf8;
  --fg: #1a1a1a;
  --mute: #8a8a85;
  --rule: #e4e4df;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111110; --fg: #ececea; --mute: #77776f; --rule: #2a2a28; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); }
body {
  background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  padding: 0 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrap { width: 100%; max-width: 32rem; margin: 0 auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
.mute { color: var(--mute); }

.site-header { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { color: var(--mute); }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--fg); }

main { flex: 1; padding: 12vh 0 10vh; }
h1 { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: 1rem; font-weight: 500; margin-top: 2.5rem; }
.sub { margin-top: 0.25rem; }

.contents { list-style: none; margin-top: 4rem; border-top: 1px solid var(--rule); }
.contents li { border-bottom: 1px solid var(--rule); }
.contents a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; }
.contents a:hover { text-decoration: none; }

ul.items, ol.steps { list-style: none; margin-top: 0.75rem; }
ul.items li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.15rem 0; }
ol.steps { counter-reset: step; }
ol.steps li { counter-increment: step; display: grid; grid-template-columns: 1.75rem 1fr; padding: 0.15rem 0; }
ol.steps li::before { content: counter(step); color: var(--mute); }
.note { margin-top: 1.5rem; }

.site-footer { padding: 1.5rem 0 2rem; border-top: 1px solid var(--rule); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
