﻿html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Lora', Georgia, serif;
  color: #d6e1ff;
  transition: background-color .25s, color .25s;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #33456f; border-radius: 3px; }

::selection { background: rgba(141, 184, 255, 0.28); }

#progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  height: 2px;
  width: 0;
  background: #8db8ff;
  transition: width .08s linear;
  pointer-events: none;
}

#app-content { animation: rise .22s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hljs {
  background: transparent !important;
  padding: 0 !important;
  font-size: .8125rem;
  line-height: 1.7;
  font-family: 'JetBrains Mono', monospace;
}

.code-wrap { position: relative; }

.copy-btn {
  position: absolute;
  top: .65rem;
  right: .65rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .2em .6em;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s, color .12s;
  background: #191f2c;
  border: 1px solid #22304e;
  color: #9ebeff;
}

.copy-btn:hover { color: #dbe7ff; }
.code-wrap:hover .copy-btn { opacity: 1; }

.prose-post hr {
  border-color: rgba(255 255 255 / 10%);
}

.prose-post :where(th, td) {
  padding: .55em 1.1em;
  border: 1px solid rgba(255 255 255 / 10%);
}

.prose-post table {
  border-collapse: collapse;
}

.prose-post thead tr {
  background: rgba(255 255 255 / 2%);
}

.prose-post thead tr th {
  color: #d4e7ff;
  background: none;
}

.prose-post ol {
  list-style: none;
  counter-reset: ol-counter;
  padding-left: 2em;
}

.prose-post ol > li {
  counter-increment: ol-counter;
  position: relative;
}

.prose-post ol > li::before {
  content: counter(ol-counter) ".";
  position: absolute;
  left: -2em;
  width: 1.5em;
  text-align: right;
}

.prose-post ul > li::marker {
  color: #d4e7ff;
}

.prose-post pre {
  background: #191a20;
  border-color: #3b3b40;
}

.prose-post code {
  background: rgba(255 255 255 / 10%);
  color: #d4e7ff;
  font-weight: 400;
  padding: .2em .4em;
}

.prose-post {
  & :where(blockquote p:first-of-type):not(:where([class~="not-prose"], [class~="not-prose"] *))::before {
    content: '';
  }
}

a {
  text-decoration: none;
  transition: color .25s ease;
}
a:hover {
  color: #dbe7ff;
}