:root {
  --bg: #0a0a0a;
  --fg: #e5e5e5;
  --muted: #666;
  --accent: #fff;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* Header */
header {
  margin-bottom: 4rem;
}

h1 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.tagline {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* Journal entries list */
.entries {
  list-style: none;
}

.entries li {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.entries time {
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 6rem;
}

.entries a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.entries a:hover {
  border-bottom-color: var(--muted);
}

/* Individual post pages */
article {
  margin-top: 2rem;
}

article h1, article h2, article h3 {
  font-weight: 500;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

article h1 { font-size: 1.5rem; }
article h2 { font-size: 1.25rem; }
article h3 { font-size: 1.1rem; }

article p {
  margin-bottom: 1.25rem;
  color: #ccc;
}

article a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--muted);
}

article a:hover {
  text-decoration-color: var(--fg);
}

article ul, article ol {
  margin: 1.25rem 0 1.25rem 1.5rem;
}

article li {
  margin-bottom: 0.5rem;
}

article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
}

/* Back link */
.back {
  margin-top: 5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

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

.back a:hover {
  color: var(--fg);
}

/* Mobile */
@media (max-width: 600px) {
  body {
    padding: 3rem 1.5rem;
  }
  .entries li {
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
  }
}