/* minimal, terminal-ish */
:root {
  color-scheme: light dark;
  --bg: #0d1117;
  --text: #e6edf3;
  --muted: #8b949e;
  --link: #58a6ff;
  --border: #30363d;
  --accent: #7c5cff;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fff;
    --text: #111;
    --muted: #555;
    --link: #0b57d0;
    --border: #e5e7eb;
  }
}

html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  -webkit-font-smoothing: antialiased;
  padding: 24px 12px 48px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 24px;
}
header h1 {
  margin: 0;
  font-size: 18px;
}
header h2 {
  margin: 2px 0 0;
  font-weight: normal;
  color: var(--muted);
  font-size: 13px;
}

h2 {
  font-size: 16px;
  margin: 22px 0 10px;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
  outline: none;
}

/* “prompt” labels */
.prompt {
  color: var(--muted);
}
.line {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

/* blocks */
.block {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
}
.rows {
  display: grid;
  gap: 8px;
}

/* lists */
ul {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
}
li {
  margin: 4px 0;
}

/* code-y bits */
pre,
code {
  background: transparent;
  white-space: pre-wrap;
  word-break: break-word;
}
pre {
  margin: 8px 0 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  max-height: 260px;
  overflow: auto;
}
.muted {
  color: var(--muted);
}

/* small layout niceties on mobile */
@media (max-width: 520px) {
  body {
    padding: 16px 10px 36px;
  }
}
.btn {
  background: transparent;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}
.btn:hover {
  text-decoration: underline;
}
.line {
  margin-top: 2px;
  margin-bottom: 2px;
}
.block {
  margin: 0 0 12px;
}
.avatar {
  display: block;
  width: 450px; /* or whatever size you like */
  max-width: 100%; /* ensures it doesn’t overflow on phones */
  height: auto; /* keeps aspect ratio */
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}
.blog-list ul {
  margin: 6px 0 0;
  padding-left: 0;
  list-style: none;
}
.blog-list li {
  margin: 10px 0;
}
.blog-list li .muted {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}
.post .block {
  max-width: 800px;
}
