:root {
  color-scheme: light;
  --pink: #ff2684;
  --navy: #000b30;
  --ink: #122747;
  --muted: #122747;
  --line: rgba(18, 39, 71, 0.14);
  --paper: #ededed;
  --surface: #ffffff;
  --accent: #122747;
  --accent-2: #ff2684;
  --page-pad: clamp(32px, 5.208vw, 100px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Noto Sans KR", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

.header {
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  gap: 32px;
  justify-content: space-between;
  left: 0;
  min-height: 70px;
  padding: 10px clamp(10px, 7.8125vw, 150px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.brand {
  align-items: center;
  display: flex;
  gap: 5px;
}

.brand__mark {
  flex: 0 0 auto;
  height: 30px;
  width: 30px;
}

.brand__name {
  color: var(--pink);
  font-size: clamp(18px, 1.46vw, 24px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.nav {
  align-items: center;
  display: flex;
  gap: clamp(18px, 2.1vw, 40px);
}

.nav a {
  color: var(--navy);
  display: inline-block;
  font-size: clamp(15px, 1.04vw, 18px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.3;
  position: relative;
  transition: color 180ms ease, opacity 180ms ease;
}

.nav a::after {
  align-items: center;
  color: var(--pink);
  content: attr(data-label);
  display: flex;
  inset: 0;
  justify-content: center;
  letter-spacing: inherit;
  line-height: inherit;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms ease;
  white-space: nowrap;
}

.nav a:hover {
  color: transparent;
}

.nav a:hover::after {
  opacity: 1;
}

.nav .nav__cta {
  background: var(--pink);
  color: #fff;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 8px 16px;
  transition: background 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.nav .nav__cta::after {
  content: none;
}

.nav .nav__cta:hover {
  background: var(--navy);
  color: #fff;
}

main {
  padding-top: 70px;
}

.hero {
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  justify-content: flex-start;
  min-height: 420px;
  padding: 120px max(var(--page-pad), calc((100vw - 1620px) / 2));
}

.hero-title {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
  width: 294px;
}

.hero-title h1 {
  font-size: clamp(44px, 3.125vw, 60px);
  font-weight: 800;
  line-height: 1;
  margin: 0;
}

.hero-title p {
  font-size: clamp(16px, 2.083vw, 26px);
  font-weight: 600;
  line-height: 1.18;
  margin: 0;
}

.post-list {
  padding: 56px 5vw 84px;
}

.section-head {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
}

.section-head h1,
.section-head h2 {
  font-size: 26px;
  margin: 0;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin: -10px 0 50px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav a {
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 70px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
  line-height: 1.2;
  padding: 12px 25px;
  text-transform: capitalize;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  will-change: transform;
}

.category-nav a:hover {
  border-color: var(--pink);
  background: rgba(255, 38, 132, 0.08);
  color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 38, 132, 0.14);
}

.category-nav a.is-active {
  background: var(--pink);
  border-color: var(--pink);
  color: #ffffff;
}

.category-nav a.is-active:hover {
  background: var(--pink);
  color: #ffffff;
  transform: translateY(-2px);
}

.posts-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.post-card a {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.post-card img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.post-card time,
.article-header time {
  color: var(--accent-2);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.post-card-tags {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 10px;
}

.post-card h2,
.post-card h3 {
  display: -webkit-box;
  font-size: 22px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.25;
  margin: 0 0 12px;
  overflow: hidden;
}

.post-card p {
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  margin: 0;
  overflow: hidden;
}

.post-card p:not(.post-card-tags) {
  font-size: 15px;
  line-height: 1.65;
}

.empty-state {
  color: var(--muted);
  grid-column: 1 / -1;
  margin: 0;
}

.article {
  margin: 0 auto;
  max-width: 860px;
  padding: 56px 5vw 90px;
}

.back-link {
  color: var(--accent);
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.article-header h1 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.08;
  margin: 0;
}

.article-header p {
  color: var(--muted);
  font-size: 20px;
  margin: 22px 0 0;
}

.featured-image {
  border-radius: 8px;
  display: block;
  margin-top: 34px;
  width: 100%;
}

.article-body {
  border-top: 1px solid var(--line);
  font-size: 18px;
  margin-top: 42px;
  padding-top: 34px;
}

.article-body h2 {
  font-size: 30px;
  line-height: 1.25;
  margin: 44px 0 14px;
}

.article-body p {
  margin: 0 0 22px;
}

.article-body a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

.geo-summary,
.geo-takeaways,
.geo-faq,
.related-links {
  border: 1px solid var(--line);
  margin: 0 0 28px;
  padding: 24px;
}

.geo-summary h2,
.geo-takeaways h2,
.geo-faq h2,
.related-links h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 14px;
}

.geo-summary p,
.geo-faq-item p {
  margin: 0;
}

.geo-takeaways ul,
.related-links ul {
  margin: 0;
  padding-left: 20px;
}

.geo-takeaways li,
.related-links li {
  margin: 0 0 8px;
}

.geo-takeaways li:last-child,
.related-links li:last-child {
  margin-bottom: 0;
}

.geo-faq-item {
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
}

.geo-faq-item + .geo-faq-item {
  margin-top: 18px;
}

.geo-faq-item h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 8px;
}

.site-footer {
  align-items: center;
  background: var(--navy);
  display: flex;
  justify-content: center;
  padding: 100px clamp(24px, 7.8125vw, 150px) 24px;
}

.footer__inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1620px;
  width: 100%;
}

.site-footer p {
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.site-footer strong {
  font-family: "Inter", sans-serif;
  font-weight: 800;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin-bottom: 26px;
}

.footer__links a {
  color: #ffffff;
  font-family: "Noto Sans KR", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--pink);
}

.footer__business {
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-wrap: wrap;
  font-family: "Noto Sans KR", "Inter", sans-serif;
  font-size: 12px;
  font-style: normal;
  gap: 6px 18px;
  justify-content: center;
  line-height: 1.55;
  max-width: 980px;
  text-align: center;
}

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

.footer__business a:hover {
  color: #ffffff;
}

.footer__copy {
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  text-align: center;
}

.floating-kakao {
  align-items: center;
  background: #fee500;
  border-radius: 50%;
  bottom: 100px;
  color: #3a1d1d;
  display: flex;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
  height: 60px;
  justify-content: flex-end;
  overflow: hidden;
  position: fixed;
  right: 24px;
  text-decoration: none;
  width: 60px;
  z-index: 9999;
}

.floating-kakao__icon {
  background-image: url("https://cdn.imweb.me/upload/S2026040130027df76b3c0/78f63d4c811e0.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  flex: 0 0 60px;
  height: 60px;
  width: 60px;
}

.floating-kakao__label {
  color: #3a1d1d;
  flex-shrink: 0;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .floating-kakao {
    transition: width 300ms ease, border-radius 300ms ease, filter 220ms ease;
  }

  .floating-kakao__label {
    transition: opacity 150ms ease 120ms, max-width 300ms ease, padding 300ms ease;
  }

  .floating-kakao:hover {
    border-radius: 999px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.22));
    width: 128px;
  }

  .floating-kakao:hover .floating-kakao__label {
    max-width: 70px;
    opacity: 1;
    padding-left: 14px;
  }
}

@media (max-width: 1024px) {
  :root {
    --page-pad: 32px;
  }

  .header {
    align-items: flex-start;
    padding-left: 32px;
    padding-right: 32px;
  }

  .nav {
    flex-direction: column;
  }

  .brand__mark {
    height: 24px;
    width: 24px;
  }

  .brand__name {
    font-size: 24px;
  }

  main {
    padding-top: 240px;
  }

  .hero {
    min-height: 300px;
    padding: 60px 32px;
  }

  .hero-title h1 {
    font-size: 36px;
  }

  .site-footer {
    padding: 60px 150px 24px;
  }

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

@media (max-width: 640px) {
  :root {
    --page-pad: 24px;
  }

  .header {
    align-items: center;
    background: rgba(255, 255, 255, 1);
    flex-direction: column;
    gap: 22px;
    justify-content: center;
    min-height: 100px;
    padding: 14px 24px;
  }

  .brand {
    justify-content: center;
  }

  .brand__mark {
    height: 30px;
    width: 30px;
  }

  .brand__name {
    display: none;
  }

  .nav {
    flex-direction: row;
    gap: 40px;
    justify-content: space-between;
    width: 100%;
  }

  .nav a {
    color: var(--navy);
    font-size: clamp(15px, 1.04vw, 18px);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1.3;
  }

  .nav .nav__cta {
    display: none;
  }

  .floating-kakao {
    bottom: 50px;
    height: 50px;
    right: 16px;
    width: 50px;
  }

  .floating-kakao__icon {
    flex-basis: 50px;
    height: 50px;
    width: 50px;
  }

  main {
    padding-top: 100px;
  }

  .hero {
    align-items: flex-start;
    min-height: 220px;
    padding: 30px 24px;
  }

  .hero-title {
    width: 100%;
  }

  .hero-title h1 {
    font-size: 30px;
  }

  .site-footer {
    padding: 30px 24px 24px;
  }

  .site-footer p {
    font-size: 11px;
    text-align: center;
  }

  .footer__business {
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
  }

  .footer__links {
    gap: 8px 14px;
    margin-bottom: 20px;
  }

  .footer__links a {
    font-size: 11px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .category-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 10px 0 12px;
  }

  .category-nav a {
    font-size: 14px;
    padding: 10px 18px;
  }
}
