/* 自由之家共享编辑风视觉层（2026-11-30，M/FORM 风格）：纸色、衬线、细线 */
/* 只做视觉增强，不动任何功能、文案与逻辑。色板与字栈由各页内联 :root 提供。 */

:root {
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", Georgia, serif;
  --sans: "DM Sans", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* 纸纹颗粒（M/FORM 同款做法，固定一层，很淡） */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .16; z-index: 5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.17'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) {
  body::before { opacity: .07; mix-blend-mode: normal; }
}
:root[data-theme="dark"] body::before { opacity: .07; mix-blend-mode: normal; }

/* ---------- 顶栏：左刊名，右小字 ---------- */
.topbar-ed {
  height: 76px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative; z-index: 2;
}
.wordmark {
  font-family: var(--serif); font-size: 18px; letter-spacing: .16em; font-weight: 600;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.wordmark span { color: var(--accent); }
.wordmark:hover { text-decoration: none; }
.topmeta {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: 10px;
  color: var(--muted); display: flex; gap: 24px; white-space: nowrap;
}

/* ---------- 眉题 + 大标题 + 引言 ---------- */
.eyebrow {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: 10px;
  color: var(--accent); display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.headline-ed {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(58px, 8.6vw, 132px); line-height: .98; letter-spacing: -.04em;
  margin: 34px 0 24px;
}
.headline-ed em { font-style: normal; color: var(--accent); }
.intro-ed {
  font-family: var(--serif); font-size: clamp(15px, 1.35vw, 19px); line-height: 1.9;
  color: var(--muted); max-width: 380px;
}

/* ---------- 插画说明 ---------- */
.caption {
  display: flex; justify-content: space-between; gap: 12px;
  color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
}

/* ---------- 页脚 ---------- */
.footer-ed {
  height: 54px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; position: relative; z-index: 2;
}
.footer-ed span:last-child { color: var(--accent); }

/* ---------- 滚动渐入（由 editorial.js 加上 .fx-reveal，JS 失败时内容照常显示） ---------- */
.fx-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.fx-reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fx-reveal { opacity: 1; transform: none; transition: none; }
}
