@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root{
  --paper:#fafaf8;
  --ink:#1a1a1a;
  --gray:#4a4a4a;
  --line:rgba(26,26,26,.35);
  --soft:#efefec;
  --mono:"Space Mono",ui-monospace,"SFMono-Regular","Courier New",monospace;
}

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

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

body{
  margin:0;
  padding-bottom:132px;
  color:var(--ink);
  background-color:var(--paper);
  background-image:
    repeating-linear-gradient(0deg,rgba(26,26,26,.045) 0 1px,transparent 1px 5px),
    repeating-linear-gradient(90deg,rgba(26,26,26,.025) 0 1px,transparent 1px 9px);
  font-family:var(--mono);
  font-size:16px;
  line-height:1.65;
  overflow-x:hidden;
}

body:has(.nav-toggle:checked){overflow:hidden}

img{
  display:block;
  max-width:100%;
  height:auto;
  filter:grayscale(1) contrast(1.06);
}

a{color:var(--ink)}

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

/* 底部固定条 */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  background:var(--paper);
  border-top:2px solid var(--ink);
}

.nav-toggle{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.dock-brand{
  margin:0;
  padding:8px 16px;
  border-bottom:1px dashed var(--line);
  font-weight:700;
  letter-spacing:.08em;
}

.dock-brand a{
  display:block;
  padding:6px 0;
  min-height:40px;
  text-decoration:none;
  color:var(--ink);
}

.dock-row{
  display:flex;
  justify-content:flex-end;
  padding:6px 16px 8px;
}

.burger{
  position:relative;
  z-index:30;
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:0 14px;
  border:2px solid var(--ink);
  background:var(--paper);
  color:var(--ink);
  font-family:inherit;
  font-size:16px;
  font-weight:700;
  letter-spacing:.12em;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
}

.burger-lines{
  width:18px;
  height:2px;
  background:currentColor;
  box-shadow:0 -6px 0 currentColor,0 6px 0 currentColor;
}

.txt-close{display:none}

.nav-toggle:checked ~ .dock-row .burger{
  background:var(--ink);
  color:var(--paper);
  border-color:var(--paper);
}

.nav-toggle:checked ~ .dock-row .txt-open{display:none}
.nav-toggle:checked ~ .dock-row .txt-close{display:inline}

/* 全屏遮罩菜单 */
.sheet{
  position:fixed;
  inset:0;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px 0 150px;
  overflow-y:auto;
  background:var(--ink);
  color:var(--paper);
  visibility:hidden;
  transform:translateY(100%);
  transition:transform .16s linear,visibility .16s linear;
}

.nav-toggle:checked ~ .sheet{
  visibility:visible;
  transform:none;
}

.sheet-list{
  list-style:none;
  margin:0;
  padding:0;
  width:min(420px,86vw);
}

.sheet-list li{
  border-bottom:1px dashed rgba(250,250,248,.4);
  opacity:0;
  transform:translateY(14px);
  transition:opacity .12s linear,transform .12s linear;
}

.nav-toggle:checked ~ .sheet .sheet-list li{opacity:1;transform:none}
.nav-toggle:checked ~ .sheet .sheet-list li:nth-child(1){transition-delay:.02s}
.nav-toggle:checked ~ .sheet .sheet-list li:nth-child(2){transition-delay:.05s}
.nav-toggle:checked ~ .sheet .sheet-list li:nth-child(3){transition-delay:.08s}
.nav-toggle:checked ~ .sheet .sheet-list li:nth-child(4){transition-delay:.11s}
.nav-toggle:checked ~ .sheet .sheet-list li:nth-child(5){transition-delay:.14s}
.nav-toggle:checked ~ .sheet .sheet-list li:nth-child(6){transition-delay:.17s}
.nav-toggle:checked ~ .sheet .sheet-list li:nth-child(7){transition-delay:.2s}

.sheet-list a{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:54px;
  padding:6px 4px;
  color:var(--paper);
  text-decoration:none;
  font-size:clamp(17px,4.4vw,22px);
  letter-spacing:.02em;
}

.sheet-list a::before{
  content:"";
  flex:0 0 auto;
  width:10px;
  height:10px;
  border:2px solid var(--paper);
}

/* 首屏 */
.hero{
  position:relative;
  min-height:100vh;
  display:grid;
  align-content:center;
  padding:clamp(28px,7vw,80px) clamp(16px,4vw,56px) clamp(28px,6vw,60px);
  overflow:hidden;
}

.hero::after{
  content:"";
  position:absolute;
  left:clamp(16px,4vw,56px);
  right:clamp(16px,4vw,56px);
  bottom:16px;
  height:2px;
  background:repeating-linear-gradient(90deg,var(--ink) 0 12px,transparent 12px 24px);
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:clamp(20px,4vw,52px);
  align-items:center;
}

.eyebrow{
  display:inline-block;
  margin:0 0 20px;
  padding:4px 10px;
  border:2px solid var(--ink);
  background:#fff;
  font-weight:700;
  letter-spacing:.16em;
  transform:rotate(-1.6deg);
}

.hero h1{
  margin:0;
  font-size:clamp(32px,7.6vw,72px);
  line-height:1.04;
  letter-spacing:-.02em;
}

.badge{
  display:inline-block;
  margin-top:28px;
  padding:8px 14px;
  border:2px solid var(--ink);
  background:var(--paper);
  box-shadow:5px 5px 0 rgba(26,26,26,.16);
  font-weight:700;
  letter-spacing:.1em;
  transform:rotate(-5deg);
}

.collage{
  position:relative;
  min-height:clamp(300px,46vh,440px);
}

.tape{
  position:absolute;
  margin:0;
  padding:7px;
  background:#fff;
  border:2px solid var(--ink);
  box-shadow:8px 8px 0 rgba(26,26,26,.13);
}

.tape-1{
  top:0;
  left:0;
  width:64%;
  transform:translateY(var(--py,0)) rotate(-4deg);
}

.tape-2{
  bottom:0;
  right:0;
  width:58%;
  transform:translateY(var(--py,0)) rotate(3.4deg);
}

.tape img{width:100%}

.tape.empty{
  aspect-ratio:3/4;
  border-style:dashed;
  background:transparent;
  box-shadow:none;
}

.tape.empty span{display:block}

/* 正文 */
.wrap{
  max-width:720px;
  margin:0 auto;
  padding:clamp(28px,6vw,64px) clamp(16px,5vw,26px);
}

.prose div{padding-bottom:12px}

.prose h2{
  margin:0;
  font-size:clamp(24px,5vw,34px);
  line-height:1.18;
  letter-spacing:-.01em;
}

.prose .subtitle{
  margin:10px 0 8px;
  padding-left:12px;
  border-left:4px solid var(--ink);
  color:var(--gray);
}

.prose div section{
  border-top:1px dashed var(--line);
  padding:clamp(26px,5vw,44px) 0;
  scroll-margin-top:26px;
}

.prose div section h2{
  font-size:clamp(22px,4.6vw,30px);
}

.prose div section h2::after{
  content:"";
  display:block;
  width:52px;
  height:3px;
  margin-top:10px;
  background:var(--ink);
}

.prose h3{
  margin:26px 0 8px;
  font-size:clamp(18px,3.6vw,22px);
}

.prose p{margin:0 0 16px}

.prose ul,.prose ol{
  margin:0 0 18px;
  padding-left:22px;
}

.prose li{margin-bottom:8px}

.prose a{
  text-decoration:underline;
  text-decoration-style:dashed;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.prose blockquote{
  margin:22px 0;
  padding:12px 16px;
  border-left:4px solid var(--ink);
  background:#fff;
}

.prose img{
  margin:18px 0;
  border:2px solid var(--ink);
}

.prose strong{background:var(--soft);box-shadow:0 0 0 3px var(--soft)}

/* 页脚 */
.foot{
  max-width:720px;
  margin:0 auto;
  padding:clamp(28px,6vw,48px) clamp(16px,5vw,26px) 44px;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:20px;
  align-items:start;
  border-top:2px solid var(--ink);
}

.foot-a{
  margin:0;
  font-weight:700;
  letter-spacing:.08em;
}

.foot-b{
  display:flex;
  gap:8px;
  margin:0;
}

.mail{
  flex:1 1 auto;
  min-width:0;
  height:44px;
  padding:0 10px;
  border:2px solid var(--ink);
  background:#fff;
  color:var(--ink);
  font-family:inherit;
  font-size:16px;
}

.sub{
  flex:0 0 auto;
  height:44px;
  padding:0 14px;
  border:2px solid var(--ink);
  background:var(--ink);
  color:var(--paper);
  font-family:inherit;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
}

.foot-c{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  font-size:16px;
  text-align:right;
}

.foot-c a{
  display:inline-block;
  padding:8px 0;
  min-height:40px;
  text-decoration:underline;
  text-decoration-style:dashed;
  text-underline-offset:3px;
}

/* 窄屏 */
@media (max-width:860px){
  .hero{
    align-content:start;
    padding-top:clamp(30px,9vw,58px);
  }

  .hero-grid{grid-template-columns:1fr}

  .collage{
    min-height:230px;
    margin-top:26px;
  }

  .foot{
    grid-template-columns:1fr;
    gap:16px;
  }

  .foot-c{
    align-items:flex-start;
    text-align:left;
  }
}

@media (max-width:420px){
  .dock-brand{padding:6px 14px}
  .dock-row{padding:6px 14px 8px}
  .hero h1{font-size:clamp(30px,10.5vw,44px)}
  .collage{min-height:200px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .sheet,.sheet-list li{transition-duration:.001ms}
}

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