:root {
  --page-max: 1920px;
  --ink: #071014;
  --muted: #5d6b66;
  --line: #d8e2df;
  --paper: #f5f7f4;
  --white: #ffffff;
  --green: #16c47f;
  --blue: #2673d9;
  --coral: #ef6048;
  --shadow: 0 18px 50px rgba(7, 16, 20, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  background: var(--paper);
  letter-spacing: 0;
}

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

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
}

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

.brand img { display: block; width: 96px; height: auto; }
.brand span { display: grid; gap: 3px; }
.brand strong { font-size: 24px; line-height: 1; white-space: nowrap; }
.brand small { color: var(--muted); font-size: 13px; font-weight: 800; }

.blog-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--blue);
  font-weight: 800;
}

main {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 24px 32px 56px;
}

.blog-hero {
  padding: 46px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(22, 196, 127, 0.14), transparent 36%),
    linear-gradient(135deg, var(--white), #edf4f1);
}

.blog-hero h1 {
  max-width: 920px;
  margin: 0 0 14px;
  font-size: clamp(42px, 3.2vw, 68px);
  line-height: 1.05;
}

.blog-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.post-grid article {
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.post-grid span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.post-grid h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.post-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 28px 32px 42px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer strong {
  display: inline-block;
  margin-bottom: 8px;
}

.company-info {
  max-width: 980px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.site-footer nav,
.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-weight: 800;
}

.footer-policy-links {
  max-width: 640px;
  color: var(--ink);
  font-size: 14px;
}

.footer-policy-links button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.footer-policy-links span {
  color: var(--line);
  font-weight: 400;
}

.footer-tv-link {
  color: var(--coral);
}

.policy-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 16, 20, 0.58);
}

.policy-panel[hidden] {
  display: none;
}

.policy-card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(680px, calc(100vh - 48px));
  overflow: auto;
  padding: 32px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.policy-card h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

.policy-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.policy-body ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.policy-body li {
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 680px) {
  .blog-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-header,
  main,
  .site-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand img { width: 74px; }
  .brand strong { font-size: 18px; }

  .blog-hero {
    padding: 32px 20px;
  }

  .blog-hero h1 {
    font-size: 34px;
  }

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

  .footer-policy-links {
    justify-content: flex-start;
  }
}
