:root {
  --max-width: 720px;
  --color-text: #1a1a1a;
  --color-muted: #666;
  --color-bg: #fff;
  --color-accent: #2454a8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
}

.site-nav a {
  margin-left: 1rem;
  color: var(--color-text);
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.site-nav a.active {
  border-bottom-color: var(--color-accent);
}

.site-nav a:first-child {
  margin-left: 0;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

h1, h2, h3, h4, h5, h6 {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.25rem;
}

.post-meta {
  color: var(--color-muted);
  font-size: 0.9rem;
}

ul.entry-list {
  list-style: none;
  padding: 0;
}

ul.entry-list li {
  margin-bottom: 1rem;
}

#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #000;
  border: 1.5px solid #000;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

ul.entry-list .entry-meta {
  color: var(--color-muted);
  font-size: 0.9rem;
}
