* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

/* same nav feel as aesthetic */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(240,240,240,0.5);
  backdrop-filter: blur(10px);
}
.topnav__inner {
  display: flex;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.topnav__link {
  color: rgb(90,0,255);
  text-decoration: none;
  font-weight: 500;
}
.topnav__link:hover { text-decoration: underline; }
.topnav__link--active { text-decoration: underline; }

/* background image layer */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("/static/img/sci_bg.png"); /* change filename if you want */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(0px);
}

/* optional dark overlay for readability */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

/* content container sits above background */
.container {
  position: relative;
  z-index: 1;
  padding-top: 88px; /* nav spacing */
  padding-bottom: 80px;
  width: min(920px, 92vw);
  margin: 0 auto;
}

.page-title {
  color: #fff;
  margin: 0 0 20px 0;
  font-size: clamp(28px, 3vw, 44px);
  text-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* centered framed posts */
.post-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 16px;
  padding: 18px 18px 14px 18px;
  margin: 18px 0;              /* separation between posts */
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.post-card__header { margin-bottom: 12px; }
.post-card__title { margin: 0 0 6px 0; font-size: 22px; }
.post-card__desc { margin: 0 0 8px 0; opacity: 0.8; }
.post-card__meta { margin: 0; font-size: 13px; opacity: 0.6; }

.post-card__media { margin-top: 10px; }
.post-card__img,
.post-card__video {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* if you have multiple media, give them some breathing room */
.post-card__media > * + * { margin-top: 10px; }

.post-card__content {
  margin-top: 12px;
  line-height: 1.8;
  opacity: 0.95;
}

/* fallback */
.media-fallback {
  width: 100%;
  padding: 40px 16px;
  text-align: center;
  background: rgba(0,0,0,0.04);
  border-radius: 12px;
  color: rgba(0,0,0,0.7);
}

.empty { color: #fff; opacity: 0.9; }

/* responsive */
@media (max-width: 600px) {
  .post-card { border-radius: 14px; }
  .post-card__title { font-size: 20px; }
}
