:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #142438;
  background: #f5f8fb;
  line-height: 1.65;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #075a4c; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #258674; outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-150%); padding: .5rem 1rem; background: white; z-index: 2; }
.skip:focus { transform: none; }
.site-header, .hero, .site-footer { background: #101b2a; color: #f4f8fc; }
.site-header { border-bottom: 1px solid #30445a; }
.nav, .site-footer .shell { display: flex; justify-content: space-between; align-items: center; gap: 1.1rem; padding-block: 1rem; }
.site-header a, .site-footer a { color: #e0ecf6; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 750; font-size: 1.15rem; text-decoration: none; white-space: nowrap; }
.mark { width: 1.1rem; height: 1.1rem; border: 2px solid #68eac1; border-radius: .3rem; transform: rotate(12deg); display: grid; place-items: center; }
.mark::after { content: ""; width: .35rem; height: .35rem; border-radius: 1px; background: #68eac1; }

.hero-layout { display: grid; grid-template-columns: 1.35fr .85fr; align-items: center; gap: clamp(1.75rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 7vw, 6rem); }
.byline { color: #a9c2d4; margin: 0 0 .8rem; font-size: .89rem; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(2.25rem, 5vw, 4.4rem); letter-spacing: -.06em; margin: 0 0 1.1rem; max-width: 17ch; }
.intro { max-width: 49ch; color: #cad9e6; font-size: clamp(1.05rem, 2vw, 1.2rem); margin: 0 0 1.45rem; }
.button { background: #68eac1; color: #102b25; padding: .68rem 1rem; border-radius: .55rem; display: inline-block; font-weight: 730; text-decoration: none; }
.button:hover { background: #98f5d8; }
.jump { color: #e1ecf7; display: inline-block; margin: .65rem 0 .35rem .75rem; }
.diagram { margin: 0; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid #40566e; border-radius: 1rem; background: #18283a; }
.diagram figcaption { font-weight: 700; margin-bottom: .8rem; line-height: 1.35; }
.diagram-route { display: flex; align-items: center; gap: .45rem; font-size: .83rem; }
.diagram-route span:not(.arrow) { padding: .34rem .48rem; border: 1px solid #5b778f; border-radius: .4rem; }
.arrow { color: #85eccd; }
.diagram dl { margin: .75rem 0 0; }
.diagram dl div { border-top: 1px solid #41566c; padding: .7rem 0 .15rem; margin-top: .55rem; }
.diagram dt { font-weight: 690; }
.diagram dd { margin: 0; color: #cbd9e6; font-size: .9rem; }
.diagram .algorithm { color: #9bf0d4; margin-top: .32rem; font-weight: 650; }

.content-layout { display: grid; grid-template-columns: minmax(155px, 1fr) minmax(0, 3.6fr); gap: clamp(1.5rem, 4vw, 3.75rem); padding-block: 2.8rem 4.8rem; }
.contents { position: sticky; top: 1.2rem; align-self: start; display: grid; gap: .65rem; padding: 1.05rem 1rem; background: #e8f0f5; border: 1px solid #d6e1ea; border-radius: .7rem; }
.contents h2 { font-size: .95rem; letter-spacing: 0; margin: 0 .1rem .12rem; }
.contents a { line-height: 1.3; font-size: .9rem; }
.article-body { width: 100%; min-width: 0; max-width: 785px; }
.article-body > section + section { margin-top: 2.9rem; }
.article-body h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); letter-spacing: -.032em; margin: 0 0 .8rem; }
.article-body h3 { font-size: 1.18rem; margin: 1.15rem 0 .4rem; }
.article-body p { margin: .6rem 0 .85rem; }
.article-body p:last-child { margin-bottom: 0; }
.source { font-size: .9em; }
.steps { margin: .8rem 0 0; padding-inline-start: 1.55rem; }
.steps li + li { margin-top: .6rem; }
.steps li::marker { color: #08715f; font-weight: 700; }

table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 1rem 0; background: white; }
caption { text-align: left; font-weight: 680; margin-bottom: .4rem; }
th, td { vertical-align: top; text-align: left; padding: .69rem .78rem; border: 1px solid #ccdbe5; overflow-wrap: anywhere; }
thead { background: #e9f3f2; }
th:first-child { width: 35%; }
tbody th { font-size: .94em; }
code { font-size: .92em; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.platforms section { padding: 1rem; background: white; border: 1px solid #d8e3eb; border-radius: .65rem; }
.platforms h3 { margin-top: 0; }
.platforms p { font-size: .95rem; }
blockquote { margin: .8rem 0 1rem; background: #e8f0f5; padding: .85rem 1.1rem; border-left: 4px solid #18715e; }
.callout { background: #e7f4ee; border: 1px solid #b1d7c8; border-radius: .65rem; padding: 1.05rem 1.2rem; margin-top: 1.2rem; }
.callout h3 { margin-top: 0; }
pre { overflow: auto; padding: .85rem 1rem; border-radius: .5rem; background: #17283b; color: #f2f7fc; font-size: .925rem; line-height: 1.55; }
.site-footer .shell { justify-content: flex-start; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero-layout, .content-layout { grid-template-columns: minmax(0, 1fr); }
  .contents { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contents h2 { grid-column: 1 / -1; }
  .content-layout { padding-top: 1.5rem; }
}

@media (max-width: 500px) {
  .shell { width: calc(100% - 2rem); }
  .platforms { grid-template-columns: 1fr; }
  .jump { margin-inline-start: 0; display: block; }
  th, td { padding: .5rem; font-size: .89rem; }
}
