/* Informatics for Life — informaticsforlife.org */
:root {
  --navy: #10294a;
  --navy-deep: #0a1e38;
  --amber: #f0a41c;
  --amber-soft: #fdf3e0;
  --ink: #1d2b3a;
  --muted: #5b6b7d;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --radius: 14px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--navy); }
img { max-width: 100%; height: auto; }

/* Header */
.site-header {
  background: var(--navy-deep);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--amber), #d98a06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--navy-deep);
  font-size: 0.95rem;
  letter-spacing: -0.5px;
}
.nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.nav a {
  color: #dbe6f2;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
}
.nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav a.active { background: var(--amber); color: var(--navy-deep); font-weight: 600; }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
section.block { padding: 3.2rem 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #b97c0a;
  margin: 0 0 0.6rem;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin: 0 0 1rem; color: var(--navy-deep); }
h2 { font-size: 1.7rem; margin: 0 0 0.9rem; color: var(--navy-deep); }
h3 { font-size: 1.15rem; margin: 0 0 0.5rem; color: var(--navy); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, #173a63 100%);
  color: #fff;
  padding: 4.2rem 0 3.6rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,164,28,0.22), transparent 70%);
}
.hero h1 { color: #fff; }
.hero .lede { color: #c9d7e8; }
.hero .eyebrow { color: var(--amber); }
.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-weight: 650;
  text-decoration: none;
  font-size: 1rem;
}
.btn-amber { background: var(--amber); color: var(--navy-deep); }
.btn-amber:hover { background: #ffB52e; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}
.stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.stat strong { display: block; font-size: 1.35rem; color: var(--amber); }
.stat span { font-size: 0.88rem; color: #c9d7e8; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.6rem; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  background: #fff;
}
.card p { color: var(--muted); font-size: 0.98rem; }
.card .btn { margin-top: 0.6rem; font-size: 0.92rem; padding: 0.6rem 1.1rem; }
.band {
  background: var(--amber-soft);
  border: 1px solid #f3ddab;
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1rem;
}
.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; align-items: start; }

/* Video */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; margin-top: 1.6rem; }
.video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.video-frame { position: relative; padding-bottom: 56.25%; height: 0; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-meta { padding: 1rem 1.2rem 1.2rem; }
.video-meta h3 { font-size: 1.02rem; }
.video-meta a.watch { font-size: 0.9rem; font-weight: 600; }

/* About */
.bio { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.bio img {
  width: 220px; height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.pill-list { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-list li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.86rem;
}
.link-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.8rem; }
.link-row a { font-weight: 600; font-size: 0.95rem; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #b9c9dc;
  padding: 2.6rem 0 1.8rem;
  margin-top: 2rem;
  font-size: 0.92rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h4 { color: #fff; margin: 0 0 0.7rem; font-size: 1rem; }
.site-footer a { color: #dbe6f2; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.35rem 0; }
.fineprint {
  max-width: var(--max);
  margin: 1.8rem auto 0;
  padding: 1.2rem 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
  color: #8fa3b8;
}

/* Contact */
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  text-align: center;
  background: var(--bg-soft);
  margin-top: 1.4rem;
}
.contact-card .big-mail { font-size: 1.5rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.contact-card .big-mail:hover { color: #0a1e38; text-decoration: underline; }
form.contact-form { max-width: 560px; margin: 2rem auto 0; text-align: left; }
form.contact-form label { display: block; font-weight: 600; margin: 1rem 0 0.35rem; }
form.contact-form input, form.contact-form textarea, form.contact-form select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
form.contact-form textarea { min-height: 130px; resize: vertical; }

@media (max-width: 860px) {
  h1 { font-size: 2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  .bio img { width: 160px; height: 160px; }
  .footer-inner { grid-template-columns: 1fr; }
}
