:root {
  color-scheme: light;
  --bg: #f2f4ef;
  --paper: #fffdf8;
  --ink: #171a18;
  --muted: #66716a;
  --soft: #e6ece6;
  --line: rgba(23, 26, 24, 0.13);
  --accent: #a93545;
  --accent-2: #1b6d6a;
  --accent-3: #b68024;
  --shadow: 0 18px 44px rgba(23, 26, 24, 0.12);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(242, 244, 239, 0.96)),
    var(--bg);
  color: var(--ink);
}

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

.site-shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 68px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--paper);
  display: grid;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 800;
  height: 38px;
  place-items: center;
  width: 38px;
}

.brand-text {
  min-width: 0;
}

.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-handle {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a,
.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 750;
  min-height: 38px;
  padding: 0 16px;
}

.nav a {
  color: var(--muted);
}

.nav a:hover {
  background: rgba(23, 26, 24, 0.06);
  color: var(--ink);
}

.button {
  background: var(--ink);
  color: var(--paper);
  justify-content: center;
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero {
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.82fr);
  min-height: calc(88svh - 68px);
  padding: 72px clamp(18px, 5vw, 72px) 58px;
}

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

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  margin-bottom: 18px;
  text-transform: uppercase;
}

h1 {
  font-size: 86px;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 20px;
}

.hero-tagline {
  color: var(--accent-2);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 14px;
}

.intro {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.55;
  margin: 0;
  max-width: 690px;
}

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

.hero-media {
  align-self: stretch;
  border: 1px solid rgba(23, 26, 24, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 460px;
  overflow: hidden;
  position: relative;
}

.hero-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-placeholder {
  align-content: end;
  background:
    linear-gradient(155deg, rgba(27, 109, 106, 0.88), rgba(23, 26, 24, 0.84) 48%, rgba(169, 53, 69, 0.86)),
    var(--ink);
  color: var(--paper);
  display: grid;
  height: 100%;
  min-height: 460px;
  padding: 34px;
}

.placeholder-kicker {
  color: rgba(255, 253, 248, 0.72);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.placeholder-name {
  font-size: 36px;
  font-weight: 880;
  line-height: 1.1;
  margin-top: 8px;
}

.placeholder-copy {
  color: rgba(255, 253, 248, 0.76);
  font-size: 16px;
  line-height: 1.5;
  margin-top: 10px;
}

.stats {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
  padding-top: 22px;
}

.stat {
  min-width: 0;
}

.stat-value {
  font-size: 21px;
  font-weight: 850;
  line-height: 1.18;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.section {
  padding: 72px clamp(18px, 5vw, 72px);
}

.section.alt {
  background: rgba(255, 253, 248, 0.62);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

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

.section-title {
  font-size: 44px;
  line-height: 1.08;
  margin: 0;
}

.section-note {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 560px;
}

.profile-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

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

.fact-card,
.skill-panel,
.work-category,
.media-card,
.image-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fact-card {
  min-height: 102px;
  padding: 18px;
}

.fact-label,
.panel-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.fact-value {
  font-size: 22px;
  font-weight: 850;
  line-height: 1.24;
  margin-top: 10px;
}

.skill-panel {
  padding: 20px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.skill-pill,
.note-pill {
  background: var(--soft);
  border: 1px solid rgba(23, 26, 24, 0.08);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  min-height: 34px;
  padding: 10px 13px;
}

.work-grid {
  column-gap: 18px;
  columns: 3 300px;
}

.work-category {
  break-inside: avoid;
  display: inline-block;
  margin: 0 0 18px;
  padding: 20px;
  width: 100%;
}

.work-category h3 {
  color: var(--accent-2);
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 14px;
}

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

.work-category li {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 5px;
  padding-top: 12px;
}

.work-category li:first-child {
  border-top: 0;
  padding-top: 0;
}

.work-category span {
  font-size: 15px;
  font-weight: 720;
  line-height: 1.45;
}

.work-category small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.media-card {
  padding: 20px;
}

.media-card-head {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  gap: 12px;
  justify-content: space-between;
}

.media-card-head strong {
  color: var(--accent-3);
}

.media-card h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 18px 0 16px;
}

.media-status {
  align-items: center;
  background: rgba(182, 128, 36, 0.12);
  border: 1px solid rgba(182, 128, 36, 0.22);
  border-radius: 999px;
  color: #7d5414;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 30px;
  padding: 7px 11px;
}

.gallery-block {
  margin-top: 30px;
}

.gallery-block .panel-label {
  margin-bottom: 14px;
}

.image-card {
  overflow: hidden;
}

.image-card img {
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  width: 100%;
}

.image-meta {
  padding: 14px 16px 16px;
}

.image-title {
  font-weight: 800;
}

.image-alt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 5px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
}

.contact-section {
  align-items: start;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
}

.contact-section .eyebrow {
  color: #f0b64e;
}

.contact-copy p {
  color: rgba(255, 253, 248, 0.76);
  font-size: 19px;
  line-height: 1.72;
  margin: 0 0 22px;
}

.social-list,
.note-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.note-list {
  margin-top: 20px;
}

.social-chip {
  align-items: center;
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 999px;
  color: var(--paper);
  display: inline-flex;
  gap: 10px;
  min-height: 38px;
  padding: 9px 14px;
}

.social-chip small {
  color: rgba(255, 253, 248, 0.64);
}

.note-pill {
  background: rgba(255, 253, 248, 0.08);
  border-color: rgba(255, 253, 248, 0.14);
  color: rgba(255, 253, 248, 0.82);
}

.footer {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 16px;
  justify-content: space-between;
  padding: 34px clamp(18px, 5vw, 72px);
}

@media (max-width: 980px) {
  .topbar {
    height: auto;
    min-height: 64px;
  }

  .nav {
    display: none;
  }

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

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

  .hero-media,
  .hero-placeholder {
    min-height: 360px;
  }

  h1 {
    font-size: 64px;
  }

  .media-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero {
    gap: 32px;
    padding-bottom: 42px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-tagline {
    font-size: 17px;
  }

  .intro,
  .contact-copy p {
    font-size: 17px;
  }

  .section {
    padding: 52px 18px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .section-title {
    font-size: 34px;
  }

  .stats,
  .fact-grid,
  .media-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-placeholder {
    padding: 24px;
  }
}
