/* campaigns.ktown.team */

:root {
  --navy: #070A61;
  --bg: #FAFAFA;
  --text: #070A61;
  --text-light: #8A8DB5;
  --border: #E8E8EE;
  --card-bg: #FFFFFF;
  --blue: #0075F2;
  --golden: #FDB322;
}

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

html { font-size: 18px; }

body {
  font-family: 'Sofia Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.site-logo {
  font-family: 'Cubano', sans-serif;
  font-size: 1rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.site-logo span { font-weight: 400; }

.header-links { display: flex; gap: 0.75rem; }
.header-links a {
  color: var(--text-light);
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.15s;
}
.header-links a:hover { color: var(--text); border-color: var(--text-light); }

/* Main */
main {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Hero */
.hero-section {
  margin-bottom: 2.5rem;
}
.hero-section h1 {
  font-family: 'Cubano', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Portfolio grid */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.campaign-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.campaign-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(0,117,242,0.08);
}
.campaign-card.archived { opacity: 0.7; }
.campaign-card.archived:hover { opacity: 0.9; }

.campaign-card h3 {
  font-family: 'Cubano', sans-serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.card-desc {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.card-goal {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 0.75rem;
}

.card-convener {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* Phase badges */
.phase-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
  width: fit-content;
}
.phase-badge.active {
  background: #E8F5E9;
  color: #2E7D32;
}
.phase-badge.launching {
  background: #FFF8E1;
  color: #F57F17;
}
.phase-badge.archived {
  background: #F0F0F5;
  color: #8A8DB5;
}

/* Archive link */
.archive-link {
  margin-top: 2rem;
  text-align: center;
}
.archive-link a {
  font-size: 0.82rem;
  color: var(--text-light);
  transition: color 0.15s;
}
.archive-link a:hover { color: var(--blue); }

/* Campaign detail */
.campaign-detail {
  max-width: 700px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  transition: color 0.15s;
}
.back-link:hover { color: var(--navy); }

.detail-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.detail-header h1 {
  font-family: 'Cubano', sans-serif;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.detail-desc {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.detail-goal {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.meta-item {
  font-size: 0.75rem;
  color: var(--text-light);
}
.meta-item strong {
  color: var(--text);
}

.product-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--blue);
  border-radius: 6px;
  transition: all 0.15s;
}
.product-link:hover {
  background: var(--blue);
  color: white;
}

/* Content typography */
.content h1 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.6rem;
  color: var(--navy);
}
.content h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 2.25rem 0 0.6rem;
  color: var(--navy);
}
.content h3 {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 1.5rem 0 0.4rem;
  color: var(--text);
}
.content p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #1a1d40;
}
.content > p:first-child {
  font-size: 1rem;
  line-height: 1.8;
}
.content ul {
  margin: 0.5rem 0 1.25rem 1.25rem;
  font-size: 0.9rem;
}
.content li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}
.content strong { font-weight: 700; }
.content em { font-style: italic; }
.content pre {
  background: #F0F0F5;
  padding: 1rem;
  border-radius: 5px;
  font-size: 0.8rem;
  overflow-x: auto;
  margin: 0.75rem 0;
  line-height: 1.5;
  font-family: 'SF Mono', Consolas, monospace;
}
.content a {
  color: var(--blue);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: var(--text-light);
  font-size: 0.75rem;
}
.footer-links a:hover { color: var(--text); }
.site-footer p {
  font-size: 0.7rem;
  color: var(--text-light);
}
.site-footer p a { color: var(--text-light); }

/* Mobile */
@media (max-width: 600px) {
  .site-header { padding: 0.5rem 1rem; }
  main { padding: 1.5rem 1rem 2rem; }
  .hero-section h1 { font-size: 1.5rem; }
  .campaign-grid { grid-template-columns: 1fr; }
  .detail-header h1 { font-size: 1.5rem; }
  .detail-meta { flex-direction: column; gap: 0.5rem; }
}
