:root {
  --bg: #faf9f6;
  --text: #191919;
  --muted: #73716c;
  --line: #dedbd4;
  --accent: #315b4d;
  --note-bg: #f1f4ef;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.72 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wrap { width: min(860px, calc(100% - 40px)); margin: auto; }

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

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { font-weight: 720; letter-spacing: -0.02em; }
.brand span { margin-left: 5px; color: var(--muted); font-weight: 450; }

.nav nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
}

.hero { max-width: 730px; padding: 110px 0 90px; }

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.hero h1,
.article h1 {
  margin: 15px 0 24px;
  font-family: Georgia, "Noto Serif SC", serif;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero h1 { font-size: clamp(42px, 7vw, 72px); }
.article h1 { font-size: clamp(38px, 5vw, 58px); }

.intro { max-width: 680px; color: #55534e; font-size: 21px; }

.section { padding: 30px 0 80px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 { font-size: 18px; }
.section-head a { color: var(--muted); font-size: 14px; }

.post-row {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.post-row time { padding-top: 5px; color: var(--muted); font-size: 13px; }

.post-row h2,
.post-row h3 {
  margin: 0;
  font: 600 23px/1.35 Georgia, "Noto Serif SC", serif;
}

.post-row p { margin: 7px 0 0; color: var(--muted); }

.page-head { padding: 70px 0 25px; }
.page-head h1 { font: 600 44px Georgia, "Noto Serif SC", serif; }

.article { max-width: 760px; padding: 85px 0; }
.article header { margin-bottom: 55px; }

.prose {
  overflow-wrap: anywhere;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 19px;
  line-height: 1.82;
}

.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p,
.prose ul,
.prose ol,
.prose dl,
.prose blockquote,
.prose pre,
.prose table,
.prose figure { margin: 0 0 1.45em; }

.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  margin: 2.25em 0 0.75em;
  font-family: Georgia, "Noto Serif SC", serif;
  line-height: 1.3;
}

.prose h2 { font-size: 1.55em; }
.prose h3 { font-size: 1.28em; }
.prose h4,
.prose h5,
.prose h6 { font-size: 1.08em; }

.prose ul,
.prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.prose strong { font-weight: 700; }

.prose blockquote {
  padding: 0.15em 0 0.15em 1em;
  border-left: 3px solid var(--accent);
  color: #4f4d48;
}

.prose blockquote > :last-child { margin-bottom: 0; }

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25em auto;
}

.prose figure { margin-right: 0; margin-left: 0; }
.prose figcaption { margin-top: 0.55em; color: var(--muted); font-size: 0.82em; }

.prose pre {
  overflow-x: auto;
  padding: 1em;
  background: #f0eee9;
  border: 1px solid var(--line);
  font: 0.82em/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.prose code {
  padding: 0.08em 0.25em;
  border-radius: 3px;
  background: #f0eee9;
  font: 0.84em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.prose pre code { padding: 0; background: transparent; }

.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9em;
}

.prose th,
.prose td {
  padding: 0.5em 0.65em;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th { background: #f0eee9; font-weight: 700; }

.restoration-note {
  margin: 2em 0 0;
  padding: 0.85em 1em;
  border-left: 3px solid var(--accent);
  background: var(--note-bg);
  color: #4e564e;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.83em;
  line-height: 1.65;
}

.footer {
  padding: 30px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.muted { color: var(--muted); }

@media (max-width: 600px) {
  .hero { padding: 75px 0 60px; }
  .post-row { grid-template-columns: 1fr; gap: 5px; }
  .article { padding: 60px 0; }
  .nav nav { gap: 14px; }
  .wrap { width: min(100% - 28px, 860px); }
  .prose { font-size: 18px; }
}
