
:root {
  --text: #222;
  --sub: #777;
  --light: #f7f8f9;
  --line: #e7e7e7;
  --point: #315f52;
  --point-soft: #eef4f1;
  --page: 1060px;
  --article: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard",
               "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button { font: inherit; }

.wrap {
  width: min(var(--page), calc(100% - 36px));
  margin: 0 auto;
}

/* Header */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.topbar-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo span { color: var(--point); }

.topnav {
  display: flex;
  gap: 22px;
  color: #666;
  font-size: 13px;
}

.topnav a:hover { color: var(--point); }

/* Masthead */
.masthead {
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--line);
}

.blog-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.blog-description {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--sub);
  font-size: 14px;
}

/* Featured */
.featured-bar {
  border-bottom: 1px solid var(--line);
  background: #fbfbfb;
}

.featured-inner {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
}

.featured-label {
  color: var(--point);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.featured-links {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.featured-links::-webkit-scrollbar { display: none; }

.featured-links a {
  color: #555;
  font-size: 13px;
}

.featured-links a:hover { color: var(--point); }

/* Home */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 55px;
  padding: 42px 0 100px;
}

.content-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-bottom: 14px;
  border-bottom: 2px solid #333;
}

.content-head h2 {
  margin: 0;
  font-size: 17px;
}

.content-head span {
  color: #999;
  font-size: 12px;
}

.post-item {
  display: block;
  padding: 27px 3px 26px;
  border-bottom: 1px solid var(--line);
}

.post-item:hover .post-title { color: var(--point); }

.post-meta {
  margin-bottom: 8px;
  color: #999;
  font-size: 12px;
}

.post-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.post-desc {
  margin: 8px 0 0;
  color: #777;
  font-size: 14px;
  line-height: 1.65;
}

/* Sidebar */
.sidebar { align-self: start; }

.profile {
  padding: 22px;
  background: var(--light);
  border: 1px solid #ededed;
}

.profile-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 50%;
  background: var(--point);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.profile-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.profile-copy {
  margin: 8px 0 0;
  color: #777;
  font-size: 13px;
  line-height: 1.65;
}

.profile-link {
  display: block;
  margin-top: 16px;
  padding: 9px 10px;
  border: 1px solid #dfe5e2;
  background: #fff;
  text-align: center;
  color: var(--point);
  font-size: 12px;
  font-weight: 700;
}

.sidebar-section { margin-top: 30px; }

.sidebar-title {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
  font-size: 13px;
}

.recommend-item {
  display: block;
  padding: 13px 1px;
  border-bottom: 1px solid #eee;
}

.recommend-item:hover .recommend-title { color: var(--point); }

.recommend-meta {
  margin-bottom: 4px;
  color: #999;
  font-size: 11px;
}

.recommend-title {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

/* Article */
.article-shell {
  width: min(var(--article), calc(100% - 36px));
  margin: 0 auto;
  padding: 60px 0 110px;
}

.article-back {
  display: inline-block;
  margin-bottom: 32px;
  color: #888;
  font-size: 13px;
}

.article-title {
  margin: 0;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.4;
  letter-spacing: -0.045em;
}

.article-meta {
  margin-top: 15px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: #999;
  font-size: 13px;
}

.share-area {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.share-area button {
  padding: 8px 13px;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: #fff;
  color: #555;
  cursor: pointer;
  font-size: 13px;
}

.share-area button:hover {
  border-color: var(--point);
  color: var(--point);
}

.article-body {
  min-height: 420px;
  padding: 56px 0 72px;
  font-size: 17px;
  line-height: 1.95;
  word-break: keep-all;
}

.article-body p {
  margin: 0 0 1.65em;
}

.article-body h2 {
  margin: 2.6em 0 .9em;
  font-size: 23px;
  line-height: 1.5;
  letter-spacing: -0.035em;
}

.article-body h3 {
  margin: 2em 0 .7em;
  font-size: 19px;
  line-height: 1.5;
}

.article-body ol,
.article-body ul {
  margin: 0 0 1.8em;
  padding-left: 1.4em;
}

.article-body li {
  margin-bottom: .55em;
}

.article-body strong {
  font-weight: 700;
}

.story-box,
.service-box {
  margin: 34px 0;
  padding: 22px 23px;
  border: 1px solid #e2e7e4;
  background: #fafcfb;
  border-radius: 8px;
}

.story-box {
  border-left: 4px solid #8aa59c;
}

.service-box {
  background: var(--point-soft);
  border-color: #d9e6e1;
}

.story-box p:last-child,
.service-box p:last-child {
  margin-bottom: 0;
}

.service-box h3 {
  margin-top: 0;
  color: var(--point);
  font-size: 18px;
}

.cta-button {
  display: inline-block;
  margin-top: 8px;
  padding: 11px 17px;
  border-radius: 7px;
  background: var(--point);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.cta-button:hover { opacity: .9; }

.article-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-bottom a {
  color: var(--point);
  font-size: 13px;
  font-weight: 700;
}

/* Footer */
.footer {
  padding: 34px 0 45px;
  border-top: 1px solid var(--line);
  color: #999;
  font-size: 12px;
}

@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .sidebar {
    border-top: 1px solid var(--line);
    padding-top: 30px;
  }

  .profile { max-width: 500px; }

  .featured-inner {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
  }

  .featured-links { gap: 22px; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, var(--page)); }

  .topbar-inner { min-height: 54px; }

  .topnav { gap: 14px; }

  .masthead { padding: 34px 0 28px; }

  .blog-title { font-size: 23px; }

  .layout { padding-top: 28px; }

  .post-item { padding: 23px 1px; }

  .post-title { font-size: 18px; }

  .article-shell {
    width: min(100% - 28px, var(--article));
    padding-top: 42px;
  }

  .article-title {
    font-size: clamp(28px, 9vw, 38px);
  }

  .article-body {
    padding-top: 44px;
    font-size: 16px;
  }

  .article-body h2 { font-size: 21px; }

  .story-box,
  .service-box {
    padding: 19px 18px;
  }
}
