@font-face {
  font-family: Header;
  src: url("res/fonts/header.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Para;
  src: url("res/fonts/para.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Strong;
  src: url("res/fonts/strong.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Minecraft;
  src: url("res/fonts/MinecraftStandard.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Minecraft;
  src: url("res/fonts/MinecraftStandardBold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Minecraft;
  src: url("res/fonts/MinecraftStandardOblique.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Minecraft;
  src: url("res/fonts/MinecraftStandardBoldOblique.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
:root {
  --background: #151515;
  --surface: #202020;
  --surface-hover: #292929;
  --border: #343434;
  --text: #e7e7e7;
  --muted: #9b9b9b;
  --primary: #8aa2ff;
  --danger: #e36b6b;
  --success: #68bf78;
  --sidebar-width: 16rem;
  --content-width: 62.4rem;
}
* {
  box-sizing: border-box;
  scrollbar-width: none;
}
*::-webkit-scrollbar {
  width: 0;
  height: 0;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  background: var(--background);
  color: var(--text);
  font-family: Para, system-ui, sans-serif;
  overflow: hidden;
}
button,
textarea {
  font: inherit;
}
button {
  color: inherit;
  background: none;
  border-style: none;
}
a {
  color: inherit;
}
#app {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
}
#sidebar {
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1rem;
}
.sidebar-group + .sidebar-group {
  margin-top: 1.5rem;
}
.sidebar-heading {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-family: Strong, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.project-item,
.folder-toggle {
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 0.5rem 0.75rem;
  text-align: left;
  cursor: pointer;
}
.project-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.project-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-read-metric {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--muted);
  font-family: Strong, monospace;
  font-size: 0.65rem;
}
.project-item:hover,
.folder-toggle:hover {
  background: var(--surface-hover);
}
.project-item.active {
  background: var(--surface-hover);
  color: var(--primary);
}
.project-item.active .project-read-metric {
  color: var(--muted);
}
.folder-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.folder-toggle svg {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 120ms ease;
}
.folder-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}
.folder-children {
  display: grid;
  gap: 0.125rem;
  margin-left: 0.75rem;
}
.folder-children[hidden] {
  display: none;
}
.project-item.child {
  font-size: 0.875rem;
}
#content-area {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}
#content-inner {
  position: relative;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
#markdown-render {
  min-height: 12rem;
}
#overview-metrics {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 1rem 0.75rem 0;
  color: var(--muted);
  font-family: Strong, monospace;
  font-size: 0.65rem;
  line-height: 1;
}
#overview-toc[hidden] {
  display: none;
}
.prose-custom {
  line-height: 1.4;
}
.prose-custom h1,
.prose-custom h2,
.prose-custom h3 {
  color: #fff;
  font-family: Header, Georgia, serif;
  line-height: 1.2;
}
.prose-custom h1 {
  margin: 0 0 2rem;
  font-size: clamp(2.4rem, 8vw, 3.9rem);
}
.prose-custom h2 {
  margin: 2rem 0 0;
  font-size: 1.8rem;
}
.prose-custom h3 {
  margin-top: 1.5rem;
  font-size: 1.44rem;
}
.prose-custom p,
.prose-custom ul,
.prose-custom ol,
.prose-custom pre,
.prose-custom blockquote,
.prose-custom table {
  margin: 0.5rem 0;
  font-size: 1.4rem;
}
.prose-custom img {
  max-width: 100%;
  height: auto;
}
.prose-custom code {
  font-family: Strong, monospace;
}
.prose-custom pre {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 5px;
}
.prose-custom pre code {
  display: block;
  padding: 1rem;
}
.prose-custom table {
  width: 100%;
  border-collapse: collapse;
}
.prose-custom th,
.prose-custom td {
  border: 1px solid var(--border);
  padding: 0.6rem;
  text-align: left;
}
.prose-custom blockquote,
.standard-blockquote {
  border-left: 3px solid var(--primary);
  margin-left: 0;
  padding-left: 1rem;
  color: var(--muted);
}
.poem-container {
  margin: 1rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
}
.poem-container h2 {
  margin: 0;
}
.poem-subtitle {
  display: block;
  margin: 0.25rem 0 1rem;
  color: var(--muted);
  font-size: 1rem;
}
.poem-text {
  margin: 0;
  white-space: pre-line;
  font-size: 1.25rem;
  line-height: 1.45;
}
.collapsible-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: Header, Georgia, serif;
  font-size: 1.8rem;
  cursor: pointer;
}
.collapsible-header svg {
  width: 1rem;
  height: 1rem;
  transition: transform 120ms ease;
}
.collapsible-header.collapsed svg {
  transform: rotate(-90deg);
}
.collapsible-content.hidden-section {
  display: none;
}
.gh-alert {
  margin: 0.5rem 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.9rem 1rem;
}
.gh-alert-title {
  margin-bottom: 0.25rem;
  font-family: Strong, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.gh-alert-content > :first-child {
  margin-top: 0;
}
.gh-alert-content > :last-child {
  margin-bottom: 0;
}
.message-box {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.message-box form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.message-box label {
  display: block;
  margin: 0;
  color: var(--muted);
  font-family: Strong, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.message-box textarea {
  display: block;
  width: 100%;
  min-height: 8rem;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  padding: 10px;
}
.message-box button {
  align-self: flex-end;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  padding: 10px 14px;
  cursor: pointer;
}
.message-box button:hover {
  background: var(--surface-hover);
}
.message-box button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.message-status {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.8rem;
}
.message-status.error {
  color: var(--danger);
}
.message-status.success {
  color: var(--success);
}
.minecraft-server-widget {
  margin: 2rem 0 1.5rem;
  border: 1px solid #555;
  background: #000;
  padding: 2px;
  font-family: Minecraft, monospace;
  image-rendering: pixelated;
}
.minecraft-server-entry {
  min-height: 72px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 20px 15px;
  background: #000;
}
.server-icon {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: #000;
  image-rendering: pixelated;
}
.server-info {
  min-width: 0;
  align-self: stretch;
  display: block;
  padding: 0;
}
.server-host {
  display: block;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.5;
  text-shadow: 2px 2px 0 #000;
}
.server-base {
  margin-left: 15px;
  color: #a7a7a7;
  font-size: 8px;
  line-height: 1.5;
  text-shadow: 2px 2px 0 #000;
}
.server-motd {
  margin-top: 10px;
  min-height: 30px;
  max-height: none;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 8px;
  line-height: 1.8;
  text-shadow: 2px 2px 0 #000;
}
.server-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  min-width: 96px;
  padding: 0;
}
.server-players {
  color: #a7a7a7;
  text-align: center;
  font-size: 8px;
  line-height: 15px;
  text-shadow: 2px 2px 0 #000;
}
.server-copy-btn {
  border: 2px solid #555;
  background: #000;
  color: #a7a7a7;
  padding: 8px 10px;
  font-family: Minecraft, monospace;
  font-size: 8px;
  line-height: 15px;
  white-space: nowrap;
  cursor: pointer;
  text-shadow: 2px 2px 0 #000;
}
.server-copy-btn:hover {
  border-color: #a7a7a7;
  color: #ffffff;
}
.mc-black {
  color: #000000;
}
.mc-dark-blue {
  color: #0015a8;
}
.mc-dark-green {
  color: #005500;
}
.mc-dark-aqua {
  color: #10a8a8;
}
.mc-dark-red {
  color: #a63c1c;
}
.mc-dark-purple {
  color: #a53fa6;
}
.mc-gold {
  color: #ffa905;
}
.mc-gray {
  color: #a7a7a7;
}
.mc-dark-gray {
  color: #555555;
}
.mc-blue {
  color: #5756ff;
}
.mc-green {
  color: #55fe55;
}
.mc-aqua {
  color: #53ffff;
}
.mc-red {
  color: #fd5c55;
}
.mc-light-purple {
  color: #fd60fd;
}
.mc-yellow {
  color: #fdff56;
}
.mc-white {
  color: #ffffff;
}
.mc-bold {
  font-weight: 700;
}
.mc-italic {
  font-style: italic;
}
.mc-underline {
  text-decoration: underline;
}
.mc-strikethrough {
  text-decoration: line-through;
}
.mc-obfuscated {
  color: #ffffff;
}
#mobile-bar,
#sidebar-backdrop {
  display: none;
}
.error-box {
  border: 1px solid var(--danger);
  border-radius: 4px;
  padding: 1rem;
}
.error-box strong {
  color: var(--danger);
}
@media (max-width: 700px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  #app {
    display: block;
    width: 100%;
    height: 100dvh;
    min-height: 0;
  }
  #mobile-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: block;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    padding: 0.75rem;
  }
  #content-area {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }
  #sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 4;
    width: min(80vw, var(--sidebar-width));
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform 160ms ease;
  }
  .sidebar-inner {
    height: 100%;
    min-height: 0;
  }
  body.sidebar-open #sidebar {
    transform: translateX(0);
  }
  #sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3;
    background: rgb(0 0 0 / 55%);
  }
  body.sidebar-open #sidebar-backdrop {
    display: block;
  }
  #content-inner {
    width: 100%;
    min-width: 0;
    padding: 2rem 1rem 4rem;
  }
  .prose-custom p,
  .prose-custom ul,
  .prose-custom ol,
  .prose-custom pre,
  .prose-custom blockquote,
  .prose-custom table {
    font-size: 1.2rem;
  }
  .poem-text {
    font-size: 1.1rem;
  }
  .minecraft-server-entry {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 8px;
  }
  .server-icon {
    width: 48px;
    height: 48px;
  }
  .server-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
  }
  .server-copy-btn {
    min-width: 110px;
  }
}
