:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #24292f;
  background: #fbfcfa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 85% 0, #eef4ed 0, transparent 32rem); }
a { color: #235c9c; text-decoration: none; text-underline-offset: 0.2em; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #235c9c; outline-offset: 4px; border-radius: 1px; }
.person-link { white-space: nowrap; }
p, figure { margin: 0; }
strong { font-weight: 600; }

.page { width: min(900px, 100%); margin: 0 auto; padding: 76px 30px 28px; }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 212px; align-items: start; gap: 52px; margin-bottom: 50px; }
h1 { margin: 0 0 1px; color: #192129; font-size: 34px; font-weight: 600; line-height: 1.3; letter-spacing: -1px; }
h1 span { color: #626971; font-size: 0.76em; font-weight: 400; letter-spacing: -0.3px; }
.role { color: #626971; font-size: 14px; margin-bottom: 23px; }
.introduction > p:not(.role) { margin-bottom: 15px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; font-size: 15px; }
.contact > span { color: #b2b6bc; }
.profile-visual { position: relative; margin-top: 8px; }
.portrait { height: 282px; overflow: hidden; border-radius: 3px; background: #e6eae6; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 64% 73%; transform: scale(1.7); transform-origin: 64% 73%; }
.little-friend { position: absolute; right: -28px; bottom: -35px; z-index: 1; }
.little-friend summary { display: flex; flex-direction: column; align-items: center; width: 72px; padding: 3px 4px 5px; border-radius: 10px; cursor: pointer; list-style: none; color: #536b5b; }
.little-friend summary::-webkit-details-marker { display: none; }
.little-friend summary::marker { content: ""; }
.little-friend summary:hover { background: #edf3eacc; }
.little-friend summary:focus-visible { outline: 2px solid #235c9c; outline-offset: 3px; }
.walker { display: block; width: 64px; height: 96px; object-fit: contain; transform-origin: 50% 85%; }
.little-friend[open] .walker { animation: greet-hello 0.9s ease-in-out; }
.friend-label { font-size: 11px; line-height: 1.3; }
.friend-greeting { position: absolute; right: 0; bottom: 122px; padding: 4px 10px; border: 1px solid #dce6da; border-radius: 9px; background: #fbfcfa; color: #435b48; font-size: 12px; white-space: nowrap; }

@keyframes greet-hello {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-3px) rotate(-3deg); }
  70% { transform: translateY(-1px) rotate(3deg); }
}

section { margin-bottom: 32px; }
h2 { margin: 0 0 13px; color: #192129; font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -0.3px; }
.academic-background { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; margin-bottom: 36px; }
.academic-background section { margin-bottom: 0; }
.interests { margin: 0; padding-left: 19px; }
.interests li { padding: 2px 0; }
.degree + .degree { margin-top: 19px; }
.institution { color: #626971; font-size: 14px; line-height: 1.6; margin: 2px 0; }
.entry { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.entry + .entry { margin-top: 18px; }
h3 { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.6; }
.detail { color: #626971; font-size: 14px; }
.date { flex-shrink: 0; color: #626971; font-size: 14px; font-variant-numeric: tabular-nums; }
.awards { list-style: none; margin: 0; padding: 0; }
.awards li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 3px 0; }
.beyond { margin-top: 3px; margin-bottom: 43px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-top: 18px; border-top: 1px solid #e9eaec; color: #737981; font-size: 12px; }
.skip-link { position: absolute; top: 8px; left: 12px; padding: 6px 10px; background: #fff; transform: translateY(-160%); z-index: 1; }
.skip-link:focus { transform: translateY(0); }

@media (max-width: 720px) {
  .page { padding: 44px 24px 24px; }
  .profile { grid-template-columns: minmax(0, 1fr) 164px; gap: 28px; margin-bottom: 38px; }
  .portrait { height: 220px; }
  h1 { font-size: 30px; }
  .academic-background { gap: 28px; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .entry { display: block; }
  .entry .date { margin-top: 5px; }
}

@media (max-width: 520px) {
  .page { padding: 32px 22px 22px; }
  .profile { display: flex; flex-direction: column; gap: 26px; }
  .profile-visual { order: -1; width: 132px; margin: 0; }
  .portrait { height: 166px; }
  .little-friend { right: -46px; bottom: -17px; }
  h1 { font-size: 31px; }
  .role { margin-top: 4px; margin-bottom: 19px; }
  .contact { margin-top: 18px; }
  .academic-background { grid-template-columns: minmax(0, 1fr); gap: 29px; margin-bottom: 29px; }
  section { margin-bottom: 29px; }
  .awards li { gap: 12px; padding: 5px 0; }
  .awards .date { white-space: nowrap; }
  .beyond { margin-bottom: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .little-friend[open] .walker { animation: none; }
}

@media print {
  :root, body { background: #fff; }
  .page { padding: 0; max-width: none; }
  .skip-link, .little-friend { display: none; }
  .profile { margin-bottom: 26px; }
  section { break-inside: avoid; margin-bottom: 20px; }
  a { color: inherit; }
  footer { margin-top: 20px; }
}
