/* Unsubscribed — one stylesheet, no framework, no animations, no tracking. */

:root {
  --text:      #16181d;
  --muted:     #5b6270;
  --link:      #0b57d0;
  --link-vis:  #0b57d0;
  --rule:      #e3e6ea;
  --bg:        #ffffff;
  --measure:   38rem;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 4rem;
}

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:visited { color: var(--link-vis); }

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

header.site {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.25rem;
  padding-bottom: 1rem;
}

header.site .brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
header.site .brand:hover { text-decoration: none; }

header.site nav {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--muted);
}
header.site nav a { margin-right: 0.9rem; }
header.site nav .sep { color: var(--rule); }

p.tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.5rem 0 0;
}

/* --- post list ---------------------------------------------------------- */

ol.posts { list-style: none; margin: 0; padding: 0; }

ol.posts > li {
  padding: 0 0 1.75rem;
  margin: 0 0 1.75rem;
  border-bottom: 1px solid var(--rule);
}
ol.posts > li:last-child { border-bottom: 0; }

ol.posts h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 0 0 0.3rem;
  letter-spacing: -0.01em;
}
ol.posts h2 a { color: var(--text); }
ol.posts h2 a:hover { color: var(--link); }

.post-meta {
  color: var(--muted);
  font-size: 0.87rem;
  margin: 0 0 0.5rem;
}

p.excerpt { margin: 0 0 0.6rem; }
p.more { margin: 0; font-size: 0.95rem; }

/* --- article ------------------------------------------------------------ */

article h1 {
  font-size: 1.85rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

article h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
article h3 { font-size: 1.1rem; margin: 1.6rem 0 0.4rem; }

article p, article li { margin: 0 0 1.1rem; }
article ul, article ol { padding-left: 1.35rem; }
article ul li, article ol li { margin-bottom: 0.4rem; }

article blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}

article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f4f5f7;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

article pre {
  background: #f4f5f7;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border-radius: 4px;
}
article pre code { background: none; padding: 0; }

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

article hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

/* --- share row ---------------------------------------------------------- */

.share {
  margin: 2.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
}
.share .share-label { margin-right: 0.35rem; }
.share a, .share button {
  font: inherit;
  color: var(--link);
  background: none;
  border: 0;
  padding: 0;
  margin: 0 0.55rem 0 0;
  cursor: pointer;
}
.share a:hover, .share button:hover { text-decoration: underline; }

/* --- pager -------------------------------------------------------------- */

.pager {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}
.pager .next { text-align: right; margin-left: auto; }

/* --- support + footer --------------------------------------------------- */

.support {
  margin: 2.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

footer.site {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.87rem;
  color: var(--muted);
}
footer.site p { margin: 0 0 0.5rem; }
footer.site a { color: var(--link); }

.feed {
  font-size: 0.95rem;
}

/* --- phone -------------------------------------------------------------- */

@media (max-width: 480px) {
  body { font-size: 17px; }
  .wrap { padding: 1.25rem 1rem 3rem; }
  article h1 { font-size: 1.6rem; }
  ol.posts h2 { font-size: 1.2rem; }
  .pager { display: block; }
  .pager .next { text-align: left; margin-left: 0; margin-top: 0.4rem; }
}
