:root {
  --bg: #f5efe3;
  --surface: rgba(255, 252, 245, 0.82);
  --surface-strong: #fffaf0;
  --ink: #1b1814;
  --muted: #645c53;
  --line: rgba(27, 24, 20, 0.12);
  --accent: #d96b2b;
  --accent-dark: #b24f18;
  --highlight: #204f46;
  --shadow: 0 18px 40px rgba(60, 43, 24, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans KR", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(217, 107, 43, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(32, 79, 70, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f2e9, #efe3d1 68%, #ebdfd1);
  line-height: 1.6;
}

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

.site-header,
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.inner-header {
  padding-bottom: 0;
}

.site-header {
  padding: 24px 0 12px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
  padding: 44px 0 24px;
}

.hero-copy,
.hero-panel,
.card,
.tool-card,
.article-card,
.roadmap-step,
.ad-slot {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
}

.hero-panel {
  padding: 28px;
  align-self: end;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.3rem, 4vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  max-width: 12ch;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-text,
.card p,
.tool-card p,
.article-card p,
.roadmap-step p,
.hero-panel li {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
}

.button-primary {
  background: var(--accent);
  color: #fff9f2;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.hero-panel ul {
  margin: 0;
  padding-left: 18px;
}

.section {
  padding: 34px 0;
}

.section-accent {
  padding: 38px 28px;
  border-radius: 32px;
  background: rgba(32, 79, 70, 0.08);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.card-grid,
.tool-grid,
.article-list,
.roadmap {
  display: grid;
  gap: 18px;
}

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

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

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

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

.card,
.tool-card,
.article-card,
.roadmap-step {
  padding: 24px;
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background-size: cover;
}

.thumb-jeonip {
  background:
    linear-gradient(135deg, rgba(32, 79, 70, 0.55), rgba(217, 107, 43, 0.2)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.55), transparent 18%),
    linear-gradient(120deg, #29483f, #d48b54);
}

.thumb-hwakjeong {
  background:
    linear-gradient(135deg, rgba(93, 46, 20, 0.45), rgba(255, 230, 208, 0.2)),
    radial-gradient(circle at 70% 24%, rgba(255, 255, 255, 0.5), transparent 15%),
    linear-gradient(120deg, #6e4e39, #e8b97a);
}

.thumb-contract {
  background:
    linear-gradient(135deg, rgba(39, 47, 84, 0.5), rgba(164, 191, 228, 0.22)),
    linear-gradient(120deg, #334160, #c7d7f1);
}

.thumb-gwanribi {
  background:
    linear-gradient(135deg, rgba(30, 74, 70, 0.46), rgba(194, 230, 218, 0.2)),
    linear-gradient(120deg, #24534a, #8fc8b7);
}

.thumb-budget {
  background:
    linear-gradient(135deg, rgba(120, 68, 21, 0.42), rgba(255, 214, 153, 0.24)),
    linear-gradient(120deg, #9b6b2d, #f2c67b);
}

.thumb-checklist {
  background:
    linear-gradient(135deg, rgba(24, 58, 99, 0.44), rgba(191, 218, 255, 0.22)),
    linear-gradient(120deg, #2b4f77, #a1c5f2);
}

.thumb-internet {
  background:
    linear-gradient(135deg, rgba(63, 39, 108, 0.42), rgba(207, 198, 255, 0.22)),
    linear-gradient(120deg, #4d3d8b, #b7b2f0);
}

.thumb-cooling {
  background:
    linear-gradient(135deg, rgba(28, 93, 114, 0.48), rgba(204, 241, 255, 0.22)),
    linear-gradient(120deg, #22677b, #a9e4f0);
}

.thumb-heating {
  background:
    linear-gradient(135deg, rgba(137, 53, 21, 0.48), rgba(255, 213, 197, 0.22)),
    linear-gradient(120deg, #9b4f2e, #f0ad8b);
}

.thumb-mold {
  background:
    linear-gradient(135deg, rgba(39, 78, 47, 0.46), rgba(210, 234, 203, 0.2)),
    linear-gradient(120deg, #386a41, #b2d7ab);
}

.thumb-bug {
  background:
    linear-gradient(135deg, rgba(79, 47, 18, 0.48), rgba(242, 223, 174, 0.2)),
    linear-gradient(120deg, #6a4d2d, #d7bd7e);
}

.thumb-moving {
  background:
    linear-gradient(135deg, rgba(60, 55, 101, 0.46), rgba(219, 210, 255, 0.22)),
    linear-gradient(120deg, #514887, #c1b8f2);
}

.thumb-deposit {
  background:
    linear-gradient(135deg, rgba(72, 53, 24, 0.48), rgba(241, 221, 190, 0.2)),
    linear-gradient(120deg, #75542c, #e1bf95);
}

.thumb-food {
  background:
    linear-gradient(135deg, rgba(88, 70, 17, 0.44), rgba(255, 235, 177, 0.22)),
    linear-gradient(120deg, #85702b, #efd989);
}

.thumb-security {
  background:
    linear-gradient(135deg, rgba(44, 50, 77, 0.5), rgba(197, 211, 255, 0.22)),
    linear-gradient(120deg, #39415f, #aebfe7);
}

.card-meta {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tool-card span,
.roadmap-step span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--highlight);
  font-weight: 700;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 132px;
  color: var(--muted);
  text-align: center;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(217, 107, 43, 0.06), rgba(32, 79, 70, 0.05)),
    rgba(255, 252, 245, 0.82);
}

.ad-slot-wide {
  min-height: 160px;
  margin: 12px 0 8px;
}

.ad-slot-pending {
  border-style: dashed;
}

.ad-slot-live {
  padding: 0;
  background: transparent;
}

.adsbygoogle {
  width: 100%;
  min-height: 100px;
}

.ad-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px 0;
}

.article-shell,
.category-shell {
  padding-bottom: 40px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) 320px;
  gap: 22px;
  align-items: start;
}

.article-main,
.article-sidebar,
.category-hero {
  display: grid;
  gap: 18px;
}

.article-hero,
.toc-box,
.content-block,
.sidebar-card,
.note-box,
.feed-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-hero,
.toc-box,
.content-block,
.sidebar-card,
.feed-card {
  padding: 28px;
}

.article-lead,
.meta-row,
.toc-box ol,
.content-list,
.sidebar-card li,
.feed-card p {
  color: var(--muted);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.95rem;
}

.toc-box ol,
.content-list {
  padding-left: 20px;
  margin-bottom: 0;
}

.content-list.ordered {
  list-style: decimal;
}

.ad-slot-inline {
  min-height: 118px;
}

.note-box {
  padding: 18px 20px;
  margin-top: 18px;
  background: rgba(32, 79, 70, 0.07);
}

.sidebar-card ul {
  margin: 0;
  padding-left: 18px;
}

.sidebar-ad {
  min-height: 360px;
}

.full-width {
  width: 100%;
}

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

.category-hero {
  grid-template-columns: 1.6fr 1fr;
  margin-top: 24px;
}

.featured-card {
  background: var(--surface-strong);
}

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

.feed-list {
  display: grid;
  gap: 16px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 0 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 18px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: var(--shadow);
}

.footer-grid h2 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  .hero,
  .card-grid,
  .tool-grid,
  .article-list,
  .roadmap,
  .ad-band,
  .compact,
  .category-grid,
  .category-hero,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    align-self: stretch;
  }
}

@media (max-width: 680px) {
  .site-header,
  main {
    width: min(100% - 20px, 100%);
  }

  .brand-row,
  .hero,
  .card-grid,
  .tool-grid,
  .article-list,
  .roadmap,
  .ad-band,
  .compact,
  .category-grid,
  .category-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy,
  .hero-panel,
  .card,
  .tool-card,
  .article-card,
  .roadmap-step,
  .article-hero,
  .toc-box,
  .content-block,
  .sidebar-card,
  .feed-card {
    padding: 22px;
  }

  h1 {
    max-width: none;
  }

  .section-accent {
    padding: 28px 18px;
  }
}
