/* paulustech overrides on top of the Terminal theme (loaded automatically). */

:root {
  --background: #0d1117;
  --foreground: #c9d1d9;
  --accent: #79c0ff;
  --muted: #6e7681;
  --tag: #d2a8ff;
  --prompt: #7ee787;
  --surface: #161b22;
  --border: #30363d;
}

/* Logo as a shell prompt */
.logo {
  background: none;
  color: var(--prompt);
  padding: 0;
  font-weight: 700;
}

/* B2: readable sans-serif paragraphs, everything else stays monospace */
.post-content p,
.post-content li,
.post-content blockquote,
.index-content p {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-title {
  color: var(--accent);
}

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

/* Code: scroll inside the block, never the page */
pre {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
}

/* One-line post list: date  title  #tags */
.post-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 1.2em;
  padding: 0.35em 0;
}

.post-row__date {
  color: var(--muted);
  flex: 0 0 auto;
}

.post-row__title {
  color: var(--accent);
  text-decoration: none;
}

.post-row__title:hover {
  text-decoration: underline;
}

.post-row__tags a {
  color: var(--tag);
  text-decoration: none;
  margin-right: 0.6em;
}

.post-tags,
.post-tags a {
  color: var(--tag);
}

.post-meta {
  color: var(--muted);
}

/* Drop theme decorations not in the B2 design */
.header__logo::after {
  display: none;
}

.container {
  border-right: none;
}

pre,
.highlight {
  scrollbar-color: var(--border) var(--surface);
}

/* Header search box */
.header__search input {
  font: inherit;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2em 0.6em;
  width: 12em;
  max-width: 100%;
}

.header__search input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Pagefind search page in the site palette */
#search {
  --pagefind-ui-primary: var(--accent);
  --pagefind-ui-text: var(--foreground);
  --pagefind-ui-background: var(--surface);
  --pagefind-ui-border: var(--border);
  --pagefind-ui-tag: var(--surface);
  --pagefind-ui-font: inherit;
  margin-top: 1em;
}

#search mark {
  background: none;
  color: var(--tag);
  font-weight: 700;
}

/* Phones: keep the prompt on one line; search + Menu wrap below it */
.logo {
  white-space: nowrap;
}

.header__inner {
  flex-wrap: wrap;
  gap: 0.5em;
}

/* Short posts have no headings: hide the empty "contents" box */
.table-of-contents:has(#TableOfContents:empty) {
  display: none;
}
