:root {
  --bg: #f7f5ef;
  --paper: #fffdf8;
  --ink: #151719;
  --muted: #61666d;
  --line: rgba(21, 23, 25, 0.12);
  --blue: #275efe;
  --teal: #087f8c;
  --green: #5f7c57;
  --amber: #b66d24;
  --shadow: 0 24px 70px rgba(21, 23, 25, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(247, 245, 239, 0.94)),
    var(--bg);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 239, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

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

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 56px;
}

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-copy,
.section-body,
.resume-section p {
  color: var(--muted);
  font-size: 18px;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button.primary {
  color: #fff;
  background: var(--ink);
}

.button.secondary {
  background: transparent;
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: rgba(255, 253, 248, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 60px;
  border-top: 1px solid var(--line);
}

.section-body p {
  margin-bottom: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag-list span {
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(8, 127, 140, 0.1);
  border: 1px solid rgba(8, 127, 140, 0.18);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.accent-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - 1120px) / 2));
  padding-left: max(20px, calc((100% - 1120px) / 2));
  background: #ecefea;
  border-block: 1px solid var(--line);
}

.quote-grid,
.card-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quote-grid article,
.project-card,
.contact-grid a {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-grid article {
  padding: 28px;
}

.quote-grid p,
.project-card p,
.project-card li,
.timeline p {
  color: var(--muted);
}

.project-card {
  position: relative;
  min-height: 360px;
  padding: 30px;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--amber));
}

.card-index {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.project-card ul {
  margin: 24px 0 0;
  padding-left: 18px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 180ms ease;
}

.project-link::after {
  content: "↗";
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.project-link:hover {
  color: var(--blue);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.timeline span {
  color: var(--blue);
  font-weight: 800;
}

.timeline p {
  margin-bottom: 0;
}

.resume-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 54px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

.resume-section div {
  max-width: 680px;
}

.resume-section .eyebrow {
  color: #89d6df;
}

.resume-section p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.resume-section .button.primary {
  flex: 0 0 auto;
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.contact-section {
  padding-bottom: 70px;
}

.contact-grid a {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 24px;
  color: var(--ink);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.contact-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(39, 94, 254, 0.34);
  box-shadow: var(--shadow);
}

.contact-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .nav-shell {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-links a {
    min-height: 36px;
    display: grid;
    place-items: center;
    padding: 6px;
    background: rgba(255, 253, 248, 0.72);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
  }

  .section {
    width: min(100% - 28px, 1120px);
    padding: 70px 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 58px;
  }

  h1 {
    font-size: 44px;
  }

  .two-column,
  .quote-grid,
  .card-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .two-column {
    gap: 24px;
  }

  .accent-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .project-card {
    min-height: auto;
  }

  .resume-section {
    width: min(100% - 28px, 1120px);
    padding: 34px 24px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-copy,
  .section-body,
  .resume-section p {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .hero-panel,
  .quote-grid article,
  .project-card,
  .contact-grid a {
    padding: 22px;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
