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

/* Base */
html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  margin-bottom: 3rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
  z-index: 100;
}

.site-header nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}

.site-title:hover {
  color: #555;
}

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

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

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

/* Typography */
h1 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
}

/* Links */
a {
  color: #1a1a1a;
  text-decoration: underline;
  text-decoration-color: #ccc;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-color: #1a1a1a;
}

/* Lists */
ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

li > ul, li > ol {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

/* Blockquotes */
blockquote {
  border-left: 3px solid #ddd;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: #444;
  font-style: italic;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 2rem 0;
}

/* Code */
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85em;
  background: #f6f6f6;
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

pre {
  background: #f6f6f6;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  border-radius: 3px;
}

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

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

.post-meta {
  color: #888;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Post footer */
.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.post-tags {
  color: #888;
  font-size: 0.85rem;
}

/* Profile photo */
.profile-photo {
  display: block;
  width: 60%;
  max-width: 250px;
  margin: 0 auto 2rem;
  border-radius: 95%;
}

/* Home page */
.home h2:first-of-type {
  margin-top: 2rem;
}

/* Blog listing */
.post-list {
  list-style: none;
  padding-left: 0;
}

.post-list li {
  margin-bottom: 0.5rem;
}

.post-list .post-date {
  color: #888;
  font-size: 0.85rem;
  min-width: 5.5rem;
  display: inline-block;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  color: #aaa;
  font-size: 0.8rem;
}

/* Bold/strong — slightly heavier for emphasis without being harsh */
strong {
  font-weight: 600;
}

/* Instagram embeds */
.instagram-media {
  margin: 1.5rem auto !important;
}

/* Responsive */
@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  body {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  .site-header nav {
    flex-direction: column;
    gap: 0.5rem;
  }
}
