/* 몰래캠프 웹 (랜딩·초대·약관). 확장과 같은 손그림 화풍: 잉크 선·종이·빗금 그림자 */
:root {
  --ink: #2b2a33;
  --paper: #f6efe0;
  --paper-2: #fffaf0;
  --sun: #fbe3a1;
  --coral: #e07a5f;
  --sky: #8fb9d6;
  --grass: #86b46b;
  --muted: #5d5a63;
  --shadow: 4px 5px 0 rgba(43, 42, 51, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Gowun Dodum', 'Malgun Gothic', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #2f6f9f;
  outline-offset: 3px;
}

.hand {
  font-family: 'Gaegu', 'Malgun Gothic', cursive;
  font-weight: 700;
}

.wrap {
  width: min(1040px, 100% - 32px);
  margin-inline: auto;
}

/* 머리글 */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 26px;
  text-decoration: none;
}

.logo svg {
  width: 34px;
  height: 30px;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px 9px;
  font-family: 'Gaegu', 'Malgun Gothic', cursive;
  font-weight: 700;
  font-size: 21px;
  color: var(--paper);
  text-decoration: none;
  background: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 10px 14px 9px 13px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.light {
  color: var(--ink);
  background: var(--sun);
}

.btn[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

/* 첫 화면 */
.hero {
  display: grid;
  gap: 28px;
  padding: 24px 0 40px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.15;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 58%, var(--sun) 58%);
}

.lead {
  max-width: 34em;
  margin: 12px 0 22px;
  font-size: 19px;
  color: var(--muted);
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.note {
  font-size: 14px;
  color: var(--muted);
}

.frame {
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
  border: 3px solid var(--ink);
  border-radius: 14px 18px 13px 17px;
  box-shadow: 6px 7px 0 rgba(43, 42, 51, 0.3);
  rotate: -0.6deg;
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.frame figcaption {
  padding: 6px 14px 8px;
  font-size: 14px;
  color: var(--muted);
  border-top: 2px solid var(--ink);
}

/* 섹션 */
section {
  padding: 36px 0;
}

section h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.4vw, 40px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 16px 18px 18px;
  background: var(--paper-2);
  border: 2.5px solid var(--ink);
  border-radius: 10px 14px 9px 13px;
  box-shadow: var(--shadow);
}

.card:nth-child(odd) {
  rotate: 0.5deg;
}

.card:nth-child(even) {
  rotate: -0.5deg;
}

.card h3 {
  margin: 0 0 4px;
  font-size: 25px;
}

.card p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.emoji {
  font-size: 30px;
  line-height: 1;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 12px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-family: 'Gaegu', cursive;
  font-weight: 700;
  font-size: 24px;
  background: var(--sun);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
}

.steps strong {
  font-family: 'Gaegu', cursive;
  font-size: 22px;
}

.promise {
  margin: 0;
  padding: 18px 22px;
  list-style: none;
  background: #e6efe0;
  border: 2.5px dashed var(--ink);
  border-radius: 12px;
}

.promise li {
  padding: 3px 0 3px 28px;
  background: no-repeat left 8px / 18px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4' fill='none' stroke='%232b2a33' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.beta {
  margin-right: 6px;
  padding: 1px 8px;
  font-family: 'Gaegu', cursive;
  font-size: 16px;
  color: var(--ink);
  background: var(--sun);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
}

.price {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.price .card strong {
  font-family: 'Gaegu', cursive;
  font-size: 34px;
}

/* 바닥글 */
.foot {
  margin-top: 30px;
  padding: 24px 0 40px;
  font-size: 14px;
  color: var(--muted);
  border-top: 2px solid var(--ink);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}

/* 문서 (약관·방침) */
.doc {
  max-width: 760px;
  padding: 10px 0 40px;
}

.doc h1 {
  font-size: 40px;
  margin: 10px 0 4px;
}

.doc h2 {
  margin: 30px 0 8px;
  font-size: 24px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.doc th,
.doc td {
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
  border: 1.5px solid var(--ink);
}

.doc th {
  background: var(--paper-2);
}

.draft {
  margin: 12px 0 20px;
  padding: 10px 14px;
  background: #f3c9bd;
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.blank {
  padding: 0 4px;
  background: var(--sun);
  border-radius: 4px;
}

/* 초대 */
.invite {
  max-width: 620px;
  margin: 10px auto 40px;
  padding: 24px 28px 26px 44px;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 29px, rgba(224, 122, 95, 0.45) 29px, rgba(224, 122, 95, 0.45) 31px, transparent 31px),
    repeating-linear-gradient(transparent 0 33px, rgba(111, 143, 179, 0.28) 33px 34px);
  border: 2.5px solid var(--ink);
  border-radius: 12px 16px 11px 15px;
  box-shadow: 6px 7px 0 rgba(43, 42, 51, 0.3);
  rotate: -0.5deg;
}

.invite h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 42px);
}

.code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 22px;
}

.code output {
  padding: 4px 14px;
  font-family: 'Gaegu', cursive;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.08em;
  background: var(--sun);
  border: 2.5px solid var(--ink);
  border-radius: 8px;
}

.code button {
  font-size: 18px;
  padding: 4px 14px;
}

.code-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 8px;
}

.code-form label {
  width: 100%;
  font-weight: 700;
}

.code-form input {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 260px;
  padding: 6px 14px;
  font-family: 'Gaegu', cursive;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-2);
  border: 2.5px solid var(--ink);
  border-radius: 8px;
}

.code-form input:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

.code-form .note {
  width: 100%;
  margin: 0;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    padding-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

kbd {
  padding: 0 5px;
  font-family: inherit;
  font-size: 0.9em;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  box-shadow: 0 2px 0 var(--ink);
  white-space: nowrap;
}

/* 자주 묻는 질문 */
.faq details {
  margin-bottom: 10px;
  padding: 10px 16px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 10px 14px 9px 13px;
}

.faq summary {
  font-family: 'Gaegu', cursive;
  font-weight: 700;
  font-size: 21px;
  cursor: pointer;
}

.faq details p {
  margin: 6px 0 2px;
  color: var(--muted);
}
