/* Väinaa Idle — site skin.
   Two colours only, at varying opacity, exactly as lib/theme.dart defines them:
   ink #1A1A1C + paper #FFFFFF. Danger #B4463C is the one accent, errors only. */

:root {
  --ink: #1A1A1C;
  --paper: #FFFFFF;
  --danger: #B4463C;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* ── Masthead + nav ───────────────────────────────────────────────── */

header.mast {
  padding: 40px 0 0;
}

.mast .brand {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
}

.mast .tagline {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

nav {
  margin: 24px 0 0;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

nav a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

nav a:hover { color: rgba(255, 255, 255, 0.9); }

nav a[aria-current="page"] {
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  padding-bottom: 4px;
}

/* ── Page headings ────────────────────────────────────────────────── */

h1 {
  margin: 40px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1 + .sub {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

h2 {
  margin: 34px 0 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.55;
}

a { color: rgba(255, 255, 255, 0.9); }

strong { color: rgba(255, 255, 255, 0.9); font-weight: 700; }

/* ── The shaft — the Pit's descending line (lib/screens/pit_screen.dart
   _shaft / _nodeRow / _marker). Same numbers: a 1px rail at x=8 inset 6px top
   and bottom, 7px dots centred on it, a 17px marker gutter plus an 11px gap
   before the text, and 7px of padding above and below each row. ── */

ul.shaft {
  position: relative;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

ul.shaft::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

ul.shaft li {
  position: relative;
  padding: 7px 0 7px 28px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.5;
}

ul.shaft li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

ul.shaft li strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.9);
}

/* ── Dotted lists — the changelog screen's "·" bullet ─────────────── */

ul.dot {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

ul.dot li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.35;
}

ul.dot li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Changelog release block, reused for news posts ───────────────── */

.release { margin-bottom: 22px; }

/* A news post carries a headline under its date bar; the page-level h2
   top margin would push it away from the rule, so close that up. */
.release h2 { margin-top: 0; }

.release .date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.release .date::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* ── Placeholder / TODO markers ───────────────────────────────────── */

.todo {
  color: var(--danger);
  font-weight: 700;
}

.empty {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

/* ── Footer ───────────────────────────────────────────────────────── */

footer {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

footer a { color: rgba(255, 255, 255, 0.55); text-decoration: none; }
footer a:hover { color: rgba(255, 255, 255, 0.9); }

@media (max-width: 400px) {
  .wrap { padding: 0 16px 48px; }
  nav { gap: 14px; }
}
