/* Archive theme – modelled on WordPress's Twenty Nineteen */
:root {
  --text: #111;
  --muted: #767676;
  --accent: #0073aa;
  --accent-hover: #005177;
  --rule: #ccc;
  --bg: #fff;
  --tint: #f1f1f1;
  --serif: "Hoefler Text", Garamond, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --gutter: 1rem;
}
@media (prefers-color-scheme: dark) {
  :root { --text: #e8e8e8; --muted: #a0a0a0; --accent: #5aaee0; --accent-hover: #8ccaf0; --rule: #444; --bg: #161616; --tint: #242424; }
}
@media (min-width: 768px) { :root { --gutter: calc(10% + 60px); } }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 22px; }
@media (max-width: 767px) { html { font-size: 18px; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--serif); line-height: 1.8;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); transition: color 110ms ease-in-out; }
a:hover, a:focus { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }

/* Header */
.site-header { padding: 3rem var(--gutter) 1rem; }
.site-branding { margin: 0; font-family: var(--sans); font-size: 0.9rem; line-height: 1.3; }
.site-title { color: var(--text); text-decoration: none; font-weight: 600; }
.site-title:hover { color: var(--accent); }
.site-description { color: var(--muted); font-weight: 400; }
.site-description::before { content: "—"; margin: 0 0.5em; }

/* Posts */
.site-main { padding: 0 var(--gutter); }
.entry { margin: 3rem 0; }
.entry-title { font-size: 2.25rem; margin: 0; max-width: 32em; }
.entry-title::before, .comments-title::before {
  content: ""; display: block; width: 1em; height: 2px; margin: 1rem 0; background: var(--muted);
}
.summary .entry-title { font-size: 1.6rem; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { color: var(--accent); }
.entry-meta { margin-top: 1rem; font-family: var(--sans); font-size: 0.72rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.entry-meta a { color: inherit; text-decoration: none; }
.entry-meta a:hover { color: var(--accent); }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; vertical-align: -0.2em; margin-right: 0.35em; }
.entry-content { max-width: 32rem; margin-top: 2.5rem; }
.entry-content p, .comment-content p { margin: 0 0 1.25em; }
.entry-content a { text-decoration: underline; }
blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 2px solid var(--accent); }
blockquote p { font-style: italic; }
blockquote p:last-child { margin-bottom: 0; }

/* Comments */
.comments-area { max-width: 36rem; margin: 4rem 0 2rem; }
.comments-title { font-size: 1.6rem; margin: 0 0 2rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment-list { padding-left: 2.5rem; }
.comment { margin-top: 1.75rem; }
.comment-body { position: relative; padding-left: 2.75rem; }
.comment-meta { font-family: var(--sans); }
.avatar {
  position: absolute; left: 0; top: 0.1rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 700;
  background: var(--tint); color: var(--muted);
}
.by-author > .comment-body .avatar { background: var(--accent); color: var(--bg); }
.comment-author { display: block; font-size: 0.95rem; font-weight: 700; line-height: 1.3; }
.by-author > .comment-body .comment-author { color: var(--accent); }
.badge { margin-left: 0.5em; padding: 0.1em 0.5em; border-radius: 3px; background: var(--accent); color: var(--bg); font-size: 0.6rem; font-weight: 600; vertical-align: 0.15em; }
.comment-date { font-size: 0.65rem; color: var(--muted); text-decoration: none; }
.comment-date:hover { color: var(--accent); }
.comment-content { margin-top: 0.6rem; font-size: 0.9rem; overflow-wrap: anywhere; }
.comment-content p:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .comment-list .comment-list { padding-left: 0.9rem; border-left: 1px solid var(--rule); }
  .comment-body { padding-left: 2.4rem; }
}

/* Footer */
.site-footer { padding: 2rem var(--gutter) 3rem; font-family: var(--sans); font-size: 0.7rem; color: var(--muted); }
.site-footer p { max-width: 32rem; margin: 0; border-top: 1px solid var(--rule); padding-top: 1rem; }
.site-footer a { color: inherit; }
