
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #241c14;
  background: #f3ecdf;
  font-family: Palatino, "Palatino Linotype", "Songti SC", "Noto Serif SC", serif;
  font-size: 18px;
  line-height: 1.75;
}
a { color: #8f3d1b; }
a:hover { color: #6d2c10; }
:focus-visible { outline: 2px solid #8f3d1b; outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 5; }
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; overflow: auto;
  padding: 28px 22px; background: #e7dccb; border-right: 1px solid #d3c4ae;
}
.brand { text-decoration: none; color: inherit; display: block; margin-bottom: 28px; }
.brand b { display: block; font-size: 28px; letter-spacing: 0.08em; font-weight: 600; }
.brand span { display: block; font-size: 13px; letter-spacing: 0.22em; color: #6b5644; }
.rail nav { display: flex; flex-direction: column; gap: 4px; }
.rail nav a {
  color: inherit; text-decoration: none; padding: 8px 10px; border-left: 2px solid transparent;
}
.rail nav a[aria-current="page"] { border-left-color: #8f3d1b; background: #f3ecdf; }
.rail small { display: block; margin-top: 28px; color: #6b5644; font-size: 13px; }
.doc { max-width: 760px; padding: 42px 48px 88px; }
.kicker { margin: 0 0 8px; color: #8f3d1b; letter-spacing: 0.16em; font-size: 13px; }
h1 { font-size: 42px; line-height: 1.2; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.02em; }
.lede { font-size: 20px; margin-top: 0; }
.meta { color: #6b5644; font-size: 14px; }
h2 { font-size: 26px; font-weight: 600; margin: 2.2rem 0 0.6rem; padding-left: 12px; border-left: 3px solid #8f3d1b; }
h3 { font-size: 20px; margin: 1.4rem 0 0.3rem; }
.drop::first-letter {
  float: left; font-size: 58px; line-height: 0.8; padding: 6px 8px 0 0; color: #8f3d1b; font-weight: 600;
}
.toc, .note, .related {
  background: #efe4d2; border: 1px solid #dccbb4; padding: 14px 18px; margin: 18px 0;
}
.toc ol { margin: 8px 0 0; padding-left: 1.2rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; background: rgba(255,255,255,0.35); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #dccbb4; }
th { font-weight: 600; }
.cta {
  display: inline-block; margin-top: 8px; background: #8f3d1b; color: #fff; text-decoration: none;
  padding: 10px 16px;
}
.cta:hover { background: #6d2c10; color: #fff; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 16px; list-style: none; font-size: 14px; color: #6b5644; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; }
footer.colophon {
  max-width: 760px; margin: 0; padding: 8px 48px 48px; color: #6b5644; font-size: 14px;
}
::selection { background: #8f3d1b; color: #fff; }
@media (max-width: 840px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: relative; height: auto; border-right: 0; border-bottom: 1px solid #d3c4ae; }
  .rail nav { flex-direction: row; flex-wrap: wrap; }
  .doc, footer.colophon { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: 32px; }
}
