:root {
  --bg: #1b1c1e;
  --panel: #232427;
  --text: #ecebe7;
  --muted: #a3a29d;
  --rule: #34353a;
  --accent: #f2b705;
  --todo-bg: #4a3b06;
  --todo-text: #ffe08a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

header.site a.brand { color: var(--text); font-weight: 700; text-decoration: none; }

header.site nav { display: flex; flex-wrap: wrap; gap: 0 1rem; font-size: 0.9rem; }

h1 { font-size: 2rem; line-height: 1.2; margin: 2rem 0 0.5rem; }

h2 {
  font-size: 1.2rem;
  margin: 2.5rem 0 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

h3 { font-size: 1rem; margin: 1.5rem 0 0.25rem; }

p, ul, ol { margin: 0.5rem 0 1rem; }

li { margin: 0.25rem 0; }

a { color: var(--accent); }

.meta { color: var(--muted); font-size: 0.95rem; }

.draft {
  margin: 1.5rem 0 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--panel);
  font-size: 0.95rem;
}

/* Blanks and statements still to confirm. None may remain when the page is published. */
mark.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  padding: 0 0.2em;
  border-radius: 3px;
}

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0.5rem 0 1rem; }

th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--rule); }

th { color: var(--muted); font-weight: 500; }

footer.site { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
