:root {
  --nature-ink: #17231d;
  --nature-muted: #65746b;
  --nature-forest: #1f6f55;
  --nature-deep: #123c31;
  --nature-moss: #8aa767;
  --nature-clay: #b45d38;
  --nature-mist: #edf5f0;
  --nature-paper: #fffdf8;
  --nature-line: #dbe4da;
  --nature-shadow: 0 18px 45px rgba(23, 35, 29, 0.09);
}

html {
  scroll-padding-top: 92px;
}

body {
  background:
    linear-gradient(180deg, rgba(237, 245, 240, 0.72) 0, rgba(255, 253, 248, 0) 430px),
    var(--nature-paper);
  color: var(--nature-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--nature-forest);
  text-underline-offset: 0.18em;
}

.masthead {
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 1px solid rgba(219, 228, 218, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(23, 35, 29, 0.04);
}

.masthead__inner-wrap {
  padding: 0.82rem 1rem;
}

.masthead__menu-item a {
  color: var(--nature-muted);
  font-weight: 650;
}

.masthead__menu-item a:hover {
  color: var(--nature-deep);
}

.masthead__menu-item--lg a {
  color: var(--nature-deep);
}

#main {
  max-width: 1180px;
  margin-top: 2.25rem;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.sidebar {
  border: 1px solid var(--nature-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--nature-shadow);
  padding: 1rem;
}

.author__avatar img {
  border: 3px solid #fff !important;
  box-shadow: 0 14px 34px rgba(23, 35, 29, 0.13);
}

.author__name {
  color: var(--nature-deep);
  font-weight: 800;
}

.author__bio,
.sidebar p,
.sidebar li {
  color: var(--nature-muted);
}

.author__urls a {
  border-radius: 8px;
  padding: 0.32rem 0.45rem;
}

.author__urls a:hover {
  background: var(--nature-mist);
  color: var(--nature-deep);
  text-decoration: none;
}

.page {
  color: var(--nature-ink);
}

.page__content {
  font-size: 1.02rem;
}

.page__content h1 {
  border-bottom: 0;
  margin: 2.4rem 0 1rem;
  color: var(--nature-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  letter-spacing: 0;
  line-height: 1.15;
}

.page__content h1::after {
  content: "";
  display: block;
  width: 76px;
  height: 3px;
  margin-top: 0.65rem;
  background: linear-gradient(90deg, var(--nature-forest), var(--nature-moss));
  border-radius: 999px;
}

.page__content h2,
.page__content h3 {
  color: var(--nature-deep);
}

.page__content p,
.page__content li {
  line-height: 1.72;
}

.page__content img {
  border-radius: 12px;
}

.nature-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 2.25rem;
  align-items: center;
  margin: 0 0 2.2rem;
  padding: 2.1rem;
  border: 1px solid rgba(219, 228, 218, 0.95);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(237, 245, 240, 0.82)),
    var(--nature-paper);
  box-shadow: var(--nature-shadow);
}

.nature-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--nature-clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nature-hero h1 {
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
  color: var(--nature-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5vw, 4.7rem);
  line-height: 0.98;
}

.nature-hero h1::after {
  display: none;
}

.nature-hero .lead {
  margin-bottom: 1.25rem;
  color: #314139;
  font-size: 1.08rem;
}

.nature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: 1.1rem;
}

.nature-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.58rem 0.86rem;
  border-radius: 8px;
  border: 1px solid var(--nature-line);
  background: #fff;
  color: var(--nature-deep) !important;
  font-weight: 750;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nature-button.primary {
  border-color: var(--nature-forest);
  background: var(--nature-forest);
  color: #fff !important;
}

.nature-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(23, 35, 29, 0.12);
}

.nature-hero-visual {
  margin: 0;
  justify-self: stretch;
}

.nature-hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f7fbf7;
  border: 1px solid var(--nature-line);
  box-shadow: 0 16px 36px rgba(23, 35, 29, 0.1);
}

@media (min-width: 1100px) {
  .nature-hero-visual {
    transform: scale(1.08);
    transform-origin: center right;
  }
}

.nature-hero-visual figcaption {
  margin-top: 0.55rem;
  color: var(--nature-muted);
  font-size: 0.85rem;
  text-align: center;
}

.research-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1rem;
}

.research-focus-grid section {
  min-height: 164px;
  border: 1px solid var(--nature-line);
  border-radius: 14px;
  padding: 1.1rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 35, 29, 0.06);
}

.research-focus-grid section::before {
  content: "";
  display: block;
  width: 38px;
  height: 4px;
  margin-bottom: 0.85rem;
  background: var(--nature-moss);
  border-radius: 999px;
}

.research-focus-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.research-focus-grid p {
  margin: 0;
  color: var(--nature-muted);
  font-size: 0.93rem;
}

.research-keywords {
  border-left: 4px solid var(--nature-forest);
  margin: 1.25rem 0;
  padding: 0.8rem 1rem;
  border-radius: 0 10px 10px 0;
  background: var(--nature-mist);
  color: var(--nature-deep);
  font-weight: 700;
}

.opportunity-callout {
  margin: 1.35rem 0 1.8rem;
  border: 1px solid rgba(180, 93, 56, 0.28);
  border-left: 4px solid var(--nature-clay);
  border-radius: 0 14px 14px 0;
  padding: 1rem 1.15rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 239, 0.74)),
    #fff;
  box-shadow: 0 12px 28px rgba(23, 35, 29, 0.06);
}

.opportunity-callout.compact {
  margin-top: 1.15rem;
}

.opportunity-callout p:last-child {
  margin-bottom: 0;
  color: #3b4a42;
}

.project-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.6rem;
}

.project-overview-grid article {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  border: 1px solid var(--nature-line);
  border-radius: 14px;
  padding: 1.2rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 35, 29, 0.06);
}

.project-kicker {
  margin: 0 0 0.55rem;
  color: var(--nature-clay);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-overview-grid h3 {
  margin: 0 0 0.62rem;
  color: var(--nature-deep);
  font-size: 1.18rem;
  line-height: 1.25;
}

.project-overview-grid p:not(.project-kicker) {
  margin: 0 0 1rem;
  color: var(--nature-muted);
}

.project-status {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 0.85rem !important;
  border: 1px solid rgba(138, 167, 103, 0.42);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  background: rgba(237, 245, 240, 0.72);
  color: var(--nature-deep) !important;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.project-overview-grid a {
  margin-top: auto;
  font-weight: 750;
  text-decoration: none;
}

.home-synthesis {
  margin: 1.8rem 0 1.3rem;
  border: 1px solid var(--nature-line);
  border-radius: 16px;
  padding: 1.35rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(237, 245, 240, 0.68)),
    #fff;
  box-shadow: 0 14px 34px rgba(23, 35, 29, 0.07);
}

.home-synthesis h2 {
  margin: 0 0 0.7rem;
  color: var(--nature-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  line-height: 1.2;
}

.home-synthesis p:last-child {
  margin-bottom: 0;
  color: var(--nature-muted);
}

.research-framework {
  margin: 1.8rem 0 1.3rem;
  border: 1px solid var(--nature-line);
  border-radius: 16px;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(237, 245, 240, 0.68)),
    #fff;
  box-shadow: 0 14px 34px rgba(23, 35, 29, 0.07);
}

.research-framework h2 {
  margin: 0 0 1rem;
  color: var(--nature-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  line-height: 1.2;
}

.framework-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.framework-flow article {
  position: relative;
  border: 1px solid rgba(219, 228, 218, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  padding: 1rem;
}

.framework-flow article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -0.58rem;
  width: 0.58rem;
  height: 2px;
  background: var(--nature-moss);
}

.framework-flow span,
.paper-year {
  color: var(--nature-clay);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.framework-flow h3 {
  margin: 0.45rem 0 0.45rem;
  font-size: 1rem;
}

.framework-flow p {
  margin: 0;
  color: var(--nature-muted);
  font-size: 0.9rem;
}

.news-list {
  display: grid;
  gap: 0.72rem;
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

.news-list li {
  border-left: 3px solid var(--nature-moss);
  border-radius: 0 10px 10px 0;
  background: #fff;
  padding: 0.8rem 1rem;
  box-shadow: 0 8px 20px rgba(23, 35, 29, 0.05);
}

.publication-note {
  border: 1px solid var(--nature-line);
  border-radius: 12px;
  background: var(--nature-mist);
  padding: 0.9rem 1rem;
  color: var(--nature-deep);
}

.selected-paper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.1rem 0 1.8rem;
}

.selected-paper-grid article {
  display: flex;
  min-height: 228px;
  flex-direction: column;
  border: 1px solid var(--nature-line);
  border-radius: 14px;
  background: #fff;
  padding: 1.1rem;
  box-shadow: 0 12px 28px rgba(23, 35, 29, 0.06);
}

.selected-paper-grid h3 {
  margin: 0.45rem 0 0.5rem;
  font-size: 1.08rem;
}

.selected-paper-grid p {
  color: var(--nature-muted);
}

.selected-paper-grid a {
  margin-top: auto;
  font-weight: 750;
  text-decoration: none;
}

.page__content ul li {
  margin-bottom: 0.55rem;
}

.life-grid {
  gap: 18px !important;
}

.life-grid figure {
  border: 1px solid var(--nature-line);
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 12px 28px rgba(23, 35, 29, 0.07);
}

.life-grid figcaption {
  color: var(--nature-muted);
}

.life-grid img {
  object-fit: cover;
}

@media (max-width: 920px) {
  .nature-hero {
    grid-template-columns: 1fr;
    padding: 1.35rem;
  }

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

  .project-overview-grid,
  .framework-flow,
  .selected-paper-grid {
    grid-template-columns: 1fr;
  }

  .framework-flow article:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -0.5rem;
    left: 1.1rem;
    width: 2px;
    height: 0.5rem;
  }
}

@media (max-width: 700px) {
  #main {
    margin-top: 1rem;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .sidebar {
    border-radius: 12px;
  }

  .nature-actions {
    display: grid;
  }

  .nature-button {
    justify-content: center;
  }
}
