@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --paper: #fdfbf7;
  --paper2: #f5f5f5;
  --ink: #1a1a1a;
  --line: #e0e0e0;
  --mute: #6f6a63;
  --r: 18px;
  --wrap: 1080px;
  --fx: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --serif: Georgia, 'Songti SC', 'Noto Serif CJK SC', 'Source Han Serif 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(--fx);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

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

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

img { max-width: 100%; }

.jump {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 70;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: .9rem;
}
.jump:focus { left: .75rem; top: .6rem; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.masthead-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: .45rem 1rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .15rem .2rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  white-space: nowrap;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border: 2px solid var(--ink);
  transform: rotate(45deg);
  display: block;
  flex: 0 0 auto;
}

.brand:hover .brand-mark { background: var(--ink); }

.find {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
  flex: 1 1 130px;
  max-width: 250px;
  min-width: 0;
}

.find input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  font: inherit;
  font-size: .92rem;
  padding: .45rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper2);
  color: var(--ink);
}
.find input::placeholder { color: var(--mute); }
.find input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }

.find button {
  min-height: 42px;
  font: inherit;
  font-size: .88rem;
  padding: .35rem .85rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background-color 90ms linear;
  white-space: nowrap;
}
.find button:hover { background: #000; }

.deck { position: relative; }

.deck summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .3rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper2);
  font-size: .93rem;
  cursor: pointer;
  transition: border-color 90ms linear;
}
.deck summary::-webkit-details-marker { display: none; }
.deck summary:hover { border-color: var(--ink); }
.deck[open] summary { border-color: var(--ink); background: var(--paper); }

.bars {
  position: relative;
  width: 15px;
  height: 2px;
  background: var(--ink);
  display: block;
}
.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 15px;
  height: 2px;
  background: var(--ink);
}
.bars::before { top: -5px; }
.bars::after { top: 5px; }

.deck menu {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  z-index: 55;
  margin: 0;
  padding: .4rem;
  min-width: min(78vw, 290px);
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 22px 44px -26px rgba(26, 26, 26, .5);
}
.deck menu li { margin: 0; }
.deck menu a {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .45rem .7rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: .96rem;
  transition: background-color 90ms linear;
}
.deck menu a:hover { background: var(--paper2); }

.dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink);
  opacity: .4;
}

/* ---------- main / hero ---------- */
main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.hero {
  position: relative;
  grid-column: 1 / -1;
  min-height: 45vh;
  padding: 2.4rem 0 2.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.hero-in {
  width: 100%;
  text-align: right;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 7.4vw, 4.1rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.025em;
}

.band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 7px;
  background: var(--ink);
  transform: skewY(-.7deg);
  transform-origin: left bottom;
  display: block;
}

/* ---------- rail ---------- */
.rail {
  grid-column: 1;
  align-self: start;
  padding: .95rem .9rem 1rem;
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 16px 32px -28px rgba(26, 26, 26, .55);
}

.rail-t {
  margin: 0 0 .55rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--mute);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 .6rem;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: .2rem 0;
  font-size: .93rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.rail-list a:hover { border-bottom-color: var(--ink); }

/* ---------- section ---------- */
.sheet {
  grid-column: 1;
  min-width: 0;
}

.lede {
  max-width: 68ch;
  padding-bottom: 1.1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.lede h2 {
  margin: 0 0 .4rem;
  font-size: clamp(1.35rem, 3.4vw, 1.65rem);
  line-height: 1.3;
  letter-spacing: -.015em;
  font-weight: 700;
}

.subtitle {
  margin: 0;
  color: var(--mute);
  font-size: .97rem;
  line-height: 1.7;
}

.content {
  max-width: 68ch;
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.95;
  letter-spacing: .005em;
}

.content > * + * { margin-top: 1.05em; }

.content h2 {
  margin: 0;
  font-family: var(--fx);
  font-size: 1.4rem;
  line-height: 1.34;
  font-weight: 700;
  letter-spacing: -.012em;
}

.content h3 {
  margin: 0;
  font-family: var(--fx);
  font-size: 1.14rem;
  line-height: 1.4;
  font-weight: 600;
}

.content p { margin: 0; }

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

.content ul,
.content ol {
  margin: 0;
  padding-left: 1.35em;
}
.content li { margin: .35em 0; }

.content blockquote {
  margin: 0;
  padding: .25rem 0 .25rem 1.1rem;
  border-left: 3px solid var(--ink);
  color: #3a3a3a;
}

.content img {
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--fx);
  font-size: .95rem;
}
.content th,
.content td {
  border: 1px solid var(--line);
  padding: .5rem .6rem;
  text-align: left;
  vertical-align: top;
}

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

.content div + div {
  margin-top: 2.3rem;
  padding-top: 2.3rem;
  border-top: 1px solid var(--line);
}

main div[id] { scroll-margin-top: 84px; }

/* ---------- footer ---------- */
.foot {
  margin-top: 1rem;
  padding: 2rem 1rem 1.2rem;
  background: var(--paper2);
  border-top: 1px solid var(--line);
}

.foot-top,
.sub,
.foot-base {
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
}

.foot-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

.foot address {
  font-style: normal;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: .02em;
}

.foot-desc {
  margin: .5rem 0 0;
  max-width: 46ch;
  color: var(--mute);
  font-size: .94rem;
  line-height: 1.7;
}

.foot-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .1rem;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .25rem 0;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.foot-nav a:hover { border-bottom-color: var(--ink); }

.sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: 1.8rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

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

.sub input {
  flex: 1 1 190px;
  min-height: 44px;
  min-width: 0;
  font: inherit;
  font-size: .94rem;
  padding: .45rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}
.sub input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }

.sub button {
  min-height: 44px;
  font: inherit;
  font-size: .9rem;
  padding: .45rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background-color 90ms linear;
}
.sub button:hover { background: #000; }

.sub-msg {
  flex: 0 0 100%;
  margin: 0;
  font-size: .88rem;
  color: var(--mute);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  margin-top: 1.1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--mute);
}
.foot-base p { margin: 0; }
.foot-base a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 .15rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .26s linear, transform .26s linear;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- breakpoints ---------- */
@media (max-width: 600px) {
  .masthead-in { flex-wrap: wrap; }
  .find {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
  }
  .deck { margin-left: auto; }
  .hero { min-height: 38vh; padding: 1.8rem 0 2.2rem; }
  .rail-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .foot-top { grid-template-columns: 1.4fr 1fr; gap: 2rem; }
}

@media (min-width: 960px) {
  main {
    grid-template-columns: 232px minmax(0, 1fr);
    column-gap: 2.6rem;
    padding-bottom: 4rem;
  }
  .hero { grid-column: 1 / -1; }
  .rail { grid-column: 1; position: sticky; top: 76px; }
  .rail-list { grid-template-columns: 1fr; }
  .sheet { grid-column: 2; }
  main div[id] { scroll-margin-top: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

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