:root {
  color-scheme: dark;
  --background: #111111;
  --surface: #1b1b1b;
  --text: #f7f7f5;
  --muted: #c5c5bd;
  --lime: #c6fa48;
  --orange: #ff8047;
  --rule: #3c3c37;
  --gutter: clamp(18px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 1.0625rem/1.64 "Segoe UI", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration-color: var(--orange);
  text-underline-offset: .24em;
}
a:hover { color: var(--lime); }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.document-shell { width: min(100% - 2 * var(--gutter), 850px); margin-inline: auto; }
.document-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  min-height: 70px;
  padding-block: 10px;
  border-block-end: 1px solid var(--rule);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.wordmark::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 42%, 42% 42%, 42% 100%, 0 100%);
}
.document-return { color: var(--lime); font-size: .95rem; }
.document-main { padding-block: clamp(32px, 6.3vw, 78px) clamp(42px, 6.3vw, 80px); }
.document-text { max-inline-size: 76ch; overflow-wrap: anywhere; }
.document-text h1,
.document-text h2 {
  font-weight: 750;
  line-height: 1.15;
}
.document-text h1 {
  margin: 0 0 23px;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  letter-spacing: -.04em;
}
.document-text h2 {
  margin: 30px 0 9px;
  font-size: clamp(1.18rem, 2.4vw, 1.55rem);
  letter-spacing: -.016em;
}
.document-text p { margin: 0 0 .82em; }
.document-text .document-subtitle {
  margin-block-start: -11px;
  margin-block-end: 1.3em;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.24rem);
}
.document-text ul {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}
.document-text li { padding-inline-start: 1em; text-indent: -1em; }
.document-text li + li { margin-block-start: .3em; }
.document-text table {
  width: 100%;
  margin-block: 1em 1.3em;
  border-collapse: collapse;
  table-layout: fixed;
}
.document-text th,
.document-text td {
  padding: 11px 13px;
  border: 1px solid var(--rule);
  text-align: start;
  vertical-align: top;
}
.document-text th { width: 28%; background: var(--surface); }
.document-text :is(th, td) p:last-child { margin-block-end: 0; }
.document-footer {
  border-block-start: 1px solid var(--rule);
  padding-block: 19px 27px;
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .document-return { font-size: .9rem; }
  .document-text th,
  .document-text td { padding: 8px; font-size: .91rem; }
  .document-text th { width: 33%; }
}

@media print {
  :root { color-scheme: light; --background: #fff; --surface: #eee; --text: #000; --muted: #333; --rule: #bbb; }
  .document-shell { width: 100%; }
  .document-header, .document-footer { display: none; }
  .document-main { padding: 0; }
  .document-text h2 { break-after: avoid; }
}
