:root {
  --bg: #EBF1F6;
  --surface: #FFFFFF;
  --ink: #121A22;
  --ink-soft: #46535F;
  --ink-faint: #5C6975;
  --accent: #1A6BBF;
  --accent-deep: #0B4A80;
  --line: #C5D2DE;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A121C;
    --surface: #121F2E;
    --ink: #E6ECF3;
    --ink-soft: #93A3B5;
    --ink-faint: #6D7E90;
    --accent: #4C8FE6;
    --accent-deep: #4FB2F5;
    --line: #1F2E40;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Century Gothic", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.slab { font-family: Rockwell, "Roboto Slab", Georgia, serif; }
.mono { font-family: "SF Mono", Menlo, Consolas, monospace; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px;
}

header.portal {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.portal .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
header.portal .brand {
  font-family: Rockwell, "Roboto Slab", Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
}

h1, h2, h3 { margin: 0 0 12px; }
p { color: var(--ink-soft); }
