:root {
  --text: #111;
  --text-secondary: #555;
  --bg: #fff;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--text-secondary);
}

/* Nav */
nav {
  margin-bottom: 2rem;
  font-size: 14px;
}

nav a {
  margin-right: 1.25rem;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* Intro */
.intro {
  margin-bottom: 2rem;
}

.intro-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.photo {
  width: 110px;
  height: 110px;
  border-radius: 3px;
  object-fit: cover;
}

.intro-header h1 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.intro-header p {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 0.75rem 0;
}

.intro-header p:last-child {
  margin-bottom: 0;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 1.5rem 0;
}

/* Sections */
.section {
  margin-bottom: 1.75rem;
}

.section h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.section p {
  font-size: 14px;
  color: var(--text-secondary);
}

.section a {
  margin-right: 0.75rem;
}

/* Projects */
.project {
  margin-bottom: 0.5rem;
  font-size: 14px;
}

.project a {
  font-weight: 500;
}

.project span {
  color: var(--text-secondary);
  margin-left: 0.25rem;
}

.project span::before {
  content: "— ";
}

/* Links section */
.links {
  font-size: 14px;
}

.links a {
  margin-right: 1rem;
}

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

.post-list li {
  margin-bottom: 0.75rem;
  font-size: 14px;
}

.post-list time {
  color: var(--text-secondary);
  font-size: 13px;
}

/* Post */
.post header {
  margin-bottom: 1.5rem;
}

.post h1 {
  font-size: 18px;
  font-weight: 600;
}

.post time {
  font-size: 13px;
  color: var(--text-secondary);
}

.post footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 14px;
}

/* Code */
code {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: #f5f5f5;
  padding: 0.15em 0.3em;
  border-radius: 3px;
}

pre {
  background: #f5f5f5;
  padding: 0.875rem;
  overflow-x: auto;
  border-radius: 3px;
  font-size: 13px;
}

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

/* Mobile */
@media (max-width: 480px) {
  body {
    padding: 2rem 1rem;
  }
}
