/* =========================================================
   하루테스트 — 정적 랜딩(/test/*) · 결과 공유(/r/*) · 404
   style.css 의 토큰·버튼·아코디언·푸터를 그대로 쓰고 레이아웃만 얹는다.
   ========================================================= */

.page-body {
  margin: 0;
  background:
    radial-gradient(120% 50% at 50% 0%, #ffeef0 0%, rgba(255, 238, 240, 0) 55%),
    #f4efe7;
}

.page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  overflow-x: hidden;
}

.page .site-head { position: sticky; }

.page-main { padding: 16px 20px 44px; }

/* ---------- 위치 표시 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #6b6673;
}
.crumb a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(107, 102, 115, 0.45);
}

/* ---------- 썸네일 · 제목 ---------- */
.page-thumb {
  position: relative;
  margin: 14px 0 20px;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--soft);
  box-shadow: var(--shadow-card);
}
.page-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-thumb figcaption { position: absolute; top: 12px; left: 12px; }

.page-title {
  margin: 8px 0 10px;
  font-size: 27px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  word-break: keep-all;
}
.page-lede {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: #45414f;
}
.page-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: #6b6673;
}

/* ---------- 본문 섹션 ---------- */
.page-section {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.page-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.35;
  color: var(--ink);
}
.page-desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #6b6673;
}
.prose p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.88;
  letter-spacing: -0.005em;
  color: #393643;
  word-break: keep-all;
}
.prose p:last-child { margin-bottom: 0; }

/* ---------- 예시 문항 ---------- */
.qlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.qlist__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px 14px;
  box-shadow: var(--shadow-soft);
}
.qlist__q {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.qlist__choices { display: grid; gap: 7px; }
.qlist__choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--beige);
  font-size: 13.5px;
  line-height: 1.5;
  color: #45414f;
}
.qlist__choice b {
  flex: 0 0 auto;
  font-size: 11.5px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--accent) 62%, #2b2833);
}

/* ---------- 16유형 ---------- */
.typegrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.typegrid__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.typegrid__item:hover {
  transform: translateY(-1px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-soft);
}
.typegrid__item b {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: color-mix(in srgb, var(--accent) 70%, #2b2833);
}
.typegrid__item span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #2f2c38;
}
.page-subhead {
  margin: 22px 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.page-more {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-ink);
}
.page-more a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 결과 공유 페이지 ---------- */
.page--result .page-main { padding-top: 14px; }

.share-cta {
  margin: 0 0 18px;
  padding: 15px 15px 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--soft);
  text-align: center;
}
.share-cta__hint {
  margin: 9px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #45414f;
}

.result-card {
  margin: 0 0 20px;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.result-card img {
  display: block;
  width: 100%;
  height: auto;
}
.result-code-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--accent) 72%, #2b2833);
}
.result-code-nick {
  margin-left: 4px;
  font-size: 12.5px;
  color: #5f5a6a;
}
.page-title--result { margin-top: 8px; font-size: 29px; }

.page--result .result__lines { margin-top: 6px; }
.page--result .pairs { margin-top: 14px; }

.share-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 6px;
}
.share-row .btn {
  justify-content: center;
  padding: 12px 14px;
  font-size: 13.5px;
  border-radius: 14px;
}
.page--result .result__disclaimer {
  margin: 22px 0 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
  color: #6b6673;
}

@media (min-width: 640px) {
  .page-main { padding: 20px 32px 56px; }
  .page-title { font-size: 33px; }
  .page-title--result { font-size: 35px; }
  .typegrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .share-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .prose p { font-size: 15.5px; }
}

/* ---------- 계산 방식 안내 (이름 궁합 랜딩) ---------- */
.howlist {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.howstep {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}
.howstep > b {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.howstep strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #2b2833;
}
.howstep p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #5f5a6a;
}

.how-example {
  margin: 12px 0 0;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--soft);
  font-size: 13px;
  color: #4b4855;
  letter-spacing: -0.01em;
}
.how-example b { color: var(--accent); font-weight: 700; }
