:root {
  --bg: #ffffff;
  --ink: #14111a;
  --muted: #5a5563;
  --faint: #8a8394;
  --border: #ece7f0;
  --accent: #a83dc0;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; }
nav { display: flex; gap: 24px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

/* Content */
main.wrap { padding-top: 72px; padding-bottom: 40px; }
section + section { margin-top: 64px; }

h1 {
  margin: 0;
  max-width: 620px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h2 {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.lead { margin: 20px 0 0; max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--muted); }

/* Grants */
.grants {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.grants li { padding: 20px 20px 20px 0; }
.grants li + li { padding-left: 20px; border-left: 1px solid var(--border); }
.grants .mark { height: 24px; display: flex; align-items: center; }
.grants .mark img { width: 22px; height: 22px; }
.grants .mark span { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.grants strong { display: block; margin-top: 12px; font-size: 15px; font-weight: 600; }
.grants small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--faint); }
@media (max-width: 560px) {
  .grants { grid-template-columns: 1fr; }
  .grants li, .grants li + li { padding: 16px 0; border-left: 0; }
  .grants li + li { border-top: 1px solid var(--border); }
}

/* Work link */
.work {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.work span { font-family: 'Instrument Serif', Georgia, serif; font-size: 28px; line-height: 1.2; }
.work small { display: block; font-size: 14px; color: var(--faint); }
.work .arrow { font-size: 20px; color: var(--accent); transition: transform 0.15s; }
.work:hover .arrow { transform: translateX(4px); }

/* Papers */
.papers { list-style: none; margin: 0; padding: 0; }
.papers li { padding: 18px 0; border-top: 1px solid var(--border); }
.papers li:last-child { border-bottom: 1px solid var(--border); }
.papers .title {
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.papers .title:hover { color: var(--accent); }
.papers .meta { margin-top: 4px; font-size: 14px; color: var(--faint); }
.papers .desc { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.papers .links { margin-top: 8px; display: flex; gap: 16px; font-size: 14px; }
.papers .links a { color: var(--accent); text-decoration: none; }
.papers .links a:hover { text-decoration: underline; }

.more {
  display: inline-block;
  margin-top: 20px;
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
}
.more:hover { text-decoration: underline; }

/* Footer */
footer { margin-top: 56px; }
footer .wrap {
  width: calc(100% - 40px);
  max-width: 680px;
  padding-left: 0;
  padding-right: 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--faint);
}
footer .contact { display: flex; flex-wrap: wrap; gap: 20px; }
footer .contact a { color: var(--ink); text-decoration: none; }
footer .contact a:hover { color: var(--accent); }
