/* Humane Genomics - lightweight static theme */

:root{
  --bg: #0a0a0a;
  --bg2: #000000;
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --line: rgba(255,255,255,0.14);

  --mint: #8ad1cd;
  --lime: #c5dd80;

  --radius: 18px;
  --container: 1024px;

  --shadow: 0 10px 35px rgba(0,0,0,0.45);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image: url("img/virus-hero.png");
  background-repeat: no-repeat;

  /* smaller like WP */
  background-size: clamp(240px, 38vw, 480px) auto;

  /* sit behind the nav bar (move up) */
  background-position: right -40px top -20px;

  /* optional: gentle fade so text is always readable */
  opacity: 0.95;
}

.site-header{ position: sticky; top: 0; z-index: 10; }
main, footer{ position: relative; z-index: 5; }

body{
  margin:0;
  display:flex;
  flex-direction:column;
  min-height:100vh;
  font-family: 'AlmarenaDisplayBold', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: 
    radial-gradient(circle at top left, #182848 0, transparent 55%), 
    radial-gradient(circle at bottom right, #4b6cb7 0, transparent 60%),
    #000;
  background-repeat: no-repeat;
  background-size: cover, cover, cover;
  background-position: 0 0, 0 0, 0 0;
  background-attachment: fixed;
  
  color: var(--text);
  line-height:1.45;
}

h1, h2, h3, nav {
  font-family: 'AlmarenaDisplayBold', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
}

body, p, li {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight:400;
}


main{ 
  flex:1 0 auto;
  min-height:0; 
}

a{ color: inherit; text-decoration: none; }
a:hover{ color: #fff; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 12px;
  border-radius: 12px;
  background:#111;
  border:1px solid var(--line);
  z-index:9999;
}

/* ===== Header / Nav ===== */
.site-header{
  background: rgba(0,0,0,0.55);   /* subtle transparency */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding: 14px 0;
}

.brand img{
  display:block;
  height:44px;
  width:auto;
}

/* Desktop nav */
.site-nav .nav-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap: 18px;
  align-items:center;
}

.site-nav a{
  display:inline-flex;
  align-items:center;
  padding: 10px 10px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
}

.site-nav a:hover{
  color:#fff;
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.site-nav a.active{
  color:#fff;
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

/* Burger */
.nav-toggle{
  display:none;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  border-radius: 999px;
  height: 42px;
  width: 48px;
  color:#fff;
  cursor:pointer;
  align-items:center;
  justify-content:center;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.burger{
  display:block;
  width: 18px;
  height: 12px;
  position: relative;
}

.burger::before,
.burger::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background: rgba(255,255,255,0.86);
  border-radius: 2px;
}
.burger::before{ top:0; }
.burger::after{ bottom:0; }

.nav-toggle .burger::before,
.nav-toggle .burger::after{
  box-shadow: 0 5px 0 rgba(255,255,255,0.86);
}

/* ===== Hero ===== */
.hero{
  display:flex;
  align-items:flex-start;
}

.hero-inner{
  padding: clamp(96px, 7vw, 128px) 0;
}

.hero-title{
  margin: 0 0 22px;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero-copy{
  max-width: 480px;
}

.hero h1{
  margin:0 0 14px 0;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-sub{
  margin: 0 0 26px 0;
  font-size: clamp(18px, 1.7vw, 22px);
  color: var(--muted);
  max-width: 52ch;
}

/* Button */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: #0b66ff;
  color:#fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{
  border-color: rgba(255,255,255,0.26);
  background: #0a5be3;
  transform: translateY(-1px);
}

/* ===== Footer ===== */
.site-footer{
  flex: 0 0 auto;
  margin: 0;
  padding: 28px 0 36px;
  color: rgba(255,255,255,0.65);
}
.footer-inner{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
}

/* ===== News list (editorial style) ===== */

.news-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 28px 0;
}

.news-row + .news-row {
  border-top: 1px solid rgba(255,255,255,0.12);
}

.news-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.news-body {
  max-width: 760px;
}

.news-title {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.25;
}

.news-title a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-meta {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 14px;
}

.news-meta .dot {
  margin: 0 6px;
}

.news-excerpt {
  line-height: 1.6;
  margin-bottom: 14px;
  opacity: 0.95;
}

.news-readmore {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #7fd3ff;
  text-decoration: none;
}

.news-readmore:hover {
  text-decoration: underline;
}

.news-thumb{
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

/* Force a consistent editorial thumbnail shape */
.news-thumb::before{
  content:"";
  display:block;
  aspect-ratio: 16 / 10; /* tweak: 16/9 looks more “video”, 4/3 more “print” */
}

/* Make any image fill the frame nicely */
.news-thumb img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  border-radius: 0; /* container handles rounding */
}

/* If the thumbnail is a link, give it a nice hover */
.news-row:hover .news-thumb{
  border-color: rgba(138,209,205,0.32); /* mint-ish */
  box-shadow: 0 18px 42px rgba(0,0,0,0.55);
}

/* Optional: if WP emits <a> around the image, keep it block-level */
.news-thumb a{ display:block; }

/* Mobile: a touch taller so images feel less cramped */
@media (max-width: 720px){
  .news-thumb::before{ aspect-ratio: 16 / 11; }
}


/* ===== Long-form pages (About/Team/Jobs) ===== */
.page { padding: 34px 0 54px; }

.page-head h1 { margin: 0 0 10px; }

.page-head .lede{
  margin-top: 28px;
}

.lede {
  max-width: 78ch;
  font-size: 18px;
  line-height: 1.65;
  opacity: 0.95;
  margin: 0;
}

.page-grid{
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 42px;
  margin-top: 26px;
  align-items: start;
}

.page-main { min-width: 0; }
.page-main h2 { margin: 26px 0 10px; font-size: 24px; line-height: 1.25; }
.page-main h3 { margin: 18px 0 8px; font-size: 18px; line-height: 1.25; opacity: 0.98; }

.content-block { padding: 4px 0; }
.content-block p { max-width: 82ch; line-height: 1.7; margin: 0 0 12px; }

.bullets{
  margin: 10px 0 0;
  padding-left: 20px;
  max-width: 82ch;
}
.bullets li{
  margin: 8px 0;
  line-height: 1.65;
}
.bullets strong { font-weight: 700; }

.page a{
  color: #7fd3ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page a:hover{ opacity: 0.9; }

.muted{ opacity: 0.8; }

.pubs{
  margin: 10px 0 0;
  padding-left: 20px;
  max-width: 90ch;
}
.pubs li{ margin: 10px 0; line-height: 1.6; }
.pub-year{ opacity: 0.75; margin-left: 6px; }

.section{
  padding: 18px 0 10px;
}

.section-title{
  margin: 12px 0 26px;
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 0.95;
}

.kicker{
  margin: 0 0 14px;
  font-size: 28px;
  opacity: 0.95;
}

/* Aside */
.side-card{
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  background: rgba(0,0,0,0.22);
  padding: 16px 16px 12px;
}
.side-card h3{ margin: 0 0 8px; font-size: 16px; }
.side-links{ list-style: none; padding: 0; margin: 0; }
.side-links li{ margin: 8px 0; }
.side-links a{ text-decoration: none; }
.side-links a:hover{ text-decoration: underline; }

/* Mobile */
@media (max-width: 900px){
  .page-grid{ grid-template-columns: 1fr; gap: 24px; }
  .page-aside{ order: -1; }
}

/* Mobile */
@media (max-width: 720px) {
  .news-row {
    grid-template-columns: 1fr;
  }

  .news-thumb {
    max-width: 360px;
  }
}
/* ===== Team ===== */
.people-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px;
  align-items: start;
  padding: 0 0 24px;
}

.person{
  text-align: center;
}

.person-photo{
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.person-name{
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.person-role{
  margin: 0 0 14px;
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.35;
}

.person-bio{
  margin: 0 auto;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.92;
}

.person-li{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  margin-top: 12px;
  background: rgba(127,211,255,0.22);
  border: 1px solid rgba(127,211,255,0.38);
  color: #7fd3ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.person-li:hover{ opacity: 0.9; }

/* Responsive */
@media (max-width: 980px){
  .people-grid{ gap: 34px; }
  .person-photo{ width: 170px; height: 170px; }
}

@media (max-width: 820px){
  .people-grid{ grid-template-columns: 1fr; gap: 30px; }
  .person-bio{ max-width: 52ch; }
}


/* ===== Mobile ===== */
@media (max-width: 820px){
  .nav-toggle{ display:inline-flex; }

  .site-nav{
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    padding: 0 20px;
    display:none;
  }

  .site-nav.open{ display:block; }

  .site-nav .nav-list{
    flex-direction: column;
    gap: 6px;
    background: rgba(0,0,0,0.92);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
  }

  .site-nav a{
    width:100%;
    justify-content:flex-start;
    padding: 12px 12px;
  }

  /* Prevent background scroll while menu open (nice-to-have) */
  html.nav-open, html.nav-open body{ overflow:hidden; }
}



