/* The Eigen website (content/eigen/site). Colours of the 2010 interface: dark stone, parchment gold, PK red. */
:root {
  --bg: #12100d;
  --panel: #1d1914;
  --panel-2: #262019;
  --line: #3b3226;
  --text: #e9e1d0;
  --muted: #a99d86;
  --gold: #f0b43c;
  --gold-2: #ffd27a;
  --red: #c8321e;
  --green: #4fbf4f;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  color: var(--text);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(ellipse at top, rgba(200, 50, 30, 0.18), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

a { color: var(--gold-2); }
a:hover { color: #fff; }

header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 12px 24px;
  background: rgba(18, 16, 13, 0.94);
  border-bottom: 1px solid var(--line);
}

.logo {
  font: 700 26px/1 Georgia, "Times New Roman", serif;
  letter-spacing: 1px;
  color: var(--gold);
  text-decoration: none;
  text-shadow: 0 2px 0 #000;
}

header nav { display: flex; flex-wrap: wrap; gap: 4px; }

header nav a {
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

header nav a:hover { color: var(--text); background: var(--panel-2); }
header nav a.on { color: var(--gold); background: var(--panel); }

main { max-width: 1100px; margin: 0 auto; padding: 32px 24px 48px; }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--gold); line-height: 1.25; }
h1 { font-size: 40px; margin: 0 0 12px; }
h2 { font-size: 26px; margin: 40px 0 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
h3 { font-size: 19px; margin: 0 0 10px; }

.lead { font-size: 18px; color: var(--muted); max-width: 760px; }
.small { font-size: 14px; color: var(--muted); }

code {
  font: 14px "Consolas", "Courier New", monospace;
  color: var(--gold-2);
  background: #0b0a08;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
}

.hero { text-align: center; padding: 48px 0 32px; }
.hero h1 { font-size: 76px; letter-spacing: 3px; text-shadow: 0 4px 0 #000, 0 0 40px rgba(240, 180, 60, 0.25); margin: 0; }
.tagline { font-size: 20px; max-width: 680px; margin: 12px auto 20px; }
.status { color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-right: 8px; box-shadow: 0 0 8px var(--green); }

.button {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 28px;
  border-radius: 6px;
  border: 1px solid #000;
  background: linear-gradient(#e2a12c, #a8660f);
  color: #1a1206;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 0 #000;
}

.button:hover { color: #000; background: linear-gradient(#f5bb4b, #bd7615); }
.button.big { font-size: 20px; padding: 16px 40px; }
.button.off { background: var(--panel-2); color: var(--muted); box-shadow: none; border-color: var(--line); }

.banner {
  margin: 8px 0 24px;
  padding: 14px 18px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: rgba(240, 180, 60, 0.08);
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }

.card, .group {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

.card p { margin: 0; color: var(--muted); }
.group.live { border-color: var(--gold); }

.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.columns.two { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.group ul { margin: 0; padding-left: 18px; }

.steps li { margin-bottom: 6px; }

.toc { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

.tag.live { color: #1a1206; background: var(--gold); border-color: var(--gold); }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--gold); border-bottom: 1px solid var(--line); padding: 6px 8px; font-weight: 600; }
td { border-bottom: 1px solid #2a241b; padding: 6px 8px; vertical-align: top; }
tbody tr:hover { background: var(--panel-2); }
td.num, th.num { text-align: right; white-space: nowrap; }
.args { color: var(--muted); font-size: 14px; }

.filter {
  width: 100%;
  max-width: 420px;
  margin: 8px 0 16px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 15px;
}

footer { text-align: center; color: var(--muted); font-size: 14px; padding: 24px; border-top: 1px solid var(--line); }
footer a { margin-left: 8px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 52px; }
  .columns.two { grid-template-columns: 1fr; }
  main { padding: 20px 14px 40px; }
}

#commands td:first-child, #items td:first-child { width: 38%; }
