:root {
  --bg: #faf8f3;
  --fg: #1f1e1c;
  --muted: #7a766e;
  --line: #e6e1d7;
  --accent: #1f1e1c;
  --serif: "Gowun Batang", "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --fg: #e9e5dd;
    --muted: #8f8a80;
    --line: #2c2a27;
    --accent: #e9e5dd;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

header.site, footer.site, main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}
header.site {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 40px;
  padding-bottom: 40px;
}
header.site .brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}
header.site nav a, footer.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}
header.site nav a:hover, footer.site a:hover { color: var(--fg); }

.intro { padding: 56px 0 72px; }
.intro h1 {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.intro p { color: var(--muted); margin: 0; }

ul.posts { list-style: none; margin: 0; padding: 0; }
ul.posts li { border-top: 1px solid var(--line); }
ul.posts li:last-child { border-bottom: 1px solid var(--line); }
ul.posts li.empty { padding: 40px 0; color: var(--muted); }
ul.posts a {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  text-decoration: none;
}
ul.posts .txt { flex: 1; min-width: 0; }
ul.posts h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 8px;
}
ul.posts a:hover h2 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
ul.posts p {
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
ul.posts time { color: var(--muted); font-size: 0.82rem; }
ul.posts img {
  width: 132px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
}

article { padding: 32px 0 24px; }
article > header h1 {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 12px;
}
article .meta { color: var(--muted); font-size: 0.88rem; margin: 0 0 40px; }
figure.cover { margin: 0 0 48px; }
figure.cover img { width: 100%; border-radius: 8px; }

.prose {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 2;
}
.prose p { margin: 0 0 1.6em; }
.prose h2 { font-size: 1.4rem; margin: 2.4em 0 0.8em; line-height: 1.5; }
.prose h3 { font-size: 1.2rem; margin: 2em 0 0.6em; }
.prose blockquote {
  margin: 2em 0;
  padding: 0 0 0 1.2em;
  border-left: 2px solid var(--fg);
  color: var(--muted);
}
.prose hr {
  border: 0;
  margin: 3em auto;
  text-align: center;
}
.prose hr::after { content: "·  ·  ·"; color: var(--muted); letter-spacing: 0.4em; }
.prose img { margin: 2em auto; border-radius: 6px; }
.prose a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.6em; }

nav.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 24px;
}
nav.pager a { text-decoration: none; font-family: var(--serif); line-height: 1.5; }
nav.pager a span { display: block; font-family: var(--sans); color: var(--muted); font-size: 0.8rem; margin-bottom: 4px; }
nav.pager .newer { text-align: right; }

footer.site {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  padding-top: 64px;
  padding-bottom: 48px;
}

@media (max-width: 560px) {
  header.site { padding-top: 28px; padding-bottom: 24px; }
  .intro { padding: 32px 0 48px; }
  .intro h1 { font-size: 2.1rem; }
  ul.posts a { gap: 16px; padding: 26px 0; }
  ul.posts h2 { font-size: 1.12rem; }
  ul.posts img { width: 92px; }
  article > header h1 { font-size: 1.6rem; }
  .prose { font-size: 1.06rem; }
}
