:root {
  --paper: #fdfbf7;
  --wash: #f5f5f5;
  --ink: #1a1a1a;
  --line: #e2ddd3;
  --mute: rgba(26, 26, 26, 0.58);
  --rail: 296px;
  --shell: 1080px;
  --pad: clamp(20px, 5vw, 56px);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 156px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23f)' opacity='0.13'/%3E%3C/svg%3E");
}

a {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: -80px;
  left: 14px;
  z-index: 60;
  padding: 13px 20px;
  border-radius: 0 0 10px 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  text-decoration: none;
}

.skip:focus {
  top: 0;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(253, 251, 247, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.brandline {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px var(--pad) 2px;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.brandmark img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.brand {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.navline {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad) 10px;
}

.menu-shell {
  position: relative;
}

.menu-shell > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding-right: 4px;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  color: var(--mute);
  cursor: pointer;
  list-style: none;
}

.menu-shell > summary::-webkit-details-marker {
  display: none;
}

.menu-shell > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: translateY(-2px) rotate(45deg);
}

.menu-shell[open] > summary::after {
  transform: translateY(1px) rotate(225deg);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.94rem;
  color: var(--mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

main {
  display: block;
}

.hero {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(20px, 4vh, 34px);
  min-height: 45vh;
  padding: clamp(46px, 9vh, 88px) var(--pad) clamp(28px, 5vh, 46px);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.3rem, 8.2vw, 5.4rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
}

.mark {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(280px, 64%);
  margin: 0;
}

.mark i {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  opacity: 0.16;
}

.mark i:nth-child(2) {
  width: 62%;
  opacity: 0.3;
}

.mark i:nth-child(3) {
  width: 28%;
  opacity: 0.62;
}

.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 5vw, 60px);
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 76px) var(--pad);
}

.prose {
  max-width: 68ch;
  font-size: 1.06rem;
  line-height: 1.85;
}

.prose div[id] {
  scroll-margin-top: 156px;
  padding-block: clamp(26px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.prose div[id]:first-child {
  padding-top: 0;
  border-top: 0;
}

.prose h2 {
  margin: 0 0 0.55em;
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.prose h3 {
  margin: 1.7em 0 0.45em;
  font-size: 1.16rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.prose p {
  margin: 0 0 1.05em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 0.35em;
}

.prose a {
  text-underline-offset: 3px;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 2px 0 2px 1.1em;
  border-left: 2px solid var(--ink);
  color: var(--mute);
}

.prose figure {
  margin: 1.5em 0;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

.rail {
  align-self: start;
  padding: 24px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(9px);
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.03);
}

.rail h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.rail .subtitle {
  margin: 7px 0 16px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--mute);
}

.rail ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.rail li a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 2px;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.rail li a:hover,
.rail li a:focus-visible {
  background: rgba(26, 26, 26, 0.05);
  padding-left: 8px;
}

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.84rem;
  text-decoration: none;
}

.totop:hover {
  background: transparent;
  color: var(--ink);
}

.colophon {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: var(--wash);
}

.foot-head {
  display: grid;
  gap: 22px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 62px) var(--pad) 26px;
}

.foot-brand {
  margin: 0;
  font-size: clamp(1.5rem, 4.2vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sub label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--mute);
}

.sub input {
  flex: 1 1 190px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.sub button {
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

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

.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad) 28px;
}

.foot-grid dl {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.foot-grid dt {
  margin-bottom: 8px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--mute);
}

.foot-grid dd {
  margin: 0;
}

.foot-grid dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.92rem;
  text-decoration: none;
}

.foot-grid dd a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dd-brand {
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 6px 0 2px;
}

.copy {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px var(--pad) 42px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--mute);
}

@media (min-width: 821px) {
  .menu-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 22px;
  }

  .menu-shell > summary {
    cursor: default;
  }
}

@media (max-width: 820px) {
  .menu-shell[open] {
    padding-bottom: 6px;
  }

  .menu {
    flex-direction: column;
    gap: 0;
    margin-top: 4px;
    border-top: 1px solid var(--line);
  }

  .menu li {
    border-bottom: 1px solid var(--line);
  }

  .menu a {
    width: 100%;
    font-size: 0.98rem;
    color: var(--ink);
  }
}

@media (min-width: 900px) {
  .spread {
    grid-template-columns: minmax(0, 1fr) var(--rail);
    align-items: start;
  }

  .rail {
    position: sticky;
    top: 160px;
  }
}

@media (min-width: 760px) {
  .foot-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
  }
}

@media (min-width: 860px) {
  .foot-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }
}

@media (min-width: 1040px) {
  .prose {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .menu > li,
  .rail li {
    animation: rise 0.24s linear both;
  }

  .menu > li:nth-child(1),
  .rail li:nth-child(1) {
    animation-delay: 0.02s;
  }

  .menu > li:nth-child(2),
  .rail li:nth-child(2) {
    animation-delay: 0.06s;
  }

  .menu > li:nth-child(3),
  .rail li:nth-child(3) {
    animation-delay: 0.1s;
  }

  .menu > li:nth-child(4),
  .rail li:nth-child(4) {
    animation-delay: 0.14s;
  }

  .menu > li:nth-child(5),
  .rail li:nth-child(5) {
    animation-delay: 0.18s;
  }

  .menu > li:nth-child(6),
  .rail li:nth-child(6) {
    animation-delay: 0.22s;
  }

  .menu > li:nth-child(7),
  .rail li:nth-child(7) {
    animation-delay: 0.26s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(7px);
    }
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
