:root {
  --ink: #17202a;
  --muted: #5f6c76;
  --paper: #f4f7f5;
  --surface: #ffffff;
  --surface-strong: #e8f0ec;
  --teal: #167d7f;
  --teal-dark: #0f5f62;
  --coral: #e65f4f;
  --gold: #b58720;
  --line: #dbe4df;
  --shadow: 0 18px 55px rgba(23, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

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

.site-header {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  padding: 18px 6%;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(219, 228, 223, 0.86);
  box-shadow: 0 10px 28px rgba(23, 32, 42, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav a {
  border-radius: 8px;
  color: rgba(23, 32, 42, 0.78);
  font-size: 0.95rem;
  font-weight: 650;
  padding: 9px 12px;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.hero {
  align-items: center;
  background: var(--surface-strong);
  display: flex;
  min-height: 76vh;
  overflow: hidden;
  padding: 112px 6% 72px;
  position: relative;
}

.hero__image,
.hero__veil {
  inset: 0;
  position: absolute;
}

.hero__image {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero__veil {
  background: rgba(244, 247, 245, 0.74);
}

.hero__content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: 5.1rem;
  line-height: 0.98;
  margin-bottom: 24px;
}

h2 {
  font-size: 2.45rem;
  line-height: 1.12;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.28;
}

.hero__tagline {
  color: rgba(23, 32, 42, 0.82);
  font-size: 1.25rem;
  max-width: 640px;
}

.hero__meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-weight: 650;
  gap: 10px;
  margin-top: 28px;
}

.hero__meta span {
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(219, 228, 223, 0.9);
  border-radius: 8px;
  display: inline-flex;
  min-height: 36px;
  padding: 7px 12px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  min-height: 46px;
  padding: 12px 18px;
}

.button--primary {
  background: var(--teal);
  color: #ffffff;
}

.button--primary:hover {
  background: var(--teal-dark);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  color: var(--ink);
}

.section,
.contact-section {
  padding: 82px 6%;
}

.section__inner {
  margin: 0 auto;
  max-width: 1120px;
}

.about-layout,
.split-layout,
.contact-layout {
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
}

.section-copy {
  max-width: 680px;
}

.body-copy {
  color: var(--muted);
  font-size: 1.04rem;
}

.body-copy p:last-child {
  margin-bottom: 0;
}

.highlight-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.highlight-list li {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px 20px;
}

.highlight-list span {
  color: var(--muted);
  font-weight: 700;
}

.highlight-list strong {
  color: var(--ink);
  font-size: 1.04rem;
  text-align: right;
}

.section--tint {
  background: #ffffff;
}

.section-heading {
  max-width: 580px;
}

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 32, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 298px;
  padding: 24px;
}

.project-card h3 {
  margin-bottom: 12px;
}

.project-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag-list span {
  background: #eef4f1;
  border: 1px solid #d9e8e2;
  border-radius: 8px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 750;
  padding: 6px 9px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.project-links:empty {
  display: none;
}

.project-links a,
.writing-item {
  color: var(--teal-dark);
  font-weight: 800;
}

.writing-list {
  display: grid;
  gap: 14px;
}

.writing-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 20px;
}

.writing-item:hover,
.project-card:hover,
.contact-link:hover {
  border-color: rgba(22, 125, 127, 0.55);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.writing-item,
.project-card,
.contact-link {
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.writing-item small {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.section--timeline {
  background: #edf4f0;
}

.timeline {
  border-left: 2px solid rgba(22, 125, 127, 0.32);
  display: grid;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
}

.timeline li {
  position: relative;
}

.timeline li::before {
  background: var(--coral);
  border: 4px solid #edf4f0;
  border-radius: 50%;
  content: "";
  height: 14px;
  left: -36px;
  position: absolute;
  top: 4px;
  width: 14px;
}

.timeline time {
  color: var(--gold);
  display: block;
  font-size: 0.9rem;
  font-weight: 850;
  margin-bottom: 6px;
}

.timeline h3 {
  margin-bottom: 6px;
}

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

.contact-section {
  background: var(--ink);
  color: #ffffff;
}

.contact-section .section-kicker {
  color: #7ed3ca;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.76);
  max-width: 600px;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-link {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 18px 20px;
}

.contact-link span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.88rem;
  font-weight: 750;
}

.contact-link strong {
  color: #ffffff;
  overflow-wrap: anywhere;
}

.site-footer {
  align-items: center;
  background: #101820;
  color: rgba(255, 255, 255, 0.68);
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 72px;
  padding: 18px;
}

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

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .about-layout,
  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand {
    height: 38px;
    width: 38px;
  }

  .nav {
    gap: 2px;
  }

  .nav a {
    font-size: 0.88rem;
    padding: 7px 8px;
  }

  .hero {
    min-height: 74vh;
    padding: 104px 22px 56px;
  }

  .hero__image {
    object-position: 66% center;
  }

  .hero__veil {
    background: rgba(244, 247, 245, 0.86);
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero__tagline {
    font-size: 1.05rem;
  }

  .section,
  .contact-section {
    padding: 62px 22px;
  }

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

  .project-card {
    min-height: 248px;
  }

  .highlight-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .highlight-list strong {
    text-align: left;
  }
}
