:root {
  color-scheme: dark;
  --site-width: 46rem;
}

[data-theme="light"] {
  color-scheme: light;
}

[data-theme="dark"] {
  color-scheme: dark;
}

:root,
[data-theme="light"],
[data-theme="dark"] {
  --bulma-primary-h: 198deg;
  --bulma-primary-s: 89%;
  --bulma-primary-l: 46%;
  --bulma-link-h: 198deg;
  --bulma-link-s: 89%;
  --bulma-link-l: 46%;
  --bulma-code: #268bd2;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

[data-theme="dark"] .site-main {
  background-color: rgb(2 6 23 / var(--tw-bg-opacity, 1));
}

.site-wrap {
  max-width: var(--site-width);
  margin-inline: auto;
  width: 100%;
}

.navbar {
  border-bottom: 1px solid var(--bulma-border);
}

.site-nav {
  align-items: stretch;
  display: flex;
  margin-inline: auto;
  min-height: var(--bulma-navbar-height);
  width: 100%;
}

@media screen and (max-width: 1023px) {
  .site-nav {
    display: block;
  }

  .navbar-end {
    display: flex;
    flex-wrap: wrap;
  }

  .navbar-end > .navbar-item:not(:has(> .site-icon-button)) {
    flex: 1 0 100%;
  }

  .navbar-end > .navbar-item:has(> .site-icon-button) {
    flex: 0 0 auto;
  }
}

@media screen and (min-width: 1024px) {
  .site-nav {
    max-width: var(--site-width);
  }

  .site-nav .navbar-brand {
    margin-inline-start: -0.75rem;
  }

  .site-nav .navbar-menu {
    margin-inline-end: -0.75rem;
  }

  .navbar-end .navbar-dropdown {
    inset-inline-start: auto;
    inset-inline-end: 0;
  }

  .navbar-dropdown {
    box-shadow: 0 0.4em 1em rgba(10, 22, 36, 0.26), 0 0 0 1px rgba(10, 22, 36, 0.1);

    border-top: 0px;
    top: calc(100% + 1px);
  }

  [data-theme="dark"] .navbar-dropdown {
    box-shadow: 0 0.55em 1.4em rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.28);
  }
}

.navbar-link.is-active:not(.is-arrowless)::after,
.navbar-link.is-selected:not(.is-arrowless)::after {
  border-color: currentColor;
}

.navbar-item.site-logo {
  display: grid;
  font-weight: 700;
  line-height: 1.1;
  color: var(--bulma-text-strong);
}

.navbar-item.site-logo:hover {
  color: var(--bulma-text-strong);
}

.site-logo-top,
.site-logo-bottom {
  font-size: 1.75rem;
  grid-area: 1 / 1;
}

.site-logo-top {
  clip-path: polygon(0% 0%, 100% 0%, 100% 48%, 0% 58%);
}

.site-logo-bottom {
  clip-path: polygon(0% 60%, 100% 50%, 100% 100%, 0% 100%);
  color: transparent;
  background: linear-gradient(177deg, var(--bulma-scheme-main) 53%, var(--bulma-text-strong) 65%);
  background-clip: text;
  transform: translateX(-0.02em);
}

.navbar-item:has(> .site-icon-button) {
  padding: 0;
}

.site-icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 0;
  background-color: hsla(var(--bulma-navbar-h), var(--bulma-navbar-s), calc(var(--bulma-navbar-item-background-l) + var(--bulma-navbar-item-background-l-delta)), var(--bulma-navbar-item-background-a));
  color: inherit;
  cursor: pointer;
}

.site-icon-button:hover,
.site-icon-button:focus,
.site-icon-button:focus-visible {
  --bulma-navbar-item-background-l-delta: var(--bulma-navbar-item-hover-background-l-delta);
  --bulma-navbar-item-background-a: 1;
  color: inherit;
}

.site-icon-button.is-active {
  --bulma-navbar-h: var(--bulma-navbar-item-selected-h);
  --bulma-navbar-s: var(--bulma-navbar-item-selected-s);
  --bulma-navbar-item-background-l: var(--bulma-navbar-item-selected-background-l);
  --bulma-navbar-item-background-a: 1;
}

.site-icon-button svg {
  width: 1.50rem;
  height: 1.50rem;
}

.site-icon-button.site-icon-button-larger svg {
  width: 1.70rem;
  height: 1.70rem;
}

.footer {
  --bulma-footer-padding: 1.5rem 1.5rem 1.5rem;
}

.footer .content p {
  margin-bottom: 0;
}

.project-card {
  height: 100%;
  color: inherit;
}

.project-card:hover {
  color: inherit;
}

.post-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.post-list > li + li {
  margin-top: 1.75rem;
}

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

.theme-icon-to-light {
  display: none;
}

[data-theme="dark"] .theme-icon-to-dark {
  display: none;
}

[data-theme="dark"] .theme-icon-to-light {
  display: block;
}

.app-links {
  text-align: center;
  font-size: 1.15rem;
}

.token.tag {
  align-items: baseline;
  background: transparent;
  border-radius: 0;
  display: inline;
  font-size: inherit;
  height: auto;
  justify-content: unset;
  line-height: inherit;
  padding: 0;
  white-space: inherit;
}

.navbar-item.navbar-item-child {
  padding-left: 1.5rem;
}

[data-theme="dark"] .navbar-item,
[data-theme="dark"] .navbar-link,
[data-theme="dark"] .content :is(h1, h2, h3, h4, h5, h6) {
  color: #f7f8fa;
}

[data-theme="dark"] .navbar-item.site-logo,
[data-theme="dark"] .navbar-item.site-logo:hover {
  color: #f7f8fa;
}

/* [data-theme="dark"] .site-logo-bottom {
  background: linear-gradient(177deg, var(--bulma-scheme-main) 53%, #f7f8fa 65%);
} */

pre[class*="language-"] {
  font-size: 0.92em;
}

[data-theme="dark"] code[class*="language-"],
[data-theme="dark"] pre[class*="language-"] {
  color: #839496;
}

[data-theme="dark"] :not(pre) > code[class*="language-"],
[data-theme="dark"] pre[class*="language-"] {
  background-color: #002b36;
}

[data-theme="dark"] .token.comment,
[data-theme="dark"] .token.prolog,
[data-theme="dark"] .token.doctype,
[data-theme="dark"] .token.cdata {
  color: #586e75;
}

[data-theme="dark"] .token.punctuation {
  color: #93a1a1;
}


[data-theme="dark"] .navbar,
[data-theme="dark"] footer {
  background: black;
}

body:has(.home-stage) {
  height: 100dvh;
  overflow: hidden;
}

body:has(.home-stage) .site-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-top: 1.5rem;
  padding-bottom: 0;
}

body:has(.home-stage) .site-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-stage {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  width: 100%;
}

@media screen and (min-width: 1024px) {
  .home-stage {
    margin-top: 20%;
  }
}

.home-center {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  max-width: 28rem;
  text-align: center;
}

.home-logo {
  display: grid;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--bulma-text-strong);
}

.home-logo .site-logo-top,
.home-logo .site-logo-bottom {
  font-size: 3.25rem;
}

[data-theme="dark"] .home-logo {
  color: #f7f8fa;
}

.home-prompt {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.45;

  margin-top: 1.5rem;
}

.home-prompt + .home-prompt {
  margin-top: 0.75rem;
}

.home-footnote {
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.home-floats {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.home-float {
  --home-dur: 22s;
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 1;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  animation: home-rise var(--home-dur) linear infinite;
  animation-delay: calc(var(--home-i) * var(--home-dur) / -9);
}

.home-float:nth-child(1) { --home-i: 0; }
.home-float:nth-child(2) { --home-i: 1; }
.home-float:nth-child(3) { --home-i: 2; }
.home-float:nth-child(4) { --home-i: 3; }
.home-float:nth-child(5) { --home-i: 4; }
.home-float:nth-child(6) { --home-i: 5; }
.home-float:nth-child(7) { --home-i: 6; }
.home-float:nth-child(8) { --home-i: 7; }
.home-float:nth-child(9) { --home-i: 8; }

@keyframes home-rise {
  0% {
    top: 100%;
    opacity: 0;
    transform: translateX(-50%) scale(1.35);
  }

  16% {
    opacity: 1;
    transform: translateX(-50%) scale(1.24);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  100% {
    top: 0;
    opacity: 0;
    transform: translateX(-50%) scale(0.72);
  }
}

@media screen and (max-width: 768px) {
  .home-center {
    max-width: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-floats {
    display: flex;
    flex-wrap: wrap;
    align-content: end;
    justify-content: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
  }

  .home-float {
    position: static;
    animation: none;
    opacity: 1;
  }
}