:root {
  --paper: #f3efe4;
  --paper-deep: #e7e0d0;
  --ink: #1c1914;
  --muted: #6f685c;
  --line: #d9d0c0;
  --cinnabar: #8d3a30;
  --pine: #2a4638;
  --measure: 40rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at top, rgba(255, 252, 245, 0.9), transparent 42%),
    var(--paper);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "Noto Serif SC", "STSong", "Source Han Serif SC", serif;
  font-size: 1.05rem;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.spine {
  display: none;
}

.wrap {
  width: min(var(--measure), calc(100% - 2.4rem));
  margin: 0 auto;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 2px solid var(--cinnabar);
  color: var(--cinnabar);
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: 0;
  transform: rotate(-8deg);
  flex: none;
}

.brand-text { display: flex; flex-direction: column; gap: 0.15rem; }

.brand h1,
.brand .name {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1.2;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  gap: 1.4rem;
  margin-top: 1.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
}

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

.nav a[aria-current="page"],
.nav a:hover { color: var(--ink); }

main { padding: 2.2rem 0 3.5rem; }

.lead {
  margin: 0 0 2rem;
  color: var(--pine);
  font-size: 1.08rem;
}

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

.post-list li { border-top: 1px solid var(--line); }

.post-list a {
  display: block;
  padding: 1.25rem 0 1.15rem;
  text-decoration: none;
}

.post-list time {
  display: block;
  color: var(--cinnabar);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

.post-list h2 {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.post-list p {
  margin: 0;
  color: var(--muted);
}

.post-list a:hover h2 { color: var(--pine); }

.article-kicker {
  margin: 0 0 0.4rem;
  color: var(--cinnabar);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
}

article h2.page-title,
.page-title {
  margin: 0 0 1.4rem;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.35;
}

article p { margin: 0 0 1.05rem; }

article .end {
  margin-top: 2rem;
  color: var(--muted);
  letter-spacing: 0.4em;
  text-align: center;
}

.back {
  display: inline-block;
  margin-top: 2rem;
  color: var(--pine);
  letter-spacing: 0.12em;
  text-decoration: none;
}

.back:hover { text-decoration: underline; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  line-height: 1.7;
}

.site-footer p { margin: 0.15rem 0; }

.icp { letter-spacing: 0.04em; }

.icp a { text-decoration: none; }

.icp a:hover { text-decoration: underline; }

::selection { background: #ead7a4; }

@media (min-width: 960px) {
  .spine {
    display: block;
    position: fixed;
    top: 22vh;
    left: max(1.2rem, calc(50% - 28rem));
    writing-mode: vertical-rl;
    letter-spacing: 0.55em;
    color: var(--muted);
    font-size: 0.82rem;
  }
}

@media (max-width: 640px) {
  .brand h1, .brand .name { letter-spacing: 0.18em; font-size: 1.7rem; }
  .page-title, article h2.page-title { font-size: 1.6rem; letter-spacing: 0.06em; }
}
