:root {
  --bg: #0a0a0c;
  --card: #141518;
  --card-hi: #1c1d21;
  --ink: #f6f5f1;
  --soft: rgba(246, 245, 241, 0.52);
  --line: rgba(255, 255, 255, 0.09);
  --accent: #7fd1c1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 12px 16px;
}

.sr-card {
  width: min(360px, 100%);
  padding: 16px 16px 10px;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px var(--line),
    0 34px 70px -34px color-mix(in srgb, var(--accent) 36%, transparent);
}
.se__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.se__title { min-width: 0; font-size: 16px; line-height: 20px; font-weight: 670; font-stretch: 104%; letter-spacing: -0.012em; }
.se__title i { display: block; font-style: normal; font-size: 12px; font-weight: 480; color: var(--soft); letter-spacing: 0; }
.se__time { flex: none; font-size: 12px; font-weight: 480; color: var(--soft); }
.se__time b { display: inline-block; font-weight: 680; color: var(--ink); }

/* the rail: a thin line down the left of the list; the lit part reaches the middle of the last part read */
.se__list { position: relative; padding: 4px 0 0 18px; }
.se__rail { position: absolute; left: 4px; top: 12px; bottom: 14px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.se__rail span { display: block; width: 100%; height: 100%; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 70%, transparent); transform: scaleY(0); transform-origin: 50% 0; }
.part { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.part + .part { border-top: 1px solid var(--line); }
.part:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
.part__tab { position: absolute; left: -17px; top: 17px; width: 8px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.22); transition: background-color 0.4s ease; }
.part.is-read .part__tab, .part.is-open .part__tab { background: var(--accent); }
.part__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 36px; }
.part__name { min-width: 0; font-size: 14px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s ease; }
.part.is-read .part__name { color: var(--soft); }
.part__meta { flex: none; height: 16px; overflow: hidden; font-size: 11.5px; line-height: 16px; font-weight: 520; color: var(--soft); }
.part__meta span { display: block; }
.part.is-read .part__meta { color: var(--accent); }
.part__more { display: block; height: 0; overflow: hidden; }
.part__in { display: block; padding: 0 0 11px; }
.part__sum { display: block; font-size: 12.5px; line-height: 17px; font-weight: 460; color: var(--soft); }
.part__go { display: inline-block; margin-top: 8px; height: 30px; padding: 0 13px; border-radius: 99px; background: var(--accent); color: #0d1614; font-size: 12.5px; line-height: 30px; font-weight: 660; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #ffffff;
  stroke: #14151a;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

@media (max-height: 430px) {
  .part__top { height: 33px; }
  .part__tab { top: 15px; }
  .sr-card { padding: 13px 14px 6px; }
}
@media (min-width: 700px) and (min-height: 500px) {
  .sr-card { zoom: 1.3; }
}
@media (min-width: 1100px) and (min-height: 760px) {
  .sr-card { zoom: 1.6; }
}
