/* Blog pages. Same tokens and type as the landing page (index.html keeps its own inline copy) */
:root {
  --sky-top: #2ea3fe;
  --sky-pale: #eaf5ff;
  --frame: #e4f1fd;
  --ink: #14213d;
  --ink-soft: #55607a;
  --paper: #ffffff;
  --ground: #f4f8fc;
  --display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 17px;
  transition: transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 12px 30px -10px rgba(0, 40, 90, .45); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }

/* ---------- Sky header: the hero's look, sized to its content ---------- */
.sky-frame { padding: 14px 14px 0; }
.sky {
  position: relative; overflow: hidden; border-radius: 36px; color: #fff;
  background: linear-gradient(180deg, #2ea3fe 0%, #4fb3fe 60%, #8fd0ff 100%);
  padding-bottom: 46px;
}
nav.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 24px 0 14px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: -.5px; text-decoration: none; line-height: 1; }
.nav-links { display: flex; gap: 40px; font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: .2px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
nav.top .btn { justify-self: end; min-height: 50px; }

.post-head { display: grid; grid-template-columns: 1fr 240px; gap: 40px; align-items: end; padding-top: 30px; }
.post-head h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.01em;
  margin: 14px 0 16px; max-width: 18ch; text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0, 60, 140, .18);
}
.standfirst { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; font-weight: 600; margin: 0 0 18px; max-width: 46ch; }
.byline { margin: 0; font-weight: 700; font-size: 15px; opacity: .9; }
.crumb { display: inline-flex; align-items: center; min-height: 44px; margin-right: 12px; font-family: var(--display); font-weight: 500; text-decoration: none; opacity: .95; }
.crumb:hover { text-decoration: underline; }
.post-char { width: 240px; filter: drop-shadow(0 18px 18px rgba(0, 50, 110, .25)); margin-bottom: -10px; }

.tag {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 14px;
  color: #1b8fea; background: var(--sky-pale); padding: 6px 13px; border-radius: 999px;
}
.tag-light { color: #fff; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); }

/* ---------- Article ---------- */
.prose { max-width: 680px; margin: 64px auto 0; font-size: 19px; line-height: 1.7; color: #26314d; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); color: var(--ink); letter-spacing: -.01em; scroll-margin-top: 20px; }
.prose h2 { font-weight: 700; font-size: clamp(28px, 3vw, 34px); line-height: 1.12; margin: 56px 0 14px; }
.prose h3 { font-weight: 600; font-size: 24px; line-height: 1.2; margin: 38px 0 10px; }
.prose h4 { font-weight: 600; font-size: 20px; margin: 28px 0 8px; }
.prose p { margin: 0 0 22px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 26px; }
.prose li { margin-bottom: 10px; padding-left: 4px; }
.prose li::marker { color: var(--sky-top); font-weight: 800; }
.prose strong { color: var(--ink); }
.prose a { color: #1b8fea; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose blockquote {
  margin: 30px 0; padding: 22px 26px; border-radius: 24px; background: var(--sky-pale);
  font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.4; color: var(--ink);
}
.prose blockquote p { margin: 0; }
.disclosure { margin-top: 40px !important; padding-top: 20px; border-top: 1px solid #e3e9f2; font-size: 15px; color: var(--ink-soft); }

/* ---------- App card ---------- */
.cta {
  display: grid; grid-template-columns: 170px 1fr; gap: 30px; align-items: center;
  max-width: 780px; margin: 60px auto 0; padding: 34px 40px 34px 30px; border-radius: 36px;
  background: linear-gradient(160deg, #2ea3fe, #6cc3ff); color: #fff;
}
.cta img { width: 170px; filter: drop-shadow(0 14px 14px rgba(0, 50, 110, .25)); }
.cta h2 { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; margin: 0 0 10px; }
.cta p { margin: 0 0 20px; font-weight: 600; line-height: 1.55; }

/* ---------- Cards ---------- */
.index { margin-top: 56px; }
.related { max-width: 1000px; margin: 90px auto 0; }
.related h2 { font-family: var(--display); font-weight: 700; font-size: 34px; text-align: center; margin: 0 0 30px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  border-radius: 30px; background: #fff; box-shadow: 0 14px 34px -22px rgba(20, 40, 80, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(20, 40, 80, .5); }
.card-art { display: grid; place-items: center; height: 190px; }
.card-art img { height: 170px; width: auto; margin-top: 30px; }
.t-teddy { background: linear-gradient(160deg, #fff1c7, #ffe29a); }
.t-dino { background: linear-gradient(160deg, #d8f6e8, #b5ecd1); }
.t-turtle { background: linear-gradient(160deg, #e3f2ff, #c4e3ff); }
.t-bunny { background: linear-gradient(160deg, #ffe6e6, #ffcdd2); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 23px; line-height: 1.18; margin: 0; }
.card p { margin: 0; color: var(--ink-soft); line-height: 1.5; font-size: 16px; }
.card .tag { align-self: flex-start; }
.card .meta { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }

footer { padding: 70px 0 50px; color: var(--ink-soft); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer .logo { font-size: 28px; color: var(--sky-top); }
footer nav { display: flex; align-items: center; gap: 24px; }
footer a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
footer a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  nav.top { grid-template-columns: 1fr auto; }
  .post-head { grid-template-columns: 1fr 150px; gap: 20px; }
  .post-char { width: 150px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .sky-frame { padding: 8px 8px 0; }
  .sky { border-radius: 28px; padding-bottom: 30px; }
  nav.top { padding: 18px 0 8px; }
  .logo { font-size: 34px; }
  nav.top .btn { min-height: 44px; font-size: 15px; padding: 0 18px; }
  .post-head { grid-template-columns: 1fr; padding-top: 14px; }
  .post-char { display: none; }
  .prose { margin-top: 40px; font-size: 18px; }
  .prose h2 { margin-top: 44px; }
  .cta { grid-template-columns: 1fr; text-align: center; padding: 30px 24px; gap: 10px; border-radius: 30px; }
  .cta img { width: 120px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; }
  footer .wrap { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .card { transition: none; }
}
