:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #596764;
  --line: #ccd5d2;
  --line-strong: #899794;
  --paper: #ffffff;
  --soft: #f3f7f6;
  --forest: #176b5c;
  --forest-dark: #0f4f44;
  --rust: #a5432e;
  --rust-soft: #fff1ed;
  --code: #162421;
  --code-ink: #e9f2ef;
  --max-width: 1120px;
  --reading-width: 760px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  min-width: 280px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--forest-dark);
  text-decoration-color: currentColor;
}

a:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid #f0a43b;
  outline-offset: 4px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: 0;
}

code,
pre,
.article-series,
.rail-title,
.topic,
.error-code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
  font-size: 0.92em;
}

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 720;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding-block: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-list a[aria-current="page"] {
  border-bottom: 2px solid var(--forest);
  color: var(--ink);
  font-weight: 650;
}

.intro {
  min-height: 455px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.7fr);
  align-items: center;
  gap: 80px;
  padding-block: 64px 72px;
}

.intro-copy {
  max-width: 680px;
}

.intro h1 {
  margin-bottom: 20px;
  font-size: 4rem;
  font-weight: 760;
}

.lede {
  max-width: 760px;
  margin-bottom: 20px;
  color: #31433f;
  font-size: 1.35rem;
  line-height: 1.55;
}

.intro-note {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--muted);
}

.index-rail {
  padding-left: 30px;
  border-left: 2px solid var(--ink);
}

.rail-title {
  margin-bottom: 20px;
  color: var(--forest);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.index-rail ol {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.index-rail li {
  border-top: 1px solid var(--line);
}

.index-rail li:last-child {
  border-bottom: 1px solid var(--line);
}

.index-rail a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 12px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.9rem;
  text-decoration: none;
}

.index-rail a span {
  color: var(--muted);
}

.rail-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.rail-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rust);
}

.notes-band {
  padding-block: 62px 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 1.55rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.note-list {
  border-top: 2px solid var(--ink);
}

.note-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  min-height: 150px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line-strong);
}

.note-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.82rem;
}

.topic {
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
}

.topic-network {
  color: var(--forest-dark);
}

.topic-linux {
  color: var(--rust);
}

.note-body h3 {
  margin-bottom: 9px;
  font-size: 1.2rem;
}

.note-body h3 a {
  text-decoration: none;
}

.note-body p {
  margin-bottom: 0;
  color: var(--muted);
}

.row-link,
.text-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--forest-dark);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.row-link span,
.text-action span {
  font-size: 1.15em;
}

.method {
  padding-block: 72px 84px;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
  counter-reset: method;
}

.method-list li {
  min-height: 175px;
  padding: 24px 26px 24px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: method;
}

.method-list li + li {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.method-list li::before {
  display: block;
  margin-bottom: 28px;
  color: var(--rust);
  content: "0" counter(method);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

.method-list strong,
.method-list span {
  display: block;
}

.method-list strong {
  margin-bottom: 8px;
}

.method-list span {
  color: var(--muted);
  font-size: 0.94rem;
}

.article-shell {
  max-width: var(--reading-width);
  padding-block: 28px 88px;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  margin-bottom: 72px;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumb a {
  color: var(--forest-dark);
}

.article-header {
  margin-bottom: 72px;
  padding-bottom: 46px;
  border-bottom: 2px solid var(--ink);
}

.article-series {
  margin-bottom: 16px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.article-header h1 {
  margin-bottom: 22px;
  font-size: 3rem;
}

.article-header .lede {
  margin-bottom: 0;
}

article section {
  margin-bottom: 68px;
}

article section h2 {
  margin-bottom: 20px;
  font-size: 1.55rem;
}

article section h2::before {
  display: inline-block;
  width: 18px;
  height: 4px;
  margin: 0 12px 0 -30px;
  vertical-align: 0.25em;
  background: var(--rust);
  content: "";
}

article section > p {
  color: #364642;
}

.table-wrap {
  max-width: 100%;
  margin-block: 28px;
  overflow-x: auto;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  background: var(--soft);
  font-size: 0.8rem;
}

td {
  font-size: 0.9rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.callout {
  margin-block: 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--forest);
  background: var(--soft);
  color: #31433f;
}

.callout-warm {
  border-left-color: var(--rust);
  background: var(--rust-soft);
}

.check-sequence,
.timeline,
.plain-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-sequence li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 20px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.check-sequence li:last-child {
  border-bottom: 1px solid var(--line);
}

.check-sequence > li > span {
  color: var(--forest);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

.check-sequence h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.check-sequence p {
  margin-bottom: 0;
  color: var(--muted);
}

.code-block {
  max-width: 100%;
  margin: 28px 0 12px;
  padding: 22px 24px;
  overflow-x: auto;
  border-left: 4px solid var(--forest);
  border-radius: 0 4px 4px 0;
  background: var(--code);
  color: var(--code-ink);
  font-size: 0.84rem;
  line-height: 1.75;
}

.caption {
  color: var(--muted) !important;
  font-size: 0.82rem;
}

.plain-list li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-top: 1px solid var(--line);
}

.plain-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.plain-list li::before {
  position: absolute;
  top: 1.37rem;
  left: 2px;
  width: 7px;
  height: 7px;
  background: var(--forest);
  content: "";
}

.definition-list {
  margin: 28px 0 0;
  border-top: 2px solid var(--ink);
}

.definition-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}

.definition-list dt {
  color: var(--forest-dark);
  font-weight: 700;
}

.definition-list dd {
  margin: 0;
  color: var(--muted);
}

.timeline {
  border-left: 2px solid var(--line-strong);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  padding: 0 0 22px 26px;
}

.timeline li::before {
  position: absolute;
  top: 0.45rem;
  left: -6px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 1px var(--rust);
  content: "";
}

.timeline span {
  font-weight: 700;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.article-next {
  display: grid;
  gap: 8px;
  margin-top: 86px;
  padding-top: 26px;
  border-top: 2px solid var(--ink);
}

.article-next > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.article-next a {
  color: var(--forest-dark);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.not-found {
  min-height: calc(100vh - 145px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 72px;
}

.error-code {
  margin-bottom: 10px;
  color: var(--rust);
  font-size: 0.9rem;
  font-weight: 700;
}

.not-found h1 {
  margin-bottom: 16px;
  font-size: 3rem;
}

.not-found > p:not(.error-code) {
  margin-bottom: 28px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #d7e1de;
}

.footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.82rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #eef5f3;
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .header-inner {
    min-height: 66px;
  }

  .brand > span:last-child {
    display: none;
  }

  .nav-list {
    gap: 18px;
  }

  .intro {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 44px;
    padding-block: 58px 54px;
  }

  .intro h1 {
    font-size: 3rem;
  }

  .lede {
    font-size: 1.16rem;
  }

  .index-rail {
    padding-left: 20px;
  }

  .notes-band,
  .method {
    padding-block: 52px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .note-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-block: 26px;
  }

  .note-meta {
    flex-direction: row;
    align-items: center;
  }

  .row-link {
    justify-self: start;
  }

  .method-list {
    grid-template-columns: 1fr;
  }

  .method-list li,
  .method-list li + li {
    min-height: 0;
    padding: 22px 0;
    border-left: 0;
  }

  .method-list li::before {
    margin-bottom: 12px;
  }

  .breadcrumb {
    margin-bottom: 50px;
  }

  .article-header {
    margin-bottom: 54px;
  }

  .article-header h1,
  .not-found h1 {
    font-size: 2.35rem;
  }

  article section h2::before {
    width: 12px;
    margin-left: 0;
    margin-right: 9px;
  }

  .definition-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    min-height: 112px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }
}

@media (max-width: 390px) {
  .nav-list {
    gap: 12px;
  }

  .nav-list a {
    font-size: 0.84rem;
  }

  .intro h1 {
    font-size: 2.55rem;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #35413e;
    --line: #67736f;
    --line-strong: #35413e;
  }
}

@media print {
  .site-header,
  .site-footer,
  .breadcrumb,
  .article-next,
  .skip-link {
    display: none;
  }

  .article-shell {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .code-block {
    border: 1px solid #555;
    background: transparent;
    color: #000;
    white-space: pre-wrap;
  }
}
