/* Privacy notice. Same screen as the terminal, with the terminal's own values
   (style.css): left axis, mark in the header, navigation in a bar below it,
   body size, line height, glow, scanlines, "> " items, bracket links. The
   only thing it does not copy is the fixed full-screen box: this is a
   document that scrolls and prints. */

@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('fonts/vt323-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --crt: #0000AA;
  --fg: #ffffff;
  /* 0.62 on #0000AA is 5.32:1, the same muted tone as the terminal footer */
  --dim: rgba(255, 255, 255, 0.62);
  --rule: rgba(255, 255, 255, 0.12);
  --glow: 0 0 2px rgba(255, 255, 255, 0.95), 0 0 8px rgba(200, 220, 255, 0.7), 0 0 20px rgba(160, 190, 255, 0.3);
  --glow-hard: 0 0 2px rgba(255, 255, 255, 0.95), 0 0 8px rgba(200, 220, 255, 0.9), 0 0 20px rgba(160, 190, 255, 0.6);
  /* #terminal-header and #terminal-content paddings */
  --pad-head: clamp(24px, 4vw, 56px);
  --pad-text: clamp(32px, 4vw, 60px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--crt);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--crt);
  color: var(--fg);
  font-family: 'VT323', monospace;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.75;
  text-shadow: var(--glow);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.25) 2px,
    rgba(0, 0, 0, 0.25) 4px
  );
  pointer-events: none;
  z-index: 10;
}

/* #terminal-content: left axis, same width cap */
.wrap {
  max-width: 1100px;
  padding: 0 var(--pad-text);
}

/* #terminal-header + .wtf-anchor-bar, held together at the top */
.band {
  position: sticky;
  top: 0;
  z-index: 7;
  background: var(--crt);
  margin-bottom: clamp(20px, 3vw, 36px);
}

.band-head {
  padding: clamp(14px, 2.2vw, 24px) var(--pad-head) clamp(8px, 1.2vw, 14px);
}

/* Block and as wide as the mark: inline, it would add a line box of
   body line-height under the image */
.band-head a {
  display: block;
  width: max-content;
  text-decoration: none;
}

.band-head img {
  display: block;
  height: clamp(32px, 4vw, 52px);
  width: auto;
}

.band-bar {
  border-bottom: 1px solid var(--rule);
  padding: 0.2em var(--pad-head);
}

/* .wtf-anchor-link */
.band-bar a {
  display: inline-block;
  padding: 0.2em 0.55em;
  font-size: 0.8em;
  letter-spacing: 0.06em;
  opacity: 0.55;
  text-decoration: none;
  transition: opacity 0.1s;
}

@media (hover: hover) {
  .band-bar a:hover { opacity: 1; }
}

main {
  padding-bottom: clamp(40px, 6vw, 80px);
}

/* Titles at body size, as every heading in the terminal is */
h1, h2 {
  font-size: 1em;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: var(--glow-hard);
}

h1::before,
h2::before {
  content: '> ';
}

h2 {
  margin: 1.8em 0 0.6em;
  padding-top: 0.6em;
  border-top: 1px solid var(--rule);
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.updated {
  color: var(--dim);
  margin-bottom: 1.2em;
}

.lede {
  margin-bottom: 1em;
}

p { margin-bottom: 0.6em; }

/* .wtf-item: "> " items, wrapped lines align with the text, not the mark */
ul {
  list-style: none;
  margin: 0 0 0.6em;
}

li {
  padding-left: 3ch;
  text-indent: -3ch;
  margin-bottom: 0.3em;
}

li::before {
  content: '>  ';
}

a {
  color: inherit;
  text-decoration: underline;
}

a:hover {
  text-shadow: var(--glow-hard);
}

/* Bracket buttons are not underlined in the terminal (.menu-item) */
#stats-toggle {
  text-decoration: none;
}

/* VT323 has no bold, so emphasis is carried by a harder glow */
strong {
  font-weight: 400;
  text-shadow: var(--glow-hard);
}

.note { color: var(--dim); }

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.8em;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.2em 1em 0.2em 0;
  border-bottom: 1px solid var(--rule);
}

th {
  color: var(--dim);
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* .terminal-footer */
footer {
  border-top: 1px solid var(--rule);
  padding-top: 0.8em;
  margin-top: 2em;
  color: var(--dim);
  font-size: clamp(14px, 1.3vw, 18px);
  letter-spacing: 0.08em;
}

footer a { color: var(--dim); text-decoration: none; }

@media (hover: hover) {
  footer a:hover { color: var(--fg); }
}

@media (max-width: 600px) {
  body { font-size: 18px; }
  .wrap { padding: 0 16px; }
  .band-head { padding: 10px 0 8px 14px; }
  .band-head img { height: 20px; }
  .band-bar { padding: 0.2em 16px; }
}

/* Print / save as PDF. Browsers drop background colours by default, which would
   leave white text on white paper. A privacy notice is a document people keep,
   so it gets a readable printed form: black on white, no glow, no scanlines. */
@media print {
  html, body {
    background: #fff;
    color: #000;
    text-shadow: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11pt;
    line-height: 1.45;
  }

  body::before { display: none; }

  .wrap { max-width: none; padding: 0; }
  li::before { content: '- '; }

  /* The mark is white: on paper it would vanish, and the title says enough */
  .band { display: none; }

  h1, h2 {
    color: #000;
    text-shadow: none;
    text-transform: none;
    page-break-after: avoid;
  }

  h1 { font-size: 18pt; }
  h2 { font-size: 13pt; }
  strong { text-shadow: none; font-weight: 700; }

  h1::before, h2::before { content: none; }

  h2 { border-top: 1px solid #999; }

  a { color: #000; border-bottom: none; text-decoration: underline; }

  /* URLs are lost on paper unless spelled out */
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }

  th, td, footer { border-color: #999; }
  th { color: #000; }
  .note, .updated, footer { color: #333; }

  ul, table, p { page-break-inside: avoid; }
}
