/* Dark mode – comfortable, developer-friendly palette */
html {
  background-color: #0d1117;
}

:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-visited: #a371f7;
  --code-bg: #21262d;
  --code-border: #30363d;
  --heading: #f0f6fc;
}

body {
  line-height: 1.6;
  font-size: 18px;
  padding: 0 10px;
  margin: 60px auto;
  max-width: 700px;
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
}

.title {
  text-align: center;
  margin-bottom: 0.2em;
  color: var(--heading);
  font-weight: 600;
}

.subtitle {
  text-align: center;
  font-size: medium;
  font-weight: bold;
  margin-top: 0;
  color: var(--text-muted);
}

h2,
h3 {
  line-height: 1.2;
  color: var(--heading);
  font-weight: 600;
}

h2 {
  font-style: italic;
  font-size: 18px;
}

a:link {
  color: var(--accent);
  text-decoration: none;
}

a:visited {
  color: var(--accent-visited);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code,
.code {
  font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 0.9em;
  line-height: 1.6;
  padding: 0.2em 0.4em;
  margin: 0;
  background-color: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 6px;
  color: var(--text);
}

p,
li {
  color: var(--text);
}

.bold-text {
  color: var(--text-muted);
  font-weight: 600;
}
