/*
 * Styles for neonsort.lawkauntangled.com
 *
 * The palette comes from the game: the near-black ground of the board, neon
 * text, and a rule under the header in the first five packet colours. No build
 * step, no external fonts, no analytics: the privacy page should not load the
 * kind of thing it describes.
 */
:root {
  --ground: #05070f;
  --surface: #0b1020;
  --rule: #1d2a44;
  --ink: #e8f4ff;
  --ink-soft: #a9b8cc;
  --ink-faint: #74839a;
  --accent: #00f0ff;
  --magenta: #ff2bd6;
  --lime: #a6ff2e;
  --amber: #ffc21a;
  --violet: #a06bff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ground); }
body {
  margin: 0;
  font: 17px/1.6 var(--sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% -10%, #101a40 0%, transparent 60%),
    var(--ground);
  min-height: 100vh;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }

header.site { margin-bottom: 40px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 12px; box-shadow: 0 0 24px rgba(0, 240, 255, .25); }
.brand span {
  font-weight: 800; font-size: 26px; letter-spacing: .12em; text-transform: uppercase;
  color: #9ff6ff; text-shadow: 0 0 12px rgba(0, 240, 255, .8), 0 0 28px rgba(255, 43, 214, .5);
}
.spectrum { display: flex; height: 3px; margin: 18px 0 14px; border-radius: 2px; overflow: hidden; }
.spectrum i { flex: 1; }
.spectrum i:nth-child(1) { background: var(--accent); }
.spectrum i:nth-child(2) { background: var(--magenta); }
.spectrum i:nth-child(3) { background: var(--lime); }
.spectrum i:nth-child(4) { background: var(--amber); }
.spectrum i:nth-child(5) { background: var(--violet); }
nav.site { display: flex; gap: 22px; flex-wrap: wrap; }
nav.site a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--accent); }

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 36px 0 8px; color: #9ff6ff; }
h3 { font-size: 18px; margin: 24px 0 4px; }
p, li { color: var(--ink-soft); }
strong { color: var(--ink); }
a { color: var(--accent); }
.lede { font-size: 20px; color: var(--ink); }
.updated { color: var(--ink-faint); font-size: 15px; margin-top: 0; }
ul { padding-left: 22px; }
li { margin: 4px 0; }

.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  padding: 18px 20px; margin: 16px 0;
}
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 24px 0; }
.features .card { margin: 0; }
.features h3 { margin-top: 0; color: var(--ink); }
.features p { margin: 0; font-size: 15px; }

table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--ink); }
td { color: var(--ink-soft); }

footer.site { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--ink-faint); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--ink-faint); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  .brand span { font-size: 21px; }
}

/* Long URLs and table cells must never push the page sideways on a phone. */
main { overflow-wrap: anywhere; }
table { table-layout: fixed; }
th:first-child, td:first-child { width: 34%; }
