:root {
  --bg: #0f1115;
  --surface: #171a21;
  --text: #e8eaed;
  --muted: #9aa0a6;
  --accent: #7cb7ff;
  --border: #2a303c;
  --radius: 12px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 10% -10%, #1a2744 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header.site {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

header.site h1 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

header.site p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

ul.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

ul.post-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  transition: border-color 0.15s ease;
}

ul.post-list li:hover {
  border-color: #3d4a63;
}

ul.post-list a.block {
  display: block;
  color: inherit;
  text-decoration: none;
}

ul.post-list a.block:hover {
  text-decoration: none;
}

ul.post-list h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}

ul.post-list .meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

ul.post-list .excerpt {
  margin: 0;
  font-size: 0.95rem;
  color: #c4c7ce;
}

article.post header {
  margin-bottom: 1.5rem;
}

article.post h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

article.post .meta {
  color: var(--muted);
  font-size: 0.9rem;
}

article.post .content {
  font-size: 1.02rem;
}

article.post .content p {
  margin: 0 0 1rem;
}

article.post .content code {
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 6px;
  border: 1px solid var(--border);
}

article.post .content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.back:hover {
  color: var(--text);
}

footer.site {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.error {
  background: #2a1f1f;
  border: 1px solid #5c3535;
  color: #f0c4c4;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
}
