:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --ink: #1d2430;
  --muted: #5f697a;
  --line: #d9dee8;
  --line-strong: #c3ccd9;
  --link: #205dc4;
  --link-hover: #143d81;
  --accent-soft: #eef3fd;
  --shadow: 0 18px 48px rgba(19, 34, 68, 0.06);
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f9fafc 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  line-height: 1.7;
}

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

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

.site-frame {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--line);
}

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

.topbar-name:hover,
.topbar-name:focus-visible {
  color: var(--ink);
  text-decoration: none;
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.topbar-nav a {
  font-size: 0.96rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding-top: 28px;
}

.sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-photo {
  width: 112px;
  height: 112px;
  overflow: hidden;
  border: 1px solid #cad5e8;
  border-radius: 24px;
  background: #eef3fd;
  box-shadow: 0 8px 20px rgba(32, 93, 196, 0.08);
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
}

h1,
h2 {
  font-family: "IBM Plex Serif", serif;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.1;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.07rem;
  line-height: 1.35;
}

p,
li,
dd {
  color: var(--muted);
}

.title-line {
  margin-top: -4px;
  color: var(--ink);
  font-weight: 600;
}

.affiliation {
  margin: 0;
  font-size: 0.95rem;
}

.meta-list {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
}

.meta-list div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.meta-list dt {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-list dd {
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-top: 6px;
}

.link-group a {
  font-size: 0.95rem;
  font-weight: 500;
}

.content {
  min-width: 0;
}

.section + .section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.section p + p {
  margin-top: 14px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.section-heading p,
.section-note {
  margin: 0;
  font-size: 0.96rem;
}

.tag-list,
.news-list,
.plain-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 500;
}

.news-list li,
.plain-list li {
  margin-top: 10px;
}

.news-date {
  display: inline-block;
  min-width: 78px;
  margin-right: 8px;
  color: var(--ink);
  font-weight: 700;
}

.work-item + .work-item {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.authors,
.venue {
  margin-top: 4px;
  font-size: 0.95rem;
}

.authors {
  color: var(--ink);
  font-weight: 500;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 8px;
}

.resource-links a {
  font-size: 0.95rem;
  font-weight: 600;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.contact-links {
  margin-top: 16px;
}

@media (max-width: 920px) {
  .layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-frame {
    width: min(calc(100% - 24px), var(--content-width));
    padding-top: 20px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 18px;
  }

  .topbar-nav {
    gap: 10px 14px;
  }

  .sidebar {
    padding: 22px 20px;
  }

  .layout {
    gap: 28px;
  }

  .news-date {
    min-width: 0;
  }
}

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