:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #23302c;
  background: #fff;
  line-height: 1.65;
  --accent: #176b58;
  --border: #e1e7e4;
}

* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 6rem;
}
body {
  margin: 0;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid #318675;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 8px 12px;
  background: #fff;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px max(24px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 650;
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: 28px;
}
header nav {
  font-size: 0.9rem;
}

.layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  gap: 64px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}
aside nav {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 9px;
  padding: 48px 0;
  font-size: 0.88rem;
}
aside strong {
  margin-bottom: 6px;
}
aside a {
  color: #53645d;
  text-decoration: none;
}
aside a:hover {
  color: var(--accent);
  text-decoration: underline;
}
main {
  min-width: 0;
  padding-top: 48px;
}
section {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
section:last-of-type {
  border: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #142a20;
}
h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 2.8rem);
}
h2 {
  margin: 0 0 20px;
  font-size: 1.6rem;
}
h3 {
  margin: 30px 0 16px;
  font-size: 1.15rem;
}
p {
  margin: 0 0 18px;
}
.lead {
  font-size: 1.2rem;
  color: #53645d;
}
ul {
  padding-left: 22px;
}
li {
  margin-bottom: 10px;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
code {
  font-size: 0.86em;
}
p code,
li code,
td code {
  padding: 2px 4px;
  background: #f2f5f3;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
pre {
  margin: 22px 0;
  padding: 22px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f7f9f8;
  font-size: 0.84rem;
  line-height: 1.65;
}
pre code {
  font: inherit;
}
.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: #f7f9f8;
}
figure {
  margin: 28px 0 0;
}
figure img {
  max-width: 100%;
}
figcaption {
  margin-top: 8px;
  color: #53645d;
  font-size: 0.84rem;
}
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: #53645d;
}

@media (max-width: 800px) {
  .layout {
    display: block;
    width: min(760px, calc(100% - 32px));
  }
  aside nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
  }
  aside strong {
    grid-column: 1 / -1;
  }
  main {
    padding-top: 32px;
  }
  header {
    padding: 14px 16px;
  }
  pre {
    padding: 16px;
    font-size: 0.77rem;
  }
}
