* { box-sizing: border-box; }
body {
  font-family: monospace;
  background: #0b0b0b;
  color: #ddd;
  line-height: 1.6;
  margin: 0;
}
h1 { font-size: 1.3rem; letter-spacing: .04em; }
h2 { font-size: 1.05rem; letter-spacing: .02em; color: #7fd; margin-top: 2rem; }
h3 { font-size: .95rem; color: #7fd; }
p { color: #ccc; }
a { color: #7fd; }
a:hover { color: #9fe; }
pre { background: #151515; border: 1px solid #262626; padding: .8rem 1rem; overflow-x: auto; }
code { background: #151515; padding: .1rem .3rem; border-radius: 3px; }
blockquote { border-left: 3px solid #262626; margin: 1rem 0; padding: 0 1rem; color: #999; }
img { max-width: 100%; height: auto; display: block; border: 1px solid #262626; }
figure { margin: 1.5rem 0; }
figcaption { color: #777; font-size: .8rem; margin-top: .4rem; }

/* Chroma (fenced code block syntax highlighting) ships its own inline
   background color per Hugo's default noClasses=true rendering -- override
   just the background so it matches the rest of the site's dark palette;
   leave Chroma's inline per-token colors alone. */
.highlight pre { background: #151515 !important; border: 1px solid #262626; border-radius: 3px; }

details { background: #151515; border: 1px solid #262626; border-radius: 3px; padding: .6rem 1rem; margin: 1rem 0; }
details summary { cursor: pointer; color: #7fd; }
details[open] summary { margin-bottom: .6rem; }

.layout { display: flex; min-height: 100vh; align-items: flex-start; }

.sidebar {
  width: 14rem;
  flex-shrink: 0;
  border-right: 1px solid #262626;
  padding: 2rem 1.2rem;
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: 100vh;
  overflow-y: auto;
}
.sidebar .brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #ddd;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.sidebar .brand-mark { fill: #7fd; flex-shrink: 0; }
.lang-switcher { margin-bottom: 1.5rem; font-size: .85rem; }
.lang-switcher a { text-decoration: none; color: #999; margin-right: .6rem; }
.lang-switcher a:hover { color: #7fd; }
.lang-switcher a.active { color: #ddd; font-weight: bold; }

.sidebar ul.page-tree, .sidebar ul.page-tree ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.sidebar ul.page-tree ul { padding-left: 1rem; margin-top: .2rem; }
.sidebar ul.page-tree li { margin: .3rem 0; }
.sidebar ul.page-tree a { text-decoration: none; color: #999; font-size: .9rem; }
.sidebar ul.page-tree a:hover { color: #7fd; }
.sidebar ul.page-tree li.active > a { color: #7fd; font-weight: bold; }

.content { flex: 1; min-width: 0; max-width: 42rem; margin: 0 auto; padding: 3rem 1.5rem; }

.meta { color: #777; font-size: .85rem; margin-bottom: 1rem; }
.page-list { list-style: none; padding: 0; }
.page-list li { margin-bottom: 1.1rem; }
.page-list .title { display: block; }
.page-list .desc { color: #999; font-size: .9rem; }

footer.site-footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid #262626; color: #666; font-size: .8rem; }
