@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;0,6..72,700;1,6..72,400&family=IBM+Plex+Mono:wght@400&display=swap');

:root {
  --paper: #f6f1e7;
  --ink: #2a2622;
  --soft: #6f665b;
  --rule: #d9cfbc;
  --accent: #a83a22;
  --wash: #ede5d4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1917;
    --ink: #e9e2d5;
    --soft: #a1978a;
    --rule: #3a352f;
    --accent: #e8836a;
    --wash: #25221f;
  }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.7;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

.strip {
  background: var(--wash);
  color: var(--soft);
  border-bottom: 1px solid var(--rule);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
}
.strip a { color: var(--ink); }

.masthead {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.1rem;
  align-items: center;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}
.avatar {
  grid-row: 1 / span 2;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0;
}
.blog-title {
  grid-column: 2;
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  align-self: end;
}
.blog-title a { color: var(--ink); text-decoration: none; }
.tagline {
  grid-column: 2;
  align-self: start;
  margin: 0.3rem 0 0;
  color: var(--soft);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.4;
}

main { padding-bottom: 3rem; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; }
h1 { font-size: 2rem; letter-spacing: -0.01em; margin-top: 1.5rem; }
h2 { font-size: 1.35rem; margin-top: 2.2rem; }
h3, h4 { font-size: 1.12rem; }

.about {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.5rem 0 1rem;
  margin-bottom: 1rem;
}
.about p, .about li { margin: 0.8rem 0; }
.about ul { padding-left: 1.2rem; }
.about li::marker { color: var(--accent); }

.posts h2 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--soft);
}
.post-list li { border-bottom: 1px solid var(--rule); padding: 0.75rem 0; }
.post-link { font-size: 1.2rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.post-link:hover { color: var(--accent); text-decoration: underline; }

time {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--soft);
}
.empty, .notice { color: var(--soft); font-style: italic; }

.post-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.post-header h1 { margin-top: 1.5rem; }

.post-body p { margin: 1.1rem 0; }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body li { margin: 0.35rem 0; }
.post-body li::marker { color: var(--accent); }

blockquote {
  margin: 1.4rem 0;
  padding: 0.1rem 0 0.1rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--soft);
  font-style: italic;
}
code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85em;
  background: var(--wash);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}
pre {
  background: var(--wash);
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.2rem auto; width: 30%; }

.receipt, .colophon {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--soft);
}
.colophon { border-top: 1px solid var(--rule); }

@media (max-width: 30rem) {
  body { font-size: 1.1rem; }
  .masthead { column-gap: 0.8rem; padding-top: 1.8rem; }
  .avatar { width: 3.6rem; height: 3.6rem; }
  .blog-title { font-size: 1.8rem; }
  h1 { font-size: 1.6rem; }
}
