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

:root {
  --bg:     #f7f5f0;
  --text:   #2c2c2c;
  --hi:     #0d0d0d;
  --dim:    #999999;
  --accent: #0057d9;
  --font:   'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

hr {
  border: none;
  border-top: 1px solid #e0dbd2;
  margin: 2.5rem 0;
}

/* ── header ── */
header { margin-bottom: 2.5rem; }

.site-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--hi);
  margin-bottom: 0.2rem;
}

.site-tagline {
  font-size: 12px;
  color: var(--dim);
}

nav {
  margin-top: 1rem;
  font-size: 12px;
}

nav a {
  color: var(--dim);
  margin-right: 1.2rem;
}

nav a:hover { color: var(--text); text-decoration: none; }

/* ── sections ── */
section { margin-bottom: 3rem; }

h2 {
  font-size: 11px;
  font-weight: 400;
  color: var(--dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

p { color: var(--text); margin-bottom: 0.8rem; }
p:last-child { margin-bottom: 0; }

/* ── post list ── */
.posts { list-style: none; }

.posts li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #e0dbd2;
}

.posts li:first-child { border-top: 1px solid #e0dbd2; }

.post-date {
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
  padding-top: 0.05rem;
}

.post-title { font-size: 13px; }

.post-cat {
  font-size: 10px;
  color: var(--dim);
  margin-top: 0.1rem;
}

/* ── exp list ── */
.exp { list-style: none; }

.exp li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #e0dbd2;
}
.exp li:first-child { border-top: 1px solid #e0dbd2; }

.exp-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.exp-co {
  font-size: 13px;
  color: var(--hi);
  font-weight: 700;
}

.exp-dates {
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
}

.exp-role {
  font-size: 12px;
  color: var(--accent);
  margin-top: 0.05rem;
}

.exp-note {
  font-size: 12px;
  color: var(--text);
  margin-top: 0.3rem;
}

/* ── project list ── */
.proj { list-style: none; }

.proj li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #e0dbd2;
  font-size: 13px;
}
.proj li:first-child { border-top: 1px solid #e0dbd2; }

.proj-name { color: var(--hi); font-weight: 700; }
.proj-desc { color: var(--text); font-size: 12px; margin-top: 0.1rem; }

/* ── pub list ── */
.pubs { list-style: none; counter-reset: pub; }

.pubs li {
  counter-increment: pub;
  padding: 0.7rem 0;
  border-bottom: 1px solid #e0dbd2;
  padding-left: 2rem;
  position: relative;
  font-size: 12px;
}
.pubs li:first-child { border-top: 1px solid #e0dbd2; }
.pubs li::before {
  content: counter(pub);
  position: absolute;
  left: 0;
  color: var(--dim);
  font-size: 11px;
}

.pub-title { color: var(--hi); }
.pub-info { color: var(--dim); margin-top: 0.15rem; font-size: 11px; }

/* ── skills ── */
.skill-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.35rem 0;
  border-bottom: 1px solid #e0dbd2;
  font-size: 12px;
}
.skill-row:first-child { border-top: 1px solid #e0dbd2; }
.skill-label { color: var(--text); }
.skill-bar { color: var(--dim); font-size: 11px; letter-spacing: 0.08em; }

/* ── post page ── */
.back-link { font-size: 12px; margin-bottom: 0; }
.back-link a { color: var(--dim); }
.back-link a:hover { color: var(--text); text-decoration: none; }

.post-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--hi);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.post-meta { font-size: 11px; color: var(--dim); margin-bottom: 0; }

/* reuse .post-title class on index.html post list rows */
.post-title { font-size: 13px; }
.post-title-sm { font-size: 13px; }

.post-body { margin-top: 2rem; }

.post-body h2 {
  font-size: 12px;
  font-weight: 700;
  color: var(--hi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 2.2rem 0 0.8rem;
}

.post-body h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.post-body p { margin-bottom: 1rem; }
.post-body p:last-child { margin-bottom: 0; }

.post-body blockquote {
  border-left: 2px solid #d0ccc4;
  margin: 1rem 0;
  padding: 0 1rem;
  color: var(--dim);
  font-style: italic;
}

.post-body pre {
  background: #f0ede6;
  border: 1px solid #e0dbd2;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  margin: 1.2rem 0;
  font-size: 11px;
  line-height: 1.55;
  tab-size: 2;
}

.post-body code {
  font-family: var(--font);
  font-size: 12px;
  background: #f0ede6;
  padding: 0.1em 0.35em;
  border: 1px solid #e0dbd2;
}

.post-body pre code {
  background: none;
  padding: 0;
  border: none;
  font-size: 11px;
}

.post-body strong { color: var(--hi); font-weight: 700; }
.post-body em { font-style: italic; }

.post-body ul, .post-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.post-body li { margin-bottom: 0.35rem; }

.post-body .signoff { color: var(--dim); font-style: italic; margin-top: 2rem; }

/* ── footer ── */
footer {
  font-size: 11px;
  color: var(--dim);
  padding-top: 2rem;
  border-top: 1px solid #e0dbd2;
}
