@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,600&display=swap");

:root {
  --ink: #17201d;
  --muted: #64706b;
  --green: #24634e;
  --green-dark: #174535;
  --green-soft: #edf4ef;
  --paper: #fff;
  --canvas: #f5f7f3;
  --line: #dfe6e1;
  --shadow: 0 18px 50px rgba(30, 55, 44, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(197, 220, 205, 0.36), transparent 31rem),
    var(--canvas);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover,
a:focus {
  color: var(--green-dark);
}

strong,
papertitle {
  font-weight: 700;
}

.page,
.section-table {
  width: 100%;
  border: 0;
  border-spacing: 0;
  border-collapse: separate;
  table-layout: fixed;
}

.page {
  width: min(100% - 36px, 980px);
  margin: 28px auto 36px;
}

.page > tbody > tr > td {
  padding: 0;
}

/* Profile */

.page > tbody > tr > td > .section-table:first-child {
  overflow: hidden;
  border: 1px solid rgba(187, 204, 194, 0.8);
  border-radius: 24px;
  background:
    linear-gradient(125deg, rgba(240, 247, 242, 0.98), rgba(255, 255, 255, 0.98) 62%),
    var(--paper);
  box-shadow: var(--shadow);
}

.bio {
  width: 64%;
  padding: 42px;
  vertical-align: middle;
}

.bio .center:first-child {
  margin: 0 0 25px;
  text-align: left;
}

name {
  display: block;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(40px, 5vw, 54px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.bio > p {
  margin: 13px 0;
  color: #35403c;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px !important;
  text-align: left !important;
  font-size: 0;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid #c8d7ce;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.profile-links a:hover {
  border-color: #9eb9a9;
  background: #fff;
  transform: translateY(-1px);
}

.portrait-cell {
  width: 36%;
  padding: 26px 36px 26px 4px;
  vertical-align: middle;
  text-align: center;
}

.portrait {
  width: min(100%, 270px);
  aspect-ratio: 4 / 5;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  object-position: 38% center;
  border: 8px solid #fff;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(34, 62, 49, 0.18);
  transform: rotate(1.2deg);
}

/* Snapshot and news */

.at-a-glance {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--line);
  box-shadow: 0 10px 28px rgba(30, 55, 44, 0.04);
}

.focus-summary,
.stat {
  min-height: 104px;
  padding: 19px 22px;
  background: rgba(255, 255, 255, 0.88);
}

.focus-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.focus-summary > span,
.mini-heading > span {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.focus-summary p {
  max-width: 340px;
  margin: 5px 0 0;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat strong {
  color: var(--green);
  font-family: "Newsreader", Georgia, serif;
  font-size: 32px;
  line-height: 1;
}

.stat span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
}

.recent-highlights {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.68);
}

.mini-heading {
  align-self: center;
}

.mini-heading h2 {
  margin: 4px 0 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.highlight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.highlight-list article {
  position: relative;
  padding-left: 14px;
}

.highlight-list article::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 3px;
  border-radius: 4px;
  background: #bfd1c6;
}

.highlight-list time {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.highlight-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

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

/* Section headings */

.section-title {
  padding: 42px 4px 15px;
  vertical-align: middle;
}

heading {
  position: relative;
  display: inline-block;
  padding-left: 17px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

heading::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 5px;
  border-radius: 10px;
  background: var(--green);
}

/* Education */

.simple-list {
  display: block;
}

.simple-list tbody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.simple-list tr,
.simple-list td {
  display: block;
}

.simple-list td {
  min-height: 132px;
  padding: 24px 25px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
}

.simple-list papertitle {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 20px;
  line-height: 1.22;
}

/* Experience */

.experience-list {
  border-spacing: 0 9px;
}

.experience-list tr {
  filter: drop-shadow(0 8px 20px rgba(30, 55, 44, 0.04));
}

.experience-logo,
.experience-copy {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.experience-logo {
  width: 225px;
  padding: 17px 22px;
  border-left: 1px solid var(--line);
  border-radius: 17px 0 0 17px;
  vertical-align: middle;
}

.experience-logo img {
  width: 180px;
  height: 76px;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}

.experience-copy {
  padding: 22px 28px;
  border-right: 1px solid var(--line);
  border-radius: 0 17px 17px 0;
  color: var(--muted);
  vertical-align: middle;
}

.experience-copy papertitle {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 22px;
  line-height: 1.15;
}

/* Publications */

.publication-groups td {
  padding: 0;
}

.publication-groups h3 {
  margin: 18px 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.publication-list {
  overflow: hidden;
  margin: 0 0 32px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 32px rgba(30, 55, 44, 0.04);
}

.publication-item {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 25px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.publication-item:last-child {
  border-bottom: 0;
}

.paper-thumb {
  position: relative;
  width: 184px;
  height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 16px;
  border-radius: 13px;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.paper-thumb::after {
  content: "";
  position: absolute;
  top: -42px;
  right: -32px;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 18px rgba(255, 255, 255, 0.07),
    0 0 0 36px rgba(255, 255, 255, 0.05);
}

.paper-thumb span,
.paper-thumb small {
  position: relative;
  z-index: 1;
}

.paper-thumb span {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.paper-thumb small {
  margin-top: 7px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.82;
}

.paper-thumb.balance {
  background: linear-gradient(135deg, #d85e48, #ee9870);
}

.paper-thumb.funreason {
  background: linear-gradient(135deg, #247662, #62a589);
}

.paper-thumb.survey {
  background: linear-gradient(135deg, #9e7125, #d8aa4f);
}

.paper-thumb.ood {
  background: linear-gradient(135deg, #286b91, #67a0b8);
}

.paper-thumb.ebench {
  background: linear-gradient(135deg, #7555a0, #ae84c2);
}

.paper-thumb.janus {
  background: linear-gradient(135deg, #aa4f75, #d98eac);
}

.paper-thumb.cvpr {
  background: linear-gradient(135deg, #3d5863, #7696a4);
}

.paper-thumb.seed-report {
  background: linear-gradient(135deg, #3157e7, #7798f8);
}

.paper-thumb.entropy {
  background: linear-gradient(135deg, #4e6870, #91a9ab);
}

.publication-details {
  min-width: 0;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.publication-details papertitle {
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.22;
}

.publication-details a:hover papertitle {
  color: var(--green);
}

.publication-details p {
  margin: 7px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.publication-details em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

footer {
  margin-top: 42px;
  padding: 22px 0 6px;
  border-top: 1px solid var(--line);
  color: #8a948f;
  text-align: center;
}

footer p,
footer a {
  margin: 0;
  font-size: 11px;
}

@media (max-width: 720px) {
  .page {
    width: calc(100% - 24px);
    max-width: 580px;
    margin: 20px auto 34px;
    overflow: hidden;
  }

  .page,
  .page > tbody,
  .page > tbody > tr,
  .page > tbody > tr > td {
    display: block;
  }

  .page > tbody > tr > td > .section-table:first-child,
  .page > tbody > tr > td > .section-table:first-child tbody,
  .page > tbody > tr > td > .section-table:first-child tr,
  .bio,
  .portrait-cell {
    display: block;
    width: 100%;
  }

  .portrait-cell {
    padding: 30px 28px 0;
  }

  .portrait {
    width: min(78%, 255px);
  }

  .bio {
    padding: 35px 26px 32px;
  }

  .portrait-cell + * {
    display: none;
  }

  .page > tbody > tr > td > .section-table:first-child tr {
    display: flex;
    flex-direction: column-reverse;
  }

  name {
    font-size: 42px;
  }

  .at-a-glance {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 13px;
  }

  .focus-summary {
    grid-column: 1 / -1;
  }

  .focus-summary,
  .stat {
    min-height: 88px;
    padding: 16px;
  }

  .stat strong {
    font-size: 27px;
  }

  .recent-highlights {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 13px;
    padding: 19px;
  }

  .highlight-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-title {
    padding-top: 36px;
  }

  heading {
    font-size: 30px;
  }

  .simple-list tbody {
    grid-template-columns: 1fr;
  }

  .simple-list td,
  .experience-copy {
    overflow-wrap: anywhere;
  }

  .experience-list,
  .experience-list tbody,
  .experience-list tr,
  .experience-logo,
  .experience-copy {
    display: block;
    width: 100%;
  }

  .experience-list tr {
    margin-bottom: 13px;
  }

  .experience-logo {
    padding: 18px 22px 8px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 17px 17px 0 0;
  }

  .experience-logo img {
    width: 170px;
    height: 64px;
  }

  .experience-copy {
    padding: 8px 22px 20px;
    border-top: 0;
    border-left: 1px solid var(--line);
    border-radius: 0 0 17px 17px;
  }

  .publication-item {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 18px;
  }

  .paper-thumb {
    width: 100%;
    height: 122px;
  }
}

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

  * {
    transition: none !important;
  }
}
