:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #dbe4ee;
  background: #10151c;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  --ink: #dbe4ee;
  --accent: #7fc8ff;
  --line: #414b59;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--ink); color: #10151c; }
.reader-top {
  max-width: 1000px;
  margin: auto;
  padding: 18px clamp(20px, 4vw, 44px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.reader-top a { min-height: 44px; display: inline-flex; align-items: center; }
.languages { display: flex; gap: 18px; flex-shrink: 0; }
.languages a[aria-current] { color: var(--ink); font-weight: 650; text-decoration: none; }
.reader {
  max-width: 860px;
  margin: auto;
  padding: clamp(24px, 5vw, 60px) clamp(20px, 4vw, 44px) 60px;
}
h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 16px; text-wrap: balance; }
h2 { font-size: clamp(19px, 2.6vw, 23px); line-height: 1.35; margin: 0; text-wrap: balance; }
p, li { font-size: 16px; line-height: 1.75; }
p { margin: 0 0 18px; }
article > p:first-child { font-size: 18px; line-height: 1.7; margin: 28px 0 32px; }
ul { padding-inline-start: 23px; margin: 0 0 20px; }
li { margin-bottom: 10px; }
.about-section { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 20px 0; min-height: 64px; }
summary h2 { display: inline; margin-inline-start: 7px; }
summary:hover h2 { color: var(--accent); }
.section-body { padding: 0 0 12px 23px; }
.src li, .muted { font-size: 14px; }
code { font-size: .9em; }
article, .src { overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 36px; font-size: 14px; line-height: 1.7; }
.search-fallback { position: fixed; inset: 0; z-index: 100; overflow: auto; background: #10151c; padding: 24px; }
.search-fallback h2 { margin: 32px 0 16px; }
@media (max-width: 520px) {
  .reader-top { padding: 10px 20px; gap: 16px; }
  .reader { padding-top: 24px; }
  article > p:first-child { font-size: 17px; }
  .section-body { padding-inline-start: 0; }
}
@media print {
  .reader-top, .return-link, footer { display: none; }
  .reader { max-width: none; padding: 0; }
}

.flat { padding: 20px 0; }
.flat h2 { margin-bottom: 16px; }
