:root {
  --cream: #FBF6EE;
  --ink: #1A1820;
  --muted: #5F5A66;          /* 크림 위 6.21:1 */
  --muted-on-color: #4F4A55; /* 버터·라일락 위. 코랄 위에는 쓰지 않는다 (3.36:1) */
  --coral: #FF7A64;
  --butter: #FFD84D;
  --lilac: #CDBDFF;
  --white: #FFFFFF;
  --line: 2px solid var(--ink);
  --display: "Do Hyeon", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --text: "Nanum Gothic", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}

h1, h2, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.d { font-family: var(--display); font-weight: 400; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── 공통 조각 ─────────────────────────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  border: var(--line);
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.sticker { transform: rotate(-3deg); }

.logo {
  padding: 6px 18px;
  background: var(--coral);
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
}

/* ── 헤더 ─────────────────────────────────────────────── */

.top {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status {
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  font-size: 15px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--butter);
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink { 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
}

/* ── 히어로 ───────────────────────────────────────────── */

.hero {
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.eyebrow {
  padding: 7px 16px;
  background: var(--lilac);
  font-size: 15px;
}

.headline {
  font-size: 80px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.lead {
  max-width: 480px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.soon-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
  padding-top: 8px;
}

.soon {
  padding: 12px 26px;
  background: var(--butter);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
}

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

/* 귀결 카드 더미 */
.stack {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 560px;
  justify-self: center;
}

.card {
  position: absolute;
  border: var(--line);
  display: flex;
  flex-direction: column;
}

.card-back {
  width: 300px;
  padding: 24px;
  border-radius: 28px;
  box-shadow: 6px 6px 0 var(--ink);
  gap: 10px;
}

.card-back .k { font-size: 13px; font-weight: 800; }
.card-back .d { font-size: 28px; line-height: 1.2; }

.card-back.one { left: 262px; top: 14px; background: var(--lilac); transform: rotate(8deg); }
.card-back.two { left: 0; top: 64px; width: 270px; background: var(--butter); transform: rotate(-7deg); }

.card-front {
  left: 110px;
  top: 150px;
  width: 360px;
  padding: 26px;
  border-radius: 30px;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(2deg);
  gap: 14px;
}

.card-front .topic {
  align-self: flex-start;
  padding: 5px 12px;
  background: var(--cream);
  font-size: 12px;
  white-space: normal;
}

.card-front h2 { font-size: 34px; line-height: 1.15; }

.card-front p {
  font-size: 15px;
  line-height: 1.65;
  text-wrap: pretty;
}

.falsifier {
  padding: 14px 16px;
  border: var(--line);
  border-radius: 18px;
  background: var(--coral);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.falsifier .k { font-size: 12px; font-weight: 800; }
.falsifier .v { font-size: 14px; line-height: 1.55; }

.caption {
  position: absolute;
  left: 110px;
  bottom: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ── 주제 ─────────────────────────────────────────────── */

.topics {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-title { font-size: 16px; font-weight: 800; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 18px;
  font-size: 16px;
  background: var(--white);
  white-space: normal;
}

.chip.butter { background: var(--butter); }
.chip.lilac { background: var(--lilac); }
.chip.coral { background: var(--coral); }

/* ── 흐름 ─────────────────────────────────────────────── */

.steps {
  padding: 28px 0 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step {
  padding: 22px 24px;
  border: var(--line);
  border-radius: 26px;
  background: var(--white);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.num {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.num.butter { background: var(--butter); }
.num.coral { background: var(--coral); }
.num.lilac { background: var(--lilac); }

.step h2 { font-size: 18px; font-weight: 800; }
.step p { padding-top: 6px; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ── 푸터 ─────────────────────────────────────────────── */

.foot {
  border-top: var(--line);
  padding: 22px 0 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--muted);
}

/* ── 404 ──────────────────────────────────────────────── */

.lost {
  min-height: calc(100vh - 84px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding-bottom: 84px;
}

.lost .d { font-size: 64px; line-height: 1.1; }

.home {
  height: 52px;
  padding: 0 24px;
  background: var(--ink);
  color: var(--cream);
  font-size: 16px;
  text-decoration: none;
}

.home:hover { background: #33303A; }
.home:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* ── 좁은 화면 ─────────────────────────────────────────── */

@media (max-width: 1000px) {
  .wrap { padding: 0 20px; }
  .top { height: 64px; }
  .logo { padding: 3px 12px; font-size: 20px; }
  .status { height: 38px; padding: 0 14px; font-size: 13px; }

  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 16px; }
  .hero-copy { gap: 16px; }
  .eyebrow { font-size: 13px; padding: 5px 12px; }
  .headline { font-size: 48px; }
  .lead { font-size: 16px; }
  .soon { font-size: 24px; padding: 10px 20px; }
  .soon-note { font-size: 13px; }

  .stack { max-width: 350px; height: 520px; }
  .card-back { width: 166px; padding: 16px; border-radius: 22px; gap: 6px; }
  .card-back .d { font-size: 21px; }
  .card-back.one { left: 180px; top: 6px; }
  .card-back.two { left: 0; top: 20px; width: 166px; }
  .card-front { left: 16px; top: 146px; width: 310px; padding: 20px; border-radius: 26px; }
  .card-front h2 { font-size: 28px; }
  .card-front p { font-size: 14px; }
  .caption { left: 16px; }

  .chip { font-size: 14px; padding: 8px 14px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 40px; }
  .lost .d { font-size: 44px; }
}

@media (max-width: 360px) {
  .headline { font-size: 42px; }
  .stack { transform: scale(0.92); transform-origin: top left; }
}
