:root {
  --bg: #f5f5f5;
  --panel: #ffffff;
  --text: #111111;
  --muted: #6a6a6a;
  --line: #dbdbdb;
  --accent: #ff7a00;
  --accent-soft: #ffeddc;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  --page-max: 672px;
  --page-gutter: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  width: min(var(--page-max), calc(100vw - (var(--page-gutter) * 2)));
  margin: 72px auto 56px;
  display: grid;
  gap: 34px;
}

.card {
  background: var(--panel);
  border: 1px solid #ebebeb;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 170px;
  align-items: center;
  gap: 24px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  font-style: normal;
}

h1 {
  font-size: 50px;
  line-height: 1.05;
  font-weight: 700;
  white-space: nowrap;
}

.lead {
  margin: 16px 0 0;
  color: #4e4e4e;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 400;
  max-width: 27ch;
  font-style: normal;
}

.hero-avatar {
  justify-self: end;
  width: 164px;
  height: 164px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  border: none;
  position: relative;
}

.avatar-inner {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2a2a2a, #171717);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Inter", sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
}

.profile-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: none;
}

.content {
  padding: 30px 32px;
}

h2 {
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 18px;
}

.content p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
  font-style: normal;
}

.timeline-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
}

.timeline-item:first-of-type {
  border-top: none;
  margin-top: 8px;
  padding-top: 4px;
}

.dot {
  width: 14px;
  height: 14px;
  margin-top: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), #f25f00);
  box-shadow: 0 0 0 5px rgba(255, 122, 0, 0.14);
}

h3 {
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 600;
}

.meta {
  margin: 0;
  color: #8a8a8a;
  font-size: 14px;
  font-weight: 600;
}

.xp-list {
  position: relative;
  margin-top: 20px;
  padding-left: 56px;
}

.xp-list::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 2px;
  bottom: 10px;
  width: 3px;
  background: linear-gradient(180deg, #242424, #bcbcbc 15%, #d7d7d7 100%);
  border-radius: 999px;
}

.xp-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 8px;
  padding: 8px 0;
  margin-bottom: 24px;
}

.xp-marker {
  position: absolute;
  left: -48px;
  top: 26px;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  border: 4px solid #252525;
  background: #fff;
  z-index: 1;
}

.xp-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #dcdcdc;
  background: #f2f2f2;
  display: grid;
  place-items: center;
  color: #9dc67a;
  font-weight: 800;
  font-size: 20px;
}

.xp-logo-image {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #dcdcdc;
  object-fit: cover;
  object-position: center;
  background: #f2f2f2;
}

.xp-logo.alt {
  color: #39404a;
}

.xp-company {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
}

.xp-role {
  margin: 8px 0 0;
  color: #252525;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
}

.xp-date {
  margin: 0;
  justify-self: end;
  color: #6f6f6f;
  background: #ededed;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}

.detail-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.detail-list li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.skills-wrap {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid #d9d9d9;
  background: #fafafa;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.skill-tag img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.works-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.work-card {
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(165deg, #ffffff, #fbfbfb);
}

.work-card p {
  font-size: 16px;
  line-height: 1.5;
  margin: 10px 0 14px;
}

.work-card a {
  color: #111111;
  font-size: 14px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.work-card a:hover {
  color: #000000;
  border-bottom-color: #ff9a40;
}

.contact-footer {
  width: min(var(--page-max), calc(100vw - (var(--page-gutter) * 2)));
  margin: 0 auto 56px;
  padding: 28px 32px;
  border-radius: 22px;
  border: 1px solid #ebebeb;
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 122, 0, 0.12), transparent 30%),
    var(--panel);
}

.contact-footer p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  max-width: 60ch;
}

.contact-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.contact-links a {
  color: #141414;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}

.contact-links a:hover {
  border-bottom-color: var(--accent);
}

@media (max-width: 760px) {
  .page-shell {
    width: calc(100vw - 24px);
    margin-top: 18px;
    margin-bottom: 28px;
    gap: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 24px;
  }

  .hero-avatar {
    justify-self: start;
    width: 120px;
    height: 120px;
  }

  .avatar-inner {
    width: 96px;
    height: 96px;
    font-size: 2.2rem;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 16px;
  }

  .content {
    padding: 22px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 17px;
  }

  .content p {
    font-size: 16px;
  }

  .meta,
  .skill-tag,
  .work-card a,
  .contact-links a {
    font-size: 13px;
  }

  .work-card p {
    font-size: 14px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .xp-list {
    padding-left: 34px;
  }

  .xp-list::before {
    left: 9px;
    width: 2px;
  }

  .xp-item {
    grid-template-columns: 44px 1fr;
    row-gap: 6px;
    margin-bottom: 16px;
  }

  .xp-marker {
    left: -30px;
    top: 16px;
    width: 14px;
    height: 14px;
    border-width: 3px;
  }

  .xp-logo {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .xp-logo-image {
    width: 44px;
    height: 44px;
  }

  .xp-company {
    font-size: 20px;
  }

  .xp-role {
    margin-top: 4px;
    font-size: 16px;
  }

  .xp-date {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .contact-footer {
    width: calc(100vw - 24px);
    margin-bottom: 20px;
    padding: 24px;
  }

  .contact-footer p {
    font-size: 16px;
  }

  .detail-list {
    padding-left: 18px;
  }

  .detail-list li {
    font-size: 15px;
  }
}

@media (min-width: 761px) and (max-width: 1199px) {
  .page-shell {
    width: min(700px, calc(100vw - 48px));
    margin-top: 48px;
    gap: 26px;
  }

  .contact-footer {
    width: min(700px, calc(100vw - 48px));
    margin-bottom: 40px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 32px;
  }

  .lead {
    font-size: 20px;
  }

  .xp-company {
    font-size: 24px;
  }

  .xp-role {
    font-size: 18px;
  }

  .xp-date {
    font-size: 14px;
    padding: 8px 12px;
  }
}
