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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fafafa;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #0b5fff;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Layout ---------- */
.site-header,
.site-main,
.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #e5e5e5;
}

.site-brand {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-weight: 800;
  text-decoration: none;
  color: inherit;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.site-tagline {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: #777;
  font-weight: 400;
}

.site-nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #444;
}

.site-nav a:hover {
  color: #0b5fff;
}


.site-footer {
  border-top: 1px solid #e5e5e5;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #666;
}

/* ---------- Content ---------- */
h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.post-entry {
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid #eee;
}

.post-entry:first-of-type {
  padding-top: 0.5rem;
}

.post-entry:last-of-type {
  border-bottom: none;
}

.post-entry header {
  margin-bottom: 1rem;
}

.post-entry header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

.post-entry header h2 a {
  color: inherit;
  text-decoration: none;
}

.post-entry header h2 a:hover {
  color: #0b5fff;
}

.post-entry header time {
  color: #888;
  font-size: 0.9rem;
}

.post-entry .post-body > :first-child {
  margin-top: 0;
}

.post-entry .post-body > :last-child {
  margin-bottom: 0;
}

.post header time {
  color: #888;
  font-size: 0.95rem;
}

.post-back {
  margin-top: 2rem;
  font-size: 0.95rem;
}

pre,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  background: #f1f3f5;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.9rem;
}

code {
  background: #f1f3f5;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}

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