/* ── Iris Tech Blog — Pink Natural Theme ── */
:root {
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-500: #737373;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.8;
  font-size: 16px;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--pink-200);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(253, 242, 248, 0.92);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pink-600);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-iris { font-size: 1.5rem; }

.site-nav {
  display: flex;
  gap: 18px;
}

.site-nav a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--pink-500); }

/* ── Main ── */
main { padding: 48px 0; }

/* ── Hero (Home) ── */
.hero {
  text-align: center;
  padding: 32px 0 48px;
}

.hero h1 {
  font-size: 2rem;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.hero-desc {
  color: var(--gray-500);
  font-size: 1.05rem;
}

/* ── Home Sections ── */
.home-section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 1.2rem;
  color: var(--gray-900);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pink-200);
}

.more-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--pink-500);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.more-link:hover { text-decoration: underline; }

/* ── Post List ── */
.post-list { list-style: none; }

.post-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}

.post-item:last-child { border-bottom: none; }

.post-item h2, .post-item h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.post-item h2 a, .post-item h3 a {
  color: var(--gray-900);
  text-decoration: none;
  transition: color 0.2s;
}

.post-item h2 a:hover, .post-item h3 a:hover { color: var(--pink-500); }

.post-item .post-meta {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.post-item .excerpt {
  color: var(--gray-700);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ── Tags ── */
.post-tags { margin-left: 12px; }

.tag {
  display: inline-block;
  background: var(--pink-100);
  color: var(--pink-600);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.73rem;
  font-weight: 500;
  margin: 2px 2px;
}

/* ── Card Grid (Projects, Resources) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  display: block;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--pink-300);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.1);
}

.card h3 {
  font-size: 1.05rem;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.card-tags { margin-top: 10px; }

/* ── Status Badge ── */
.status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.73rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.status-active { background: #dcfce7; color: #16a34a; }
.status-completed { background: #dbeafe; color: #2563eb; }
.status-paused { background: #fef3c7; color: #d97706; }

/* ── Single Post ── */
.post-header {
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pink-200);
}

.post-title {
  font-size: 1.7rem;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 12px;
}

.post-content {
  font-size: 1rem;
  line-height: 1.9;
}

.post-content h2 {
  font-size: 1.3rem;
  color: var(--gray-900);
  margin: 40px 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--pink-400);
}

.post-content h3 {
  font-size: 1.1rem;
  color: var(--gray-800);
  margin: 28px 0 12px;
}

.post-content p { margin-bottom: 16px; }

.post-content ul, .post-content ol {
  margin: 12px 0 16px 24px;
}

.post-content li { margin-bottom: 6px; }

.post-content code {
  background: var(--pink-50);
  border: 1px solid var(--pink-200);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  color: var(--pink-600);
}

.post-content pre {
  background: var(--gray-900);
  color: #e5e5e5;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 0.86rem;
  line-height: 1.6;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.post-content blockquote {
  border-left: 4px solid var(--pink-300);
  background: var(--pink-50);
  padding: 12px 20px;
  margin: 16px 0;
  color: var(--gray-700);
  border-radius: 0 8px 8px 0;
}

.post-content a {
  color: var(--pink-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content a:hover { color: var(--pink-600); }

.post-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

.post-content th, .post-content td {
  border: 1px solid var(--gray-200);
  padding: 8px 12px;
  text-align: left;
}

.post-content th {
  background: var(--pink-50);
  font-weight: 600;
}

/* ── Post Nav ── */
.post-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.post-nav {
  color: var(--pink-500);
  text-decoration: none;
  font-size: 0.9rem;
}

.post-nav:hover { text-decoration: underline; }

/* ── About / Archive / Page ── */
.page-content h1 {
  font-size: 1.6rem;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.archive-year {
  font-size: 1.2rem;
  color: var(--pink-500);
  margin: 28px 0 12px;
  font-weight: 700;
}

.archive-item {
  padding: 8px 0;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.archive-item time {
  color: var(--gray-500);
  font-size: 0.85rem;
  min-width: 90px;
}

.archive-item a {
  color: var(--gray-800);
  text-decoration: none;
}

.archive-item a:hover { color: var(--pink-500); }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 32px 0;
  color: var(--gray-500);
  font-size: 0.85rem;
  border-top: 1px solid var(--gray-200);
}

.site-footer a { color: var(--pink-400); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.iris-credit {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--gray-300);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-header .container {
    flex-direction: column;
    gap: 10px;
  }
  .site-nav { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 1.5rem; }
  .post-title { font-size: 1.3rem; }
  .container { padding: 0 16px; }
  .card-grid { grid-template-columns: 1fr; }
}
