/* hendimh.dev — one stylesheet for every page */

:root {
  --text: #1a1a1a;
  --muted: #666;
  --line: #ddd;
  --link: #1d4ed8;
  --link-hover: #1e3a8a;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
}

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

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

h1 { margin: 0; font-size: 40px; font-weight: 600; line-height: 1.15; }
h2 { margin: 0 0 16px; font-size: 24px; font-weight: 600; }
h3 { margin: 32px 0 8px; font-size: 20px; font-weight: 600; }
p  { margin: 0 0 16px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

ul { margin: 0; padding-left: 20px; }
li { margin-bottom: 8px; }

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

/* ---------- Homepage header ---------- */
.intro {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin-bottom: 48px;
}
.photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
  flex-shrink: 0;
}
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 14px;
}
.intro-text { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; }
.tagline { margin: 0; color: #444; }
.links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 16px; }

/* ---------- Two-column lists (timeline, log) ---------- */
.rows {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px 20px;
}
.rows .when { color: var(--muted); }
.rows.small { font-size: 16px; gap: 8px 20px; }

/* On phones: stack date above text */
@media (max-width: 560px) {
  .rows { grid-template-columns: 1fr; gap: 2px; }
  .rows .when { margin-top: 12px; font-size: 15px; }
}

/* ---------- Blog / post pages ---------- */
.back { display: inline-block; margin-bottom: 32px; font-size: 16px; }
.post-date { color: var(--muted); font-size: 16px; margin: 8px 0 32px; }
.post-body pre {
  background: #f5f5f4;
  padding: 16px;
  overflow-x: auto;
  font-size: 15px;
  border-radius: 6px;
}
.post-body code { font-size: 0.9em; }

footer { margin-top: 64px; color: #777; font-size: 14px; }
