:root {
  --bg: #f6f4ef;
  --bg-elev: #fffdf8;
  --ink: #1c1b19;
  --muted: #6b675f;
  --line: #e4e0d6;
  --accent: #8a4b2a;
  --max: 1080px;
  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  --sans: "Inter", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

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

img {
  max-width: 100%;
  display: block;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--ink);
  z-index: 60;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: var(--ink);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px 96px;
}

.hero {
  padding: 96px 0 120px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 560px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.btn.primary {
  background: var(--ink);
  color: var(--bg);
}

.btn.ghost {
  background: transparent;
}

.btn:hover {
  opacity: 0.78;
}

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 48px;
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.25;
}

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

.about-copy p + p {
  margin-top: 18px;
}

.facts {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 28px;
}

.facts dl {
  display: grid;
  gap: 22px;
}

.facts dt {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  font-family: var(--serif);
  margin-top: 4px;
}

.work-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.work-item {
  padding: 32px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  min-height: 240px;
}

.work-item:hover {
  border-color: #cfc8b8;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.work-item h3 {
  font-family: var(--serif);
  font-size: 28px;
  margin-bottom: 12px;
}

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

.tags {
  margin-top: 24px;
  font-size: 13px;
  color: var(--accent);
}

.timeline {
  list-style: none;
  display: grid;
  gap: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.time {
  color: var(--muted);
  font-size: 14px;
  padding-top: 6px;
}

.timeline h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 8px;
}

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

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.skill-grid h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 16px;
}

.skill-grid ul {
  list-style: none;
  color: var(--muted);
}

.skill-grid li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.contact {
  border-bottom: 0;
}

.contact-lead {
  max-width: 520px;
  color: var(--muted);
  margin-bottom: 28px;
}

.email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

.socials {
  display: flex;
  gap: 24px;
  list-style: none;
  margin-top: 36px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 32px 48px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 800px) {
  .site-header {
    padding: 16px 20px;
  }

  main {
    padding: 0 20px 72px;
  }

  .hero {
    padding: 64px 0 80px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 16px;
    color: var(--ink);
  }

  .menu-btn {
    display: block;
  }

  .about-grid,
  .work-list,
  .skill-grid,
  .timeline li {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section {
    padding: 72px 0;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    padding: 24px 20px 40px;
  }
}
