/* Great Tew Pre-School — site styles
   Layout: one centred 1140px column; full-width colour bands joined by wavy edges. */

@font-face { font-family: "Fredoka One"; src: url("../fonts/fredoka-one-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gochi Hand"; src: url("../fonts/gochi-hand-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Colours (taken from the existing site) */
  --purple: #563cab;   /* hero, terms band, footer */
  --ink: #483290;      /* headings, phone number */
  --lavender: #7f70b1; /* body text */
  --orange: #ff7223;   /* small headings above titles */
  --green: #03cb8f;    /* menu buttons, handwritten line */
  --blue: #0e9aff;     /* current page, learning-area titles */
  --sky: #eef8ff;      /* closing band */
  --cyan: #00e0ff;     /* footer highlights */
  --lime: #9cc624;     /* contact card, shapes */
  --magenta: #c61fa1;  /* contact card, shapes */
  --red: #fe4848;
  --autumn: #ff8f00;
  --spring: #2fc201;
  --summer: #fee400;
  --white: #ffffff;
  --grey: #818a91;

  /* Type */
  --font-display: "Fredoka One", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Gochi Hand", "Chalkboard SE", "Comic Sans MS", cursive;
  --text: clamp(17px, 0.55vw + 14px, 22px);
  --title: clamp(36px, 3vw + 18px, 64px);
  --eyebrow: clamp(22px, 0.8vw + 16px, 30px);

  /* Layout */
  --wrap: 1140px;
  --gutter: 20px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--white);
  color: var(--lavender);
  font-family: var(--font-body);
  font-size: var(--text);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; text-wrap: balance; }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

/* Shared headings ---------------------------------------------------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--eyebrow);
  line-height: 1.2;
  color: var(--orange);
  text-align: center;
}

.section-title {
  margin-top: 0.45em;
  font-size: var(--title);
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
}
.section-title--narrow { max-width: 18em; margin-inline: auto; }

.lede {
  max-width: 1085px;
  margin: 1.6em auto 0;
  text-align: center;
}

/* Wavy edges between bands ------------------------------------------- */

.wave {
  position: absolute; left: 0; width: 100%;
  fill: var(--white);
  pointer-events: none;
}
.wave--rise { bottom: -1px; height: clamp(24px, 3vw, 44px); }
.wave--hang { top: -1px; }

/* Header -------------------------------------------------------------- */

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding-top: 14px;
}

.social { display: flex; gap: 12px; padding-top: 22px; }
.social a {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  color: var(--grey);
  border-radius: 10%;
}
.social a:hover { color: var(--blue); }

.brand {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; text-decoration: none;
}
.brand-name {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--lavender);
}
.brand-name em { display: block; }

.header-phone {
  justify-self: end;
  padding-top: 26px;
  font-family: var(--font-hand);
  font-size: 40px;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--blue); }

.site-nav { padding-top: 18px; }
/* On the home page the menu sits half on the white header, half on the purple hero */
.home .site-nav { background: linear-gradient(var(--white) 55%, var(--purple) 55%); }
.site-nav ul { display: flex; gap: 10px; }
.site-nav li { flex: 1 1 auto; }
.site-nav a {
  display: block;
  padding: 17px 20px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 27px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s, transform 0.15s;
}
.site-nav a:hover { background: var(--blue); }
.site-nav a[aria-current="page"] { background: var(--blue); transform: translateY(-10px); }

/* Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--purple);
  color: var(--white);
  padding-block: clamp(48px, 7vw, 110px) clamp(90px, 11vw, 170px);
}
.hero h1 {
  font-size: clamp(42px, 3.4vw + 22px, 64px);
  line-height: 1.2;
}
.hero h1 span { display: block; }
.hero-lede { max-width: 25em; margin-top: 0.6em; }
.hero-hand {
  margin-top: 1.4em;
  font-family: var(--font-hand);
  font-size: clamp(28px, 1vw + 22px, 36px);
  line-height: 1.2;
  color: var(--green);
}

/* Ethos and photo collage -------------------------------------------- */

.ethos { padding-block: clamp(48px, 7vw, 110px) clamp(40px, 5vw, 70px); overflow-x: clip; }

.collage {
  position: relative;
  aspect-ratio: 1140 / 1010;
  margin-top: clamp(40px, 6vw, 90px);
}
.collage .photo,
.collage .shape { position: absolute; }
.collage .photo { object-fit: cover; border-radius: var(--radius); }
.collage .shape { z-index: 3; height: auto; }

/* Positions as a share of the collage box, measured from the current site */
.photo--reading { left: 0.9%;  top: 0;     width: 43.4%; height: 32.7%; }
.photo--cars    { left: 52.4%; top: 0;     width: 46.8%; height: 35.1%; }
.photo--bubbles { left: 29.6%; top: 41%;   width: 47.9%; height: 36%;   z-index: 1; }
.photo--wand    { left: 1.8%;  top: 53.7%; width: 35.6%; height: 31.7%; z-index: 2; }
.photo--story   { left: 69.3%; top: 43%;   width: 28.9%; height: 48.9%; z-index: 2; }

.shape--star     { left: 13.2%; top: 6.2%;  width: 6.1%; }
.shape--cloud    { left: 21.6%; top: 23.3%; width: 11.6%; }
.shape--square   { left: 40.4%; top: 27.2%; width: 7.4%; }
.shape--ring     { left: 81.3%; top: 5.4%;  width: 1.5%; }
.shape--arc      { left: -1.6%; top: 38.3%; width: 4.4%; }
.shape--dot-teal { left: 101%;  top: 41.4%; width: 1.8%; }
.shape--triangle { left: 13.8%; top: 88.5%; width: 6.8%; }
.shape--dot-red  { left: 54.6%; top: 97.5%; width: 6%; }
.shape--dot-lime { left: 80.1%; top: 97.2%; width: 3.2%; }

/* Prime areas of learning -------------------------------------------- */

.areas { padding-block: clamp(56px, 7vw, 100px) clamp(40px, 5vw, 70px); }

.area-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  row-gap: clamp(40px, 5vw, 64px);
  margin-top: clamp(36px, 5vw, 70px);
}
.area {
  flex: 0 0 33.333%;
  display: flex; flex-direction: column; align-items: center;
  padding-inline: 12px;
  text-align: center;
}
.area img { height: 120px; width: auto; object-fit: contain; }
.area h2, .area h3 {
  margin-top: 22px;
  font-size: clamp(24px, 0.5vw + 21px, 30px);
  line-height: 1.2;
  color: var(--blue);
}
.area p { margin-top: 12px; }

/* Terms --------------------------------------------------------------- */

.terms-intro { padding-top: clamp(40px, 5vw, 70px); }

.terms {
  position: relative;
  margin-top: clamp(40px, 5vw, 85px);
  padding-bottom: clamp(100px, 10vw, 150px);
  background: var(--purple);
}
.terms .wave--hang { height: clamp(60px, 9vw, 130px); }

.term-grid {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 40px 54px;
}
.term {
  flex: 0 1 525px;
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: 14px 14px var(--radius) var(--radius);
  color: var(--white);
}
.term img { width: 100%; aspect-ratio: 630 / 308; object-fit: cover; }
.term--autumn { background: var(--autumn); }
.term--spring { background: var(--spring); }
.term--summer { background: var(--summer); color: var(--ink); }

.term-body {
  flex: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: 30px 40px 42px;
  font-size: 18px;
  line-height: 1.55;
}
.term h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.term .button { margin-top: auto; }

.button {
  display: inline-block;
  margin-top: 16px;
  padding: 18px 34px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 4px 10px 4px rgba(50, 61, 91, 0.1);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 24px;
  text-decoration: none;
  transition: transform 0.15s;
}
.button:hover { transform: translateY(-2px); }

/* Decorative toys between the terms and the closing band -------------- */

.playthings { position: relative; z-index: 1; padding-top: clamp(50px, 7vw, 100px); }
.playthings-box {
  position: relative;
  width: min(560px, 80%);
  aspect-ratio: 560 / 228;
  margin-inline: auto;
  margin-bottom: calc(-0.07 * min(560px, 80vw));
}
.toy { position: absolute; height: auto; }
.toy--rocket  { left: 1.8%;  top: 47.4%; width: 17.5%; }
.toy--star    { left: 15.9%; top: 14.9%; width: 10.7%; }
.toy--lime    { left: 29.5%; top: 46.5%; width: 14.6%; }
.toy--abacus  { left: 57.5%; top: 0;     width: 24.1%; }
.toy--magenta { left: 87.3%; top: 78%;   width: 8.9%; }

/* Closing band ------------------------------------------------------- */

.closing {
  position: relative;
  background: var(--sky);
  padding-block: clamp(90px, 9vw, 130px) clamp(60px, 6vw, 86px);
}
.closing .wave--hang { height: clamp(30px, 4vw, 56px); }
.closing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1em clamp(32px, 6vw, 70px);
}
.closing-grid > div { display: flex; flex-direction: column; gap: 1.1em; }
.closing strong { font-weight: 700; }

/* Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--purple);
  color: var(--white);
  padding-block: clamp(64px, 9vw, 140px) 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 0.6fr 1fr 1.4fr 2fr;
  gap: 40px clamp(24px, 2.5vw, 32px);
}
.footer-grid h2 { font-size: 24px; line-height: 1.2; margin-bottom: 22px; }
.footer-grid li a {
  display: inline-block;
  font-size: 18px;
  line-height: 40px;
  text-decoration: none;
}
.footer-grid li a:hover { color: var(--cyan); }

.footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
.brand--footer { align-self: flex-start; margin-bottom: 26px; }
.brand--footer .brand-name { color: var(--white); }
.footer-contact address { font-size: 22px; line-height: 35px; }
.footer-phone {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  text-decoration: none;
}
.footer-email {
  margin-top: 26px;
  font-size: clamp(18px, 0.5vw + 15px, 22px);
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-phone:hover, .footer-email:hover { text-decoration: underline; }
.footer-social { margin-top: 20px; display: grid; place-items: center; width: 40px; height: 40px; }
.footer-social:hover { color: var(--cyan); }

.copyright { margin-top: clamp(48px, 6vw, 80px); font-size: 14px; }
.copyright a { color: var(--cyan); text-decoration: none; }
.copyright a:hover { text-decoration: underline; }

/* ===================================================================
   Inner pages
   =================================================================== */

.page-intro { padding-block: clamp(56px, 7vw, 100px) clamp(32px, 4vw, 56px); overflow-x: clip; }
.page-intro--short { padding-bottom: 8px; }

.subhead {
  font-family: var(--font-display);
  font-size: var(--eyebrow);
  line-height: 1.2;
  color: var(--orange);
  text-align: center;
}

.stack { display: flex; flex-direction: column; gap: 1.1em; }
.centred { max-width: 1085px; margin-inline: auto; text-align: center; }
.stack.centred { margin-top: clamp(32px, 4vw, 48px); }
.stack .subhead { margin-top: 1em; }
.lede a, .stack a, .prose a, .answer a { color: var(--ink); font-weight: 700; }
.lede a:hover, .stack a:hover, .prose a:hover, .answer a:hover { color: var(--blue); }

.bullets {
  max-width: 1000px;
  margin: 1.6em auto 0;
  padding-left: 1.3em;
  list-style: disc;
}
.bullets li + li { margin-top: 0.35em; }
.bullets li::marker { color: var(--blue); }
.numbers { padding-left: 1.4em; list-style: decimal; margin-top: 0.8em; }
.numbers li + li { margin-top: 0.35em; }

/* Light blue band with wavy edges */
.band { position: relative; }
.band--sky {
  background: var(--sky);
  padding-block: clamp(90px, 9vw, 130px) clamp(100px, 10vw, 150px);
  margin-top: clamp(48px, 6vw, 90px);
}
.band--sky .wave--hang { height: clamp(30px, 4vw, 56px); }

/* Shapes scattered around photo groups */
.trio .shape, .term-photos .shape { position: absolute; z-index: 3; height: auto; }

/* Three overlapping photos (About, Parents) ---------------------------- */

.trio { position: relative; margin-top: clamp(40px, 6vw, 90px); }
.trio-photo { position: absolute; object-fit: cover; border-radius: var(--radius); }

.trio--about { aspect-ratio: 1140 / 640; }
.trio--about .trio-photo--a { left: 4.8%;  top: 31%;  width: 28.1%; height: 37.5%; z-index: 2; }
.trio--about .trio-photo--b { left: 25.3%; top: 4.7%; width: 52.1%; height: 69.5%; z-index: 1; }
.trio--about .trio-photo--c { left: 69.2%; top: 7.8%; width: 28.9%; height: 77%;   z-index: 2; }

.trio--parents { aspect-ratio: 1140 / 375; }
.trio--parents .trio-photo--a { left: 1.8%;  top: 38%; width: 23.2%; height: 47%; }
.trio--parents .trio-photo--b { left: 26.7%; top: 10%; width: 42.4%; height: 85.6%; z-index: 1; }
.trio--parents .trio-photo--c { left: 64%;   top: 14%; width: 35.1%; height: 71%;  z-index: 2; }

/* About ----------------------------------------------------------------- */

.about-care { padding-top: clamp(32px, 4vw, 56px); }
.about-care .subhead { margin-top: clamp(48px, 5vw, 72px); }

.staff-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px 20px;
  margin-top: clamp(36px, 5vw, 60px);
  text-align: center;
}
.staff img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.staff-name {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
}
.staff-role { margin-top: 4px; font-size: 16px; line-height: 1.4; }

.vision { padding-top: clamp(24px, 3vw, 40px); }

/* Parents -------------------------------------------------------------- */

.area-grid--labels .area h3 { margin-top: 18px; }
.resources { padding-top: clamp(24px, 3vw, 40px); }
.link-list {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 1.4em;
}
.link-list a {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  color: var(--green);
  text-decoration: none;
}
.link-list a:hover { color: var(--blue); text-decoration: underline; }

.testimonials { padding-top: clamp(64px, 8vw, 110px); }
.quotes {
  display: flex; flex-direction: column; gap: clamp(28px, 3vw, 40px);
  max-width: 1000px;
  margin: clamp(32px, 4vw, 56px) auto 0;
}
.quotes blockquote {
  position: relative;
  margin: 0;
  padding: 28px clamp(24px, 4vw, 48px) 28px clamp(56px, 6vw, 84px);
  border-radius: var(--radius);
  background: var(--sky);
}
.quotes blockquote::before {
  content: "“";
  position: absolute; left: clamp(16px, 2vw, 26px); top: 6px;
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  color: var(--orange);
}
.quotes blockquote p + p { margin-top: 0.8em; }
.quotes footer {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
}

/* Curriculum ----------------------------------------------------------- */

.term-jump {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: clamp(28px, 3vw, 40px);
}
.term-jump a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s;
}
.term-jump a:hover { transform: translateY(-2px); }
.term-jump--autumn { background: var(--autumn); }
.term-jump--spring { background: var(--spring); }
.term-jump--summer { background: var(--summer); color: var(--ink) !important; }
.term-jump--blue { background: var(--blue); }
.term-jump--green { background: var(--green); }
.term-jump--magenta { background: var(--magenta); }

.term-section { padding-top: clamp(64px, 8vw, 110px); scroll-margin-top: 16px; }
.term-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.term-layout .term-media { order: -1; }
.term-section--flip .term-media { order: 1; }
.term-media, .term-text { min-width: 0; }

.term-photos {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}
.term-photos img:not(.shape) {
  width: 100%; height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}
.term-photos img.tall { grid-row: span 2; aspect-ratio: auto; }
.term-photos img.wide { grid-column: 1 / -1; aspect-ratio: 2 / 1; }

.term-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.list-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lavender);
}
.ticks, .events { margin-top: 14px; font-family: var(--font-display); font-size: 19px; line-height: 1.3; }
.ticks li, .events li { padding-block: 4px; }
.ticks li { position: relative; padding-left: 28px; color: var(--green); }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 15px; height: 9px;
  border-left: 4px solid var(--orange);
  border-bottom: 4px solid var(--orange);
  transform: rotate(-45deg);
}
.events li { color: var(--blue); }

.term-title {
  font-size: var(--title);
  line-height: 1.1;
  color: var(--ink);
}
.term-text > p { margin-top: 0.9em; }
.term-text > p:first-of-type { margin-top: 0.6em; }

.dates {
  margin-top: 28px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--sky);
}
.dates dl { margin: 12px 0 0; font-family: var(--font-display); font-size: 18px; line-height: 1.35; }
.dates dt { color: var(--ink); }
.dates dt:not(:first-child) { margin-top: 10px; }
.dates dd { margin: 2px 0 0; color: var(--blue); }

/* FAQs ------------------------------------------------------------------ */

.faq-group { padding-top: clamp(56px, 7vw, 90px); scroll-margin-top: 16px; }
.group-title {
  font-size: clamp(32px, 2vw + 20px, 48px);
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
}
.faq-list {
  display: flex; flex-direction: column; gap: 18px;
  max-width: 900px;
  margin: clamp(28px, 3vw, 40px) auto 0;
}
.faq-list details {
  border-radius: 10px;
  background: var(--sky);
  box-shadow: 0 5px 4px rgba(50, 61, 91, 0.12);
}
.faq-list summary {
  position: relative;
  padding: 22px 64px 22px 28px;
  font-family: var(--font-display);
  font-size: clamp(19px, 0.4vw + 17px, 22px);
  line-height: 1.3;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute; right: 28px; top: 50%;
  width: 11px; height: 11px;
  margin-top: -8px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list summary:hover { color: var(--ink); }
.answer {
  display: flex; flex-direction: column; gap: 0.8em;
  padding: 0 28px 26px;
  font-size: 18px;
  line-height: 1.6;
}
.answer h3 {
  margin-top: 0.4em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.answer .bullets { margin: 0; }
.answer .note { font-style: italic; }
.timetable {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 20px;
  margin: 0;
}
.timetable dt { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.timetable dd { margin: 0; }

/* Contacts -------------------------------------------------------------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px);
}
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 40px 28px 36px;
  border-radius: var(--radius);
  color: var(--white);
  text-align: center;
  font-size: 19px;
  line-height: 1.6;
}
.contact-card--email { background: var(--blue); }
.contact-card--call  { background: var(--lime); }
.contact-card--visit { background: var(--magenta); }
.contact-icon { color: var(--summer); }
.contact-card h2 { font-size: 30px; line-height: 1.2; }
.contact-link {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-link--phone { text-decoration: none; font-size: 24px; }
.contact-link:hover { color: var(--summer); }
.contact-detail { font-size: 16px; overflow-wrap: anywhere; }

/* Privacy notice and other long text ----------------------------------- */

.prose { max-width: 900px; display: flex; flex-direction: column; gap: 1em; }
.prose .subhead { margin-top: 1.4em; text-align: left; font-size: clamp(22px, 0.6vw + 18px, 28px); }
.prose .subhead:first-child { margin-top: 0; }
.prose .bullets { margin: 0; }

/* Twinkl characters ---------------------------------------------------- */

.characters { padding-top: clamp(48px, 6vw, 80px); }
.character-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(24px, 3vw, 36px);
}
.character-grid li { text-align: center; scroll-margin-top: 16px; }
.character-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 0 0 2px var(--sky), 0 6px 14px rgba(50, 61, 91, 0.08);
}
.character-grid p {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  color: var(--blue);
}
.character-grid li:target img { box-shadow: 0 0 0 4px var(--orange), 0 6px 14px rgba(50, 61, 91, 0.08); }
.small-print { margin-top: clamp(40px, 5vw, 64px); font-size: 15px; text-align: center; }

/* Toys at the foot of inner pages */
.playthings--end { padding-block: clamp(56px, 7vw, 100px) clamp(40px, 5vw, 64px); }
.playthings--end .playthings-box { margin-bottom: 0; }

@media (max-width: 1000px) {
  .staff-grid { grid-template-columns: repeat(3, 1fr); }
  .term-layout { grid-template-columns: 1fr; }
  .term-layout .term-media, .term-section--flip .term-media { order: 0; }
  .term-media { max-width: 640px; }
  .contact-cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

@media (max-width: 760px) {
  .trio {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .trio .trio-photo { position: static; width: 100%; height: 100%; aspect-ratio: 3 / 2; }
  .trio .trio-photo--b { grid-column: 1 / -1; grid-row: 1; }
  .trio .shape, .term-photos .shape { display: none; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .character-grid { grid-template-columns: 1fr 1fr; }
  .faq-list summary { padding: 18px 52px 18px 20px; }
  .faq-list summary::after { right: 22px; }
  .answer { padding: 0 20px 22px; font-size: 17px; }
  .timetable { grid-template-columns: 1fr; gap: 0; }
  .timetable dd + dt { margin-top: 8px; }
  .quotes blockquote { padding: 52px 22px 24px; }
  .quotes blockquote::before { left: 18px; top: 2px; }
}

@media (max-width: 560px) {
  .term-lists { grid-template-columns: 1fr; }
  .area-grid--labels .area { flex-basis: 50%; }
  .area-grid--labels .area img { height: 90px; }
}

/* Tablet -------------------------------------------------------------- */

@media (max-width: 1000px) {
  .site-nav a { font-size: 19px; padding: 14px 12px; }
  .area { flex-basis: 50%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .masthead { grid-template-columns: 1fr; justify-items: center; row-gap: 6px; }
  .masthead .brand { order: 1; }
  .header-phone { order: 2; justify-self: center; padding-top: 4px; font-size: 32px; }
  .social { order: 3; padding-top: 0; }
  .social a { width: 40px; height: 40px; }

  .site-nav { padding-top: 14px; }
  .home .site-nav { background: linear-gradient(var(--white) 30px, var(--purple) 30px); }
  .site-nav ul { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .site-nav li { flex: 0 1 auto; }
  .site-nav a { font-size: 18px; line-height: 22px; padding: 12px 18px; }
  .site-nav a[aria-current="page"] { transform: translateY(-4px); }

  /* Collage becomes a tidy grid; the loose shapes are dropped */
  .collage {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "reading cars" "story bubbles" "story wand";
    gap: 12px;
  }
  .collage .photo { position: static; width: 100%; height: 100%; aspect-ratio: 3 / 2; }
  .collage .shape { display: none; }
  .photo--reading { grid-area: reading; }
  .photo--cars    { grid-area: cars; }
  .photo--bubbles { grid-area: bubbles; }
  .photo--wand    { grid-area: wand; }
  .photo--story   { grid-area: story; aspect-ratio: auto; }

  .term-body { padding: 24px 24px 32px; }
  .closing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .area { flex-basis: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
