:root {
  --ink: #000000;
  --paper: #ffffff;
  --line: rgba(0, 0, 0, 0.16);
  --soft: #f3f3f1;
  --pad: clamp(1rem, 4vw, 3.5rem);
  --shell: 1180px;
}

*,
*::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: "EB Garamond", "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", SimSun, serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  line-height: 1.14;
  letter-spacing: -0.01em;
  font-weight: 700;
}

p {
  margin: 0 0 1.1em;
}

hr {
  border: 0;
  border-top: 1px solid var(--ink);
}

/* 刊头：品牌行与菜单行两行，汉堡遮罩 */
.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.mast-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(0.85rem, 2vw, 1.25rem) var(--pad) 0.7rem;
}

.menu-check {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.brandline {
  position: relative;
  z-index: 2;
  padding-bottom: 0.55rem;
}

.wordmark {
  display: inline-block;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  padding: 0.25rem 0;
}

.ctl {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.35rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.05rem;
  border: 1px solid var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.burger .c {
  display: none;
}

.menu-check:checked ~ .brandline .wordmark,
.menu-check:checked ~ .ctl .cta,
.menu-check:checked ~ .ctl .burger {
  color: var(--paper);
  border-color: var(--paper);
}

.menu-check:checked ~ .ctl .cta:hover {
  background: var(--paper);
  color: var(--ink);
}

.menu-check:checked ~ .ctl .burger .o {
  display: none;
}

.menu-check:checked ~ .ctl .burger .c {
  display: inline;
}

.menu-check:focus-visible ~ .ctl .burger {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* 全屏遮罩导航 */
.shelf {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4.5rem, 14vh, 9rem) var(--pad);
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.shelf p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.4rem;
  max-width: 46rem;
  margin: 0;
  text-align: center;
}

.shelf a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.2rem 0;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  font-size: clamp(1.05rem, 3.1vw, 1.5rem);
  line-height: 1.25;
}

.shelf a:hover {
  border-bottom-color: var(--paper);
}

.menu-check:checked ~ .shelf {
  opacity: 1;
  visibility: visible;
}

/* 版面骨架：主区三列不对称网格 */
main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.4rem) var(--pad) 0;
}

.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(200px, 24vw, 280px);
  column-gap: clamp(1.5rem, 4vw, 3.4rem);
  row-gap: clamp(2rem, 4vw, 3.4rem);
  align-items: start;
}

/* 头图区 */
.hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(0.8rem, 2vw, 1.8rem);
  align-items: end;
  min-height: 45vh;
  padding: clamp(0.7rem, 2vw, 1.4rem);
  border: 1px solid var(--ink);
  background-color: var(--soft);
  background-image: radial-gradient(rgba(0, 0, 0, 0.22) 1px, transparent 1px);
  background-size: 16px 16px;
}

.hero-fig {
  display: flex;
  margin: 0;
  min-height: 190px;
  border: 1px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
}

.hero-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  text-align: right;
  padding-bottom: 0.4rem;
}

.hero-copy h1 {
  font-size: clamp(1.9rem, 5.4vw, 3.4rem);
  margin-bottom: 0.5em;
}

.standfirst {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.62;
  color: #222;
}

/* 正文列 */
.body-col {
  grid-column: 1;
  min-width: 0;
  counter-reset: sec;
}

.body-col > section {
  counter-increment: sec;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(2rem, 4vw, 2.9rem);
  scroll-margin-top: 6rem;
}

.body-col > section:last-of-type {
  margin-bottom: 1rem;
}

.body-col > section::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  margin-bottom: 0.85rem;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #777;
}

.body-col h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}

.body-col h2 + hr {
  margin: 0.15rem 0 1.15rem;
}

.body-col h3 {
  margin-top: 1.8rem;
  font-size: 1.16rem;
}

.body-col p {
  max-width: 66ch;
  line-height: 1.78;
}

.body-col ul,
.body-col ol {
  max-width: 64ch;
  padding-left: 1.25rem;
}

.body-col li {
  margin-bottom: 0.45rem;
}

.body-col blockquote {
  margin: 1.6rem 0;
  padding: 0.15rem 0 0.15rem 1.1rem;
  border-left: 4px solid var(--ink);
  font-size: 1.09rem;
  font-style: italic;
}

.body-col a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.body-col > section:first-of-type > p:first-of-type::first-letter {
  float: left;
  padding: 0.06em 0.12em 0 0;
  font-size: 3.5em;
  line-height: 0.82;
  font-weight: 600;
}

/* 侧栏 */
.rail {
  grid-column: 2;
  position: sticky;
  top: 1.2rem;
  padding-left: 1.1rem;
  border-left: 1px solid var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.rail h2 {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
}

.rail hr {
  border-top-width: 3px;
  margin: 0 0 1rem;
}

.rail ul {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
}

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

.rail li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.15rem 0;
  text-decoration: none;
}

.rail li a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.totop {
  margin: 0;
}

.totop a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  font-size: 0.9rem;
}

/* 页脚 */
.site-foot {
  max-width: var(--shell);
  margin: clamp(2.4rem, 6vw, 4.5rem) auto 0;
  padding: 1.3rem var(--pad) 2.4rem;
  border-top: 4px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem 2rem;
  font-size: 0.95rem;
}

.foot-l address {
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.colophon {
  margin: 0.25rem 0 0;
  color: #444;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.site-foot ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-foot a:hover {
  border-bottom-color: var(--ink);
}

/* 滚动浮现 */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 55ms);
}

.reveal-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* 断点 */
@media (max-width: 900px) {
  main {
    padding-top: 1.1rem;
  }

  .spread {
    grid-template-columns: 1fr;
  }

  .hero,
  .body-col,
  .rail {
    grid-column: 1;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: stretch;
    min-height: 0;
  }

  .hero-fig {
    min-height: clamp(150px, 30vh, 220px);
  }

  .hero-copy {
    padding-bottom: 0.2rem;
  }

  .rail {
    position: static;
    padding: 1rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }

  .site-foot {
    flex-direction: column;
  }

  .site-foot ul {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16.5px;
  }

  .hero-copy h1 {
    font-size: clamp(1.65rem, 8vw, 2.1rem);
  }

  .wordmark {
    letter-spacing: 0.1em;
  }
}

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

  .shelf {
    transition: none;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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