/* ==========================================================================
   site.css — Bigsithome 的版式
   部件、颜色、字来自 endfield.css（ef- 类 + --ef-* 变量）。
   这里只排位置：一屏一件事，块与块之间留够距离，能不加的东西都不加。
   ========================================================================== */

@font-face {
  font-family: 'Saira Variable';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url('./fonts/saira-var-latin.woff2') format('woff2-variations');
}

/* 人名用手写体，和底下的方字拉开距离 */
@font-face {
  font-family: 'Sacramento';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/sacramento-latin.woff2') format('woff2');
}

:root {
  --ef-font-ui: 'Saira Variable', 'Saira', 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC',
    'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --ef-font-text: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei',
    'Hiragino Sans GB', sans-serif;
  --w: 60rem; /* 版心 */
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

body > main {
  flex: 1 0 auto;
}

[id] {
  scroll-margin-top: 5rem;
}

.wrap {
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: var(--ef-pad);
}

/* ---------- 页头 ---------- */
.bs-head {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #2b2b2b;
}

.bs-head .brand .mark {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
}

.bs-head .util {
  padding-block: 0.35rem;
}

.bs-head .util .date {
  color: #b8b8b8;
}

.bs-head .util .ef-btn {
  --fill: #2b2b2b;
  color: #ededed;
  font-size: 0.78rem;
}

.bs-head .util .ef-btn:is(:hover, :focus-visible) {
  color: var(--ef-on-signal);
}

@media (max-width: 780px) {
  .bs-head {
    gap: 0 1rem;
  }
  .bs-head nav a {
    padding: 0.2rem 0.7rem;
  }
  .bs-head nav a small,
  .bs-head .util .date {
    display: none;
  }
  .bs-head .util {
    margin-left: auto;
    padding-left: 0;
  }
}

@media (max-width: 430px) {
  .bs-head .brand b {
    display: none;
  }
  .bs-head nav a {
    padding: 0.2rem 0.55rem;
    font-size: 0.875rem;
  }
}

/* ---------- 首屏 ---------- */
.bs-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  min-height: calc(100dvh - 3.6rem);
  padding-block: clamp(3rem, 10vh, 6rem) clamp(4.5rem, 10vh, 6rem);
  border-bottom: 1px solid var(--ef-rule);
  overflow: hidden;
}

.bs-hero .field {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask: radial-gradient(130% 115% at 24% 10%, #000 32%, rgb(0 0 0 / 0.4) 68%, transparent 100%);
  mask: radial-gradient(130% 115% at 24% 10%, #000 32%, rgb(0 0 0 / 0.4) 68%, transparent 100%);
  pointer-events: none;
}

.bs-hero .wrap {
  /* 首屏是网格，auto 外边距会让版心缩到内容宽，这里钉回满宽 */
  width: 100%;
}

.bs-hero .ef-eyebrow {
  margin: 0 0 1.5rem;
}

.bs-hero .ef-wordmark {
  --ef-wordmark: clamp(3.4rem, 13vw, 10rem);
  margin: 0;
  transform: translate(calc(var(--mx, 0) * -6px), calc(var(--my, 0) * -4px));
  transition: transform 0.5s var(--ef-ease);
}

/* 字标行高 0.84，字身会顶出盒子；入场只在水平方向裁，竖向留足 */
.bs-hero .ef-wordmark .ef-in-drive {
  animation-name: bs-drive;
}

@keyframes bs-drive {
  from {
    clip-path: inset(-30% 100% -30% 0);
    transform: translateX(-0.12em);
  }
  to {
    clip-path: inset(-30% -5% -30% 0);
    transform: none;
  }
}

.bs-hero .lede {
  max-width: 26rem;
  margin: 2rem 0 0;
  color: var(--ef-ink-2);
}

.bs-hero .ef-actions {
  margin-top: 1.9rem;
}

.bs-hero .hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.25rem, 4vh, 2rem);
}

.bs-hero .hero-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
}

.bs-hero .hero-foot .wrap > * + *::before {
  content: '/';
  margin-right: 0.9rem;
  color: var(--ef-rule);
}

@media (max-width: 640px) {
  .bs-hero {
    min-height: 0;
    padding-block: 3.5rem 5.5rem;
  }
  .bs-hero .hero-foot {
    position: static;
    margin-top: 3rem;
  }
}

/* ---------- 分节 ---------- */
.bs-sec {
  padding-block: clamp(4rem, 11vw, 7.5rem);
  border-bottom: 1px solid var(--ef-rule);
}

.bs-sec .ef-eyebrow {
  margin: 0 0 2rem;
}

/* 分节标签和它右边的一行小字 */
.bs-sec .sec-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.25rem;
  margin-bottom: 2rem;
}

.bs-sec .sec-label .ef-eyebrow {
  margin: 0;
}

/* 人员：从左到右三等分铺满版心，上面名字，下面职位；不换行 */
.crew {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crew > li {
  flex: 1 1 0;
  min-width: 0;
}

/* 三个签名落在左、中、右，视觉上等距 */
.crew > li:nth-child(2) {
  text-align: center;
}

.crew > li:last-child {
  text-align: right;
}

/* 头像只露上半：容器高度是图高的一半，图按两倍高放进容器里裁掉下半；
   底部用渐变化开，和下面的签名接上 */
.crew .face {
  display: block;
  width: max-content;
  height: 10rem;
  margin-bottom: 0.3rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.crew .face img {
  display: block;
  width: auto;
  height: 20rem;
}

.crew > li:nth-child(2) .face {
  margin-inline: auto;
}

.crew > li:last-child .face {
  margin-left: auto;
}

.crew .name {
  margin: 0;
  font-family: 'Sacramento', 'Segoe Script', 'Bradley Hand', cursive;
  font-size: clamp(1.75rem, 4.4vw, 2.9rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.crew .role {
  margin: 0.1rem 0 0;
  font-family: var(--ef-font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  font-stretch: var(--ef-wider);
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: var(--ef-ink-2);
}

/* 「还有六个深井冰」：一个居中的入口，点了去所有人员 */
.crew-more {
  margin: 2.4rem 0 0;
  text-align: center;
}

/* 所有人员：一张带编号的名录 */
.roster {
  margin: 0;
  padding: 0;
  list-style: none;
}

.roster > li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 15rem);
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ef-rule);
}

.roster .name {
  font-family: 'Sacramento', 'Segoe Script', 'Bradley Hand', cursive;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.roster .role {
  text-align: right;
}

@media (max-width: 640px) {
  .roster > li {
    grid-template-columns: 3.6rem minmax(0, 1fr);
    gap: 0.15rem 0.8rem;
  }
  .roster .role {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .crew {
    justify-content: space-between;
    gap: 0.6rem;
  }
  .crew > li {
    flex: 0 0 auto;
  }
  .crew > li:nth-child(2),
  .crew > li:last-child {
    text-align: left;
  }
  .crew .name {
    font-size: 1.6rem;
  }
  .crew .role {
    font-size: 0.625rem;
    letter-spacing: 0.04em;
  }
  .crew .face {
    height: 5rem;
    margin-bottom: 0.8rem;
  }
  .crew .face img {
    height: 10rem;
  }
}

@media (max-width: 380px) {
  .crew .face {
    height: 4rem;
  }
  .crew .face img {
    height: 8rem;
  }
}

.bs-sec p.body {
  max-width: 30rem;
  margin: 0;
  color: var(--ef-ink-2);
  line-height: 1.95;
}

.bs-sec p.body + p.body {
  margin-top: 1.2em;
}

/* ---------- 脚页 ---------- */
.bs-foot {
  background: #161616;
  color: #ededed;
}

.bs-foot a {
  color: #b8b8b8;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.bs-foot a:is(:hover, :focus-visible) {
  color: var(--ef-signal);
  border-bottom-color: var(--ef-signal);
}

.bs-foot .top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
}

.bs-foot .mark {
  width: 1.7rem;
  height: 1.7rem;
}

.bs-foot .word {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  font-stretch: var(--ef-wider);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bs-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-left: auto;
  font-size: 0.9375rem;
}

.bs-foot .bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem 1.25rem;
  border-top: 1px solid #2e2e2e;
  color: #8a8a8a;
}

.bs-foot .bottom .ef-btn {
  --fill: #2b2b2b;
  color: #ededed;
  font-size: 0.78rem;
}

.bs-foot .bottom .ef-btn:is(:hover, :focus-visible) {
  color: var(--ef-on-signal);
}

.bs-foot .bottom .push {
  margin-left: auto;
}

@media (max-width: 640px) {
  .bs-foot nav {
    margin-left: 0;
  }
}

/* ---------- 作品列表 ---------- */
.bs-list {
  padding-block: clamp(3rem, 8vw, 5rem) clamp(4rem, 9vw, 6rem);
}

.bs-list .ef-eyebrow {
  margin: 0 0 1.25rem;
}

.bs-list .ef-sheet-head {
  padding-bottom: 1.25rem;
}

.bs-list .ef-records {
  border-top: 0;
}

.bs-list .title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
}

.bs-list .ef-lede {
  margin: 0 0 clamp(2.5rem, 6vw, 3.5rem);
}

/* ---------- 正文 ---------- */
.bs-read {
  padding-block: clamp(2.5rem, 7vw, 4rem) clamp(4rem, 9vw, 6rem);
}

.bs-read .ef-sheet {
  max-width: 43rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 5vw, 3.25rem) clamp(2.25rem, 5vw, 3.25rem);
}

.bs-read .title {
  margin: 1.4rem 0 1.1rem;
  font-size: clamp(var(--ef-t-title), 4.4vw, var(--ef-t-h1));
  font-weight: 800;
  line-height: 1.25;
}

.bs-read .ef-prose {
  margin-top: 2.25rem;
}

.bs-read .ef-prose h2 {
  margin-top: 2.4em;
  padding-top: 1em;
  font-family: var(--ef-font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  font-stretch: var(--ef-wider);
  letter-spacing: 0.18em;
  color: var(--ef-ink-2);
}

.bs-read .ef-prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.bs-turn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--ef-rule);
}

.bs-turn .to {
  margin-right: 0.4rem;
}

.bs-turn .none {
  color: var(--ef-ink-2);
  font-size: 0.875rem;
}
