/* FlowerMoon Emil information pages
   Scope: pages/ direct children only (about/rules, zh/en).
   Apply after assets/site.css; this file does not add branding or page copy. */
:root {
  --emil-paper: #fbfaf7;
  --emil-ink: #262326;
  --emil-muted: #766d72;
  --emil-line: #ded4d5;
  --emil-berry: #94384f;
  --emil-berry-soft: #f4e7ea;
  --emil-ease-out: cubic-bezier(.23, 1, .32, 1);
}
:root[data-theme="night"] {
  --emil-paper: #29272a;
  --emil-ink: #f3ecea;
  --emil-muted: #bcaeb3;
  --emil-line: #51464b;
  --emil-berry: #e89aab;
  --emil-berry-soft: #493138;
}

/* Page chrome: restrained, two-level navigation with no masthead branding. */
html:has(.edition-header),
html:has(.edition-header) body { background: var(--emil-paper); color: var(--emil-ink); }
.edition-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--emil-paper) 94%, transparent);
  border-bottom: 1px solid var(--emil-line);
  backdrop-filter: blur(12px);
}
.edition-nav-inner {
  width: min(calc(100% - 48px), 960px);
  min-height: 54px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap:16px;
}
.edition-links, .edition-languages { display: flex; align-items: center; gap:4px; }
.edition-links { min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.edition-links a, .edition-languages a {
  color: var(--emil-muted); text-decoration: none; white-space: nowrap;
  padding:8px 8px; min-height: 36px; display: inline-flex; align-items: center;
  font:13px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "FMC Sans SC", "PingFang SC", "Helvetica Neue", system-ui, sans-serif;
  transition:color var(--dur-2) var(--emil-ease-out), background-color var(--dur-2) var(--ease-out);
}
.edition-links a:hover, .edition-languages a:hover,
.edition-links a[aria-current="page"] { color: var(--emil-ink); background: var(--emil-berry-soft); }
.edition-links a[aria-current="page"] { box-shadow: inset 0 -2px var(--emil-berry); }
.edition-languages { flex: 0 0 auto; border-left: 1px solid var(--emil-line); padding-left: 8px; }
.edition-languages .language-switch { color: var(--emil-berry); }
.edition-header a:focus-visible, .emil-info a:focus-visible {
  outline: 2px solid var(--emil-berry); outline-offset: 2px; border-radius:4px;
}

/* Information pages: one clear measure, editorial hierarchy, paper/ink/berry. */
.emil-info, .reader:has(> .back-link), .about-hero, .about-copy {
  width: min(calc(100% - 48px), 960px); margin-inline: auto;
}
.reader:has(> .back-link) { max-width: 760px; padding:24px 0 64px; }
.about-hero { padding:48px 0 28px; border-bottom: 1px solid var(--emil-line); }
.about-copy { max-width: 760px; padding:32px 0 0; }
.about-hero h1, .reader:has(> .back-link) > h1 {
  color: var(--emil-ink); font-weight: 400; letter-spacing: -.035em;
  line-height:1.1; margin: 0 0 16px; text-wrap: balance;
}
.about-hero h1 { max-width: 760px; font-size: clamp(2.2rem, 6vw, 4.5rem); }
.reader:has(> .back-link) > h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.eyebrow {
  color: var(--emil-muted); font:600 11px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "FMC Sans SC", "PingFang SC", sans-serif;
  letter-spacing: .16em; text-transform: uppercase; margin:0 0 8px;
}
.back-link { color: var(--emil-berry); margin:0 0 16px; }
.about-copy, .reader:has(> .back-link) { font-size: 17px; line-height:1.8; }
.about-copy p, .reader:has(> .back-link) p, .reader:has(> .back-link) li { max-width: 68ch; }
.about-copy h2, .reader:has(> .back-link) h2 {
  color: var(--emil-ink); font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 500;
  line-height: 1.3; letter-spacing: -.015em; margin: 2.25em 0 .7em;
}
.reader:has(> .back-link) h3 { color: var(--emil-ink); font-size:17px; font-weight: 600; margin: 1.7em 0 .45em; }
.quote-block {
  margin:0 0 8px; padding:0 0 0 16px; border-left: 2px solid var(--emil-berry);
  background: transparent; color: var(--emil-ink); box-shadow: none;
}
.lang-copy { color: var(--emil-muted); }
.about-copy time, .reader:has(> .back-link) .eyebrow { color: var(--emil-muted); }
.about-copy a, .reader:has(> .back-link) a { color: var(--emil-berry); text-underline-offset: 3px; }
.reader:has(> .back-link) section { border-top: 1px solid var(--emil-line); padding-top: 2px; }
.reader:has(> .back-link) ul { padding-left: 1.2em; }
.reader:has(> .back-link) li { margin: .38em 0; }

@media (max-width: 700px) {
  .edition-nav-inner, .emil-info, .reader:has(> .back-link), .about-hero, .about-copy { width: calc(100% - 28px); }
  .edition-nav-inner { min-height: 50px; gap:8px; }
  .edition-links a, .edition-languages a { padding:8px 8px; font-size: 12px; }
  .edition-languages { padding-left: 4px; }
  .about-hero { padding:32px 0 24px; }
  .about-copy, .reader:has(> .back-link) { padding-top: 22px; font-size: 16px; line-height:1.8; }
  .about-hero h1 { font-size: clamp(2rem, 10vw, 3.1rem); }
}
@media (prefers-reduced-motion: reduce) {
  .edition-links a, .edition-languages a { transition: none; }
}

/* 2026-12-02 用户定：FAQ 页的「常见问题 / Häufig gestellte Fragen」这类页面标题是多余的，
   视觉隐藏但保留在 DOM（读屏与 SEO 仍读得到）。 */
main.wrap.reader > h1.fmc-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden !important;
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
