/* cryptonews-site — 다크 미니멀. 전 페이지 공유(캐싱). */

:root {
  --bg:        #0d0f12;
  --surface:   #171a1f;
  --surface-2: #1d2128;
  --border:    #262b33;
  --text:      #e6e8eb;
  --muted:     #8b929c;
  --accent:    #f7931a;   /* bitcoin orange */
  --accent-dim:#c9760f;
  --maxw:      720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
               "Pretendard", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- layout ---- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13, 15, 18, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.brand-name { color: var(--text); }
.brand .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 10px var(--accent); opacity: 1; }
  50%      { box-shadow: 0 0 18px var(--accent); opacity: .75; }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tagline {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}
.rss-link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  transition: border-color .15s ease, background .15s ease;
}
.rss-link:hover {
  border-color: var(--accent-dim);
  background: var(--surface-2);
}
@media (max-width: 520px) {
  .tagline { display: none; }
}

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

main { padding: 32px 0; }

/* ---- index ---- */
.page-title {
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.feed { display: flex; flex-direction: column; gap: 14px; }

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.card:hover {
  border-color: var(--accent-dim);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.card h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.card .excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .meta { margin-top: 12px; }

.meta {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

/* ---- article detail ---- */
.article-header { margin-bottom: 28px; }
.article-header h1 {
  margin: 0 0 12px;
  font-size: 1.9rem;
  line-height: 1.32;
  letter-spacing: -0.02em;
}
.article-body p {
  margin: 0 0 1.25em;
  font-size: 1.06rem;
  line-height: 1.85;
}
.article-body p:last-child { margin-bottom: 0; }

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}
.back-link:hover { color: var(--accent); }

hr.rule { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }

/* ---- pagination ---- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.92rem;
}
.pager a:hover { color: var(--accent); }
.pager-num {
  min-width: 28px;
  text-align: center;
  color: var(--text);
}

/* ---- responsive ---- */
@media (max-width: 600px) {
  .article-header h1 { font-size: 1.55rem; }
  main { padding: 24px 0; }
}
