:root { font-family: "SF Mono", Menlo, Consolas, "PingFang SC", "Microsoft YaHei", monospace; }
button { color: inherit; font: inherit; cursor: pointer; }
.brand { mix-blend-mode: normal; }
.brand h1 { color: #e6dbff; font-size: 17px; font-weight: 600; letter-spacing: .06em; }
.brand p { color: #a596c1; margin-top: 5px; letter-spacing: .04em; }
.wordmark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-decoration: none;
  font-size: 16px;
  pointer-events: auto;
}
.tags a, .tags button {
  border: 0;
  background: #211a30;
  color: #c9b8e5;
  font-size: 12px;
  padding: 6px 9px;
  text-decoration: none;
  pointer-events: auto;
}
.tags :is(a, button):hover { color: #fff; background: #4c396c; }
.tags .active, .tags [aria-current="page"] { color: #171027; background: #bd9aff; }
.reading-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0009, transparent 27%, transparent 55%, #000b 75%, #000e);
}
.card button {
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
}
.card button:focus-visible { outline-offset: -1px; }
.card .thumb { display: block; background: #0b0d15; }
.card img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.58) saturate(.82); transition: transform 300ms; }
.card button:hover img { transform: scale(1.05); }
.meta > :first-child { color: #fff; line-height: 1.55; }
.meta > :last-child { color: var(--muted); text-align: right; }
.about { line-height: 1.65; }
.about p { text-align: left; }
.about button {
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  pointer-events: auto;
}
.about button:hover { color: var(--accent); }
.about section:last-of-type button { text-decoration: underline; }
.mobile-nav { display: none; }
dialog {
  width: min(540px, calc(100% - 40px));
  border: 1px solid #55446d;
  padding: 24px;
  color: #eee;
  background: #111016;
}
dialog::backdrop { background: #000a; }
dialog h2 { color: var(--accent); font-size: 16px; padding-right: 28px; }
dialog p { line-height: 1.8; margin-top: 12px; }
dialog .close { float: right; width: 30px; height: 30px; border: 1px solid var(--line); background: #15131b; }

@media (min-width: 761px) and (max-width: 980px) {
  .tags, .list { width: 270px; }
}
@media (max-width: 760px) {
  .brand, .counter { top: 16px; }
  .brand { left: 16px; gap: 9px; }
  .brand h1 { font-size: 15px; }
  .brand p { font-size: 10px; }
  .wordmark, .counter { width: 38px; height: 38px; }
  .counter { right: 16px; }
  .reading-shade { background: linear-gradient(transparent 27%, #000c 60%, #000); }
  .about {
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-height: min(54%, calc(100% - 78px));
    overflow-y: auto;
    scrollbar-width: thin;
    pointer-events: auto;
    mix-blend-mode: normal;
  }
  .about section + section { margin-top: 1.1em; }
  .about h2 { margin-bottom: .45em; }
  .about p { margin-bottom: 0; }
  .mobile-nav { display: block; margin-top: 12px; }
  .mobile-nav summary { cursor: pointer; color: var(--accent); }
  .mobile-nav nav { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 8px; }
}
@media (max-width: 760px) and (max-height: 520px) {
  .about { max-height: calc(100% - 90px); }
}
@media (prefers-reduced-motion: reduce) {
  .card img, .about a { transition: none; }
}

.card .thumb { position: relative; }
.card .thumb canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.card .thumb[data-rendered] img { opacity: 0; }

.wordmark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.28); filter: sepia(.8) saturate(3) hue-rotate(215deg) brightness(1.2); }
