:root {
  --bg: #fffef9;
  --text: #1a1a1a;
  --muted: #888;
  --accent: #d97706;
  --rule: #e8e4d8;
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", "Yu Mincho", "游明朝", Georgia, serif;
  line-height: 1.95;
  letter-spacing: 0.1em;
  font-feature-settings: "palt";
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.25rem 6rem;
}

header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 0.02em;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

header .tagline {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

article h1 {
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.5rem;
}

article time, .post-list time {
  color: var(--muted);
  font-size: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.05em;
}

article .body {
  margin-top: 2rem;
}

article p {
  margin: 1.25rem 0;
}

article a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

article figure {
  margin: 2rem 0;
}

article img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 2px;
}

article figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

article a:hover {
  color: var(--accent);
}

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

.post-list li {
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.post-list time {
  flex-shrink: 0;
  width: 6rem;
}

.post-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}

.post-list a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

nav.post-nav {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}

nav.post-nav a {
  color: var(--muted);
  text-decoration: none;
}

nav.post-nav a:hover {
  color: var(--accent);
}

footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  main { padding: 2.5rem 1rem 4rem; }
  .post-list li { flex-direction: column; gap: 0.25rem; }
  .post-list time { width: auto; }
}
