:root {
  --text: #1a1a1a;
  --bg: #ffffff;
  --muted: #666;
  --accent: #0066cc;
  --border: #e5e5e5;
  --table-head: #f7f7f7;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

header.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
}

header.site-header .name a {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}

header.site-header nav a {
  margin-left: 1.25rem;
  color: var(--muted);
  text-decoration: none;
}

header.site-header nav a:hover {
  color: var(--accent);
}

footer.site-footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

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

footer.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

h1 { font-size: 1.75rem; margin: 1rem 0 0.5rem; line-height: 1.25; }
h2 { font-size: 1.25rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.0rem; margin: 1.5rem 0 0.5rem; color: var(--muted); font-weight: 500; }

p { margin: 0.85rem 0; }

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.25rem 0 0.25rem;
  border-radius: 2px;
}

.image-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 0.25rem;
}

.image-row img {
  flex: 1 1 240px;
  min-width: 0;
  margin: 0;
}

.image-strip {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.image-strip img {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0;
  border-radius: 4px;
}

li {
  margin-bottom: 0.4rem;
}

ul.post-list li, ul.project-list li {
  margin-bottom: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  border: 1px solid var(--border);
}

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

th {
  background: var(--table-head);
  font-weight: 600;
}

tr:last-child td, tr:last-child th { border-bottom: none; }

ul.post-list, ul.project-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

ul.post-list li, ul.project-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

ul.post-list li:last-child, ul.project-list li:last-child {
  border-bottom: none;
}

ul.post-list a, ul.project-list a {
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
}

ul.post-list a:hover, ul.project-list a:hover {
  color: var(--accent);
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.byline {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 2rem;
  font-weight: normal;
}

.byline em {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

@media (max-width: 600px) {
  body { font-size: 16px; padding: 1.5rem 1rem 3rem; }
  header.site-header { flex-direction: column; align-items: flex-start; }
  header.site-header nav { margin-top: 0.5rem; }
  header.site-header nav a { margin-left: 0; margin-right: 1.25rem; }
  table { font-size: 0.85rem; }
  th, td { padding: 0.4rem 0.5rem; }
}
