:root {
  --bg: #f3eee4;
  --bg-soft: #ebe4d6;
  --ink: #1a1814;
  --ink-soft: #4a453c;
  --line: rgba(26, 24, 20, 0.16);
  --accent: #b44a28;
  --accent-soft: #d9b39a;
  --serif: "Noto Serif SC", "Cormorant Garamond", "Songti SC", serif;
  --sans: "DM Sans", "PingFang SC", "Noto Sans SC", sans-serif;
  --display: "Cormorant Garamond", "Noto Serif SC", 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: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

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

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

button, input, textarea {
  font: inherit;
  color: inherit;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 7vw;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav-mark {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

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

.nav-toggle {
  display: none;
  width: 36px;
  height: 28px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
  margin: 7px 0;
}

.hero {
  min-height: 100vh;
  padding: 22vh 7vw 12vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.hero-title {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
}

.hero-en {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-zh {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(64px, 12vw, 148px);
  line-height: 0.92;
  letter-spacing: 0.08em;
}

.hero-lead {
  max-width: 560px;
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.hero-meta a {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.scroll-hint {
  position: absolute;
  right: 7vw;
  bottom: 8vh;
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--ink-soft);
}

.section {
  padding: 120px 7vw;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 64px;
}

.index {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

.monogram {
  color: var(--ink);
  background: var(--bg-soft);
}

.portrait-caption {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.about-copy p {
  max-width: 58ch;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 17px;
}

.facts {
  display: grid;
  gap: 22px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.facts dd {
  font-family: var(--serif);
  font-size: 20px;
}

.work-list {
  list-style: none;
}

.work-item + .work-item {
  border-top: 1px solid var(--line);
}

.work-item a {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
  transition: transform 0.25s ease;
}

.work-item a:hover {
  transform: translateX(8px);
}

.work-year,
.work-num {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  padding-top: 8px;
}

.work-body h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  margin-bottom: 10px;
}

.work-body p {
  max-width: 62ch;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

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

.tags em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.skill-grid article {
  background: var(--bg);
  padding: 36px 32px;
}

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

.skill-grid p {
  color: var(--ink-soft);
  max-width: 42ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-intro p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 36ch;
  margin-bottom: 28px;
}

.mail {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  margin-bottom: 36px;
}

.social {
  list-style: none;
  display: flex;
  gap: 24px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.social a:hover {
  color: var(--accent);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 12px;
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--ink);
}

.contact-form button {
  justify-self: start;
  margin-top: 8px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.contact-form button:hover {
  background: transparent;
  color: var(--ink);
}

.form-note {
  font-size: 13px;
  color: var(--accent);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 7vw 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 18px;
    padding: 24px 7vw 32px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .hero {
    padding-top: 28vh;
  }

  .scroll-hint {
    display: none;
  }

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

  .work-item a {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .work-num {
    display: none;
  }

  .section {
    padding: 88px 6vw;
  }
}
