/* TheSudoku blog — minimal typography stylesheet.
   self-host Pretendard (already shipped at /fonts/fonts.css).
   목표: 읽기 편한 폭 + 가독성. 광고/추적 X. */

@import "/fonts/fonts.css";

:root {
  --bg: #F4EFE6;
  --paper: #FFFFFF;
  --ink: #1B1916;
  --muted: #5A554C;
  --line: #E5DFD3;
  --accent: #DD6B2C;
  --accent-2: #5E86A8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header .wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo {
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}
.site-header .logo small {
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
  font-size: 13px;
}
.site-header .play-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.site-header .play-cta:hover {
  background: #c45c25;
  text-decoration: none;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

article header h1 {
  font-size: 28px;
  line-height: 1.35;
  margin: 8px 0 12px;
  font-weight: 800;
}
article header .meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

article h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  font-weight: 700;
}
article h3 {
  font-size: 17px;
  margin: 24px 0 8px;
  font-weight: 700;
}
article p { margin: 12px 0; font-size: 16px; }
article ul, article ol { padding-left: 22px; }
article li { margin: 6px 0; }
article blockquote {
  border-left: 4px solid var(--accent);
  margin: 16px 0;
  padding: 8px 16px;
  background: var(--paper);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
}

.cta-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin: 32px 0 0;
  text-align: center;
}
.cta-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--ink);
}
.cta-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}
.cta-card a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
}
.cta-card a:hover { background: #c45c25; text-decoration: none; }

.post-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.post-list li {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.post-list li:last-child { border-bottom: none; }
.post-list a {
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  display: block;
  margin-bottom: 4px;
}
.post-list a:hover { color: var(--accent); text-decoration: none; }
.post-list .post-meta { color: var(--muted); font-size: 13px; }
.post-list .post-summary { color: var(--muted); font-size: 14px; margin-top: 4px; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
footer a { color: var(--muted); }

.level-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  font-size: 14px;
}
.level-table th, .level-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.level-table th {
  background: #FAF6EE;
  font-weight: 700;
  color: var(--muted);
}
.level-table tr:last-child td { border-bottom: none; }

@media (max-width: 480px) {
  article header h1 { font-size: 22px; }
  article h2 { font-size: 18px; }
  article p { font-size: 15px; }
  .site-header .logo { font-size: 16px; }
}
