:root {
  --bg: #0c0a08;
  --ink: #ece4d6;
  --muted: #a89c88;
  --gold: #d9b66a;
  --cross: #c9a55a;
  --panel: rgba(12, 10, 8, 0.78);
  --cols: 114;   /* cross width in em (190 chars x 0.6) */
  --rows: 112;   /* cross height in lines */
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: radial-gradient(ellipse at 50% 30%, #1a150f 0%, var(--bg) 70%);
  background-attachment: fixed;
  color: var(--ink);
  font: 18px/1.7 Georgia, "Iowan Old Style", "Times New Roman", serif;
  min-height: 100vh;
}

/* ---- the ASCII cross, fixed behind everything ---- */
.cross {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: ui-monospace, "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
  font-size: min(calc(100vh / var(--rows)), calc(100vw / var(--cols)));
  font-size: min(calc(100dvh / var(--rows)), calc(100vw / var(--cols)));
  line-height: 1;
  color: var(--cross);
  opacity: 0.55;
  white-space: pre;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ---- the writing ---- */
main {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
  padding: 18vh 1.5rem 20vh;
}

header { text-align: center; margin-bottom: 4rem; }

.kicker {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-weight: normal;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.15;
  text-shadow: 0 2px 18px #000, 0 0 4px #000;
}
h1 span { color: var(--gold); font-style: italic; }

section {
  background: var(--panel);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(217, 182, 106, 0.18);
  border-radius: 6px;
  padding: 1.5rem 2rem;
  margin: 0 0 2rem;
}

h2 {
  margin: 0 0 0.75rem;
  font-weight: normal;
  color: var(--gold);
  font-size: 1.5rem;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-weight: normal;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
ul:last-child, ol:last-child { margin-bottom: 0; }
li { margin-bottom: 0.5em; }
li::marker { color: var(--gold); }

strong { color: #f5ecdc; font-weight: bold; }
cite { font-style: italic; }

a { color: var(--gold); }

sup { line-height: 0; font-size: 0.65em; }
sup + sup::before { content: ","; color: var(--muted); }
sup a { text-decoration: none; padding: 0 0.1em; }
sup a:hover { text-decoration: underline; }

.sources { font-size: 0.8rem; color: var(--muted); }
.sources li { margin-bottom: 0.25em; }
.sources a { color: var(--muted); text-decoration-color: rgba(168, 156, 136, 0.4); }
.sources a:hover { color: var(--gold); }
.sources li:target { color: var(--gold); }
.sources li:target a { color: var(--gold); }

img, video { max-width: 100%; height: auto; border-radius: 4px; }

code, pre:not(.cross) {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
}
code { padding: 0.1em 0.35em; }
pre:not(.cross) { padding: 1rem; overflow-x: auto; }
