/* Project page (site/index.html.in). No external resources; light and dark colours. */
:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #1d1f21;
  --muted: #5f6368;
  --line: #dcdcd8;
  --accent: #0b5cad;
  --accent-text: #ffffff;
  --warn-bg: #fff6e5;
  --warn-line: #d98b00;
  --code-bg: #f1f1ee;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --surface: #1d2024;
    --text: #e6e6e3;
    --muted: #a3a7ad;
    --line: #34383d;
    --accent: #6cb2ff;
    --accent-text: #0d1117;
    --warn-bg: #2a2214;
    --warn-line: #e0a030;
    --code-bg: #26292e;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace; font-size: 0.9em; }
code { background: var(--code-bg); padding: 0.1em 0.3em; border-radius: 3px; }
pre { background: var(--code-bg); padding: 0.75rem 1rem; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
pre code { padding: 0; background: none; }
h1, h2, h3 { line-height: 1.25; }
h2 { margin-top: 2.5rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
main > section:first-child h2 { border-top: none; padding-top: 0; }
.meta, .status { color: var(--muted); font-size: 0.9rem; }

/* Header */
header.top { background: var(--surface); border-bottom: 1px solid var(--line); padding: 2rem 0 1.25rem; }
header.top h1 { margin: 0 0 0.75rem; font-size: 2rem; }
.lead { margin: 0 0 1rem; max-width: 50rem; }
.credit {
  margin: 0 0 1rem; max-width: 50rem; padding: 0.6rem 0.9rem;
  background: var(--code-bg); border-left: 4px solid var(--accent); border-radius: 4px;
}
nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
nav a { text-decoration: none; font-weight: 600; }

/* Download */
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.button {
  display: inline-block; background: var(--accent); color: var(--accent-text);
  padding: 0.6rem 1.1rem; border-radius: 6px; font-weight: 600; text-decoration: none;
  overflow-wrap: anywhere;
}
.sha code { overflow-wrap: anywhere; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.steps > div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0 1rem 0.5rem; min-width: 0; }
.steps h3 { margin-bottom: 0.5rem; }
.steps ul { padding-left: 1.2rem; }

/* Safety */
.warning { background: var(--warn-bg); border-left: 4px solid var(--warn-line); border-radius: 6px; padding: 0.25rem 1.25rem 0.5rem; margin-top: 2.5rem; }
.warning h2 { border-top: none; margin-top: 0.75rem; }

/* Acknowledgements */
.credits { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; }
.credits > div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0 1.1rem 0.25rem; min-width: 0; }
.credits h3 { margin-bottom: 0.4rem; }
.credits p a { overflow-wrap: anywhere; }

/* Designs */
.table-scroll { overflow-x: auto; }
table.overview { border-collapse: collapse; width: 100%; background: var(--surface); }
.overview th, .overview td { text-align: left; padding: 0.45rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.overview td:first-child { white-space: nowrap; font-weight: 600; }
section.design { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0 1.25rem 0.75rem; margin: 1.5rem 0; }
section.design h3 { font-size: 1.35rem; margin: 1rem 0 0.25rem; }
.version { color: var(--muted); font-weight: 400; font-size: 1rem; }
.tagline { margin: 0 0 0.5rem; font-style: italic; }
ul.features { margin: 0.25rem 0 0.5rem; padding-left: 1.2rem; }
ul.features li { margin: 0.15rem 0; }
ul.manuals { list-style: none; padding: 0; margin: 0.75rem 0 0.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
ul.manuals a { font-weight: 600; }
ul.manuals a::before { content: "PDF "; font-size: 0.7rem; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }

footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1rem 0 2rem; }
footer p { margin: 0.25rem 0; }

@media (max-width: 40rem) {
  body { font-size: 15px; }
  header.top h1 { font-size: 1.6rem; }
  section.design { padding: 0 0.9rem 0.5rem; }
}
