/* Halden Archive Services: house style. */
/* 54484953204953204e4f5420544845205741592c2041554449544f52 */
/* 2219 revision: night palette. The archive is quiet. Please keep it that way. */
:root {
  --bg: #08090b; --panel: #0f1215; --panel-2: #14181c; --ink: #cfd1c8; --dim: #9a9e95; --muted: #6c726d; --line: #22282c;
  --accent: #8ea596; --accent-2: #a3434a; --glow: rgba(142, 165, 150, .14);
  --serif: "Cormorant Garamond", "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", "Courier New", Courier, monospace;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
html, body { margin: 0; color: var(--ink); font: 17px/1.62 var(--serif); }
body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(142, 165, 150, .06), transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(163, 67, 74, .07), transparent 55%),
    var(--bg);
}
/* film grain, scanlines and a vignette over everything; clicks pass through */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; }
body::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px);
  opacity: .22; mix-blend-mode: overlay; animation: grain 1.2s steps(3) infinite;
}
body::after { background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .72) 100%); }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3px, 2px); } 66% { transform: translate(2px, -3px); } 100% { transform: translate(0, 0); } }

::selection { background: var(--accent-2); color: #f3eee6; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted rgba(142, 165, 150, .5); }
a:hover { color: #d8b7b9; border-bottom-color: var(--accent-2); }

header.site { background: linear-gradient(to bottom, #050607, rgba(5, 6, 7, .85)); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 18px 20px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); border: 0; }
.brand img { width: 46px; height: 46px; border-radius: 50%; filter: grayscale(.4) contrast(1.1); box-shadow: 0 0 22px var(--glow); transition: filter 4s, transform 6s; }
.brand:hover img { filter: grayscale(0) contrast(1.25) brightness(1.08); transform: rotate(-7deg); }
.brand b { font: 600 22px/1.05 var(--serif); letter-spacing: .06em; display: block; }
.brand small { color: var(--muted); font: 11px/1.3 var(--mono); letter-spacing: .22em; text-transform: uppercase; }
nav.main a { margin-left: 20px; font: 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); border: 0; }
nav.main a:hover { color: var(--ink); text-shadow: 0 0 8px var(--glow); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
main { padding: 46px 0 70px; }
h1 { font-weight: 500; font-size: 42px; line-height: 1.15; margin: 0 0 16px; letter-spacing: .01em; text-shadow: 0 0 18px rgba(207, 209, 200, .08); }
h2 { font-weight: 500; font-size: 26px; margin: 36px 0 10px; color: #dfe0d8; }
h2::before { content: "§ "; color: var(--accent-2); font-size: .8em; }
h3 { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
p { max-width: 720px; }
.lede { font-size: 21px; color: var(--dim); max-width: 720px; }
.muted { color: var(--muted); font: 13px/1.6 var(--mono); }
code { font: 13px var(--mono); color: var(--accent); background: #0b0d0f; padding: 2px 6px; border: 1px solid var(--line); word-break: break-all; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 22px; }
.card { background: linear-gradient(to bottom, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 2px; padding: 18px 20px; margin-bottom: 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02), 0 12px 30px rgba(0, 0, 0, .35); }
.card h3 { margin: 0 0 8px; }
.card img { filter: grayscale(.75) contrast(1.15) brightness(.85); border: 1px solid var(--line); }

/* the notice boxes */
.notice { border-left: 2px solid var(--accent-2); padding: 10px 16px; background: rgba(163, 67, 74, .06); font-size: 16px; color: var(--dim); }
.visitors { margin-top: 34px; padding: 14px 18px; border: 1px dashed #2c3236; color: var(--dim); font-size: 16px; }
.visitors b { font: 11px var(--mono); letter-spacing: .2em; color: var(--accent-2); display: block; margin-bottom: 4px; }

/* lines printed in the background colour: only a selection shows them */
.hush { color: var(--bg); text-shadow: none; }
.card .hush { color: var(--panel); }
.hush::selection { background: var(--accent-2); color: #f3eee6; }

/* withdrawn / redacted */
.redact { background: #cfd1c8; color: #cfd1c8; padding: 0 .2em; border-radius: 1px; user-select: none; }
.withdrawn { opacity: .55; }

label { display: block; font: 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 12px 0 5px; }
input { display: block; width: 100%; max-width: 440px; padding: 10px 12px; font: 15px var(--mono); color: var(--ink); background: #07080a; border: 1px solid #2a3135; border-radius: 1px; caret-color: var(--accent-2); }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
input::placeholder { color: #3b4246; }
button { margin-top: 16px; padding: 10px 20px; font: 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #e9e5dc; background: #2a1517; border: 1px solid var(--accent-2); border-radius: 1px; cursor: pointer; }
button:hover { background: var(--accent-2); }
pre { white-space: pre-wrap; font: 13px/1.6 var(--mono); color: #b9c7bd; background: #060708; border: 1px solid var(--line); padding: 14px; border-radius: 1px; min-height: 1.5em; text-shadow: 0 0 6px rgba(142, 165, 150, .25); }

table.sym { border-collapse: collapse; width: 100%; background: var(--panel); }
table.sym td, table.sym th { border: 1px solid var(--line); padding: 10px 12px; text-align: left; font: 13px var(--mono); color: var(--dim); }
table.sym th { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
table.sym svg { width: 54px; height: 54px; }
table.sym tr:hover svg { filter: drop-shadow(0 0 6px rgba(163, 67, 74, .6)); }

footer.site { border-top: 1px solid var(--line); background: #050607; font: 11px/1.8 var(--mono); color: var(--muted); letter-spacing: .04em; position: relative; z-index: 2; }
footer.site .wrap { padding: 22px 20px; }
footer.site .log { display: block; margin-top: 8px; color: #4a5150; }
footer.site a { color: var(--dim); }

/* the idle line, and the rare twitch */
.whisper { position: fixed; left: 22px; bottom: 18px; z-index: 60; font: 13px var(--mono); color: var(--dim); opacity: 0; transition: opacity 3s; pointer-events: none; }
.whisper.on { opacity: .75; }
.twitch { animation: twitch .14s steps(2) 1; }
@keyframes twitch { 0% { transform: translate(1px, 0); filter: blur(.4px); } 50% { transform: translate(-2px, 1px); } 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) { body::before { animation: none; } .whisper { transition: none; } }
@media (max-width: 640px) { nav.main a { margin: 0 14px 0 0; } h1 { font-size: 32px; } }
