@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --pad: clamp(1rem, 4vw, 3rem);
  --maxw: 1180px;
  --display: 'Lexend Mega', 'Public Sans', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  --text: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ink);
  color: var(--paper);
}

.brandrow {
  padding: clamp(0.9rem, 3vw, 1.35rem) var(--pad);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.35rem, 5.5vw, 2rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.brand .mark {
  width: 1.5em;
  height: 1.5em;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav {
  padding: 0 var(--pad);
}

.nav p {
  display: flex;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav p::-webkit-scrollbar {
  display: none;
}

.nav a {
  display: inline-block;
  padding: 0.95rem 0.85rem;
  min-height: 44px;
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 3px solid transparent;
}

.nav a:first-child {
  padding-left: 0;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  min-height: calc(100svh - 7rem);
  display: grid;
  align-content: center;
  gap: clamp(1.1rem, 3vw, 2.2rem);
  padding: clamp(2rem, 6vw, 4rem) var(--pad) clamp(4.5rem, 13vw, 10rem);
}

.hero h1 {
  font-size: clamp(3rem, 12vw, 11rem);
  letter-spacing: -0.065em;
  line-height: 0.84;
  max-width: 14ch;
  word-break: break-word;
}

.hero .lead {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(2.5rem, 9vw, 8rem);
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(196px, 255px);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 6rem);
}

article section[id] {
  scroll-margin-top: 8.5rem;
  padding-top: clamp(1.5rem, 4vw, 2.75rem);
}

article section[id]:first-child {
  padding-top: 0;
}

article h2 {
  font-size: clamp(1.7rem, 4.6vw, 3rem);
  line-height: 1;
}

article h2 + hr {
  border: 0;
  border-top: 3px solid var(--ink);
  margin: 0.85rem 0 1.5rem;
}

article h3 {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  margin: 2.2rem 0 0.6rem;
}

article p {
  margin: 1rem 0;
  max-width: 66ch;
}

article ul,
article ol {
  max-width: 66ch;
  padding-left: 1.2rem;
}

article li {
  margin: 0.45rem 0;
}

article a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

article strong {
  font-weight: 700;
}

article blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 4px solid var(--ink);
  font-size: 1.05rem;
}

.side {
  position: sticky;
  top: 7.75rem;
  background: var(--ink);
  color: var(--paper);
  padding: 1.25rem 1.15rem 1.5rem;
}

.side-title {
  font-size: 1rem;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.side hr {
  border: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.6);
  margin: 0.7rem 0 1rem;
}

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

.side-list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.side-list a {
  display: block;
  padding: 0.7rem 0;
  min-height: 40px;
  font-size: 0.95rem;
  text-decoration: none;
}

.side-list a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

footer {
  background: var(--ink);
  color: var(--paper);
  margin-top: clamp(2rem, 6vw, 4rem);
  padding: clamp(2.2rem, 6vw, 3.5rem) var(--pad) 1.6rem;
}

.fcols {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

footer dl {
  margin: 0;
}

footer dt {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

footer dd {
  margin: 0;
}

footer dd a {
  display: inline-block;
  min-height: 40px;
  padding: 0.45rem 0;
  line-height: 1.5;
  font-size: 0.95rem;
  text-decoration: none;
}

footer dd a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.copy {
  max-width: var(--maxw);
  margin: 1.9rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  min-height: 44px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.to-top.on {
  opacity: 1;
  pointer-events: auto;
}

[data-rv] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-rv].in {
  opacity: 1;
  transform: none;
}

@media (max-width: 880px) {
  .col {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
  }
}

@media (max-width: 600px) {
  .fcols {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 15vw, 4.5rem);
  }

  .hero {
    min-height: calc(100svh - 8.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-rv] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .to-top {
    transition: none;
  }
}

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