@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/va9B4kDNxMZdWfMOD5VnLK3eRhf6Xl7Glw.woff2")
  format("woff2");
  unicode-range:
  U+0000-00FF,
  U+0131,
  U+0152-0153,
  U+02BB-02BC,
  U+02C6,
  U+02DA,
  U+02DC,
  U+2000-206F,
  U+2074,
  U+20AC,
  U+2122,
  U+2191,
  U+2193,
  U+2212,
  U+2215,
  U+FEFF,
  U+FFFD;
}

@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/u-440qyriQwlOrhSvowK_l5-fCZMdeX3rg.woff2")
  format("woff2");
  unicode-range:
  U+0000-00FF,
  U+0131,
  U+0152-0153,
  U+02BB-02BC,
  U+02C6,
  U+02DA,
  U+02DC,
  U+2000-206F,
  U+2074,
  U+20AC,
  U+2122,
  U+2191,
  U+2193,
  U+2212,
  U+2215,
  U+FEFF,
  U+FFFD;
}

@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/u-4n0qyriQwlOrhSvowK_l52xwNZWMf6hPvhPQ.woff2")
  format("woff2");
  unicode-range:
  U+0000-00FF,
  U+0131,
  U+0152-0153,
  U+02BB-02BC,
  U+02C6,
  U+02DA,
  U+02DC,
  U+2000-206F,
  U+2074,
  U+20AC,
  U+2122,
  U+2191,
  U+2193,
  U+2212,
  U+2215,
  U+FEFF,
  U+FFFD;
}

@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/lexend/v26/wlpwgwvFAVdoq2_v-6QU82RHaA.woff2")
  format("woff2");
  unicode-range:
  U+0000-00FF,
  U+0131,
  U+0152-0153,
  U+02BB-02BC,
  U+02C6,
  U+02DA,
  U+02DC,
  U+0304,
  U+0308,
  U+0329,
  U+2000-206F,
  U+20AC,
  U+2122,
  U+2191,
  U+2193,
  U+2212,
  U+2215,
  U+FEFF,
  U+FFFD;
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/librebaskerville/v24/kmKhZrc3Hgbbcjq75U4uslyuy4kn0qNcWxEQDO-Wyrs.woff2")
  format("woff2");
  unicode-range:
  U+0000-00FF,
  U+0131,
  U+0152-0153,
  U+02BB-02BC,
  U+02C6,
  U+02DA,
  U+02DC,
  U+0304,
  U+0308,
  U+0329,
  U+2000-206F,
  U+20AC,
  U+2122,
  U+2191,
  U+2193,
  U+2212,
  U+2215,
  U+FEFF,
  U+FFFD;
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/librebaskerville/v24/kmKnZrc3Hgbbcjq75U4uslyuy4kn0qNZaxMaC82U.woff2")
  format("woff2");
  unicode-range:
  U+0000-00FF,
  U+0131,
  U+0152-0153,
  U+02BB-02BC,
  U+02C6,
  U+02DA,
  U+02DC,
  U+0304,
  U+0308,
  U+0329,
  U+2000-206F,
  U+20AC,
  U+2122,
  U+2191,
  U+2193,
  U+2212,
  U+2215,
  U+FEFF,
  U+FFFD;
}

:root {
  --background-body: #fff;
  --text-main: #36393b;
  --text-secondary: #6b6f72;
  --primary-color: #e5b567;
  --font-family-serif: "Libre Baskerville", serif;
  --font-family-sans: "Lexend", sans-serif;
  --code-color: #555;
}

:root.theme-dark {
  --background-body: #202122;
  --text-main: #fff;
  --text-secondary: #ccc;
  --code-color: #aaa;
}

html {
  overflow-y: scroll;
}

@supports (scrollbar-gutter: stable) {
  html {
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-family-serif);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--background-body);
  color: var(--text-main);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-family: var(--font-family-sans);
  font-weight: 700;
}

h1 {
  margin-bottom: 1em;
  font-family: var(--font-family-serif);
  font-size: 4em;
}

h2 {
  margin-top: 1.6em;
  font-size: 1.8em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.4em;
}

h5 {
  font-size: 1.3em;
}

h6 {
  font-size: 1.2em;
}

p,
ul,
ol {
  margin: 1.2em 0;
  font-size: 1.3rem;
  line-height: 1.75;
}

ol,
ul {
  padding-left: 2rem;
}

li {
  margin: 1rem 0;
}

li p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
  transition: color linear 0.15s;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

p a {
  text-decoration: none;
  box-shadow: inset 0 -0.12em 0 var(--primary-color);
  transition:
  box-shadow 0.2s ease-in-out,
  color 0.2s ease-in-out;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

p a:hover {
  color: #fff;
  box-shadow: inset 0 -1.5em 0 var(--primary-color);
}

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

hr {
  height: 10px;
  margin: 60px auto;
  border: 0;
  padding: 0;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='20' height='10' viewBox='0 0 20 10' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' clip-rule='evenodd' stroke-miterlimit='10'%3e%3cpath fill='none' d='M0 0h20v10H0z'/%3e%3cclipPath id='a'%3e%3cpath d='M0 0h20v10H0z'/%3e%3c/clipPath%3e%3cg clip-path='url(%23a)'%3e%3cpath d='M20 7.384c-4.999-.001-5-4.768-9.999-4.768C5 2.616 5 7.384 0 7.384' fill='none' stroke-width='3' stroke='%23e5b567'/%3e%3c/g%3e%3c/svg%3e");
}

code {
  padding: 0.2em 0.4em;
  border-radius: 2px;
  color: var(--code-color);
  font-family: "SF Mono", menlo, inconsolata, monospace;
  font-size: calc(1em - 2px);
}

pre {
  margin: 1.2em 0;
  padding: 1.2em;
  border-radius: 8px;
}

pre code {
  padding: 0;
}

blockquote {
  margin: 2rem 0;
  padding: 0 2rem 0 2rem;
  border-left: 4px solid #ccc;
  font-size: 1.4em;
  font-style: italic;
}

blockquote p {
  padding-bottom: 6px;
}

blockquote footer {
  font-size: 1.1rem;
  text-align: right;
}

figure {
  margin: 0 0 3em;
}

table {
  margin: 2em 0;
  border-collapse: collapse;
  font-family: var(--font-family-sans);
  font-size: 1.125em;
}

th,
td {
  padding: 0.4em 0.8em;
  word-break: break-word;
}

th {
  border-bottom: 2px solid #ccc;
}

header,
main,
footer {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2em;
}

a.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

a.logo:hover {
  color: var(--primary-color);
  text-decoration: none;
}

header h3 {
  margin: 0;
}

header nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1rem;
  font-family: var(--font-family-sans);
  font-weight: 700;
  text-transform: uppercase;
}

header nav a {
  position: relative;
  display: inline-block;
  min-width: 70px;
  padding: 5px;
  text-align: center;
  text-decoration: none;
}

header nav a::before {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  content: "";
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

header nav a:hover::before,
header nav a.selected::before {
  transform: scaleX(1);
}

header nav a.selected::before {
  background: var(--primary-color);
}

header nav a:focus-visible::before {
  transform: scaleX(1);
  background: var(--primary-color);
}

.theme-toggle-container {
  display: inline-flex;
  align-items: center;
  margin-left: 0.25rem;
}

.theme-toggle {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid rgba(107, 111, 114, 0.25);
  border-radius: 999px;
}

.theme-toggle-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
  background-color 0.15s ease,
  color 0.15s ease;
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  background: rgba(107, 111, 114, 0.12);
}

.theme-toggle-btn.is-active {
  color: var(--text-main);
  background: rgba(107, 111, 114, 0.2);
}

.theme-toggle-btn svg {
  width: 17px;
  height: 17px;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1em 2em;
}

footer {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.75em 2em 2.5em;
  border-top: 1px solid rgba(107, 111, 114, 0.25);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-copy {
  display: block;
  width: 100%;
  max-width: 42em;
  margin: 0 auto;
  line-height: 1.7;
  text-align: center !important;
}

footer,
footer * {
  text-align: center !important;
}

.container {
  width: 100%;
  max-width: 42em;
  margin: 0 auto;
}

.docs-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.docs-switch-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-family-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.45;
  text-decoration: none;
  transition:
  opacity 0.2s ease,
  color 0.2s ease;
}

.docs-switch-item:hover {
  opacity: 0.75;
  color: var(--text-main);
  text-decoration: none;
}

.docs-switch-item.is-active {
  opacity: 1;
}

.docs-switch-item img {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.docs-path {
  margin-top: -0.75rem;
  margin-bottom: 1.1rem;
  color: var(--text-secondary);
  font-family: var(--font-family-sans);
  font-size: 0.95rem;
  line-height: 1.4;
}

@media (max-width: 1020px) {
  h1 {
    font-size: 3em;
  }
}

@media (max-width: 720px) {
  header {
    flex-direction: column;
    padding: 1.25em 1.5em;
  }
  
  header nav {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }
  
  p,
  ul,
  ol {
    margin: 1em 0;
    font-size: 1.2rem;
  }
  
  main,
  footer {
    padding: 1.5em;
  }
  
  header nav a {
    min-width: auto;
  }
}
.post-item-footer {
  font-family: var(--font-family-sans);
  font-weight: 700;
}

.post-item-date {
  color: var(--text-secondary);
  text-align: left;
  text-transform: uppercase;
  margin-right: 16px;
}

.post-item img {
  height: 380px;
  object-fit: cover;
}

@media screen and (max-width: 520px) {
  .post-item img {
    height: 180px;
  }
}
.post-header {
  text-align: center;
}
.post-header h1 {
  margin-bottom: 0.7em;
}
.post-header p {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-family: var(--font-family-sans);
  font-weight: 600;
}
.post-header hr {
  min-width: 100px;
  width: 30%;
}
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 50vh;
  text-align: center;
}
