:root {
  --burgundy: #800020;
  --gold: #D4AF37;
  --text: #222222;
  --bg: #ffffff;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", -apple-system, system-ui, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.wrap {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px 48px;
}

/* 상단 타이틀 */
header {
  text-align: center;
  margin-bottom: 24px;
}

header h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

header p {
  margin: 0;
  font-size: 14px;
  color: #666666;
}

/* 다이어그램 영역 – 배경 투명 */
.diagram-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 16px 16px;
  background: transparent;
  border: none;
}

.diagram-section img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* CTA 버튼 */
.cta {
  text-align: center;
  margin-top: 28px;
}

.cta a {
  display: inline-block;
  padding: 14px 38px;
  border-radius: 999px;
  background: var(--burgundy);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
  border: 2px solid var(--burgundy);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.cta a:hover,
.cta a:focus-visible {
  background: #ffffff;
  color: var(--burgundy);
  transform: translateY(-1px);
}

.cta a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* 모바일 대응 */
@media (max-width: 640px) {
  .wrap {
    margin-top: 24px;
  }

  header h1 {
    font-size: 20px;
  }

  .cta a {
    width: 100%;
    max-width: 320px;
  }
}
