:root{
  color-scheme: light dark;
  --bg: #f7f4ec;
  --paper: #fffdf8;
  --text: #1e1c19;
  --muted: #6a6258;
  --line: #d8d0c3;
  --accent: #6d5c97;
  --accent-soft: #ece7f7;
}

@media (prefers-color-scheme: dark){
  :root{
    --bg: #12110f;
    --paper: #181614;
    --text: #f2eee7;
    --muted: #b7aea3;
    --line: #3a342d;
    --accent: #c2b2ff;
    --accent-soft: #251f35;
  }
}

html{
  background: var(--bg);
}

body{
  background:
    linear-gradient(to bottom, var(--paper), var(--bg) 28rem);
  color: var(--text);
  font: 1.05rem/1.75 Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
}

a{
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

a:hover{
  text-decoration-thickness: 0.14em;
}

.strip{
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.strip a{
  color: var(--text);
  text-decoration: none;
}

.strip a:hover{
  text-decoration: underline;
}

.masthead, main, .colophon{
  max-width: 44rem;
}

.masthead{
  padding-top: 2.5rem;
  padding-bottom: 1.2rem;
}

.avatar{
  width: 4.75rem;
  height: 4.75rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
}

.blog-title{
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.blog-title a{
  color: var(--text);
  text-decoration: none;
}

.tagline{
  margin-top: 0.55rem;
  color: var(--muted);
  font: 0.98rem/1.5 system-ui, sans-serif;
}

main{
  padding-bottom: 3.5rem;
}

.about, .posts, article{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.03);
}

.about{
  margin-bottom: 1rem;
}

.posts h2:first-child,
.about h2:first-child,
article .post-header h1{
  margin-top: 0;
}

.post-list li{
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}

.post-link{
  color: var(--text);
  text-decoration-color: var(--accent);
}

h1, h2, h3, h4{
  color: var(--text);
}

h2{
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

time, .empty, .notice, .receipt, .colophon, .tagline{
  color: var(--muted);
}

blockquote{
  border-left: 3px solid var(--accent);
  padding: 0.15rem 0 0.15rem 1rem;
  color: var(--muted);
  background: var(--accent-soft);
  border-radius: 0 0.5rem 0.5rem 0;
}

pre, code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code{
  background: var(--accent-soft);
  padding: 0.08em 0.32em;
  border-radius: 0.35em;
}

pre{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

hr{
  border-top: 1px solid var(--line);
}

.receipt{
  margin-top: 2rem;
}

.colophon{
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  padding-bottom: 3rem;
}

@media (max-width: 42rem){
  .masthead{
    padding-top: 2rem;
  }

  .about, .posts, article{
    border-radius: 0.85rem;
    padding: 1rem;
  }

  .post-list li{
    display: block;
  }

  .post-list time{
    display: block;
    margin-top: 0.2rem;
  }
}
