/* The CIC Library: plain pages, readable anywhere, in the site's own type and palette.
   Two kinds of page share this sheet: the Library's own files (body.file) and the Stacks (body.stacks),
   which hold Wikipedia's text unchanged. */
@font-face { font-family: 'ShareTech'; src: url('/fonts/share-tech-mono-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'PS2P'; src: url('/fonts/press-start-2p-latin-400-normal.woff2') format('woff2'); font-display: swap; }

:root { --bg: #0c0c0d; --panel: #161617; --rule: #302c2c; --ink: #c9c2b4; --dim: #8a7f7c; --hi: #e8e2da; --brass: #e0a85a; --brass-d: #a87436; --ox: #a8453d; }
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; color: var(--ink); font: 17px/1.65 'ShareTech', ui-monospace, 'Cascadia Mono', Consolas, monospace; -webkit-text-size-adjust: 100%; }
a { color: var(--brass); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--hi); }

.bar { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--rule); background: var(--panel);
  font: 10px/1.6 'PS2P', monospace; letter-spacing: .06em; }
.bar a { color: var(--dim); text-decoration: none; }
.bar a:first-child { color: var(--brass); }
.bar a:hover, .bar a:focus-visible { color: var(--hi); }
.bar .jack { margin-left: auto; color: var(--ox); }

main { max-width: 74ch; margin: 0 auto; padding: 34px 20px 60px; }
.kicker { margin: 0 0 10px; font: 9px/1.6 'PS2P', monospace; letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }
h1 { margin: 0 0 18px; font: 20px/1.5 'PS2P', monospace; color: var(--brass); letter-spacing: .02em; overflow-wrap: anywhere; }
h2 { margin: 38px 0 10px; padding-top: 14px; border-top: 1px solid var(--rule); font: 12px/1.6 'PS2P', monospace; color: var(--hi); letter-spacing: .04em; }
h3, h4, h5 { margin: 26px 0 6px; font: inherit; color: var(--hi); text-transform: uppercase; letter-spacing: .06em; }
p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 6px; }
.lede { color: var(--hi); font-size: 19px; }
strong { color: var(--hi); font-weight: normal; }

/* the credit on a Stacks page, and the sources on a file */
.credit, .sources { margin: 22px 0 30px; padding: 14px 16px 2px; border: 1px solid var(--rule); border-left: 3px solid var(--brass-d); background: var(--panel); font-size: 14.5px; line-height: 1.55; color: var(--dim); }
.sources h2 { margin: 0 0 8px; padding: 0; border: 0; }
.stacks article { overflow-wrap: anywhere; }

/* lists of what the Library holds */
.holdings { list-style: none; padding: 0; }
.holdings li { padding: 7px 0; border-bottom: 1px dotted var(--rule); }
.holdings span { color: var(--dim); font-size: 14px; }
.holdings .file { margin-left: 6px; padding: 1px 6px; border: 1px solid var(--brass-d); font-size: 12px; text-decoration: none; }
.shelf { list-style: none; padding: 0; }
.shelf li { padding: 9px 0; border-bottom: 1px dotted var(--rule); }
.shelf span { display: block; color: var(--dim); font-size: 15px; }

footer { max-width: 74ch; margin: 0 auto; padding: 18px 20px 46px; border-top: 1px solid var(--rule); color: var(--dim); font-size: 14px; }
@media (max-width: 520px) { body { font-size: 16px; } h1 { font-size: 16px; } .bar .jack { margin-left: 0; } }
@media print { html { background: #fff; } body { color: #000; } .bar, footer { display: none; } a { color: #000; } }
