:root {
  --paper: #fefefe;
  --ink: #000;
  --secondary: rgba(0, 0, 0, 0.65);
  --muted: rgba(0, 0, 0, 0.48);
  --line: rgba(0, 0, 0, 0.17);
  --content-track: 1200px;
  --resume-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 1248px;
  max-width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  min-width: 1248px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-synthesis: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  -webkit-appearance: none;
  background: transparent;
}

.mx-scroll-progress {
  position: fixed;
  top: 50%;
  right: 48px;
  z-index: 70;
  width: 6px;
  height: min(132px, 20vh);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  transform: translateY(-50%);
  cursor: grab;
  opacity: 0;
  visibility: hidden;
  touch-action: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.mx-scroll-progress.is-visible {
  opacity: 1;
  visibility: visible;
}

.mx-scroll-progress:active {
  cursor: grabbing;
}

.mx-scroll-progress__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 28px;
  border-radius: 999px;
  background: #000;
  transform: translateY(var(--mx-scroll-thumb-y, 0px));
  will-change: transform;
}

body.is-loading .portfolio-site-header,
body.is-loading .resume-page {
  opacity: 0;
  pointer-events: none;
}

a {
  color: inherit;
}

.resume-page {
  width: var(--content-track);
  min-height: 100vh;
  margin: 0 auto;
  padding: 104px 0 128px;
  opacity: 1;
  transition: opacity 180ms ease;
}

.resume {
  width: var(--resume-width);
  margin: 0 auto;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

.resume * {
  font-family: inherit;
}

img {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

.resume-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.48);
}

.resume-intro h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 48px;
  letter-spacing: 0;
}

.resume-role {
  margin: 0;
  color: var(--secondary);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.resume-intro-details {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 5px;
}

.resume-intro-divider {
  width: 1px;
  height: 16px;
  background: var(--line);
}

.resume-meta {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
}

.resume-section {
  padding-top: 28px;
}

.resume-section > h2,
.resume-section--split h2 {
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.48);
  font-size: 24px;
  font-weight: 500;
  line-height: 34px;
}

.resume-section--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.resume-section p {
  margin: 0;
  color: var(--secondary);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.resume-section--split p + p {
  margin-top: 2px;
}

.resume-entry + .resume-entry {
  margin-top: 28px;
}

.resume-entry--compact + .resume-entry--compact {
  margin-top: 14px;
}

.resume-entry-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: baseline;
  margin-bottom: 8px;
}

.resume-entry-head h3,
.resume-project h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}

.resume-entry-head time {
  color: var(--secondary);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
}

.entry-summary {
  margin-bottom: 16px !important;
}

.resume-project {
  position: relative;
  padding-left: 20px;
}

.resume-project::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.resume-project + .resume-project {
  margin-top: 20px;
}

.resume-project h4 {
  margin-bottom: 4px;
}

.resume-project p + p,
.resume-entry > p + p {
  margin-top: 4px;
}

.resume-section strong {
  color: var(--ink);
  font-weight: 500;
}

.resume-section[aria-labelledby="education-title"] strong,
.resume-section--split strong {
  font-weight: 400;
}

.contact-section {
  margin-top: 48px;
  padding-bottom: 0;
  scroll-margin-top: 84px;
}

.contact-row {
  display: flex;
  width: 100%;
  align-items: center;
}

.contact-row a {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  text-decoration: none;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  gap: 0;
  background-image:
    linear-gradient(var(--line), var(--line)),
    linear-gradient(var(--line), var(--line)),
    linear-gradient(var(--line), var(--line));
  background-position: 25% center, 50% center, 75% center;
  background-repeat: no-repeat;
  background-size: 1px 16px;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.contact-actions a {
  color: inherit;
  font: inherit;
}

.contact-actions button {
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  appearance: none;
}

.contact-item {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-self: center;
  height: 30px;
  padding: 0 14px;
  gap: 6px;
  min-width: 0;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.contact-platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}

.contact-platform-icon-image {
  display: block;
  flex-basis: 22px;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.contact-link-label {
  text-decoration: none;
}

.contact-item:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.closing-note {
  display: grid;
  box-sizing: border-box;
  grid-template-columns: 96px auto;
  min-height: 300px;
  padding: 180px 0 160px;
  align-items: center;
  justify-content: center;
  column-gap: 32px;
}

.closing-note-image {
  display: block;
  box-sizing: border-box;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.closing-note-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  transform-origin: 50% 48%;
}

.resume-section .closing-note-text {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.closing-note-text > span {
  display: block;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 1000;
  display: inline-flex;
  padding: 10px 16px;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.copy-toast-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 1;
}

.copy-toast-check {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.copy-toast-error {
  display: none;
  font-family: Arial, sans-serif;
  font-size: 20px;
}

.copy-toast.is-error .copy-toast-check {
  display: none;
}

.copy-toast.is-error .copy-toast-error {
  display: block;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

#about {
  scroll-margin-top: 54px;
}

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

  .resume-page {
    transition: none;
  }

  .copy-toast {
    transition: none;
  }
}
