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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */

header {
  padding: 40px 0 0;
}

nav {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-name {
  color: #111;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  margin-right: auto;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

/* Intro */

.intro {
  padding: 60px 0 0;
}

.intro p {
  color: #333;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.intro a {
  color: #111;
  text-decoration-color: #ccc;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.intro a:hover {
  text-decoration-color: #111;
}

/* Sections */

section {
  padding: 48px 0 0;
}

h2 {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

section p {
  color: #444;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

section a {
  color: #111;
  text-decoration-color: #ccc;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

section a:hover {
  text-decoration-color: #111;
}

/* Projects */

.project {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #eee;
}

.project:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.project-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.project-header h3 a {
  color: #111;
  text-decoration: none;
}

.project-header h3 a:hover {
  text-decoration: underline;
  text-decoration-color: #ccc;
  text-underline-offset: 3px;
}

.project-tech {
  font-size: 13px;
  color: #999;
}

.project p {
  color: #555;
  font-size: 15px;
}

/* Writing */

.post-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  text-decoration: none;
  padding: 12px 0;
  transition: opacity 0.2s;
}

.post-link:hover {
  opacity: 0.7;
}

.post-date {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
  min-width: 90px;
}

.post-title {
  font-size: 15px;
  color: #111;
}

/* About */

#about p {
  margin-bottom: 16px;
}

.subtle {
  color: #999;
  font-size: 14px;
}

.subtle a {
  color: #999;
  text-decoration-color: #ddd;
}

.subtle a:hover {
  color: #666;
  text-decoration-color: #999;
}

/* Contact */

.links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.links a {
  color: #444;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.links a:hover {
  color: #111;
  border-color: #111;
}

/* Footer */

footer {
  padding: 64px 0 40px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #888;
}

/* Article / Prose */

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

article h1 {
  font-size: 24px;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
  margin-bottom: 12px;
}

.lede {
  color: #666;
  font-size: 16px;
  line-height: 1.7;
}

.prose {
  padding-top: 32px;
}

.prose h2 {
  font-size: 17px;
  font-weight: 600;
  color: #111;
  text-transform: none;
  letter-spacing: 0;
  margin: 40px 0 16px;
}

.prose h3 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 28px 0 12px;
}

.prose p {
  color: #444;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.prose strong {
  color: #222;
  font-weight: 600;
}

.prose pre,
.prose code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
}

.prose pre {
  background: #f6f8fa;
  border: 1px solid #eee;
  padding: 16px 20px;
  margin: 16px 0;
  overflow-x: auto;
  line-height: 1.5;
}

.prose code {
  background: #f6f8fa;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
}

.prose pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 13px;
}

.prose a {
  color: #111;
  text-decoration-color: #ccc;
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: #111;
}

/* Subscribe */

.subscribe {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.subscribe p {
  color: #999;
  font-size: 14px;
  margin-bottom: 12px;
}

.subscribe form {
  display: flex;
  gap: 0;
}

.subscribe input[type="email"] {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid #ddd;
  background: transparent;
  color: #333;
  width: 200px;
  transition: border-color 0.2s;
}

.subscribe input[type="email"]:focus {
  outline: none;
  border-color: #111;
}

.subscribe input[type="email"]::placeholder {
  color: #ccc;
}

.subscribe button {
  font-family: inherit;
  font-size: 13px;
  padding: 6px 14px;
  margin-left: 12px;
  background: none;
  color: #999;
  border: 1px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.subscribe button:hover {
  color: #111;
  border-color: #111;
}

/* Mobile */

@media (max-width: 480px) {
  .intro {
    padding: 40px 0 0;
  }

  .intro p {
    font-size: 16px;
  }

  .post-link {
    flex-direction: column;
    gap: 2px;
  }

  .links {
    flex-direction: column;
    gap: 12px;
  }
}
