:root {
  color-scheme: light;
  --bg: #f8f5ef;
  --surface: #ffffff;
  --ink: #1f2328;
  --muted: #667085;
  --line: #e4ded2;
  --accent: #c94f4f;
  --accent-dark: #963737;
  --teal: #2e7d7b;
  --gold: #b98837;
  --shadow: 0 18px 60px rgba(31, 35, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial,
    sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(248, 245, 239, 0.86);
  border-bottom: 1px solid rgba(228, 222, 210, 0.72);
  backdrop-filter: blur(18px);
}

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

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

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

.nav-links {
  gap: clamp(12px, 3vw, 28px);
  color: #343941;
  font-size: 15px;
}

.nav-links a {
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--accent);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(20px, 6vw, 84px) 88px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(248, 245, 239, 0.96) 0%, rgba(248, 245, 239, 0.8) 42%, rgba(248, 245, 239, 0.16) 100%),
    linear-gradient(0deg, rgba(31, 35, 40, 0.18), rgba(31, 35, 40, 0.02));
}

.hero-content {
  position: relative;
  width: min(690px, 100%);
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 11em;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: #3f4650;
  font-size: clamp(17px, 2vw, 20px);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(31, 35, 40, 0.18);
}

.profile-band {
  padding: 22px clamp(20px, 6vw, 84px);
  background: var(--ink);
  color: #fff;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.profile-summary div {
  min-width: 0;
}

.summary-label {
  display: block;
  color: #c8d3d1;
  font-size: 13px;
}

.profile-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

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

.section-split {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

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

.social-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.avatar {
  width: 76px;
  height: 76px;
  object-fit: cover;
  background: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(31, 35, 40, 0.12);
}

.qr-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: 0;
}

.qr-card img {
  width: 136px;
  height: 136px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-card img {
  object-fit: contain;
  padding: 8px;
}

.social-content p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.work-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.featured-work {
  min-height: 220px;
  border-left: 5px solid var(--accent);
}

.work-tag {
  width: fit-content;
  margin-bottom: 22px;
  padding: 4px 10px;
  color: var(--teal);
  background: #e4f0ee;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.work-card p {
  color: var(--muted);
}

.work-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--accent-dark);
  font-weight: 700;
}

.contact-section {
  padding-top: 20px;
}

.contact-section p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.contact-section a {
  color: var(--accent-dark);
  font-weight: 700;
}

.site-footer {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 28px 20px 34px;
  color: #5f6670;
  background: #fffaf3;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.icp-link {
  color: #4c5663;
  font-size: 14px;
}

.icp-link:hover,
.icp-link:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

  .hero {
    min-height: 86svh;
    padding-top: 78px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(248, 245, 239, 0.96) 0%, rgba(248, 245, 239, 0.86) 58%, rgba(248, 245, 239, 0.55) 100%),
      linear-gradient(0deg, rgba(31, 35, 40, 0.18), rgba(31, 35, 40, 0.02));
  }

  .profile-summary,
  .section-split,
  .work-grid,
  .social-panel {
    grid-template-columns: 1fr;
  }

  .social-panel {
    justify-items: start;
  }
}

@media (max-width: 520px) {
  .section {
    width: min(100% - 32px, 1120px);
    padding: 64px 0;
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }
}
