/* Short text over the glass field, in Geist Mono (variable, 100-900). The
   glass title is Space Grotesk Bold (wordmark.svg). */
@font-face { font-family: "Geist Mono"; src: url(fonts/GeistMono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

* { box-sizing: border-box; }
html { background: #0a0b0d; color-scheme: dark; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex; align-items: center;
  color: #eceff1;
  font: 400 14px/1.75 "Geist Mono", ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
}

#glass {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.glass-ready #glass { opacity: 0.7; }

main {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-shadow: 0 0 10px #0a0b0d, 0 0 3px #0a0b0d;
}

/* The title is a 3D glass word (wordmark.js). The text stays in the h1 for
   screen readers, and shows as plain text if WebGL is not available. */
h1 { position: relative; margin: 0 0 1.6rem; font-size: 2.6rem; line-height: 1; aspect-ratio: 4.2; }
/* The canvas is larger than the h1 box on every side (130% x 180%, matched by
   BLEED_X / BLEED_Y in wordmark.js) so the moving word never touches its edge. */
#word {
  position: absolute; left: -15%; top: -40%; width: 130%; height: 180%;
  pointer-events: none; visibility: hidden;
}
.glass-on #word { visibility: visible; }
h1 .txt { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.glass-on .txt { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }

p { margin: 0 0 1.2em; max-width: 30rem; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a.main { font-weight: 700; }



a.more { color: #7e868f; text-decoration-style: dotted; white-space: nowrap; }
a.more:hover { color: #eceff1; }

/* ── All-releases popup: a frosted glass sheet over the field ───────────── */
dialog#releases {
  width: min(40rem, calc(100vw - 2rem)); max-height: min(80vh, 46rem);
  padding: 0; border: 1px solid rgba(236, 239, 241, 0.14); border-radius: 14px;
  background: rgba(17, 19, 22, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  color: inherit; font: inherit;
}
dialog#releases::backdrop { background: rgba(10, 11, 13, 0.4); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
dialog#releases[open] { animation: rise 0.22s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.sheet { padding: 1.4rem 1.6rem 1.6rem; }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.sheet h2 { margin: 0; font-size: 0.8rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: #7e868f; }
.close { border: 0; background: none; font-family: inherit; font-size: 1.6rem; font-weight: 300; line-height: 1; color: #7e868f; cursor: pointer; padding: 0 0.2rem; }
.close:hover { color: #eceff1; }
#releases ol { list-style: none; margin: 0; padding: 0; }
#releases li {
  display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 0.2rem 1rem; align-items: baseline;
  padding: 0.7rem 0; border-top: 1px solid rgba(236, 239, 241, 0.1);
}
#releases li .y { color: #7e868f; }
#releases li b { font-weight: 600; }
#releases li i { font-style: normal; color: #7e868f; margin-left: 0.6em; }
#releases li .l { display: flex; flex-wrap: wrap; gap: 0 0.8em; justify-content: flex-end; }
#releases .all { margin: 0; padding-top: 0.9rem; border-top: 1px solid rgba(236, 239, 241, 0.1); color: #7e868f; max-width: none; }
#releases .all a:hover { color: #eceff1; }

@media (max-width: 480px) {
  #releases li { grid-template-columns: 3rem 1fr; }
  #releases li .l { grid-column: 2; justify-content: flex-start; }
  #releases li i { display: block; margin-left: 0; }

  body { font-size: 14px; }
}

