:root {
  --ink: #17202a;
  --muted: #5a6573;
  --line: #d9e0e6;
  --paper: #f7f8f5;
  --white: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --gold: #b9842d;
  --coral: #b95745;
  --shadow: 0 22px 60px rgba(23, 32, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 248, 245, 0.9);
  border-bottom: 1px solid rgba(217, 224, 230, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav a:hover,
.text-link-row a:hover,
.contact-links a:hover {
  color: var(--teal);
}

.hero {
  min-height: 82vh;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 120px clamp(22px, 6vw, 84px) 70px;
  color: var(--white);
  background: #101820;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 120%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(0.9);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 18, 24, 0.92), rgba(12, 18, 24, 0.66) 45%, rgba(12, 18, 24, 0.2)),
    linear-gradient(0deg, rgba(12, 18, 24, 0.72), rgba(12, 18, 24, 0.08) 42%);
}

.hero-content {
  max-width: 820px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(4.4rem, 11vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 540px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2.2vw, 1.36rem);
}

.hero-actions,
.text-link-row,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions a,
.contact-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-weight: 700;
  border-radius: 6px;
}

.hero-actions a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.band {
  padding: 86px clamp(22px, 6vw, 84px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-heading.compact {
  margin-bottom: 16px;
}

h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  line-height: 1.25;
}

p {
  margin: 0;
  color: var(--muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.intro-grid > p {
  max-width: 820px;
  color: var(--ink);
  font-size: clamp(1.12rem, 2vw, 1.36rem);
  line-height: 1.75;
}

.facts {
  margin: 0;
  display: grid;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.facts div {
  display: grid;
  gap: 4px;
}

.facts dt {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.facts ul {
  margin: 0;
  padding-left: 18px;
}

.facts li + li {
  margin-top: 8px;
}

.research-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.research-list article {
  min-height: 230px;
  padding: 26px;
  background: var(--white);
}

.research-list article:nth-child(2) {
  border-top: 4px solid var(--teal);
}

.research-list article:nth-child(3) {
  border-top: 4px solid var(--gold);
}

.research-list article:nth-child(4) {
  border-top: 4px solid var(--coral);
}

.publication-list {
  max-width: 1060px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.publication-group {
  max-width: 1060px;
  margin-top: 34px;
}

.publication-group:first-of-type {
  margin-top: 0;
}

.publication-group h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--deep);
}

.publication-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 220px);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.publication-list.detailed li {
  grid-template-columns: 1fr;
  gap: 8px;
}

.publication-list.featured {
  margin-bottom: 26px;
}

.publication-list.featured li {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 18px 0;
}

.news-list {
  max-width: 980px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.news-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.news-list.featured {
  margin-bottom: 26px;
}

.news-list time {
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.news-list p {
  color: var(--ink);
  font-weight: 600;
}

.pub-title {
  font-weight: 700;
}

a.pub-title {
  color: var(--deep);
  text-decoration-color: var(--teal);
  text-underline-offset: 4px;
}

.pub-meta {
  color: var(--muted);
  font-weight: 600;
}

.pub-abstract {
  grid-column: 1 / -1;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
  opacity: 0;
  transition: max-height 0.28s ease, margin-top 0.28s ease, opacity 0.22s ease;
}

.publication-list li:hover .pub-abstract,
.publication-list li:focus-within .pub-abstract,
.publication-list li.abstract-open .pub-abstract {
  max-height: 520px;
  margin-top: 4px;
  opacity: 1;
}

.pub-abstract strong {
  color: var(--teal-dark);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-summary {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--deep);
  background: var(--deep);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.publication-page {
  padding-top: 72px;
}

.publication-hero {
  padding-bottom: 36px;
}

.publication-hero h1 {
  margin: 0 0 14px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.publication-hero p:last-child {
  max-width: 720px;
  color: var(--muted);
}

.publication-section {
  padding-top: 34px;
}

.publication-section h2 {
  margin: 0 0 20px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: 0;
}

.news-section h2 {
  margin: 0 0 20px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: 0;
}

.text-link-row a {
  color: var(--teal-dark);
  font-weight: 800;
  border-bottom: 2px solid rgba(15, 118, 110, 0.24);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 84px);
}

.split > div {
  padding-top: 28px;
  border-top: 4px solid var(--teal);
}

.split > div:last-child {
  border-top-color: var(--gold);
}

.teaching-list {
  display: grid;
  gap: 30px;
  max-width: 1060px;
}

.teaching-list article {
  padding-top: 24px;
  border-top: 4px solid var(--teal);
}

.teaching-list article:nth-child(2) {
  border-top-color: var(--gold);
}

.teaching-list h3 {
  margin: 0;
  font-size: 1.4rem;
}

.teaching-name {
  margin: 6px 0 20px;
  color: var(--muted);
  font-weight: 700;
}

.teaching-year {
  margin-top: 22px;
}

.teaching-year h4 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

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

.semester-grid.single {
  grid-template-columns: 1fr;
}

.semester-grid h5 {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.semester-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.semester-grid li + li {
  margin-top: 8px;
}

.contact-band {
  padding: 86px clamp(22px, 6vw, 84px);
  color: var(--white);
  background: var(--teal-dark);
}

.contact-content {
  max-width: 850px;
}

.contact-content p:not(.section-kicker) {
  max-width: 660px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-details {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 26px 0 0;
}

.contact-details div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-details dt {
  color: var(--gold);
  font-weight: 800;
}

.contact-details dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.contact-details span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.contact-links a {
  border-color: rgba(255, 255, 255, 0.28);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(22px, 6vw, 84px);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .intro-grid,
  .split,
  .publication-list li,
  .news-list li,
  .semester-grid {
    grid-template-columns: 1fr;
  }

  .contact-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .research-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 14px;
  }

  .nav {
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 76vh;
    padding-top: 100px;
  }

  .hero-media img {
    width: 100%;
    object-position: 68% 24%;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(12, 18, 24, 0.94), rgba(12, 18, 24, 0.72)),
      linear-gradient(0deg, rgba(12, 18, 24, 0.76), rgba(12, 18, 24, 0.14));
  }

  .hero h1 {
    font-size: clamp(4rem, 22vw, 6rem);
  }

  .band,
  .contact-band {
    padding-block: 62px;
  }

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

  .research-list article {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
