:root {
  --md-default-bg-color: #f5f5f5;
  --md-default-fg-color: #222;
  --md-default-fg-color--light: #666;
  --md-accent-fg-color: #b45309;
  --md-accent-fg-color--hover: #d97706;
  --md-typeset-a-color: #b45309;
  --page-bg: #f5f5f5;
  --paper-bg: #fff;
  --shadow: rgba(0, 0, 0, 0.14);
}

.md-header,
.md-tabs,
.md-footer,
.md-sidebar--secondary,
.md-overlay {
  display: none !important;
}

.md-main {
  background: var(--page-bg);
}

.md-main__inner {
  display: grid;
  grid-template-columns: 10rem minmax(0, 50rem);
  gap: 1.25rem;
  max-width: 64rem;
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.md-sidebar--primary {
  display: block !important;
  grid-column: 1;
  grid-row: 1;
  width: auto;
  height: auto;
  padding: 0;
  position: sticky !important;
  top: 2rem;
  align-self: start;
  transform: none !important;
  z-index: auto;
}

.md-sidebar__scrollwrap,
.md-sidebar__inner {
  margin: 0;
  overflow: visible;
  padding: 0;
}

.site-sidebar {
  font-size: 13px;
  line-height: 1.35;
}

.site-drawer-toggle,
.site-drawer-button,
.site-drawer-backdrop,
.site-drawer-close {
  display: none;
}

.site-sidebar-header {
  display: block;
}

.site-title {
  display: block;
  margin: 0 0 1rem;
  color: #222;
  font-weight: 700;
  text-decoration: none;
}

.site-nav,
.site-nav-nested {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-item {
  margin: 0 0 0.22rem;
}

.site-nav-section {
  margin: 1rem 0 0;
}

.site-nav-section-title {
  display: block;
  margin: 0 0 0.22rem;
  color: #222;
  font-weight: 700;
}

.site-nav-link {
  color: var(--md-default-fg-color--light);
  text-decoration: none;
}

.site-nav-link:hover,
.site-nav-link.is-active {
  color: var(--md-accent-fg-color);
}

.md-content {
  grid-column: 2;
  grid-row: 1;
  background: var(--paper-bg);
  box-shadow: 0 1px 4px var(--shadow);
  padding: 1.6rem 1.75rem 3rem;
}

.md-content--post .md-sidebar--post {
  display: none !important;
}

.md-content__inner {
  margin: 0;
  padding: 0;
}

.md-content__inner::before {
  display: none;
}

.md-typeset {
  color: #222;
  font-size: 15px;
  line-height: 1.6;
}

.md-typeset h1 {
  margin: 0 0 0.9rem;
  color: #222;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.md-typeset h2 {
  margin-top: 2rem;
  color: #222;
  font-size: 1.35rem;
  font-weight: 600;
}

.md-typeset p,
.md-typeset ul,
.md-typeset ol {
  margin: 0.75em 0;
}

.md-typeset a {
  color: var(--md-accent-fg-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.md-typeset a:hover {
  color: var(--md-accent-fg-color--hover);
  border-bottom-color: var(--md-accent-fg-color--hover);
}

.homepage-disclaimer {
  margin-top: 8rem !important;
  color: var(--md-default-fg-color--light);
  font-size: 0.86em;
  font-style: italic;
}

.md-typeset pre > code {
  border-radius: 0.25rem;
}

.article-list {
  margin-top: 1.5rem;
}

.article-item {
  margin: 0 0 2rem;
}

.article-item h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.article-item h2 a {
  color: #222;
  border-bottom: none;
}

.article-item h2 a:hover {
  color: var(--md-accent-fg-color);
}

.article-excerpt {
  color: #333;
}

.article-date {
  color: var(--md-default-fg-color--light);
  font-size: 0.86em;
  margin-top: 0.45rem;
}

@media screen and (max-width: 48rem) {
  .md-main__inner {
    display: block;
    margin: 0;
    padding: 4rem 1rem 1rem;
  }

  .md-sidebar--primary {
    display: block !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 15rem;
    height: 100vh;
    margin: 0;
    padding: 1.25rem;
    background: var(--paper-bg);
    box-shadow: 0 0.5rem 2rem var(--shadow);
    transform: translateX(-110%) !important;
    transition: transform 160ms ease;
    z-index: 20;
  }

  .site-drawer-toggle:checked ~ .site-sidebar {
    transform: translateX(0) !important;
  }

  .site-drawer-toggle:checked ~ .site-drawer-backdrop {
    display: block;
  }

  .site-drawer-button {
    display: flex;
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.26rem;
    background: var(--paper-bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.2rem;
    box-shadow: 0 1px 4px var(--shadow);
    cursor: pointer;
    z-index: 15;
  }

  .site-drawer-button span {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: #222;
  }

  .site-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    z-index: 19;
  }

  .site-sidebar-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }

  .site-drawer-close {
    display: block;
    color: var(--md-default-fg-color--light);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
  }

  .site-nav-item {
    margin: 0 0 0.45rem;
  }

  .md-content {
    padding: 1.2rem;
  }
}
