@font-face {
  font-family: 'CommitMono';
  src: url('../fonts/CommitMono-400-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'CommitMono', monospace;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 110ch;
  margin: 0 auto;
  margin-top: 1.5rem;
  padding: 0 20px 20px 20px;
}

.prompt {
  color: var(--text-color);
  margin-bottom: 10px;
}

.prompt::before {
  content: "❯ ";
  color: var(--hl-green);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--hl-black);
  border-bottom: 1px solid var(--hl-bright-black);
  padding: 0.6rem 20px;
  margin: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.nav-bar a {
  color: var(--dim-color);
  text-decoration: none;
  margin: 0 0.8rem;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-bar a:hover {
  color: var(--highlight-color);
}

.site-title {
  color: var(--highlight-color);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-text-color);
  margin: 20px 0 10px 0;
  font-weight: normal;
}

h1 {
  font-size: 1.2em;
}

h2 {
  font-size: 1.1em;
}

p {
  margin-bottom: 15px;
}

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

a:hover {
  text-decoration: underline dashed;
}

ul, ol {
  margin: 15px 0;
  padding-left: 20px;
}

li {
  margin-bottom: 5px;
}

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

.post-list li {
  margin-bottom: 4px;
}

.post-list li a {
  text-decoration: none;
  white-space: pre;
}

.post-list li a:hover{
  text-decoration: underline dashed;
}

.perms {
  color: var(--hl-yellow);
}

.user {
  color: var(--hl-blue);
}

.date {
  color: var(--hl-green);
}

.filename {
  color: var(--hl-white);
}

.content {
  margin-top: 20px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.doc-sidebar {
  position: sticky;
  top: 4.5rem;
}

.doc-nav {
  background: var(--hl-black);
  border: 1px solid var(--hl-bright-black);
  border-radius: 0px;
  padding: 1rem;
}

.doc-nav-title {
  color: var(--heading-text-color);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.doc-nav ul {
  list-style: none;
  padding-left: 0;
}

.doc-nav li {
  margin: 0.25rem 0;
}

.doc-nav a,
.doc-nav .doc-nav-label {
  color: var(--dim-color);
  text-decoration: none;
  display: block;
  padding: 0.15rem 0.25rem;
  border-radius: 0px;
}

.doc-nav a:hover {
  color: var(--highlight-color);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
}

.doc-nav ul ul {
  padding-left: 1rem;
  margin-left: 0.25rem;
  border-left: 1px solid var(--hl-bright-black);
}

.doc-nav .is-active > a {
  color: var(--highlight-color);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
}

.doc-nav .is-ancestor > a {
  color: var(--heading-text-color);
}

.doc-content {
  min-width: 0;
}

.project-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.project-list li {
  margin-bottom: 0.6rem;
}

.project-list a {
  text-decoration: none;
}

.projects-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--hl-black);
  border: 1px solid var(--hl-bright-black);
  padding: 1.5rem;
}

.project-card:hover {
  border-color: var(--highlight-color);
}

.project-card h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.4em;
}

.project-card h2 a {
  color: var(--heading-text-color);
  text-decoration: none;
  transition: color 0.2s;
}

.project-card h2 a:hover {
  color: var(--highlight-color);
}

.project-description {
  color: var(--text-color);
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.project-link {
  color: var(--highlight-color);
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.2s;
}

.project-link:hover {
  color: var(--hl-green);
}

.post-meta {
  color: var(--dim-color);
  margin-bottom: 20px;
  font-size: 0.9em;
}

p img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em 0;
  border: 1px solid var(--img-border-color);
}

.site-footer {
  margin-top: auto;
  margin-left: 20px;
  margin-right: 20px;
  padding: 2rem 20px;
  border-top: 1px solid var(--hl-bright-black);
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--highlight-color);
}

.footer-separator {
  color: var(--dim-color);
  user-select: none;
}

::selection {
  background-color: var(--text-color);
  color: var(--bg-color);
}