/* Full-page layout */
html, body {
  height: 100%;
  margin: 0;
}

body {
  background: #f2f2f2;            /* fallback */
  overflow-x: hidden;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}


/* DNA canvas background */
#dna-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}


/* Top bar */
.topbar {
  position: fixed;
  top: 18px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none; /* let clicks pass except on links */
}

.topbar .name {
  font-size: 18px;
  font-weight: 500;
  color: #222;
  pointer-events: auto;
}

.topbar .icons {
  display: flex;
  gap: 14px;
  pointer-events: auto;
}

.topbar .icons a {
  color: #222;
  text-decoration: none;
  font-size: 18px;
  opacity: 0.85;
}

.topbar .icons a:hover {
  opacity: 1;
}

/* Center card */
.hero-wrap {
  position: relative;     /* was: fixed */
  min-height: 100vh;      /* still fills the first screen */
  display: grid;
  place-items: center;
  z-index: 1;
  padding: 110px 0 70px;  /* space for topbar + breathing room */
}


.hero-card {
  width: min(920px, 92vw);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.10);
  padding: 46px 52px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 42px;
  align-items: center;
  backdrop-filter: blur(6px);
}

/* Headshot */
.hero-card .headshot {
  width: 200px;
  height: 200px;
  border-radius: 999px;
  object-fit: cover;
  border: 10px solid rgba(0,0,0,0.04);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

/* Text */
.hero-card .bio p {
  margin: 0 0 14px 0;
  font-size: 18px;
  line-height: 1.45;
  color: #222;
}

.hero-card .bio strong {
  font-weight: 700;
}

/* Footer line inside card */
.hero-card .divider {
  grid-column: 1 / -1;
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin-top: 14px;
}

.hero-card .copyright {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(0,0,0,0.55);
  font-size: 14px;
  margin-top: 14px;
}

/* Mobile */
@media (max-width: 700px) {
  body { overflow: auto; }
  #particles-js { position: fixed; }
  .hero-card {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 32px 26px;
  }
  .hero-card .headshot {
    margin: 0 auto;
  }
}
.navlinks {
  margin-left: 16px;
  font-size: 15px;
}

.navlinks a {
  margin-left: 12px;
  color: #222;
  text-decoration: none;
  opacity: 0.75;
}

.navlinks a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ---- About / content readability ---- */
.content-wrap {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 120px auto 120px;
  padding: 44px 52px;
  background: rgba(255, 255, 255, 0.90);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
  backdrop-filter: blur(8px);
}

/* Typography inside the content panel */
.content-wrap,
.content-wrap * {
  color: #1f1f1f !important;
}

.content-wrap h1 {
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 18px 0;
  font-weight: 750;
}

.content-wrap h2 {
  font-size: 26px;
  margin: 34px 0 10px 0;
  font-weight: 700;
}

.content-wrap p,
.content-wrap li {
  font-size: 16px;
  line-height: 1.65;
}

.content-wrap hr {
  border: none;
  height: 1px;
  background: rgba(0,0,0,0.12);
  margin: 22px 0;
}

/* Force readable headings inside content panels */
.content-wrap h1,
.content-wrap h2,
.content-wrap h3,
.content-wrap h4 {
  color: #111 !important;
}

/* Make the R Markdown page title readable (outside content-wrap) */
h1.title,
#header h1,
h1 {
  color: #111 !important;
}

/* Let the canvas show through (R Markdown containers can be opaque) */
body {
  background: transparent !important;
}

.main-container,
.container,
.container-fluid,
.toc-content,
#content {
  background: transparent !important;
}
