@font-face {
  font-family: "Research Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/research/fraunces-normal-34c50e32.woff2") format("woff2");
}

@font-face {
  font-family: "Research Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/research/fraunces-italic-77635c71.woff2") format("woff2");
}

@font-face {
  font-family: "Research Space Grotesk";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/research/space-grotesk-normal-dfda626c.woff2") format("woff2");
}

.page-container.research-atlas {
  --font-display: "Research Fraunces", Fraunces, Georgia, serif;
  font-family: "Research Space Grotesk", var(--font-body);
  max-width: 1100px;
  padding-top: 0;
  padding-bottom: 4.5rem;
}

.research-atlas h1,
.research-atlas h2 {
  font-family: "Research Fraunces", var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.research-intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 2rem;
  padding: 4.5rem 0 4rem;
}

.research-intro h1 {
  font-size: clamp(3.25rem, 6.6vw, 5.5rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.research-intro em { color: var(--oxblood); }
.dark .research-intro em { color: #df9385; }

.research-intro-copy p {
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1.7;
}

.research-jump {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  margin-top: 1.5rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.875rem;
}

.research-jump svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
.research-atlas a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.research-atlas a:hover { color: var(--oxblood); }
.dark .research-atlas a:hover { color: #df9385; }

.research-projects { scroll-margin-top: 6rem; }
.research-project-section { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.research-project-section + .research-project-section { margin-top: 3.5rem; }
.research-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.research-section-heading h2 { font-size: 2.25rem; line-height: 1.15; }
.research-section-heading p { color: var(--ink-soft); font-size: 0.8125rem; }
.research-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.research-preview-notice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-size: 0.875rem; }
.research-preview-notice .research-jump { margin-top: 0; }
.research-empty { border-top: 1px solid var(--line); padding-top: 2rem; color: var(--ink-soft); }
.dark .research-atlas .text-oxblood { color: #df9385; }

@media (max-width: 639px) {
  .page-container.research-atlas { padding-bottom: 3rem; }
  .research-intro { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 0 2rem; }
  .research-intro-copy p { font-size: 1rem; }
  .research-jump { margin-top: 1rem; }
  .research-section-heading { align-items: start; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
  .research-pair { grid-template-columns: 1fr; gap: 2.5rem; }
  .research-project-section + .research-project-section { margin-top: 2.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .research-jump { transition: color 150ms ease-out; }
  .research-jump:active { opacity: 0.7; }
}

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