/* Interpurr: the app's sketchbook, as a web page.
   Warm paper, flat pastel paint, brown pencil outlines, handwriting for headings. */

@font-face {
  font-family: "Gaegu";
  src: url("fonts/gaegu-bold-latin.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff8ec;
  --card: #ffffff;
  --side: #ffeef3;
  --ink: #4a3636;
  --ink-soft: #846b6b;
  --stroke: #5b4343;
  --butter: #fff2b5;
  --butter-strong: #f6d365;
  --mint: #cdf3de;
  --mint-strong: #6fcf9f;
  --pink: #ffb2cb;
  --berry: #c9447a;
  --sky: #cdebff;
  --grass: #c4edb5;
  --lavender: #e1d6ff;
  --peach: #ffd8ba;
  --hand: "Gaegu", "Comic Sans MS", "Marker Felt", cursive;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Segoe UI", "Noto Sans KR", sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--berry); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 8px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3, .hand {
  font-family: var(--hand);
  font-weight: 700;
  letter-spacing: 0.02em;
  word-spacing: 0.12em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.9rem, 8.5vw, 5.2rem); }
h2 { font-size: clamp(2rem, 5vw, 2.9rem); }
h3 { font-size: 1.55rem; }

p { margin: 0; max-width: 62ch; }

/* A line drawn by hand: no two corners alike, and a little weight under it. */
.sketch {
  border: 2px solid var(--stroke);
  border-radius: 26px 22px 28px 23px / 23px 28px 22px 27px;
  background: var(--card);
}

/* The highlighter stroke under a heading, as in the app. */
.marker {
  background: linear-gradient(transparent 60%, var(--tint, var(--butter-strong)) 60%, var(--tint, var(--butter-strong)) 92%, transparent 92%);
  padding: 0 0.12em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- top ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hand);
  font-size: 1.75rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 44px; height: 44px; }

.top nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a {
  font-family: var(--hand);
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 14px 12px 15px 12px / 12px 15px 12px 14px;
}
.top nav a:hover, .top nav a[aria-current="page"] { background: var(--butter); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  gap: 28px;
  align-items: center;
  padding-top: 26px;
  padding-bottom: 56px;
}

.hero-words { display: grid; gap: 18px; justify-items: start; }
.hero-words p { font-size: 1.15rem; }

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hand);
  font-size: 1.35rem;
  padding: 12px 22px;
  background: var(--pink);
  color: var(--ink);
  border: 2px solid var(--stroke);
  border-radius: 22px 19px 23px 20px / 20px 23px 19px 22px;
  box-shadow: 0 5px 0 var(--stroke);
}
.soon i { width: 12px; height: 12px; border-radius: 50%; background: var(--berry); border: 2px solid var(--stroke); }

.price { font-family: var(--hand); font-size: 1.2rem; color: var(--ink-soft); }

/* The scene: sky, a hill, and the cat acting out what the app does. */
.scene {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  background: var(--sky);
  border-width: 2.5px;
}
.scene .hill {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -46%;
  height: 72%;
  background: var(--grass);
  border: 2.5px solid var(--stroke);
  border-radius: 50%;
}
.scene .prop { position: absolute; }
.scene .cloud-a { width: 26%; left: 4%; top: 12%; }
.scene .cloud-b { width: 19%; right: 4%; top: 34%; }
.scene .flower-a { width: 6.5%; left: 14%; bottom: 7%; }
.scene .flower-b { width: 5.5%; left: 27%; bottom: 3%; }
.scene .flower-c { width: 5%; right: 25%; bottom: 3%; }
.scene .flower-d { width: 6%; right: 13%; bottom: 8%; }
.scene .star { width: 4.5%; left: 8%; top: 54%; }

.cat {
  position: absolute;
  left: 50%;
  bottom: 1.5%;
  height: 97%;
  aspect-ratio: 1;
  transform: translateX(-50%);
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cat .frame { opacity: 0; }
.cat .frame.on { opacity: 1; }
.cat .body { position: absolute; inset: 0; transform-origin: 50% 96.5%; animation: breathe 3.8s ease-in-out infinite; }
.cat .bubble { transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1); }
.cat .bubble-a { transform-origin: 16.4% 22.3%; }
.cat .bubble-wen { transform-origin: 83.2% 23.8%; }
.cat .bubble.pop { transform: scale(1.22); }
.cat.hop .body { animation: hop 0.66s ease-out 1; }

@keyframes breathe { 50% { transform: scale(1.008, 1.022); } }
@keyframes hop {
  0%, 100% { transform: translateY(0); }
  27% { transform: translateY(-5%); }
  58% { transform: translateY(0); }
  79% { transform: translateY(-2.2%); }
}

/* What the cat writes, as the app shows it. */
.heard {
  margin-top: 16px;
  min-height: 7.4em;
  display: grid;
  align-content: start;
  justify-items: start;
}
.line {
  background: var(--butter);
  padding: 14px 20px 12px;
  max-width: 100%;
  border-radius: 22px 20px 24px 8px / 20px 24px 20px 8px;
  transition: opacity 0.35s ease;
}
.line .theirs { font-size: 1.22rem; font-weight: 600; line-height: 1.4; }
.line .source { font-size: 0.95rem; color: var(--ink-soft); }
.line .theirs:empty { display: none; }
.line.waiting { background: #fffaf0; border-color: #b8a5a0; }
.line.waiting .source { font-size: 1.05rem; }
.line.gone { opacity: 0; }

/* ---------- sections ---------- */

section { padding-top: 56px; padding-bottom: 56px; }
section > .wrap > h2 { margin-bottom: 14px; }
.lead { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 30px; }

.band-pink { background: var(--side); border-top: 2px solid var(--stroke); border-bottom: 2px solid var(--stroke); }

.shot { overflow: hidden; background: var(--paper); box-shadow: 0 8px 0 rgba(91, 67, 67, 0.16); }
.shot img { width: 100%; height: auto; }

.does { display: grid; gap: 30px; align-items: center; }
.does ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.does li { display: grid; grid-template-columns: 22px 1fr; gap: 4px 12px; align-items: start; }
.does li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 0.62em;
  border-radius: 50%;
  border: 2px solid var(--stroke);
  background: var(--dot, var(--butter-strong));
}
.does li h3 { grid-column: 2; }
.does li p { grid-column: 2; }

/* Four reasons, each with its own picture. Not a row of like cards. */
.reasons { display: grid; gap: 22px; }
.reason { display: grid; gap: 16px; padding: 26px 24px; align-items: center; }
.reason h3 { margin-bottom: 8px; font-size: 1.9rem; }
.reason .art { justify-self: center; }
.reason.small { background: var(--mint); }
.reason.drawn { background: var(--card); }
.reason.llm { background: var(--lavender); }
.reason.once { background: var(--butter); }

.poses { display: flex; justify-content: center; align-items: flex-end; gap: 0; flex-wrap: wrap; }
.poses img { width: 31%; max-width: 150px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  font-family: var(--hand);
  font-size: 1.1rem;
  padding: 5px 14px;
  background: var(--card);
  border: 2px solid var(--stroke);
  border-radius: 16px 14px 17px 14px / 14px 17px 14px 16px;
}

.tag {
  font-family: var(--hand);
  font-size: 3.4rem;
  line-height: 1;
  padding: 18px 26px 14px;
  background: var(--pink);
  border: 2.5px solid var(--stroke);
  border-radius: 30px 24px 32px 26px / 26px 32px 24px 30px;
  box-shadow: 0 6px 0 var(--stroke);
  transform: rotate(-3deg);
  text-align: center;
}
.tag small { display: block; font-size: 1.15rem; margin-top: 4px; }

.dots { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dots li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.dots li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 0.5em;
  border-radius: 50%;
  border: 2px solid var(--stroke);
  background: var(--dot, var(--mint-strong));
}

/* ---------- screens ---------- */

.screens { display: grid; gap: 22px; }
.screens figure { margin: 0; display: grid; gap: 10px; }
.screens figcaption { font-family: var(--hand); font-size: 1.25rem; }
.screens .phone { max-width: 300px; justify-self: center; border-radius: 34px 30px 36px 32px / 32px 36px 30px 34px; }

.facts { display: grid; gap: 22px; }
.facts h3 { margin-bottom: 6px; }

/* ---------- foot ---------- */

footer { border-top: 2px solid var(--stroke); background: var(--side); padding-top: 26px; padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--hand); font-size: 1.2rem; }
footer .links a { color: var(--ink); }
footer small { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- reading pages ---------- */

.page { padding-top: 34px; padding-bottom: 70px; }
.page .sheet { padding: 30px 24px 34px; max-width: 800px; }
.page h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); margin-bottom: 8px; }
.page .when { color: var(--ink-soft); margin-bottom: 26px; }
.page h2 { font-size: 1.8rem; margin: 34px 0 10px; }
.page p, .page li { max-width: 66ch; }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 1.2em; margin: 10px 0 0; display: grid; gap: 6px; }
.page .short { background: var(--mint); padding: 18px 20px; margin-bottom: 8px; }
.page .short p + p { margin-top: 8px; }

/* ---------- narrow screens ---------- */

@media (max-width: 939px) {
  /* The cat first: it says what this is faster than the words do. */
  .hero-play { order: -1; }
  .hero { padding-top: 14px; }
}

@media (max-width: 560px) {
  .top nav a.far { display: none; }
  .top nav { flex-wrap: nowrap; gap: 0; }
  .top nav a { font-size: 1.08rem; padding: 5px 8px; white-space: nowrap; }
  .brand { font-size: 1.6rem; }
  .soon { font-size: 1.18rem; padding: 11px 16px; word-spacing: 0; white-space: nowrap; }
  .price { font-size: 1.08rem; }
  .reason h3 { font-size: 1.7rem; }
  section { padding-top: 44px; padding-bottom: 44px; }
}

/* ---------- wider screens ---------- */

@media (min-width: 720px) {
  .screens { grid-template-columns: 1fr 1fr; }
  .screens .wide { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .reason { grid-template-columns: 1fr minmax(200px, 300px); padding: 32px 34px; }
  .reason.flip .art { order: -1; }
  .reason.flip { grid-template-columns: minmax(200px, 300px) 1fr; }
  .page .sheet { padding: 44px 48px 50px; }
}

@media (min-width: 940px) {
  .hero { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; padding-top: 44px; }
  .does { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 46px; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .reasons .reason { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .reasons .reason .art { align-self: center; }
  .reasons .reason.flip .art { order: 0; }
  .reasons .reason .art { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cat .body, .cat.hop .body { animation: none; }
  .cat .bubble, .line { transition: none; }
}
