/* 글꼴 — 본문은 누리집 공용 UmteoSans(/assets/site.css 와 같은 파일, scripts/site-fonts.mjs 가 모든 쪽 글자로 자른다),
   명조는 고운바탕(OFL)을 이 쪽 글자로 잘라 둔 보통 · 굵게 두 벌(umteo-serif-home.chars.txt). 글을 고치면 두 벌도 다시 자른다 */
@font-face {
  font-family: UmteoSerif;
  src: url("/assets/fonts/umteo-serif-home-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: UmteoSerif;
  src: url("/assets/fonts/umteo-serif-home-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: UmteoSans;
  src: url("/assets/fonts/umteo-sans.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 82px; background: var(--bg); color: var(--ink); }
body { margin: 0; font: 1rem/1.65 var(--sans); word-break: keep-all; overflow-wrap: anywhere; }
body::before {
  position: fixed; z-index: -1; inset: 0; pointer-events: none; content: "";
  background: url("paper.webp") center / 512px;
  mix-blend-mode: multiply; opacity: .05;
}
:root[data-theme="dark"] body::before { opacity: .025; }
h1, h2, h3, p, ul, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
button, summary { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.21; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.8vw, 3.25rem); }
h3 { font-size: 1.15rem; line-height: 1.4; }
p { text-wrap: pretty; }
.shell { width: min(100% - 32px, 1136px); margin-inline: auto; }
.section { margin-block: clamp(76px, 10vw, 140px); }
.section-heading { margin-bottom: clamp(24px, 4vw, 52px); }
.section-heading.with-link { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 8px 16px; background: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-head { position: sticky; z-index: 5; top: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.head-inner { min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.wordmark { position: relative; flex: none; font: 700 1.6rem/1.2 var(--serif); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.sprout { display: inline-block; align-self: center; width: .38em; height: .2em; margin: -.58em 0 0 .1em; background: var(--brand-ink); border-radius: 100% 0; transform: rotate(-13deg); }
.desktop-nav, .head-actions { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(8px, 2vw, 26px); }
.desktop-nav a, .head-app, .theme-toggle, .mobile-menu summary {
  display: inline-flex; align-items: center; min-height: 44px; gap: 5px;
  color: var(--ink); font-size: .875rem; font-weight: 650; text-decoration: none;
}
.desktop-nav a:hover, .head-app:hover { color: var(--brand-ink); text-decoration: underline; }
.head-app { color: var(--brand-ink); }
.theme-toggle { display: none; background: none; border: 0; padding: 0 4px; cursor: pointer; }
:root[data-theme] .theme-toggle { display: inline-flex; }
.when-dark, :root[data-theme="dark"] .when-light { display: none; }
:root[data-theme="dark"] .when-dark { display: inline; }
.mobile-menu { position: relative; display: none; }
.mobile-menu summary { list-style: none; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; z-index: 6; top: 100%; right: 0; min-width: 128px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-overlay); }
.mobile-menu a { display: flex; align-items: center; min-height: 44px; padding-inline: 9px; }

.hero { display: grid; align-items: center; gap: 0; padding-top: clamp(16px, 4.8vw, 68px); }
.book {
  position: relative; padding: clamp(8px, 1.3vw, 16px); background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px 8px 3px 3px; box-shadow: 0 4px 0 var(--line), 0 12px 26px -24px var(--accent-ink);
}
.book img { width: 100%; height: auto; aspect-ratio: 1.44; object-fit: cover; border-radius: 3px; }
.hero-notebook {
  position: relative; isolation: isolate; display: grid; align-content: center; justify-items: start;
  padding: clamp(26px, 5vw, 68px) clamp(20px, 5vw, 72px); border: 1px solid var(--line);
  border-radius: 3px 3px 8px 8px; background: var(--surface); box-shadow: 0 4px 0 var(--line);
}
.hero-notebook::after {
  position: absolute; z-index: -1; inset: 15% 8%; content: ""; pointer-events: none;
  background: repeating-linear-gradient(transparent 0 35px, var(--line) 35px 36px);
  mask-image: linear-gradient(transparent, #000 26%, #000 74%, transparent);
  opacity: .35;
}
.hero-kicker { margin-bottom: 11px; color: var(--brand-ink); font-size: .875rem; font-weight: 680; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); font-weight: 700; }
.hero-line { margin-top: 13px; color: var(--sub); font-size: clamp(1rem, 1.5vw, 1.25rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 19px; margin-top: 24px; }
.button, .quiet-link, .story-link { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; font-size: .9375rem; font-weight: 680; }
.button { min-height: 48px; justify-content: center; padding: 8px 17px; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; }
.button.outline { color: var(--brand-ink); background: var(--surface); }
.button.outline:hover { background: var(--brand-soft); }
.story-link { margin-top: 7px; color: var(--sub); font-size: .875rem; }

.intro { display: grid; align-items: center; gap: 18px; text-align: center; }
.intro-art { margin-inline: auto; width: min(66%, 275px); }
.intro-art img { width: 100%; height: auto; }
.intro-copy h2 { display: inline-flex; align-items: center; margin: 9px 0 12px; font-size: clamp(2.9rem, 6vw, 5rem); font-weight: 700; }
.intro-copy p { color: var(--sub); }
.intro-note { font-family: var(--serif); font-size: clamp(1rem, 2.2vw, 1.5rem); line-height: 1.55; }
.wide-only { display: none; }

.promise-strip { padding: clamp(46px, 6vw, 88px) 0; background: var(--sunken); border-block: 1px solid var(--line); }
.promises { display: grid; gap: 10px; }
.promises article { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 5px 14px; align-items: start; padding: 17px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.promises svg { width: 36px; grid-row: 1 / span 2; color: var(--brand-ink); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.promises p { color: var(--sub); font-size: .9375rem; }

.day-row { display: grid; gap: clamp(12px, 3vw, 40px); align-items: center; padding-block: clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.day-row:first-of-type { padding-top: 0; }
.day-row:last-child { border-bottom: 0; padding-bottom: 0; }
.day-art { display: block; }
.day-art img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; }
:root[data-theme="dark"] .day-art img { filter: brightness(.90); }
.day-demo { display: grid; justify-items: center; gap: 20px; padding: 20px 12px; text-align: center; }
.phone {
  width: min(58vw, 216px); padding: 6px; border: 1.5px solid var(--line-strong); border-radius: 27px;
  background: var(--surface); box-shadow: var(--shadow-card);
}
.phone img { width: 100%; height: auto; border-radius: 21px; }
.time-label { color: var(--brand-ink); font-size: .875rem; font-weight: 700; }
.day-copy h3 { margin: 7px 0 9px; font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 400; }
.day-copy > p:last-child { color: var(--sub); font-size: .9375rem; }

.feature-section { padding-block: clamp(46px, 7vw, 90px); background: var(--sunken); border-block: 1px solid var(--line); }
.fc-lede { color: var(--sub); margin-bottom: 22px; }
.feature-groups { display: grid; gap: 25px; }
.feature-group h3 { color: var(--brand-ink); margin-bottom: 12px; font-size: 1rem; }
.fc-grid { padding: 0; display: grid; gap: 9px; list-style: none; }
.fc { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.fc-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; }
.fc-head .fc-t { color: var(--ink); margin: 0; font-size: 1rem; }
.fc-ico { display: inline-flex; color: var(--brand-ink); }
.fc-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.fc-chip { margin-left: auto; color: var(--brand-ink); font-size: .8125rem; }
.fc-x { margin-top: 6px; color: var(--sub); font-size: .875rem; }
.fc-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .875rem; font-weight: 650; }

.guides { max-width: 920px; }
.home-guides { margin-top: 25px; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.home-guides li { display: grid; align-items: center; gap: 5px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--sub); font-size: .875rem; }
.home-guides a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 1.08rem; }
.home-guides a:hover { color: var(--brand-ink); }
.guide-meta { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.guide-meta time { font-variant-numeric: tabular-nums; }
.home-guides-more { margin-top: 16px; }
.home-guides-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 680; }

.letter-section { max-width: 755px; }
.letter {
  position: relative; padding: clamp(22px, 6vw, 60px); overflow: hidden;
  border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: 0 5px 0 var(--line);
}
.letter::before { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--brand-ink); opacity: .36; content: ""; }
.letter h2 { margin-bottom: 20px; }
.letter p + p { margin-top: 14px; }
.letter .signature { margin-top: 22px; color: var(--brand-ink); font-family: var(--serif); }
.app-band { padding: clamp(55px, 8vw, 110px) 0; background: var(--band); color: var(--on-band); text-align: center; }
.app-band h2 { font-size: clamp(1.8rem, 4vw, 3.45rem); }
.app-band p { margin: 16px 0 25px; color: var(--band-sub); }
.primary { color: var(--on-accent); background: var(--accent); border: 1.5px solid var(--accent-ink); }
.primary:hover { background: var(--accent-hover); }
.primary:focus-visible { outline-color: var(--on-band); }

.site-foot { padding: 40px 0; background: var(--sunken); }
.footer-inner { display: grid; gap: 18px 40px; }
.legal { margin-top: 9px; max-width: 590px; color: var(--sub); font-size: .875rem; }
.legal p + p { margin-top: 8px; }
.footer-inner nav { display: flex; align-content: start; flex-wrap: wrap; gap: 0 18px; }
.footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }

@media (min-width: 740px) {
  .shell { width: min(100% - 64px, 1136px); }
  .head-inner { min-height: 64px; }
  .hero { grid-template-columns: minmax(0, 1.18fr) minmax(0, .91fr); gap: clamp(16px, 2.6vw, 38px); }
  .book { transform: rotate(-1.4deg); border-radius: 8px; }
  .hero-notebook { min-height: clamp(350px, 34vw, 505px); border-radius: 8px; transform: rotate(.55deg); }
  .intro { max-width: 780px; grid-template-columns: .85fr 1fr; gap: 40px; text-align: left; }
  .intro-art { width: min(100%, 290px); }
  .wide-only { display: inline; }
  .promises { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .promises article { display: block; padding: clamp(17px, 2.4vw, 32px); }
  .promises h3 { margin: 10px 0 7px; }
  .day-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .daytime .day-art { order: 2; }
  .day-demo { padding: 14px; }
  .feature-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .home-guides li { grid-template-columns: minmax(0,1fr) auto; padding: 12px 4px; }
  .footer-inner { grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); }
}
@media (min-width: 1024px) {
  .day-demo { grid-template-columns: minmax(0, .93fr) minmax(0, 1fr); justify-items: start; text-align: left; }
  .phone { width: min(100%, 216px); }
  .day-copy { align-self: center; }
  .feature-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 739px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .head-actions { gap: 10px; }
  .head-inner { gap: 4px 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto; } }
@media (forced-colors: active) { .button, .phone, .book, .hero-notebook { border-color: CanvasText; } }

/* 표지 = 그림책 이야기 여는 문 — 예전 첫 화면 소개 모션 자리를 『한 걸음씩』(/story/)이 이어받는다 (대표 2026-11-11) */
a.book { display: block; color: inherit; text-decoration: none; }
a.book:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.book-play {
  position: absolute; left: 50%; bottom: clamp(12px, 2.6vw, 26px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 20px;
  border: 1.5px solid var(--accent-ink); border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-size: 1rem; font-weight: 720; white-space: nowrap; box-shadow: 0 6px 18px -10px rgb(70 50 20 / .45);
  transition: background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.book-time { font-size: .8125rem; font-weight: 600; opacity: .8; }
a.book:hover .book-play { background: var(--accent-hover); }
a.book:active .book-play { transform: translateX(-50%) translateY(1px); }
.app-band .launch-sub { margin-top: 12px; color: var(--band-sub); line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .book-play { transition: none; } }

/* 테마 버튼 아이콘 — 다른 쪽(site.css)과 같은 달 · 해. 밝게면 달, 어둡게면 해 */
.theme-toggle { align-items: center; gap: 6px; }
.theme-toggle svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ico-sun, :root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
/* 좁은 휴대폰(400 미만)에서는 머리 한 줄에 들어가게 '보기'를 접는다 — 버튼 이름은 그대로 읽힌다 */
@media (max-width: 399px) { .theme-toggle .tt-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
/* 첫 상자는 문단 둘 + 링크 — 그림 칸(1열) 옆 2열에 차례로 쌓는다 */
.promises article > :not(svg) { grid-column: 2; }
.promises article:has(.trust-sub) svg { grid-row: 1 / span 4; }
.promises .trust-sub { margin-top: 2px; color: var(--sub); font-size: .875rem; }
.promises .quiet-link { justify-self: start; font-size: .875rem; }
.hero { position: relative; }
.hero > .watch-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
