:root {
  --bg: #0A0F1C;
  --surface: #111A2E;
  --border: #22304A;
  --text: #E8EDF7;
  --soft: #C5CEE0;
  --muted: #94A0B8;
  --accent: #5B8CFF;
  --tint: #16244A;
  --button: #2563EB;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

nav { border-bottom: 1px solid var(--border); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1120px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; text-decoration: none; color: var(--text); letter-spacing: -0.3px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand .by { font-weight: 500; font-size: 14px; color: var(--muted); margin-left: -2px; }
nav .back { color: var(--soft); text-decoration: none; font-size: 15px; }
nav .back:hover { color: var(--text); }

main { padding: 56px 0 72px; }
h1 { font-size: clamp(34px, 5vw, 46px); line-height: 1.1; letter-spacing: -1.2px; margin: 0 0 10px; font-weight: 800; }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 36px; }
h2 { font-size: 22px; letter-spacing: -0.3px; margin: 44px 0 10px; }
h3 { font-size: 18px; margin: 28px 0 6px; }
p, li { color: var(--soft); }
ul { padding-left: 22px; }
li { margin: 6px 0; }
strong { color: var(--text); }

.summary { background: var(--tint); border: 1px solid rgba(91, 140, 255, 0.3); border-radius: 16px; padding: 22px 26px; margin: 0 0 8px; }
.summary h2 { margin-top: 0; }
.summary ul { margin-bottom: 0; }

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

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 26px; margin: 16px 0; }
.card h3 { margin-top: 0; }
.btn { display: inline-block; background: var(--button); color: #fff; font-weight: 600; text-decoration: none; padding: 13px 22px; border-radius: 999px; }
.btn:hover { background: #1D4ED8; }

footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; max-width: 1120px; }
footer a { color: inherit; text-decoration: none; margin-left: 20px; white-space: nowrap; }
footer a:hover { color: var(--text); }

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  main { padding-top: 36px; }
  .summary, .card { padding: 18px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--border); padding: 10px 0; }
  td { border: 0; padding: 4px 0; }
  td:first-child { color: var(--text); font-weight: 600; }
  footer a { margin: 0 20px 0 0; }
}

/* Vigil Learn */
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.answer { font-size: 20px; line-height: 1.6; color: var(--text); margin: 0 0 24px; }
.next { font-weight: 600; text-decoration: none; }
.blurb { margin: -4px 0 8px; color: var(--muted); }
.lessons { padding-left: 24px; margin: 0; }
.lessons li { margin: 8px 0; }
.lessons a { text-decoration: none; font-weight: 500; }
.lessons a:hover { text-decoration: underline; }
.card.cta { background: var(--tint); border-color: rgba(91, 140, 255, 0.3); margin: 36px 0; }
@media (max-width: 520px) { .answer { font-size: 18px; } }
.answer + h2 { margin-top: 36px; }
.steps { padding-left: 24px; margin: 0 0 28px; }
.steps li { margin: 8px 0; padding-left: 4px; }
