:root {
  color-scheme: light;
  --ink: #252525;
  --muted: #777777;
  --paper: #f1f0ec;
  --line: #dddbd6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

html[lang="en"] body {
  font-family: "Jost", "Helvetica Neue", sans-serif;
  font-weight: 400;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4.5rem;
}

.lang {
  margin: 0 0 1.75rem;
  font-family: "Jost", "Zen Kaku Gothic New", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.lang a {
  color: var(--muted);
  text-decoration: none;
}

h1,
h2,
.meta {
  font-family: "Jost", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
}

h1,
h2 {
  font-weight: 700;
}

h1 {
  margin: 0 0 0.65rem;
  font-size: 1.65rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

html.inapp h1,
html.inapp .lang {
  display: none;
}

.meta {
  margin: 0 0 2.25rem;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

li {
  margin: 0.4rem 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  font-weight: 400;
}
