/* Hallmark · shape: Index · genre: editorial · theme: custom · job: visit · idea: "the studio as one typographic index; five entries hang from the rule under the mark" · vibe: "austere, paper and ink, hard edges, no ornament"
 * paper: #ffffff · accent: #000000 · display: system grotesk · body: system grotesk · hero: mark at scale with a one-line sentence, the index begins in the fold · nav: the index itself, no masthead menu · footer: legal links under a rule · imagery: none · signature: five index rows wiping to solid ink on hover and keyboard focus
 * axes: light/grotesk-sans/neutral · posture: index · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E5 S4 R5 V4 · weakest: S, four of the five entries are generic tools; fixed by naming each by the one thing it does and cutting every other descriptor */
:root{
  --paper:#ffffff;
  --ink:#000000;
  --ink-muted:#6b6b6b;
  --ink-faint:#9a9a9a;
  --rule:#d4d4d4;
  --inv-paper:#000000;
  --inv-ink:#ffffff;
  --face:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --measure:720px;
  --gutter:clamp(20px,7vw,160px);
  --ease:cubic-bezier(.2,0,0,1);
  --fast:180ms;
}
*{box-sizing:border-box}
html,body{overflow-x:clip}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  min-height:100vh;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--face);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.wrap{padding-inline:var(--gutter)}
.sheet{max-width:var(--measure);margin-inline:auto}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- mark ---------- */
.mark{padding-top:clamp(52px,11vw,120px);padding-bottom:clamp(28px,4vw,40px)}
h1{
  margin:0;
  font-size:clamp(52px,11.4vw,112px);
  line-height:.9;
  font-weight:500;
  letter-spacing:-.045em;
  overflow-wrap:break-word;
  text-wrap:balance;
  min-width:0;
}
/* ---------- index rows ---------- */
.index{display:block;border-top:1px solid var(--ink)}
.row{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:baseline;
  gap:clamp(16px,3.2vw,32px);
  padding:clamp(20px,3vw,26px) clamp(0px,1.4vw,12px);
  color:inherit;
  text-decoration:none;
  -webkit-tap-highlight-color:transparent;
}
.row::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:var(--inv-paper);
  transform:scaleY(0);
  transform-origin:bottom;
  transition:transform var(--fast) var(--ease);
}
.row:hover::before,
.row:focus-visible::before{transform:scaleY(1)}
.row:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.num{
  font-size:13px;
  line-height:1;
  color:var(--ink-muted);
  font-variant-numeric:tabular-nums;
  min-width:2.4ch;
  transition:color var(--fast) var(--ease);
}
.name{
  font-size:clamp(23px,4.3vw,34px);
  line-height:1.18;
  font-weight:400;
  letter-spacing:-.01em;
  overflow-wrap:break-word;
  min-width:0;
  transition:color var(--fast) var(--ease);
}
.row:hover .num,
.row:focus-visible .num,
.row:hover .name,
.row:focus-visible .name{color:var(--inv-ink)}
.row:hover .num,
.row:focus-visible .num{opacity:.62}
.row:active::before{transform:scaleY(1)}

/* ---------- feedback ---------- */
.ask{margin-top:clamp(44px,8vw,84px)}
.box{display:flex;border:1px solid var(--ink);background:var(--paper)}
.box:focus-within{outline:2px solid var(--ink);outline-offset:2px}
.box input{
  flex:1 1 auto;
  min-width:0;
  border:0;
  background:transparent;
  color:var(--ink);
  font-family:inherit;
  font-size:16px;
  line-height:1.5;
  padding:16px;
  border-radius:0;
}
.box input:focus{outline:none}
.box input::placeholder{color:var(--ink-muted)}
.box button{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  flex:0 0 auto;
  border:0;
  border-left:1px solid var(--ink);
  background:var(--ink);
  color:var(--inv-ink);
  font-family:inherit;
  font-size:16px;
  padding:16px 32px;
  cursor:pointer;
  border-radius:0;
  -webkit-tap-highlight-color:transparent;
}
.box button::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:var(--paper);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform 280ms var(--ease);
}
.box button .label{
  position:relative;
  z-index:1;
  display:inline-block;
  color:#fff;
  mix-blend-mode:difference;
  transition:transform 280ms var(--ease);
}
.box button:hover:not(:disabled)::before,
.box button:focus-visible::before{transform:scaleX(1)}
.box button:hover:not(:disabled) .label,
.box button:focus-visible .label{transform:translateX(2px)}
.box button:focus-visible{outline:2px solid var(--ink);outline-offset:-4px}
.box button:disabled{
  background:var(--paper);
  color:var(--ink-muted);
  border-left-color:var(--rule);
  cursor:not-allowed;
}
.box button:disabled::before{display:none}
.box button:disabled .label{mix-blend-mode:normal;color:inherit}
.status{margin:12px 0 0;min-height:1.5em;font-size:13px;line-height:1.5;color:var(--ink-muted)}

/* ---------- sub pages ---------- */
.crumb{
  padding-top:clamp(40px,8vw,88px);
  display:flex;
  align-items:baseline;
  gap:20px;
  font-size:13px;
}
.crumb a{color:var(--ink-muted);text-decoration:none;transition:color var(--fast) var(--ease)}
.crumb a:hover,.crumb a:focus-visible{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.page-title{
  margin:clamp(24px,5vw,48px) 0 0;
  font-size:clamp(32px,6vw,56px);
  line-height:1;
  font-weight:500;
  letter-spacing:-.035em;
  overflow-wrap:break-word;
  min-width:0;
}
.page-lead{
  margin:16px 0 clamp(28px,5vw,44px);
  font-size:15px;
  line-height:1.7;
  color:var(--ink-muted);
  max-width:44ch;
}

.list{border-top:1px solid var(--ink);border-bottom:1px solid var(--rule)}
.entry{
  padding:clamp(16px,3vw,24px) 0;
  border-bottom:1px solid var(--rule);
}
.entry:last-child{border-bottom:0}
.entry-text{
  margin:0;
  font-size:16px;
  line-height:1.75;
  white-space:pre-wrap;
  overflow-wrap:break-word;
}
.entry-time{
  display:block;
  margin-top:12px;
  font-size:12px;
  font-variant-numeric:tabular-nums;
  color:var(--ink-faint);
}
.empty{padding:clamp(40px,7vw,64px) 0;font-size:15px;color:var(--ink-muted)}

.pager{
  display:flex;
  align-items:center;
  gap:24px;
  margin-top:24px;
  font-size:13px;
}
.pager a,.pager button{
  border:0;
  background:none;
  font:inherit;
  color:var(--ink-muted);
  padding:0;
  text-decoration:none;
  cursor:pointer;
  transition:color var(--fast) var(--ease);
}
.pager a:hover,.pager a:focus-visible,
.pager button:hover,.pager button:focus-visible{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.pager button:disabled{color:var(--rule);cursor:default;text-decoration:none}
.pager .count{color:var(--ink-faint);font-variant-numeric:tabular-nums}

/* ---------- footer ---------- */
footer{
  margin-top:clamp(64px,11vw,128px);
  border-top:1px solid var(--ink);
  padding:16px 0 max(40px,env(safe-area-inset-bottom));
  display:flex;
  flex-wrap:wrap;
  gap:8px 24px;
  font-size:13px;
  line-height:1.7;
}
footer a{color:var(--ink-muted);text-decoration:none;transition:color var(--fast) var(--ease)}
footer a:hover,footer a:focus-visible{color:var(--ink);text-decoration:underline;text-underline-offset:3px}

/* ---------- 入口页：不画分隔线，靠留白分段 ---------- */
.hub .index{border-top:0}
.hub footer{border-top:0;padding-top:0}

@media (max-width:430px){
  .box{flex-direction:column}
  .box button{border-left:0;border-top:1px solid var(--ink);width:100%}
  .num{min-width:2ch}
}
@media (prefers-reduced-motion:reduce){
  .row::before{transition-duration:0ms}
  .num,.name,.box button .label,.box button::before,footer a,.crumb a,.pager a,.pager button{transition-duration:0ms}
}
