:root {
  --bg:           #1a1a1a;
  --bg-alt:       #242424;
  --bg-code:      #242424;
  --border:       #333;
  --border-light: #2e2e2e;
  --text:         #d0d0d0;
  --text-muted:   #777;
  --link:         #c9c9c9;
  --link-hover:   #ffffff;
}

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

html {
  font-size: 16px;
}

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

/* Regular pages: keep text comfortably narrow */
main {
  max-width: 700px;
}

/* Journey page: use the full body width */
body.wide main {
  max-width: none;
}

a {
  color: var(--link);
}

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

/* ── Header ── */

header {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-family: monospace;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--link-hover);
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  font-family: monospace;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--text-muted);
}

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

/* ── Main ── */

main {
  min-height: 60vh;
}

h1, h2, h3, h4 {
  font-family: Georgia, serif;
  color: #e8e8e8;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }

p { margin: 1rem 0; }

ul, ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

li { margin: 0.25rem 0; }

/* ── Tables (global) ── */

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  margin: 1.25rem 0;
  overflow-x: auto;
  display: block;
}

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

th {
  background: var(--bg-alt);
  color: #e8e8e8;
  font-weight: bold;
}

tr:nth-child(even) td {
  background: var(--bg-alt);
}

/* ── Code ── */

code {
  font-family: "SF Mono", "Fira Mono", "Consolas", monospace;
  font-size: 0.875em;
  background: var(--bg-code);
  color: #e0e0e0;
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

pre {
  background: var(--bg-code);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border-left: 3px solid var(--border);
  margin: 1.5rem 0;
  border-radius: 0 3px 3px 0;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  color: inherit;
}

/* ── Blockquote ── */

blockquote {
  border-left: 3px solid var(--border);
  margin: 1.5rem 0;
  padding: 0.25rem 1rem;
  color: var(--text-muted);
}

/* ── Post list (blog index) ── */

.post-list,
.recent-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li,
.recent-posts li {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding: 0.35rem 0;
}

.post-date {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Article (blog posts) ── */

article header.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

article header.post-header h1 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

article header.post-header time {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Journey layout ── */

.journey-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.journey-sidebar {
  position: sticky;
  top: 2rem;
}

.journey-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}

.journey-nav a {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0;
}

.journey-nav a:hover {
  color: var(--link-hover);
}

.journey-content h1 {
  margin-top: 0;
}

.journey-log {
  display: flex;
  flex-direction: column;
}

.journey-entry {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border-light);
}

.journey-entry:last-child {
  border-bottom: 1px solid var(--border-light);
}

.journey-entry-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.journey-entry-header h2 {
  margin: 0;
  font-size: 1rem;
  font-family: monospace;
}

.journey-entry-header h2 a {
  text-decoration: none;
  color: var(--text-muted);
}

.journey-entry-header h2 a:hover {
  color: var(--link-hover);
}

.entry-date {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── About / social links ── */

.social-links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-links li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: monospace;
  font-size: 0.9rem;
}

.social-links .label {
  color: var(--text-muted);
  min-width: 80px;
}

/* ── Homepage ── */

.intro {
  margin-bottom: 3rem;
}

.recent-posts h2 {
  margin-top: 0;
}

.recent-posts > p {
  margin-top: 1rem;
  font-family: monospace;
  font-size: 0.9rem;
}

/* ── Travel ── */

.travel-year {
  margin-bottom: 1.75rem;
}

.travel-year-heading {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: normal;
  letter-spacing: 0.05em;
}

.travel-entry {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding: 0.2rem 0;
  font-size: 0.95rem;
}

.travel-date {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 160px;
}

/* ── Footer ── */

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-muted);
}

footer a:hover {
  color: var(--link-hover);
}
