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

:root {
  --bg: #f6f2ea;
  --fg: #24211d;
  --muted: #6e675d;
  --rule: #d9d1c3;
  --accent: #a4462a;
  --code-bg: #ece6da;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1a17;
    --fg: #e7e1d6;
    --muted: #a39b8e;
    --rule: #3a362f;
    --accent: #e3906f;
    --code-bg: #26231f;
  }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

/* Top strip */
.strip {
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  letter-spacing: 0.02em;
}
.strip a { color: var(--fg); text-decoration: none; }
.strip a:hover { color: var(--accent); text-decoration: underline; }

/* Masthead */
.masthead, main, .colophon { max-width: 38rem; }
.masthead {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1rem;
}
.avatar {
  grid-row: 1 / span 2;
  width: 3.6rem;
  height: 3.6rem;
  margin: 0;
}
.blog-title, .tagline { grid-column: 2; }
.blog-title {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.blog-title a { color: var(--fg); }
.tagline {
  margin-top: 0.15rem;
  color: var(--muted);
  font-style: italic;
  font-size: 1.02rem;
}

/* Headings */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.005em; }
h1 { font-size: 1.85rem; }
.posts h2 {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 2.5rem;
}

/* About */
.about { margin-top: 1.5rem; }
.about ul { padding-left: 1.2rem; }
.about li { margin-bottom: 0.5rem; }

/* Post list */
.post-list li { border-bottom: 1px solid var(--rule); padding: 0.75rem 0; }
.post-list li:first-child { border-top: 1px solid var(--rule); }
.post-link { color: var(--fg); text-decoration: none; font-size: 1.12rem; }
.post-link:hover { color: var(--accent); text-decoration: underline; }
time { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Post page */
.post-header { margin-bottom: 1.8rem; }
.post-header h1 { margin-top: 1.5rem; }
.post-body p { margin: 0 0 1.1rem; }
.post-body h2 { margin-top: 2.4rem; }
.post-body li { margin-bottom: 0.35rem; }

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

.empty, .notice { color: var(--muted); font-style: italic; }
.receipt, .colophon { color: var(--muted); }
.receipt a, .colophon a { color: var(--muted); }
.colophon { border-top: 1px solid var(--rule); margin-top: 1rem; }

@media (max-width: 30rem) {
  body { font-size: 1.07rem; }
  .masthead { padding-top: 2rem; }
  .blog-title { font-size: 1.55rem; }
  .avatar { width: 3rem; height: 3rem; }
  h1 { font-size: 1.55rem; }
}
