/* site.css - the plain pages of vaevictis.vip (/privacy/, /terms/, /credits/, /contact/; the box viewer has its own).
   Dark, blood-red, gothic, in the game's own palette (src/core.js PAL_LIST). No framework, no outside request.
   Fonts (self-hosted, SIL OFL 1.1, licences beside them in fonts/): Jacquard 24 (the name and page titles),
   Pixelify Sans (the links and section heads). Body text is the reader's own serif, for reading. */
@font-face { font-family: "Jacquard 24"; src: url(fonts/jacquard-24-latin.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url(fonts/pixelify-sans-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --k: #050407; --n0: #0d0b12; --d1: #1a1520; --gr0: #2a2630; --gr1: #48434f; --gr3: #a8a0a6;
  --bn1: #c4b392; --w: #eee4cc; --r0: #240408; --r1: #520a11; --r2: #8e1318; --r3: #c8231f; --r4: #ff4f3a;
  --gd: #c39535; --y: #f3d37a;
  --pix: "Pixelify Sans", ui-monospace, "Consolas", monospace;
  --goth: "Jacquard 24", "Pixelify Sans", serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { background: var(--k); color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 1.0625rem/1.65 var(--serif); color: var(--bn1);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0, rgba(142, 19, 24, .28), transparent 70%),
    linear-gradient(var(--n0), var(--k) 420px);
}
a { color: var(--r4); text-underline-offset: .18em; }
a:hover { color: var(--y); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--y); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--w); color: var(--k); padding: .5em 1em; z-index: 9; }
.skip:focus { left: .5rem; top: .5rem; }

/* the header: the name (home) and the links */
.top { border-bottom: 1px solid var(--r1); background: rgba(5, 4, 7, .8); }
.top .in { max-width: 72rem; margin: 0 auto; padding: .5rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; }
.brand { font: 2.1rem/1 var(--goth); color: var(--w); text-decoration: none; letter-spacing: .02em; text-shadow: 0 2px 0 var(--r1), 0 0 18px rgba(200, 35, 31, .35); }
.brand:hover { color: var(--w); }
.nav { display: flex; flex-wrap: wrap; gap: .1rem .2rem; margin: 0; padding: 0; list-style: none; font-family: var(--pix); font-size: 1rem; }
.nav a { display: inline-block; padding: .45rem .55rem; color: var(--bn1); text-decoration: none; min-height: 44px; line-height: 1.7; }
.nav a:hover { color: var(--w); }
.nav a[aria-current="page"] { color: var(--w); box-shadow: inset 0 -2px 0 var(--r3); }
.nav a.play { color: var(--w); background: var(--r2); border: 1px solid var(--r3); border-radius: 3px; padding: .45rem .9rem; }
.nav a.play:hover { background: var(--r3); }

/* the page */
main { flex: 1; width: 100%; max-width: 44rem; margin: 0 auto; padding: 1.5rem 1.1rem 3rem; }
h1 { font: 2.6rem/1.05 var(--goth); color: var(--w); margin: .6rem 0 .3rem; letter-spacing: .01em; text-shadow: 0 2px 0 var(--r1); }
.lede { color: var(--gr3); margin: 0 0 1.6rem; font-style: italic; }
h2 { font: 600 1.2rem/1.3 var(--pix); color: var(--gd); margin: 2.2rem 0 .5rem; padding-bottom: .25rem; border-bottom: 1px solid var(--r1); }
h3 { font: 600 1.02rem/1.35 var(--pix); color: var(--w); margin: 1.5rem 0 .3rem; }
p, ul, ol, dl, table { margin: .6rem 0; }
ul, ol { padding-left: 1.35rem; }
li { margin: .3rem 0; }
li::marker { color: var(--r3); }
strong, b { color: var(--w); font-weight: 600; }
code { font: .9em/1.4 ui-monospace, Consolas, monospace; color: var(--w); background: var(--d1); padding: .05em .3em; border-radius: 3px; overflow-wrap: anywhere; }
hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--r2), transparent); margin: 2rem 0; }
.box { background: var(--d1); border-left: 4px solid var(--r3); padding: .7rem 1rem; border-radius: 3px; margin: 1rem 0; }
.box p:first-child { margin-top: 0; } .box p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .45rem .5rem; border-bottom: 1px solid var(--gr0); }
th { color: var(--w); font-weight: 600; }
.wide { overflow-x: auto; }
/* a fact the owner must confirm before the page is relied on (tools/build-pages.mjs counts them) */
.confirm { color: var(--k); background: var(--y); padding: 0 .3em; border-radius: 2px; font-style: normal; }
.mail { font: 600 1.35rem/1.3 var(--pix); }
.meta { color: var(--gr3); font-size: .95rem; }

/* the footer */
.foot { border-top: 1px solid var(--r1); background: var(--n0); color: var(--gr3); font-size: .95rem; }
.foot .in { max-width: 72rem; margin: 0 auto; padding: 1.2rem 1rem 1.6rem; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; }
.foot a { color: var(--bn1); }
.foot a:hover { color: var(--w); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.foot p { margin: 0; }

@media (min-width: 48rem) {
  body { font-size: 1.125rem; }
  main { padding-top: 2.5rem; }
  h1 { font-size: 3.3rem; }
}
@media (prefers-reduced-motion: no-preference) { a { transition: color .15s; } }
@media print {
  body { background: #fff; color: #000; } .top, .foot { display: none; } a { color: #000; } h1, h2, h3, strong { color: #000; text-shadow: none; }
}
