@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;600;700&display=swap');

:root {
  --bg: #f6f8fb;
  --text: #1f2933;
  --muted: #6b7280;
  --accent: #0ea5e9;
  --card: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --container-padding: clamp(0.75rem, 4vw, 1.5rem);
  --hero-padding: clamp(1.4rem, 5vw, 2.5rem);
  --card-padding: clamp(1rem, 4vw, 1.35rem);
  --card-radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 10% 20%, rgba(14,165,233,0.08), transparent 25%), var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', 'Segoe UI', sans-serif;
  line-height: 1.7;
}

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

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.nav a {
  margin-left: clamp(0.6rem, 2vw, 1rem);
  font-weight: 600;
}

.content {
  padding: 2rem 0 3rem;
}

.hero {
  padding: var(--hero-padding);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: clamp(12px, 2vw, 18px);
  box-shadow: var(--shadow);
  margin-bottom: clamp(1.5rem, 5vw, 2.5rem);
}

.hero h1 {
  font-size: clamp(1.8rem, 6vw, 2.2rem);
  margin: 0.2rem 0 0.6rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(0.9rem, 3vw, 1.2rem);
}

.button {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.28);
}

.button:hover {
  transform: translateY(-1px);
}

.text-link {
  color: var(--muted);
  font-weight: 600;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  margin: 0.35rem 0 0.4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.lede {
  color: var(--muted);
  margin: 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.post-grid {
  display: grid;
  gap: clamp(0.9rem, 3vw, 1.2rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.post-list .post-card {
  margin-bottom: 1.5rem;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.post-card h2,
.post-card h3 {
  margin: 0.2rem 0 0.4rem;
}

.meta {
  color: var(--muted);
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  margin: 0;
}

.summary {
  color: var(--muted);
  font-size: clamp(0.9rem, 2.4vw, 1rem);
  margin: 0.3rem 0 0.8rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0;
}

.tag {
  background: #e0f2fe;
  color: #075985;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: clamp(0.8rem, 2.2vw, 0.85rem);
  font-weight: 600;
}

.read-more {
  font-weight: 700;
  color: var(--accent);
}

.post h1 {
  margin: 0.3rem 0 0.8rem;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.post-body p {
  margin: 1rem 0;
}

.post-body pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 10px;
  overflow-x: auto;
}

.post-body code {
  background: #e2e8f0;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.thumb {
  margin: 1rem 0;
}

.thumb img {
  width: 100%;
  border-radius: 12px;
}

.post-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: clamp(1.5rem, 4vw, 2rem);
}

.page-link {
  color: var(--accent);
  font-weight: 700;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.page-info {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 641px) {
  .post-nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .post-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}
