:root {
  --ink: #20242c;
  --muted: #666d78;
  --soft: #f7f5f2;
  --panel: #ffffff;
  --line: #dedbd6;
  --sage: #7f9a8b;
  --blue: #6688a7;
  --rose: #d8a8a1;
  --charcoal: #2d3238;
  --shadow: 0 18px 48px rgba(34, 39, 46, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 36px;
  background: rgba(247, 245, 242, 0.9);
  border-bottom: 1px solid rgba(222, 219, 214, 0.76);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--charcoal);
  border-radius: 50%;
  font-family: "Noto Serif KR", serif;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.nav-links a:hover,
.site-footer a:hover { color: var(--blue); }
.header-action {
  padding: 11px 16px;
  color: #fff;
  background: var(--charcoal);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247,245,242,.94) 0%, rgba(247,245,242,.76) 44%, rgba(247,245,242,.12) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  margin: 0 0 9vh 7vw;
  padding-top: 98px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3, p { letter-spacing: 0; }
h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(46px, 7vw, 84px);
  line-height: .98;
}
h2 {
  margin: 0;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
}
h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.28;
}
p {
  color: var(--muted);
  line-height: 1.75;
}
.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: #39404a;
  font-size: 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
}
.button.primary { color: #fff; background: var(--charcoal); }
.button.secondary {
  color: var(--ink);
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(32,36,44,.14);
}
.notice-band {
  padding: 17px 7vw;
  background: #ece8e1;
  border-block: 1px solid var(--line);
}
.notice-band p {
  max-width: 1100px;
  margin: 0 auto;
  color: #4a4f58;
  font-size: 14px;
}

.section { padding: 92px 7vw; }
.intro-section,
.growth-section,
.content-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.intro-copy { display: grid; gap: 18px; }
.intro-copy p { margin: 0; font-size: 17px; }
.section-heading { max-width: 820px; margin-bottom: 34px; }
.section-heading.compact { max-width: 720px; }

.guide-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.guide-card,
.article-card,
.info-card,
.article-body,
.toc-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.guide-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
}
.guide-card.large {
  grid-column: span 2;
  background: #f0f4f1;
}
.card-kicker {
  width: max-content;
  padding: 6px 10px;
  color: #475748;
  background: rgba(127,154,139,.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.guide-card p { margin: 0; }
.guide-card span,
.article-card span { margin-top: auto; color: var(--blue); font-weight: 800; }

.latest-section { background: #fbfaf7; }
.article-grid { grid-template-columns: repeat(5, 1fr); }
.article-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article-card p {
  margin: 0;
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.toolkit-section { background: #f1efe9; }
.toolkit-table {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.toolkit-row {
  display: grid;
  grid-template-columns: .8fr 1.35fr 1fr;
  gap: 18px;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}
.toolkit-row:first-child { border-top: 0; }
.toolkit-row.header { color: #fff; background: var(--charcoal); font-weight: 800; }
.toolkit-row:not(.header) span { color: var(--muted); line-height: 1.45; }
.toolkit-row:not(.header) span:first-child { color: var(--ink); font-weight: 800; }

.newsletter-section {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 48px;
  align-items: center;
  margin: 0 7vw 96px;
  padding: 44px;
  color: #fff;
  background: var(--charcoal);
  border-radius: 8px;
}
.newsletter-section h2,
.newsletter-section p,
.newsletter-section .eyebrow { color: #fff; }
.newsletter-section p { opacity: .82; }
.newsletter-form { display: grid; gap: 12px; }
.newsletter-form label { font-size: 13px; font-weight: 800; }
.newsletter-form div { display: grid; grid-template-columns: 1fr 96px; gap: 10px; }
.newsletter-form input,
.newsletter-form button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  font: inherit;
}
.newsletter-form input { min-width: 0; padding: 0 16px; }
.newsletter-form button {
  color: var(--ink);
  background: #f4d7cf;
  font-weight: 900;
  cursor: pointer;
}
.form-note { margin: 0; font-size: 13px; }

.page-hero {
  padding: 92px 7vw 54px;
  background: #fbfaf7;
  border-bottom: 1px solid var(--line);
}
.page-hero .kicker { margin-bottom: 14px; }
.page-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  max-width: 920px;
}
.page-hero p {
  max-width: 760px;
  font-size: 18px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.info-card { padding: 26px; }
.info-card p { margin-bottom: 0; }

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  gap: 32px;
  align-items: start;
  padding: 54px 7vw 96px;
}
.article-body {
  padding: 38px;
}
.article-body .meta {
  margin: 0 0 26px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.article-body h2 {
  margin-top: 42px;
  font-size: clamp(28px, 3vw, 38px);
}
.article-body h3 { margin-top: 28px; }
.article-body p,
.article-body li { color: var(--muted); line-height: 1.8; }
.article-body a { color: var(--blue); font-weight: 800; }
.article-body ul,
.article-body ol { padding-left: 22px; }
.callout {
  margin: 28px 0;
  padding: 20px;
  background: #f0f4f1;
  border: 1px solid #d8e1d9;
  border-radius: 8px;
}
.toc-card {
  position: sticky;
  top: 94px;
  padding: 22px;
}
.toc-card p {
  margin-top: 0;
  color: var(--ink);
  font-weight: 900;
}
.toc-card a {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 7vw;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 0; font-size: 14px; }
.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-grid,
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .article-shell { grid-template-columns: 1fr; }
  .toc-card { position: static; }
}
@media (max-width: 900px) {
  .site-header { padding: 0 22px; }
  .nav-links { display: none; }
  .intro-section,
  .growth-section,
  .content-layout,
  .newsletter-section { grid-template-columns: 1fr; }
  .toolkit-row { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 640px) {
  .site-header { min-height: 64px; padding: 0 16px; }
  .header-action { display: none; }
  .hero { min-height: 760px; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(247,245,242,.88) 0%, rgba(247,245,242,.92) 62%, rgba(247,245,242,.98) 100%);
  }
  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px 42px;
  }
  h1 { font-size: 46px; }
  .section,
  .page-hero,
  .article-shell { padding-left: 20px; padding-right: 20px; }
  .guide-grid,
  .article-grid,
  .category-grid { grid-template-columns: 1fr; }
  .guide-card.large { grid-column: span 1; }
  .newsletter-section { margin: 0 20px 70px; padding: 28px; }
  .newsletter-form div { grid-template-columns: 1fr; }
  .article-body { padding: 26px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
