@import url('https://api.fontshare.com/v2/css?f[]=montserrat@300,400&f[]=sentient@300&display=swap');

:root { --ink: #1a1a1a; --muted: #9a9a9a; --rule: #e6e6e6; --bg: #fff; }
@media (prefers-color-scheme: dark) {
  :root { --ink: #e8e8e8; --muted: #777; --rule: #2a2a2a; --bg: #111; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body {
  max-width: 34rem; margin: 0 auto; padding: 6rem 1.5rem 8rem;
  font-family: 'Sentient', Georgia, serif; font-weight: 300;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* header */
header { text-align: center; margin-bottom: 7rem; }
#blog-title { font: 300 2.4rem/1 'Montserrat', sans-serif; letter-spacing: .02em; }
#post #blog-title { font-size: 1.4rem; }
.description, .links { font: 300 .9rem/1.6 'Montserrat', sans-serif; color: var(--muted); margin-top: .9rem; }
.links { margin-top: .2rem; }
.links a:hover, #blog-title a:hover { color: var(--muted); }

/* haiku */
/* each haiku is its own block, centered on the page; lines stay left-aligned */
article { width: fit-content; max-width: 100%; margin: 0 auto 3.25rem; }
article::after { content: ""; display: block; width: 1.75rem; height: 1px; background: var(--rule); margin: 3.25rem auto 0; }
article:last-of-type::after, #post article::after { display: none; }
.e-content p { white-space: pre-line; font-size: 1.3rem; line-height: 1.75; }
.e-content img { display: block; max-width: 100%; margin: 1rem auto; }
.permalink {
  display: inline-block; margin-top: 1rem;
  font: 400 .72rem/1 'Montserrat', sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); opacity: .7; transition: opacity .2s;
}
a.permalink:hover { opacity: 1; }
