:root {
  color-scheme: light;
  --bg: #FAF7F2;
  --card: #FFFFFF;
  --ink: #2B2622;
  --muted: #6F6660;
  --line: #E7DFD4;
  --accent: #F2A541;
  --accent-ink: #2B2622;
  --soft: #FDF1DF;
  --error: #B3261E;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 20px;
}
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 14px;
}

.label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 8px;
}

.question {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}

.answer-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 1.0625rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 12px;
}

p { margin: 0 0 12px; }

label.field { display: block; margin-bottom: 6px; }
.gap { height: 14px; }
.hint { margin-top: 10px; }
label.field span { display: block; font-size: 0.875rem; font-weight: 600; }

input[type="text"], textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.counter { text-align: right; font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:disabled { opacity: 0.45; cursor: default; }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn + .btn { margin-top: 10px; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.notice {
  background: var(--soft);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 0.9375rem;
}
.notice input { margin-top: 8px; font-size: 0.8125rem; }

.promo { text-align: center; margin-top: 28px; }
.promo p { color: var(--muted); }

.error h1 { font-size: 1.375rem; }

.small { font-size: 0.8125rem; color: var(--muted); }

[hidden] { display: none !important; }

/* Policy pages */
.doc h1 { margin-bottom: 6px; }
.doc h2 { font-size: 1.125rem; line-height: 1.35; margin: 28px 0 8px; }
.doc ul { margin: 0 0 12px; padding-left: 1.25rem; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--ink); text-underline-offset: 2px; overflow-wrap: anywhere; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin-bottom: 12px; }
.doc th, .doc td { text-align: left; vertical-align: top; border-top: 1px solid var(--line); padding: 8px 6px 8px 0; }
.doc th { font-weight: 600; width: 34%; }
.langs { display: flex; gap: 14px; font-size: 0.875rem; margin-bottom: 18px; }
.langs a { color: var(--muted); }
.langs [aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-links { margin-top: 18px; text-align: center; font-size: 0.875rem; }
.footer-links a { color: var(--muted); margin: 0 8px; }
.brand a { color: inherit; text-decoration: none; }
.doc .sub { margin-top: 16px; }
