:root {
  --bg: #111113;
  --surface: #1c1c1e;
  --surface-soft: #171719;
  --text: #f5f5f7;
  --muted: #b8b8bd;
  --faint: #8e8e93;
  --line: #303033;
  --accent: #64a8ff;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

a:hover {
  color: var(--accent);
}

.wrapper {
  width: min(100% - 40px, 680px);
  margin: 0 auto;
}

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

.site-header .wrapper {
  display: flex;
  align-items: center;
  min-height: 52px;
}

.site-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.page-content {
  min-height: calc(100vh - 114px);
  padding: 56px 0 72px;
}

.post-list-heading {
  margin-bottom: 22px;
  color: var(--text);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.post-list {
  list-style: none;
}

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

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

.post-link {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
}

.post-link time {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
}

.post-link span {
  color: var(--text);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.38;
}

.post-link:hover span {
  color: var(--accent);
}

.post-list li:hover {
  background: var(--surface-soft);
}

.post-header {
  margin-bottom: 38px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
}

.post-title {
  max-width: 680px;
  color: var(--text);
  font-size: clamp(27px, 5vw, 41px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}

.post-content {
  max-width: 680px;
  color: #e8e8ed;
  font-size: 16px;
  line-height: 1.82;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content pre {
  margin-bottom: 20px;
}

.post-content h2 {
  margin: 46px 0 16px;
  color: var(--text);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.24;
}

.post-content h3 {
  margin: 36px 0 14px;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.post-content ul,
.post-content ol {
  margin-left: 24px;
}

.post-content li {
  margin-bottom: 7px;
}

.post-content blockquote {
  margin-left: 0;
  padding-left: 18px;
  color: var(--muted);
  border-left: 2px solid var(--faint);
}

.post-content code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #1d1d1f;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.9em;
}

.post-content pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.post-content pre code {
  padding: 0;
  background: transparent;
}

.back-link {
  margin-top: 48px;
  font-size: 15px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  min-height: 1px;
}

@media (max-width: 640px) {
  .wrapper {
    width: min(100% - 28px, 680px);
  }

  .page-content {
    padding: 42px 0 56px;
  }

  .post-list-heading {
    margin-bottom: 18px;
    font-size: 28px;
  }

  .post-link {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 18px 0;
  }

  .post-link span {
    font-size: 20px;
  }
}
