:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --text: #1a2233;
  --muted: #5b6478;
  --accent: #0b6e4f;
  --accent-dark: #084f39;
  --accent-soft: #e6f2ec;
  --border: #e3e7ee;
  --shadow: 0 2px 12px rgba(15, 30, 60, 0.06);
  --radius: 12px;
  --max: 1100px;
}

* { box-sizing: border-box; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

img { max-width: 100%; display: block; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: var(--text);
}
.brand .logo {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: transparent;
}
.brand .logo img { width: 100%; height: 100%; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14.5px;
}
.nav-links a:hover { background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; }
.nav-links a.active { background: var(--accent-soft); color: var(--accent-dark); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .nav-links {
    position: absolute;
    top: 60px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    box-shadow: var(--shadow);
    min-width: 180px;
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0b6e4f 0%, #0e8a63 50%, #1aa67c 100%);
  color: #fff;
  padding: 84px 20px 96px;
  text-align: center;
  overflow: hidden;
}
.hero-logo {
  display: block;
  margin: 6px auto 18px;
  width: min(420px, 80%);
  height: auto;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero h1 {
  font-size: 44px;
  margin: 0 0 14px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.hero .subtitle {
  font-size: 18px;
  opacity: 0.92;
  margin: 0 0 24px;
}
.hero .ko {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 18px;
}
.cta {
  display: inline-block;
  background: #fff;
  color: var(--accent-dark);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  margin-top: 8px;
}
.cta:hover { background: #f0f5f3; text-decoration: none; }
.cta-filled {
  background: var(--accent);
  color: #fff;
}
.cta-filled:hover { background: var(--accent-dark); color: #fff; }

/* Page header (non-home) */
.page-header {
  background: var(--bg-alt);
  padding: 56px 20px 40px;
  border-bottom: 1px solid var(--border);
}
.page-header-inner { max-width: var(--max); margin: 0 auto; }
.page-header h1 {
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: -0.3px;
}
.page-header p { margin: 0; color: var(--muted); font-size: 16px; }

/* Containers */
.container { max-width: var(--max); margin: 0 auto; padding: 64px 20px 80px; }
.section { padding: 32px 0; }
.section + .section { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.section h2 {
  font-size: 26px;
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}
.section .lead { color: var(--muted); margin: 0 0 28px; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,30,60,0.08); }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Year navigation */
.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.year-nav a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  background: #fff;
}
.year-nav a:hover { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent-soft); text-decoration: none; }

/* Year sections */
.year-block { margin-bottom: 48px; scroll-margin-top: 80px; }
.year-block h2 {
  font-size: 24px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  display: inline-block;
  margin: 0 0 18px;
}

/* Publication entry */
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.pub-item .title {
  font-weight: 700;
  font-size: 16.5px;
  margin: 0 0 6px;
  color: var(--text);
}
.pub-item .authors { color: var(--text); font-size: 14.5px; margin: 0 0 4px; }
.pub-item .authors .me { color: var(--accent-dark); font-weight: 600; }
.pub-item .venue {
  display: inline-block;
  font-size: 13px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 4px;
  margin-right: 6px;
}
.pub-item .badge {
  display: inline-block;
  font-size: 12px;
  background: #fef3c7;
  color: #92400e;
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 4px;
  font-weight: 600;
}
.pub-item .links { margin-top: 8px; font-size: 14px; }
.pub-item .links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Members grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.member-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.member-card .avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: var(--accent-soft);
  background-size: cover;
  background-position: center;
  border: 3px solid var(--accent-soft);
}
.member-card h3 { margin: 0 0 4px; font-size: 18px; }
.member-card .role { color: var(--muted); font-size: 14px; margin: 0; }
.member-card .role span { display: block; }

/* Group heading */
.group-heading {
  font-size: 22px;
  margin: 48px 0 22px;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}
.group-heading:first-child { margin-top: 0; }

/* Timeline (presentations) */
.timeline {
  position: relative;
  padding-left: 26px;
  border-left: 2px solid var(--border);
}
.timeline-item {
  position: relative;
  padding: 0 0 22px 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item .date {
  font-size: 13px;
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.timeline-item .title {
  font-weight: 600;
  font-size: 16px;
  margin: 4px 0;
}
.timeline-item .desc {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}

/* Gathering cards */
.gathering-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.gathering-card h3 { margin: 0 0 6px; font-size: 18px; }
.gathering-card .date { color: var(--accent-dark); font-weight: 600; font-size: 14px; }

/* Partners */
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  align-items: center;
}
.partner-badge {
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
}
.partner-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 18px;
  max-width: 820px;
}
.partner-logos .partner {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 140px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.partner-logos .partner:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,30,60,0.08); }
.partner-logos .partner img {
  max-width: 150px;
  max-height: 70px;
  object-fit: contain;
}
.partner-logos .partner span {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}

/* Gathering image */
.gathering-card .photo {
  width: 100%;
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin-bottom: 14px;
  background-color: var(--bg-alt);
}

/* Footer */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 36px 20px;
  margin-top: 60px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.footer .email {
  font-weight: 600;
  color: var(--accent-dark);
}
.footer a { color: var(--accent-dark); }

@media (max-width: 600px) {
  .hero { padding: 56px 18px 60px; }
  .hero h1 { font-size: 32px; }
  .page-header h1 { font-size: 26px; }
}

/* Insights / blog */
.post-list {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,30,60,0.08); }
.post-card a { color: inherit; text-decoration: none; display: block; }
.post-card a:hover { text-decoration: none; color: inherit; }
.post-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}
.post-card .meta .tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}
.post-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  letter-spacing: -0.2px;
  color: var(--text);
}
.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.post-card .read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 14px;
}

.empty-note {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--muted);
  font-size: 14.5px;
  background: var(--bg-alt);
  text-align: center;
}

/* Article (single post) */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}
.article-header { margin-bottom: 32px; }
.article-header .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}
.article-header .tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}
.article-header h1 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
}
.article-header .deck {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}
.article-body {
  font-size: 16.5px;
  line-height: 1.75;
  color: #2a3346;
}
.article-body h2 {
  font-size: 22px;
  margin: 36px 0 12px;
  letter-spacing: -0.2px;
}
.article-body h3 {
  font-size: 18px;
  margin: 28px 0 10px;
}
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 16px; }
.article-body li { margin: 6px 0; }
.article-body strong { color: var(--text); }
.article-body blockquote {
  margin: 20px 0;
  padding: 12px 20px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  color: var(--text);
  font-style: italic;
}
.article-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
.article-body a { color: var(--accent-dark); text-decoration: underline; }
.article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14.5px;
}
.article-footer a { font-weight: 600; }
