/* ---------- reset / base ---------- */
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fdfdfd;
  color: #111;
  font-family: Lora, Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #2a7ae2;
  text-decoration: none;
}
a:hover {
  color: #111;
  text-decoration: underline;
}

.wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid #e8e8e8;
  min-height: 56px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-title {
  font-size: 26px;
  font-weight: 400;
  line-height: 54px;
  letter-spacing: -1px;
  color: #424242;
  white-space: nowrap;
}
.site-title:hover {
  color: #424242;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 20px;
  line-height: 54px;
}
.site-nav a {
  color: #111;
  font-size: 16px;
}
.site-nav a:hover {
  color: #111;
  text-decoration: underline;
}

/* ---------- main / pages ---------- */
.site-main {
  flex: 1;
  padding: 30px 0;
}

.page { display: none; }
.page.is-active { display: block; }

.page p { margin: 0 0 15px; text-wrap: pretty; }

.page-header { margin-bottom: 30px; }
.page-header h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0 0 15px;
  color: #111;
}

/* ---------- home ---------- */
.home-photo {
  float: right;
  max-width: 33%;
  margin: 0 0 1em 2em;
  border-radius: 999px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- blog list ---------- */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-item { margin-bottom: 30px; }
.post-date {
  display: block;
  font-size: 14px;
  color: #828282;
}
.post-title {
  font-size: 24px;
  line-height: 1.2;
  color: #111;
}
.post-title:hover {
  color: #2a7ae2;
  text-decoration: none;
}
.post-blurb {
  margin: 6px 0 0;
  color: #424242;
  text-wrap: pretty;
}

/* ---------- post ---------- */
.post-meta {
  font-size: 14px;
  color: #828282;
  margin: 0 0 8px;
}
.post-header h1 { margin: 0 0 8px; }

.post-body { font-size: 16px; line-height: 1.6; }
.post-body p { margin: 0 0 15px; text-wrap: pretty; }

.post-body h2 {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 34px 0 12px;
  color: #111;
}
.post-body h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 30px 0 10px;
  color: #111;
}
.post-body ul {
  margin: 0 0 15px;
  padding-left: 22px;
}
.post-body li { margin-bottom: 6px; }

.post-body blockquote {
  margin: 24px 0;
  padding-left: 18px;
  border-left: 4px solid #e8e8e8;
  color: #828282;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
}

.post-body code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  background: #eef;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  padding: 1px 5px;
}

.post-body pre {
  margin: 0 0 20px;
  padding: 12px 16px;
  background: #eef;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  overflow-x: auto;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #111;
}

.post-body figure { margin: 0 0 24px; }
.image-placeholder {
  width: 100%;
  height: 260px;
  background: #f2f2f2;
  border: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a0a0;
  font-size: 14px;
}
.post-body figcaption {
  font-size: 14px;
  color: #828282;
  margin-top: 8px;
  text-align: center;
}

.post-footer-nav {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 15px;
}
.back-link { color: #2a7ae2; }
.reply-link { color: #828282; }
.reply-link:hover {
  color: #111;
  text-decoration: none;
}

/* ---------- interested ---------- */
.interest-item { margin-bottom: 24px; }
.interest-item h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 0 0 8px;
  color: #111;
}
.interest-item p { margin: 0; text-wrap: pretty; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid #e8e8e8;
  padding: 30px 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  font-size: 15px;
  color: #828282;
  line-height: 1.5;
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 30%;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.social-link {
  color: #828282;
  display: flex;
  align-items: center;
  gap: 5px;
}
.social-link:hover {
  color: #111;
  text-decoration: none;
}

.footer-tagline {
  flex: 1;
  min-width: 260px;
}
.footer-tagline p { margin: 0; text-wrap: pretty; }
