:root {
  color-scheme: dark;
  --ink: #e7eef8;
  --muted: #9aabc2;
  --line: #3d6ea8;
  --bg: #0c1016;
  --card: #151b26;
  --accent: #8cb6ff;
  --ok: #b7f0c8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(20, 40, 64, 0.55), transparent 28%),
    radial-gradient(circle at top left, #1c3148 0, transparent 36%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Segoe UI", sans-serif;
}
.shell {
  width: min(980px, calc(100% - 28px));
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  margin: 28px 0;
}
.story, .panel {
  background: rgba(21, 27, 38, 0.94);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 32px 30px;
}
.eyebrow {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 12px;
}
h1 {
  margin: 8px 0 6px;
  color: var(--accent);
  font-size: 40px;
  line-height: 1.05;
}
h2 { margin: 0 0 8px; font-size: 26px; color: var(--ink); }
.credit { margin: 0 0 14px; letter-spacing: 0.04em; }
.lede, .intro, .facts, .links { color: var(--muted); }
.facts { padding-left: 18px; }
.facts li + li { margin-top: 8px; }
.tabs { display: flex; gap: 8px; margin: 8px 0 16px; }
.tabs button { background: #243044; color: var(--ink); }
.tabs button.active { background: #2f5f9a; color: white; }
.tabs a, button, .button {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  background: #243044;
  color: var(--ink);
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.tabs a.active, button, .button { background: #2f5f9a; color: white; }
.button.quiet, .tabs a { background: #243044; color: var(--ink); }
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
input {
  border: 1px solid #314056;
  border-radius: 8px;
  background: #0e1218;
  color: white;
  padding: 12px;
  font: inherit;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.signed-in { margin-top: 0; }
.message { min-height: 1.4em; color: #ffb4a8; }
.message.ok { color: var(--ok); }
.links { margin: 4px 0 0; }
.links a { color: var(--accent); }
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
}
