@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-400.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-sans-500.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/dm-sans-600.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/dm-sans-700.ttf") format("truetype");
}

:root {
  --canvas: #f5f3ee;
  --surface: #fbfaf7;
  --ink: #20231f;
  --muted: #62665e;
  --line: #d8d7cf;
  --accent: #245b45;
  --accent-soft: #dce8e0;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 18%, rgba(36, 91, 69, 0.07), transparent 28rem),
    var(--canvas);
  font-family:
    "DM Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 2px;
}

.site-header,
main,
footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
}

nav a,
footer a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

nav a:hover,
footer a:hover {
  color: var(--accent);
}

.hero {
  min-height: min(700px, calc(100vh - 92px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(64px, 9vw, 120px);
  align-items: center;
  padding-block: 104px;
}

.eyebrow,
.section-number,
.publication-meta {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 24px 0 30px;
  font-family: inherit;
  font-size: clamp(4rem, 8vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.intro {
  max-width: 700px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  line-height: 1.65;
}

.hero-meta {
  margin: 0 0 36px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.text-link,
.paper-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.text-link {
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
}

.text-link span,
.paper-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateY(3px);
}

.paper-link:hover span {
  transform: translate(3px, -3px);
}

.portrait-wrap {
  width: min(100%, 280px);
  margin: 0 auto;
}

.portrait {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.section {
  padding-block: 112px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 56px;
}

h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.facts {
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--ink);
}

.facts div {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  gap: 32px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0;
}

.publication {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(251, 250, 247, 0.76);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.publication:hover {
  transform: translateY(-3px);
  border-color: #b5bdb4;
  box-shadow: 0 22px 55px rgba(37, 43, 35, 0.07);
}

.publication-meta {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-bottom: 26px;
}

.publication-content h3 {
  max-width: 800px;
  margin: 0 0 22px;
  font-family: inherit;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.authors {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.94rem;
}

.authors strong {
  color: var(--ink);
}

.abstract {
  max-width: 720px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 120px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-header {
    min-height: 76px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 58px;
    padding-block: 78px 88px;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    margin-top: 18px;
    font-size: clamp(3.5rem, 17vw, 5.6rem);
  }

  .portrait-wrap {
    width: min(64vw, 250px);
  }

  .section {
    padding-block: 82px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 48px;
  }

  .facts {
    width: 100%;
  }

  .facts div {
    grid-template-columns: minmax(100px, 0.4fr) minmax(0, 1fr);
    gap: 20px;
  }

  .publication-meta {
    margin-bottom: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
