:root {
  color-scheme: light;
  --paper: #faf5f1;
  --sheet: #fffcf8;
  --ink: #302132;
  --muted: #65535d;
  --plum: #773954;
  --plum-dark: #5d2b41;
  --hairline: #e1d0d6;
  --blush: #efe0e6;
  --serif: "Instrument Serif", "Iowan Old Style", "Songti SC", Georgia, "Noto Serif CJK SC", serif;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .65, .3, 1);
  font: 16px/1.7 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

:lang(zh-CN) {
  --serif: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", SimSun, serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

a { color: var(--plum); text-underline-offset: .25em; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.16;
}

.shell { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
main { flex: 1; }

.skip {
  position: fixed;
  z-index: 2;
  inset-block-start: 12px;
  inset-inline-start: var(--gutter);
  translate: 0 calc(-100% - 24px);
  padding: 9px 14px;
  border: 1px solid var(--hairline);
  background: var(--sheet);
}

.skip:focus { translate: none; }

.site-header { border-block-end: 1px solid var(--hairline); }

.header-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
}

.header-inner { min-height: 76px; }
.footer-inner { padding-block: 22px; }

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  color: var(--ink);
  font: 650 1.7rem/1 var(--serif);
  letter-spacing: -.045em;
  white-space: nowrap;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 48% 53% 47% 51%;
  color: #f8e3d6;
  background: radial-gradient(circle at 37% 23%, #995472, var(--plum-dark) 78%);
  box-shadow: inset 0 0 0 1px #55233850, inset 0 2px 3px #ffe6d126;
}

.brand-mark::after {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px clamp(13px, 2.7vw, 36px); }

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: .91rem;
  font-weight: 550;
  text-decoration: none;
}

nav a[aria-current="page"] { color: var(--plum); text-decoration: underline; }
nav .language { color: var(--plum); }
nav .language::before { content: ""; width: 1px; height: 15px; margin-inline-end: clamp(10px, 1.8vw, 22px); background: var(--hairline); }

.homepage { padding-block-start: clamp(28px, 4.2vw, 62px); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .81fr) minmax(0, 1.19fr);
  align-items: stretch;
  border: 1px solid var(--hairline);
  padding: 9px;
  background: var(--sheet);
  box-shadow: 0 19px 49px -36px #61375058;
}

.hero-copy {
  padding: clamp(30px, 4.6vw, 71px) clamp(22px, 4vw, 65px);
  align-self: center;
  container-type: inline-size;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-size: clamp(1.9rem, 14.6cqi, 3.75rem);
  letter-spacing: -.056em;
}

:lang(zh-CN) .hero h1 { font-size: clamp(2.65rem, 5vw, 4.5rem); letter-spacing: -.045em; }
.hero h1 span { display: block; }

.hero p {
  max-width: 32ch;
  margin-block: 22px 29px;
  color: var(--muted);
  font-size: clamp(.98rem, 1.2vw, 1.1rem);
  text-wrap: pretty;
}

:lang(zh-CN) .hero p { max-width: 21em; }

.hero-art {
  position: relative;
  min-height: clamp(400px, 38vw, 535px);
  overflow: hidden;
  isolation: isolate;
  background: #b88786;
}

.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-art::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 12px;
  border: 1px solid #fff2e466;
  pointer-events: none;
}

/* 反光沿照片斜掠一次，图像从首帧开始可见。 */
.hero-art::after {
  content: "";
  position: absolute;
  inset: -30% -50%;
  opacity: 0;
  background: linear-gradient(119deg, transparent 43%, #fff0db3d 49%, transparent 56%);
  pointer-events: none;
  animation: reflection 1.25s .22s var(--ease) both;
}

@keyframes reflection {
  0% { opacity: 0; transform: translateX(-25%); }
  24% { opacity: .85; }
  100% { opacity: 0; transform: translateX(20%); }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.action {
  display: inline-flex;
  align-items: center;
  gap: 23px;
  min-height: 48px;
  padding-inline: 18px;
  border: 1px solid var(--plum);
  border-radius: 3px;
  color: var(--sheet);
  background: var(--plum);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 650;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}

.action--secondary {
  color: var(--plum);
  background: transparent;
  border-color: var(--hairline);
}

.down-arrow {
  position: relative;
  width: 10px;
  height: 13px;
  transition: transform 160ms var(--ease);
}

.down-arrow::before, .down-arrow::after {
  content: "";
  position: absolute;
}

.down-arrow::before { inset: 1px 4.5px 2px; border-inline-start: 1px solid; }
.down-arrow::after { inset: auto 1.5px 2px; height: 7px; border-inline-end: 1px solid; border-block-end: 1px solid; transform: rotate(45deg); }

.action:active { background: var(--plum-dark); border-color: var(--plum-dark); }
.action--secondary:active { color: var(--sheet); }

@media (hover: hover) {
  nav a:hover { color: var(--plum); text-decoration: underline; }
  .action:hover { background: var(--plum-dark); border-color: var(--plum-dark); }
  .action--secondary:hover { color: var(--sheet); }
  .action:hover .down-arrow { transform: translateY(2px); }
}

.experience {
  margin-block: clamp(48px, 7.5vw, 105px) clamp(54px, 8vw, 108px);
  scroll-margin-block-start: 24px;
}

.experience h2 { font-size: clamp(2rem, 3.7vw, 3.25rem); letter-spacing: -.045em; text-wrap: balance; }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block-start: 24px;
  border-block: 1px solid var(--hairline);
}

.features article { padding: 26px clamp(20px, 3vw, 46px) 31px; }
.features article:first-child { padding-inline-start: 0; }
.features article + article { border-inline-start: 1px solid var(--hairline); }
.features h3 { margin-block: 14px 8px; font-size: clamp(1.4rem, 2.3vw, 1.75rem); }
.features p { max-width: 37ch; color: var(--muted); font-size: .96rem; text-wrap: pretty; }

/* 信笺、对话与书页共享线宽，作为玩法的小插图。 */
.motif {
  position: relative;
  display: block;
  width: 46px;
  height: 40px;
  color: var(--plum);
}

.motif::before, .motif::after { content: ""; position: absolute; }

.motif--letter::before {
  inset: 9px 4px 7px 1px;
  border: 1px solid;
  border-radius: 3px;
  background: var(--blush);
  transform: rotate(-9deg);
}

.motif--letter::after {
  inset: 10px auto auto 11px;
  width: 20px;
  height: 14px;
  border: solid;
  border-width: 0 1px 1px 0;
  transform: rotate(26deg) skew(-19deg);
}

.motif--conversation::before, .motif--conversation::after {
  border: 1px solid;
  border-radius: 15px 15px 15px 3px;
}

.motif--conversation::before { inset: 4px 11px 13px 1px; background: var(--blush); }
.motif--conversation::after { inset: 14px 2px 4px 13px; background: var(--sheet); transform: scaleX(-1); }

.motif--book::before, .motif--book::after { border: 1px solid; border-radius: 2px 5px 0 2px; }
.motif--book::before { inset: 6px 22px 6px 1px; background: var(--blush); transform: skewY(8deg); }
.motif--book::after { inset: 6px 1px 6px 23px; background: var(--sheet); transform: scaleX(-1) skewY(8deg); }

.document { max-width: 840px; padding-block: clamp(24px, 5vw, 68px); }

.document-sheet {
  padding: clamp(24px, 6vw, 70px);
  border: 1px solid var(--hairline);
  background: var(--sheet);
  box-shadow: 0 19px 49px -36px #61375058;
}

.document h1 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -.046em; }
.document h2 { font-size: clamp(1.3rem, 2.3vw, 1.65rem); }
.document section { margin-block-start: 28px; border-block-start: 1px solid var(--hairline); padding-block-start: 22px; }
.document p { margin-block-start: 8px; color: var(--muted); overflow-wrap: anywhere; }
.document .date { font-size: .9rem; margin-block-start: 13px; }
.document .contact { margin-block-start: 28px; }

.site-footer { border-block-start: 1px solid var(--hairline); }
.site-footer .brand { color: var(--muted); font-size: 1.22rem; }
.site-footer .brand-mark { flex-basis: 20px; width: 20px; height: 20px; }
.site-footer .brand-mark::after { width: 10px; height: 10px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 29px clamp(18px, 5vw, 42px) 28px; }
  .hero-art { min-height: 0; aspect-ratio: 1.5; }
}

@media (max-width: 570px) {
  .header-inner { min-height: 62px; }
  .header-inner nav { gap: 3px 11px; }
  nav a { font-size: .82rem; }
  .brand { gap: 6px; font-size: 1.36rem; }
  .brand-mark { flex-basis: 22px; width: 22px; height: 22px; }
  .brand-mark::after { width: 12px; height: 12px; }
  .homepage { padding-block-start: 20px; }
  .hero { padding: 6px; }
  .hero-art { aspect-ratio: 1.34; }
  .hero-art::before { inset: 8px; }
  .hero p { margin-block: 16px 21px; }
  .experience { margin-block: 42px 48px; }
  .features { grid-template-columns: 1fr; margin-block-start: 18px; }
  .features article { display: grid; grid-template-columns: 46px 1fr; gap: 5px 13px; align-items: center; padding: 17px 0; }
  .features article + article { border-inline-start: none; border-block-start: 1px solid var(--hairline); }
  .features .motif { grid-row: span 2; align-self: start; }
  .features h3 { margin: 0; }
  .footer-inner { flex-wrap: wrap; padding-block: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art::after { animation: none; }
  .action, .down-arrow { transition: none; }
}
