@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* Colours taken from the nursery's logo and old site banner */
:root {
  --sky: #c6e9f4;
  --sky-soft: #e8f6fb;
  --green: #006633;
  --green-dark: #004d26;
  --grass: #30693e;
  --ink: #17261d;
  --muted: #4b5a52;
  --paper: #ffffff;
  --bee: #f7dc4f;
  --petal: #e08d63;
  --violet: #5d62c6;
  --line: #d6e5dd;
  --radius: 20px;
  --font-display: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--green-dark);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--green);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-dark);
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

address {
  font-style: normal;
  margin-bottom: 1em;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 720px;
}

.muted {
  color: var(--muted);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40em;
  margin-bottom: 2rem;
}

.kicker {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

/* Header: sits on the same sky blue as the logo, so the logo blends in */

.site-header {
  background: var(--sky);
  padding: 14px 0 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  width: 188px;
}

.header-call {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 18px;
  border-radius: 999px;
}

.header-call:hover {
  background: #fff;
}

/* Hero */

.hero {
  background: var(--sky);
  padding-top: 32px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.notice {
  display: inline-block;
  background: var(--bee);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.2rem;
  color: #2f4238;
  max-width: 34em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--green);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--green-dark);
}

.btn-secondary:hover {
  background: #fff;
}

.glance {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: 0 10px 30px rgba(0, 77, 38, 0.1);
}

.glance h2 {
  font-size: 1.4rem;
}

.glance ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.glance li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-top: 1px solid var(--line);
}

.glance li:first-child {
  border-top: 0;
}

.glance li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bee);
  box-shadow: 0 0 0 3px #fff5bf;
}

/* The meadow strip from the nursery's old site banner */
.meadow {
  /* Height follows the image's shape (290 / 1401 = 20.7% of the width), so
     the flowers are never cropped at the top. On phones the 120px minimum
     trims the left-hand grass instead. */
  height: max(120px, 20.7vw);
  margin-top: 8px;
  background: url("/images/meadow.png") right bottom / cover no-repeat;
}

@media (min-width: 900px) {
  .brand img {
    width: 230px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
  }
}

/* Ofsted */

.ofsted {
  padding: 72px 0;
}

.ofsted-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 1.5rem;
}

.chips li {
  background: var(--sky-soft);
  border: 1px solid var(--sky);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 6px 12px;
  border-radius: 999px;
}

.big-quote {
  margin: 0;
  padding: 32px 34px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  position: relative;
}

.big-quote::before {
  content: "\201C";
  position: absolute;
  top: -18px;
  left: 26px;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--bee);
}

.big-quote blockquote {
  margin: 0;
}

.big-quote p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.35;
  margin-bottom: 1rem;
}

.big-quote figcaption {
  color: #cfe9da;
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .ofsted-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
  }
}

/* Rooms */

.rooms {
  background: var(--sky-soft);
  padding: 72px 0;
}

.room-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.room {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
}

.room::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--accent, var(--green));
}

.room p:last-child {
  margin-bottom: 0;
}

.room-age {
  display: inline-block;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--accent-soft, var(--sky-soft));
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.room-hedgehogs {
  --accent: var(--petal);
  --accent-soft: #fbe3d6;
}

.room-buglins {
  --accent: var(--bee);
  --accent-soft: #fdf3c2;
}

.room-badgers {
  --accent: var(--grass);
  --accent-soft: #dcefe1;
}

/* Life at Kings Farm */

.life {
  padding: 72px 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  margin-top: 2rem;
}

.feature h3 {
  font-size: 1.2rem;
}

.feature p {
  color: var(--muted);
  margin: 0;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--sky-soft);
  color: var(--green);
  margin-bottom: 14px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Parent quotes */

.parents {
  background: var(--sky);
  padding: 64px 0;
}

.parents h2 {
  margin-bottom: 2rem;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.quote {
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Each quote is a speech bubble with a big opening quote mark */
.quote blockquote {
  position: relative;
  flex: 1;
  margin: 0;
  background: var(--paper);
  border-radius: 24px;
  padding: 62px 30px 30px;
}

.quote blockquote::before {
  content: "\201C";
  position: absolute;
  top: 14px;
  left: 26px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 5rem;
  line-height: 1;
  color: var(--bee);
}

.quote blockquote::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 38px;
  border-top: 20px solid var(--paper);
  border-right: 24px solid transparent;
}

.quote p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--green-dark);
  margin: 0;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-left: 30px;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.9375rem;
}

.quote figcaption::before {
  content: "";
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e08d63' d='M12 20.5s-7.5-4.6-7.5-10.1A4.3 4.3 0 0 1 12 7.6a4.3 4.3 0 0 1 7.5 2.8c0 5.5-7.5 10.1-7.5 10.1Z'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Visit */

.visit {
  padding: 72px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--sky-soft);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  font-size: 1.3rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-big {
  font-size: 1.2rem;
  font-weight: 700;
}

.card-big a {
  text-decoration: none;
}

.email {
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  background: var(--grass);
  color: #e6f2e9;
  padding: 24px 0;
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
}

/* Not found page */

.not-found {
  display: flex;
  flex-direction: column;
  background: var(--sky);
  padding-top: 40px;
}

.not-found .meadow {
  margin-top: auto;
}

.not-found .wrap {
  padding-bottom: 24px;
}

@media (max-width: 480px) {
  .brand img {
    width: 150px;
  }

  .header-call {
    font-size: 0.9375rem;
    padding: 8px 14px;
  }

  .btn {
    width: 100%;
  }

  .glance,
  .big-quote {
    padding: 24px;
  }

  .quote blockquote {
    padding: 58px 24px 24px;
  }

  .quote blockquote::before {
    left: 20px;
  }

  .quote figcaption {
    padding-left: 24px;
  }
}

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