:root {
  --orange: #e65100;
  --orange-light: #ff8a50;
  --text: #1a1a1a;
  --text-secondary: #555;
  --bg: #fafafa;
  --bg-header: var(--orange);
  --border: #e8e8e8;
  --link: #c84b00;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  font-size: 1.05rem;
}

/* ── Nav ── */
body > header {
  background: var(--bg-header);
  border-bottom: none;
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.site-title:hover {
  color: rgba(255, 255, 255, 0.8);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #fff;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--orange-light);
}

strong {
  font-weight: 700;
}

/* ── Main ── */
main {
  max-width: 800px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

/* ── Archive ── */
ul.archive-list {
  list-style-type: none;
}

/* ── Post feed ── */
.post-feed {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.post-preview {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.post-preview:last-of-type {
  border-bottom: none;
}

.post-preview h2 {
  font-size: 1.3rem;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

.post-preview h2 a {
  color: var(--orange);
  text-decoration: none;
}

.post-preview h2 a:hover {
  color: var(--orange-light);
}

.preview-content {
  margin-top: 0.75rem;
}

.preview-content p {
  margin-bottom: 0.75rem;
}

.preview-content ul,
.preview-content ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.preview-content a {
  color: var(--link);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.pagination a {
  color: var(--text-secondary);
  text-decoration: none;
}

.pagination a:hover {
  color: var(--orange);
}

.page-num {
  color: var(--text-secondary);
}

.date {
  color: var(--text-secondary);
  font-size: 0.85rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ── Post article ── */
.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.post-header h1 {
  font-size: 1.7rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  color: var(--orange);
}

.post-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.post-content {
  margin-bottom: 3rem;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.post-content li {
  margin-bottom: 0.3rem;
}

/* ── Post nav ── */
.post-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.post-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  max-width: 45%;
}

.post-nav a:hover {
  color: var(--orange);
}

.nav-next {
  text-align: right;
  margin-left: auto;
}

/* ── Generic page ── */
.page h1 {
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--orange);
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .post-list li {
    flex-direction: column;
    gap: 0.2rem;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
