:root {
  --btn-gradient: linear-gradient(135deg, rgb(32, 32, 169) 0%, rgb(40, 116, 252) 100%);
  --pill-gradient: linear-gradient(135deg, rgb(255, 203, 112) 0%, rgb(199, 81, 192) 50%, rgb(65, 88, 208) 100%);
  --text: #121212;
  --muted: #666;
  --card: #fff;
  --page-bg: #f3f4f6;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* top bar with the small gradient "[Home]" pill, like the old site */
.topbar {
  display: flex; justify-content: center; align-items: center;
  padding: 10px 16px; background: #fff;
}
.home-pill {
  display: inline-block; padding: 6px 18px; border-radius: 5px;
  background: var(--pill-gradient); color: #fff; font-size: 13px; font-weight: 600;
  text-decoration: none; letter-spacing: .2px;
}

/* full-screen cover (landing) */
.cover {
  min-height: calc(100vh - 48px);
  background: #9a9189 center center / cover no-repeat;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 28px 16px 40px;
}
.cover-inner { width: 100%; max-width: 520px; margin: 0 auto; }
.event-title {
  color: #fff; font-size: 23px; line-height: 1.25; font-weight: 800; margin: 0 0 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,.35); word-break: keep-all;
}
.info-box {
  list-style: none; margin: 0 0 22px; padding: 10px 14px;
  background: rgba(255,255,255,.6); border-radius: 4px;
}
.info-box li { font-size: 14px; font-weight: 700; color: rgba(18,18,18,.86); }

.buttons { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.big-btn {
  display: block; width: 75%; min-width: 220px; padding: 18px 12px;
  border: 0; border-radius: 10px; background: var(--btn-gradient); color: #fff;
  font-size: 17px; font-weight: 700; text-align: center; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.18); cursor: pointer; transition: transform .08s ease, filter .15s ease;
}
.big-btn:hover { filter: brightness(1.07); }
.big-btn:active { transform: translateY(1px); }
.big-btn.submit { width: 100%; margin-top: 10px; }
.intro { margin-top: 22px; }

/* sub pages */
.hero {
  background: #4b5563 center center / cover no-repeat; color: #fff;
  padding: 26px 16px 24px;
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero-event { font-size: 13px; opacity: .9; margin-bottom: 4px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.section-title { margin: 0; font-size: 24px; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.section-title.dark { color: var(--text); text-shadow: none; margin-bottom: 8px; }

.page-body { max-width: 640px; margin: 0 auto; padding: 18px 16px 48px; }
.card {
  background: var(--card); border-radius: 12px; padding: 20px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); margin-bottom: 16px;
}
.card.center { text-align: center; }
.card.center .big-btn { margin: 14px auto 0; }
.content { font-size: 15.5px; overflow-wrap: anywhere; }
.content img { max-width: 100%; height: auto; border-radius: 8px; }
.content h1, .content h2, .content h3 { margin: 18px 0 8px; line-height: 1.3; }
.content h1 { font-size: 22px; } .content h2 { font-size: 19px; } .content h3 { font-size: 17px; }
.content p { margin: 0 0 10px; }
.content ul, .content ol { padding-left: 22px; margin: 0 0 10px; }
.content blockquote { border-left: 4px solid #cbd5e1; margin: 10px 0; padding: 4px 12px; color: var(--muted); }
.content a { color: #1d4ed8; }
.content iframe { max-width: 100%; }
.content table { border-collapse: collapse; width: 100%; font-size: 14px; }
.content td, .content th { border: 1px solid #e5e7eb; padding: 6px 8px; }
.ql-align-center { text-align: center; } .ql-align-right { text-align: right; } .ql-align-justify { text-align: justify; }

.back-link { display: inline-block; margin-top: 6px; color: var(--muted); text-decoration: none; font-size: 14px; }
.muted { color: var(--muted); }

/* forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field .req { color: #dc2626; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number],
.field input[type=date], .field select, .field textarea {
  width: 100%; padding: 11px 12px; font-size: 16px; border: 1px solid #d1d5db; border-radius: 8px;
  background: #fff; font-family: inherit;
}
.field textarea { resize: vertical; }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { font-weight: 400 !important; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.choice input { width: 18px; height: 18px; }
.has-error input, .has-error select, .has-error textarea { border-color: #dc2626; }
.error { color: #dc2626; font-size: 13px; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (min-width: 640px) {
  .event-title { font-size: 28px; }
  .cover { padding-top: 48px; }
}
