:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #66716e;
  --line: #d9dfdc;
  --paper: #ffffff;
  --canvas: #f4f7f5;
  --header: #151c1a;
  --teal: #087f70;
  --teal-dark: #06685c;
  --teal-soft: #e7f5f1;
  --code: #202826;
  --amber: #a66205;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0;
}

a {
  color: var(--teal-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 8px 12px;
  color: #ffffff;
  background: var(--teal-dark);
  transform: translateY(-150%);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(24px, calc((100% - 1120px) / 2));
  color: #ffffff;
  background: var(--header);
  border-bottom: 1px solid #303936;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: var(--teal);
  border-radius: 6px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: #aeb8b4;
  font-size: 12px;
}

.site-header nav {
  display: flex;
  gap: 22px;
}

.site-header nav a {
  color: #dff8ef;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a:hover {
  text-decoration: underline;
}

.article-shell {
  width: min(100% - 40px, 880px);
  margin: 0 auto;
  padding: 72px 0 88px;
}

article h1,
article h2 {
  color: #101715;
  line-height: 1.2;
  letter-spacing: 0;
}

article h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: 48px;
}

.article-meta {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

article h2 {
  margin: 64px 0 20px;
  padding-top: 8px;
  font-size: 30px;
}

article p,
article ol,
article ul {
  max-width: 760px;
}

article li + li {
  margin-top: 8px;
}

article img {
  display: block;
  width: 100%;
  height: auto;
  margin: 32px 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 48px rgb(23 33 31 / 10%);
}

article em {
  color: var(--muted);
}

article code {
  padding: 0.12em 0.34em;
  color: #075f54;
  background: var(--teal-soft);
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
}

article pre {
  max-width: 100%;
  margin: 28px 0;
  padding: 22px 24px;
  overflow-x: auto;
  color: #f5f8f6;
  background: var(--code);
  border: 1px solid #303936;
  border-radius: 6px;
  line-height: 1.55;
  tab-size: 2;
}

article pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
  font-size: 14px;
}

article table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 15px;
}

article th,
article td {
  padding: 12px 14px;
  text-align: left;
  border: 1px solid var(--line);
}

article th {
  color: #075f54;
  background: var(--teal-soft);
}

article blockquote {
  margin: 28px 0;
  padding: 2px 0 2px 20px;
  color: #3f4c48;
  border-left: 4px solid var(--amber);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(24px, calc((100% - 1120px) / 2));
  color: #c7d0cd;
  background: var(--header);
  font-size: 14px;
}

footer p {
  margin: 0;
}

footer a {
  color: #dff8ef;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 14px 20px 16px;
  }

  .site-header nav {
    width: 100%;
    gap: 18px;
    padding-left: 50px;
  }

  .article-shell {
    width: min(100% - 32px, 880px);
    padding: 44px 0 60px;
  }

  article h1 {
    font-size: 36px;
  }

  article h2 {
    margin-top: 48px;
    font-size: 26px;
  }

  article pre {
    margin-right: -16px;
    margin-left: -16px;
    padding: 18px 16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  article table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }
}

@media (max-width: 420px) {
  .brand small {
    max-width: 240px;
  }

  .site-header nav {
    justify-content: space-between;
    gap: 10px;
    padding-left: 0;
  }

  article h1 {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
