:root {
  --bg: #fdfaf7;
  --ink: #2f2a2c;
  --soft: #8a7f83;
  --line: #ece3e0;
  --accent: #c05a6e;
  --accent-soft: #f6e9ec;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171415;
    --ink: #e9e2e4;
    --soft: #9b9095;
    --line: #2e2729;
    --accent: #e8899c;
    --accent-soft: #2a1f23;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.75;
  padding: 0 1.4rem;
  overflow-wrap: break-word;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--accent);
  color: #fff;
  padding: .5rem .8rem;
  border-radius: 6px;
  z-index: 10;
}

/* ---------- header ---------- */

.site-head {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.5rem 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
}
.site-title:hover { color: var(--accent); }

.site-nav {
  font-family: var(--sans);
  font-size: .82rem;
  display: flex;
  gap: 1.1rem;
}
.site-nav a {
  color: var(--soft);
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent); }

/* ---------- main ---------- */

main {
  max-width: 40rem;
  margin: 0 auto;
  min-height: 50vh;
}

.intro {
  color: var(--soft);
  font-size: 1.02rem;
  margin: 0 0 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.intro p { margin: 0; }

/* ---------- post list (full posts) ---------- */

.post-list { margin: 0; padding: 0; }

.post-item {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.post-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.post-item time {
  display: block;
  font-family: var(--sans);
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: .35rem;
}

.post-item h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -.015em;
  font-weight: 600;
  margin: 0 0 .4rem;
}
.post-item h2 a { color: var(--ink); text-decoration: none; }
.post-item h2 a:hover { color: var(--accent); }

.post-item .meta { margin: 0; }
.post-item .prose { margin-top: 1.3rem; }

.empty { color: var(--soft); font-style: italic; }

/* ---------- single post ---------- */

.post-head { margin-bottom: 2.5rem; }

.post-head h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 .6rem;
  font-weight: 600;
}

.meta {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0;
}
.mood { color: var(--accent); }

.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.4rem; }

.prose h2 {
  font-size: 1.4rem;
  margin: 2.6rem 0 .8rem;
  font-weight: 600;
}
.prose h3 {
  font-size: 1.15rem;
  margin: 2rem 0 .6rem;
  font-weight: 600;
}

.prose a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

.prose blockquote {
  margin: 1.8rem 0;
  padding: .2rem 0 .2rem 1.3rem;
  border-left: 3px solid var(--accent-soft);
  color: var(--soft);
  font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.8rem 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 2rem auto;
}

.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.4rem; }
.prose li { margin-bottom: .4rem; }

.prose code {
  font-size: .85em;
  background: var(--accent-soft);
  padding: .12em .38em;
  border-radius: 4px;
}
.prose pre {
  background: var(--accent-soft);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; }

.tags {
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--soft);
  margin-top: 2.5rem;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .85rem;
}
.post-nav a { color: var(--soft); text-decoration: none; max-width: 45%; }
.post-nav a:hover { color: var(--accent); }
.post-nav .next { text-align: right; margin-left: auto; }

/* ---------- footer ---------- */

.site-foot {
  max-width: 40rem;
  margin: 5rem auto 0;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--soft);
}
.site-foot p { margin: 0; }

@media (max-width: 620px) {
  body { font-size: 18px; padding: 0 1.1rem; }
  .site-head { padding: 2.5rem 0 2rem; }
  .post-head h1 { font-size: 1.7rem; }
}
