:root {
  --page: #f4f7fb;
  --paper: #ffffff;
  --ink: #13233f;
  --body: #40526d;
  --muted: #617086;
  --line: #dce5f0;
  --line-strong: #c7d4e5;
  --link: #245eac;
  --link-hover: #173f7a;
  --accent-soft: #edf4fd;
  --accent-line: #8eb3e3;
  --content-width: 1120px;
  --shell-width: 1184px;
  --page-padding: clamp(1rem, 3vw, 2rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.25;
}

strong {
  color: var(--ink);
  font-weight: 650;
}

::selection {
  background: #d9e9ff;
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  width: min(var(--content-width), calc(100% - (var(--page-padding) * 2)));
  min-height: 3.875rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-name {
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-name:hover {
  color: var(--link);
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2rem);
  font-size: 0.875rem;
  font-weight: 520;
}

nav a {
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  color: var(--body);
}

nav a:hover {
  border-color: var(--accent-line);
  color: var(--link-hover);
  text-decoration: none;
}

.page {
  width: min(var(--shell-width), calc(100% - (var(--page-padding) * 2)));
  margin: 1.5rem auto;
}

.paper {
  padding: 1.75rem 2rem 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(35, 70, 117, 0.035);
}

.profile {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(2.5rem, 4vw, 3.25rem);
  padding: 0.25rem 0 2rem;
  align-items: start;
}

.profile-content {
  max-width: 48rem;
}

.profile-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  border: 1px solid #c9d8eb;
  border-radius: 6px;
  filter: none;
}

.role,
.section-kicker,
.publication-venue {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.role {
  margin-bottom: 0.6rem;
  color: var(--link);
}

.profile h1 {
  margin-bottom: 1.15rem;
  font-size: clamp(2.65rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.profile h1 span {
  margin-left: 0.45rem;
  color: var(--body);
  font-size: 0.4em;
  font-weight: 520;
  letter-spacing: 0;
  white-space: nowrap;
}

.profile-content > p:not(.role) {
  margin-bottom: 0.85rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  margin-top: 1.35rem;
}

.profile-links a {
  padding-bottom: 0.05rem;
  border-bottom: 1px solid var(--accent-line);
  font-size: 0.9rem;
}

.profile-links a:hover {
  border-color: var(--link);
  text-decoration: none;
}

.section {
  position: relative;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.section::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 3.25rem;
  border-top: 2px solid var(--accent-line);
  content: "";
}

.news {
  padding-block: 1.75rem;
}

.section-heading {
  align-self: start;
}

.section-kicker {
  margin-bottom: 0.4rem;
  color: var(--link);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.4vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.news-list {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0;
}

.news-list p {
  margin: 0;
}

.news-list time,
.timeline-date {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.timeline h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  line-height: 1.32;
  letter-spacing: -0.015em;
}

.timeline p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1.75rem;
}

.timeline-date {
  padding-top: 0.22rem;
}

.experience-heading {
  display: grid;
  grid-template-columns: 8.75rem minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

.experience-heading h3 {
  margin-bottom: 0.2rem;
}

.company-logo {
  width: 8.75rem;
  height: 2.25rem;
  object-fit: contain;
  object-position: left center;
}

.company-logo--noitom {
  height: auto;
}

.timeline-org {
  margin-top: -0.2rem;
  margin-bottom: 0 !important;
  color: var(--muted);
  font-size: 0.86rem !important;
}

.experience-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-keywords li {
  color: var(--body);
  font-size: 0.88rem;
}

.experience-keywords li:not(:last-child)::after {
  margin-left: 0.65rem;
  color: var(--line-strong);
  content: "·";
}

.education-list {
  gap: 1.25rem;
}

.publication-row {
  display: grid;
  grid-template-columns: minmax(280px, 32%) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.publication-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 698;
  object-fit: cover;
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}

.publication-content {
  min-width: 0;
  padding-top: 0.05rem;
}

.publication-row h3 {
  margin-bottom: 0.55rem;
  font-size: 1.18rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.publication-row p {
  color: var(--body);
  font-size: 0.92rem;
}

.publication-row .publication-venue {
  margin-bottom: 0.4rem;
  color: var(--link);
}

.publication-row .publication-authors {
  margin-bottom: 0.6rem;
  color: #586982;
  font-size: 0.87rem;
  line-height: 1.55;
}

.publication-summary {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.publication-links a {
  padding-bottom: 0.05rem;
  font-size: 0.82rem;
}

.publication-links a {
  border-bottom: 1px solid var(--accent-line);
}

.publication-links a:hover {
  border-color: var(--link);
  text-decoration: none;
}

.site-footer {
  display: flex;
  width: min(var(--content-width), calc(100% - (var(--page-padding) * 2)));
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
}

.site-footer p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

@media (max-width: 1060px) {
  .profile {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 2.5rem;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .section-heading {
    display: block;
  }

  .section-kicker {
    margin-bottom: 0.35rem;
  }
}

@media (max-width: 800px) {
  .header-inner {
    min-height: 3.8rem;
  }

  nav {
    gap: 0.85rem;
    font-size: 0.8rem;
  }

  .page {
    width: 100%;
    margin-top: 0;
    margin-bottom: 1rem;
  }

  .paper {
    padding: 2.25rem var(--page-padding);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .profile {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2rem;
  }

  .profile-photo {
    width: 100%;
  }

  .profile h1 {
    font-size: clamp(2.4rem, 7vw, 2.8rem);
  }

  .site-footer {
    width: 100%;
    padding-inline: var(--page-padding);
  }
}

@media (max-width: 700px) {
  .profile {
    grid-template-columns: 1fr;
    gap: 1.65rem;
  }

  .profile-photo {
    width: 100%;
    max-width: 28rem;
  }

  .profile-content {
    max-width: none;
  }

  .publication-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15.5px;
  }

  .header-inner {
    gap: 0.65rem;
  }

  nav {
    gap: 0.75rem;
    font-size: 0.75rem;
  }

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

  .experience-heading {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 0.85rem;
  }

  .company-logo {
    width: 7.5rem;
  }

  .news-list li {
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .section-heading {
    display: block;
  }

  .section-kicker {
    margin-bottom: 0.35rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 0.75rem;
  }

  .site-name {
    font-size: 0.98rem;
  }

  nav {
    gap: 0.65rem;
    font-size: 0.72rem;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }

  .page {
    width: 100%;
    margin: 0;
  }

  .paper {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

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