/* simple.css — minimalist theme for Bashblog */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b7280;
  --link: #0d6efd;
  --border: #e5e7eb;
  --codebg: #f6f8fa;
  --radius: 6px;
  --maxw: 72ch;
}

/* navigation bar */
nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.25rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

nav li {
  margin: 0
}

nav a {
  color: var(--text);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}

nav a:hover {
  background: var(--border);
  color: var(--link);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --link: #6ea8fe;
    --border: #262626;
    --codebg: #111418;
  }
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* layout used by Bashblog’s generated HTML */
.headerholder {
  background: none;
  border: 0
}

.header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem
}

#divbodyholder {
  width: 100%
}

#divbody {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem
}

/* headings & intro */
#title,
h1 {
  margin: 0 0 .4rem;
  line-height: 1.2;
  font-weight: 700;
  font-size: 2rem
}

.description,
#description,
.subtitle {
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: 1rem
}

h2 {
  margin: 2rem 0 .75rem;
  font-size: 1.5rem;
  line-height: 1.25
}

h3 {
  margin: 1.5rem 0 .5rem;
  font-size: 1.25rem;
  line-height: 1.25
}

h4,
h5,
h6 {
  margin: 1.25rem 0 .4rem;
  line-height: 1.25
}

/* text */
.content p,
p {
  margin: 1rem 0
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px
}

a:hover {
  opacity: .9
}

a.ablack {
  color: inherit;
  text-decoration: none
}

a.ablack:hover {
  text-decoration: underline
}

ul,
ol {
  padding-left: 1.25rem
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0
}

/* media & code */
img,
video {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius)
}

pre,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace
}

code {
  background: var(--codebg);
  padding: .15rem .35rem;
  border-radius: var(--radius)
}

pre {
  background: var(--codebg);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto
}

/* blockquotes & tables */
blockquote {
  margin: 1rem 0;
  padding: .5rem 1rem;
  border-left: 3px solid var(--border);
  color: var(--muted)
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0
}

th,
td {
  border: 1px solid var(--border);
  padding: .5rem .625rem;
  text-align: left
}

/* helpers from Bashblog’s defaults */
#all_posts {
  text-align: center;
  margin: 2rem 0
}

#twitter {
  display: none
}

/* hide the old “Tweet” strip; remove if you use it */
#footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: .9rem
}

/* nicer focus outlines */
:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px
}
