/* 首页接入层：不改批准稿的视觉，只补字体、锚点、卡片链接和无脚本可见性。 */

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-latin-400-italic.woff2") format("woff2");
}

:root {
  --ui: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC",
    "Noto Sans CJK SC", "Microsoft YaHei", "WenQuanYi Micro Hei", system-ui, sans-serif;
}

html { scroll-padding-top: 58px; }
#whoami, #posts { scroll-margin-top: 58px; }

.pcard > a {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  color: inherit;
}

.wall-empty {
  grid-column: 1 / -1;
  padding: 28px 4px 8px;
  color: var(--ink3);
  font-family: var(--mono);
  font-size: 13px;
}

@media (max-width: 760px) {
  .nav-meta .pv { display: none; }
}
