:root {
  color-scheme: light;
  --bg: #FAF8F3;
  --plate: #ECE7DC;
  --text: #15555A;
  --muted: #4A6163;
  --edge: rgb(21 85 90 / 20%);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0A1F21;
    --plate: #183A3D;
    --text: #FFFFFF;
    --muted: #8FA3A5;
    --edge: rgb(255 255 255 / 12%);
  }
}
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
main {
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 420px;
  margin: 16px auto 32px;
}
main.doc { max-width: 640px; }
.icon {
  width: 112px;
  height: 112px;
  margin: 16px auto 24px;
  border-radius: 22%;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--edge);
}
.icon img { display: block; width: 100%; height: 100%; }
.home {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 8px 0 24px;
  color: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.home img {
  width: 44px;
  height: 44px;
  border-radius: 22%;
  box-shadow: 0 0 0 1px var(--edge);
}
h1 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.doc h1 { text-align: left; }
h2 {
  margin: 28px 0 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.doc h3 {
  margin: 20px 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
.lead, .doc p, .doc li {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
}
.lead { margin: 0; text-align: center; }
.lead + .lead { margin-top: 8px; }
.lead[lang="en"], .translation, .caption, .en-note { color: var(--muted); }
.plate {
  margin-top: 24px;
  padding: 24px;
  background: var(--plate);
  border-radius: 16px;
}
.plate h2 { margin: 0; font-size: 17px; line-height: 1.5; }
.translation {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.plate p { margin: 0 0 12px; }
.plate p:last-child { margin-bottom: 0; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 1.25rem; }
.doc li { margin: 0 0 8px; }
.doc li:last-child { margin-bottom: 0; }
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 24px;
}
.links a { font-size: 15px; font-weight: 600; }
.caption {
  margin: 24px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}
.caption + .caption { margin-top: 8px; }
.lang {
  margin-top: 32px;
  padding-top: 8px;
  border-top: 1px solid var(--edge);
}
.en-note { margin: 0 0 16px; font-size: 15px; }
