
:root {
  --primary: #6B4FD3;
  --primary-dark: #4E35A8;
  --primary-light: #F3EEFF;
  --obang-blue: #5B7BD5;
  --obang-red: #E06A7A;
  --obang-yellow: #E2B23C;
  --bg: #FCFBF9;
  --bg-soft: #F5F2FA;
  --surface: #FFFFFF;
  --line: #DED9E6;
  --text: #2A2730;
  --text-soft: #675F73;
  --shadow: 0 18px 44px rgba(59, 39, 112, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
  --content-width: 760px;
  --sidebar-width: 320px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(91, 123, 213, 0.08), transparent 22%),
    radial-gradient(circle at top left, rgba(224, 106, 122, 0.08), transparent 20%),
    radial-gradient(circle at 60% 10%, rgba(226, 178, 60, 0.08), transparent 18%),
    var(--bg);
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.72;
  word-break: keep-all;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.section { padding: 88px 0; }
.section-soft {
  background: linear-gradient(180deg, rgba(243, 238, 255, 0.58), rgba(255, 255, 255, 0.7));
}
.section-content { padding-top: 42px; }

.section-heading { max-width: 860px; margin-bottom: 28px; }
.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.26;
  letter-spacing: -0.03em;
}
.section-heading p { margin: 0; color: var(--text-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 800;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--obang-red), var(--obang-yellow), var(--obang-blue));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(252, 251, 249, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-color: rgba(107, 79, 211, 0.12);
  box-shadow: 0 8px 28px rgba(35, 33, 39, 0.05);
}
.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand-logo { width: 280px; max-width: 48vw; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--text-soft); font-size: 0.96rem; font-weight: 700; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--primary); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero { padding-top: 68px; }
.hero-grid, .impact-layout, .grid-2, .grid-3, .content-shell, .contact-box {
  display: grid;
  gap: 22px;
}
.hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.hero-text {
  margin: 0;
  max-width: 720px;
  color: var(--text-soft);
  font-size: 1.05rem;
}
.hero-actions, .hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-actions { margin-top: 28px; }
.hero-badges { margin-top: 22px; }

.hero-panel, .info-card, .work-card, .impact-card, .report-card, .post-card, .entry-card, .side-card, .contact-box {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}
.hero-panel { padding: 28px; }
.hero-logo { width: 240px; margin: 0 auto 18px; }

.summary-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(107, 79, 211, 0.05), rgba(107, 79, 211, 0.02));
  border: 1px solid rgba(107, 79, 211, 0.10);
}
.summary-card + .summary-card { margin-top: 12px; }
.summary-card strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.summary-card p { margin: 0; color: var(--text-soft); }

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.info-card, .work-card, .impact-card, .report-card, .side-card { padding: 26px; }
.info-card h3, .work-card h3 { margin: 0 0 10px; font-size: 1.32rem; }
.info-card p, .work-card p, .impact-card p, .report-card p, .side-card p { margin: 0; color: var(--text-soft); }

.work-card {
  position: relative;
  overflow: hidden;
}
.work-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
}
.tone-yellow::before { background: var(--obang-yellow); }
.tone-red::before { background: var(--obang-red); }
.tone-blue::before { background: var(--obang-blue); }

.work-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 34px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.tone-yellow .work-card__num { background: rgba(226, 178, 60, 0.18); color: #8f6b0d; }
.tone-red .work-card__num { background: rgba(224, 106, 122, 0.14); color: var(--obang-red); }
.tone-blue .work-card__num { background: rgba(91, 123, 213, 0.14); color: var(--obang-blue); }

.tag-area { display: flex; flex-wrap: wrap; gap: 10px; }
.tag, .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
}
.tag {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-soft);
}
.chip-purple { background: rgba(107, 79, 211, 0.10); color: var(--primary); }
.chip-red { background: rgba(224, 106, 122, 0.12); color: var(--obang-red); }
.chip-yellow { background: rgba(226, 178, 60, 0.18); color: #8f6b0d; }
.chip-blue { background: rgba(91, 123, 213, 0.12); color: var(--obang-blue); }

.impact-layout { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
.impact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.impact-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1;
  color: var(--primary);
}
.impact-card span { display: block; margin-bottom: 6px; font-weight: 800; }
.report-card h3 { margin-top: 0; }
.report-card ul { margin: 0; padding-left: 18px; color: var(--text-soft); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.post-card { overflow: hidden; }
.post-card__link { display: block; height: 100%; }
.post-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(107,79,211,0.12), rgba(91,123,213,0.12));
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card__body { padding: 22px; }
.post-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 0.88rem;
}
.post-card__category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}
.post-card h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
  line-height: 1.45;
}
.post-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.97rem;
}

.paging {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}
.paging__numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.paging__btn, .paging__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-weight: 700;
}
.paging__btn:hover, .paging__num:hover { color: var(--primary); border-color: rgba(107,79,211,0.2); }

.content-shell {
  grid-template-columns: minmax(0, var(--content-width)) minmax(280px, var(--sidebar-width));
  align-items: start;
}
.entry-card {
  padding: 34px;
}
.entry-card + .entry-card {
  margin-top: 24px;
}
.entry-card--notice {
  background: linear-gradient(180deg, rgba(243,238,255,0.7), rgba(255,255,255,0.95));
}
.entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.entry-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.entry-badge, .entry-category {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}
.entry-badge {
  background: rgba(224,106,122,0.12);
  color: var(--obang-red);
}
.entry-category {
  background: var(--primary-light);
  color: var(--primary);
}
.entry-title {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.entry-title a:hover { color: var(--primary); }
.entry-thumb {
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.entry-thumb img { width: 100%; }
.entry-body {
  color: var(--text);
  font-size: 1rem;
}
.entry-body img { border-radius: 18px; }
.entry-body a { color: var(--primary); text-decoration: underline; }
.entry-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  background: rgba(243,238,255,0.55);
  border-radius: 0 18px 18px 0;
}
.entry-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.entry-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  margin: 0 8px 8px 0;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-soft);
}
.entry-related {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.entry-related h3, .entry-comments h3 { margin-top: 0; }
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-list li + li { margin-top: 10px; }
.related-list a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.related-list a:hover { border-color: rgba(107,79,211,0.2); }

.entry-comments {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.side-card + .side-card { margin-top: 18px; }
.side-card h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}
.search-form {
  display: flex;
  gap: 8px;
}
.search-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.search-form button {
  min-width: 74px;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
.category-tree ul,
.sidebar-module ul {
  padding-left: 18px;
  margin: 0;
}
.category-tree li,
.sidebar-module li {
  margin: 8px 0;
}
.category-tree a,
.sidebar-module a { color: var(--text-soft); }
.category-tree a:hover,
.sidebar-module a:hover { color: var(--primary); }

.contact-box {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 32px;
}
.contact-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.25;
}
.contact-copy p { margin: 0; color: var(--text-soft); }
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: var(--shadow); }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--text); }

.site-footer {
  padding: 40px 0 58px;
  background: #fff;
  border-top: 1px solid rgba(107, 79, 211, 0.12);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-inner p, .footer-meta { margin: 6px 0 0; color: var(--text-soft); }

.no-more-prev,
.no-more-next,
.no-more-prev:hover,
.no-more-next:hover {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-shell,
  .hero-grid,
  .impact-layout,
  .grid-2,
  .grid-3,
  .contact-box {
    grid-template-columns: 1fr;
  }
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
}

@media (max-width: 820px) {
  .section { padding: 74px 0; }
  .header-inner { min-height: 74px; }
  .brand-logo { width: 230px; max-width: 56vw; }

  .nav-toggle { display: inline-block; position: relative; z-index: 70; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 16px; border-radius: 14px; }
  .site-nav a:hover, .site-nav a:focus-visible { background: var(--bg-soft); }
}

@media (max-width: 640px) {
  .container { width: min(var(--max-width), calc(100% - 24px)); }
  .hero { padding-top: 32px; }
  .hero-copy h1 { font-size: 2.3rem; }
  .hero-actions, .contact-actions { flex-direction: column; }
  .btn { width: 100%; }
  .post-grid, .impact-grid { grid-template-columns: 1fr; }
  .entry-card { padding: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
