* {
  box-sizing: border-box;
}

.resume-body {
  margin: 0;
  background: #ffffff;
  color: #000000;
  font-family: "Inter", Arial, sans-serif;
}

.resume-root {
  min-height: 100vh;
  padding: 1.5rem;
}

.resume-shell {
  max-width: 1020px;
  margin: 0 auto;
  position: relative;
}

.resume-hero {
  margin-bottom: 2.25rem;
}

.resume-hero-first,
.resume-hero-last {
  font-size: clamp(3.2rem, 11vw, 8.8rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-weight: 800;
  margin-left: -0.12rem;
}

.resume-hero-second-row {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  margin-top: -1rem;
}

.resume-hero-title-wrap {
  margin-bottom: 2rem;
  flex: 1;
}

.resume-hero-title-line {
  height: 1px;
  background: #000000;
  width: 100%;
  margin-bottom: 1rem;
}

.resume-hero-title {
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
}

.resume-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.resume-contact {
  background: #000000;
  color: #ffffff;
  padding: 1.5rem;
}

.resume-contact h3,
.resume-side-block h3,
.resume-about h3,
.resume-experience h3 {
  margin: 0 0 1.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
}

.resume-contact-list {
  display: grid;
  gap: 1rem;
}

.resume-contact .meta {
  opacity: 0.5;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
}

.resume-contact .value {
  font-size: 0.75rem;
}

.resume-contact .break {
  word-break: break-word;
}

.resume-skill-list {
  display: grid;
  gap: 0.75rem;
}

.resume-skill-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.resume-skill-list span {
  font-size: 0.75rem;
  font-weight: 500;
}

.resume-skill-list em {
  font-size: 0.625rem;
  color: rgba(0, 0, 0, 0.6);
  font-style: normal;
}

.resume-tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.resume-tool-tags span {
  background: #000000;
  color: #ffffff;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resume-education {
  display: grid;
  gap: 1.25rem;
}

.resume-education .edu-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.resume-education .edu-sub {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.7);
}

.resume-education .edu-date {
  margin-top: 0.25rem;
  font-size: 0.625rem;
  color: rgba(0, 0, 0, 0.5);
}

.resume-right {
  min-width: 0;
}

.resume-about {
  margin-bottom: 2rem;
}

.resume-about p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
}

.resume-about span {
  background: #000000;
  color: #ffffff;
  padding: 0 0.3rem;
}

.resume-exp-list {
  display: grid;
  gap: 2rem;
}

.resume-exp-item {
  border-left: 2px solid #000000;
  padding-left: 2rem;
}

.resume-exp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.resume-exp-main h4 {
  margin: 0 0 0.2rem;
  font-size: 1.55rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.resume-exp-main p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.6);
}

.resume-exp-period {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.resume-exp-bullet {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.8);
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  .resume-root {
    padding: 0;
  }

  .resume-shell {
    max-width: none;
  }

  .resume-hero {
    margin-bottom: 1.6rem;
  }

  .resume-grid {
    gap: 1.2rem;
  }

  .resume-left {
    gap: 1.4rem;
  }

  .resume-contact,
  .resume-side-block {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .resume-exp-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

@media (max-width: 1024px) {
  .resume-root {
    padding: 1rem;
  }

  .resume-grid {
    grid-template-columns: 1fr;
  }

  .resume-hero-second-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: -0.6rem;
  }

  .resume-hero-title-wrap {
    margin-bottom: 0;
    width: 100%;
  }

  .resume-exp-head {
    flex-direction: column;
    gap: 0.5rem;
  }
}
