:root {
  --text: #e8e6e3;
  --muted: #9a9a9a;
  --bg: #121212;
  --bg-raised: #1a1a1a;
  --accent: #dc143c;
  --border: #2a2a2a;
  --max-width: 680px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  margin: 0;
  padding: 0 1.5rem;
  font-size: 16px;
}

.site-header,
main,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-header {
  padding-top: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-size: 1.6rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.02em;
}

.site-title:hover {
  color: var(--accent);
}

.site-tagline {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

main {
  padding: 2.5rem 0 4rem;
}

h1, h2, h3 {
  font-weight: bold;
  line-height: 1.3;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
}

.post-date {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

.post-content p {
  margin-bottom: 1.4rem;
}

.post-content code {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

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

.back-link {
  margin-top: 3rem;
}

.back-link a {
  display: inline-block;
  border: 1px solid var(--accent);
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 3px;
  color: var(--accent);
}

.back-link a:hover {
  background-color: var(--accent);
  color: var(--bg);
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-list-item {
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--bg-raised);
}

.post-list-item a {
  font-size: 1.15rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--text);
}

.post-list-item a:hover {
  color: var(--accent);
  background-color: transparent;
}

.post-list-date {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.post-list-summary {
  color: #c4c4c4;
  margin-top: 0.6rem;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.comments {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.home-hero {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--accent);
}

.home-title {
  font-size: 2.8rem;
  margin: 0 0 0.5rem;
  border-left: none;
  padding-left: 0;
  color: var(--text);
}

.home-subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}

.site-footer {
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}
