@import url('https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,600;1,7..72,400&display=swap');

:root {
  --bg: #f7f2e8;
  --ink: #27231f;
  --muted: #6e685e;
  --accent: #9a4a24;
  --rule: #d9d1c3;
  --panel: #efe8da;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1f26;
    --ink: #e8e3d8;
    --muted: #9c978c;
    --accent: #e4a572;
    --rule: #3a3e49;
    --panel: #242831;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Literata, Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

/* The strip stays visible, just quieter. */
.strip {
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.55rem 1.2rem;
}
.strip a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
.strip a:hover { color: var(--accent); border-bottom-color: var(--accent); }

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

.masthead {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.25rem;
  row-gap: 0.15rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
}
.avatar {
  grid-row: 1 / 3;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0;
  border-radius: 20%;
}
.blog-title {
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}
.blog-title a { color: var(--ink); text-decoration: none; }
.blog-title a:hover { color: var(--accent); }
.tagline {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.4;
}

/* Post pages get a smaller masthead so the post is the thing. */
body.post .masthead { padding-top: 2rem; padding-bottom: 0.5rem; }
body.post .avatar { width: 2.6rem; height: 2.6rem; }
body.post .blog-title { font-size: 1.1rem; font-weight: 600; }
body.post .tagline { display: none; }

main { padding-bottom: 3rem; }

.about { padding-top: 0.5rem; }
.about p:first-child { font-size: 1.12rem; }
.about li { margin-bottom: 0.5rem; }

.posts { margin-top: 2.5rem; }
.posts h2 {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
  margin: 0 0 0.3rem;
}
.post-list li {
  border-bottom: 1px solid var(--rule);
  padding: 0.75rem 0;
  gap: 0.2rem 1.2rem;
}
.post-link { color: var(--ink); text-decoration: none; font-weight: 400; }
.post-link:hover { color: var(--accent); text-decoration: underline; }
time {
  color: var(--muted);
  font: 0.8rem/1.4 system-ui, sans-serif;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.empty { color: var(--muted); font-style: italic; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }
.post-header { margin-top: 2.25rem; margin-bottom: 2rem; }
.post-header h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 0.5rem; }
.post-header time { display: block; }

.post-body h2 { font-size: 1.3rem; margin: 2.25rem 0 0.6rem; }
.post-body h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
.post-body h4 { font-size: 1rem; font-style: italic; font-weight: 400; margin: 1.5rem 0 0.4rem; }
.post-body p { margin: 0 0 1.1rem; }
.post-body li { margin-bottom: 0.35rem; }

blockquote {
  margin: 1.5rem 0;
  padding: 0.1rem 0 0.1rem 1.1rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}
blockquote em { font-style: normal; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--panel);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
pre {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.9rem 1rem;
  font-size: 0.84rem;
  line-height: 1.55;
}
pre code { background: none; padding: 0; font-size: inherit; }

hr {
  border: 0;
  margin: 2.5rem auto;
  width: 4rem;
  border-top: 1px solid var(--muted);
}

.notice {
  color: var(--muted);
  font-style: italic;
  border-left: 2px solid var(--rule);
  padding-left: 1rem;
  margin-top: 2rem;
}
.receipt, .colophon {
  color: var(--muted);
  font: 0.78rem/1.55 system-ui, sans-serif;
}
.receipt { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.receipt a, .colophon a { color: var(--muted); }
.receipt a:hover, .colophon a:hover { color: var(--accent); }
.colophon { border-top: 1px solid var(--rule); padding-top: 1.1rem; padding-bottom: 3.5rem; }

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .masthead { padding-top: 2.5rem; column-gap: 1rem; }
  .avatar { width: 3.6rem; height: 3.6rem; }
  .blog-title { font-size: 1.55rem; }
  .post-header h1 { font-size: 1.6rem; }
}
