html {
  background: #0a0e14;
  scroll-snap-type: y proximity;
}

.on-page {
  margin: 0;
  min-height: 100%;
  background: #0a0e14;
  color: #e2e8f0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.on-page * { box-sizing: border-box; }

.on-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(6, 182, 212, 0.08), transparent 50%),
    #0a0e14;
}

.on-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(#141c28 1px, transparent 1px),
    linear-gradient(90deg, #141c28 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
}

.on-page .landing-wrap {
  position: relative;
  z-index: 2;
}

.on-main {
  position: relative;
  z-index: 1;
}

.on-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0;
}

.on-brand {
  color: #f8fafc;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.on-kicker,
.on-day,
.on-cat,
.on-why-label,
.on-meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.on-kicker,
.on-day {
  margin: 0;
  color: #64748b;
  font-size: 0.68rem;
}

.on-main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.on-intro {
  padding: 1.4rem 0 0.25rem;
}

.on-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.on-intro p {
  margin: 0.55rem 0 0;
  color: #94a3b8;
  font-size: 1.05rem;
}

.on-empty {
  color: #94a3b8;
  padding: 3rem 0;
}

.on-day {
  margin: 2.5rem 0 0;
  scroll-snap-align: start;
}

.on-story {
  min-height: calc(100svh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  animation: on-in 0.45s ease both;
}

.on-cat {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: #38bdf8;
}

.on-cat--investigation { color: #fbbf24; }
.on-cat--geolocation { color: #34d399; }
.on-cat--social-media { color: #f472b6; }
.on-cat--privacy { color: #a78bfa; }
.on-cat--technique { color: #fb7185; }
.on-cat--data-source { color: #22d3ee; }
.on-cat--update { color: #94a3b8; }
.on-cat--new-tool { color: #38bdf8; }

.on-story h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4.6vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 18ch;
}

.on-summary {
  margin: 1rem 0 0;
  max-width: 38rem;
  color: #cbd5e1;
  font-size: 1.02rem;
}

.on-why {
  margin-top: 1.35rem;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(56, 189, 248, 0.7);
}

.on-why-label {
  margin: 0 0 0.35rem;
  color: #7dd3fc;
  font-size: 0.68rem;
}

.on-why p:last-child {
  margin: 0;
  color: #e2e8f0;
}

.on-meta {
  margin: 1.35rem 0 0;
  color: #64748b;
  font-size: 0.72rem;
}

.on-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
  margin-top: 1rem;
}

.on-source,
.on-textbtn,
.on-next,
.on-cta a {
  color: #e2e8f0;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.on-source,
.on-textbtn {
  color: #93c5fd;
  font-size: 0.92rem;
}

.on-textbtn[aria-pressed="true"] { color: #fda4af; }

.on-sources summary {
  color: #93c5fd;
  cursor: pointer;
}

.on-sources ul {
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
}

.on-sources li + li { margin-top: 0.3rem; }

.on-cta {
  margin: 1.1rem 0 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

.on-cta a { color: #f8fafc; border-bottom: 1px solid rgba(248, 250, 252, 0.35); }

.on-next {
  align-self: flex-start;
  margin-top: 1.75rem;
  color: #64748b;
  font-size: 0.85rem;
}

.on-story:last-child .on-next { visibility: hidden; }

@keyframes on-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 719px) {
  .on-story {
    min-height: calc(100svh - 3.5rem);
    justify-content: flex-start;
    padding-top: 1.75rem;
  }

  .on-story h2 { max-width: none; }
}

@media (min-width: 900px) {
  .on-story { min-height: 86vh; }
}
