/* 말로 쓰는 자서전 — 첫 화면 밖 화면(시작·녹음·가족 방·결제·약관)이 같이 쓰는 모양.
   첫 화면(index.html)과 같은 얼굴: 원고지 초록 칸선, 붉은 낙관, 고운바탕·고운돋움, 큰 글씨(19px). */
:root {
  --paper: #ffffff;
  --ink: #23262b;
  --soft: #5b6168;
  --grid: #2e7d5b;
  --grid-faint: #cfe3d6;
  --wash: #f3f8f4;
  --action: #1f6b4a;
  --action-dark: #185a3d;
  --seal: #b8322a;
  --body: 1.1875rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: var(--body); line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: var(--action); }
:focus-visible { outline: 3px solid var(--seal); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }

/* 머리 */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.seal {
  width: 30px; height: 62px; background: var(--seal); color: #fff; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Gowun Batang", serif; font-weight: 700; font-size: 16px; line-height: 1.1; letter-spacing: 1px;
  writing-mode: vertical-rl; text-orientation: upright;
}
.brand b { font-family: "Gowun Batang", serif; font-size: 1.25rem; font-weight: 700; }

h1, h2, h3 { font-family: "Gowun Batang", serif; line-height: 1.35; }
h1 { font-size: 2rem; margin: 18px 0 12px; }
h2 { font-size: 1.6rem; margin: 0 0 14px; }
h3 { font-size: 1.25rem; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.lead { font-size: 1.25rem; }
.note, .hint { color: var(--soft); font-size: 1rem; }
.hint { margin: 6px 0 0; }
.error { color: var(--seal); font-weight: 700; font-size: 1rem; margin: 6px 0 0; }

/* 단추 */
.cta {
  display: inline-block; background: var(--action); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1.2rem; padding: 15px 26px; border-radius: 12px; text-align: center;
}
.cta:hover { background: var(--action-dark); }
.cta:disabled { opacity: .65; cursor: wait; }
.cta.wide { display: block; width: 100%; }
.btn {
  display: inline-block; background: #fff; color: var(--action); border: 2px solid var(--action); cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1.05rem; padding: 9px 16px; border-radius: 10px; text-decoration: none;
}
.btn:hover { background: var(--wash); }
.btn.small { font-size: .95rem; padding: 5px 12px; border-width: 1.5px; }
.btn.quiet { border-color: #9fb7a9; color: var(--soft); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* 상자 */
.panel { background: var(--wash); border: 1.5px solid var(--grid); border-radius: 16px; padding: 22px 20px; margin: 0 0 22px; }
.panel.plain { background: #fff; border-color: var(--grid-faint); }
.panel.alert { background: #fff6f4; border-color: #e3b1aa; }
.panel > :last-child { margin-bottom: 0; }

/* 양식 */
.field { margin: 0 0 20px; }
.field > label, legend { display: block; font-weight: 700; margin: 0 0 8px; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
input[type=text], input[type=email], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 1.1875rem; padding: 13px 14px; border: 1.5px solid #9fb7a9; border-radius: 10px; background: #fff; color: var(--ink);
}
textarea { line-height: 1.8; resize: vertical; min-height: 12em; }
input:focus, select:focus, textarea:focus { border-color: var(--action); outline: none; box-shadow: 0 0 0 3px rgba(31, 107, 74, .18); }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #9fb7a9; border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.choice input { width: 22px; height: 22px; accent-color: var(--action); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; }
.check input { width: 24px; height: 24px; margin-top: 4px; accent-color: var(--action); flex: none; }
.consent { background: #fff; border: 1px solid var(--grid-faint); border-radius: 10px; padding: 12px 16px; margin: 4px 0 14px; font-size: 1rem; line-height: 1.65; }
.consent ul { margin: 0; padding-left: 1.2em; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 주소 나누기 상자 */
.link-box { display: flex; gap: 8px; align-items: stretch; margin: 8px 0 10px; }
.link-box input { font-size: 1rem; padding: 10px 12px; background: #fff; }

/* 시험 결제 띠 */
.testbar { background: #fff4d6; border-bottom: 1px solid #e8cf86; text-align: center; font-size: .95rem; padding: 6px 12px; }

/* 알림(잠깐 떴다 사라지는 글) */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 1rem; z-index: 50;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}

footer { padding: 48px 0 40px; color: var(--soft); font-size: .95rem; line-height: 1.7; }
footer a { color: var(--soft); }
.biz { margin-top: 10px; }

@media (min-width: 760px) {
  h1 { font-size: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
