:root {
  --bg: #fff;
  --text: #3f3f43;
  --muted: #8b8c91;
  --line: #d7d7d9;
  --soft: #f7f7f7;
  --accent: #43a9c8;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.58;
  letter-spacing: .018em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 52px clamp(44px, 13.6vw, 104px) 38px;
}

.pill-nav {
  display: grid;
  gap: 11px;
  margin: 0 auto 25px;
}

.pill-nav a,
.button-stack a {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #3c3c40;
  font-size: 19px;
  font-weight: 300;
  letter-spacing: .105em;
  line-height: 1.2;
}

.pill-nav a:focus,
.pill-nav a:hover,
.pill-nav a:nth-child(1) {
  border-color: var(--accent);
  color: var(--accent);
}

.rule {
  border: 0;
  border-top: 2px solid var(--line);
  margin: 23px 0 40px;
}

.section { margin: 0 auto 50px; }
.section-narrow { margin-bottom: 50px; }

.site-logo {
  width: 160px;
  margin: 0 auto 22px;
  opacity: .96;
  image-rendering: pixelated;
}

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

h1 {
  font-size: 33px;
  line-height: 1.28;
  text-align: center;
  font-weight: 300;
  margin-bottom: 13px;
  letter-spacing: .055em;
}

h1 span {
  font-size: 23px;
  color: var(--muted);
  letter-spacing: .085em;
}

.availability {
  text-align: center;
  color: #4f4f53;
  font-size: 17px;
  letter-spacing: .045em;
  margin: 0 0 22px;
  line-height: 1.45;
}

h2 {
  text-align: center;
  font-size: 33px;
  line-height: 1.18;
  font-weight: 300;
  letter-spacing: .11em;
  margin-bottom: 36px;
}

h3 {
  font-size: 29px;
  line-height: 1.16;
  font-weight: 300;
  letter-spacing: .07em;
  margin: 18px 0 14px;
}

p {
  font-size: 21px;
  margin-bottom: 18px;
}

.intro p,
.section-copy,
.project p,
.services li,
.contact p { color: #4d4d51; }

.intro > p:not(.availability),
.section-copy,
.contact > p {
  line-height: 1.72;
  letter-spacing: .02em;
}

.hero-links,
.button-stack {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.hero-links {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 8px;
}

.icon-button {
  color: #c7c7c9;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: .02em;
  text-align: center;
}

.hero-links .icon-button,
.socials .icon-button {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto;
  width: 70px;
}

.hero-links .icon-button {
  gap: 8px;
}

.icon-button__mark {
  width: 70px;
  height: 70px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.button-icon {
  width: 31px;
  height: 31px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button__label {
  display: block;
  line-height: 1;
}

.email-link,
.email-contact {
  color: #8a8a8f;
}

.wechat-link,
.wechat-contact {
  color: #07c160;
}

.wechat-link .icon-button__mark,
.wechat-contact .icon-button__mark {
  border-color: rgba(7, 193, 96, .42);
}

.wechat-link .button-icon,
.wechat-contact .button-icon {
  background: #07c160;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(7, 193, 96, .16);
  color: #fff;
  fill: currentColor;
  height: 34px;
  padding: 5px;
  stroke: none;
  width: 34px;
}

.music-player {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(215, 215, 217, .78);
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(247,247,247,.8));
  padding: 22px 18px 10px;
  box-shadow: 0 18px 42px rgba(63, 63, 67, .08);
}

.music-player audio { display: none; }

.player-display {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 58px;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.play-toggle,
.mute-toggle,
.waveform,
.playlist-track {
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.play-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #8f8f91;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(63, 63, 67, .12);
}

.play-toggle span {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
  margin-left: 3px;
}

.play-toggle.is-playing span {
  width: 12px;
  height: 16px;
  border: 0;
  border-left: 4px solid #fff;
  border-right: 4px solid #fff;
  margin-left: 0;
}

.waveform {
  position: relative;
  overflow: hidden;
  height: 58px;
  background: transparent;
  padding: 0;
}

.waveform-bars,
.waveform-progress {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(50, 1fr);
  gap: 2px;
  align-items: center;
}

.waveform-progress {
  width: 0%;
  overflow: hidden;
  color: var(--accent);
  transition: width .08s linear;
}

.waveform-progress::before {
  content: "";
  width: calc(100vw - 140px);
  max-width: 420px;
  height: 58px;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 7px);
  opacity: .9;
}

.waveform-bars i {
  display: block;
  width: 2px;
  height: var(--bar);
  min-height: 10px;
  margin: auto;
  background: #a8a9ad;
}

.volume-control {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.mute-toggle {
  width: 36px;
  height: 30px;
  background: transparent;
  color: #929398;
  padding: 0;
  line-height: 1;
}

.mute-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.mute-toggle svg path + path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.mute-toggle.is-muted {
  color: var(--accent);
}

.mute-toggle.is-muted svg {
  opacity: .45;
}

.volume-slider {
  width: 54px;
  accent-color: var(--accent);
}

.player-status {
  position: relative;
  z-index: 1;
  color: #4d4d51;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 16px 6px;
}

.playlist {
  position: relative;
  z-index: 1;
  display: grid;
}

.playlist-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  border-top: 1px solid rgba(215, 215, 217, .8);
  background: rgba(255, 255, 255, .54);
  padding: 8px 6px;
  text-align: left;
}

.playlist-track strong,
.playlist-track em,
.playlist-track time {
  display: block;
  font-weight: 300;
  font-style: normal;
}

.playlist-track strong {
  overflow: hidden;
  color: #303036;
  font-size: 17px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-track em {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.playlist-track time {
  color: #303036;
  font-size: 16px;
}

.playlist-track.is-active strong,
.playlist-track:focus strong,
.playlist-track:hover strong {
  color: var(--accent);
}

.play-toggle:focus,
.mute-toggle:focus,
.volume-slider:focus,
.waveform:focus,
.playlist-track:focus {
  outline: 2px solid rgba(67, 169, 200, .38);
  outline-offset: 3px;
}

.project { margin-bottom: 57px; }

.project img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 17px;
  border-radius: 2px;
  background: var(--soft);
}

.project:nth-of-type(1) img { object-position: 58% 50%; }
.project:nth-of-type(2) img { object-position: 54% 50%; }
.project:nth-of-type(3) img { object-position: 50% 50%; }

.project p {
  font-size: 20px;
  margin-bottom: 15px;
  line-height: 1.58;
  letter-spacing: .012em;
}

.project strong {
  font-weight: 400;
  color: #3b3b3f;
}

.button-stack a {
  font-size: 19px;
  margin-top: 8px;
}

.services ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.services li {
  font-size: 20px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  line-height: 1.62;
  letter-spacing: .018em;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  text-align: center;
  margin: 0 auto 36px;
  max-width: 390px;
}

.contact-item .icon-button__mark {
  margin: 0 auto 17px;
}

.contact-item em {
  font-style: normal;
  color: #8a8a8f;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: .025em;
  overflow-wrap: anywhere;
}

.email-contact em {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: clamp(13px, 3.55vw, 16px);
  letter-spacing: .01em;
  line-height: 1.38;
  overflow-wrap: normal;
  word-break: normal;
}

.email-contact em b {
  display: block;
  font: inherit;
  white-space: nowrap;
}


.wechat-contact em {
  color: #5f8f72;
}

.wechat {
  text-align: center;
  scroll-margin-top: 24px;
}

.wechat img {
  width: min(220px, 74vw);
  margin: 0 auto 14px;
  border: 1px solid rgba(7, 193, 96, .36);
  box-shadow: 0 0 0 6px rgba(7, 193, 96, .06);
  padding: 10px;
}

.wechat p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.wechat p strong {
  color: #4d4d51;
  font-weight: 400;
}

footer {
  text-align: center;
  color: #4d4d51;
}

footer .rule { margin-bottom: 34px; }

.socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
}

.socials .icon-button {
  gap: 9px;
}

.socials .icon-button__mark {
  width: 64px;
  height: 64px;
}

.socials .button-icon {
  width: 28px;
  height: 28px;
}

.socials .wechat-link .button-icon {
  width: 31px;
  height: 31px;
}

footer p {
  font-size: 18px;
  white-space: nowrap;
  letter-spacing: .025em;
}

@media (max-width: 430px) {
  .page { padding: 42px clamp(56px, 13.5vw, 60px) 38px; }
  .pill-nav { gap: 10px; margin-bottom: 23px; }
  .pill-nav a,
  .button-stack a { min-height: 45px; font-size: 17px; letter-spacing: .085em; }
  .rule { margin: 23px 0 37px; }
  h1 { font-size: 31px; }
  h1 span { font-size: 22px; }
  .availability { font-size: 16px; letter-spacing: .035em; margin-bottom: 20px; }
  h2 { font-size: 31px; letter-spacing: .09em; margin-bottom: 34px; }
  h3 { font-size: 27px; letter-spacing: .06em; }
  p { font-size: 20px; }
  .project p { font-size: 19px; }
  .project { margin-bottom: 54px; }
  .contact-grid { gap: 10px; }
  .icon-button__mark,
  .contact-item .icon-button__mark { width: 66px; height: 66px; }
  .hero-links .icon-button,
  .socials .icon-button { width: 66px; }
  .contact-item em { font-size: 15px; }
  .email-contact em { font-size: 10.5px; letter-spacing: 0; }
  .wechat img { width: min(214px, 74vw); }
  .site-logo { width: 150px; margin-bottom: 20px; }
  footer p { font-size: 17px; white-space: normal; }
}

@media (min-width: 680px) {
  .page { padding-top: 68px; }
  .pill-nav { max-width: 560px; }
  .hero-links { max-width: 360px; margin-left: auto; margin-right: auto; }
}
