/*! jihwan020.github.io | style.css */

:root {
  --text: #222;        /* running text */
  --strong: #111;      /* name, headings, titles */
  --soft: #555;        /* venues, secondary lines */
  --muted: #707070;    /* dates, notes */
  --line: #e8e8e8;
  --link: #1772d0;
  --award: #b3261e;
  --width: 52rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 3.5rem;
}

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Lato, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { color: var(--strong); }

sub, sup { position: relative; font-size: 72%; line-height: 0; vertical-align: baseline; }
sup { top: -.45em; }
sub { bottom: -.2em; }

.container {
  width: 100%;
  max-width: calc(var(--width) + 3rem);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* Header */
.header {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 3rem;
}

.photo {
  display: block;
  width: 10.5rem;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.name {
  margin: 0 0 .75rem;
  font-size: 2.75rem;
  font-weight: 300;
  line-height: 1.1;
}

.name-ko {
  margin-left: .45rem;
  color: var(--muted);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
}

.lines {
  margin: 0;
  color: #444;
  font-size: .95rem;
  line-height: 1.6;
}

.profiles {
  display: flex;
  gap: 1rem;
  margin: .9rem 0 0;
  font-size: 1.3rem;
  line-height: 1;
}
.profiles a { display: inline-flex; color: #4a4a4a; }
.profiles a:hover { color: var(--link); }

/* Menu */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}

.nav-list {
  display: flex;
  gap: 1.75rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }

.nav-list a {
  padding: .75rem 0;
  color: var(--muted);
  font-size: .9rem;
  white-space: nowrap;
}
.nav-list a:hover { color: var(--strong); text-decoration: none; }
.nav-list a.is-active { color: var(--strong); }

/* Sections */
section { padding: 2.5rem 0; }
section + section { border-top: 1px solid var(--line); }

h2 {
  margin: 0 0 1.1rem;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
}

h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.bio { margin: 0; }

/* News */
.news { margin: 0; padding: 0; list-style: none; }

.news li {
  display: grid;
  grid-template-columns: 5.25rem 1fr;
  gap: 1rem;
  padding: .2rem 0;
}

.news .date { color: var(--muted); white-space: nowrap; }

/* Publications */
.note { margin: -.5rem 0 1.4rem; color: var(--muted); font-size: .875rem; }

.pub { margin-bottom: 1.5rem; }
.pub:last-child { margin-bottom: 0; }
.pub h3 { margin-bottom: .2rem; }
.pub p { margin: 0; font-size: .95rem; line-height: 1.55; }

.me {
  color: var(--strong);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.venue { color: var(--soft); }

.pub .links {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.1rem;
  margin-top: .35rem;
  font-size: .875rem;
}
.links a { display: inline-flex; align-items: center; gap: .35rem; }

/* Presentations, education, awards */
.item { margin-bottom: 1.1rem; }
.item:last-child { margin-bottom: 0; }

.item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 1.5rem;
}
.item-head h3 { flex: 1 1 22rem; }
.item .place { font-weight: 400; color: var(--soft); }
.item .date { color: var(--muted); font-size: .95rem; white-space: nowrap; }
.item p { margin: .1rem 0 0; color: #444; font-size: .95rem; }
.item p a { text-decoration: underline; text-underline-offset: 2px; }
.item .award { color: var(--award); font-weight: 700; font-size: .9rem; }

/* Footer */
.footer p {
  margin: 0;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

/* Phones */
@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .header { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 2rem; }
  .photo { width: 8rem; }
  .name { font-size: 2.25rem; }
  .nav-list { gap: 1.4rem; }
  section { padding: 2rem 0; }
  .news li { grid-template-columns: 1fr; gap: 0; padding: .35rem 0; }
}

@media print {
  .nav { display: none; }
  .header { padding-top: 0; }
}
