/* One bright theme on every device: this is a picture-book brand, not an app chrome. */
:root {
  color-scheme: light;
  --ink: #2B2350;
  --ink-soft: #4A4270;
  --wall: #FCE6C6;
  --sky: #A8E2FA;
  --sky-deep: #6CC6EE;
  --white: #FFFFFF;
  --red: #B83227;
  --teal: #12756C;
  --teal-deep: #0B5650;
  /* Card colours, one per letter in turn */
  --c0: #FF9FC6; --c0-deep: #E5679C;
  --c1: #FFD84A; --c1-deep: #E2AE14;
  --c2: #7FE0C4; --c2-deep: #3DB894;
  --c3: #C3AEFF; --c3-deep: #9077E6;
  --c4: #FFB98A; --c4-deep: #EE8B4E;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: "Andika", system-ui, sans-serif;
  font-size: 1.15rem;
  line-height: 1.55;
}

h1, h2, .label, .pill, .button, .pip-says p {
  font-family: "Fredoka", "Andika", sans-serif;
}
h1, h2 { font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }

a { color: var(--ink); }
a:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; border-radius: 20px; }

.c0 { --c: var(--c0); --cd: var(--c0-deep); }
.c1 { --c: var(--c1); --cd: var(--c1-deep); }
.c2 { --c: var(--c2); --cd: var(--c2-deep); }
.c3 { --c: var(--c3); --cd: var(--c3-deep); }
.c4 { --c: var(--c4); --cd: var(--c4-deep); }

/* The white letter plate from the lessons */
.plate {
  display: inline-grid; place-items: center;
  background: var(--white); color: var(--red);
  font-family: "Andika", sans-serif; font-weight: 700; line-height: 1;
  border: 5px solid var(--ink); border-radius: 28px;
  font-size: 4.4rem; padding: 18px 26px 22px;
}
.plate.huge { font-size: clamp(5rem, 13vw, 8.5rem); border-radius: 40px; border-width: 6px; padding: 20px 34px 28px; }

/* Wave between the coloured top and the sky */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(36px, 6vw, 80px); display: block; }
.wave path { fill: var(--sky); }

/* Home hero: the classroom from the videos */
.hero {
  position: relative;
  min-height: clamp(460px, 62vw, 700px);
  background: var(--wall) url("room.webp") center bottom / cover no-repeat;
  display: flex; align-items: flex-start; justify-content: flex-start;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 6vw, 96px) 0;
  overflow: hidden;
}
.hero-text { max-width: 640px; position: relative; z-index: 1; }
.hero-mark { width: min(620px, 100%); height: auto; display: block; }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  text-shadow: 0 0 18px var(--wall), 0 0 6px var(--wall);
}
.hero-pip {
  position: absolute; z-index: 1;
  left: 38%; bottom: clamp(30px, 6vw, 80px);
  width: clamp(150px, 19vw, 270px); height: auto;
  animation: hello 3.4s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes hello { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }

/* Sky section */
.sky { padding: clamp(28px, 5vw, 56px) 20px 56px; }
.sky > * { max-width: 1120px; margin-left: auto; margin-right: auto; }

/* Letter cards */
.cards {
  list-style: none; padding: 0; margin-top: 0; margin-bottom: 56px;
  display: grid; gap: clamp(20px, 3vw, 36px);
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}
.card a, .card > div {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 34px 24px 28px;
  background: var(--c); border: 5px solid var(--ink); border-radius: 36px;
  box-shadow: 0 10px 0 var(--ink);
  text-decoration: none; color: var(--ink);
}
.card a { transition: transform 140ms ease-out, box-shadow 140ms ease-out; }
.card a:active { transform: translateY(8px); box-shadow: 0 2px 0 var(--ink); }
.pics { display: flex; gap: 12px; }
.pics img { width: 70px; height: 70px; object-fit: contain; padding: 8px; background: var(--white); border: 4px solid var(--ink); border-radius: 50%; }
.label { font-size: 1.9rem; font-weight: 700; }
.card.soon > div { background: var(--white); border-style: dashed; box-shadow: none; justify-content: center; }
.soon-letters { font-family: "Andika", sans-serif; font-weight: 700; font-size: 2.8rem; letter-spacing: 0.12em; color: var(--ink-soft); text-align: center; white-space: nowrap; }
.card.soon .label { font-size: 1.5rem; text-align: center; }

.grown-ups {
  background: var(--white); border-radius: 28px; padding: 28px clamp(22px, 4vw, 40px);
  border: 4px solid var(--ink);
}
.grown-ups h2 { font-size: 1.6rem; margin-bottom: 8px; }
.grown-ups p { margin: 0; max-width: 64ch; color: var(--ink-soft); }

/* Letter page band */
.band {
  position: relative;
  background: var(--c);
  padding: 22px clamp(20px, 6vw, 96px) clamp(70px, 9vw, 120px);
}
.home-link { display: inline-block; }
.home-link img { width: 300px; max-width: 70vw; height: auto; display: block; }
.band-inner { max-width: 1120px; margin: 26px auto 0; display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); }
.band h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.band-text p { margin: 8px 0 0; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 700; }

.pictures { list-style: none; padding: 0; margin-top: 0; margin-bottom: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 3vw, 40px); }
.pictures li { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bubble { position: relative; width: 100%; max-width: 260px; aspect-ratio: 1; background: var(--white); border: 5px solid var(--ink); border-radius: 50%; }
.bubble img { position: absolute; inset: 15%; width: 70%; height: 70%; object-fit: contain; } /* pinned, so a tall picture (Letter N's net) cannot stretch the circle */
.word { font-family: "Andika", sans-serif; font-size: clamp(1.5rem, 4vw, 2.6rem); font-weight: 700; }
.first { color: var(--red); }

.print {
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  margin-bottom: 48px;
}
.print-sheet img { width: 100%; height: auto; display: block; background: var(--white); border: 5px solid var(--ink); border-radius: 18px; transform: rotate(-2.5deg); box-shadow: 12px 12px 0 var(--sky-deep); }
.print-get { display: flex; flex-direction: column; gap: 16px; align-items: stretch; max-width: 440px; }
.pip-says { display: flex; align-items: center; gap: 14px; }
.pip-says img { width: 120px; height: auto; flex: none; }
.pip-says p {
  margin: 0; padding: 14px 20px; background: var(--white); border: 4px solid var(--ink); border-radius: 24px 24px 24px 6px;
  font-size: 1.35rem; font-weight: 600; line-height: 1.25;
}

.button {
  display: flex; align-items: center; gap: 16px;
  min-height: 72px; padding: 12px 26px;
  border-radius: 999px; border: 4px solid var(--ink);
  background: var(--teal); color: var(--white);
  font-weight: 600; font-size: 1.45rem; line-height: 1.1; text-decoration: none;
  box-shadow: 0 7px 0 var(--ink);
  transition: transform 140ms ease-out, box-shadow 140ms ease-out;
}
.button:active { transform: translateY(6px); box-shadow: 0 1px 0 var(--ink); }
.button small { display: block; font-family: "Andika", sans-serif; font-weight: 400; font-size: 1rem; margin-top: 2px; }
.button.alt { background: var(--white); color: var(--ink); }
.button.ghost { background: transparent; color: var(--ink); box-shadow: none; border-style: dashed; }
.icon { width: 34px; height: 34px; flex: none; }
.note { margin: 2px 0 0; font-size: 1rem; color: var(--ink-soft); }

.steps { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.steps > :last-child { justify-self: end; }
.steps > :first-child { justify-self: start; }
.pill {
  display: inline-flex; align-items: center; min-height: 52px; padding: 8px 24px;
  background: var(--white); border: 4px solid var(--ink); border-radius: 999px;
  font-weight: 600; font-size: 1.2rem; text-decoration: none;
}

footer { background: var(--sky); text-align: center; color: var(--ink-soft); font-size: 1rem; padding: 0 20px 36px; }
footer p { margin: 0; }

@media (max-width: 760px) {
  .hero { min-height: 470px; background-position: 22% bottom; padding-top: 28px; }
  .hero-text { text-align: center; margin: 0 auto; }
  .hero-mark { margin: 0 auto; }
  .hero-pip { left: 50%; margin-left: -75px; width: 150px; bottom: 44px; }
  .band-inner { flex-direction: column; text-align: center; gap: 16px; }
  .band { text-align: center; }
  .pip-says img { width: 96px; }
  .plate { font-size: 3.8rem; }
  .pics img { width: 62px; height: 62px; }
}

@media (max-width: 960px) {
  .print { grid-template-columns: 1fr; }
  .print-get { order: -1; max-width: 520px; width: 100%; margin: 0 auto; }
  .print-sheet { max-width: 380px; width: 100%; margin: 0 auto; }
}

@media (max-width: 420px) {
  .steps .pill:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pip { animation: none; }
  .card a, .button { transition: none; }
}
