/* blog/assets/style.css
   Shared stylesheet for post pages and (via posts/style.css symlink) index.
   Replace with your own design — this is a functional starting point. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --text:       #1a1a1a;
  --muted:      #555;
  --accent:     #2a5db0;
  --bg:         #ffffff;
  --code-bg:    #f5f5f5;
  --border:     #ddd;
  --max-width:  720px;
}

html { font-size: 18px; }

body {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
}

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

h1, h2, h3, h4 {
  font-family: system-ui, sans-serif;
  line-height: 1.25;
  margin-top: 2rem;
}

/* org-mode export structure */
#content { margin-top: 2rem; }

#postamble, #preamble { display: none; }

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  font-size: .9rem;
}
th, td {
  border: 1px solid var(--border);
  padding: .4rem .75rem;
  text-align: left;
}
th { background: var(--code-bg); }

/* Code blocks (htmlize inline CSS adds span colours on top of this) */
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  font-size: .85rem;
  line-height: 1.5;
}

code { font-size: .9em; }

/* Inline code */
p code, li code {
  background: var(--code-bg);
  padding: .1em .3em;
  border-radius: 3px;
}

/* Blockquote */
blockquote {
  border-left: 4px solid var(--border);
  margin: 1.5rem 0;
  padding: .5rem 1rem;
  color: var(--muted);
}

/* Table of contents */
#table-of-contents {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  font-size: .9rem;
}
#table-of-contents h2 { margin-top: 0; }
