:root {
  --bg: #eef2f4;
  --surface: #f8fafb;
  --text: #1c2429;
  --muted: #5b6b73;
  --link: #0f6a6a;
  --border: #d5dee3;
  --brand: #12363a;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino,
    "Songti TC", "Source Han Serif TC", "Noto Serif TC", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 10% -10%, #d9e8ea 0%, transparent 55%),
    linear-gradient(180deg, #eef2f4 0%, #e7edf0 100%);
  color: var(--text);
  line-height: 1.75;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand);
}

.site-header,
.site-main,
.site-footer {
  width: min(100% - 2rem, 42rem);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 0 1rem;
  border-bottom: 1px solid var(--border);
}

.site-brand {
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.site-main {
  padding: 2.5rem 0 4rem;
}

.page-header {
  margin-bottom: 2rem;
}

.brand-title,
.page-title {
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.meta {
  margin: 0.25rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.meta.source a {
  word-break: break-all;
}

.post-list {
  display: grid;
  gap: 0.85rem;
}

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

.post-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.post-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--link);
}

.post-content {
  font-size: 1.06rem;
}

.post-content p {
  margin: 0 0 1em;
}

.post-content a {
  word-break: break-word;
}

.more-link {
  margin-top: 2rem;
}

.random-reads {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.random-reads-title {
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 700;
}

.random-reads-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.random-reads-list a {
  color: var(--text);
  text-decoration: none;
}

.random-reads-list a:hover {
  color: var(--link);
  text-decoration: underline;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
