:root {
  --ink: #111827;
  --muted: #475569;
  --soft: #f8fafc;
  --line: #d9e2ec;
  --teal: #0f766e;
  --teal-soft: #e6fffb;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --surface: #ffffff;
  --max: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #115e59;
}

.navbar {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.navbar-title {
  font-weight: 750;
  letter-spacing: 0;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 620;
}

.homepage .quarto-title-block {
  display: none;
}

.custom-page .quarto-title-block {
  display: none;
}

.content-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.86fr);
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6.4vw, 5.9rem);
  line-height: 0.95;
  font-weight: 820;
  letter-spacing: 0;
}

.hero .subtitle {
  margin: 1.1rem 0 0;
  color: var(--teal);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 720;
}

.hero .summary {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.72;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  color: #ffffff;
  background: #0f172a;
}

.button.secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover {
  color: var(--ink);
  border-color: var(--teal);
}

.hero-visual {
  position: relative;
}

.research-map {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.34rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 0.83rem;
  font-weight: 680;
}

.band {
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 3.25rem 0;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.1rem 1.25rem;
}

.section.compact {
  padding-top: 1.8rem;
}

.section h2 {
  margin-top: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.1;
  font-weight: 780;
}

.section-lead {
  color: var(--muted);
  line-height: 1.72;
  max-width: 760px;
  font-size: 1.02rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 1.2rem;
}

.card h3,
.entry h3 {
  margin: 0 0 0.48rem;
  font-size: 1.08rem;
  line-height: 1.32;
  font-weight: 760;
}

.card p,
.entry p {
  color: var(--muted);
  line-height: 1.63;
}

.card p:last-child,
.entry p:last-child {
  margin-bottom: 0;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  margin-top: 2rem;
}

.metric {
  background: #ffffff;
  padding: 1.2rem;
}

.metric strong {
  display: block;
  font-size: 1.1rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.88rem;
}

.page-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 1.25rem;
}

.page-intro h1 {
  margin-bottom: 0.85rem;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1;
  font-weight: 820;
}

.page-intro p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.04rem;
}

.entry-list {
  display: grid;
  gap: 0.85rem;
}

.entry {
  border-left: 4px solid var(--teal);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.15rem 1.25rem;
  background: #ffffff;
}

.entry .meta {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.34rem 0.62rem;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.links span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.34rem 0.62rem;
  color: #64748b;
  background: var(--soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 0.9rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  color: var(--teal);
  font-weight: 750;
}

.timeline-item h3 {
  margin: 0;
  font-size: 1.05rem;
}

.timeline-item p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--amber-soft);
  padding: 1rem 1.1rem;
  color: #713f12;
}

.callout-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  background: #ffffff;
}

.callout-strip p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
  }

  .grid.three,
  .grid.two,
  .metric-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero,
  .section,
  .page-intro {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero h1,
  .page-intro h1 {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .button {
    width: 100%;
  }
}
