/* Shared styling for the static content pages. Kept separate from the app's
   stylesheet so these pages load on their own, without the bundle. */

:root {
  --bg: #11151b;
  --panel: #161b23;
  --line: #262f3b;
  --text: #e4eaf1;
  --muted: #93a3b8;
  --accent: #4c8bf5;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

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

header.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.brand:hover {
  color: var(--text);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-left: 16px;
}
nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
}

h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 36px 0 8px;
}
h2 {
  font-size: 19px;
  margin: 34px 0 8px;
}
h3 {
  font-size: 16px;
  margin: 24px 0 6px;
}

p,
li {
  color: #cdd7e3;
}
.lead {
  font-size: 18px;
  color: var(--text);
}

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

ul {
  padding-left: 20px;
}
li {
  margin: 6px 0;
}

code {
  background: #0d1117;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.cta {
  display: inline-block;
  margin: 20px 0 8px;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.cta:hover {
  background: #3f7ae0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0;
}

.tree {
  background: #0d1117;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  /* The diagram's meaning is in its line breaks and indentation — keep them,
     and let the box scroll sideways rather than reflowing. */
  white-space: pre;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: #cdd7e3;
}

footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
footer a {
  color: var(--muted);
  margin-right: 14px;
}
footer a:hover {
  color: var(--text);
}

.updated {
  font-size: 14px;
  color: var(--muted);
}
