:root {
  --bg: #f3e4dc;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --ink: #151515;
  --muted: #717171;
  --line: rgba(21, 21, 21, 0.1);
  --line-strong: rgba(21, 21, 21, 0.18);
  --accent: #101010;
  --soft-accent: #e9e9e6;
  --peach: #e58b67;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(229, 139, 103, 0.18), transparent 20%),
    linear-gradient(180deg, #f7ebe5 0%, #f0dfd6 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.brand,
.button {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.hidden {
  display: none;
}

.poster {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
}

.poster-card {
  width: min(100%, 820px);
  padding: 64px 36px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  background: rgba(255, 248, 245, 0.46);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.poster-kicker,
.section-kicker,
.mini-kicker,
.result-label,
.quiz-meta span {
  margin: 0 0 14px;
  font-family: "Manrope", sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.poster h1,
.intro-card h2,
.quiz-header h2,
.learning-hero h2 {
  margin: 0;
  font-family: "Manrope", "Noto Sans KR", sans-serif;
  font-weight: 300;
  line-height: 1.04;
}

.poster h1 {
  font-size: clamp(2.3rem, 5.8vw, 4.2rem);
  letter-spacing: -0.06em;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 32px;
  align-items: center;
}

.logo-row img {
  height: 22px;
  width: auto;
  opacity: 0.78;
  object-fit: contain;
  filter: grayscale(100%);
}

.term-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  width: min(100%, 760px);
  margin: 24px auto 12px;
}

.term-cloud .term {
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.15;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(21, 21, 21, 0.06);
  text-align: center;
}

.poster-subtitle,
.intro-card p,
.quiz-card p,
.timeline-card p,
.concept-card p,
.learning-hero p {
  color: var(--muted);
  line-height: 1.7;
}

.poster-subtitle {
  width: min(100%, 640px);
  margin: 18px auto 0;
  font-size: 1rem;
}

.poster-actions {
  margin-top: 34px;
}

.poster-actions.compact {
  display: flex;
  justify-content: center;
}

.narrow {
  max-width: 24ch;
}

.intrigue {
  color: rgba(21, 21, 21, 0.7);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 400;
  font-size: 0.96rem;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--ink);
}

.button.ghost {
  background: transparent;
  color: var(--muted);
}

.button.full {
  width: 100%;
}

.intro-sheet,
.quiz-shell,
.learning-shell {
  margin-top: 30px;
}

.landing-copy,
.quiz-page,
.learning-page {
  margin-top: 24px;
}

.why-page {
  margin-top: 28px;
}

.only-page {
  margin-top: 0;
}

.intro-card,
.quiz-card,
.result-card,
.timeline-card,
.concept-card,
.learning-hero,
.quiz-progress {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.intro-card,
.learning-hero {
  padding: 28px;
}

.why-card {
  padding: 42px;
}

.section-kicker,
.result-label {
  color: var(--peach);
}

.intro-card h2,
.quiz-header h2,
.learning-hero h2 {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  letter-spacing: -0.05em;
}

.intro-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.intro-points article {
  padding: 18px;
  border-radius: 20px;
  background: #fafaf8;
  border: 1px solid var(--line);
}

.intro-points strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
}

.quiz-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.reference-header {
  align-items: start;
}

.quiz-progress {
  min-width: 220px;
  padding: 20px;
  background: #fafaf8;
}

.floating-progress {
  min-width: 252px;
  border-radius: 26px;
}

.quiz-progress span {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.quiz-progress strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
}

.quiz-form {
  display: block;
}

.quiz-card,
.result-card,
.timeline-card,
.concept-card {
  padding: 24px;
}

.split-page .quiz-card {
  padding: 28px 26px;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.quiz-meta {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.quiz-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 14px;
  background: #f1f1ee;
  border: 1px solid var(--line);
}

.quiz-card label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fcfcfb;
  line-height: 1.55;
}

.quiz-lead {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.quiz-category {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fcf4ef;
  border: 1px solid rgba(229, 139, 103, 0.18);
  color: var(--peach);
  font-style: normal;
  font-size: 0.92rem;
}

.quiz-card input {
  flex: none;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.result-card {
  margin-top: 16px;
  background: #ffffff;
}

.result-topbar,
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.result-topbar {
  margin-bottom: 18px;
}

.result-menu-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.button.small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.88rem;
}

.result-card h3,
.timeline-card h3,
.concept-card h3 {
  margin: 0 0 12px;
  font-family: "Manrope", sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.result-step {
  font-weight: 500;
  color: var(--ink);
}

.result-score {
  margin: 8px 0 10px;
  font-size: clamp(3rem, 11vw, 5.2rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.06em;
}

.result-score span {
  margin-left: 6px;
  font-size: 0.34em;
  color: var(--muted);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.progress-track {
  width: 100%;
  height: 6px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: #e8e8e4;
  overflow: hidden;
}

.progress-fill {
  width: 10%;
  height: 100%;
  border-radius: 999px;
  background: var(--peach);
  transition: width 180ms ease;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.quiz-actions.spread {
  align-items: center;
}

.quiz-actions.spread #next-button,
.quiz-actions.spread #submit-button {
  margin-left: auto;
}

.start-badge {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 18px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  font-weight: 400;
}

.timeline,
.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.timeline-card span,
.mini-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--muted);
}

.step-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.timeline-card.focus,
.concept-card.highlight {
  background: #f7f7f5;
}

.timeline-card.recommended {
  outline: 2px solid var(--ink);
  transform: translateY(-2px);
}

.timeline-card.locked {
  background: #fbfbf9;
}

.lock-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f2f2ef;
  border: 1px solid var(--line);
  color: var(--muted);
}

.step-page {
  margin-top: 24px;
}

.step-article,
.step-nav {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.step-article {
  padding: 28px;
}

.step-article h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.8vw, 3.3rem);
  font-weight: 300;
  letter-spacing: -0.05em;
}

.step-article h2 {
  margin: 28px 0 10px;
  font-size: 1.28rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.step-article p {
  color: var(--muted);
  line-height: 1.8;
}

.step-note {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fafaf8;
  border: 1px solid var(--line);
}

.step-note strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.step-note ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.step-nav {
  margin-top: 18px;
  padding: 16px;
}

.signup-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.join-badge,
.prefill-note {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fcfcfb;
  color: var(--muted);
}

.prefill-note {
  width: fit-content;
  margin: 0;
}

.signup-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.95rem;
}

.signup-form input,
.signup-form select,
.signup-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fcfcfb;
  color: var(--ink);
  font: inherit;
}

.signup-form textarea {
  resize: vertical;
  min-height: 120px;
}

.step-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fcfcfb;
  color: var(--ink);
  text-decoration: none;
}

.step-pill.active {
  background: var(--ink);
  color: #fff;
}

.step-page .hero-actions {
  margin-top: 22px;
}

.essay-page {
  width: min(100%, 920px);
  margin: 24px auto 0;
}

.essay-hero,
.essay-section {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.essay-hero {
  padding: 40px 32px;
}

.essay-hero h1,
.essay-section h2 {
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.05em;
}

.essay-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
}

.essay-lead,
.essay-section p {
  color: var(--muted);
  line-height: 1.95;
}

.essay-lead {
  margin-top: 18px;
  font-size: 1.04rem;
}

.essay-section {
  margin-top: 18px;
  padding: 30px 32px;
}

.essay-section h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.essay-emphasis {
  color: var(--ink);
  font-size: 1.08rem;
}

.quote-stack {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
}

.quote-stack blockquote {
  margin: 0;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fcf4ef;
  border: 1px solid rgba(229, 139, 103, 0.16);
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.7;
}

.manifesto-note {
  margin-bottom: 20px;
}

.essay-final .hero-actions {
  margin-top: 28px;
}

.section {
  margin-top: 22px;
}

@media (max-width: 900px) {
  .poster-grid,
  .intro-points,
  .timeline,
  .concept-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quiz-header {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .poster {
    min-height: auto;
  }

  .poster-card,
  .intro-card,
  .quiz-card,
  .result-card,
  .timeline-card,
  .concept-card,
  .learning-hero,
  .essay-hero,
  .essay-section,
  .quiz-progress {
    border-radius: 22px;
  }

  .poster-card {
    padding: 28px 18px 24px;
  }

  .logo-row {
    gap: 14px;
    justify-content: center;
  }

  .logo-row img {
    height: 20px;
  }

  .term-cloud {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  .term-cloud .term {
    font-size: 1.06rem;
  }

  .poster-grid,
  .intro-points,
  .timeline,
  .concept-grid,
  .step-nav-grid {
    grid-template-columns: 1fr;
  }

  .poster h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .quiz-card,
  .result-card,
  .timeline-card,
  .concept-card,
  .learning-hero,
  .intro-card,
  .essay-hero,
  .essay-section {
    padding: 18px;
  }

  .quiz-actions {
    flex-direction: column;
  }

  .result-actions .button {
    width: 100%;
  }

  .why-card {
    padding: 24px;
  }

  .result-topbar,
  .hero-actions {
    align-items: stretch;
  }
}
