@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=IBM+Plex+Serif:wght@400;600&display=swap');

/* Color palette */
:root {
  --bg-color: #f6f6fa;
  --text-color: #232235;
  --accent: #7E57C2;
  --accent-faint: #ede2fa;
  --edge: #d5c8f7;
  --quote-bar: #ab92df;
  --strip-bg: #eee8fd;
  --strip-text: #334;
  --gray-text: #726d7b;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #19182B;
    --text-color: #eceafd;
    --accent: #B39DDB;
    --accent-faint: #23203E;
    --edge: #433b5b;
    --quote-bar: #B39DDB;
    --strip-bg: #23203E;
    --strip-text: #eee8fd;
    --gray-text: #bbb7cd;
  }
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: underline dotted 1.5px;
  text-underline-offset: 2.5px;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #4c2e87;
  outline: none;
}

.strip {
  background: var(--strip-bg);
  color: var(--strip-text);
  border: none;
  box-shadow: 0 1px 0 0 var(--edge);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.92;
  position: sticky;
  top: 0;
  z-index: 10;
}

.strip a {
  color: var(--accent);
  text-decoration: none;
  padding: 0 0.25em;
  border-radius: 3px;
  transition: background 0.1s;
}
.strip a:hover, .strip a:focus {
  background: var(--accent-faint);
}

.masthead {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 2.5rem;
}

.avatar {
  border-radius: 50%;
  border: 2.5px solid var(--accent);
  box-shadow: 0 3px 14px 0 var(--edge);
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.5rem;
  background: var(--accent-faint);
  object-fit: cover;
}

.blog-title {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.2rem;
  margin-top: 0.6rem;
  letter-spacing: 0.02em;
}

.blog-title a {
  color: inherit;
  text-decoration: none;
  transition: text-shadow 0.18s;
}
.blog-title a:hover, .blog-title a:focus {
  text-shadow: 0 2px 8px var(--accent-faint);
}

.tagline {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--gray-text);
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

main {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: 1.08rem;
  padding-bottom: 3rem;
}

.about {
  background: var(--accent-faint);
  border-radius: 1.1em;
  padding: 1.6em 1.3em 1em 1.3em;
  margin: 2.5rem 0 1.5rem 0;
  border-left: 6px solid var(--accent);
  box-shadow: 0 2px 10px -6px var(--edge);
}

.about h2, .about h3 {
  color: var(--accent);
  margin-top: 0;
}
.about a {
  color: var(--accent);
  font-weight: 600;
}
.about code {
  background: var(--strip-bg);
  padding: 0.13em 0.5em;
  border-radius: 0.3em;
  font-size: 0.93em;
  font-family: 'Inter', monospace, monospace;
}

.posts h2 {
  color: var(--accent);
  font-size: 1.18rem;
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: 0.05em;
  margin-bottom: 0.4em;
}

.post-list li {
  border-bottom: 1px solid var(--edge);
  padding: 0.7rem 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.01rem;
  font-weight: 500;
}
.post-list a.post-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.post-list a.post-link:hover, .post-list a.post-link:focus {
  color: var(--accent);
}
.post-list time {
  color: var(--gray-text);
  font-size: 0.85em;
  font-weight: 400;
}

.empty {
  color: var(--gray-text);
  margin-left: 0.2em;
  font-style: italic;
}

article h1 {
  font-size: 2rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.1em;
  color: var(--accent);
}

.post-header time {
  color: var(--gray-text);
  font-size: 1em;
}

.post-body h2, .post-body h3, .post-body h4 {
  color: var(--accent);
  font-family: 'Inter', system-ui, sans-serif;
}

.post-body blockquote {
  border-left: 4px solid var(--quote-bar);
  background: var(--accent-faint);
  color: var(--gray-text);
  font-style: italic;
  padding-left: 1.1em;
  margin-left: 0;
}

pre, code {
  font-family: 'Inter', SFMono-Regular, Consolas, monospace;
  background: var(--strip-bg);
  color: var(--accent);
  border-radius: 0.4em;
}

pre {
  padding: 1em 1.3em;
  margin-bottom: 1.4em;
  border: 1.5px solid var(--edge);
  font-size: 0.95em;
  color: var(--accent);
  background: var(--accent-faint);
}

hr {
  border-top: 1.5px solid var(--edge);
  margin: 2rem 0;
}

.notice {
  color: var(--gray-text);
  font-style: italic;
  margin-top: 1.2em;
}

.receipt, .colophon {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--gray-text);
}
.colophon {
  border-top: 1px solid var(--edge);
  padding-top: 1.1em;
  padding-bottom: 2.2em;
  margin-top: 3em;
}

@media (max-width: 700px) {
  .masthead, main, .colophon { padding: 0 0.6em; }
  .about { padding: 1.1em 0.7em 0.7em 0.7em; }
  .avatar { width: 3.1rem; height: 3.1rem; }
  .blog-title { font-size: 1.35rem; }
  article h1 { font-size: 1.22rem; }
}

::-webkit-scrollbar {
  width: 10px;
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-faint);
  border-radius: 6px;
}
