* {
  box-sizing: border-box;
}

html {
  color: #1f2328;
  background: #f6f4ef;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

body {
  margin: 0;
}

.site-header {
  background: #202124;
  color: #f7f7f7;
  border-bottom: 4px solid #d8a31a;
}

.site-header-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 18px;
}

.site-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 0 0 10px;
  color: #bfc1c4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.site-breadcrumb a {
  color: #f7f7f7;
  text-decoration: none;
}

.site-breadcrumb a:hover {
  color: #f1c75b;
  text-decoration: underline;
}

.site-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.35;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-subtitle {
  margin: 6px 0 0;
  color: #d7d7d7;
  font-size: 0.95rem;
}

.layout {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0 48px;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 16px;
  background: #ffffff;
  border: 1px solid #d9d3c6;
  padding: 16px;
}

.sidebar h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.sidebar ol {
  margin: 0;
  padding-left: 1.3rem;
}

.sidebar li {
  margin: 0 0 7px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.sidebar a {
  color: #1b5e8c;
  text-decoration: none;
}

.sidebar a:hover {
  text-decoration: underline;
}

main {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #d9d3c6;
  padding: 32px;
}

main > :first-child {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  color: #17191c;
}

h1 {
  font-size: 2rem;
  border-bottom: 2px solid #d8a31a;
  padding-bottom: 0.35em;
}

h2 {
  margin-top: 2.2em;
  font-size: 1.45rem;
}

h3 {
  margin-top: 1.8em;
  font-size: 1.18rem;
}

a {
  color: #1b5e8c;
}

img {
  max-width: 100%;
  height: auto;
}

pre {
  overflow-x: auto;
  background: #1f2328;
  color: #f4f4f4;
  padding: 16px;
  border-radius: 4px;
  line-height: 1.55;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

:not(pre) > code {
  background: #f0ede6;
  padding: 0.12em 0.28em;
  border-radius: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
}

th,
td {
  border: 1px solid #d9d3c6;
  padding: 8px 10px;
  vertical-align: top;
}

th {
  background: #f0ede6;
}

blockquote {
  margin: 1.2em 0;
  padding: 0.5em 1em;
  border-left: 4px solid #d8a31a;
  background: #fbfaf7;
}

hr {
  border: 0;
  border-top: 1px solid #d9d3c6;
  margin: 2em 0;
}

.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  border-top: 1px solid #d9d3c6;
  padding-top: 18px;
}

.page-nav a {
  text-decoration: none;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 32px;
  color: #5c5c5c;
  font-size: 0.9rem;
}

@media (max-width: 840px) {
  .layout {
    display: block;
  }

  .sidebar {
    position: static;
    margin-bottom: 20px;
  }

  main {
    padding: 22px;
  }
}
