/* 오늘의 그림일기 웹사이트. 값은 docs/design/tokens.css(룩 리프레시 A "종이" · 피치)와 캐릭터 세 색을 따른다. */
:root {
  --paper: #fff8f2;
  --card: #ffffff;
  --ink: #2a211d;
  --sub: #6b5e57;
  --line: #e6dcd4;
  --grid: #f1e6dd;
  --tint: #ffeadd;
  --tint-strong: #ffd3b4;
  --accent: #f0785f;
  --accent-ink: #b5432d;
  --orange: #f7640a;
  --yellow: #f3bc13;
  --blue: #0d39e7;
  --radius-card: 20px;
  --radius-panel: 28px;
  --shadow-card:
    0 1px 2px rgba(42, 33, 29, 0.04), 0 10px 28px rgba(42, 33, 29, 0.07);
  --shadow-float: 0 12px 32px rgba(42, 33, 29, 0.14);
  --font:
    'Pretendard Variable', 'Pretendard JP Variable', Pretendard, -apple-system,
    BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Hiragino Sans', 'Malgun Gothic',
    sans-serif;
  --gutter: 20px;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body:lang(ja) {
  word-break: auto-phrase;
  overflow-wrap: normal;
  line-break: strict;
}
:lang(ja) p,
:lang(ja) li,
:lang(ja) h1,
:lang(ja) h2,
:lang(ja) h3 {
  text-wrap: pretty;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 700;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* 상단 */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 248, 242, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 58px;
  height: auto;
}
.brand-small img {
  width: 45px;
}
.langs {
  display: flex;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.langs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  color: var(--sub);
  white-space: nowrap;
}
.langs a[aria-current='page'] {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.lang-short {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 479px) {
  .langs a {
    padding: 0 10px;
    min-width: 44px;
    justify-content: center;
  }
  .top .lang-full {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .top .lang-short {
    display: inline;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  .brand img {
    width: 48px;
  }
}

/* 첫 화면 — 원고지 줄 위에 쓴 제목 */
.hero {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: -1px -1px;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  padding-top: 44px;
  padding-bottom: 56px;
}
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--tint);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(36px, 8.4vw, 60px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}
.lead {
  margin-top: 20px;
  font-size: 18px;
  color: var(--sub);
  max-width: 34em;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.badge {
  display: inline-flex;
  border-radius: 10px;
}
.badge img {
  height: 50px;
  width: auto;
}
.badges-center {
  justify-content: center;
}
.price {
  margin-top: 12px;
  font-size: 14px;
  color: var(--sub);
}

.qr-card {
  display: none;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  max-width: 420px;
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 16px 20px 16px 16px;
  box-shadow: var(--shadow-card);
}
.qr {
  width: 104px;
  height: 104px;
  flex: none;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.qr svg {
  display: block;
  width: 100%;
  height: 100%;
}
.qr-title {
  font-weight: 700;
  font-size: 16px;
}
.qr-body {
  margin-top: 4px;
  font-size: 14px;
  color: var(--sub);
}

.hero-art {
  position: relative;
  height: 440px;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}
.shot {
  position: absolute;
  width: 46%;
  max-width: 250px;
  border-radius: 26px;
  box-shadow: var(--shadow-float);
}
.shot-back {
  right: 4%;
  top: 24px;
  transform: rotate(6deg);
}
.shot-front {
  left: 18%;
  top: 0;
  transform: rotate(-4deg);
}
.hero-char {
  position: absolute;
  left: -2%;
  bottom: 0;
  width: 40%;
  max-width: 210px;
  filter: drop-shadow(0 8px 14px rgba(42, 33, 29, 0.12));
}

/* 섹션 공통 */
section {
  padding: 56px 0;
}
h2 {
  font-size: clamp(26px, 5.4vw, 36px);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

/* 화면 모음 */
.gallery {
  padding-top: 24px;
}
.gallery-nav {
  display: none;
  gap: 8px;
}
.round {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.round svg {
  width: 22px;
  height: 22px;
}
.round:active {
  transform: scale(0.96);
}
.rail {
  list-style: none;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 24px var(--gutter) 28px;
  margin-top: 4px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail li {
  flex: none;
  width: min(64vw, 250px);
  scroll-snap-align: center;
}
.rail img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

/* 이럴 때 — 장면 그림 카드. 캐릭터는 카드 하나에 하나, 셋이 함께는 가족에만. 낙서는 크레파스 선 */
.use-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}
.use {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 16px 12px 12px;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.use-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 10px 8px 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fdf0c8;
}
.use-2 .use-art {
  background: var(--tint);
}
.use-3 .use-art {
  background: #e5eafd;
}
.use-4 .use-art {
  background: #fce4df;
  align-items: center;
  padding: 8px;
}
.use-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.use-art svg {
  display: block;
  width: 100%;
  height: 100%;
}
.scribble path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 9;
}
.scribble .s-blue {
  stroke: var(--blue);
}
.scribble .s-orange {
  stroke: var(--orange);
}
.scribble .s-yellow {
  stroke: var(--yellow);
}
.scribble .s-thin {
  stroke-width: 3.5;
  opacity: 0.45;
}
.use-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

/* 그림일기 팀의 일기 — 앱의 일기 보기처럼: 쓴 사람 · 날씨, 제목, 그림, 줄 친 본문 */
.section-lead {
  margin-top: 10px;
  color: var(--sub);
}
.diary-list {
  list-style: none;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 24px var(--gutter) 28px;
  scrollbar-width: none;
}
.diary-list::-webkit-scrollbar {
  display: none;
}
.diary-list > li {
  flex: none;
  width: min(82vw, 320px);
  scroll-snap-align: center;
  display: flex;
}
.section-head .section-lead {
  margin-top: 10px;
}
.diary {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px 16px 8px;
}
.diary-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--sub);
}
.diary-weather {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent-ink);
  font-weight: 700;
}
.diary-title {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.35;
}
.diary-pic {
  margin-bottom: 12px;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.diary-body {
  margin-top: 6px;
  font-size: 15px;
  line-height: 28px;
  padding-bottom: 6px;
  background-image: linear-gradient(transparent 27px, var(--divider) 27px);
  background-size: 100% 28px;
}
:root {
  --divider: #f1e9e3;
}

/* 보호자분께 */
.panel {
  background: var(--tint);
  border-radius: var(--radius-panel);
  padding: 32px 24px;
}
.parents-panel {
  display: grid;
  gap: 24px;
  align-items: center;
}
.parents-char {
  width: 220px;
  margin: 0 auto;
}
.panel-lead {
  margin-top: 12px;
  color: var(--sub);
}
.checks {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  color: var(--accent-ink);
}

/* 무료와 프리미엄 */
.price-grid,
.support-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.card h3 {
  font-size: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.card .checks {
  margin-top: 16px;
}
.card p {
  margin-top: 10px;
  color: var(--sub);
}
.card-premium {
  background: linear-gradient(160deg, #fff 0%, #fff 55%, var(--tint) 100%);
  outline: 2px solid var(--tint-strong);
  outline-offset: -2px;
}
.note {
  font-size: 14px;
  font-weight: 400;
  color: var(--sub);
  letter-spacing: 0;
}
.cta {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-top: 48px;
}
.cta img {
  width: 200px;
}
.cta .badges {
  margin-top: 12px;
  width: 100%;
}

/* 문의 */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.pill:active {
  transform: scale(0.98);
}
.steps {
  margin-top: 14px;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}
.steps li::marker {
  font-weight: 700;
  color: var(--accent-ink);
}
.steps a {
  color: var(--accent-ink);
}
.small {
  font-size: 14px;
  margin-top: 14px;
}
.small a {
  display: inline-block;
  padding: 6px 0;
}
.card .small a {
  color: var(--accent-ink);
}

/* 바닥 */
.foot {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  margin-top: 24px;
}
.foot-inner {
  display: grid;
  gap: 18px;
  justify-items: start;
}
.foot-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}
.foot-links a {
  color: var(--sub);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.foot-links a:hover,
.foot-links a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}
.copy {
  font-size: 13px;
  color: var(--sub);
}

/* 언어 고르기 · /get */
.chooser {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.chooser-main {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 40px 20px;
  text-align: center;
}
.chooser-main img {
  width: 200px;
}
.chooser-main h1 {
  display: grid;
  gap: 4px;
  font-size: 26px;
}
.chooser-langs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.chooser-langs .pill {
  margin-top: 0;
  min-width: 120px;
}
.get-line {
  font-size: 16px;
  color: var(--sub);
}
.get-line b {
  color: var(--ink);
}

@media (min-width: 720px) {
  .diary-list > li {
    width: 300px;
    scroll-snap-align: start;
  }
  .diary-list {
    padding-left: max(
      var(--gutter),
      calc((100vw - 1120px) / 2 + var(--gutter))
    );
    scroll-padding-left: max(
      var(--gutter),
      calc((100vw - 1120px) / 2 + var(--gutter))
    );
  }
  :root {
    --gutter: 32px;
  }
  .use-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .use {
    grid-template-columns: 1fr;
    align-items: start;
    align-content: start;
    gap: 0;
    padding: 12px;
  }
  .use-art {
    aspect-ratio: 3 / 2;
    padding: 16px 16px 0;
  }
  .use-4 .use-art {
    padding: 12px 20px;
  }
  .use-text {
    padding: 14px 8px 8px;
  }
  .price-grid,
  .support-grid {
    grid-template-columns: 1fr 1fr;
  }
  .parents-panel {
    grid-template-columns: 260px 1fr;
    padding: 40px;
    gap: 40px;
  }
  .parents-char {
    width: 100%;
  }
  .gallery-nav {
    display: flex;
  }
  .rail li {
    width: 260px;
    scroll-snap-align: start;
  }
  .rail {
    padding-left: max(
      var(--gutter),
      calc((100vw - 1120px) / 2 + var(--gutter))
    );
    scroll-padding-left: max(
      var(--gutter),
      calc((100vw - 1120px) / 2 + var(--gutter))
    );
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 88px;
  }
  .hero-art {
    height: 580px;
    max-width: 520px;
  }
  .qr-card {
    display: flex;
  }
  section {
    padding: 72px 0;
  }
  .use-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .use-art {
    aspect-ratio: 4 / 3;
    padding: 14px 12px 0;
  }
  .use-4 .use-art {
    padding: 14px 18px;
  }
  .foot-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .foot-inner .langs {
    justify-self: end;
  }
  .copy {
    grid-column: 1 / -1;
  }
}

@media (hover: hover) {
  .badge:hover {
    transform: translateY(-1px);
  }
  .round:hover {
    border-color: var(--ink);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .badge,
  .round,
  .pill {
    transition:
      transform 120ms cubic-bezier(0.2, 0, 0, 1),
      border-color 120ms;
  }
}
