@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --dim: rgba(0, 0, 0, 0.62);
  --faint: rgba(0, 0, 0, 0.14);
  --glass: rgba(255, 255, 255, 0.56);
  --disp: 'Cormorant Garamond', Georgia, 'Songti SC', 'SimSun', serif;
  --serif: 'Libre Baskerville', Georgia, 'Songti SC', 'SimSun', serif;
  --r: 18px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

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

a {
  color: inherit;
}

hr {
  border: 0;
  border-top: 1.5px solid var(--ink);
  margin: 12px 0 24px;
}

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

/* 顶部横条 */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1.5px solid var(--ink);
}

.plate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 2px;
  text-decoration: none;
  font-family: var(--disp);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease;
}

.plate:hover {
  border-bottom-color: var(--ink);
}

.mark {
  font-size: 1.1rem;
}

.pills {
  flex: 1 1 140px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pills::-webkit-scrollbar {
  display: none;
}

.pills ul {
  display: flex;
  gap: 7px;
  margin: 0;
  padding: 2px;
  list-style: none;
}

.pills a {
  display: block;
  white-space: nowrap;
  padding: 11px 15px;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.pills a:hover,
.pills a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 18px;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.cta:hover {
  transform: translateY(-2px);
  opacity: 0.86;
}

/* 头图 */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: start;
  padding: clamp(30px, 10vh, 100px) 18px 140px;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}

.hero-plate {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 15ch;
}

.hero h1 {
  margin: 0;
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(2.35rem, 9vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
}

.slash {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: 6%;
  height: 22vh;
  background: var(--ink);
  transform: skewY(-4.5deg);
  z-index: 1;
}

/* 版面栅格 */
.spread {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1250px;
  margin: 0 auto;
  padding: 26px 16px 66px;
}

@media (min-width: 900px) {
  .spread {
    grid-template-columns: 214px minmax(0, 1fr);
    gap: 52px;
    padding: 54px 30px 100px;
    align-items: start;
  }
}

.rail {
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  padding: 12px 14px;
  min-width: 0;
}

@media (min-width: 900px) {
  .rail {
    position: sticky;
    top: 88px;
  }
}

.rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rail;
}

.rail li {
  counter-increment: rail;
  border-top: 1px solid var(--faint);
}

.rail li:first-child {
  border-top: 0;
}

.rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 2px;
  font-size: 16px;
  line-height: 1.45;
  text-decoration: none;
  transition: padding-left 0.24s ease;
}

.rail a::before {
  content: counter(rail, decimal-leading-zero);
  font-family: var(--disp);
  font-size: 15px;
  letter-spacing: 0.1em;
  opacity: 0.55;
}

.rail a:hover {
  padding-left: 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rail-fig {
  margin: 16px 0 2px;
}

.rail-fig img {
  border-radius: 12px;
  border: 1.5px solid var(--ink);
  filter: grayscale(1) contrast(1.05);
}

/* 正文 */
.copy {
  min-width: 0;
}

.copy > article {
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  padding: 22px 18px 26px;
  margin: 0 0 26px;
}

@media (min-width: 900px) {
  .copy > article {
    padding: 36px 36px 40px;
    margin-bottom: 44px;
  }
}

@media (min-width: 1080px) {
  .copy > article {
    column-count: 2;
    column-gap: 2.8rem;
    column-rule: 1px solid var(--faint);
  }

  .copy > article h2,
  .copy > article h3,
  .copy > article hr,
  .copy > article figure,
  .copy > article blockquote,
  .copy > article ul,
  .copy > article ol {
    column-span: all;
  }
}

.copy h2,
.copy h3 {
  font-family: var(--disp);
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.16;
  break-after: avoid;
}

.copy h2 {
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  margin: 0 0 4px;
}

.copy h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin: 6px 0 4px;
}

.copy h2 + hr,
.copy h3 + hr {
  margin: 10px 0 20px;
}

.copy p {
  margin: 0 0 1.15em;
}

.copy article > p:first-of-type::first-letter {
  float: left;
  font-family: var(--disp);
  font-size: 3.4em;
  line-height: 0.78;
  font-weight: 600;
  padding: 0.1em 0.14em 0 0;
}

.copy a {
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: background 0.2s ease, color 0.2s ease;
}

.copy a:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.copy ul,
.copy ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.copy li {
  margin-bottom: 0.45em;
}

.copy blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--ink);
  font-family: var(--disp);
  font-size: clamp(1.3rem, 3vw, 1.55rem);
  line-height: 1.42;
  font-weight: 500;
}

.copy blockquote p:last-child {
  margin-bottom: 0;
}

.copy figure {
  margin: 24px 0;
}

.copy figure img {
  border-radius: var(--r);
  border: 1.5px solid var(--ink);
}

.copy figcaption {
  font-size: 16px;
  line-height: 1.6;
  color: var(--dim);
  padding-top: 8px;
}

.copy time {
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.copy strong {
  font-weight: 700;
}

.copy hr {
  column-span: all;
}

/* 页脚 */
.colophon {
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
  padding: 44px 16px 22px;
}

@media (min-width: 820px) {
  .colophon {
    grid-template-columns: 1.5fr 1fr 1fr 0.85fr;
    gap: 34px;
    padding: 60px 34px 26px;
  }
}

.colophon article {
  min-width: 0;
}

.colophon h2 {
  font-family: var(--disp);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0 0 4px;
  line-height: 1.2;
}

.colophon hr {
  border-top: 1.5px solid rgba(255, 255, 255, 0.55);
  margin: 8px 0 0;
}

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

.colophon li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.colophon a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  font-size: 16px;
  line-height: 1.45;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.22s ease, opacity 0.22s ease;
}

.colophon a:hover {
  border-bottom-color: var(--paper);
  opacity: 0.9;
}

.baseline {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  margin-top: 6px;
  padding-top: 12px;
  font-size: 16px;
}

.baseline a {
  min-height: 40px;
}

/* 滚动显现 */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pills a,
  .cta,
  .plate,
  .rail a,
  .colophon a {
    transition: none;
  }
}

@media (max-width: 640px) {
  .pills {
    order: 3;
    flex: 1 0 100%;
  }

  .pills ul {
    gap: 6px;
  }

  .hero {
    padding-bottom: 120px;
  }

  .slash {
    height: 16vh;
  }

  .copy h2,
  .colophon h2 {
    font-size: 1.55rem;
  }
}

article[id] {
  scroll-margin-top: 104px;
}

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