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

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
  color: #1a1a1a;
  background: #fff;
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e5e5;
}

.site-name {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: #1a1a1a;
}

.nav-links { display: flex; gap: 1.5rem; }

.nav-links a {
  text-decoration: none;
  color: #666;
  font-size: 0.875rem;
}

.nav-links a:hover { color: #1a1a1a; }

/* Typography */
h1 { font-size: 1.6rem; font-weight: 600; margin: 0 0 0.5rem; }
h2 { font-size: 1.1rem; font-weight: 600; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 0.95rem; font-weight: 600; margin: 0; }
p { margin: 0 0 1rem; color: #333; }
a { color: #1a1a1a; }
a:hover { color: #555; }

/* Intro */
.intro { margin-bottom: 3.5rem; }
.intro .tagline { color: #555; font-size: 0.95rem; margin-bottom: 1rem; }

.links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.links a {
  text-decoration: none;
  color: #555;
  font-size: 0.875rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1px;
}
.links a:hover { color: #1a1a1a; border-color: #1a1a1a; }

/* Posts list */
.posts h2 { margin-top: 0; }

.posts article {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.posts article:first-of-type { border-top: 1px solid #f0f0f0; }

.posts article a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.posts article a:hover { text-decoration: underline; }

.posts time {
  color: #aaa;
  font-size: 0.8rem;
  white-space: nowrap;
  margin-left: 1.5rem;
}

.posts .empty {
  color: #aaa;
  font-size: 0.9rem;
  padding: 0.6rem 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

/* Blog post */
.post-title { margin-bottom: 0.25rem; }

.post-meta {
  color: #aaa;
  font-size: 0.82rem;
  margin-bottom: 2.5rem;
}

.post-content { margin-top: 1rem; }
.post-content p { line-height: 1.75; }

.post-content pre {
  background: #f6f6f6;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 1.5rem 0;
}

.post-content code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.85em;
  background: #f6f6f6;
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

.post-content pre code { background: none; padding: 0; font-size: inherit; }

.post-content blockquote {
  border-left: 3px solid #e0e0e0;
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  color: #555;
}

/* Resume */
.resume-header { margin-bottom: 2rem; }
.resume-header h1 { margin-bottom: 0.2rem; }
.resume-header .contact { color: #666; font-size: 0.875rem; }
.resume-header .contact a { color: #555; }

.resume-section { margin-bottom: 2rem; }

.resume-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.job { margin-bottom: 1.5rem; }

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.15rem;
}

.job-company { font-weight: 600; font-size: 0.95rem; }
.job-location { color: #999; font-size: 0.8rem; }

.job-role {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.job-title { font-size: 0.875rem; color: #444; }
.job-dates { color: #aaa; font-size: 0.8rem; }

.job-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-bullets li {
  font-size: 0.875rem;
  color: #333;
  line-height: 1.55;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.job-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #ccc;
}

.skills-grid { font-size: 0.875rem; color: #333; }
.skills-grid p { margin-bottom: 0.3rem; }
.skills-label { font-weight: 600; color: #1a1a1a; }

.resume-download {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: #888;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1px;
}

.resume-download:hover { color: #1a1a1a; border-color: #1a1a1a; }

/* Footer */
footer {
  margin-top: 5rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  color: #bbb;
  font-size: 0.78rem;
}
