/* ReSeed shared design system — based on the Fab Academy reference template */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fdf8ed;
  --bg-hero: #f5f2e7;
  --bg-card: #fffdf7;
  --bg-card2: #f3f0df;
  --accent: #356b45;
  --accent-dark: #244c31;
  --accent-light: #e3efdf;
  --earth: #9a642f;
  --text: #1c241d;
  --muted: #687168;
  --border: #dedfce;
  --border-strong: #c7c9b5;
  --mono: 'Space Mono', monospace;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
}
a { color: inherit; }

.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px; padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(253,248,237,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  letter-spacing: .08em; color: var(--accent); text-decoration: none;
}
.nav-links { display: flex; gap: 1.35rem; align-items: center; }
.nav-links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em;
  text-decoration: none; color: var(--muted);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a.active { font-weight: 700; }

.hero {
  margin-top: 60px;
  background: var(--bg-hero);
  border-bottom: 1px solid var(--border);
  padding: 76px 2.5rem 58px;
}
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  display: flex; gap: 10px; align-items: center; margin-bottom: 1rem;
}
.hero-eyebrow::before { content:""; width:32px; height:1px; background:var(--accent); }
h1 {
  font-family: var(--mono); font-size: clamp(34px,5vw,58px);
  line-height: 1.08; margin-bottom: 1.2rem;
}
.hero-sub { max-width: 720px; color: var(--muted); font-size: 18px; }
.hero-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:1.4rem; }
.btn {
  display:inline-block; padding:8px 14px; border:1px solid var(--border-strong);
  border-radius:5px; text-decoration:none; font-family:var(--mono);
  font-size:11px; color:var(--accent-dark); background:var(--bg-card);
}
.btn:hover { background:var(--accent-light); border-color:var(--accent); }

.page-body {
  max-width:1100px; margin:0 auto; padding:3rem 2.5rem 6rem;
  display:grid; grid-template-columns:190px 1fr; gap:4rem; align-items:start;
}
.sidebar { position:sticky; top:82px; }
.sidebar-label {
  font-family:var(--mono); font-size:10px; letter-spacing:.15em;
  text-transform:uppercase; color:var(--muted); margin-bottom:.75rem;
  padding-bottom:.5rem; border-bottom:1px solid var(--border);
}
.sidebar-nav { display:flex; flex-direction:column; gap:1px; }
.sidebar-nav a {
  font-size:13px; color:var(--muted); text-decoration:none;
  padding:5px 10px; border-left:2px solid transparent;
}
.sidebar-nav a:hover { color:var(--accent); border-left-color:var(--accent); background:var(--accent-light); }

.content { min-width:0; }
section { margin-bottom:3.5rem; scroll-margin-top:85px; }
.section-number {
  font-family:var(--mono); font-size:10px; color:var(--accent);
  letter-spacing:.12em; text-transform:uppercase; margin-bottom:.4rem;
}
h2 { font-family:var(--mono); font-size:22px; margin-bottom:1rem; }
h3 { font-family:var(--mono); font-size:16px; margin-bottom:.6rem; }
p { color:var(--muted); margin-bottom:.9rem; }
strong { color:var(--text); }
.divider { height:1px; background:var(--border); margin-bottom:3.5rem; }

.placeholder-image, .img-card {
  border:1px solid var(--border); border-radius:8px; overflow:hidden;
  background:var(--bg-card); margin:1.25rem 0;
}
.placeholder-image {
  min-height:250px; display:grid; place-items:center; padding:2rem;
  color:var(--muted); text-align:center; font-family:var(--mono); font-size:12px;
}
.img-card img { width:100%; display:block; max-height:430px; object-fit:cover; }
.img-caption {
  padding:8px 14px; font-family:var(--mono); font-size:11px;
  color:var(--muted); background:var(--bg-card2); border-top:1px solid var(--border);
}

.value-grid, .card-grid {
  display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:1.2rem;
}
.info-card {
  padding:18px; border:1px solid var(--border); border-radius:8px;
  background:var(--bg-card);
}
.info-card p { margin-bottom:0; }

.callout {
  padding:20px; margin:1.25rem 0; border-left:3px solid var(--accent);
  background:var(--accent-light); border-radius:0 8px 8px 0;
}
.callout p:last-child { margin-bottom:0; }

details {
  border:1px solid var(--border); border-radius:7px; background:var(--bg-card);
  margin:.7rem 0; padding:12px 14px;
}
summary { cursor:pointer; font-family:var(--mono); font-size:13px; font-weight:700; }
details p { margin-top:.8rem; }

.post-card {
  display:grid; grid-template-columns:180px 1fr; gap:18px;
  border:1px solid var(--border); border-radius:8px;
  background:var(--bg-card); overflow:hidden; margin-bottom:16px;
}
.post-thumb { min-height:140px; background:var(--bg-card2); display:grid; place-items:center; color:var(--muted); }
.post-body { padding:18px 18px 18px 0; }
.meta { font-family:var(--mono); font-size:10px; color:var(--accent); letter-spacing:.08em; text-transform:uppercase; }

.team-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.team-card { border:1px solid var(--border); border-radius:8px; overflow:hidden; background:var(--bg-card); }
.team-photo { min-height:220px; background:var(--bg-card2); display:grid; place-items:center; color:var(--muted); }
.team-info { padding:15px; }

.timeline { border-left:2px solid var(--border-strong); padding-left:24px; margin-left:8px; }
.timeline-item { position:relative; margin-bottom:2rem; }
.timeline-item::before {
  content:""; position:absolute; width:10px; height:10px; border-radius:50%;
  background:var(--accent); left:-30px; top:8px;
}

footer {
  border-top:1px solid var(--border); background:var(--bg-hero);
  padding:2rem; text-align:center; font-family:var(--mono);
  font-size:11px; color:var(--muted); letter-spacing:.06em;
}

@media (max-width: 820px) {
  .topnav { padding:0 1.25rem; }
  .nav-links { gap:.7rem; overflow-x:auto; margin-left:1rem; }
  .nav-links a { white-space:nowrap; }
  .hero { padding:70px 1.25rem 45px; }
  .page-body { grid-template-columns:1fr; gap:0; padding:2rem 1.25rem 4rem; }
  .sidebar { display:none; }
  .value-grid,.card-grid,.team-grid { grid-template-columns:1fr; }
  .post-card { grid-template-columns:1fr; }
  .post-body { padding:18px; }
}


/* =========================================================
   ReSeed Slideshow
   ========================================================= */

.reseed-slideshow {
  margin: 1.25rem 0 1.5rem;
}

.reseed-slide {
  display: none;
}

.reseed-slide.active {
  display: block;
}

.slide-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.slide-btn {
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--bg-card);
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.slide-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

.slide-counter {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .06em;
}

@media (max-width: 600px) {

  .slide-controls {
    flex-wrap: wrap;
  }

}


/* =========================================================
   Team Page
   ========================================================= */

.team-lead-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}

.team-lead-photo {
  min-height: 300px;
  display: grid;
  place-items: center;
  background: var(--bg-card2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.team-lead-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-lead-info h3 {
  font-size: 22px;
  margin-top: 6px;
  margin-bottom: 8px;
}

.research-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 1.5rem;
}

.research-team-grid .team-photo {
  min-height: 260px;
}

.team-info .meta {
  margin-bottom: 5px;
}

@media (max-width: 800px) {

  .team-lead-card {
    grid-template-columns: 1fr;
  }

  .team-lead-photo {
    min-height: 260px;
  }

  .research-team-grid {
    grid-template-columns: 1fr;
  }

}


/* =========================================================
   ReSeed logo in hero
   ========================================================= */

.hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}


.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.nav-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

/* ==========================================================
   TEAM PROFILE BLOCK
   Prototype-style horizontal profile card
   ========================================================== */

.team-profile {
  display: grid;

  grid-template-columns:
    minmax(280px, 36%)
    minmax(0, 1fr);

  gap: 0;

  margin: 32px 0 44px;

  border: 1px solid var(--border);
  border-radius: 10px;

  overflow: hidden;

  background: var(--card);
}


/* ==========================================================
   IMAGE / MEDIA
   ========================================================== */

.team-profile-media {
  grid-column: 1;
  grid-row: 1;

  min-height: 360px;

  background: var(--card2);
}


.team-profile-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;

  display: block;

  object-fit: cover;

  border: none;
  border-radius: 0;
}


.team-profile-placeholder {
  width: 100%;
  height: 100%;
  min-height: 360px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 0;

  background: var(--card2);

  color: var(--muted);

  font-family: "Space Mono", monospace;
  font-size: 11px;

  text-transform: uppercase;
  letter-spacing: .08em;
}


/* ==========================================================
   CONTENT
   ========================================================== */

.team-profile-content {
  grid-column: 2;
  grid-row: 1;

  padding: 44px 40px;
}


/* Small heading above name */

.team-profile-content::before {
  content: "RESEARCH TEAM / PROFILE";

  display: block;

  margin-bottom: 20px;

  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: .08em;

  text-transform: uppercase;

  color: var(--green);
}


/* ==========================================================
   NAME
   ========================================================== */

.team-profile-name {
  margin: 0 0 18px;

  font-family: "Space Mono", monospace;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;

  color: var(--text);
}


/* ==========================================================
   ROLE + ORGANIZATION
   ========================================================== */

.team-profile-role {
  margin-bottom: 8px;

  font-size: 18px;
  line-height: 1.5;

  color: var(--muted);
}


.team-profile-organization {
  margin-bottom: 26px;

  font-size: 17px;
  line-height: 1.5;

  color: var(--muted);
}


/* ==========================================================
   BIO
   ========================================================== */

.team-profile-bio {
  margin-top: 18px;
}


.team-profile-bio p {
  margin: 0 0 14px;

  font-size: 16px;
  line-height: 1.75;

  color: var(--text);
}


/* ==========================================================
   RESEARCH INTERESTS
   ========================================================== */

.team-profile-interests {
  margin-top: 24px;
  padding-top: 20px;

  border-top: 1px solid var(--border);
}


.team-profile-interests strong {
  display: block;

  margin-bottom: 8px;

  font-family: "Space Mono", monospace;
  font-size: 10px;

  text-transform: uppercase;
  letter-spacing: .07em;

  color: var(--green);
}


.team-profile-interests p {
  margin: 0;

  line-height: 1.7;

  color: var(--muted);
}


/* ==========================================================
   LINKS
   ========================================================== */

.team-profile-links {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin-top: 26px;
}


.team-profile-links a {
  padding: 8px 12px;

  border: 1px solid var(--border);
  border-radius: 6px;

  text-decoration: none;

  font-family: "Space Mono", monospace;
  font-size: 10px;

  color: var(--green);

  background: transparent;

  transition:
    background .18s ease,
    border-color .18s ease;
}


.team-profile-links a:hover {
  background: var(--card2);
  border-color: var(--green);
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 800px) {

  .team-profile {
    grid-template-columns: 1fr;
  }


  .team-profile-media {
    grid-column: 1;
    grid-row: 1;

    min-height: 280px;
  }


  .team-profile-media img {
    min-height: 280px;
    max-height: 420px;
  }


  .team-profile-placeholder {
    min-height: 280px;
  }


  .team-profile-content {
    grid-column: 1;
    grid-row: 2;

    padding: 30px 24px;
  }

}

/* ==========================================================
   BLOG POST CARD
   ========================================================== */

.blog-post-card {
  display: grid;

  grid-template-columns:
    220px
    minmax(0, 1fr);

  gap: 26px;

  margin: 24px 0;

  padding: 22px;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: var(--card);
}


.blog-post-thumbnail img {
  width: 100%;
  height: 160px;

  display: block;

  object-fit: cover;

  border-radius: 7px;
}


.blog-post-meta {
  display: flex;
  flex-wrap: wrap;

  gap: 8px 16px;

  margin-bottom: 10px;

  font-family: "Space Mono", monospace;
  font-size: 9px;

  letter-spacing: .05em;
  text-transform: uppercase;

  color: var(--muted);
}


.blog-post-title {
  margin: 0 0 10px;

  font-family: "Space Mono", monospace;
  font-size: 20px;
}


.blog-post-excerpt {
  margin: 0;

  line-height: 1.65;

  color: var(--muted);
}


.blog-tag-row {
  display: flex;
  flex-wrap: wrap;

  gap: 6px;

  margin-top: 14px;
}


.blog-tag {
  padding: 4px 8px;

  border-radius: 999px;

  background: var(--card2);

  font-family: "Space Mono", monospace;
  font-size: 9px;

  color: var(--green);
}


.blog-read-more {
  margin-top: 18px;
  padding: 0;

  border: none;
  background: none;

  cursor: pointer;

  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;

  color: var(--green);
}


.blog-read-more:hover {
  text-decoration: underline;
}


.blog-full-content {
  margin-top: 20px;
  padding-top: 18px;

  border-top: 1px solid var(--border);
}


.blog-full-content p {
  line-height: 1.75;
}



/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 800px) {

  .team-profile {
    grid-template-columns: 1fr;
  }


  .team-profile-media {
    max-width: 320px;
  }


  .blog-post-card {
    grid-template-columns: 1fr;
  }


  .blog-post-thumbnail img {
    height: auto;
    max-height: 280px;
  }

}



/* =========================================================
   PUBLIC IMAGE BLOCKS
   Keep uploaded content images readable and controlled
   ========================================================= */

.image-block {
  margin: 1.5rem 0;
}

.image-block img {
  display: block;

  width: auto;
  max-width: min(100%, 720px);

  height: auto;
  max-height: 520px;

  object-fit: contain;

  border-radius: 6px;
}

.image-block figcaption {
  margin-top: 8px;

  max-width: 720px;

  font-size: 0.9rem;
  line-height: 1.5;

  color: var(--muted);
}


/* Smaller screens */

@media (max-width: 760px) {

  .image-block img {
    max-width: 100%;
    max-height: none;
  }

}