@font-face {
  font-family: "SP Sans";
  src: url("/fonts/sans-subset.woff2") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2A2350;
  --ink-soft: #3A3463;
  --apricot: #FFD9B8;
  --butter: #FFE98A;
  --mint: #BDEBD3;
  --sky: #BFE3FA;
  --lilac: #DDD3FF;
  --lilac-soft: #EFEAFF;
  --peach: #FFC9B5;
  --coral: #FF7A59;
  --white: #fff;
  --font: "SP Sans", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui;
  --r: 28px;
  --shadow: 0 8px 0 rgba(42, 35, 80, .16);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 500 1.0625rem/1.75 var(--font);
  color: var(--ink);
  background: var(--lilac-soft);
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.defs { position: absolute; }

:focus-visible {
  outline: 4px solid #5A3DF0;
  outline-offset: 3px;
  border-radius: 8px;
}

/* 머리글 */
.top {
  background: var(--apricot);
  padding: 14px 0 0;
}

.top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.15rem;
  text-decoration: none;
}

.logo svg { transition: transform .25s; }
.logo:hover svg { transform: rotate(-10deg) scale(1.06); }

.top nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }

.top nav a {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
}

.top nav a:hover { background: var(--white); }
.top nav a.lang { border: 2px solid var(--ink); }

/* 첫 화면 */
.hero {
  background: var(--apricot);
  padding: 28px 0 88px;
}

.hero-grid {
  display: grid;
  gap: 20px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--white);
  font-size: 1rem;
  font-weight: 800;
  transform: rotate(-2deg);
}

h1 {
  font-size: clamp(2.05rem, 8.4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.mark {
  background: linear-gradient(transparent 58%, var(--butter) 58%);
  padding: 0 .1em;
}

.lead {
  margin-top: 18px;
  max-width: 34em;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.btn-main { background: var(--ink); color: var(--white); }
.btn-sub { background: var(--white); color: var(--ink); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(42, 35, 80, .25); }
.btn:active { transform: translateY(1px); box-shadow: none; }

.sticker {
  display: inline-block;
  margin-top: 22px;
  padding: 8px 18px;
  border: 3px dashed var(--ink);
  border-radius: 18px;
  background: var(--butter);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transform: rotate(-2deg);
  transition: transform .2s;
}

a.sticker:hover { animation: wiggle .5s; }

.hero-art { width: 100%; max-width: 520px; height: auto; justify-self: center; }

.float { animation: bob 3.2s ease-in-out infinite alternate; }
.f2 { animation-delay: -1.1s; }
.f3 { animation-delay: -2.2s; }
.steam path { animation: steam 2.8s ease-in-out infinite; }
.steam .s2 { animation-delay: -1.4s; }

@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-9px); } }
@keyframes steam { 0%, 100% { transform: translateY(4px); opacity: .2; } 50% { transform: translateY(-6px); opacity: 1; } }
@keyframes wiggle {
  0%, 100% { transform: rotate(-2deg); }
  25% { transform: rotate(2deg) scale(1.03); }
  50% { transform: rotate(-4deg) scale(1.03); }
  75% { transform: rotate(1deg); }
}
@keyframes icon-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-9deg) scale(1.06); }
  50% { transform: rotate(8deg) scale(1.06); }
  75% { transform: rotate(-4deg); }
}

/* 색면 구역 */
.block {
  position: relative;
  margin-top: -44px;
  padding: 72px 0 112px;
  border-radius: 44px 44px 0 0;
}

.b-butter { background: var(--butter); }
.b-mint { background: var(--mint); }
.b-sky { background: var(--sky); }
.b-lilac { background: var(--lilac); }
.b-apricot { background: var(--apricot); }

h2 {
  font-size: clamp(1.65rem, 6.2vw, 2.4rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.sec-count { display: inline-block; margin-top: 10px; padding: 2px 14px; border: 3px solid var(--ink); border-radius: 999px; background: var(--white); font-size: 1rem; font-weight: 800; }
.sec-lead { margin: 12px 0 30px; max-width: 36em; font-size: 1.125rem; color: var(--ink-soft); }
.about-grid .sec-lead { margin-bottom: 14px; color: var(--ink); }

/* 카드 */
.cards { display: grid; gap: 22px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 28px;
  border: 3px solid var(--ink);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .2s;
}

.card:hover { transform: translateY(-4px); }

.card h3 { font-size: 1.4rem; font-weight: 900; line-height: 1.35; }
.card p { color: var(--ink-soft); }

.icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 104px;
  height: 104px;
  margin-bottom: 4px;
  border: 3px solid var(--ink);
  border-radius: 34px 34px 34px 12px;
}

.icon svg { width: 76px; height: 76px; }
.card:hover .icon svg, .card:focus-within .icon svg { animation: icon-wiggle .6s; }

.c-peach { background: var(--peach); }
.c-mint { background: var(--mint); }
.c-sky { background: var(--sky); }
.c-lilac { background: var(--lilac); }
.c-butter { background: var(--butter); }

.badge {
  align-self: flex-start;
  padding: 1px 14px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
}

.card .badge { color: var(--ink); }
.badge::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--ink); }
.badge.on { background: var(--mint); }
.badge.in { background: var(--lilac); }

.card .btn { align-self: flex-start; margin-top: 10px; }
.card-lead + .card-lead { margin-top: 40px; }

.flag {
  position: absolute;
  top: -16px;
  right: 18px;
  padding: 2px 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-weight: 900;
  font-size: 1rem;
  transform: rotate(2deg);
}

.card-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* 불편 → 그래서 */
.story { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

.tag {
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.tag.q { background: var(--butter); }
.tag.a { background: var(--mint); }

.card .next { margin-top: auto; padding-top: 4px; color: var(--ink); font-weight: 800; }

/* 우리 이야기 */
.about-grid { display: grid; gap: 28px; align-items: center; }
.duo { width: 100%; max-width: 300px; height: auto; justify-self: center; }
.about-grid p:not(.sec-lead):not(.eyebrow):not(.sticker) { color: var(--ink); max-width: 36em; }
.sticker-flat { margin-top: 18px; transform: rotate(2deg); }

/* 연락 */
.card-mail { align-items: flex-start; max-width: 560px; }
.mail { margin-top: 4px; font-weight: 900; font-size: clamp(1rem, 4.6vw, 1.5rem); overflow-wrap: anywhere; }
.mail a { color: var(--ink); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.mail a:hover { background: var(--butter); }

.copy {
  align-self: flex-start;
  min-height: 44px;
  padding: 0 18px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.copy:hover { background: var(--butter); }
.copy-status { min-height: 1.75em; margin-top: 16px; font-weight: 800; }

/* 바닥글 */
.foot {
  position: relative;
  margin-top: -44px;
  padding: 56px 0 44px;
  border-radius: 44px 44px 0 0;
  background: var(--lilac-soft);
  color: var(--ink);
}

.foot .wrap { display: grid; gap: 6px; }
.foot p { color: var(--ink-soft); }
.foot b { color: var(--ink); }

@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .card-lead { flex-direction: row; align-items: center; gap: 32px; padding: 32px 36px; }
  .card-lead .icon { width: 168px; height: 168px; border-radius: 56px 56px 56px 18px; }
  .card-lead .icon svg { width: 124px; height: 124px; }
  .card-lead .card-body { max-width: 34em; }
  .about-grid { grid-template-columns: 300px 1fr; gap: 56px; }
}

@media (min-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 24px; }
  .top nav a { padding: 8px 16px; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .logo { font-size: 1.05rem; }
  .btn { padding: 0 22px; }
  .card { padding: 24px 20px 26px; }
  .top nav a { padding: 6px 10px; }
  .hero { padding-bottom: 48px; }
  .hero-art { width: 85%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 그래픽 노블 그림 */
img.novel { border-radius: 24px; border: 3.5px solid var(--ink, #2A2350); object-fit: cover; aspect-ratio: 16 / 10; }
.duo.novel { max-width: 460px; width: 100%; }

/* 카드 예시 화면 */
figure.shot { margin: 6px 0 0; border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--white); }
figure.shot img { display: block; width: 100%; height: auto; }
figure.shot figcaption { padding: 6px 14px; border-top: 3px solid var(--ink); background: var(--lilac-soft); color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.5; }
figure.shot-phone { width: 100%; max-width: 240px; align-self: center; }
figure.shot-tall { width: 100%; max-width: 420px; }
figure.shot figcaption { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
/* 이야기 카드: 그림을 카드 맨 아래에 맞춘다(옆 카드와 높이가 달라도 빈 곳이 그림 위로 간다) */
.card:not(.card-lead) > .card-body { flex: 1; }
.card:not(.card-lead) figure.shot { margin-top: auto; }
