:root {
  color-scheme: light;
  --paper: #faf8f3;
  --ink: #292720;
  --muted: #615c51;
  --line: #d9d3c8;
  --accent: #9c3329;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Songti SC", "Noto Serif CJK JP", Georgia, serif;
  --sans: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "PingFang SC", system-ui, sans-serif;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
}
:lang(en) { --serif: "Baskerville", "Iowan Old Style", Georgia, serif; }
* { box-sizing: border-box; }
body, figure, dl, dd, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .25em; }
:focus-visible { outline: 3px solid #ad5b35; outline-offset: 3px; }
.brand { display: inline-flex; flex: none; }
.brand img { width: 132px; height: auto; }
.wrap, .shell { width: min(86%, 78rem); margin-inline: auto; }
.top, .mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; min-height: 82px; }
.top { border-bottom: 1px solid var(--line); }
.language { display: flex; align-items: center; gap: 1rem; }
.language a, .nav a { color: var(--muted); text-decoration: none; font-size: .81rem; }
.language a { padding: .38rem 0; white-space: nowrap; }
.language a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px var(--accent); }
.language a:hover, .nav a:hover { color: var(--accent); }
.document { width: min(88%, 44rem); margin: clamp(2.8rem,7vw,6rem) auto; overflow-wrap: anywhere; }
.document h1, .document h2 { font-family: var(--serif); font-weight: 500; text-wrap: balance; line-height: 1.4; }
.document h1 { font-size: clamp(2.25rem,5vw,3.7rem); }
.document h2 { margin: 2.2rem 0 .75rem; font-size: 1.55rem; }
.document p, .document li { margin-block: .85rem; }
.document a { color: var(--accent); }
.document .meta { color: var(--muted); font-size: .87rem; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--line); font-size: .85rem; }
.nav { display: flex; gap: .7rem 1.2rem; flex-wrap: wrap; }
@media(max-width: 650px) {
  .wrap, .shell { width: calc(100% - 40px); }
  .top, .mast-inner { min-height: 64px; gap: .65rem; }
  .brand img { width: 105px; }
  .language { gap: .75rem; }
  .language a { font-size: .73rem; }
}
