/* ==========================================================================
   UNICEF ECCD BOOKS: a calm, white-first print specimen. UNICEF blue opens
   and closes the page; between them real pages sit
   large with thin annotation lines. Nothing to tap or play, only slow reveals.
   Fonts: Schibsted Grotesk for titles, Geist for text, Hind Siliguri for
   Bangla. The July samples in the type section are cut from the print file.
   ========================================================================== */

.ue-page {
  --coral: #f15b67;
  --blue: #1cabe2;
  --blue-d: #0a76a6;
  --ink: #1d2230;
  --ink-2: rgba(29, 34, 48, 0.72);
  --ink-3: rgba(29, 34, 48, 0.52);
  --line: rgba(29, 34, 48, 0.14);
  --lime: #dfebaf;
  --pink: #fad1de;
  --title: "Schibsted Grotesk", "Hind Siliguri", system-ui, sans-serif;
  --sans: "Geist", "Hind Siliguri", system-ui, sans-serif;
  --bn: "Hind Siliguri", system-ui, sans-serif;
  --mono: "Google Sans Code", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hdr: 121px;
  background: #fff;
  color: var(--ink);
}

.ue-page .site-header {
  position: relative;
  z-index: 5;
}

.ue-page .site-header .brand,
.ue-page .site-header .menu-btn {
  color: #fff;
}

.ue-page .site-header .pill-chat {
  background: var(--ink);
  color: #fff;
}

.ue {
  margin-top: calc(-1 * var(--hdr));
  overflow: clip;
  font-family: var(--sans);
}

.ue-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 40px;
}

.ue img {
  display: block;
  max-width: 100%;
  height: auto;
}

.ue figure {
  margin: 0;
}

.ue [data-zoom] {
  cursor: zoom-in;
}

.ue h2 {
  margin: 0 0 20px;
  max-width: 820px;
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.ue h3 {
  font-family: var(--title);
  font-weight: 700;
}

.ue-tag {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-d);
}

.ue-intro {
  max-width: 660px;
  margin: 0 0 48px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
}

.ue-sec {
  padding-block: 104px;
}

/* ---------- hero ---------- */
.ue-hero {
  padding: calc(var(--hdr) + 60px) 0 96px;
  background: var(--blue);
  color: #fff;
}

.ue-hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.ue-kick {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 15px;
}

.ue-hero h1 {
  margin: 0 0 22px;
  font-family: var(--title);
  font-weight: 800;
  font-size: clamp(46px, 6vw, 92px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.ue-lead {
  max-width: 480px;
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.ue-covers {
  position: relative;
  aspect-ratio: 1 / 0.96;
}

.ue-covers img {
  position: absolute;
}

.ue-c1 {
  left: 0;
  top: 0;
  width: 54%;
}

.ue-c2 {
  right: 0;
  top: 0;
  width: 54%;
}

.ue-c3 {
  left: 16%;
  bottom: 0;
  width: 68%;
}

/* ---------- facts ---------- */
.ue-facts-band {
  border-bottom: 1px solid var(--line);
}

.ue-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 2fr);
  gap: 24px;
  margin-block: 0;
  padding-block: 32px;
}

.ue-facts dt {
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
}

.ue-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.ue-facts .ue-me {
  font-family: var(--title);
  font-weight: 700;
  font-size: 19px;
  color: var(--blue-d);
}

/* ---------- brief ---------- */
.ue-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 72px;
  align-items: center;
}

.ue-brief p:not(.ue-tag),
.ue-art-h p:not(.ue-tag),
.ue-type p:not(.ue-tag) {
  max-width: 620px;
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
}

.ue-brief-art img {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
}

.ue figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
  color: var(--ink-3);
}

/* ---------- three readers ---------- */
.ue-readers {
  background: #f6f6f7;
}

.ue-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1.42fr;
  gap: 32px;
  align-items: end;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.ue-three img {
  width: 100%;
  margin-bottom: 14px;
}

.ue-three h3 {
  margin: 0;
  font-size: 24px;
}

.ue-spec {
  margin: 4px 0 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
}

.ue-three p:last-child {
  min-height: 5.1em;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- module 1: a staircase of page types ---------- */
.ue-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ue-steps li:nth-child(2) { margin-top: 28px; }
.ue-steps li:nth-child(3) { margin-top: 56px; }
.ue-steps li:nth-child(4) { margin-top: 84px; }
.ue-steps li:nth-child(5) { margin-top: 112px; }
.ue-steps li:nth-child(6) { margin-top: 140px; }

.ue-steps img {
  width: 100%;
  margin-bottom: 12px;
  border-radius: 2px;
  box-shadow: 0 18px 30px -20px rgba(29, 34, 48, 0.5), 0 0 0 1px var(--line);
}

.ue-steps b {
  display: block;
  font-family: var(--title);
  font-size: 17px;
}

.ue-steps span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

.ue-nums {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 64px 0 0;
  padding: 26px 0 0;
  list-style: none;
  border-top: 2px solid var(--ink);
  font-size: 15px;
  color: var(--ink-2);
}

.ue-nums b {
  display: block;
  font-family: var(--title);
  font-weight: 800;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.1;
  color: var(--ink);
}

/* ---------- inside the books: one flattened grid, small enough that its low resolution never shows ---------- */
.ue-inside {
  background: #f6f6f7;
}

.ue-inside img {
  width: 100%;
  margin-top: 16px;
}

/* ---------- illustrations ---------- */
.ue-art {
  padding-block: 104px;
}

.ue-art-h {
  max-width: 700px;
  margin-bottom: 40px;
}

.ue-art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 56px;
  align-items: center;
  justify-items: center;
}

.ue-art-grid img {
  max-height: 300px;
  width: auto;
}

.ue-credit {
  margin: 40px 0 0;
  font-family: var(--mono);
  font-size: 15px;
  text-align: center;
  color: var(--ink-2);
}

.ue-credit b {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- module 3 ---------- */
.ue-m3 {
  padding-block: 104px;
  background: #fff5f8;
}

.ue-spec-wrap {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 40px;
}

.ue-spec-page {
  position: relative;
  background: #fff;
  box-shadow: 0 40px 70px -46px rgba(120, 30, 60, 0.55), 0 0 0 1px var(--line);
}

.ue-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
}

.ue-lines {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  overflow: visible;
  pointer-events: none;
}

.ue-lines path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
}

.ue-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ue-legend li {
  padding: 16px;
  background: var(--z);
}

.ue-legend b {
  display: none;
  font-family: var(--mono);
}

.ue-legend h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.ue-legend p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

.ue-flat {
  margin-top: 96px;
}

.ue-flat-h {
  max-width: 640px;
  margin-bottom: 26px;
}

.ue-flat-h h3 {
  margin: 0 0 8px;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.15;
}

.ue-flat-h p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}

.ue-flat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px 14px;
}

.ue-ses {
  display: grid;
  gap: 5px;
}

.ue-ses b {
  font-family: var(--bn);
  font-size: 16px;
  font-weight: 700;
}

.ue-ses img {
  width: 100%;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

/* ---------- colour ---------- */
.ue-share {
  display: flex;
  height: 54px;
  margin-bottom: 26px;
  box-shadow: 0 0 0 1px var(--line);
}

.ue-sw {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ue-sw i {
  display: block;
  height: 140px;
  margin-bottom: 14px;
  background: var(--z);
  box-shadow: inset 0 0 0 1px rgba(29, 34, 48, 0.06);
}

.ue-sw h3 {
  display: inline;
  margin: 0;
  font-size: 22px;
}

.ue code {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink-3);
}

.ue-sw code {
  margin-left: 8px;
}

.ue-sw p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

.ue-m1col {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.ue-m1col h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

.ue-m1col ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.ue-m1col li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ue-m1col i {
  width: 26px;
  height: 26px;
  background: var(--z);
}

/* ---------- type ---------- */
.ue-type {
  padding-top: 0;
}

.ue-type-in {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.ue-ladder {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ue-ladder img {
  height: 66px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left;
}

.ue-ladder li:nth-child(2) img {
  height: 44px;
}

.ue-ladder li:nth-child(3) img {
  height: auto;
  width: 100%;
}

.ue-ladder span {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- close: the wheel from Module 3's back cover, on the hero's blue ---------- */
.ue-end {
  padding-block: 104px;
  background: var(--blue);
  color: #fff;
}

.ue-end-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.ue-end .ue-tag {
  color: #fff;
}

.ue-end-copy > p:not(.ue-tag) {
  max-width: 500px;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}

.ue-wheel {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

.ue-wheel svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.ue-wheel text {
  font-family: var(--title);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.02em;
  text-anchor: middle;
  fill: #fff;
}

.ue-wheel img {
  position: absolute;
  left: 13%;
  top: 13%;
  width: 74%;
  border-radius: 50%;
  box-shadow: 0 0 0 8px #fff, 0 34px 50px -24px rgba(8, 60, 100, 0.7);
}

.ue-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ue-btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.3s var(--ease);
}

.ue-btn:hover {
  transform: translateY(-3px);
}

.ue-btn--ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}

.ue-page .site-footer {
  position: relative;
  margin-top: 0;
  padding-top: 64px;
  background: #fff;
  color: #000;
}

.ue-page .footer-row {
  flex-wrap: wrap;
  gap: 16px;
}

.pre-motion .ue-hero-copy > *,
.pre-motion .ue-covers img {
  opacity: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ue-hero-in,
  .ue-brief,
  .ue-end-in,
  .ue-type-in {
    grid-template-columns: 1fr;
  }

  .ue-covers {
    max-width: 620px;
    width: 100%;
    margin-inline: auto;
  }

  .ue-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ue-facts > div:last-child {
    grid-column: 1 / -1;
  }

  .ue-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ue-steps li:nth-child(n) {
    margin-top: 0;
  }

}

@media (max-width: 860px) {
  .ue-lines {
    display: none;
  }

  .ue-pin {
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    font-size: 11px;
  }

  .ue-legend {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 24px;
  }

  .ue-legend li {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 0 10px;
  }

  .ue-legend b {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .ue-page {
    --hdr: 66px;
  }

  .ue-wrap,
  .ue-spec-wrap {
    padding-inline: 16px;
  }

  .ue-sec,
  .ue-m3 {
    padding-block: 64px;
  }

  .ue-art {
    padding-block: 64px;
  }

  .ue-hero {
    padding: calc(var(--hdr) + 40px) 0 56px;
  }

  .ue-hero h1 {
    font-size: clamp(42px, 12vw, 52px);
    line-height: 1.12;
  }

  .ue h2 {
    font-size: clamp(32px, 9vw, 40px);
    line-height: 1.12;
  }

  .ue-lead,
  .ue-intro,
  .ue-brief p:not(.ue-tag),
  .ue-art-h p:not(.ue-tag),
    .ue-type p:not(.ue-tag) {
    font-size: 16px;
  }

  .ue-intro {
    margin-bottom: 32px;
  }

  .ue-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
    padding-block: 26px;
  }

  .ue-brief {
    gap: 28px;
  }

  .ue-three {
    grid-template-columns: 1fr 1fr;
    gap: 28px 14px;
    align-items: start;
  }

  .ue-three li:last-child {
    grid-column: 1 / -1;
  }

  .ue-three p:last-child {
    min-height: 0;
  }

  .ue-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .ue-nums {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
  }

  .ue-art-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .ue-flat {
    margin-top: 64px;
  }

  .ue-flat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 8px;
  }

  .ue-type-in {
    gap: 30px;
  }

  .ue-share {
    height: 40px;
  }

  .ue-sw {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 14px;
  }

  .ue-sw i {
    height: 88px;
  }

  .ue-sw code {
    display: block;
    margin: 2px 0 0;
  }

  .ue-sw p {
    font-size: 15px;
  }

  .ue-ladder img {
    height: 50px;
  }

  .ue-ladder li:nth-child(2) img {
    height: 34px;
  }

  .ue-ladder li:nth-child(3) img {
    height: 34px;
    object-fit: cover;
  }

  .ue-end {
    padding-block: 64px;
  }

  .ue-end-copy > p:not(.ue-tag) {
    font-size: 16px;
  }
