:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --paper-strong: #fffaf0;
  --ink: #20201d;
  --muted: #67645e;
  --line: rgba(32, 32, 29, 0.16);
  --green: #2f7d68;
  --red: #b64d45;
  --gold: #be8a2f;
  --blue: #2e6f95;
  --shadow: 0 18px 50px rgba(36, 32, 24, 0.13);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(32, 32, 29, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(32, 32, 29, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 54px 54px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 20% 20%, rgba(47, 125, 104, 0.14), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(182, 77, 69, 0.12), transparent 28%),
    radial-gradient(circle at 52% 80%, rgba(190, 138, 47, 0.14), transparent 32%);
}

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

#signature-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.62;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  min-height: 72px;
  margin: 0 auto;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.contact-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

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

.nav-links {
  gap: 8px;
  padding: 6px;
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(36, 32, 24, 0.08);
}

.nav-links a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  border-radius: 999px;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(47, 125, 104, 0.1);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 58px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-top: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

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

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.65;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  font-weight: 800;
  border: 1px solid var(--ink);
  border-radius: 8px;
}

.button.primary {
  color: var(--paper-strong);
  background: var(--ink);
}

.button.secondary {
  background: rgba(255, 250, 240, 0.72);
}

.profile-panel,
.project-card {
  background: rgba(255, 250, 240, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-panel {
  display: grid;
  gap: 26px;
  padding: 26px;
}

.panel-label,
.project-meta {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-title {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.quick-facts {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.quick-facts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.quick-facts span {
  color: var(--muted);
}

.quick-facts strong {
  text-align: right;
  line-height: 1.35;
}

.split-section,
.education-section,
.about-section,
.notes-section,
.contact-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 24px;
}

.project-card p:not(.project-meta),
.experience-points {
  color: var(--muted);
  line-height: 1.7;
}

.experience-points {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 0 0 24px;
}

.experience-points li::marker {
  color: var(--green);
}

.project-card a {
  width: fit-content;
  margin-top: auto;
  font-weight: 800;
  border-bottom: 2px solid currentColor;
}

.accent-green {
  border-top: 6px solid var(--green);
}

.accent-red {
  border-top: 6px solid var(--red);
}

.accent-gold {
  border-top: 6px solid var(--gold);
}

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

.education-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 28px;
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.education-school {
  margin-bottom: 8px;
  color: var(--green);
  font-weight: 900;
}

.education-item p:not(.education-school) {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.education-year {
  display: grid;
  min-width: 96px;
  min-height: 86px;
  padding: 0 12px;
  place-items: center;
  color: var(--paper-strong);
  font-size: 18px;
  font-weight: 900;
  background: var(--green);
  border-radius: 8px;
}

.about-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.about-copy > p {
  color: var(--muted);
  font-size: 21px;
  line-height: 1.75;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

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

.timeline time {
  color: var(--green);
  font-weight: 900;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.project-skill-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.case-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.case-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.case-item span {
  color: var(--red);
  font-weight: 900;
}

.case-item h3,
.skills-panel h3 {
  margin-bottom: 12px;
}

.case-item p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.skills-panel {
  display: grid;
  gap: 22px;
  padding: 24px;
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.skill-group p {
  margin-bottom: 10px;
  color: var(--green);
  font-weight: 900;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  padding: 8px 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  background: rgba(47, 125, 104, 0.1);
  border: 1px solid rgba(47, 125, 104, 0.24);
  border-radius: 8px;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}

.contact-section p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.contact-links {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: min(360px, 100%);
}

.contact-links a {
  padding: 16px 18px;
  font-weight: 800;
  background: rgba(255, 250, 240, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-links a:hover,
.project-card:hover {
  transform: translateY(-2px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
  }

  .hero,
  .about-section,
  .project-skill-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .section {
    width: min(100% - 28px, 1180px);
    padding: 64px 0;
  }

  .site-header,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .nav-links {
    gap: 2px;
    padding: 4px;
  }

  .nav-links a {
    padding: 8px 6px;
    font-size: 13px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .profile-panel,
  .project-card {
    padding: 20px;
  }

  .quick-facts li,
  .education-item,
  .timeline div,
  .case-item,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .quick-facts li,
  .site-footer {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  #signature-field {
    display: none;
  }
}
