/* Updates page: same night-sky chrome as the landing page (haze, stars,
   frame, top bar), but this page has to scroll — the landing page never
   does. Earlier version kept `.stage`'s `position: fixed` and tried to
   scroll an inner container instead — fragile, especially on mobile
   Safari. Simpler and more robust: this is a normal, natively-scrolling
   document. The decorative layers (haze, stars, vignette, frame, topbar)
   are pinned with their own `position: fixed` instead, so they read as a
   backdrop the content scrolls in front of, not a container the content
   scrolls inside. */

.monogram-home { text-decoration: none; }

.updates-stage {
  position: relative;
  height: auto;
  min-height: 100dvh;
  display: block;
  overflow: visible;
}

.updates-stage .haze,
.updates-stage .stars,
.updates-stage .vignette,
.updates-stage .frame,
.updates-stage .topbar {
  position: fixed;
}

.updates-wrap {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--edge) calc(var(--edge) * 4);
}

/* The hero: fills the first screen like the landing page does, so the
   page reads as "arrive here, then scroll" rather than a list starting
   mid-frame. Fades and lifts out of the way as it scrolls past — the
   "cool transition" is the real scroll doing the work via `updates.js`
   toggling --scroll-progress, not a canned animation that plays once. */
.updates-head {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: calc(1 - var(--scroll-progress, 0) * 1.6);
  transform: translateY(calc(var(--scroll-progress, 0) * -40px)) scale(calc(1 - var(--scroll-progress, 0) * 0.06));
  will-change: opacity, transform;
}

.scroll-cue {
  position: absolute;
  bottom: clamp(1.5rem, 5vmin, 3rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: calc(1 - var(--scroll-progress, 0) * 4);
  transition: opacity 0.2s linear;
}

.scroll-cue span {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(214, 206, 255, 0.45);
}

.scroll-cue-glyph {
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(214, 206, 255, 0.5);
  border-bottom: 1px solid rgba(214, 206, 255, 0.5);
  transform: rotate(45deg);
  animation: cue-bob 2.2s ease-in-out infinite;
}

@keyframes cue-bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%      { transform: rotate(45deg) translate(4px, 4px); }
}

@media (prefers-reduced-motion: reduce) {
  .updates-head { opacity: 1; transform: none; }
  .scroll-cue-glyph { animation: none; }
}

.updates-orb {
  width: clamp(56px, 10vmin, 90px);
  height: clamp(56px, 10vmin, 90px);
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(120, 110, 255, 0.4));
  margin-bottom: 1rem;
}

.updates-title {
  font-weight: 400;
  font-size: clamp(1.8rem, 5vmin, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 0 26px rgba(150, 150, 255, 0.3);
}

.updates-sub {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: rgba(214, 206, 255, 0.55);
  letter-spacing: 0.02em;
}

.updates-loading,
.updates-empty {
  text-align: center;
  color: rgba(214, 206, 255, 0.5);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.updates-feed {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: clamp(1rem, 4vmin, 2rem);
}

/* ── Release cards: the headline entries ─────────────────────────────── */

.release-card {
  position: relative;
  background: rgba(16, 12, 32, 0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.6rem 1.7rem 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.release-version {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(190, 180, 255, 0.9);
  text-shadow: 0 0 16px rgba(150, 150, 255, 0.5);
  padding: 0.25em 0.7em;
  border: 1px solid rgba(190, 180, 255, 0.35);
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.release-title {
  font-weight: 400;
  font-size: clamp(1.2rem, 3vmin, 1.5rem);
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 0.5rem;
}

.release-summary {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.release-changelog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.release-section h3 {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(214, 206, 255, 0.55);
  margin-bottom: 0.5rem;
}

.release-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.release-section li {
  position: relative;
  padding-left: 0.9rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.release-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 1px;
  background: rgba(214, 206, 255, 0.5);
}

.release-date {
  margin-top: 1.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(214, 206, 255, 0.4);
}

/* ── Small updates: compact, routine ─────────────────────────────────── */

.small-update {
  padding: 0.9rem 1.1rem;
  border-left: 2px solid rgba(190, 180, 255, 0.3);
}

.small-date {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(214, 206, 255, 0.4);
  margin-bottom: 0.3rem;
}

.small-title {
  font-weight: 400;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.3rem;
}

.small-summary {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 560px) {
  .release-changelog { grid-template-columns: 1fr; }
}
