:root {
  color-scheme: light;
  --body: #2c3e50;
  --heading: #1a202c;
  --link: darkblue;
  --border: #edf2f7;
  --latin: Arial, "Liberation Sans", Arimo, sans-serif;
  --korean: Pretendard, Arial, sans-serif;
}

html, [lang="en"], [lang="fi"] { font-family: var(--latin); }
[lang="ko"] { font-family: var(--korean); }

body {
  margin: 0;
  padding: 0 20px 40px;
  color: var(--body);
  background: #fcfcfc;
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
main, footer { max-width: 850px; margin-inline: auto; }
main { padding-top: 40px; }
.languages + main { padding-top: 0; }
html[lang="ko"] body { word-break: keep-all; }

h1 {
  margin: .67em 0 40px;
  color: var(--heading);
  font-size: 2.2rem;
  line-height: 1.4;
  text-align: center;
}

.native-name {
  color: #718096;
  font-size: 1.4rem;
  font-weight: 400;
  white-space: nowrap;
}

.profile {
  float: right;
  width: 270px;
  max-width: 100%;
  margin: 0 0 20px 30px;
  text-align: center;
}

.profile > img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
}

.portrait-placeholder {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  background: #fff;
  color: #596a80;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

figcaption {
  margin-top: .65rem;
  font-size: .8125rem;
  font-style: italic;
  line-height: 1.45;
  color: #596a80;
}

.languages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .25rem;
  padding-block: .5rem;
  color: #596a80;
  font-size: .875rem;
}
.languages a { padding: .25rem; }
.languages [aria-current="page"] { background: var(--border); border-radius: .2rem; }

hr {
  height: 1px;
  margin: 40px 0;
  border: 0;
  background: #e2e8f0;
}

a, a:visited {
  color: var(--link);
  text-decoration: none;
  font-weight: 400;
}

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

.interview-choice { display: inline-block; }
#interview-trigger {
  anchor-name: --interview;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  cursor: pointer;
}
#interview-options {
  position: fixed;
  inset: auto;
  top: anchor(--interview bottom);
  left: anchor(--interview left);
  z-index: 2;
  box-sizing: border-box;
  width: min(10.5rem, calc(100vw - 1rem));
  margin: 0;
  padding: .25rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(0 0 0 / 12%);
  font-size: .9rem;
  line-height: 1.5;
}
#interview-options a { display: block; padding: .35rem .5rem; }
#interview-options a:is(:hover, :focus-visible) { background: var(--border); }
#interview-options a:focus-visible { outline-offset: -2px; }

.sections {
  clear: both;
  padding-top: 1.7rem;
}

details, .news, #collaborations {
  margin: 0 0 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 4%);
  transition: box-shadow .3s ease;
}

details[open] { box-shadow: 0 6px 16px rgb(0 0 0 / 8%); }

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 5px 0;
  color: #2d3748;
  font-size: 1.25rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--link); }
summary::after {
  content: "+";
  content: "+" / "";
  color: #a0aec0;
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform .3s ease;
}
details[open] > summary::after { color: var(--link); transform: rotate(45deg); }

h2 { margin: 1.6rem 0 .6rem; font-size: 1.05rem; line-height: 1.6; }
ul { margin-top: 20px; padding-inline-start: 20px; }
li { margin-bottom: 25px; }
li:last-child { margin-bottom: 5px; }
li[id], details[id], h2[id] { scroll-margin-top: 1rem; }
.news h2, #collaborations h2 { margin: 0; font-size: 1.25rem; }
.news-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.news ul { margin: .85rem 0; }
.news li { margin-bottom: .75rem; }
.news-more, .news-more[open] { margin: 0; padding: 0; border: 0; box-shadow: none; }
.news-toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgb(0 0 0 / 7%);
  border-radius: 999px;
  background: rgb(255 255 255 / 62%);
  color: #55555f;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}
.news-toggle-switch:hover { color: var(--heading); }
.news-toggle-switch[hidden] { display: none; }
.news-toggle-track {
  position: relative;
  flex: none;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: var(--track-color, rgb(0 0 0 / 7%));
  transition: background-color .28s cubic-bezier(.16, 1, .3, 1);
}
.news-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px rgb(0 0 0 / 12%), 0 4px 16px rgb(0 0 0 / 5%);
  transform: translateX(var(--thumb-offset, 0px));
  transition: transform .28s cubic-bezier(.16, 1, .3, 1);
}
.news-more[open], .news-toggle-switch[aria-expanded="true"] {
  --track-color: #0a6fd8;
  --thumb-offset: 14px;
}
.news-more > summary::after { content: none; }
.news-toggle-switch .collapse-label, .news-toggle-switch[aria-expanded="true"] .expand-label, .news-more[open] .expand-label { display: none; }
.news-toggle-switch[aria-expanded="true"] .collapse-label, .news-more[open] .collapse-label { display: inline; }
#collaborations:not(:target) { display: none; }
footer { margin-top: 40px; font-size: .85rem; color: #596a80; }
.schedule { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.schedule :is(th, td) { padding: .45rem; border-bottom: 1px solid #e2e8f0; text-align: start; vertical-align: top; }
.schedule caption { text-align: start; margin: .5rem 0; font-style: italic; }

@media (max-width: 600px) {
  .profile { float: none; width: min(100%, 290px); margin: 0 auto 25px; }
  .profile > img { width: min(100%, 245px); margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::after, .news-toggle-track, .news-toggle-thumb { transition: none; }
}
@media print {
  body { padding: 0; color: #000; background: white; }
  main, footer { max-width: none; }
  main { padding-top: 0; }
  details { box-shadow: none; border: 0; padding: 0; }
  details::details-content { display: contents; content-visibility: visible; }
  .languages, summary::after, .news-toggle-switch, #interview-options { display: none; }
  a { color: inherit; }
}
