@charset "UTF-8";
* {
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  background: #eee;
  font-family: 'Ubuntu', '微軟正黑體', sans-serif;
  letter-spacing: 0.4px;
  font-size: 15px;
  color: #555;
}

a {
  text-decoration: none;
  color: #555;
  transition-duration: 0.3s;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #e07a5f;
  outline-offset: 2px;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

h2 {
  color: #3d405b;
  margin: 10px 0;
  text-transform: uppercase;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.resume {
  max-width: 870px;
  width: 100%;
  background: #fbfbfb;
  margin: 20px auto;
  border: 1px solid #bbb;
  box-shadow: 0 0 20px -3px #bbb;
  position: relative;
  display: flex;
  flex-wrap: wrap;
}
.resume::before {
  content: '';
  width: 100%;
  height: 6px;
  background: #787f9e;
  position: absolute;
  bottom: 0;
  left: 0;
}

.resume .base > *,
.resume .func > * {
  padding-bottom: 20px;
}
.resume .base > *:last-child,
.resume .func > *:last-child {
  padding-bottom: 0;
}

.resume .base {
  width: 225px;
  flex: 0 0 225px;
  padding: 30px 15px;
  background: rgba(238, 238, 238, 0.6);
}
.resume .base .profile {
  background: #787f9e;
  padding: 30px 15px 5px 15px;
  margin: -30px -15px 30px -15px;
  position: relative;
  z-index: 2;
}
.resume .base .profile::after {
  content: '';
  position: absolute;
  background: #787f9e;
  width: 100%;
  height: 30px;
  bottom: -15px;
  left: 0;
  transform: skewY(-5deg);
  z-index: -1;
}
.resume .base .profile .photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}
.resume .base .profile .info {
  text-align: center;
  color: #fcfcfc;
}
.resume .base .profile .info .name {
  margin: 10px 0 0 0;
  font-size: 1.5em;
  font-weight: normal;
}
.resume .base .profile .info .job {
  margin: 4px 0 0 0;
}

.resume .base .highlights ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.resume .base .highlights li {
  background: #fcfcfc;
  border: 1px solid #cdcdcd;
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
}
.resume .base .highlights li strong {
  display: block;
  color: #e07a5f;
  font-size: 1.4em;
  line-height: 1.2;
}
.resume .base .highlights li span {
  display: block;
  font-size: 0.85em;
  margin-top: 2px;
}

.resume .base .about p {
  margin: 0;
  line-height: 1.5;
}

.resume .base .contact > div {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 24px;
}
.resume .base .contact > div a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.resume .base .contact > div a:hover,
.resume .base .contact > div a:hover .icon {
  color: #e07a5f;
}
.resume .base .contact .icon {
  color: #787f9e;
  transition-duration: 0.3s;
}

.resume .base .follow .box {
  text-align: center;
}
.resume .base .follow .box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #787f9e;
  margin: 0 6px 10px 6px;
  transition-duration: 0.3s;
}
.resume .base .follow .box a .icon {
  color: #fcfcfc;
}
.resume .base .follow .box a:hover {
  background: #e07a5f;
}

.resume .func {
  width: 645px;
  flex: 1 1 400px;
  padding: 30px 25px;
}
.resume .func h2 {
  margin-top: 0;
}
.resume .func h2 .icon {
  color: #fcfcfc;
  background: #787f9e;
  padding: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 8px;
}

.resume .func .work,
.resume .func .edu {
  display: inline-block;
  vertical-align: top;
}
.resume .func .work ul li small,
.resume .func .edu ul li small {
  display: block;
  opacity: 0.7;
}
.resume .func .work ul li,
.resume .func .edu ul li {
  position: relative;
  margin-left: 15px;
  padding-left: 25px;
  padding-bottom: 15px;
}
.resume .func .work ul li:last-of-type,
.resume .func .edu ul li:last-of-type {
  padding-bottom: 3px;
}
.resume .func .work ul li::before,
.resume .func .edu ul li::before {
  content: '';
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  border: 3px solid #3d405b;
  background: #fcfcfc;
  border-radius: 50%;
  left: 0;
  top: 3px;
  z-index: 1;
}
.resume .func .work ul li::after,
.resume .func .edu ul li::after {
  content: '';
  display: block;
  position: absolute;
  width: 3px;
  height: 100%;
  background: #3d405b;
  left: 5px;
  top: 0;
}
.resume .func .work ul li:last-of-type::after,
.resume .func .edu ul li:last-of-type::after {
  border-radius: 1.5px;
}

.resume .func .work {
  width: 42%;
}
.resume .func .edu {
  width: 56%;
}

.resume .func .stack {
  clear: both;
}
.resume .func .stack .stack-note {
  margin: 0 0 12px 0;
  font-size: 0.8em;
  opacity: 0.7;
  font-style: italic;
}
.resume .func .stack-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.resume .func .stack-list li {
  list-style: none;
}
.resume .func .stack-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.resume .func .stack-row span {
  flex: 1 1 auto;
}
.resume .func .stack-row small {
  flex: 0 0 auto;
  opacity: 0.65;
  font-size: 0.85em;
  white-space: nowrap;
}
.resume .func .stack-bar {
  height: 6px;
  background: #e2e2e2;
  border-radius: 3px;
  overflow: hidden;
}
.resume .func .stack-bar-fill {
  height: 100%;
  width: var(--w, 0%);
  border-radius: 3px;
  background: linear-gradient(90deg, #787f9e, #e07a5f);
  animation: grow-bar 0.8s ease-out both;
}

@keyframes grow-bar {
  from {
    width: 0%;
  }
  to {
    width: var(--w, 0%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .resume .func .stack-bar-fill {
    animation: none;
  }
}

@media (max-width: 700px) {
  .resume {
    margin: 0;
    border-left: none;
    border-right: none;
    flex-direction: column;
  }
  .resume .base,
  .resume .func {
    width: 100%;
    flex-basis: auto;
  }
  .resume .func .work,
  .resume .func .edu {
    display: block;
    width: 100%;
  }
  .resume .func .stack ul {
    columns: 1;
  }
  .resume .base .profile .photo img {
    max-width: 160px;
    margin: 0 auto;
  }
}
