@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

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

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  background: #fff;
  padding: 64px 40px;
  -webkit-font-smoothing: antialiased;
}

/* ── Container ─────────────────────────────────────── */

.wrapper {
  max-width: 680px;
  margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 32px;
  margin-bottom: 28px;
  border-bottom: 1px solid #ebebeb;
}

.site-header img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 6px;
  flex-shrink: 0;
}

.site-header-info {
  padding-top: 4px;
}

.site-header-info h1 {
  font-size: 21px;
  font-weight: 600;
  color: #111;
  margin: 0 0 5px;
  letter-spacing: -0.3px;
}

.site-header-info .position {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 12px;
}

.site-header-info .contact {
  font-size: 13px;
  color: #888;
}

.site-header-info .contact a {
  color: #2c5282;
  text-decoration: none;
}

.site-header-info .contact a:hover {
  text-decoration: underline;
}

/* ── Navigation ─────────────────────────────────────── */

nav {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

nav a {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav a:hover {
  color: #111;
}

nav a.active {
  color: #111;
  font-weight: 500;
  border-bottom-color: #111;
}

/* ── Typography ──────────────────────────────────────── */

h1, h2, h3, h4 {
  color: #111;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 14px;
}

h1 { font-size: 20px; margin-top: 32px; }
h2 { font-size: 16px; margin-top: 28px; }
h3 { font-size: 15px; margin-top: 20px; }

p, ul, ol { margin: 0 0 18px; }

ul, ol { padding-left: 22px; }

li { margin-bottom: 4px; }

strong, b { color: #111; font-weight: 600; }

a {
  color: #2c5282;
  text-decoration: none;
}

a:hover { text-decoration: underline; }

hr {
  border: 0;
  border-top: 1px solid #ebebeb;
  margin: 28px 0;
}

blockquote {
  border-left: 3px solid #ddd;
  padding-left: 18px;
  margin-left: 0;
  color: #666;
}

small { font-size: 12px; }

/* ── Writing listing ─────────────────────────────────── */

.writing-entry {
  margin-bottom: 26px;
}

.writing-entry h2 {
  font-size: 15px;
  margin: 0 0 3px;
}

.writing-entry h2 a {
  color: #111;
}

.writing-entry h2 a:hover {
  color: #2c5282;
  text-decoration: underline;
}

.writing-entry-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.writing-badge {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
  font-weight: 500;
}

.writing-badge.blog    { background: #f3f4f6; color: #666; }
.writing-badge.podcast { background: #eff6ff; color: #2563eb; }

.writing-divider {
  border: 0;
  border-top: 1px solid #f0f0f0;
  margin: 20px 0;
}

/* ── Post / single page ──────────────────────────────── */

.post-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 28px;
}

.post-tag {
  display: inline-block;
  font-size: 11px;
  background: #f3f4f6;
  border-radius: 3px;
  padding: 1px 6px;
  margin-right: 4px;
  color: #666;
}

/* ── Tables ──────────────────────────────────────────── */

table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
th, td { text-align: left; padding: 6px 10px; border-bottom: 1px solid #ebebeb; }
th { font-weight: 600; color: #111; font-size: 13px; }

/* ── Code ────────────────────────────────────────────── */

code {
  font-family: "SFMono-Regular", Monaco, monospace;
  font-size: 13px;
  background: #f6f8fa;
  padding: 1px 5px;
  border-radius: 3px;
  color: #333;
}

pre {
  background: #f6f8fa;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
  padding: 12px 16px;
  overflow-x: auto;
  margin-bottom: 18px;
}

pre code { background: none; padding: 0; }

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 600px) {
  body { padding: 32px 20px; }

  .site-header {
    flex-direction: column;
    gap: 16px;
  }

  .site-header img {
    width: 90px;
    height: 90px;
  }

  nav { gap: 16px; flex-wrap: wrap; }
}

@media print {
  body { padding: 0.4in; font-size: 12pt; }
  nav { display: none; }
  a { color: #333; text-decoration: none; }
}
