:root {
  --bg: #faf9f6; --fg: #1d222a; --dim: #6b7280; --card: #ffffff;
  --line: #e3e0d8; --accent: #9a5b2d; --accent-2: #33536b; --done: #3d9960;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16191f; --fg: #e6e4de; --dim: #9aa0a8; --card: #1e232b;
    --line: #2c323c; --accent: #d29055; --accent-2: #7fa3c0; --done: #4cb06a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.layout, .site-header, .site-footer { max-width: 1200px; margin: 0 auto; padding: 0 1.2rem; }
.layout { display: grid; grid-template-columns: 210px minmax(0, 1fr) 210px; gap: 2.2rem; }
.sidebar { padding-top: 1.8rem; font-size: .93rem; }
.sidebar h3 {
  margin: 1.2rem 0 .4rem; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--dim);
}
.sidebar ul { list-style: none; margin: 0 0 .6rem; padding: 0; }
.sidebar li { padding: .12rem 0; display: flex; justify-content: space-between; }
.sidebar .count { color: var(--dim); }
.sidebar .year { margin: .4rem 0 .1rem; font-weight: 600; }
.progress-overall { margin: 0 0 .3rem; font-size: .88rem; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--done); border-radius: 3px; }
.progress-list { margin-top: .5rem !important; }
.progress-list li { display: block; padding: .18rem 0; }
.progress-list .row { display: flex; justify-content: space-between; margin-bottom: .12rem; }
.progress-list .name { font-size: .86rem; }
@media (max-width: 980px) {
  .layout { display: flex; flex-direction: column; }
  main { order: 1; }
  .sidebar-left { order: 2; }
  .sidebar-right { order: 3; }
  .sidebar { border-top: 1px solid var(--line); padding-top: .4rem; }
}
.site-header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 1.4rem; padding-bottom: .6rem; border-bottom: 2px solid var(--line);
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--fg); letter-spacing: .01em; }
.site-header nav a { color: var(--dim); margin-left: 1rem; font-size: .95rem; }
.intro h1 { font-size: 1.9rem; line-height: 1.2; margin: 1.6rem 0 .4rem; }
.intro p { margin: .3rem 0; color: var(--dim); }
.intro .stats { color: var(--fg); }
.card {
  display: flex; gap: 1rem; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 1rem; margin: 1.2rem 0; align-items: flex-start;
}
.card .thumb {
  width: 168px; height: 126px; object-fit: cover; border-radius: 6px; display: block;
}
.card-body { flex: 1; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .7rem; }
.card h2 { margin: 0 0 .2rem; font-size: 1.2rem; line-height: 1.3; }
.card h2 a { color: var(--fg); }
.cat-pill {
  background: var(--accent-2); color: #fff; font-size: .74rem; font-weight: 600;
  padding: .18rem .65rem; border-radius: 999px; white-space: nowrap;
  flex-shrink: 0; margin-top: .15rem;
}
.cat-pill:hover { text-decoration: none; opacity: .85; }
.meta { color: var(--dim); font-size: .92rem; margin: .1rem 0 .5rem; }
.excerpt { font-size: .97rem; }
.excerpt p { margin: .3rem 0; }
.entry h1 { font-size: 1.7rem; line-height: 1.25; margin: 1.6rem 0 .3rem; }
.entry .body { margin: 1rem 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.gallery figure { margin: 0; }
.gallery img, .gallery video { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.gallery figcaption { color: var(--dim); font-size: .88rem; margin-top: .3rem; }
.links h3 { margin-bottom: .3rem; }
.site-footer { border-top: 2px solid var(--line); margin-top: 2.5rem; padding-top: .8rem; padding-bottom: 2rem; color: var(--dim); font-size: .92rem; }
.dim { color: var(--dim); }
@media (max-width: 560px) {
  .card { flex-direction: column; }
  .card .thumb { width: 100%; height: auto; max-height: 220px; }
}
