@font-face {
  font-family: 'MapleMono';
  src: url('assets/fonts/MapleMono-Regular.ttf.woff2') format('woff2');
  font-weight: 400;
}
@font-face {
  font-family: 'MapleMono';
  src: url('assets/fonts/MapleMono-Light.ttf.woff2') format('woff2');
  font-weight: 300;
}
@font-face {
  font-family: 'MapleMono';
  src: url('assets/fonts/MapleMono-Medium.ttf.woff2') format('woff2');
  font-weight: 500;
}
@font-face {
  font-family: 'MapleMono';
  src: url('assets/fonts/MapleMono-Italic.ttf.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --fg:     #4a5a3a;
  --fg-dim: #7ca152;
  --bg:     #f9f7f4;
  --line:   #c8d8b8;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: 'MapleMono', monospace;
  font-weight: 300;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

.page {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 48px;
  height: 100vh;
}

/* ── left: search + tree ── */
.left {
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 220px;
}

/* search */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
.search-wrap span {
  color: var(--fg-dim);
  font-size: 13px;
  user-select: none;
}
.search-wrap input {
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-weight: 300;
  font-size: 13px;
  color: var(--fg);
  width: 180px;
  caret-color: var(--fg-dim);
}
.search-wrap input::placeholder { color: var(--line); }

/* tree */
.tree { font-size: 13px; line-height: 1; }

.tree-root {
  color: var(--fg-dim);
  margin-bottom: 10px;
  font-weight: 400;
  letter-spacing: .03em;
}

.tree-category { margin-bottom: 14px; }

.tree-category-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-dim);
  margin-bottom: 6px;
  font-weight: 400;
}
.tree-category-label::before { content: '├─'; color: var(--line); }
.tree-category:last-child .tree-category-label::before { content: '└─'; }

.tree-items { padding-left: 20px; }

.tree-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.tree-item::before { content: '├─'; color: var(--line); font-size: 11px; }
.tree-item:last-child::before { content: '└─'; color: var(--line); font-size: 11px; }

.tree-item a {
  color: var(--fg);
  text-decoration: none;
  transition: color .15s;
}
.tree-item a:hover { color: var(--fg-dim); }

/* ── right: image ── */
.right {
  display: flex;
  align-items: center;
}
.right img {
  height: calc(100vh - 96px);
  max-height: 560px;
  width: auto;
  display: block;
  border-radius: 2px;
  opacity: .92;
}