/* ============================================
   Prompting Sustainability — Single Page
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f5f0;
  --bg-card: #fafaf6;
  --ink: #1f1f1f;
  --ink-soft: #4a4a4a;
  --ink-mute: #888;
  --rule: #e3e0d8;
  --link: #8a4a1c;
  --link-hover: #6b3410;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* offset so anchors don't sit under sticky nav */
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ============ TOP BAR ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.topbar .brand-mark {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.topbar nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.topbar nav a {
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 400;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.15s ease;
}

.topbar nav a:hover {
  color: var(--link);
  text-decoration: none;
}

.topbar nav a.active {
  color: var(--ink);
  font-weight: 600;
}

.topbar nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--link);
}

/* ============ CONTAINERS ============ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.container--narrow {
  max-width: 880px;
}

/* ============ HERO ============ */
#home {
  padding: 88px 0 56px;
  text-align: center;
  border-top: none;
}

#home h1 {
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 20px;
}

#home .tagline {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 auto 28px;
  line-height: 1.5;
}

/* ============ SECTIONS ============ */
section {
  padding: 64px 0;
  border-top: 1px solid var(--rule);
}

.section-header {
  margin-bottom: 8px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 8px;
}

h2 {
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink);
}

h3 {
  font-weight: 600;
  font-size: 19px;
  margin: 28px 0 10px;
  color: var(--ink);
}

.section-subtitle {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 65ch;
  margin-bottom: 24px;
}

/* ============ PROSE ============ */
.prose {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink);
}

.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin-bottom: 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { font-weight: 600; }

/* ============ FIGURES ============ */
figure {
  margin: 28px 0;
}

figure .frame {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  overflow: hidden;
}

figure .frame img {
  width: 100%;
  display: block;
}

figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
}

/* ============ DATA BLOCKS ============ */
.data-block {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  padding: 24px 28px;
  margin: 24px 0;
}

.data-block .data-meta {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 6px;
}

.data-block h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

.data-block p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  line-height: 1.6;
}

.data-block .dl-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.data-block .dl-links a {
  background: var(--ink);
  color: white;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid var(--ink);
}

.data-block .dl-links a:hover {
  background: var(--link);
  border-color: var(--link);
  color: white;
  text-decoration: none;
}

.data-block .dl-links a.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--rule);
}

.data-block .dl-links a.secondary:hover {
  border-color: var(--ink);
  background: white;
  color: var(--ink);
}

/* ============ PAPER LIST ============ */
.papers-list { list-style: none; }

.papers-list li {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}

.papers-list li:last-child { border-bottom: 1px solid var(--rule); }

.paper-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--link);
  margin-bottom: 6px;
}

.paper-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  color: var(--ink);
}

.paper-authors {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.paper-summary {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 70ch;
  margin-bottom: 8px;
}

.paper-keywords {
  font-size: 12.5px;
  color: var(--ink-mute);
}

.paper-keywords strong {
  color: var(--ink-soft);
  font-weight: 600;
}

/* ============ GRANT LIST ============ */
.grants-list { list-style: none; }

.grants-list li {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}

.grants-list li:last-child { border-bottom: 1px solid var(--rule); }

.grant-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.grant-funder {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.grant-meta {
  font-size: 13px;
  color: var(--ink-mute);
}

/* ============ NEWS ============ */
.news-list { list-style: none; }

.news-list li {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  font-size: 14.5px;
}

.news-list li:last-child { border-bottom: 1px solid var(--rule); }

.news-list .date {
  color: var(--ink-mute);
  font-size: 13px;
}

.news-empty {
  padding: 32px 0;
  color: var(--ink-mute);
  font-style: italic;
  text-align: center;
}

/* ============ TEAM ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 16px;
}

.team-member { text-align: center; }

.team-member .avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 600;
  color: var(--ink-mute);
}

.team-member h4 {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--ink);
}

.team-member .role {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.team-member .links {
  font-size: 13px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ CONTACT CARD ============ */
.contact-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 32px;
  align-items: start;
  padding: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
}

.contact-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;

  /* remove the “badge” look */
  background: none;
  color: transparent;

  display: block;
  overflow: hidden;

  border: none;
  box-shadow: none;
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;

  /* soften the image (less hyper-detailed) */
  filter: brightness(1.05) contrast(0.9) saturate(0.9) blur(0.3px);
}

.contact-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.contact-affiliation {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

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

.contact-links li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  align-items: baseline;
}

.contact-links li:last-child {
  border-bottom: 1px solid var(--rule);
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
}

.contact-links a {
  word-break: break-word;
}

/* ============ FOOTER ============ */
footer {
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
  text-align: center;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.6;
}

footer p { margin-bottom: 4px; }

/* ============ MOBILE ============ */
@media (max-width: 760px) {
  html { scroll-padding-top: 110px; }
  .topbar-inner { flex-direction: column; gap: 12px; padding: 12px 20px; }
  .topbar nav { gap: 14px; justify-content: center; }
  .container { padding: 0 20px; }
  #home { padding: 56px 0 36px; }
  section { padding: 48px 0; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .news-list li { grid-template-columns: 1fr; gap: 4px; }
  h2 { font-size: 26px; }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
    text-align: center;
  }
  .contact-avatar { margin: 0 auto; }
  .contact-links li {
    grid-template-columns: 1fr;
    gap: 2px;
    text-align: left;
  }
}

