/* Secretariat: one reading column, black on a light page, colour only for a role. */

:root {
  --paper: #f7f8f6;
  --surface: #ffffff;
  --ink: #000000;
  --muted: #3f4752;
  --line: #d6d9d4;
  --soft: #eef0ec;
  --green: #1b6e3a;
  --red: #c0182b;
  --blue: #2457a6;
  --green-tint: #e6f2ea;
  --red-tint: #fbeaec;
  --blue-tint: #e8eef8;
  --amber: #ad4f08;
  --amber-tint: #fdf1e3;
  --canvas: #eef0f3;
  --on-ink-text: #ffffff;
  --on-ink-muted: #e3e6e1;
  --on-ink-hover: #333333;
  --on-ink-focus: #e8eef8;
  --prose: "Atkinson Hyperlegible Next", system-ui, "Segoe UI", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", Consolas, monospace;
  --column: 792px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 19px/1.55 var(--prose);
  -webkit-text-size-adjust: 100%;
}

.col {
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 16px;
}

header.col { padding-top: 48px; }

h1 { font-size: 40px; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.01em; }
.subtitle { font-size: 23px; line-height: 1.35; margin: 0 0 18px; }
h2 { font-size: 28px; line-height: 1.25; margin: 56px 0 14px; }
h3 { font-size: 22px; line-height: 1.3; margin: 0; }
p { margin: 0 0 16px; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* The top bar: the name, the pages, the language. */
.topbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--on-ink-text);
  line-height: 1.3;
}
.topbar a:focus-visible { outline: 3px solid var(--on-ink-focus); outline-offset: 2px; }
.topbar .brand { color: var(--on-ink-text); text-decoration: none; font-size: 22px; font-weight: 700; white-space: nowrap; }
.topbar .pages { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.topbar .link {
  padding: 4px 12px;
  border: 2px solid var(--on-ink-text);
  border-radius: 4px;
  color: var(--on-ink-text);
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
}
.topbar .link:hover { background: var(--on-ink-hover); }
.topbar .link.current { background: var(--on-ink-text); color: var(--ink); }
.lang { display: inline-flex; border: 2px solid var(--on-ink-text); border-radius: 4px; overflow: hidden; }
.lang a { padding: 4px 10px; font-size: 17px; font-weight: 700; color: var(--on-ink-text); text-decoration: none; }
.lang a:hover { background: var(--on-ink-hover); }
.lang a.current { background: var(--on-ink-text); color: var(--ink); }

/* A note about the state of the project. */
.notice { padding: 12px 16px; background: var(--amber-tint); border-left: 6px solid var(--amber); }

/* The ten risks: the identifier, the official name, one sentence. */
.risks { margin: 24px 0 0; padding: 0; list-style: none; }
.risks li { padding: 16px 18px; margin: 0 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.risks li p { margin: 6px 0 0; }
.risk-id { display: inline-block; margin: 0 0 6px; padding: 1px 8px; background: var(--ink); color: var(--on-ink-text); border-radius: 3px; font-family: var(--mono); font-size: 16px; font-weight: 700; }

/* The resources: where to start, then every source under its group. */
.contents { margin: 0 0 8px; padding: 0; list-style: none; font-size: 17px; }
.contents li { margin: 0 0 4px; }
.contents a { color: var(--ink); }
.picks { margin: 0; padding-left: 28px; }
.picks li { margin: 0 0 6px; }
.sources { margin: 0; padding: 0; list-style: none; }
.sources li { padding: 14px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.sources li:last-child { border-bottom: none; }
.sources li p { margin: 4px 0 0; }
.source-title { font-size: 20px; font-weight: 700; }
.byline { color: var(--muted); font-size: 17px; }

footer.col { padding: 48px 16px 64px; color: var(--muted); font-size: 17px; }

@media (max-width: 600px) {
  body { font-size: 18px; }
  header.col { padding-top: 32px; }
  h1 { font-size: 32px; }
  .subtitle { font-size: 20px; }
  h2 { font-size: 24px; margin-top: 44px; }
  .topbar { padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
