:root {
  --bg: #f5f1e8;
  --paper: #fffdf9;
  --text: #1d1b18;
  --muted: #6e675f;
  --line: #ddd3c7;
  --accent: #8f3b24;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #efe7d9 0%, var(--bg) 28%, #f7f4ee 100%);
  color: var(--text);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
.page {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header .inner,
.site-footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 1rem;
}

.brand,
.footer-mark,
nav a {
  text-decoration: none;
}

.brand,
.footer-mark {
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 1rem;
}

.page {
  padding: 0.5rem 0 0.75rem;
}

.intro,
.post {
  background: rgba(255, 253, 249, 0.78);
  border: 1px solid rgba(221, 211, 199, 0.65);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(36, 24, 14, 0.05);
}

.post-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.archive-header {
  margin-bottom: 1rem;
}

.archive-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
}

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

.post-card:last-child {
  border-bottom: 0;
}

.post-card h2,
.post-header h1,
.intro h1 {
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.meta,
.summary,
.terms,
.site-footer {
  color: var(--muted);
}

.footer-mark {
  margin: 0;
  font-size: 0.98rem;
  text-align: right;
  width: 100%;
}

.prose p:first-child {
  margin-top: 0;
}

.prose a {
  color: var(--accent);
}

.prose code {
  background: rgba(143, 59, 36, 0.08);
  border: 1px solid rgba(143, 59, 36, 0.14);
  border-radius: 6px;
  padding: 0.12rem 0.35rem;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.prose pre,
.prose pre.wp-block-code {
  background: #1f1b18;
  color: #f4eee6;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  border: 1px solid rgba(95, 74, 58, 0.9);
  margin: 1.5rem 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.prose pre code,
.prose pre.wp-block-code code {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .site-header .inner,
  .site-footer .inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro,
  .post {
    padding: 1.5rem;
  }
}
