/* ====== Reset / canvas ====== */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body.bio-page {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #000;
  /* font-family: "IBM Plex Sans", system-ui, sans-serif; */

  font-family: "Nunito", sans-serif;
}

/* ====== Full-bleed background video ====== */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

body.bio-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

:root {
  --top-ui: 84px;
}

.back-link {
  position: fixed;
  top: 1.25rem;
  left: 1.5rem;
  z-index: 21;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 700;
}

.overlay {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--top-ui) + 2rem) 1.5rem 2.5rem;
}

.overlay-card {
  letter-spacing: 0.015em;
  width: min(520px, 88vw);
  padding: 3.2rem 2rem 3rem;

  border-radius: 0;

  background: rgba(243, 236, 225, 0.88);
  background: color-mix(in srgb, rgba(243, 236, 225, 0.88) 88%, transparent);

  backdrop-filter: none;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.14);

  color: #2e2e2e;
}

.overlay-card h1 {
  margin: 0 0 1rem;
  color: #225cae;
  /* color: #c97a50; */
  letter-spacing: 0.04em;
  font-size: 3rem;
}

.overlay-card p {
  margin: 0 0 1.1rem;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #3b3b3b;
}

/* Inline links inside overlay text */
.overlay-card a {
  color: #225cae;
  font-weight: 700;

  text-decoration: none;

  padding: 0.05em 0.2em;
  border-radius: 0.35em;
  background: rgba(201, 122, 80, 0.14);
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.overlay-card a:hover {
  color: #225cae;
  background: rgba(53, 166, 72, 0.14);
}

.overlay-card a:focus-visible {
  outline: 2px solid #c97a50;
  outline-offset: 3px;
}

.overlay-card,
.video-overlay {
  font-weight: 300;
}

@media (prefers-reduced-motion: reduce) {
  .bg-video {
    display: none;
  }

  body.bio-page {
    background: url("/assets/images/clouds.webp") center / cover no-repeat fixed;
  }
}
