:root {
  color-scheme: light;
  --text: #000000;
  --muted: #000000;
  --line: #d9dee5;
  --panel: #ffffff;
  --page: #ffffff;
  --shadow: 0 14px 35px rgba(31, 41, 51, 0.09);
  --focus: #4f46e5;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.home-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(72px, 16vh, 150px) clamp(48px, 12vw, 100px) clamp(48px, 12vw, 100px);
}

.home-layout {
  width: min(100%, 1100px);
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(220px, 320px);
  gap: clamp(6px, 1vw, 18px);

  align-items: center;
}

.intro {
  max-width: 560px;
  text-align: left;
}

.eyebrow,
.role {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 300;
}

.role {
  margin: 22px 0 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: 0;
}

.email {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-family: inherit;
  font-weight: 300;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.copy-icon {
  width: 0.85em;
  height: 0.85em;
  flex: 0 0 auto;
  align-self: baseline;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: translate(-4px, 0.12em);
  transition: opacity 140ms ease, transform 160ms ease;
}

.email:hover .copy-icon,
.email:focus-visible .copy-icon,
.email.copied .copy-icon {
  opacity: 1;
  transform: translate(0, 0.12em);
}

.email.cooldown .copy-icon {
  opacity: 0;
  transform: translate(-4px, 0.12em);
}

.check-path {
  display: none;
}

.copy-front {
  fill: var(--page);
}

.email.copied .copy-path {
  display: none;
}

.email.copied .check-path,
.email.copied-exiting .check-path {
  display: block;
}

.email.copied-exiting .copy-icon {
  opacity: 0;
  transform: translate(-4px, 0.12em);
}

.email.copied-exiting .copy-path {
  display: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.profile-photo {
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0;
  justify-self: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.icon-link {
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.icon-link:hover {
  transform: translateY(-2px) scale(1.06);
}

.icon-link img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.github,
.x {
  border-radius: 999px;
}

.linkedin {
  border-radius: 7px;
  box-shadow: 0 3px 10px rgba(31, 41, 51, 0.14);
}

.x img {
  width: 39px;
  height: 39px;
}

.x {
  padding: 5px;
  overflow: visible;
}

.text-link {
  position: relative;
  display: inline-block;
  margin-top: 30px;
  padding-bottom: 5px;
  color: #000000;
  font-size: 1rem;
  font-weight: 300;
  text-decoration: none;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
}

.experience-page {
  min-height: 100vh;
  padding: 44px 20px 64px;
}

.timeline-shell {
  width: min(100%, 760px);
  margin: 0 auto;
}

.page-heading {
  margin: 0 0 28px 150px;
}

.page-heading .eyebrow {
  font-size: 1.1rem;
}

.page-heading h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
}

.timeline {
  position: relative;
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 20px 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 120px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 115px;
  top: 62px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #111827;
  box-shadow: 0 0 0 5px var(--page);
}

.timeline-year {
  padding-top: 23px;
  color: #000000;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 500;
  text-align: right;
}

.timeline-card {
  min-height: 136px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.timeline-card h2 {
  margin: 0 0 8px;
  color: #000000;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  line-height: 1.15;
  font-weight: 300;
}

.company,
.detail,
.date-range {
  margin: 0;
}

.company {
  color: #000000;
  font-size: 1.3rem;
  font-weight: 350;
}

.detail {
  margin-top: 5px;
  color: #000000;
  font-size: 1rem;
}

.date-range {
  margin-top: 12px;
  color: #000000;
  font-size: 1rem;
}

.timeline-card img {
  width: auto;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
}

.page-nav {
  text-align: right;
}

@media (max-width: 680px) {
  .home-page {
    padding: 7.5vh 7.5vw;
  }

  .home-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .profile-photo {
    width: min(72vw, 280px);
    justify-self: start;
  }

  .mobile-hide {
    display: none;
  }

  .experience-page {
    padding-inline: 16px;
  }

  .page-heading {
    margin-left: 0;
  }

  .timeline {
    gap: 24px;
    padding-left: 0;
  }

  .timeline::before,
  .timeline-item::after {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline-year {
    padding-top: 0;
    text-align: left;
  }

  .timeline-card {
    padding: 24px;
  }
}

@media (max-width: 460px) {
  .timeline-card {
    flex-direction: column;
  }

  .timeline-card img {
    align-self: flex-start;
  }
}
