:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-soft: #edeae2;
  --text: #171714;
  --muted: #66645d;
  --line: #dedad0;
  --accent: #245c45;
  --accent-strong: #174532;
  --accent-soft: #dce9e1;
  --warm: #f2c86f;
  --shadow: 0 18px 50px rgba(35, 35, 28, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.narrowShell {
  width: min(900px, calc(100% - 40px));
}

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(246, 244, 239, 0.88);
  border-bottom: 1px solid rgba(222, 218, 208, 0.8);
}

.headerInner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brandMark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-size: 14px;
}

.mainNav,
.footerNav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.mainNav a:hover,
.footerNav a:hover,
.textLink:hover {
  color: var(--accent);
}

.hero {
  padding: 88px 0 72px;
  overflow: hidden;
}

.heroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
}

.hero h1,
.pageIntro h1,
.articleHeader h1 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 74px);
  max-width: 850px;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.heroCopy {
  margin: 28px 0 0;
  max-width: 670px;
  color: var(--muted);
  font-size: 19px;
}

.heroActions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primaryButton,
.secondaryButton {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

.primaryButton {
  background: var(--accent);
  color: white;
}

.primaryButton:hover {
  background: var(--accent-strong);
}

.secondaryButton {
  background: var(--surface);
  border: 1px solid var(--line);
}

.heroPanel {
  position: relative;
  padding: 28px;
  border-radius: 30px;
  background: var(--text);
  color: white;
  box-shadow: var(--shadow);
}

.heroPanel::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -45px;
  top: -45px;
  border-radius: 50%;
  background: var(--warm);
  opacity: 0.9;
}

.panelLabel {
  position: relative;
  z-index: 1;
  display: block;
  color: rgba(255,255,255,.65);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
}

.heroSteps {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.heroSteps div {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.13);
}

.heroSteps b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  font-size: 12px;
}

.heroSteps span {
  font-weight: 700;
}

.section {
  padding: 78px 0;
}

.sectionMuted {
  background: var(--surface-soft);
}

.sectionHeading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.sectionHeading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.textLink,
.cardLink {
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
}

.categoryGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.categoryCard {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.categoryCard:hover,
.postCard:hover,
.toolCard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.categoryNumber {
  color: #9b988f;
  font-size: 12px;
  font-weight: 800;
}

.categoryCard h3 {
  margin: 32px 0 10px;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.categoryCard p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.categoryCard .cardLink {
  margin-top: auto;
  padding-top: 24px;
}

.toolFeature {
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 28px;
  background: var(--accent);
  color: white;
}

.toolFeature h3 {
  margin: 10px 0 6px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.toolFeature p {
  margin: 0;
  color: rgba(255,255,255,.75);
}

.toolFeature .primaryButton {
  background: white;
  color: var(--accent);
  flex: 0 0 auto;
}

.toolBadge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.toolFeature .toolBadge {
  background: rgba(255,255,255,.15);
  color: white;
}

.postGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.postCard {
  min-height: 240px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.postCategory {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.postCard h3 {
  margin: 20px 0 10px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.postCard p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.postCard .cardLink {
  margin-top: auto;
  padding-top: 22px;
}

.emptyState {
  padding: 44px;
  text-align: center;
  border: 1px dashed #cfc9bb;
  border-radius: var(--radius);
  color: var(--muted);
}

.emptyState strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  margin-bottom: 4px;
}

.pageIntro {
  margin-bottom: 42px;
}

.pageIntro h1 {
  font-size: clamp(38px, 6vw, 62px);
}

.pageIntro p {
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
  margin: 20px 0 0;
}

.postList {
  display: grid;
  gap: 12px;
}

.postListItem {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.postListItem h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.postListItem p {
  margin: 0;
  color: var(--muted);
}

.toolList {
  display: grid;
  gap: 16px;
}

.toolCard {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.toolCard h2 {
  margin: 10px 0 4px;
  letter-spacing: -0.035em;
}

.toolCard p {
  margin: 0;
  color: var(--muted);
}

.calculatorShell {
  width: min(860px, calc(100% - 40px));
}

.calculatorCard {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 18px;
  padding: 20px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.calculatorInputs {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.calculatorInputs label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.calculatorInputs small {
  color: var(--muted);
  font-weight: 500;
}

.inputWithUnit {
  min-height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf9f6;
}

.inputWithUnit:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(36,92,69,.1);
}

.inputWithUnit input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.inputWithUnit b {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.calculatorResult {
  min-height: 280px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 22px;
  background: var(--text);
  color: white;
}

.calculatorResult > span {
  color: rgba(255,255,255,.65);
  font-size: 13px;
  font-weight: 700;
}

.calculatorResult > strong {
  margin-top: 8px;
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.calculatorResult > p {
  color: rgba(255,255,255,.65);
  margin: 10px 0 0;
}

.simpleCost {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: 13px;
}

.noticeBox {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 18px;
  background: #fff7df;
  border: 1px solid #eadcae;
}

.noticeBox p {
  margin: 5px 0 0;
  color: #6e6345;
}

.articlePage {
  padding: 58px 0 90px;
}

.articleShell {
  width: min(820px, calc(100% - 40px));
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 48px;
}

.articleHeader {
  margin-bottom: 38px;
}

.articleHeader h1 {
  font-size: clamp(40px, 6vw, 66px);
}

.articleExcerpt {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.articleMeta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #858178;
  font-size: 12px;
}

.articleHeroImage {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 26px;
  margin: 0 0 44px;
}

.articleContent {
  font-size: 18px;
  color: #24231f;
}

.articleContent h2 {
  margin: 54px 0 18px;
  font-size: 34px;
  letter-spacing: -0.045em;
  line-height: 1.3;
}

.articleContent h3 {
  margin: 36px 0 14px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.articleContent p {
  margin: 0 0 22px;
}

.articleContent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.articleContent table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
  background: white;
}

.articleContent th,
.articleContent td {
  padding: 13px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.articleContent th {
  background: var(--surface-soft);
}

.articleContent blockquote {
  margin: 30px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.articleContent img {
  border-radius: 18px;
}

.tagRow {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tagRow span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
}

.prosePage {
  width: min(760px, calc(100% - 40px));
}

.prosePage h1 {
  margin: 0 0 24px;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.prosePage h2 {
  margin: 42px 0 14px;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.prosePage p,
.prosePage li {
  color: #4f4c45;
  font-size: 17px;
}

.policyNote {
  margin-top: 40px;
  font-size: 13px !important;
  color: #8a867d !important;
}

.siteFooter {
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

.footerInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footerInner strong {
  font-size: 16px;
}

.footerInner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .heroGrid {
    grid-template-columns: 1fr;
  }

  .heroPanel {
    max-width: 620px;
  }

  .categoryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .postGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell,
  .narrowShell,
  .calculatorShell,
  .articleShell,
  .prosePage {
    width: min(100% - 28px, 1180px);
  }

  .headerInner {
    min-height: 64px;
  }

  .mainNav {
    gap: 14px;
    font-size: 12px;
  }

  .mainNav a:first-child {
    display: none;
  }

  .hero {
    padding: 58px 0 52px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .heroCopy {
    font-size: 17px;
  }

  .section {
    padding: 58px 0;
  }

  .sectionHeading {
    align-items: start;
  }

  .categoryGrid,
  .postGrid,
  .calculatorCard,
  .calculatorInputs {
    grid-template-columns: 1fr;
  }

  .categoryCard {
    min-height: 220px;
  }

  .toolFeature,
  .toolCard,
  .postListItem,
  .footerInner {
    align-items: flex-start;
    flex-direction: column;
  }

  .calculatorResult {
    min-height: 230px;
  }

  .articleContent {
    font-size: 17px;
  }

  .articleContent h2 {
    font-size: 28px;
  }

  .footerNav {
    flex-wrap: wrap;
  }
}
