:root {
  --bg: #F6F5F2;
  --text: #181818;
  --muted: #6E6E68;
  --accent: #4A7A6D;
  --border: #DEDCD5;
}

[data-theme="dark"] {
  --bg: #121214;
  --text: #EDEDEA;
  --muted: #8A8A85;
  --accent: #5C9686;
  --border: #2A2A2C;
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  text-transform: lowercase;
  color: var(--muted);
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
}

#theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
}

/* signature element: branch divider between entries, echoes the
   forking-tree data model — structure mirrors the content */
.branch-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2.5rem 0;
  color: var(--border);
}
.branch-divider::before {
  content: "";
  width: 1px;
  height: 24px;
  background: var(--border);
}
.branch-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.entry { margin-bottom: 2rem; }
.entry a { color: var(--text); text-decoration: none; }
.entry a:hover { color: var(--accent); }
.entry h2 { margin: 0; font-size: 1.3rem; }
.entry .summary { color: var(--muted); margin-top: 0.3rem; font-size: 0.95rem; }

.post-body { margin-top: 1.5rem; }
.post-body img,
.post-body iframe { max-width: 100%; }
.post-body a { color: var(--accent); }

