/* ── Design tokens ───────────────────────────────────────────── */
:root {
  --bg: #F4F5F0;
  --ink: #20302C;
  --muted: #5C6B63;
  --accent: #2C6E6C;
  --soil: #9C7647;
  --line: rgba(32, 48, 44, 0.14);
  --max-width: 760px;
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,500&family=Inter:wght@400;500&display=swap');

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.serif {
  font-family: 'Fraunces', serif;
  font-weight: 500;
}

/* ── Nav ─────────────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}

.site-nav .wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 15px;
}

.site-nav .links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav .links a {
  color: var(--muted);
}

.site-nav .links a.active {
  color: var(--ink);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}

.site-nav .more {
  position: relative;
}

.site-nav .more-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12.5px;
  color: var(--muted);
  flex-direction: column;
  gap: 6px;
  white-space: nowrap;
  z-index: 10;
}

.site-nav .more:hover .more-menu,
.site-nav .more:focus-within .more-menu {
  display: flex;
}

/* ── Page content container ─────────────────────────────────── */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.page-content h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 28px;
  margin-bottom: 24px;
}

/* ── Hero (homepage) ─────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #9FB59B; /* shows while hero image loads / if missing */
}

.hero .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,48,44,0) 45%, rgba(20,32,28,0.6) 100%);
}

.hero .hero-text {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 32px;
  color: #F4F5F0;
}

.hero .hero-text h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 36px;
  margin: 0;
  letter-spacing: -0.01em;
}

.hero .hero-text p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #D7DECB;
}

/* ── Mission statement block ─────────────────────────────────── */
.mission {
  max-width: 560px;
  margin: 48px auto 0;
  padding: 0 24px;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.65;
}

/* ── Current directions (fade-in row) ────────────────────────── */
.directions {
  display: flex;
  gap: 24px;
  max-width: 600px;
  margin: 48px auto 0;
  padding: 0 24px 48px;
  flex-wrap: wrap;
}

.directions .item {
  flex: 1 1 140px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.directions .item.visible {
  opacity: 1;
  transform: translateY(0);
}

.directions .item .rule {
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  margin-bottom: 10px;
}

.directions .item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .directions .item {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ── Research topic blocks (alternating) ─────────────────────── */
.section-heading {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 48px 0 4px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.section-heading:first-of-type {
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
}

.topic {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.topic:last-child { border-bottom: none; }

.topic.reverse {
  flex-direction: row-reverse;
}

.topic .topic-image {
  flex: 0 0 42%;
}

.topic .topic-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  background: #E9ECE4; /* placeholder color while image is added */
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.topic .topic-text { flex: 1; }
.topic.reverse .topic-text { text-align: right; }

.topic .topic-text h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 10px;
}

.topic .topic-text p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.topic .publications {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.topic.reverse .publications { text-align: right; }

.topic .publications .label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.topic .publications p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}

/* ── People grid ─────────────────────────────────────────────── */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
  background: #E9ECE4;
}

.person h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 16px;
  margin: 14px 0 2px;
}

.person .role {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}

.person p.bio {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ── News list (News page) ───────────────────────────────────── */
.news-entry {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.news-entry:last-child { border-bottom: none; }

.news-entry .thumb {
  flex: 0 0 84px;
}

.news-entry .thumb img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 3px;
  background: #E9ECE4;
  display: block;
}

.news-entry .meta {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.news-entry .summary {
  font-size: 15px;
  line-height: 1.55;
}

.news-entry .summary p {
  margin: 0;
}

/* ── News teaser (homepage) ──────────────────────────────────── */
.news-teaser {
  max-width: 540px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.news-teaser .heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.news-teaser .heading h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 16px;
  margin: 0;
}

.news-teaser .heading a {
  font-size: 12px;
}

.news-teaser .teaser-item {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}

.news-teaser .teaser-item .date {
  flex: 0 0 80px;
  font-size: 12px;
  color: var(--muted);
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .topic, .topic.reverse {
    flex-direction: column;
  }
  .topic .topic-text, .topic.reverse .topic-text {
    text-align: left;
  }
  .topic.reverse .publications { text-align: left; }
  .hero { height: 300px; }
  .hero .hero-text h1 { font-size: 26px; }
}
