:root {
  --parchment: #f5f4ed;
  --ivory: #faf9f5;
  --sand: #e8e6dc;
  --border: #e8e6dc;
  --border-soft: #e5e3d8;
  --near-black: #141413;
  --dark-warm: #3d3d3a;
  --olive: #504e49;
  --stone: #6b6a64;
  --brand: #1b365d;
  --brand-light: #2d5a8a;
  --brand-tint: #eef2f7;
  --serif: "TsangerJinKai02", "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", Georgia, serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, "TsangerJinKai02", "Source Han Serif SC", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--parchment);
  color: var(--near-black);
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #faf9f5 0, var(--parchment) 420px),
    var(--parchment);
  color: var(--near-black);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-light);
}

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 56px;
  align-items: center;
  min-height: 560px;
  border-bottom: 1px solid var(--border-soft);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--stone);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 20px 0 20px;
  color: var(--near-black);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.12;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--olive);
  font-size: 18px;
  line-height: 1.78;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.contact-strip a,
.contact-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--ivory);
  color: var(--dark-warm);
  font-size: 14px;
  line-height: 1.3;
}

.contact-strip a {
  color: var(--brand);
}

.hero-visual {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--ivory);
  box-shadow: 0 18px 44px rgba(20, 20, 19, 0.05);
  overflow: hidden;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0 72px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.metric {
  min-height: 116px;
  padding: 22px 20px;
  background: var(--ivory);
}

.metric-value {
  display: block;
  color: var(--brand);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.metric-label {
  display: block;
  margin-top: 12px;
  color: var(--olive);
  font-size: 14px;
  line-height: 1.45;
}

.section {
  margin-top: 72px;
}

.section-head {
  margin-bottom: 20px;
}

.section h2 {
  margin: 8px 0 0;
  padding-left: 12px;
  border-left: 4px solid var(--brand);
  border-radius: 2px;
  color: var(--near-black);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border-soft);
}

.row h3,
.skill h3,
.project h3,
.experience-list h3 {
  margin: 0;
  color: var(--near-black);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

.row p,
.skill p,
.project p,
.experience-list p,
.experience-list span,
.paper {
  margin: 8px 0 0;
  color: var(--olive);
}

.time {
  flex: 0 0 auto;
  color: var(--stone);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.skill {
  min-height: 218px;
  padding: 22px 18px;
  background: var(--ivory);
}

.skill p {
  font-size: 15px;
  line-height: 1.66;
}

.project-list {
  display: grid;
  gap: 16px;
}

.project {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--ivory);
}

.project-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.project-head p {
  font-size: 14px;
}

.project-head span {
  flex: 0 0 auto;
  max-width: 260px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--brand-tint);
  color: var(--brand);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}

.project ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--dark-warm);
}

.project li::marker {
  color: var(--brand);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 52px;
  align-items: start;
}

.paper {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border-soft);
  color: var(--dark-warm);
  font-size: 17px;
  line-height: 1.7;
}

.experience-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.experience-list article {
  padding: 18px;
  background: var(--ivory);
}

.experience-list p {
  color: var(--brand);
  font-size: 14px;
}

.experience-list span {
  display: block;
  font-size: 15px;
  line-height: 1.62;
}

.award-table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--ivory);
}

.award-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 104px;
  gap: 18px;
  align-items: center;
  min-height: 42px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-soft);
}

.award-table > div:last-child {
  border-bottom: 0;
}

.award-table span {
  color: var(--dark-warm);
}

.award-table strong {
  color: var(--brand);
  font-weight: 500;
}

.award-table time {
  color: var(--stone);
  font-family: var(--mono);
  font-size: 13px;
  text-align: right;
}

@media (max-width: 920px) {
  .page {
    width: min(100% - 28px, 720px);
    padding: 44px 0 72px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
    padding-bottom: 36px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 16px;
  }

  .metrics,
  .skill-grid,
  .two-column {
    grid-template-columns: 1fr 1fr;
  }

  .skill {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 24px, 560px);
  }

  .hero h1 {
    font-size: 34px;
  }

  .metrics,
  .skill-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .row,
  .project-head {
    display: grid;
  }

  .project-head span {
    max-width: none;
    justify-self: start;
  }

  .award-table > div {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 12px 14px;
  }

  .award-table time {
    text-align: left;
  }
}

@media print {
  body {
    background: var(--parchment);
  }

  .page {
    width: auto;
    max-width: none;
    padding: 0;
  }

  .hero {
    min-height: 0;
    padding-bottom: 28px;
  }

  .hero-visual {
    box-shadow: none;
  }

  .section {
    break-inside: avoid;
  }
}
