:root {
  color-scheme: dark;
  --bg: #070c11;
  --panel: #0c141c;
  --text: #e5f0f3;
  --muted: #a1b4bc;
  --cyan: #84e5ed;
  --amber: #d8b77a;
  --line: #283b45;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background-image: linear-gradient(90deg, transparent calc(50% - 541px), rgba(132, 229, 237, .06) calc(50% - 540px), transparent calc(50% - 539px), transparent calc(50% + 539px), rgba(132, 229, 237, .06) calc(50% + 540px), transparent calc(50% + 541px));
}
::selection { background: var(--cyan); color: var(--bg); }
a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
a:hover { color: #fff; }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
header, main, footer { width: min(calc(100% - 64px), 960px); margin-inline: auto; }
header {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 14px;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .15em;
  text-decoration: none;
}
.brand::before {
  content: "";
  display: block;
  width: 20px;
  height: 25px;
  background: var(--cyan);
  clip-path: polygon(0 0, 30% 0, 50% 62%, 70% 0, 100% 0, 64% 100%, 36% 100%);
}
header nav { display: flex; align-items: center; gap: 8px; }
header nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
header nav a:hover { color: var(--cyan); border-color: var(--line); background: var(--panel); }
main { padding-block: 62px 72px; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font: 12px/1.6 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 2px; margin: 0 10px 3px 0; background: var(--cyan); }
h1 { margin: 0 0 16px; font-size: clamp(2.3rem, 5.8vw, 3.7rem); font-weight: 600; line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
.meta { margin-block: 0 26px; color: var(--muted); font: 12px/1.8 var(--mono); }
p, li { max-width: 76ch; }
p { margin-block: 0 18px; }
strong { color: var(--text); font-weight: 600; }
.notice {
  position: relative;
  margin: 32px 0 28px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  background: linear-gradient(100deg, rgba(216, 183, 122, .065), transparent);
  color: #c5cdd0;
  font-size: 15px;
  line-height: 1.7;
}
.notice::after { content: ""; position: absolute; right: -1px; top: -1px; width: 8px; height: 8px; border-right: 1px solid var(--amber); border-top: 1px solid var(--amber); }
.notice p { margin: 0; }
.notice strong { color: var(--amber); }
main > nav {
  margin: 0 0 46px;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
main > nav ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
  row-gap: 0;
  counter-reset: document-section;
  margin: 0;
  padding: 0;
  list-style: none;
}
main > nav li { min-width: 0; margin: 0; counter-increment: document-section; }
main > nav a {
  display: flex;
  min-height: 44px;
  align-items: baseline;
  gap: 12px;
  padding-block: 9px;
  color: #c2d1d7;
  font-size: 14px;
  line-height: 1.65;
  text-decoration: none;
}
main > nav a::before { content: counter(document-section, decimal-leading-zero); flex: 0 0 22px; color: var(--cyan); font: 11px/1.8 var(--mono); }
main > nav a:hover { color: var(--cyan); text-decoration: underline; text-underline-offset: 5px; }
section { max-width: 820px; padding-bottom: 20px; }
section + section { padding-top: 22px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 17px; color: var(--text); font-size: clamp(1.15rem, 2.6vw, 1.45rem); font-weight: 600; line-height: 1.45; letter-spacing: -.018em; scroll-margin-top: 24px; text-wrap: balance; }
section p, section li { color: #bcccd3; }
section ul { margin: 0 0 20px; padding-left: 23px; }
section li { margin-block: 9px; padding-left: 5px; }
section li::marker { color: var(--cyan); }
section .pending {
  margin-block: 22px;
  padding-left: 18px;
  border-left: 1px solid #6c5b40;
  color: var(--amber);
  font-size: 15px;
  line-height: 1.75;
}
footer { padding: 22px 0 42px; border-top: 1px solid var(--line); }
footer a { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; font: 12px/1.6 var(--mono); text-decoration: none; }
footer a::before { content: "\2190"; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 10; padding: 12px 20px; color: var(--bg); background: var(--cyan); font-weight: 600; }
.skip:focus { top: 12px; color: var(--bg); }

@media (max-width: 640px) {
  html { font-size: 16px; }
  header, main, footer { width: calc(100% - 40px); }
  header { min-height: 88px; flex-wrap: wrap; column-gap: 12px; row-gap: 2px; padding-block: 14px; }
  .brand { font-size: 14px; gap: 10px; }
  .brand::before { width: 17px; height: 21px; }
  header nav { gap: 0; }
  header nav a { padding-inline: 10px; font-size: 11px; }
  main { padding-block: 38px 40px; }
  h1 { font-size: clamp(2.1rem, 10vw, 3rem); }
  .meta { max-width: 35ch; }
  .notice { padding: 16px; margin-top: 26px; }
  main > nav { margin-bottom: 34px; padding-block: 12px; }
  main > nav ol { grid-template-columns: 1fr; }
  main > nav a { min-height: 44px; font-size: 14px; }
  section { padding-bottom: 16px; }
  section + section { padding-top: 20px; }
  section .pending { padding-left: 14px; }
  footer { padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  :root { color-scheme: light; }
  html, body { color: #000; background: #fff; font-size: 11pt; }
  header, .skip, main > nav, footer { display: none; }
  main { width: 100%; margin: 0; padding: 0; }
  h1 { font-size: 28pt; }
  h2 { font-size: 14pt; break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  a, strong, h1, h2, .meta, .eyebrow, section p, section li, section .pending, .notice, .notice strong { color: #000; }
  section + section, section .pending { border-color: #aaa; }
  .notice { background: #fff; border: 1px solid #777; break-inside: avoid; }
  .notice::after, .eyebrow::before { display: none; }
  section { max-width: none; }
}
