/* Naofu.me - zen */

:root {
  --bg: #fafaf7;
  --ink: #222;
  --muted: #8a8a82;
  --rule: #e8e6df;
  --link: #222;
  --serif: "EB Garamond", "Source Serif Pro", "Iowan Old Style", "Hiragino Mincho ProN", "游明朝", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --measure: 38rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.78;
  font-feature-settings: "kern", "liga", "onum";
}

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

a:hover { text-decoration: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.site-head {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  color: var(--muted);
}

.site-head a { color: var(--muted); text-decoration: none; }
.site-head a:hover { color: var(--ink); }

.site-head .brand a { color: var(--ink); font-weight: 500; }

.site-head nav { display: flex; gap: 1.5rem; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 2.5rem 0 1.25rem;
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.25em; }

blockquote {
  margin: 1.5em 0;
  padding-left: 1em;
  border-left: 2px solid var(--rule);
  color: #555;
  font-style: italic;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

.hero {
  margin: 0;
}

.hero img {
  width: 100%;
  border-radius: 2px;
}

.post-hero {
  margin: 0 0 2.5rem;
}

.post-hero img {
  width: 100%;
  border-radius: 2px;
}

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

.post-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

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

.post-list h2 {
  font-size: 1.375rem;
  margin: 0 0 0.25rem;
}

.post-list h2 a { text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }

.post-list time {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}

.post-list p {
  margin: 0.5rem 0 0;
  color: #555;
}

/* Single post */
.post-meta {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.post-title {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 2.5rem;
}

.post-body p { margin-bottom: 1.4em; }

.post-foot {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}

.post-foot a { color: var(--muted); }

footer.site-foot {
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 540px) {
  .wrap { padding: 2.5rem 1.25rem 4rem; }
  .site-head { flex-direction: column; gap: 0.75rem; margin-bottom: 2.5rem; }
  .site-head nav { gap: 1.25rem; }
  body { font-size: 1.0625rem; }
  .post-title { font-size: 1.625rem; }
}
