@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Crimson+Pro:wght@400;500;600;700&display=swap');

:root {
  --paper: #fafaf8;
  --ink: #1a1a1a;
  --grey: #4a4a4a;
  --wash: #f0eee7;
  --line: rgba(26, 26, 26, 0.26);
  --pad: clamp(18px, 4.4vw, 44px);
  --serif: "Crimson Pro", Georgia, "Songti SC", serif;
  --sans: "Atkinson Hyperlegible", -apple-system, "Segoe UI", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

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

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

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.26;
  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.86' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0.01em;
  color: var(--ink);
}

h1 {
  font-size: clamp(30px, 6.4vw, 54px);
  line-height: 1.14;
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(23px, 3.6vw, 31px);
  margin: 0 0 14px;
}

h3 {
  font-size: 20px;
  margin: 26px 0 8px;
}

p { margin: 0 0 16px; }

main small {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.26em;
  color: var(--grey);
  margin: 0 0 6px;
}

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

main a {
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.12s linear;
}

main a:hover { text-decoration-color: var(--grey); }

img { max-width: 100%; }

/* 底栏 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border-top: 1.5px dashed var(--ink);
  padding: 7px clamp(10px, 3vw, 26px) calc(7px + env(safe-area-inset-bottom));
}

.marklink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  rotate: -3deg;
  transition: rotate 0.14s steps(3);
}

.marklink:hover { rotate: 4deg; }

.mark {
  display: block;
  filter: grayscale(1) contrast(1.08);
}

.burger {
  position: relative;
  z-index: 70;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 46px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.8px;
  background: var(--paper);
  transition: transform 0.12s steps(2);
}

body.open .burger span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
body.open .burger span:nth-child(2) { opacity: 0.25; }
body.open .burger span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

.dock nav {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.dock nav p {
  display: flex;
  gap: 2px;
  margin: 0;
}

.dock nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  font-size: 15px;
  color: var(--grey);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 10px;
  transition: background 0.1s linear, color 0.1s linear;
}

.dock nav a:hover {
  color: var(--ink);
  background: var(--wash);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-underline-offset: 4px;
}

.talk {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--grey);
  text-decoration: none;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

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

@media (max-width: 899px) {
  .dock nav { display: none; }
}

body.open .dock nav {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--paper);
  overflow-y: auto;
  padding: 76px 20px 130px;
}

body.open .dock nav p {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: 0 auto;
}

body.open .dock nav a {
  min-height: 56px;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
  border-radius: 0;
}

/* 主区 */
main {
  display: block;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.hero {
  display: grid;
  gap: 26px;
  align-items: center;
  min-height: 70vh;
  padding: 46px 0 42px;
  grid-template-columns: minmax(0, 1fr);
}

.hero-txt { max-width: 46ch; }

.hero-txt .tag {
  letter-spacing: 0.3em;
  padding-bottom: 10px;
  border-bottom: 1.5px dashed var(--line);
  margin-bottom: 18px;
}

.lede {
  font-size: 18px;
  line-height: 1.72;
  color: var(--grey);
  margin: 0;
}

.hero-fig {
  position: relative;
  margin: 0;
  padding: 12px 12px 14px;
  background: var(--wash);
  border-radius: 10px;
  rotate: -1.2deg;
  transition: rotate 0.18s steps(3);
}

.hero-fig:hover { rotate: 0.4deg; }

.hero-fig::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 34%;
  width: 92px;
  height: 24px;
  background: rgba(74, 74, 74, 0.16);
  border-radius: 2px;
  rotate: -5deg;
}

.hero-img,
.hero-sketch {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  filter: grayscale(0.34) contrast(1.05);
}

.hero-img { aspect-ratio: 4 / 3; object-fit: cover; }

/* 侧栏 */
.jump {
  margin: 0 0 30px;
  padding: 18px 20px 20px;
  background: var(--wash);
  border-radius: 10px;
  rotate: 0.5deg;
}

.jump small { margin-bottom: 2px; }

.jump h2 {
  font-size: 19px;
  margin: 0 0 10px;
}

.jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 2px;
  margin: 0;
}

.jump-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 9px;
  font-size: 15px;
  color: var(--grey);
  text-decoration: none;
  border-radius: 8px;
}

.jump-list a:hover {
  color: var(--ink);
  background: rgba(26, 26, 26, 0.06);
  text-decoration: underline;
  text-decoration-style: wavy;
}

/* 正文块 */
main > section:not(.hero) {
  margin: 0 0 28px;
  padding: 30px clamp(18px, 3.4vw, 34px);
  background: var(--wash);
  border-radius: 10px;
  rotate: -0.22deg;
  transition: rotate 0.2s steps(3);
}

main > section:not(.hero):nth-of-type(even) { rotate: 0.3deg; }

main > section:not(.hero):hover { rotate: 0deg; }

main > section:not(.hero) h2 {
  padding-bottom: 10px;
  border-bottom: 1.5px dashed var(--line);
  margin-bottom: 16px;
}

main ul, main ol { padding-left: 1.15em; margin: 0 0 16px; }
main li { margin-bottom: 7px; }

main img {
  display: block;
  height: auto;
  margin: 18px auto;
  border-radius: 6px;
  filter: grayscale(0.3) contrast(1.04);
}

main blockquote {
  margin: 20px 0;
  padding: 10px 0 10px 18px;
  border-left: 2px dashed var(--grey);
  color: var(--grey);
  rotate: -0.4deg;
}

main figure { margin: 18px 0; }
main figcaption { font-size: 14px; color: var(--grey); }

main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin: 0 0 18px;
}

main th, main td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px dashed var(--line);
}

code, pre { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 15px; }

/* 页脚 */
footer {
  display: grid;
  gap: 16px;
  max-width: 1080px;
  margin: 58px auto 0;
  padding: 32px var(--pad) 0;
  border-top: 1.5px dashed var(--ink);
}

footer p { margin: 0; }

.brandword {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 5.6vw, 46px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  rotate: -0.6deg;
}

.footlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
}

.footlinks a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 6px;
  font-size: 15px;
  color: var(--grey);
  text-decoration: none;
  border-radius: 8px;
}

.footlinks a:hover {
  color: var(--ink);
  background: var(--wash);
  rotate: -1.4deg;
}

.footline { font-size: 15px; color: var(--grey); }

footer small {
  grid-column: 1 / -1;
  display: block;
  margin: 12px 0 0;
  padding-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--grey);
}

/* 揭示 */
.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.34s linear, transform 0.34s steps(4);
}

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

@media (min-width: 820px) {
  .hero {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 46px;
  }
}

@media (min-width: 760px) {
  footer { grid-template-columns: 1.25fr 1fr 0.85fr; align-items: start; }
}

@media (min-width: 900px) {
  main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 226px;
    column-gap: 46px;
    align-items: start;
  }

  main > div { grid-column: 1; }

  .jump {
    grid-column: 2;
    grid-row: 1 / span 40;
    position: sticky;
    top: 26px;
    margin: 56px 0 0;
  }

  .jump-list { flex-direction: column; align-items: stretch; }
}

@media (min-width: 1100px) {
  main { padding: 0 var(--pad) 0 var(--pad); }
}
=====

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