/* =========================
   PROFILE PAGE
========================= */

.profile-page {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 82px 0 120px;
}


/* =========================
   PAGE HEADER
========================= */

.profile-page-header {
  margin-bottom: 48px;
}

.profile-page-header h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}


/* =========================
   PROFILE INTRO
========================= */

.profile-intro {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 54px;
  align-items: start;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line);
}

.profile-intro-photo {
  background: var(--surface);
}

.profile-intro-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.profile-intro-content h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* English degree displayed beside English name */
.profile-degree-en {
  margin-left: 0.7em;
  font-size: 0.45em;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: middle;
}

/* Japanese name */
.profile-name-ja {
  margin: 8px 0 26px;
  color: var(--muted);
  font-size: 1rem;
}

/* Japanese degree displayed beside Japanese name */
.profile-degree-ja {
  margin-left: 1em;
}

/* Position and affiliation */
.profile-position {
  margin: 0 0 28px;
  font-weight: 700;
  line-height: 1.6;
}

/* Japanese position and affiliation */
.profile-position-ja {
  color: var(--muted);
  font-weight: 400;
}

.profile-summary {
  max-width: 680px;
  margin: 0;
  color: #454a51;
  font-size: 1.02rem;
}

.profile-external-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.profile-external-links a {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.profile-external-links a:hover,
.profile-external-links a:focus-visible {
  color: var(--accent-dark);
}


/* =========================
   SECTIONS
========================= */

.profile-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.profile-section:last-child {
  border-bottom: 0;
}

.profile-section-heading h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.3;
}

.profile-section-body > p:first-child {
  margin-top: 0;
}

.profile-section-body > p:last-child {
  margin-bottom: 0;
}


/* =========================
   KEYWORDS
========================= */

.research-keywords-label {
  margin: 28px 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.research-keywords {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.research-keywords li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}


/* =========================
   HISTORY
========================= */

.profile-history-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.profile-history-item:first-child {
  padding-top: 0;
}

.profile-history-item:last-child {
  border-bottom: 0;
}

.profile-history-year {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.profile-history-item p {
  margin: 3px 0 0;
  color: var(--muted);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 800px) {

  .profile-page {
    padding-top: 56px;
  }

  .profile-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .profile-intro-photo {
    max-width: 320px;
  }

  .profile-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {

  .profile-page {
    width: 88%;
  }

  .profile-history-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
