:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1d1d1f;
  background: #f5f5f7;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px 24px 96px;
  background: #f5f5f7;
}

.page-actions {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
  width: min(980px, 100%);
  min-height: 44px;
  margin: 0 auto 22px;
  padding: 0 18px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  background: rgba(250, 250, 252, .78);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .06);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.action-group {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.page-actions > a {
  white-space: nowrap;
}

.page-actions a,
.page-actions button {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.page-actions a:hover,
.page-actions button:hover { color: #06c; }

.page-actions button {
  border: 0;
  border-radius: 980px;
  padding: 8px 15px;
  color: #fff;
  background: #0071e3;
}

.page-actions button:hover {
  color: #fff;
  background: #0077ed;
  transform: translateY(-1px);
}

.action-separator { display: none; }

main {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 82px 84px 88px;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .08);
}

.resume-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 54px;
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid #d2d2d7;
}

.eyebrow {
  margin: 0 0 14px;
  color: #86868b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}

h1 {
  margin: 0;
  color: #1d1d1f;
  font-size: clamp(3.35rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.055em;
}

.legal-name {
  display: block;
  margin-top: 12px;
  color: #86868b;
  font-size: .25em;
  font-weight: 500;
  letter-spacing: -.02em;
}

.tagline {
  margin: 24px 0 8px;
  color: #1d1d1f;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.summary-meta {
  color: #86868b;
  font-size: 15px;
  letter-spacing: -.01em;
}

.summary-meta span { color: #d2d2d7; }

address {
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
}

address a { color: #06c; }
address a:hover { color: #06c; text-decoration: underline; }
.contact-row {
  display: flex;
  justify-content: flex-end;
  gap: .65em;
  white-space: nowrap;
}

section { margin-top: 46px; }

h2 {
  display: block;
  margin: 0 0 19px;
  color: #86868b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .06em;
}

h2::after { display: none; }

h3 {
  color: #1d1d1f;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.025em;
}

p,
li {
  color: #424245;
  font-size: 15px;
  line-height: 1.58;
  letter-spacing: -.012em;
}

strong { color: #1d1d1f; font-weight: 600; }
ul { margin-top: 10px; padding-left: 1.2rem; }
li { padding-left: .25rem; }
li + li { margin-top: 6px; }
li::marker { color: #86868b; }

.skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.skills p {
  display: block;
  min-height: 100%;
  padding: 20px 22px;
  border-radius: 18px;
  background: #f5f5f7;
}

.skills strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

article + article { margin-top: 28px; }
.role-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
}
.role-heading p { color: #86868b; font-size: 13px; }

.role,
.project-tech {
  margin-top: 4px;
  color: #06c;
  font-size: 13px;
  font-weight: 500;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 18px;
  padding: 22px 24px;
  border-radius: 18px;
  background: #f5f5f7;
}

.project-tech {
  align-self: baseline;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.project > p:last-child {
  grid-column: 1 / -1;
  margin-top: 8px;
}

@media (max-width: 760px) {
  body { padding: 20px 12px 48px; }
  .page-actions { top: 8px; margin-bottom: 12px; padding: 0 12px; border-radius: 14px; }
  .action-group { gap: 7px; }
  .page-actions a, .page-actions button { font-size: 12px; }
  main { padding: 48px 24px 56px; border-radius: 22px; }
  .resume-header { grid-template-columns: 1fr; gap: 24px; padding-bottom: 34px; }
  h1 { font-size: clamp(3rem, 17vw, 4.5rem); }
  .tagline { font-size: 17px; }
  address { text-align: left; }
  .contact-row { justify-content: flex-start; flex-wrap: wrap; white-space: normal; }
  section { margin-top: 38px; }
  .skills { grid-template-columns: 1fr; }
  .role-heading { display: block; }
  .role-heading p { margin-top: 4px; }
  .project { grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; }
  .project-tech { font-size: 11px; }
  .project > p:last-child { grid-column: 1 / -1; }
}

@media (max-width: 390px) {
  .page-actions { gap: 6px; padding: 0 8px; }
  .action-group { gap: 5px; }
  .page-actions a, .page-actions button { font-size: 11px; }
  .page-actions button { padding: 7px 9px; }
}

@media print {
  @page { size: A4; margin: 5mm 7mm; }
  :root, body {
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body { padding: 0; }
  .page-actions { display: none; }
  main { width: auto; max-width: none; padding: 0; border-radius: 0; box-shadow: none; }
  .resume-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 20px;
    padding-bottom: 7px;
    border-color: #d2d2d7;
  }
  .eyebrow { margin-bottom: 3px; color: #86868b; font-size: 6.2pt; }
  h1 { color: #1d1d1f; font-size: 23pt; letter-spacing: -.04em; }
  .legal-name { display: inline; margin: 0; font-size: .4em; }
  .tagline { margin: 4px 0 1px; color: #1d1d1f; font-size: 8pt; }
  .summary-meta { color: #86868b; font-size: 7.1pt; }
  address { gap: 0; font-size: 7.2pt; line-height: 1.14; text-align: left; }
  address a { color: #06c !important; }
  .contact-row { justify-content: flex-start; flex-wrap: nowrap; white-space: nowrap; }
  section { margin-top: 5px; }
  h2 { margin-bottom: 2px; color: #86868b; font-size: 7.2pt; }
  h3 { color: #1d1d1f; font-size: 8.2pt; line-height: 1.18; }
  p, li { color: #424245; font-size: 7.1pt; line-height: 1.18; }
  ul { margin-top: 1px; margin-bottom: 0; padding-left: 13px; }
  li { padding-left: 0; }
  li + li { margin-top: 0; }
  li::marker { color: #86868b; }
  .skills { grid-template-columns: 1fr 1fr; gap: 2px 4px; }
  .skills p {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 3px;
    padding: 3px 5px;
    border-radius: 4px;
    background: #f5f5f7;
  }
  .skills strong { margin: 0; font-size: 6.9pt; }
  article + article { margin-top: 3px; }
  .role-heading { display: flex; }
  .role, .project-tech { margin: 0; color: #06c !important; font-size: 6.9pt; }
  .project { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; padding: 3px 5px; border-radius: 4px; background: #f5f5f7; }
  .project > p:last-child { margin-top: 0; }
  a { text-decoration: none !important; }
  section, article { break-inside: avoid; }
}
