:root {
  --bg: #fbfaf7;
  --text: #1c1b19;
  --muted: #6b6862;
  --rule: #e7e4dd;
  --underline: #c9c5bb;
  --accent: #b4532a;
  --avatar-bg: #ece8df;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --text: #ecebe8;
    --muted: #9a978f;
    --rule: #2a2926;
    --underline: #4a4843;
    --accent: #e48a5e;
    --avatar-bg: #24231f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 620px;
  margin: 0 auto;
  padding: 104px 24px 64px;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--underline);
  transition: color .15s, text-decoration-color .15s;
}
a:hover { color: var(--accent); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.avatar {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 28px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--avatar-bg);
  box-shadow: 0 0 0 1px var(--rule);
  color: var(--muted);
  font: 500 24px/1 "Newsreader", Georgia, serif;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  margin: 0 0 6px;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.tagline { margin: 0 0 40px; color: var(--muted); }

.intro p { margin: 0 0 1.1em; }

h2 {
  margin: 60px 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.list li { border-bottom: 1px solid var(--rule); }
.list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  text-decoration: none;
}
.list .meta { color: var(--muted); white-space: nowrap; transition: color .15s; }
.list a:hover .meta { color: var(--accent); }
.list .empty { padding: 14px 0; color: var(--muted); }

footer { margin-top: 80px; font-size: 14px; color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  main { padding: 64px 16px 48px; }
  h1 { font-size: 38px; }
  h2 { margin-top: 48px; }
}

/* Blog posts */
.back {
  display: inline-block;
  margin-bottom: 56px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}
.back:hover { color: var(--accent); }

.post-header h1 { font-size: 42px; line-height: 1.15; margin-bottom: 14px; }
.post-meta { margin: 0 0 48px; font-size: 15px; color: var(--muted); }

.post-body { font-size: 18px; line-height: 1.75; }
.post-body p { margin: 0 0 1.3em; }
.post-body h2 {
  margin: 2.2em 0 .7em;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
}

.author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.author .avatar { flex: none; width: 52px; height: 52px; margin: 0; font-size: 18px; }
.author p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.author .name { font-weight: 500; color: var(--text); text-decoration: none; }

@media (max-width: 600px) {
  .post-header h1 { font-size: 32px; }
  .post-body { font-size: 17px; }
  .post-body h2 { font-size: 24px; }
  .back { margin-bottom: 40px; }
}
