:root { color-scheme: dark; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:root {
  --bg: #18171d;
  --card: #222128;
  --line: #3a383f;
  --text: #ececef;
  --muted: #a4a3a8;
  --accent: #7b9cf7;
  --code: #2d2c33;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }

.top, .list, .bottom {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.top { padding-top: 40px; padding-bottom: 0; }
.top h1 { margin: 0 0 8px; font-size: 2rem; }
.top p { margin: 0 0 16px; color: var(--muted); max-width: 680px; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(24, 23, 29, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
}
.navbar .jump {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 20px;
}
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a {
  text-decoration: none;
  font-size: .9rem;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
}
.jump a { transition: background .15s, border-color .15s, color .15s; }
.jump a:hover { border-color: var(--accent); }
.jump a.active { background: var(--accent); border-color: var(--accent); color: #111; }

.addon {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  margin: 24px 0;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  scroll-margin-top: 72px;
}

.shot {
  width: 300px;
  height: 200px;
  object-fit: contain;
  background: #0f0f13;
  border-radius: 6px;
}

.noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.body h2 { margin: 0; font-size: 1.4rem; }
.body p { margin: 8px 0; }
.body ul { margin: 8px 0; padding-left: 20px; }
.body li { margin: 2px 0; }

.what { color: var(--muted); font-weight: 400; font-size: inherit; }

code {
  background: var(--code);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .9em;
}

.links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px !important; }

.bottom {
  padding-top: 8px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: .9rem;
}
.bottom p { margin: 4px 0; }

@media (max-width: 700px) {
  .navbar .jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .navbar .jump::-webkit-scrollbar { display: none; }
  .jump a { white-space: nowrap; }
  .addon { scroll-margin-top: 64px; }
  .addon { grid-template-columns: 1fr; }
  .shot { width: 100%; }
}

.shotlink { line-height: 0; cursor: zoom-in; }
.shotlink img { transition: opacity .15s; }
.shotlink:hover img { opacity: .85; }

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 95vw;
  max-height: 95vh;
  overflow: visible;
  cursor: zoom-out;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox[open] { animation: lb-in .15s ease-out; }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
.lightbox img {
  display: block;
  max-width: 95vw;
  max-height: 85vh;
  min-width: min(600px, 95vw);
  object-fit: contain;
  image-rendering: auto;
  border-radius: 6px;
}
.lb-cap { margin: 10px auto 0; width: fit-content; max-width: 95vw; padding: 4px 12px; border-radius: 6px; background: var(--card); color: var(--muted); font-size: .9rem; text-align: center; }
.lb-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }

.tags { display: flex; gap: 8px; margin-top: 10px !important; }
.tag {
  font-size: .8rem;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid;
  font-weight: 600;
}
.tag.ashita { color: #fff; border-color: #c04a3d; background: #c04a3d; }
.tag.windower { color: #fff; border-color: #2a7f2a; background: #2a7f2a; }
