:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5a5a5a;
  --line: #e4e4e4;
  --maxw: 760px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.72;
}

a {
  color: #111111;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.container {
  width: min(var(--maxw), calc(100vw - 2rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 0 1.15rem;
}

.site-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-description {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.archive-note {
  margin: 0.65rem 0 0;
  color: #2e2e2e;
  font-size: 0.93rem;
}

main {
  padding: 1.75rem 0 2.75rem;
}

.post-card,
.post-detail,
.page-detail,
.comments-section {
  margin: 0 0 1.65rem;
}

.post-card {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.2rem;
}

.post-card-title,
h1,
h2,
h3,
h4 {
  margin-top: 0;
  line-height: 1.25;
}

.post-card-title {
  font-size: 1.4rem;
}

.post-card-meta,
.comment-meta {
  margin: 0.25rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.post-card-excerpt {
  color: #222222;
}

.post-card-excerpt a,
.post-card-excerpt a:hover {
  text-decoration: none;
}

.post-card-readmore {
  margin: 0.65rem 0 0;
}

.post-card-readmore a,
.post-card-readmore a:hover {
  text-decoration: underline;
}

.entry-content {
  font-size: 1.05rem;
}

.entry-content img,
.entry-content iframe,
.entry-content video {
  max-width: 100%;
  height: auto;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 0.42rem 0.5rem;
  vertical-align: top;
}

.taxonomy-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  list-style: none;
  margin: 0.95rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.4rem 0 0.75rem;
  gap: 1rem;
}

.pager-page {
  font-size: 0.9rem;
  color: var(--muted);
}

.comments-section {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.easy-footnotes-bottom {
  margin-top: 1.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.easy-footnotes-list {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.easy-footnote-bottom-item {
  margin: 0.45rem 0;
}

.easy-footnote-backref {
  white-space: nowrap;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-item {
  margin: 0.9rem 0;
  padding: 0.25rem 0 0.25rem 0;
}

.comment-list .comment-list {
  margin-top: 0.65rem;
  margin-left: 0.9rem;
  padding-left: 0.9rem;
  border-left: 1px solid #cfcfcf;
}

.comment-content p {
  margin: 0.35rem 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0 2rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid nav {
  display: flex;
  gap: 0.85rem;
}

@media (max-width: 640px) {
  body {
    line-height: 1.66;
  }

  .site-header {
    padding-top: 1.35rem;
  }

  .entry-content {
    font-size: 1rem;
  }

  .post-card-title {
    font-size: 1.25rem;
  }

  .comment-list .comment-list {
    margin-left: 0.55rem;
    padding-left: 0.65rem;
  }
}
