/* ===== Blanchard Science — personal/academic site ===== */

:root {
  --space: #1b2240;       /* deep indigo */
  --space-2: #232b52;
  --ink: #21283b;
  --ink-soft: #545d73;
  --bg: #f5f7fa;
  --card: #ffffff;
  --teal: #2ca6a4;
  --teal-dark: #1f807e;
  --line: #dde3ec;
  --max: 1000px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

a { color: var(--teal-dark); }

/* ===== Header / nav ===== */
.site-header {
  background: var(--space);
  color: #fff;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  font-family: "Spectral", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-header nav a {
  color: #c6cce4;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
}

.site-header nav a:hover, .site-header nav a.active { color: #fff; }

/* ===== Hero (starfield) ===== */
.hero {
  background:
    radial-gradient(1px 1px at 12% 28%, rgba(255,255,255,0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 31% 67%, rgba(255,255,255,0.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 48% 22%, rgba(255,255,255,0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 74%, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 76% 38%, rgba(255,255,255,0.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 60%, rgba(255,255,255,0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 84%, rgba(255,255,255,0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 12%, rgba(255,255,255,0.7) 50%, transparent 51%),
    linear-gradient(160deg, var(--space) 0%, var(--space-2) 55%, #2d3a6e 100%);
  color: #fff;
  text-align: center;
  padding: 84px 24px 78px;
}

.hero h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  max-width: 820px;
  margin: 0 auto 18px;
}

.hero .rule {
  width: 220px;
  height: 3px;
  background: var(--teal);
  margin: 0 auto 22px;
  border: 0;
}

.hero p {
  color: #c6cce4;
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.hero p strong { color: #fff; font-weight: 600; }

/* ===== Page title (subpages) ===== */
.page-title {
  background: var(--space);
  color: #fff;
  padding: 40px 24px;
  text-align: center;
}

.page-title h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin: 0;
}

/* ===== Sections ===== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px;
}

.section h2 {
  font-size: 1.55rem;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 0.9em;
}

.section h3 { font-size: 1.18rem; margin-top: 1.6em; }

.section p { color: var(--ink); }

.muted { color: var(--ink-soft); }

/* ===== Cards (research at a glance) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 10px;
  padding: 22px 20px;
}

.card h3 { margin-top: 0; font-size: 1.08rem; }

.card p { font-size: 0.94rem; color: var(--ink-soft); margin: 0 0 10px; }

.card a { font-size: 0.9rem; font-weight: 600; text-decoration: none; }

/* ===== News list ===== */
.news-list { list-style: none; padding: 0; margin: 0; }

.news-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.news-list .date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--teal-dark);
  display: inline-block;
  min-width: 92px;
  font-weight: 600;
}

.news-list li.has-img {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 18px;
  align-items: center;
}

.news-thumb {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

/* ===== Publications ===== */
.pub-year {
  font-family: "Spectral", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.8em 0 0.5em;
  color: var(--space);
}

.pub-list { list-style: none; padding: 0; margin: 0; }

.pub-list li {
  padding: 10px 0 10px 16px;
  border-left: 3px solid var(--line);
  margin-bottom: 8px;
}

.pub-list li:hover { border-left-color: var(--teal); }

.pub-title { font-weight: 600; display: block; }

.pub-authors { font-size: 0.92rem; color: var(--ink-soft); display: block; }

.pub-authors b { color: var(--ink); }

.pub-venue { font-size: 0.92rem; display: block; }

.pub-venue em { color: var(--space); }

/* ===== Footer / contact ===== */
.site-footer {
  background: var(--space);
  color: #c6cce4;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.92rem;
}

.footer-inner h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.4em;
}

.footer-inner a { color: var(--teal); text-decoration: none; }

.footer-meta {
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  padding: 14px;
  font-size: 0.8rem;
  color: #8e97b8;
}

/* ===== Mobile ===== */
@media (max-width: 720px) {
  .hero { padding: 56px 20px; }
  .section { padding: 40px 20px; }
  .news-list .date { display: block; min-width: 0; }
  .news-list li.has-img { grid-template-columns: 1fr; }
  .news-thumb { max-width: 320px; }
}
