@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;
  --line: #000000;
  --hair: rgba(0, 0, 0, 0.16);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Cormorant Garamond", "Libre Baskerville", "Songti SC", "SimSun", serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

body > * {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 44px);
}

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

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
}

p {
  margin: 0 0 1.1em;
}

/* ---------- 跳转 ---------- */

.jump {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: top 0.2s ease;
}

.jump:focus {
  top: 12px;
}

/* ---------- 页头 ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand .mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.menu {
  position: relative;
}

.menu summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 0.06em;
  cursor: pointer;
  list-style: none;
  transition: background 0.22s ease, color 0.22s ease;
}

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

.menu summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.22s ease;
}

.menu summary:hover,
.menu[open] summary {
  background: var(--ink);
  color: var(--paper);
}

.menu[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.menu menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, calc(100vw - 40px));
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
}

.menu menu li + li {
  border-top: 1px solid var(--hair);
}

.menu menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 8px 12px;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease;
}

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

.idx {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.12em;
  opacity: 0.55;
  flex: none;
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 2rem;
  align-items: end;
  min-height: 45vh;
  padding-block: clamp(36px, 7vh, 72px) clamp(28px, 5vh, 52px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background-image: radial-gradient(rgba(0, 0, 0, 0.22) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 var(--py, 0px);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.hero-copy {
  text-align: right;
}

.hero h1 {
  margin-left: auto;
  max-width: 24ch;
  font-size: clamp(32px, 5.6vw, 62px);
  letter-spacing: -0.01em;
}

.ticker {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  min-height: 28px;
}

.tick {
  display: none;
  letter-spacing: 0.16em;
}

.tick.is-on {
  display: block;
}

/* ---------- 主体 ---------- */

main {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(32px, 5vw, 64px);
}

.side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 32px;
}

.side-block h2 {
  font-size: 20px;
  letter-spacing: 0.14em;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.find {
  display: grid;
  gap: 8px;
}

.find input {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.find input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.find button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}

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

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

.index li + li {
  border-top: 1px solid var(--hair);
}

.index a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 42px;
  padding: 8px 0;
  text-decoration: none;
  transition: opacity 0.22s ease;
}

.index a:hover {
  opacity: 0.5;
}

div {
  min-width: 0;
}

div > section {
  padding-block: clamp(24px, 3vw, 40px);
  scroll-margin-top: 96px;
}

div > section:first-child {
  padding-top: 0;
}

div > section + section {
  border-top: 1px solid var(--line);
}

div h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: 16px;
}

div h2 span {
  display: inline;
}

div h3 {
  font-size: clamp(20px, 2.6vw, 24px);
  margin: 26px 0 12px;
}

div p,
div ul,
div ol,
div blockquote {
  max-width: 68ch;
}

div ul,
div ol {
  padding-left: 1.25em;
  margin: 0 0 1.2em;
}

div li {
  margin-bottom: 0.45em;
}

div a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

div blockquote {
  margin: 1.4em 0;
  padding-left: 18px;
  border-left: 2px solid var(--line);
  font-family: var(--serif);
  font-size: 19px;
}

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

/* ---------- 页脚 ---------- */

footer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-block: clamp(32px, 4vw, 48px) 24px;
}

.foot-brand .name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.foot-brand p {
  margin: 10px 0 0;
  max-width: 34ch;
  opacity: 0.7;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

footer dl {
  margin: 0;
}

footer dt {
  letter-spacing: 0.16em;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

footer dd {
  margin: 0;
}

footer dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  transition: opacity 0.22s ease;
}

footer dd a:hover {
  opacity: 0.5;
}

.foot-base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.foot-base a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
}

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

/* ---------- 断点 ---------- */

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

  .side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-block: 32px 26px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero h1 {
    margin-left: 0;
  }

  .ticker {
    justify-content: flex-start;
  }

  footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 19px;
  }

  .side {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  * {
    transition: none !important;
  }
}

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