@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,400;1,9..144,600&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --paper: #faf4e8;
  --ink: #2e2318;
  --accent: #b14e1a;
  --faint: #8a7a64;
  --rule: #ddd0ba;
  --inset: #f1e7d4;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #211b13;
    --ink: #eee4d2;
    --accent: #e68a4a;
    --faint: #a1917b;
    --rule: #463b2c;
    --inset: #2b2419;
  }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.75;
}

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

/* ----- top strip ----- */
.strip {
  border-bottom: 1px solid var(--rule);
  background: var(--inset);
  color: var(--faint);
}
.strip a { color: var(--faint); }
.strip a:hover { color: var(--accent); }

/* ----- masthead ----- */
.masthead {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.2rem;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px double var(--rule);
}
.avatar {
  grid-row: 1 / 3;
  align-self: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0;
}
.blog-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 2rem;
  align-self: end;
}
.blog-title a { color: var(--ink); text-decoration: none; }
.blog-title a:hover { color: var(--accent); }
.post .blog-title { font-size: 1.25rem; }
.tagline {
  color: var(--faint);
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

/* ----- headings ----- */
h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
}
.post-header h1 { font-size: 1.8rem; margin-top: 2.2rem; }

/* ----- front page ----- */
.about { margin-top: 1.5rem; }
.posts h2 {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
}
.post-list li { border-bottom: 1px solid var(--rule); }
.post-link { color: var(--ink); text-decoration: none; }
.post-link:hover { color: var(--accent); text-decoration: underline; }
time { color: var(--faint); }
.empty { color: var(--faint); font-style: italic; }

/* ----- posts ----- */
.post-body > p:first-of-type::first-letter {
  font-family: "Fraunces", Georgia, serif;
  font-size: 3.1em;
  line-height: 0.85;
  float: left;
  padding: 0.05em 0.1em 0 0;
  color: var(--accent);
}
blockquote {
  border-left: 3px solid var(--accent);
  color: inherit;
  font-style: italic;
}
blockquote em, blockquote i { font-style: normal; }
pre {
  background: var(--inset);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
code { font-size: 0.9em; }
hr {
  border: 0;
  margin: 2.2rem auto;
  text-align: center;
  height: auto;
}
hr::after {
  content: "\2766"; /* fleuron */
  color: var(--faint);
  font-size: 1.1rem;
}
.notice { color: var(--faint); font-style: italic; }

/* ----- small print ----- */
.receipt, .colophon { color: var(--faint); }
.receipt a, .colophon a { color: var(--faint); }
.receipt a:hover, .colophon a:hover { color: var(--accent); }
.colophon { border-top: 1px solid var(--rule); }
