/* Minimal CSS */
:root {
  --bg: #faf9f7;
  --text: #2d2a24;
  --text-muted: #6b6560;
  --link: #5a6e3a;
  --link-hover: #3d4a28;
  --accent: #8b4049;
  --border: #e0ddd8;
  --code-bg: #f0ede8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Charter', 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  line-height: 1.6;
  color: var(--text);
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: var(--bg);
}

.site-title {
  margin-top: 0;
  font-weight: bold;
}

.site-header nav {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.site-header nav a {
  margin-right: 20px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.8em;
}

.site-header nav a:hover {
  color: var(--text);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  margin: 20px 0 10px 0;
}

h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.3em; }

p {
  margin: 10px 0;
}

img {
  max-width: 100%;
  height: auto;
}

time {
  color: var(--text-muted);
  font-size: 0.9em;
}

.toc {
  display: block;
  background: var(--code-bg);
  padding: 20px;
  margin: 20px 0;
  border: 1px solid var(--border);
}

.toc h2 {
  margin-top: 0;
  font-size: 1.2em;
}

.toc ul {
  list-style: none;
  padding-left: 0;
}

.toc ul ul {
  padding-left: 20px;
}

.toc ul ul ul {
  padding-left: 40px;
}

.toc ul ul ul ul {
  padding-left: 60px;
}

.toc li {
  margin: 5px 0;
}

.toc a {
  text-decoration: none;
  color: var(--text-muted);
}

.toc a:hover {
  color: var(--text);
}

.posts-list {
  list-style: none;
  padding-left: 0;
}

.posts-list li {
  margin: 15px 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.posts-list a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.posts-list a:hover {
  color: var(--text-muted);
}

footer {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
}

/* Code blocks */
pre {
  background: var(--code-bg);
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

code {
  background: var(--code-bg);
  padding: 2px 4px;
  border-radius: 3px;
}

pre code {
  background: none;
  padding: 0;
}

/* Links */
a {
  color: var(--link);
}

a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

/* Lists */
ul, ol {
  margin: 15px 0;
  padding-left: 20px;
}

ul ul, ol ol, ul ol, ol ul {
  margin: 8px 0;
}

li {
  margin: 5px 0;
  line-height: 1.5;
}

/* Unordered lists with different bullet styles for nesting */
ul {
  list-style-type: disc;
}

ul ul {
  list-style-type: circle;
}

ul ul ul {
  list-style-type: square;
}

ul ul ul ul {
  list-style-type: disc;
}

/* Ordered lists with proper numbering */
ol {
  list-style-type: decimal;
}

ol ol {
  list-style-type: lower-alpha;
}

ol ol ol {
  list-style-type: lower-roman;
}

ol ol ol ol {
  list-style-type: decimal;
}

/* Nested list indentation */
ul ul, ol ol, ul ol, ol ul {
  padding-left: 25px;
}

ul ul ul, ol ol ol, ul ol ol, ol ul ul {
  padding-left: 30px;
}

ul ul ul ul, ol ol ol ol, ul ol ol ol, ol ul ul ul {
  padding-left: 35px;
}

/* List content styling */
li p {
  margin: 5px 0;
}

li > ul, li > ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #ddd;
  padding-left: 20px;
  margin: 20px 0;
  color: #666;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

table th {
  background-color: #f5f5f5;
  font-weight: 600;
  border-bottom: 2px solid #ccc;
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

table tr:hover {
  background-color: #f0f0f0;
}

/* Comments section */
.comments {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.comments h2 {
  margin-bottom: 20px;
  color: var(--text);
}

.comment-author {
  font-weight: bold;
}

.comment-date {
  font-size: 0.9em;
  color: var(--text-muted);
  padding-left: 10px;
}

.post-author-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 2px 6px;
  margin-left: 8px;
  font-size: 0.8em;
  font-weight: 500;
  border-radius: 3px;
}

.depth-limit-notice {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.9em;
}

.depth-limit-notice a {
  color: var(--link);
  text-decoration: underline;
}

.depth-limit-notice a:hover {
  color: var(--link-hover);
}

/* Comment forms */
.comment-form,
.reply-form {
  margin: 20px 0;
  padding: 20px;
  background: var(--code-bg);
  border: 1px solid var(--border);
}

.comment-form textarea,
.reply-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  background: #fff;
}

.comment-form-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}

.comment-form-fields input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid var(--border);
  font-size: 14px;
}

.comment-form-options {
  margin: 10px 0;
}

.comment-form-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}

.comment-form-options input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.comment-form button,
.reply-form button {
  background: var(--link);
  color: #fff;
  border: 1px solid var(--link-hover);
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
}

.comment-form button:hover,
.reply-form button:hover {
  background: var(--link-hover);
  color: #fff;
}

/* Reply button styling */
.reply-btn {
  background: var(--link);
  color: #fff;
  border: 1px solid var(--link-hover);
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
}

.reply-btn:hover {
  background: var(--link-hover);
  color: #fff;
}

.reply-form {
  display: none;
  margin-top: 0.5em;
}

.reply-form.active {
  display: block;
}

.comment {
  margin: 15px 0;
  padding: 12px;
  background: var(--code-bg);
  border: 1px solid var(--border);
}

.comment-children {
  margin-left: 5px;
  border-left: 2px solid var(--border);
  padding-left: 15px;
}

/* Tags */
.tags {
  padding: 15px 0;
}

.post-footer {
  margin: 30px 0;
  padding-top: 15px;
  border-top: 2px solid var(--border);
}

.letter-to-editor {
  margin-top: 15px;
}

.letter-to-editor a {
  color: var(--text-muted);
  text-decoration: none;
}

.letter-to-editor a:hover {
  color: var(--text);
  text-decoration: underline;
}

.tags-label {
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 10px;
}

.tag {
  display: inline-block;
  background: var(--code-bg);
  color: var(--text);
  padding: 4px 8px;
  margin: 2px 4px 2px 0;
  text-decoration: none;
  font-size: 0.9em;
}

.tag:hover {
  background: var(--border);
  text-decoration: none;
}

/* Tags index page */
.tags-list {
  margin: 30px 0;
}

.tag-link {
  display: inline-block;
  background: var(--code-bg);
  color: var(--text);
  padding: 8px 12px;
  margin: 4px 6px 4px 0;
  text-decoration: none;
  font-size: 1em;
}

.tag-link:hover {
  background: var(--border);
  text-decoration: none;
}

/* Subscribe page */
.subscribe-options {
  margin: 30px 0;
}

.subscribe-option {
  margin: 30px 0;
  padding: 20px;
  background: var(--code-bg);
  border: 1px solid var(--border);
}

.subscribe-option h2 {
  margin-top: 0;
  color: var(--text);
}

.subscribe-button {
  display: inline-block;
  background: var(--link);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--link-hover);
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
}

.subscribe-button:hover {
  background: var(--link-hover);
  color: #fff;
  text-decoration: none;
}

.newsletter-form {
  margin-top: 15px;
}

.form-group {
  margin: 15px 0;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 2px rgba(90, 110, 58, 0.25);
} 