/* surface.css — the public skin of the 临江市中级人民法院电子卷宗查阅系统.
 *
 * The ONE file that carries the fiction's palette and type; base.css above stays structure-only.
 * Set from the system's own era and register — a 2015 government intranet: blue-grey chrome,
 * 仿宋 body text — then leave them alone; a page that needs its own colour is a page that has
 * left the disguise. Deep pages (the pre-2000 historical scans) link secret.css instead (M5);
 * when the profile did not select M5, this file is the whole skin.
 *
 * Palette vocabulary, shared with the site-graph viewer so a generated graph reads as the same
 * paper: --paper --ink --rule --stamp. */

:root {
  --paper:   #e8edf3;   /* page ground: blue-grey */
  --paper-2: #ffffff;   /* document ground, one step off the page */
  --wash:    #d9e2ec;   /* table headers, quiet fills */
  --ink:     #1c2733;   /* body text */
  --ink-2:   #55636f;   /* secondary text, footer */
  --rule:    #b9c6d3;   /* hairlines and borders */
  --accent:  #0b4f9e;   /* links, buttons: intranet blue */
  --stamp:   #a11212;   /* seals, warnings, locked notices */
  --bar:     #16385f;   /* sticky header ground — must stay opaque */

  --serif: "FangSong", "仿宋", "FangSong_GB2312", "STFangsong", "SimSun", Georgia, serif;      /* prose: 仿宋 */
  --sans:  "SimHei", "黑体", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif; /* nav, data, UI */
  --mono:  ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;           /* numbers, dockets */
  --hand:  "Kaiti SC", "STKaiti", "KaiTi", cursive;                              /* hand-copied notes */
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { text-decoration: none; }

/* Headings sit in the same serif as the body: a real system does not set its own notices in a
   display face. Weight and size carry the hierarchy instead. */
h1, h2, h3 { font-weight: 700; line-height: 1.35; }

/* Quiet, tabular figures anywhere the system prints a number: dockets, dates, counts. */
time, .num, .progress, .doc-no { font-family: var(--mono, monospace); font-variant-numeric: tabular-nums; }

/* Selection keeps the paper register; the M11 black-on-black text overrides it deliberately. */
::selection { background: var(--rule); color: var(--ink); }

/* 2015 intranet chrome: the sticky top bar is deep blue with light text. */
header { border-bottom-color: #0d2a49; }
header nav a { color: #dce6f2; }
header nav a:hover { color: #ffffff; }
header nav .brand { color: #ffffff; }
header nav .brand .sys { font-weight: 400; font-size: .8rem; color: #a9c3e0; margin-left: .4rem; }

/* The system's own one-liner on the entry shell. */
.entry h1 { font-family: var(--sans); }
.entry .entry-lede { font-size: .95rem; }

/* Locked rows in a fiction list (archive results, case TOCs): plain notice, never a link. */
.locked-note { color: var(--stamp); font-size: .85rem; }
