/* All Saint Kids International School — "Open the storybook"
   Ground: pale sky desk + cream paper. Ink: plum-navy. Accents: coral, leaf, butter as drawn details.
   Layout grid: Bootstrap 5.3.3 bootstrap-grid.min.css (container / row / col-*). Everything else is here. */

/* Critical first-paint subset of the Bootstrap 5.3.3 grid, with Bootstrap's exact values, for only the classes these pages use.
   bootstrap-grid.min.css is loaded without blocking render (preload + onload); this subset stops the layout from
   jumping (CLS) in the moment before it arrives. Bootstrap's file then supplies the full grid and utilities. */
.container { --bs-gutter-x: 1.5rem; width: 100%; padding-right: calc(var(--bs-gutter-x) * .5); padding-left: calc(var(--bs-gutter-x) * .5); margin-right: auto; margin-left: auto; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }
.row { --bs-gutter-x: 1.5rem; --bs-gutter-y: 0; display: flex; flex-wrap: wrap; margin-top: calc(-1 * var(--bs-gutter-y)); margin-right: calc(-.5 * var(--bs-gutter-x)); margin-left: calc(-.5 * var(--bs-gutter-x)); }
.row > * { flex-shrink: 0; width: 100%; max-width: 100%; padding-right: calc(var(--bs-gutter-x) * .5); padding-left: calc(var(--bs-gutter-x) * .5); margin-top: var(--bs-gutter-y); }
.g-0 { --bs-gutter-x: 0; --bs-gutter-y: 0; } .g-3 { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; } .g-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; } .g-5 { --bs-gutter-x: 3rem; --bs-gutter-y: 3rem; } .gy-5 { --bs-gutter-y: 3rem; }
.col-12 { flex: 0 0 auto; width: 100%; } .col-6 { flex: 0 0 auto; width: 50%; }
.align-items-center { align-items: center; } .align-items-end { align-items: flex-end; } .align-items-start { align-items: flex-start; } .align-items-stretch { align-items: stretch; } .justify-content-center { justify-content: center; }
@media (min-width: 576px) { .col-sm-6 { flex: 0 0 auto; width: 50%; } }
@media (min-width: 768px) { .col-md-5 { flex: 0 0 auto; width: 41.66666667%; } .col-md-6 { flex: 0 0 auto; width: 50%; } .col-md-7 { flex: 0 0 auto; width: 58.33333333%; } }
@media (min-width: 992px) { .col-lg-3 { flex: 0 0 auto; width: 25%; } .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; } .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; } .col-lg-6 { flex: 0 0 auto; width: 50%; } .col-lg-7 { flex: 0 0 auto; width: 58.33333333%; } .col-lg-8 { flex: 0 0 auto; width: 66.66666667%; } .col-lg-9 { flex: 0 0 auto; width: 75%; } .flex-lg-row-reverse { flex-direction: row-reverse; } }

:root {
  --sky: #EAF3FA;
  --sky-2: #DCEBF6;
  --sky-deep: #A9CFEC;
  --cream: #FFFDF7;
  --cream-2: #FBF6E9;
  --ink: #2A2342;
  --ink-soft: #4C4566;
  --coral: #F07D6A;
  --coral-ink: #B2432E;
  --leaf: #6FB45F;
  --leaf-ink: #3B7430;
  --butter: #F5D565;
  --butter-soft: #FBEDB4;
  --line: #D8E3EE;
  --rule: #E9E1CF;
  --paper-shadow: 0 1px 1px rgba(42, 35, 66, .06), 0 12px 28px -14px rgba(42, 35, 66, .32);
  --paper-shadow-lg: 0 2px 2px rgba(42, 35, 66, .05), 0 30px 60px -28px rgba(42, 35, 66, .42);
  --display: "Sniglet", "Albert Sans", system-ui, sans-serif;
  --body: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-page: 6px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  caret-color: var(--coral-ink);
}
::selection { background: var(--butter); color: var(--ink); }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
[lang="hi"] { font-family: var(--body), "Kohinoor Devanagari", "Noto Sans Devanagari", "Mangal", sans-serif; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 1.45rem + 1.9vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); line-height: 1.15; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: .22em; text-decoration-color: var(--coral); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 6px var(--cream); }
.dark :focus-visible, .site-foot :focus-visible { outline-color: var(--butter); box-shadow: none; }

.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.25rem); color: var(--ink-soft); }
.hand { font-family: var(--display); font-weight: 400; }
.small { font-size: .92rem; }
.muted { color: var(--ink-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* scrollbar */
html { scrollbar-color: var(--sky-deep) var(--sky); }

/* ---------- skip link ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .7em 1.35em; border-radius: 999px;
  font: 600 1.02rem/1.1 var(--body); text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s;
}
.btn .icon { width: 1.15em; height: 1.15em; flex: none; }
.btn-ink { background: var(--ink); color: var(--cream); box-shadow: 0 6px 14px -8px rgba(42, 35, 66, .6); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -10px rgba(42, 35, 66, .6); }
.btn-paper { background: var(--cream); color: var(--ink); }
.btn-paper:hover { background: var(--butter-soft); }
.btn-butter { background: var(--butter); color: var(--ink); border-color: var(--butter); }
.btn-butter:hover { background: #f8df80; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; }
.icon { width: 1.2em; height: 1.2em; vertical-align: -0.2em; }

/* ---------- header with bookmark ribbons ---------- */
.site-head { position: relative; z-index: 20; }
.site-head .container { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; padding: 22px 0 18px; text-decoration: none; }
.brand img { height: 58px; width: auto; }
.head-call { display: none; }
.ribbons { display: none; }

@media (min-width: 992px) {
  .site-head .container { align-items: stretch; }
  .head-right { display: flex; align-items: flex-start; gap: 18px; }
  .head-call {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 30px;
    font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 999px; min-height: 44px;
  }
  .head-call:hover { background: var(--cream); }
  .ribbons { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
  .ribbon {
    --rib: var(--butter);
    position: relative; display: flex; align-items: flex-end; justify-content: center;
    width: 98px; height: 84px; padding: 0 6px 26px;
    background: var(--rib); color: var(--ink); text-decoration: none; text-align: center;
    font: 600 .95rem/1.15 var(--body);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 14px), 0 100%);
    filter: drop-shadow(0 6px 6px rgba(42, 35, 66, .18));
    transition: height .35s var(--ease-out);
  }
  .ribbon::before { /* stitched edge, like a cloth bookmark */
    content: ""; position: absolute; inset: 0 5px 18px; border-left: 1.5px dashed rgba(42, 35, 66, .28); border-right: 1.5px dashed rgba(42, 35, 66, .28);
    pointer-events: none;
  }
  .ribbon:hover, .ribbon:focus-visible { height: 94px; }
  .ribbon:focus-visible { outline: none; box-shadow: none; }
  .ribbon:focus-visible span { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
  .ribbon[aria-current="page"] { height: 106px; padding-bottom: 30px; font-weight: 700; }
  .ribbon[aria-current="page"]::after { /* small star sewn on the current bookmark */
    content: ""; position: absolute; top: 12px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
    background: var(--ink); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  }
  .r-butter { --rib: var(--butter); }
  .r-leaf { --rib: var(--leaf); }
  .r-sky { --rib: var(--sky-deep); }
  .r-coral { --rib: var(--coral); }
  .r-cream { --rib: #F3E7CF; }
  .brand img { height: 64px; }
}
@media (min-width: 1200px) { .ribbon { width: 108px; } }

/* ---------- floating Menu button + sheet (phones and tablets) ---------- */
.menu-fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  width: 72px; height: 72px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: 700 .82rem/1 var(--body); box-shadow: 0 10px 22px -8px rgba(42, 35, 66, .6), 0 0 0 4px var(--cream);
}
.menu-fab svg { width: 24px; height: 24px; }
.menu-fab:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 4px; }
@media (min-width: 992px) { .menu-fab { display: none; } }

.sheet { position: fixed; inset: 0; z-index: 80; display: none; }
.sheet.is-open { display: block; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(42, 35, 66, .45); }
.sheet__panel {
  position: absolute; inset: 0 0 0 auto; width: min(100%, 440px); height: 100%; overflow-y: auto;
  background: var(--cream); padding: 20px 24px calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: -20px 0 40px -20px rgba(42, 35, 66, .5);
  animation: sheet-in .38s var(--ease-out);
}
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__top { display: flex; align-items: center; justify-content: space-between; }
.sheet__top img { height: 46px; width: auto; }
.sheet__close { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink); background: var(--cream); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.sheet__close svg { width: 22px; height: 22px; }
.sheet__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sheet__quick a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; min-height: 76px;
  border-radius: 14px; background: var(--sky); text-decoration: none; font-weight: 600; font-size: .92rem; text-align: center;
}
.sheet__quick a:nth-child(1) { background: var(--butter-soft); }
.sheet__quick a:nth-child(2) { background: #DDEFD8; }
.sheet__quick svg { width: 22px; height: 22px; }
.sheet__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sheet__links a {
  display: flex; align-items: center; gap: 14px; padding: 12px 4px; min-height: 56px;
  font: 800 1.6rem/1.1 var(--display); text-decoration: none; border-bottom: 1.5px dashed var(--rule);
}
.sheet__links a::before { content: ""; width: 14px; height: 22px; flex: none; background: var(--rib, var(--butter)); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.sheet__links a[aria-current="page"] { color: var(--coral-ink); }
.sheet__note { font-size: .9rem; color: var(--ink-soft); margin-top: auto; }
body.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .sheet__panel { animation: none; } }

/* ---------- paper: the shared material ---------- */
.page {
  position: relative; background: var(--cream); border-radius: var(--radius-page);
  box-shadow: var(--paper-shadow);
}
.sheet-stack { /* pages stacked underneath, like loose sheets of a book */
  box-shadow: 0 1px 1px rgba(42, 35, 66, .06), 0 12px 28px -14px rgba(42, 35, 66, .3),
    6px 7px 0 -1px #F4ECDA, 6px 9px 6px -2px rgba(42, 35, 66, .16), 11px 13px 0 -3px #EEE3CB, 11px 15px 8px -3px rgba(42, 35, 66, .14);
}
.h-100 { height: 100%; }
@media (min-width: 992px) { .text-lg-end { text-align: right; } }
section { position: relative; }
.band { padding: clamp(56px, 7vw, 104px) 0; }
.band--cream { background: var(--cream); }
.band--sky2 { background: var(--sky-2); }
.section-head { margin-bottom: clamp(24px, 3vw, 40px); }
.section-head p { color: var(--ink-soft); font-size: 1.12rem; }

/* name-tag placeholder: "to be shared by the school" */
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px;
  border: 1.5px dashed var(--ink-soft); border-radius: 8px; background: var(--cream);
  font-size: .86rem; font-weight: 600; color: var(--ink-soft); line-height: 1.25;
}
.tag::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; border: 2px solid var(--coral-ink); }
.placeholder {
  border: 2px dashed #B9B0CF; border-radius: 14px; padding: 20px 22px; background: rgba(255, 253, 247, .7);
}
.placeholder h3 { margin-bottom: .35em; }
.placeholder p:last-child { margin-bottom: 0; }

/* ---------- HERO: the open book ---------- */
.hero { padding: 8px 0 clamp(48px, 6vw, 88px); }
.book { position: relative; margin-top: 4px; }
.book__spread { position: relative; border-radius: 10px; background: var(--cream);
  box-shadow: 0 5px 0 -1px #F3EBD9, 0 6px 1px -1px rgba(42, 35, 66, .14), 0 10px 0 -3px #EFE5CF, 0 11px 2px -3px rgba(42, 35, 66, .14), var(--paper-shadow-lg); }

.book__page { position: relative; padding: clamp(28px, 4vw, 60px) clamp(22px, 4vw, 64px) clamp(40px, 4vw, 56px); }
.book__page--left h1 { margin-bottom: .4em; }
.book__page--left .lead { margin-bottom: .6em; }
.book__page--left [lang="hi"] { font-size: 1.15rem; color: var(--leaf-ink); font-weight: 600; margin-bottom: 1.4em; }
.folio { position: absolute; bottom: 16px; font: 400 .95rem/1 var(--display); color: var(--ink-soft); }
.book__page--left .folio { left: clamp(22px, 4vw, 64px); }
.book__page--right .folio { right: clamp(22px, 4vw, 64px); }
.pencil-line { display: block; width: min(320px, 80%); height: 14px; margin: 26px 0 16px; color: var(--coral); }
.hero-where { display: flex; flex-direction: column; gap: 4px; font-size: .98rem; }
.hero-where strong { font-weight: 600; }
.hero-where .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; }
@media (max-width: 575.98px) { .hero-where .links { flex-direction: column; align-items: flex-start; gap: 8px; } .hero-where { padding-right: 70px; } }

@media (min-width: 992px) {
  .book__spread { display: flex; }
  .book__spread::after { /* the centre gutter shadow */
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 90px; margin-left: -45px; pointer-events: none;
    background: linear-gradient(90deg, rgba(42, 35, 66, 0) 0%, rgba(42, 35, 66, .05) 38%, rgba(42, 35, 66, .16) 50%, rgba(42, 35, 66, .05) 62%, rgba(42, 35, 66, 0) 100%);
  }
  .book__page--left { padding-right: clamp(40px, 5vw, 80px); }
  .book__page--right { padding-left: clamp(40px, 5vw, 80px); display: flex; align-items: center; justify-content: center; }
}

/* polaroid taped to the page */
.polaroid {
  position: relative; margin: 0; width: min(100%, 440px); background: #fff; padding: 14px 14px 18px;
  box-shadow: 0 2px 3px rgba(42, 35, 66, .08), 0 22px 36px -20px rgba(42, 35, 66, .5);
  transform: rotate(2.4deg);
}
.polaroid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--sky-2); }
.polaroid figcaption { padding: 12px 4px 0; font: 400 1.2rem/1.2 var(--display); color: var(--ink); }
.polaroid figcaption small { display: block; font: 400 .8rem/1.3 var(--body); color: var(--ink-soft); margin-top: 4px; }
.tape {
  position: absolute; width: 112px; height: 30px; background: rgba(245, 213, 101, .78); top: -14px; left: 50%; margin-left: -56px;
  transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(42, 35, 66, .12);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 97% 100%, 2% 95%, 0 50%);
}
.tape--coral { background: rgba(240, 125, 106, .7); }
.tape--leaf { background: rgba(111, 180, 95, .7); }
.doodle { position: absolute; pointer-events: none; }
.doodle--sun { width: 96px; top: -24px; right: -18px; }
.doodle--cloud { width: 120px; bottom: 18%; left: -54px; }
.doodle--sprig { width: 54px; bottom: -18px; right: 12%; }
.doodle path, .doodle circle { vector-effect: non-scaling-stroke; }
@media (max-width: 991.98px) {
  .book__page--right { padding-top: 6px; display: flex; justify-content: center; padding-bottom: 56px; }
  .book__page--left { padding-bottom: 20px; }
  .book__page--left .folio { display: none; }
  .polaroid { width: min(86%, 380px); }
  .doodle--sun { width: 74px; top: -20px; right: -14px; }
  .doodle--cloud { width: 84px; left: -26px; top: 34px; bottom: auto; }
  .doodle--sprig { width: 40px; bottom: -22px; right: -8px; }
  .diary { padding: 22px 16px 22px 18px; }
  .diary::before { left: 12px; }
  .diary-list { padding-left: 10px; }
}

/* ---------- storybook pager: "A day in our little world" ---------- */
.day { padding: clamp(56px, 7vw, 104px) 0; }
.day__label { display: inline-flex; margin-bottom: 18px; }
.pager { position: relative; }
.pager__book { position: relative; perspective: 1800px; }
.pager__pages { position: relative; }
.pager__page { display: none; }
.pager__page.is-current { display: block; }
.pager__page > .row { background: var(--cream); border-radius: 10px; box-shadow: var(--paper-shadow-lg); margin: 0; overflow: hidden; }
.pager__photo { padding: 0; position: relative; }
.pager__photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.pager__text { padding: clamp(26px, 4vw, 56px); position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 340px; }
.pager__when { font: 400 1.05rem/1.2 var(--display); color: var(--coral-ink); margin-bottom: 10px; }
.pager__text h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); }
.pager__text p { color: var(--ink-soft); }
.pager__folio { font: 400 1rem/1 var(--display); color: var(--ink-soft); margin-top: auto; padding-top: 18px; }
@media (min-width: 768px) {
  .pager__page > .row::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 70px; margin-left: -35px; pointer-events: none;
    background: linear-gradient(90deg, rgba(42, 35, 66, 0), rgba(42, 35, 66, .14) 50%, rgba(42, 35, 66, 0)); }
  .pager__page > .row { position: relative; }
}
.pager__page.turn-in { animation: turn-in .5s var(--ease-out); transform-origin: left center; }
.pager__page.turn-back { animation: turn-back .5s var(--ease-out); transform-origin: right center; }
@keyframes turn-in { from { opacity: .3; transform: rotateY(-14deg) translateX(18px); filter: brightness(.94); } to { opacity: 1; transform: none; filter: none; } }
@keyframes turn-back { from { opacity: .3; transform: rotateY(14deg) translateX(-18px); filter: brightness(.94); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .pager__page.turn-in, .pager__page.turn-back { animation: none; } }
.pager__controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.pager__btns { display: flex; gap: 10px; }
.round-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink); background: var(--cream); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s, transform .2s var(--ease-out);
}
.round-btn:hover { background: var(--butter-soft); }
.round-btn:active { transform: scale(.96); }
.round-btn svg { width: 24px; height: 24px; }
.round-btn[disabled] { opacity: .4; cursor: default; }
.pager__ribbons { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.pager__ribbons button {
  width: 44px; height: 44px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: start center;
}
.pager__ribbons button span { width: 18px; height: 30px; background: var(--sky-deep); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); transition: height .25s var(--ease-out), background-color .2s; }
.pager__ribbons button[aria-current="true"] span { background: var(--coral); height: 40px; }
.pager__ribbons button:hover span { background: var(--leaf); }
.pager__hint { font-size: .9rem; color: var(--ink-soft); margin: 14px 0 0; }

/* ---------- diary page (what parents can expect) ---------- */
.diary { padding: clamp(28px, 4vw, 56px); background:
  repeating-linear-gradient(180deg, transparent 0 39px, #E3ECF5 39px 40px), var(--cream); }
.diary::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(18px, 3vw, 40px); border-left: 2px solid rgba(240, 125, 106, .45); }
.diary-list { list-style: none; margin: 0; padding: 0 0 0 clamp(16px, 3vw, 30px); }
.diary-list li { display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; padding: 14px 0; border-bottom: 1.5px dashed var(--rule); }
.diary-list li:last-child { border-bottom: 0; }
.diary-list svg { width: 40px; height: 40px; }
.diary-list h3 { font-size: 1.3rem; margin: 2px 0 4px; }
.diary-list p { margin: 0 0 8px; color: var(--ink-soft); }

/* ---------- readiness checklist ---------- */
.ready { }
.check-page { padding: clamp(26px, 4vw, 52px); }
.checklist { list-style: none; margin: 0 0 20px; padding: 0; }
.checklist li + li { border-top: 1.5px dashed var(--rule); }
.checklist label { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding: 14px 0; cursor: pointer; min-height: 44px; }
.checklist input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checklist .box {
  width: 32px; height: 32px; border: 2px solid var(--ink); border-radius: 9px; background: var(--cream); display: grid; place-items: center; margin-top: 1px;
  transition: background-color .2s, transform .25s var(--ease-out);
}
.checklist .box svg { width: 22px; height: 22px; opacity: 0; transform: scale(.6) rotate(-12deg); transition: opacity .2s, transform .3s var(--ease-out); }
.checklist input:checked + .box { background: var(--butter); transform: rotate(-4deg); }
.checklist input:checked + .box svg { opacity: 1; transform: none; }
.checklist input:focus-visible + .box { outline: 3px solid var(--ink); outline-offset: 3px; }
.checklist strong { display: block; font-weight: 600; }
.checklist .why { display: block; color: var(--ink-soft); font-size: .95rem; }
.check-result { padding: 16px 18px; border-radius: 14px; background: var(--sky); }
.check-result .count { font: 800 1.35rem/1.2 var(--display); display: block; margin-bottom: 4px; }
.check-result p { margin: 0; }
.tips { padding: clamp(24px, 3vw, 40px); background: #EEF6EA; border-radius: 10px; position: relative; }
.tips h3 { margin-bottom: .6em; }
.tips ul { margin: 0 0 14px; padding-left: 1.2em; }
.tips li { margin-bottom: 8px; }
.tips li::marker { color: var(--leaf-ink); }
.disclaimer { font-size: .9rem; color: var(--ink-soft); }

/* ---------- speech bubbles (Questions parents ask) ---------- */
.talk { display: flex; flex-direction: column; gap: 18px; }
.qa { margin: 0; }
.qa summary { list-style: none; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.bubble {
  position: relative; max-width: 560px; padding: 16px 22px; border-radius: 26px; background: var(--cream);
  box-shadow: var(--paper-shadow); font-weight: 600; font-size: 1.08rem;
}
.bubble--q { border-bottom-left-radius: 6px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bubble--q::after { content: ""; position: absolute; left: -2px; bottom: -12px; width: 26px; height: 18px; background: var(--cream); clip-path: polygon(0 100%, 30% 0, 100% 0); }
.bubble--q .plus { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--butter); display: grid; place-items: center; transition: transform .3s var(--ease-out); }
.bubble--q .plus svg { width: 18px; height: 18px; }
.qa[open] .bubble--q .plus { transform: rotate(45deg); background: var(--coral); }
.qa summary:hover .bubble--q { background: #FFFBEA; }
.qa summary:focus-visible { outline: none; box-shadow: none; }
.qa summary:focus-visible .bubble--q { outline: 3px solid var(--ink); outline-offset: 3px; }
.bubble--a {
  margin: 18px 0 6px auto; background: var(--ink); color: var(--cream); font-weight: 400; border-bottom-right-radius: 6px;
}
.bubble--a::after { content: ""; position: absolute; right: -2px; bottom: -12px; width: 26px; height: 18px; background: var(--ink); clip-path: polygon(100% 100%, 70% 0, 0 0); }
.bubble--a p { margin: 0 0 .6em; }
.bubble--a p:last-child { margin-bottom: 0; }
.bubble--a a { color: var(--butter); text-decoration-color: var(--butter); }
.bubble--a .who, .bubble--q .who { display: block; font: 400 .85rem/1 var(--display); margin-bottom: 6px; color: var(--butter); }
.qa[open] .bubble--a { animation: pop .35s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qa[open] .bubble--a { animation: none; } }
@media (min-width: 768px) { .qa:nth-child(even) .bubble--q { margin-left: 8%; } }

/* ---------- letters & placeholders ---------- */
.letter { padding: clamp(28px, 4vw, 52px); }
.letter .salutation { font: 400 1.5rem/1.2 var(--display); margin-bottom: 12px; }
.notice { padding: 22px 24px; background: var(--butter-soft); border-radius: 6px; transform: rotate(-.8deg); box-shadow: var(--paper-shadow); position: relative; }
.notice + .notice { margin-top: 18px; transform: rotate(.7deg); background: #DDEFD8; }
.notice h3 { font-size: 1.2rem; margin-bottom: .3em; }
.notice p { margin: 0; font-size: .97rem; }
.notice .tag { margin-top: 10px; }

/* ---------- visit / postcard ---------- */
.postcard { padding: clamp(24px, 4vw, 48px); overflow: hidden; }
.postcard > h2 { padding-right: 84px; }
.postcard__stamp { position: absolute; top: 18px; right: 18px; width: 74px; height: 88px; padding: 6px; background: var(--cream);
  border: 2px dashed var(--coral); border-radius: 4px; display: grid; place-items: center; transform: rotate(4deg); }
.postcard__stamp img { width: 52px; height: auto; }
.addr { font-style: normal; font-size: 1.08rem; line-height: 1.55; margin-bottom: 14px; }
.addr strong { font-family: var(--display); font-weight: 800; font-size: 1.35rem; display: block; margin-bottom: 4px; }
.facts { list-style: none; padding: 0; margin: 0 0 20px; }
.facts li { padding: 10px 0; border-top: 1.5px dashed var(--rule); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.facts .k { font-weight: 600; min-width: 112px; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions .btn { justify-content: flex-start; }
@media (min-width: 576px) { .actions { flex-direction: row; flex-wrap: wrap; } }
.map { position: relative; border-radius: 10px; overflow: hidden; background: var(--sky-2); box-shadow: var(--paper-shadow); min-height: 320px; height: 100%; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__fallback { padding: 22px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; height: 100%; min-height: 320px;
  background: var(--sky-2); }
.map__fallback .pin { width: 44px; height: 44px; color: var(--coral-ink); }
.map.is-loaded .map__fallback { visibility: hidden; }
.map-note { font-size: .88rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- enquiry form (a letter to the school) ---------- */
.form-page { padding: clamp(26px, 4vw, 52px); }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid #9C95B4; border-radius: 12px;
  background: #fff; color: var(--ink); font: 400 1.02rem/1.4 var(--body);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6E6788; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--butter-soft); }
.field [aria-invalid="true"] { border-color: var(--coral-ink); background: #FFF6F3; }
.field .hint { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: 5px; }
.field .err { display: block; font-size: .92rem; color: var(--coral-ink); font-weight: 600; margin-top: 6px; min-height: 0; }
.field .err:empty { display: none; }
.phone-wrap { display: flex; align-items: stretch; }
.phone-wrap span { display: grid; place-items: center; padding: 0 12px; border: 2px solid #9C95B4; border-right: 0; border-radius: 12px 0 0 12px; background: var(--sky); font-weight: 600; }
.phone-wrap input { border-radius: 0 12px 12px 0; }
.honey { position: absolute; left: -5000px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { background: #DDEFD8; color: #234A1C; }
.form-status.is-err { background: #FDE4DE; color: #7A2A1A; }
.form-status.is-busy { background: var(--sky); }
.form-note { font-size: .9rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- inner page heads ---------- */
.page-head { padding: 12px 0 clamp(36px, 5vw, 64px); }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; font-size: .92rem; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.title-page { padding: clamp(28px, 4vw, 56px); }
.title-page h1 { margin-bottom: .35em; }

/* chapter / contents page (academics) */
.contents { list-style: none; margin: 0; padding: 0; counter-reset: ch; }
.contents li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; padding: 12px 0; }
.contents li::before { counter-increment: ch; content: counter(ch); font: 800 1.4rem/1 var(--display); color: var(--coral-ink); }
.contents a { font: 800 1.3rem/1.2 var(--display); text-decoration: none; }
.contents .dots { border-bottom: 2px dotted #BDB5D2; transform: translateY(-5px); }
.contents li { grid-template-columns: auto auto 1fr auto; }
.contents .pg { font: 400 1rem/1 var(--display); color: var(--ink-soft); }
.chapter { padding: clamp(24px, 4vw, 48px); }
.chapter + .chapter { margin-top: clamp(28px, 4vw, 48px); }
.chapter .ages { display: inline-block; font: 400 1.05rem/1.2 var(--display); background: var(--butter-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.chapter ul { padding-left: 1.2em; }
.chapter li { margin-bottom: 6px; }
.chapter li::marker { color: var(--leaf-ink); }
.photo-frame { position: relative; background: #fff; padding: 10px; box-shadow: var(--paper-shadow); transform: rotate(-1.5deg); }
.photo-frame--r { transform: rotate(1.6deg); }
.photo-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-frame--tall img { aspect-ratio: 4 / 5; }
.photo-frame figcaption { font-size: .82rem; color: var(--ink-soft); padding-top: 8px; }

/* admissions steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps > li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; border-top: 1.5px dashed var(--rule); }
.steps > li:first-child { border-top: 0; }
.steps > li::before { counter-increment: st; content: counter(st); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font: 800 1.6rem/1 var(--display); background: var(--butter); color: var(--ink); }
.steps > li:nth-child(2)::before { background: #CFE7C8; }
.steps > li:nth-child(3)::before { background: var(--sky-deep); }
.steps > li:nth-child(4)::before { background: #F8C9BF; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink-soft); }
.age-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.age-table caption { text-align: left; font-size: .9rem; color: var(--ink-soft); caption-side: bottom; padding-top: 12px; }
.age-table th, .age-table td { padding: 12px 10px; text-align: left; border-bottom: 1.5px dashed var(--rule); vertical-align: top; }
.age-table thead th { font-family: var(--display); font-weight: 800; font-size: 1.05rem; border-bottom: 2px solid var(--ink); }
.docs { columns: 1; padding-left: 0; list-style: none; margin: 0; }
.docs li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1.5px dashed var(--rule); break-inside: avoid; }
.docs svg { width: 22px; height: 22px; flex: none; color: var(--leaf-ink); margin-top: 2px; }
@media (min-width: 768px) { .docs { columns: 2; column-gap: 40px; } }

/* campus scrapbook gallery */
.scrapbook { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; padding: 10px 0; }
@media (min-width: 768px) { .scrapbook { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 30px; } }
.snap { position: relative; margin: 0; }
.snap button { display: block; width: 100%; padding: 8px 8px 12px; border: 0; background: #fff; cursor: zoom-in; box-shadow: var(--paper-shadow); text-align: left; color: var(--ink);
  transition: transform .3s var(--ease-out), box-shadow .3s; font: inherit; }
.snap button:hover { box-shadow: var(--paper-shadow-lg); }
.snap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.snap.tall img { aspect-ratio: 4 / 5; }
.snap .cap { display: block; padding-top: 8px; font: 400 1rem/1.25 var(--display); }
.snap:nth-child(3n+1) button { transform: rotate(-2deg); }
.snap:nth-child(3n+2) button { transform: rotate(1.4deg); }
.snap:nth-child(3n) button { transform: rotate(-.6deg); }
.snap button:hover { transform: rotate(0) translateY(-3px); }
.snap .tape { width: 80px; height: 24px; margin-left: -40px; top: -10px; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .snap button { transition: none; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1000px, 94vw); width: 100%; color: var(--ink); }
.lightbox::backdrop { background: rgba(42, 35, 66, .82); }
.lightbox__inner { background: #fff; padding: 12px 12px 16px; border-radius: 6px; position: relative; }
.lightbox img { width: 100%; max-height: 74vh; object-fit: contain; background: var(--sky-2); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; flex-wrap: wrap; }
.lightbox__cap { font: 400 1.1rem/1.3 var(--display); margin: 0; }
.lightbox__count { font-size: .9rem; color: var(--ink-soft); }
.lightbox__btns { display: flex; gap: 8px; }

/* ---------- footer: the back cover ---------- */
.site-foot { background: var(--ink); color: #EDEAF5; padding: clamp(56px, 6vw, 88px) 0 calc(120px + env(safe-area-inset-bottom)); position: relative; }
@media (min-width: 992px) { .site-foot { padding-bottom: 40px; } }
.site-foot::before { /* scalloped top edge like a book cover */
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 15px;
  background: radial-gradient(circle at 14px 15px, var(--ink) 14px, transparent 14.5px) 0 0 / 28px 15px repeat-x;
}
.site-foot a { color: #FFFDF7; text-decoration-color: var(--butter); }
.site-foot img.flogo { height: 64px; width: auto; margin-bottom: 18px; }
.site-foot h2 { font-size: 1.45rem; color: var(--butter); margin-bottom: .7em; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot address { font-style: normal; }
.foot-fine { border-top: 1.5px dashed rgba(237, 234, 245, .28); margin-top: 40px; padding-top: 20px; font-size: .88rem; color: #CFCADF; }
.foot-fine p { max-width: none; margin-bottom: .4em; }

/* thank-you & 404 */
.center-page { padding: clamp(28px, 5vw, 64px); text-align: center; }
.center-page p { margin-left: auto; margin-right: auto; }
.center-page .btn-row { justify-content: center; }

/* reveal: one gentle authored moment on the hero only */
@media (prefers-reduced-motion: no-preference) {
  .book__spread { animation: open-book .9s var(--ease-out) both; }
  .polaroid { animation: drop-in 1s .35s var(--ease-out) both; }
  @keyframes open-book { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
  @keyframes drop-in { from { opacity: 0; transform: rotate(-4deg) translateY(-10px); } to { opacity: 1; transform: rotate(2.4deg); } }
  .doodle-draw path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.4s .7s var(--ease-out) forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

@media print { .menu-fab, .ribbons, .sheet { display: none !important; } body { background: #fff; } }
