@font-face {
  font-family: "nudica";
  src: url("/assets/nudica.otf");
}

:root {
  --background: #000;
  --foreground: #f3f0e7;
  --grey: #636363;
  --accent: #3e619e;
}

::selection {
  background-color: var(--accent);
  color: var(--background);
}

::-moz-selection {
  background-color: var(--foreground);
  color: var(--background);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;
  min-height: 0;
}

*::-webkit-scrollbar {
  display: none;
}

body {
  font-family: "nudica";
  color: var(--foreground);
  background: var(--background);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.45;
}

p {
  pointer-events: none;
}

a {
  text-decoration: none;
  color: var(--foreground);
}

a:hover {
  text-decoration: underline;
}

.navbar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 960px;
  display: flex;
  justify-content: left;
  padding: 0.75rem 0.35rem;
  box-sizing: border-box;
  z-index: 100;
  mix-blend-mode: difference;
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.25rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  padding: 0 0.5rem 0.1rem 0.375rem;
}

.logo-mark {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  user-select: none;
}

.navbar-tabs {
  display: flex;
  gap: 0.125rem;
}

.nav-btn {
  background: transparent;
  border: none;
  border-radius: 0.125rem;
  padding: 0.4rem 0.8rem;
  font-family: "nudica";
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: inherit;
  user-select: none;
}

.nav-btn.active {
  background-color: var(--foreground);
  color: var(--background);
}

.body-content {
  margin: 0 auto;
  max-width: 960px;
  width: 100%;
  padding: 3.75rem 1rem 2.5rem;
  box-sizing: border-box;
  font-size: 0.75rem;
}

.columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 5rem;
}

.col-label {
  color: var(--grey);
}

.col-about p {
  text-align: justify;
}

.col-about p:last-child {
  margin-bottom: 0;
}

.col-contact a {
  font-family: "nudica";
  text-decoration: none;
}

.boards-section .col-label {
  margin-bottom: 1rem;
}

.boards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 1rem;
}

.board-card {
  border: 1px solid var(--grey);
  padding: 0.5rem;
  box-sizing: border-box;
}

.board-title {
  cursor: pointer;
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-family: "nudica";
  color: var(--foreground);
  text-decoration: none;
}

.board-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--grey);
}

.ascii {
  font-size: 10px;
  letter-spacing: 2px;
  line-height: 10px;
  white-space: pre;
  cursor: none;
  user-select: none;
  display: block;
  width: 100%;
  margin-top: 1rem;
  overflow: hidden;
}

.ascii-row {
  display: block;
  height: 10px;
}

.index-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: center;
}

.index-left {
  align-self: center;
}

.index-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.index-section {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  align-items: baseline;
}

.index-section-label {
  color: var(--grey);
  font-size: 0.75rem;
  cursor: default;
}

.index-word {
  background: none;
  border: none;
  padding: 0;
  font-family: "nudica";
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--grey);
  letter-spacing: 0.06em;
}

.index-word:hover,
.index-word.active {
  color: var(--foreground);
}

.index-right {
  position: sticky;
  top: 5rem;
  height: 800px;
  overflow: hidden;

  --corner-size: 1rem;
  --corner-w: 1px;

  isolation: isolate;
}

.index-right-corners {
  position: relative;
  height: 100%;
  width: 100%;
}

.index-right-scroll {
  height: 100%;
  width: 100%;
  padding: 0rem 1rem 1rem 1rem;
  overflow-y: auto;
  box-sizing: border-box;
}

.index-right-corners::before,
.index-right-corners::after,
.index-right-corners .corner-bl,
.index-right-corners .corner-br {
  content: "";
  position: absolute;
  width: var(--corner-size);
  height: var(--corner-size);
  border-color: var(--grey);
  border-style: solid;
  pointer-events: none;
  z-index: 10;
}

.index-right-corners::before {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.index-right-corners::after {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}

.index-right-corners .corner-bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.index-right-corners .corner-br {
  bottom: 0;
  right: 0;
  border-width: 0 1px 1px 0;
}

.ir-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
  flex-shrink: 0;
  user-select: none;
}

.ir-navbar-title {
  font-size: 0.75rem;
  color: var(--grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.ir-scrollbar {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ir-spinner {
  font-size: 0.75rem;
  color: var(--grey);
  width: 0.75rem;
  text-align: center;
  display: inline-block;
}

.ir-bars {
  font-size: 0.75rem;
  color: var(--grey);
  letter-spacing: 0.1em;
  display: inline-block;
}

.index-right-corners {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.index-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.index-info-date {
  font-size: 0.75rem;
  color: var(--grey);
}

.index-info-body {
  font-size: 0.75rem;
}

.typewriter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2fr;
  gap: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.tw-word {
  font-size: 0.75rem;
  font-family: "nudica";
  color: var(--foreground);
  pointer-events: none;
  white-space: nowrap;
  position: relative;
}

.tw-placeholder {
  visibility: hidden;
  display: inline;
}

.tw-back {
  cursor: pointer;
  color: var(--accent);
  text-decoration: none;
  pointer-events: all;
}

.tw-back {
  color: var(--accent);
}

@keyframes tw-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@media (max-width: 960px) {
  body {
    justify-content: flex-start;
  }

  .body-content {
    margin: 0;
    padding: 3.75rem 1rem 0;
  }

  .body-content:has(.index-layout) {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 1.5rem;
  }

  .index-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .index-left {
    flex-shrink: 0;
    align-self: flex-start;
  }

  .index-right {
    position: static;
    height: auto;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    --corner-size: 0.75rem;
  }

  .index-right-corners {
    height: 100%;
  }

  .index-right-scroll {
    height: 100%;
    overflow-y: auto;
  }

  .columns {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
  }

  .boards-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
  }

  .projects-side-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .typewriter-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.sidebar {
  width: 270px;
  border-right: 1px solid var(--grey);
  overflow-y: auto;
  padding: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  background: var(--background);
  color: var(--foreground);
}

.content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 270px;
  padding-top: 3.75rem;
}

.markdown-section {
  margin: 0 auto;
  max-width: 80%;
  padding: 1.875rem 0.9375rem 2.5rem;
  letter-spacing: 0.06em;
  line-height: 1.45;
  font-size: 0.75rem;
}

.sidebar > h1 {
  font-size: 1rem;
  text-align: center;
  margin: 0;
  padding: 1rem;
}
.sidebar > h1 a {
  color: var(--foreground);
  text-decoration: none;
}

.sidebar-nav {
  padding: 0 1rem 2.5rem;
}

.sidebar-nav hr {
  border: none;
  border-top: 1px solid var(--grey);
  margin: 0.3rem 0;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar ul li a {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--grey);
  padding: 0.3rem 0.5rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.45;
}

.sidebar ul li a:hover,
.sidebar ul li.active > a {
  color: var(--foreground);
}

.sidebar li > p:not(:has(a)) {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--grey);
  margin: 0.5rem 0 0.25rem 0.5rem;
}

.app-sub-sidebar li > a {
  padding-left: 1.5rem !important;
}

.sidebar-toggle {
  cursor: pointer;
  background: var(--background);
  border: 1px solid var(--grey);
  padding: 0.625rem;
  position: fixed;
  left: 0;
  bottom: 0;
  margin: 0.5rem;
  z-index: 30;
}
.sidebar-toggle span {
  display: block;
  width: 1rem;
  height: 1px;
  background: var(--foreground);
  margin-bottom: 0.25rem;
}
.sidebar-toggle span:last-child {
  margin-bottom: 0;
}
.sidebar-nav li.folder > a::after {
  content: "+";
  color: var(--grey);
  float: right;
}
.sidebar-nav li.folder.open > a::after {
  content: "-";
  color: var(--grey);
  float: right;
}
.sidebar-nav li.folder > ul li.file > a::before {
  content: "- ";
  color: var(--grey);
}
body.close .sidebar {
  transform: translateX(-270px);
}
body.close .content {
  left: 0;
}
.sidebar-toggle {
  display: none;
}

@media screen and (max-width: 960px) {
  .sidebar-toggle {
    display: block;
    position: fixed;
    background: transparent;
    border: 1px solid var(--grey);
    padding: 0.625rem;
    left: 0;
    bottom: 0;
    margin: 0.5rem;
    z-index: 30;
    cursor: pointer;
  }
}
.progress {
  background: var(--accent);
  height: 1px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 0%;
  z-index: 999999;
}

.app-nav {
  position: absolute;
  right: 0;
  top: 0;
  margin: 0.75rem 1rem 0 0;
  z-index: 10;
  text-align: right;
}

.app-nav a {
  font-size: 0.75rem;
  color: var(--grey);
  text-decoration: none;
  margin: 0 0.5rem;
}

.app-nav a:hover,
.app-nav a.active {
  color: var(--foreground);
}

.app-nav li {
  display: inline-block;
  list-style: none;
  margin: 0 0.5rem;
  position: relative;
}

.app-nav ul {
  margin: 0;
  padding: 0;
}

.app-nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--background);
  border: 1px solid var(--grey);
  padding: 0.5rem 0;
  white-space: nowrap;
  text-align: left;
}

.app-nav li ul li {
  display: block;
  margin: 0;
  padding: 0.25rem 0.875rem;
}

.app-nav li:hover ul {
  display: block;
}

.markdown-section > * {
  box-sizing: border-box;
  font-size: inherit;
}
.markdown-section > :first-child {
  margin-top: 0 !important;
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4,
.markdown-section h5,
.markdown-section h6 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.45;
}

.markdown-section h1 a,
.markdown-section h2 a,
.markdown-section h3 a,
.markdown-section h4 a,
.markdown-section h5 a,
.markdown-section h6 a {
  text-decoration: none;
}

.markdown-section h3 {
  margin-top: 2.5rem;
}
.markdown-section h6 {
  color: var(--grey);
}

.markdown-section p,
.markdown-section figure {
  margin: 0.75rem 0;
}

.markdown-section p,
.markdown-section ul,
.markdown-section ol {
  line-height: 1.45;
}

.markdown-section ul,
.markdown-section ol {
  padding-left: 1.5rem;
}

.markdown-section a {
  color: var(--accent);
  text-decoration: none;
}
.markdown-section a:hover {
  text-decoration: underline;
}

.markdown-section strong {
  font-weight: 600;
  color: var(--foreground);
}

.markdown-section em {
  color: var(--grey);
}

.markdown-section hr {
  border: none;
  border-top: 1px solid var(--grey);
  margin: 1.5rem 0;
}

.markdown-section blockquote {
  border-left: 1px solid var(--grey);
  margin: 1.5rem 0;
  padding-left: 1rem;
  color: var(--grey);
}

.markdown-section table {
  border-collapse: collapse;
  display: block;
  overflow: auto;
  width: 100%;
  margin-bottom: 1rem;
}

.markdown-section th,
.markdown-section td {
  border: 1px solid var(--grey);
  padding: 0.375rem 0.8125rem;
  font-size: 0.75rem;
}

.markdown-section tr {
  border-top: 1px solid var(--grey);
}

.markdown-section tr:nth-child(2n) {
  background: rgba(255, 255, 255, 0.03);
}

.markdown-section code,
.markdown-section pre {
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.markdown-section code:not(pre > code) {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--grey);
  padding: 0.1em 0.35em;
  margin: 0 0.125rem;
  white-space: pre-wrap;
}
.markdown-section pre {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--grey);
  padding: 0 1rem;
  margin: 0.75rem 0;
  overflow: auto;
  position: relative;
}

.markdown-section pre > code {
  display: block;
  padding: 1rem 0;
  color: var(--foreground);
  background: none;
  border: none;
  font-size: 0.75rem;
  line-height: 1.45;
  margin: 0;
}

.markdown-section h1 a[data-id],
.markdown-section h2 a[data-id],
.markdown-section h3 a[data-id],
.markdown-section h4 a[data-id],
.markdown-section h5 a[data-id],
.markdown-section h6 a[data-id] {
  pointer-events: none;
  cursor: default;
  text-decoration: none !important;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: var(--grey);
}

.token.namespace {
  opacity: 0.7;
}

.token.boolean,
.token.number {
  color: #a0785a;
}

.token.punctuation {
  color: #7a7a6e;
}

.token.property {
  color: #a08050;
}

.token.tag {
  color: #5a7fad;
}

.token.string {
  color: var(--accent);
}

.token.selector {
  color: #7a8ab0;
}

.token.attr-name {
  color: #5a7fad;
}

.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #5a9aad;
}

.token.attr-value,
.token.control,
.token.directive,
.token.unit {
  color: var(--accent);
}

.token.keyword,
.token.function {
  color: #c47a3a;
}

.token.statement,
.token.regex,
.token.atrule {
  color: #5a9aad;
}

.token.placeholder,
.token.variable {
  color: #5a85b0;
}

.token.deleted {
  text-decoration: line-through;
}

.token.inserted {
  border-bottom: 1px dotted var(--foreground);
  text-decoration: none;
}

.token.italic {
  font-style: italic;
}

.token.important,
.token.bold {
  font-weight: bold;
}

.token.important {
  color: #b05050;
}

.token.entity {
  cursor: help;
}

code .token {
  -moz-osx-font-smoothing: initial;
  -webkit-font-smoothing: initial;
  min-height: 1.5rem;
  position: relative;
  left: auto;
}
.markdown-section pre::after {
  content: attr(data-lang);
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.75rem;
  color: var(--grey);
  padding: 0.3rem 0.625rem 0;
}

.markdown-section p.tip {
  border: 1px solid var(--grey);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
}
.markdown-section p.warn {
  border: 1px solid var(--grey);
  padding: 0.75rem 1rem;
}

.search input {
  font-family: inherit;
  font-size: 0.75rem;
  background: var(--background);
  border: 1px solid var(--grey) !important;
  color: var(--foreground);
  padding: 0.3rem 0.5rem;
  width: 100%;
  box-sizing: border-box;
  outline: none !important;
  box-shadow: none !important;
  caret-color: transparent;
}
.search input:focus {
  border-color: var(--foreground) !important;
  caret-color: transparent;
}
.search input::placeholder {
  color: var(--grey);
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar:horizontal {
  height: 4px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: var(--grey);
}
.search .clear-button svg {
  display: none !important;
}
.search .clear-button::after {
  content: "X";
  font-size: 1rem;
  margin-right: 0.5rem;
  color: var(--grey);
  font-style: normal;
}
.search {
  border-bottom: none !important;
}
.search .results-panel.show {
  border-bottom: 1px solid var(--grey) !important;
  color: var(--grey);
}
.search p.empty {
  padding: 0.5rem 0;
}

.mermaid {
  padding: 1rem;
  margin: 0.75rem 0;
}

.mermaid svg {
  display: block;
  margin: 0 auto;
}

.mermaid svg .node rect,
.mermaid svg .node circle,
.mermaid svg .node polygon,
.mermaid svg .node ellipse,
.mermaid svg .label-container,
.mermaid svg .cluster rect {
  fill: var(--background) !important;
  stroke: var(--grey) !important;
}

.mermaid svg text,
.mermaid svg tspan {
  fill: var(--foreground) !important;
}

.mermaid svg foreignObject p,
.mermaid svg foreignObject div,
.mermaid svg .nodeLabel,
.mermaid svg .edgeLabel {
  color: var(--foreground) !important;
  font-family: "nudica" !important;
  font-size: 0.75rem !important;
}

.mermaid svg .edgePath path,
.mermaid svg line {
  stroke: var(--grey) !important;
}

.mermaid svg marker path {
  fill: var(--grey) !important;
  stroke: var(--grey) !important;
}
@media screen and (max-width: 960px) {
  .sidebar {
    position: fixed;
    left: -270px;
  }
  .content {
    left: 0;
    max-width: 100vw;
    position: static;
    padding-top: 1.25rem;
  }
  .sidebar-toggle {
    position: fixed;
    background: transparent;
  }
  body.close .sidebar {
    transform: translateX(270px);
  }
  body.close .content {
    transform: translateX(270px);
  }
}

@media print {
  .sidebar,
  .sidebar-toggle,
  .app-nav {
    display: none;
  }
}