:root {
  --bg: #f5f8f2;
  --surface: #ffffff;
  --surface-soft: #e7f3ea;
  --ink: #173024;
  --muted: #5b6d61;
  --line: #d7e4d9;
  --navy: #163226;
  --teal: #2f8a4e;
  --teal-dark: #246b3d;
  --sand: #e7eedc;
  --shadow: 0 18px 50px rgb(22 50 38 / 8%);
  --radius: 24px;
  --shell: min(1440px, calc(100% - 48px));
  --prose: min(78ch, 100%);
  --article-prose: min(92ch, 100%);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgb(47 138 78 / 14%), transparent 32rem),
    radial-gradient(circle at 92% 8%, rgb(231 238 220 / 70%), transparent 26rem),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
.brand,
.site-nav,
.eyebrow,
.kicker,
.meta,
.section-heading,
.info-link,
.text-link,
.pagination,
.publication-links,
.scientist-email {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

a {
  color: inherit;
  text-decoration-color: rgb(47 138 78 / 40%);
  text-underline-offset: 0.18em;
}

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

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  background: transparent;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: var(--teal);
  color: white;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand small {
  max-width: 360px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav .admin-link {
  background: white;
  box-shadow: 0 1px 0 var(--line);
}

main {
  width: var(--shell);
  margin-inline: auto;
}

.hero,
.page-hero,
.article-detail,
.section {
  margin-top: 32px;
}

.page-hero,
.article-detail,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 84%);
  box-shadow: var(--shadow);
}

.hero h1,
.page-hero h1,
.article-header h1 {
  margin: 0;
  max-width: none;
  color: var(--navy);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero {
  max-width: none;
  padding: 12px 0 8px;
}

.hero-intro {
  margin-top: 18px;
  max-width: var(--prose);
}

.eyebrow,
.kicker,
.meta {
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta {
  color: var(--muted);
  letter-spacing: 0.06em;
}

.meta span::before {
  content: "/";
  margin: 0 8px;
  color: var(--line);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 28px;
  margin-top: 28px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgb(47 138 78 / 45%);
  padding-bottom: 2px;
}

.text-link::after {
  content: "→";
  font-weight: 500;
}

.text-link:hover {
  color: var(--navy);
  border-bottom-color: currentColor;
}

.text-link-quiet {
  color: var(--muted);
  border-bottom-color: rgb(91 109 97 / 28%);
  font-weight: 650;
}

.text-link-quiet:hover {
  color: var(--teal-dark);
}

.section {
  padding: 18px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
}

.section-heading a {
  font-weight: 700;
  text-decoration: none;
}

.card-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card,
.info-link,
.scientist-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgb(22 50 38 / 6%);
}

.article-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-card-body {
  padding: 22px;
}

.article-card h3 {
  margin: 6px 0 10px;
  font-size: 1.45rem;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.article-card h3 a,
.info-link,
.scientist-card h3 a {
  text-decoration: none;
}

.article-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.info-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  font-weight: 800;
}

.info-link small {
  color: var(--muted);
  font-weight: 700;
}

.scientist-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.scientist-card-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.scientist-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.scientist-card .meta {
  margin: 0;
}

.scientist-card h3 {
  margin: 6px 0 10px;
  font-size: 1.45rem;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.scientist-card p {
  margin: 0;
  color: var(--muted);
}

.scientist-email {
  margin-top: auto;
  padding-top: 16px;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.scientist-email:hover {
  color: var(--navy);
}

.scientist-hero {
  display: flex;
  align-items: start;
  gap: clamp(20px, 4vw, 40px);
}

.scientist-photo {
  width: min(180px, 38vw);
  height: min(180px, 38vw);
  flex-shrink: 0;
  border-radius: 22px;
  object-fit: cover;
}

.scientist-hero-copy {
  min-width: 0;
}

.page-hero,
.article-detail {
  width: 100%;
  max-width: none;
  padding: clamp(28px, 4vw, 56px);
}

.page-hero p,
.lede {
  max-width: var(--prose);
  color: var(--muted);
  font-size: 1.18rem;
}

.article-header {
  margin-bottom: 28px;
  max-width: none;
}

.article-header .lede {
  max-width: var(--article-prose);
}

.article-hero-image {
  width: 100%;
  max-height: min(640px, 70vh);
  border-radius: 22px;
  object-fit: cover;
  margin: 28px 0;
}

.prose {
  max-width: var(--prose);
}

.article-body {
  max-width: var(--article-prose);
}

.prose,
.article-body {
  color: #2a4334;
  font-size: 1.12rem;
}

.prose h2,
.prose h3 {
  margin-top: 1.8em;
  color: var(--navy);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  letter-spacing: -0.03em;
}

.prose a {
  color: var(--teal-dark);
  font-weight: 700;
}

.prose blockquote {
  margin-left: 0;
  border-left: 4px solid var(--teal);
  padding-left: 20px;
  color: var(--muted);
}

.empty-state {
  padding: 36px;
  color: var(--muted);
}

.empty-state h2,
.empty-state h3 {
  margin-top: 0;
  color: var(--navy);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 28px;
  color: var(--muted);
  font-weight: 700;
}

.pagination a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 9px 14px;
  color: var(--navy);
  text-decoration: none;
}

.publication-list {
  display: grid;
  gap: 14px;
}

.publication-item {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  padding: 22px 24px;
  box-shadow: 0 10px 28px rgb(22 50 38 / 6%);
}

.publication-item h3 {
  margin: 6px 0 10px;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.publication-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-weight: 700;
}

.publication-links a {
  color: var(--teal-dark);
  text-decoration: none;
}

.publication-abstract {
  margin-top: 14px;
}

.publication-abstract summary {
  cursor: pointer;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.publication-abstract div {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .site-header-inner,
  .site-footer-inner {
    display: block;
  }

  .site-nav {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .card-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .scientist-hero {
    flex-direction: column;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
